TaskParameters 8.1.12
Compiled `c` library for task parameter data structures and functions.
Loading...
Searching...
No Matches
Parameter Packing

Handles initializing, packing, unpacking, and console print of Parameter data structures.
More...

Functions

void initParameters (TaskParameters *params)
 Initializes task parameters with default values.
 
void printParameters (const TaskParameters *params, const char *identifier)
 Prints task parameters to the terminal for debugging purposes.
 
void packParameters (const TaskParameters *params, char *buffer)
 Packs TaskParameters struct into a byte buffer.
 
void unpackParameters (TaskParameters *params, const char *buffer)
 Unpacks byte buffer into TaskParameters struct.
 
void updateTag (TaskParameters *params, uint16_t index)
 Updates the tag parameter field, using current value of params->value->orientation.
 

Detailed Description

Handles initializing, packing, unpacking, and console print of Parameter data structures.

Function Documentation

◆ initParameters()

void initParameters ( TaskParameters * params)

Initializes task parameters with default values.

This function initializes the given task parameters with default values.

Parameters
paramsPointer to the TaskParameters struct to initialize.

◆ packParameters()

void packParameters ( const TaskParameters * params,
char * buffer )

Packs TaskParameters struct into a byte buffer.

Parameters
paramsPointer to the TaskParameters struct to pack.
bufferPointer to the byte buffer where packed data will be stored.

◆ printParameters()

void printParameters ( const TaskParameters * params,
const char * identifier )

Prints task parameters to the terminal for debugging purposes.

This function prints the given task parameters to the terminal in a human-readable format for debugging purposes.

Parameters
paramsPointer to the TaskParameters struct to print.
identifierString to use as per-line identifier or formatter to help the console output be readable.

◆ unpackParameters()

void unpackParameters ( TaskParameters * params,
const char * buffer )

Unpacks byte buffer into TaskParameters struct.

Parameters
paramsPointer to the TaskParameters struct to populate.
bufferPointer to the byte buffer containing packed data.

◆ updateTag()

void updateTag ( TaskParameters * params,
uint16_t index )

Updates the tag parameter field, using current value of params->value->orientation.

Parameters
paramsPointer to the TaskParameters struct to populate.
indexSet index for the current set.