c_tlm_binary.c File Reference
Include dependency graph for c_tlm_binary.c:

Functions | |
uint32_t | tlm_binary_get_size_one (tlm_component *comp_ptr) |
uint32_t | tlm_binary_get_size_all (void) |
uint32_t | tlm_binary_get_one (tlm_component *comp_ptr, char *binary) |
uint32_t | tlm_binary_get_all (char *binary) |
bool | tlm_binary_compare_one (tlm_component *comp_ptr, char *binary) |
bool | tlm_binary_compare_all (char *binary) |
Function Documentation
bool tlm_binary_compare_all | ( | char * | binary | ) |
bool tlm_binary_compare_one | ( | tlm_component * | comp_ptr, |
char * | binary | ||
) |
Compare the binary data with the latest telemetry's binary data
- Parameters
-
comp_ptr The component pointer binary The binary data at which to compare
- Returns
- true if the binary data is the same as the latest telemetry data
uint32_t tlm_binary_get_all | ( | char * | binary | ) |
uint32_t tlm_binary_get_one | ( | tlm_component * | comp_ptr, |
char * | binary | ||
) |
Copy the telemetry data to the provided memory pointer
- Parameters
-
comp_ptr The component pointer binary The data pointer to which data will be copied
- Returns
- The number of bytes copied into the data pointer.
uint32_t tlm_binary_get_size_all | ( | void | ) |
uint32_t tlm_binary_get_size_one | ( | tlm_component * | comp_ptr | ) |
Get the size of the binary data which should be used to allocate memory before calling tlm_binary_get_xxx() functions.
- Parameters
-
comp_ptr The component pointer