8 #ifndef TOPOSENS_LINUX_UARTINTERFACE_H 10 #define TOPOSENS_LINUX_UARTINTERFACE_H 34 int WriteUARTPayload(uint8_t* Payload_pu8, uint8_t Length_u8, uint8_t InterfaceId_u8);
46 int SetupUARTPort(
char* InterfaceName_cp, uint32_t InterfaceBitrate_u32, uint8_t InterfaceId_u8);
65 uint8_t InterfaceId_u8));
68 #endif // TOPOSENS_LINUX_UARTINTERFACE_H int WriteUARTPayload(uint8_t *Payload_pu8, uint8_t Length_u8, uint8_t InterfaceId_u8)
Called to send messages to can socket.
void RegisterUARTReadCallback(void(*Callback)(uint8_t *UARTMsg_pu8, uint16_t UARTMsgSize_u16, uint8_t InterfaceId_u8))
This function is called by the library to set a callback function for incoming can-traffic.
int DeinitUARTPort()
Called from the can-library, this function will close the socket and take care of ReceiverThread term...
int SetupUARTPort(char *InterfaceName_cp, uint32_t InterfaceBitrate_u32, uint8_t InterfaceId_u8)
Called from the library, this function will take care of all linux-related uart-setup, socket configuration and starting of the receiver thread.
This file contains the highlevel interface prototypes to the low-level Protocol.