 |
F´ Flight Software - C/C++ Documentation
NASA-v2.0.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
31 GenericHubComponentBase::init(instance);
36 void GenericHubComponentImpl ::send_data(
const HubType type,
46 status = serialize.
serialize(
static_cast<U32
>(type));
48 status = serialize.
serialize(
static_cast<U32
>(port));
53 dataOut_out(0, outgoing);
63 bufferDeallocate_out(0, fwBuffer);
66 void GenericHubComponentImpl ::dataIn_handler(
const NATIVE_INT_TYPE portNum,
83 type =
static_cast<HubType>(type_in);
93 FW_ASSERT(rawSize ==
static_cast<U32
>(size));
97 status = wrapper.setBuffLen(rawSize);
99 portOut_out(port, wrapper);
100 dataInDeallocate_out(0, fwBuffer);
103 buffersOut_out(port, fwBuffer);
SerializeStatus
forward declaration for string
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
uint8_t U8
8-bit unsigned integer
void init(const NATIVE_INT_TYPE instance=0)
~GenericHubComponentImpl(void)
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.
SerializeBufferBase & getSerializeRepr()
virtual U8 * getBuffAddr(void)=0
gets buffer address for data filling
@ HUB_TYPE_BUFFER
Buffer type transmission.
void set(U8 *data, U32 size, U32 context=NO_CONTEXT)
SerializeStatus setBuffLen(NATIVE_UINT_TYPE length)
sets buffer length manually after filling with data
NATIVE_UINT_TYPE getBuffLength() const
returns current buffer size
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
#define FW_PORT_SERIALIZATION
Indicates whether there is code in ports to serialize the call (more code, but ability to serialize c...
FW_STATIC_ASSERT(FW_PORT_SERIALIZATION)
@ HUB_TYPE_PORT
Port type transmission.
Declares ISF basic types.
GenericHubComponentImpl(const char *const compName)
#define FwBuffSizeType
Type representation for storing a buffer or string size.
int NATIVE_INT_TYPE
native integer type declaration