#ifndef DRV_PACCOMM_H #define DRV_PACCOMM_H #include #define PACMCGRP "PACMCGRP" #define LANIPBASIC_IP "LANIPBASIC_IP" #define PACCOMMPORT "PACCOMMPORT" typedef struct { int pacCommSd; UdpCommPkt pkt; void *pBuf; int sender_port; int receiver_port; char sender_ip[32]; char receiver_ip[32]; unsigned sending_counter; unsigned error_counter; unsigned long sent_bytes; } pacComm_t, *pacComm_p; #define PAC_COMM_MAGIC (0xabcdef00) #define MAX_STATIONS 24 typedef struct { __attribute__((packed)) unsigned station; short iAdjust; short qAdjust; unsigned short invalid; unsigned short counter; } pacCommand_t, *pacCommand_p; typedef struct { __attribute__((packed)) unsigned magic; pacCommand_t pacCommand[MAX_STATIONS]; } pacCommandBuf_t, *pacCommandBuf_p; pacCommand_p *setPacCommand(int station, short iAdjust, short qAdjust, unsigned short invalid); int pacCommSendPacket(void); #endif