NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
blackbox_io.h File Reference

Go to the source code of this file.

Macros

#define BLACKBOX_MAX_ACCUMULATED_HEADER_BUDGET   256
 
#define BLACKBOX_TARGET_HEADER_BUDGET_PER_ITERATION   64
 

Enumerations

enum  blackboxBufferReserveStatus_e { BLACKBOX_RESERVE_SUCCESS, BLACKBOX_RESERVE_TEMPORARY_FAILURE, BLACKBOX_RESERVE_PERMANENT_FAILURE }
 

Functions

void blackboxWrite (struct blackbox *self, uint8_t value)
 
int blackboxPrintf (const char *fmt,...)
 
void blackboxPrintfHeaderLine (const char *fmt,...)
 
int blackboxPrint (const char *s)
 
void blackboxWriteUnsignedVB (uint32_t value)
 
void blackboxWriteSignedVB (int32_t value)
 
void blackboxWriteSignedVBArray (int32_t *array, int count)
 
void blackboxWriteSigned16VBArray (int16_t *array, int count)
 
void blackboxWriteS16 (int16_t value)
 
void blackboxWriteTag2_3S32 (int32_t *values)
 
void blackboxWriteTag8_4S16 (int32_t *values)
 
void blackboxWriteTag8_8SVB (int32_t *values, int valueCount)
 
void blackboxWriteU32 (int32_t value)
 
void blackboxWriteFloat (float value)
 
void blackboxDeviceFlush (void)
 
bool blackboxDeviceFlushForce (void)
 
bool blackboxDeviceOpen (void)
 
void blackboxDeviceClose (void)
 
bool blackboxDeviceBeginLog (void)
 
bool blackboxDeviceEndLog (bool retainLog)
 
bool isBlackboxDeviceFull (void)
 
void blackboxReplenishHeaderBudget (void)
 
blackboxBufferReserveStatus_e blackboxDeviceReserveBufferSpace (int32_t bytes)
 

Variables

int32_t blackboxHeaderBudget
 

Macro Definition Documentation

#define BLACKBOX_MAX_ACCUMULATED_HEADER_BUDGET   256
#define BLACKBOX_TARGET_HEADER_BUDGET_PER_ITERATION   64

Enumeration Type Documentation

Enumerator
BLACKBOX_RESERVE_SUCCESS 
BLACKBOX_RESERVE_TEMPORARY_FAILURE 
BLACKBOX_RESERVE_PERMANENT_FAILURE 

Function Documentation

bool blackboxDeviceBeginLog ( void  )
void blackboxDeviceClose ( void  )
bool blackboxDeviceEndLog ( bool  retainLog)
void blackboxDeviceFlush ( void  )
bool blackboxDeviceFlushForce ( void  )
bool blackboxDeviceOpen ( void  )
blackboxBufferReserveStatus_e blackboxDeviceReserveBufferSpace ( int32_t  bytes)
int blackboxPrint ( const char *  s)
int blackboxPrintf ( const char *  fmt,
  ... 
)
void blackboxPrintfHeaderLine ( const char *  fmt,
  ... 
)
void blackboxReplenishHeaderBudget ( void  )
void blackboxWrite ( struct blackbox self,
uint8_t  value 
)
void blackboxWriteFloat ( float  value)
void blackboxWriteS16 ( int16_t  value)
void blackboxWriteSigned16VBArray ( int16_t *  array,
int  count 
)
void blackboxWriteSignedVB ( int32_t  value)
void blackboxWriteSignedVBArray ( int32_t *  array,
int  count 
)
void blackboxWriteTag2_3S32 ( int32_t *  values)
void blackboxWriteTag8_4S16 ( int32_t *  values)
void blackboxWriteTag8_8SVB ( int32_t *  values,
int  valueCount 
)
void blackboxWriteU32 ( int32_t  value)
void blackboxWriteUnsignedVB ( uint32_t  value)
bool isBlackboxDeviceFull ( void  )

Variable Documentation

int32_t blackboxHeaderBudget