This file contains the linux-uart interface prototypes. More...
#include "toposens/sensor_lib.h"

Go to the source code of this file.
Functions | |
| int | DeinitUARTPort () |
| Called from the can-library, this function will close the socket and take care of ReceiverThread termination. More... | |
| 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. More... | |
| 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. More... | |
| int | WriteUARTPayload (uint8_t *Payload_pu8, uint8_t Length_u8, uint8_t InterfaceId_u8) |
| Called to send messages to can socket. More... | |
This file contains the linux-uart interface prototypes.
Definition in file uartinterface.h.
| int DeinitUARTPort | ( | ) |
Called from the can-library, this function will close the socket and take care of ReceiverThread termination.
Definition at line 204 of file uartinterface.c.
| void RegisterUARTReadCallback | ( | void(*)(uint8_t *UARTMsg_pu8, uint16_t UARTMsgSize_u16, uint8_t InterfaceId_u8) | Callback | ) |
This function is called by the library to set a callback function for incoming can-traffic.
| [in] | (*Callback) | Function Pointer to function that shall be called-back if a can-frame was revived |
Definition at line 126 of file uartinterface.c.
| 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.
| [in] | *InterfaceName_cp | interface-name that shall be configured |
| [in] | InterfaceBitrate_u32 | Bitrate the interface should be working with |
| [in] | InterfaceId_u8 |
Definition at line 189 of file uartinterface.c.
| int WriteUARTPayload | ( | uint8_t * | Payload_pu8, |
| uint8_t | Length_u8, | ||
| uint8_t | InterfaceId_u8 | ||
| ) |
Called to send messages to can socket.
| [in] | *Payload_pu8 | pointer to payload that should be send |
| [in] | Length_u8 | |
| [in] | InterfaceId_u8 |
Definition at line 140 of file uartinterface.c.