SCAMP-5c SPI Interface  1.0.0
SCAMP-5c is connected to the flight computer via a SPI interface
Public Member Functions | Protected Attributes | Friends
scamp5c_spi::packet Class Reference

the SPI packet class More...

#include <scamp5c_spi.hpp>

Public Member Functions

uint32_t GetPayloadSize ()
 get the size of the payload More...
 
uint8_t * GetPayload ()
 get the pointer to the payload data More...
 
uint8_t GetType ()
 
uint32_t GetSerialNumber ()
 
packet_header * GetHeader ()
 

Protected Attributes

uint32_t sn
 
double time
 
size_t size
 
uint8_t * data
 
packet_header * header_ptr
 
uint8_t * payload_ptr
 

Friends

class scamp5c_spi
 

Detailed Description

the SPI packet class

Member Function Documentation

uint32_t scamp5c_spi::packet::GetPayloadSize ( )
inline

get the size of the payload

Returns
number of bytes
uint8_t* scamp5c_spi::packet::GetPayload ( )
inline

get the pointer to the payload data

Returns
a pointer to the payload data

The documentation for this class was generated from the following file: