F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
13 #ifndef UdpReceiver_HPP
14 #define UdpReceiver_HPP
16 #include "Svc/UdpReceiver/UdpReceiverComponentAc.hpp"
22 public UdpReceiverComponentBase
34 const char *
const compName
93 return sizeof(m_buff);
102 if (loc >= (size-1) ) {
106 return (size - loc - 1);
U8 * getBuffAddr(void)
gets buffer address for data filling
U32 m_packetsReceived
number of packets received
#define PRIVATE
overridable private for unit testing
const U8 * getBuffAddr(void) const
gets buffer address for data reading, const version
U8 m_currSeq
current tracked sequence number
uint8_t U8
8-bit unsigned integer
void doRecv(void)
receives a single packet (helps unit testing)
U32 m_decodeErrors
deserialization errors
Svc::UdpReceiverComponentImpl::UdpSerialBuffer m_recvBuff
NATIVE_INT_TYPE m_fd
socket file descriptor
void init(const NATIVE_INT_TYPE instance=0)
PRIVATE NATIVE_UINT_TYPE context
bool m_firstSeq
first sequence number detected
NATIVE_UINT_TYPE getBuffSerLeft(void) const
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
~UdpReceiverComponentImpl(void)
NATIVE_UINT_TYPE getBuffCapacity(void) const
returns capacity, not current size, of buffer
void open(const char *port)
Open the connection.
NATIVE_UINT_TYPE getBuffLength() const
returns current buffer size
void startThread(NATIVE_UINT_TYPE priority, NATIVE_UINT_TYPE stackSize, NATIVE_UINT_TYPE affinity)
start worker thread
UdpReceiverComponentImpl(const char *const compName)
const SerializeBufferBase & operator=(const SerializeBufferBase &src)
equal operator
UdpSerialBuffer m_portBuff
working buffer for decoding packets
U32 m_bytesReceived
number of bytes received
static const NATIVE_UINT_TYPE UDP_RECEIVER_MSG_SIZE
U32 m_packetsDropped
number of detected packets dropped
int NATIVE_INT_TYPE
native integer type declaration
static void workerTask(void *ptr)
worker task entry point