13 #ifndef UdpReceiver_HPP
14 #define UdpReceiver_HPP
16 #include "Svc/UdpReceiver/UdpReceiverComponentAc.hpp"
22 public UdpReceiverComponentBase
34 const char *
const compName
67 static void workerTask(
void* ptr);
73 class UdpSerialBuffer :
80 UdpSerialBuffer& operator=(
const UdpSerialBuffer& other);
82 UdpSerialBuffer(
const UdpSerialBuffer& other);
87 return sizeof(m_buff);
96 if (loc >= (size-1) ) {
100 return (size - loc - 1);
108 const U8* getBuffAddr()
const {
118 UdpSerialBuffer m_portBuff;
120 U32 m_packetsReceived;
122 U32 m_packetsDropped;
PlatformIntType NATIVE_INT_TYPE
uint8_t U8
8-bit unsigned integer
PlatformUIntType NATIVE_UINT_TYPE
~UdpReceiverComponentImpl()
UdpReceiverComponentImpl(const char *const compName)
void open(const char *port)
Open the connection.
void startThread(NATIVE_UINT_TYPE priority, NATIVE_UINT_TYPE stackSize, NATIVE_UINT_TYPE affinity)
start worker thread
static const NATIVE_UINT_TYPE UDP_RECEIVER_MSG_SIZE