sbgInterfaceUdp.h
Go to the documentation of this file.
1 
21 #ifndef SBG_INTERFACE_UDP_H
22 #define SBG_INTERFACE_UDP_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #include "sbgInterface.h"
29 
30 //----------------------------------------------------------------------//
31 //- Predefinitions -//
32 //----------------------------------------------------------------------//
33 
34 #define SBG_INTERFACE_UDP_PACKET_MAX_SIZE (1400)
35 
36 //----------------------------------------------------------------------//
37 //- Structures definitions -//
38 //----------------------------------------------------------------------//
39 
43 typedef struct _SbgInterfaceUdp
44 {
45  void *pUdpSocket;
47  uint32_t remotePort;
48  uint32_t localPort;
50 
51 //----------------------------------------------------------------------//
52 //- Public functions -//
53 //----------------------------------------------------------------------//
54 
69 
77 
86 
95 SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceUdpWrite(SbgInterface *pHandle, const void *pBuffer, size_t bytesToWrite);
96 
106 SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceUdpRead(SbgInterface *pHandle, void *pBuffer, size_t *pReadBytes, size_t bytesToRead);
107 
108 #ifdef __cplusplus
109 }
110 #endif
111 
112 #endif /* SBG_INTERFACE_UDP_H */
This file implements the base interface for all Serial and Ethernet ports.
#define SBG_COMMON_LIB_API
Definition: sbgDefines.h:58
struct _SbgInterfaceUdp SbgInterfaceUdp
sbgIpAddress remoteAddr
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceUdpDestroy(SbgInterface *pHandle)
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceUdpAllowBroadcast(SbgInterface *pHandle, bool allowBroadcast)
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceUdpWrite(SbgInterface *pHandle, const void *pBuffer, size_t bytesToWrite)
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceUdpRead(SbgInterface *pHandle, void *pBuffer, size_t *pReadBytes, size_t bytesToRead)
uint32_t sbgIpAddress
Definition: sbgTypes.h:64
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceUdpCreate(SbgInterface *pHandle, sbgIpAddress remoteAddr, uint32_t remotePort, uint32_t localPort)
enum _SbgErrorCode SbgErrorCode


sbg_driver
Author(s): SBG Systems
autogenerated on Thu Oct 22 2020 03:47:22