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.
9 #ifndef GroundInterface_HPP
10 #define GroundInterface_HPP
12 #define GND_BUFFER_SIZE 1024
13 #define TOKEN_TYPE U32
14 #define HEADER_SIZE (2 * sizeof(TOKEN_TYPE))
32 const char *
const compName
53 void downlinkPort_handler(
PRIVATE Fw::ComBuffer U32 context
void fileDownlinkBufferSendIn_handler(const NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)
void frame_send(U8 *data, TOKEN_TYPE size, TOKEN_TYPE packet_type=Fw::ComPacket::FW_PACKET_UNKNOWN)
~GroundInterfaceComponentImpl(void)
#define PRIVATE
overridable private for unit testing
uint8_t U8
8-bit unsigned integer
GroundInterfaceComponentImpl(const char *const compName)
PRIVATE Fw::ComBuffer & data
void processRing()
Process all the data in the ring.
void routeComData()
Processes the out-going data into coms order.
U8 m_buffer[GND_BUFFER_SIZE]
static const U32 MAX_DATA_SIZE
U8 m_in_buffer[GND_BUFFER_SIZE]
void init(void)
Object initializer.
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
void schedIn_handler(const NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE context)
PRIVATE NATIVE_INT_TYPE portNum
static const TOKEN_TYPE START_WORD
void readCallback_handler(const NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)
Types::CircularBuffer m_in_ring
TOKEN_TYPE m_data_size
Data size expected in incoming data.
PROTECTED Fw::Buffer & fwBuffer
static const U32 END_WORD
int NATIVE_INT_TYPE
native integer type declaration
Auto-generated base for GroundInterface component.
void processBuffer(Fw::Buffer &data)
Process a data buffer containing a read from the serial port.