25 #define ENABLE_PACKET_CONTINUATION 0 112 #define MAX_NUM_BCAST_MSGS 8 115 #define COM_MANAGER_BUF_SIZE_BCAST_MSG(max_num_bcast_msgs) ((max_num_bcast_msgs)*sizeof(broadcast_msg_t)) 116 #define COM_MANAGER_BUF_SIZE_ENSURED_PKTS(max_num_ensured_pkts) ((max_num_ensured_pkts)*sizeof(ensured_pkt_t)) 123 typedef int(*
pfnComManagerRead)(CMHANDLE cmHandle,
int pHandle, uint8_t *buffer,
int numberOfBytes);
126 typedef int(*
pfnComManagerSend)(CMHANDLE cmHandle,
int pHandle,
unsigned char* buffer,
int numberOfBytes);
182 #if ENABLE_PACKET_CONTINUATION 282 int maxEnsuredPackets,
283 int stepPeriodMilliseconds,
301 int maxEnsuredPackets,
302 int stepPeriodMilliseconds,
341 void comManagerGetData(
int pHandle, uint32_t dataId,
int offset,
int size,
int periodMultiple);
342 void comManagerGetDataInstance(CMHANDLE cmInstance,
int pHandle, uint32_t dataId,
int offset,
int size,
int periodMultiple);
422 int comManagerSendData(
int pHandle, uint32_t dataId,
void* dataPtr,
int dataSize,
int dataOffset);
423 int comManagerSendDataInstance(CMHANDLE cmInstance,
int pHandle, uint32_t dataId,
void* dataPtr,
int dataSize,
int dataOffset);
468 int comManagerSendRawData(
int pHandle, uint32_t dataId,
void* dataPtr,
int dataSize,
int dataOffset);
562 #endif // COM_MANAGER_H
ensured_pkt_t * ensuredPackets
int(* pfnComManagerSendBufferAvailableBytes)(CMHANDLE cmHandle, int pHandle)
pfnComManagerGenMsgHandler cmMsgHandlerUblox
pfnComManagerAsapMsg cmMsgHandlerRmc
broadcast_msg_t * broadcastMessages
void comManagerDisableBroadcastsInstance(CMHANDLE cmInstance, int pHandle)
int comManagerSendEnsuredInstance(CMHANDLE cmInstance, int pHandle, uint8_t pktInfo, unsigned char *data, unsigned int dataSize)
ensured_pkt_t * ensuredPackets
void(* pfnComManagerPostRead)(CMHANDLE cmHandle, int pHandle, p_data_t *dataRead)
pfnComManagerPostRead pstRxFnc
com_manager_status_t * comManagerGetStatusInstance(CMHANDLE cmInstance, int pHandle)
pfnComManagerSendBufferAvailableBytes txFreeCallback
pfnComManagerPostRead pstRxFnc
void comManagerGetDataRmc(int pHandle, uint64_t rmcBits, uint32_t rmcOptions)
uint32_t communicationErrorCount
int(* pfnComManagerAsapMsg)(CMHANDLE cmHandle, int pHandle, p_data_get_t *req)
broadcast_msg_t * broadcastMsg
com_manager_status_t * comManagerGetStatus(int pHandle)
int comManagerValidateBaudRate(unsigned int baudRate)
int comManagerSend(int pHandle, uint8_t pktInfo, bufPtr_t *bodyHdr, bufPtr_t *txData, uint8_t pktFlags)
int comManagerSendDataNoAck(int pHandle, uint32_t dataId, void *dataPtr, int dataSize, int dataOffset)
void comManagerStepTxInstance(CMHANDLE cmInstance)
int comManagerGetDataRequestInstance(CMHANDLE cmInstance, int pHandle, p_data_get_t *req)
void(* pfnComManagerDisableBroadcasts)(CMHANDLE cmHandle, int pHandle)
pfnComManagerRead readCallback
void comManagerStepRxInstance(CMHANDLE cmInstance)
void comManagerGetDataRmcInstance(CMHANDLE cmInstance, int pHandle, uint64_t rmcBits, uint32_t rmcOptions)
void comManagerSetCallbacks(pfnComManagerAsapMsg rmcHandler, pfnComManagerGenMsgHandler asciiHandler, pfnComManagerGenMsgHandler ubloxHandler, pfnComManagerGenMsgHandler rtcm3Handler)
void comManagerDisableBroadcasts(int pHandle)
pfnComManagerPreSend preTxFnc
void(* pfnComManagerPreSend)(CMHANDLE cmHandle, int pHandle)
com_manager_port_t * ports
int comManagerInitInstance(CMHANDLE cmHandle, int numHandles, int maxEnsuredPackets, int stepPeriodMilliseconds, int retryCount, pfnComManagerRead readFnc, pfnComManagerSend sendFnc, pfnComManagerSendBufferAvailableBytes txFreeFnc, pfnComManagerPostRead pstRxFnc, pfnComManagerPostAck pstAckFnc, pfnComManagerDisableBroadcasts disableBcastFnc, com_manager_init_t *buffers, com_manager_port_t *cmPorts)
int32_t maxEnsuredPackets
int comManagerSendInstance(CMHANDLE cmInstance, int pHandle, uint8_t pktInfo, bufPtr_t *bodyHdr, bufPtr_t *txData, uint8_t pktFlags)
void comManagerSetCallbacksInstance(CMHANDLE cmInstance, pfnComManagerAsapMsg rmcHandler, pfnComManagerGenMsgHandler asciiHandler, pfnComManagerGenMsgHandler ubloxHandler, pfnComManagerGenMsgHandler rtcm3Handler)
void comManagerRegisterInstance(CMHANDLE cmInstance, uint32_t dataId, pfnComManagerPreSend txFnc, pfnComManagerPostRead pstRxFnc, const void *txDataPtr, void *rxDataPtr, int dataSize, uint8_t pktFlags)
bufTxRxPtr_t * comManagerGetRegisteredDataInfo(uint32_t dataId)
int(* pfnComManagerGenMsgHandler)(CMHANDLE cmHandle, int pHandle, const unsigned char *msg, int msgSize)
int comManagerSendEnsured(int pHandle, uint8_t pktInfo, unsigned char *data, unsigned int dataSize)
uint32_t broadcastMsgSize
void * comManagerGetUserPointer(CMHANDLE cmInstance)
pfnComManagerSend sendPacketCallback
void comManagerGetDataInstance(CMHANDLE cmInstance, int pHandle, uint32_t dataId, int offset, int size, int periodMultiple)
int(* pfnComManagerSend)(CMHANDLE cmHandle, int pHandle, unsigned char *buffer, int numberOfBytes)
int comManagerDisableData(int pHandle, uint32_t dataId)
int comManagerSendRawData(int pHandle, uint32_t dataId, void *dataPtr, int dataSize, int dataOffset)
USBInterfaceDescriptor data
int comManagerSendData(int pHandle, uint32_t dataId, void *dataPtr, int dataSize, int dataOffset)
int(* pfnComManagerRead)(CMHANDLE cmHandle, int pHandle, uint8_t *buffer, int numberOfBytes)
com_manager_status_t status
int32_t lastEnsuredPacketIndex
int comManagerInit(int numHandles, int maxEnsuredPackets, int stepPeriodMilliseconds, int retryCount, pfnComManagerRead readFnc, pfnComManagerSend sendFnc, pfnComManagerSendBufferAvailableBytes txFreeFnc, pfnComManagerPostRead pstRxFnc, pfnComManagerPostAck pstAckFnc, pfnComManagerDisableBroadcasts disableBcastFnc, com_manager_init_t *buffers, com_manager_port_t *cmPorts)
pfnComManagerGenMsgHandler cmMsgHandlerAscii
pfnComManagerGenMsgHandler cmMsgHandlerRtcm3
int comManagerSendRawDataInstance(CMHANDLE cmInstance, int pHandle, uint32_t dataId, void *dataPtr, int dataSize, int dataOffset)
CMHANDLE comManagerGetGlobal(void)
bufTxRxPtr_t * comManagerGetRegisteredDataInfoInstance(CMHANDLE cmInstance, uint32_t dataId)
int comManagerDisableDataInstance(CMHANDLE cmInstance, int pHandle, uint32_t dataId)
pfnComManagerPostAck pstAckFnc
int comManagerSendDataNoAckInstance(CMHANDLE cmInstance, int pHandle, uint32_t dataId, void *dataPtr, int dataSize, int dataOffset)
void comManagerStepInstance(CMHANDLE cmInstance_)
void comManagerRegister(uint32_t dataId, pfnComManagerPreSend txFnc, pfnComManagerPostRead pstRxFnc, const void *txDataPtr, void *rxDataPtr, int dataSize, uint8_t pktFlags)
int32_t stepPeriodMilliseconds
int comManagerSendDataInstance(CMHANDLE cmInstance, int pHandle, uint32_t dataId, void *dataPtr, int dataSize, int dataOffset)
pfnComManagerDisableBroadcasts disableBcastFnc
int comManagerGetDataRequest(int pHandle, p_data_get_t *req)
void comManagerAssignUserPointer(CMHANDLE cmInstance, void *userPointer)
void comManagerStep(void)
uint32_t ensuredPacketsSize
void(* pfnComManagerPostAck)(CMHANDLE cmHandle, int pHandle, p_ack_t *ack, unsigned char packetIdentifier)
void comManagerGetData(int pHandle, uint32_t dataId, int offset, int size, int periodMultiple)
Request data This function requests the specified data w/ offset and length for partial reads...