MBot Software Library
v1.0
An API documentation to mbot_firmware repository
|
Functions for generating formatted tables with integer or float data. More...
Go to the source code of this file.
Functions | |
void | generateTableInt (char *buf, int rows, int cols, const char *title, const char *headings[], int data[rows][cols]) |
Generates a formatted table with integer data. More... | |
void | generateTableFloat (char *buf, int rows, int cols, const char *title, const char *headings[], float data[rows][cols]) |
Generates a formatted table with floating-point data. More... | |
void | generateBottomLine (char *buf, int cols) |
Functions for generating formatted tables with integer or float data.
void generateTableFloat | ( | char * | buf, |
int | rows, | ||
int | cols, | ||
const char * | title, | ||
const char * | headings[], | ||
float | data[rows][cols] | ||
) |
Generates a formatted table with floating-point data.
[out] | buf | The output buffer for the table string. |
[in] | rows | The number of rows in the table. |
[in] | cols | The number of columns in the table. |
[in] | title | The title of the table. |
[in] | headings | The headings for each column. |
[in] | data | The floating-point data for the table. |
void generateTableInt | ( | char * | buf, |
int | rows, | ||
int | cols, | ||
const char * | title, | ||
const char * | headings[], | ||
int | data[rows][cols] | ||
) |
Generates a formatted table with integer data.
[out] | buf | The output buffer for the table string. |
[in] | rows | The number of rows in the table. |
[in] | cols | The number of columns in the table. |
[in] | title | The title of the table. |
[in] | headings | The headings for each column. |
[in] | data | The integer data for the table. |