![]() |
roneos
Operating System for the r-one robot
|
Print methods for converting data into strings with different formats. More...
Go to the source code of this file.
Functions | |
char * | bitString8 (char *string, uint8 val) |
Function that allows us to print binary. More... | |
uint8 | ctoi_hex4 (char c) |
Convert single character to an integer. More... | |
uint8 | atoi_hex8 (char *string) |
Convert 8-bit hex string to an integer. More... | |
uint16 | atoi_hex16 (char *string) |
Convert 16-bit hex string to an integer. More... | |
uint32 | atoi_hex32 (char *string) |
Convert 32-bit hex string to an integer. More... | |
void | posePrint (Pose *posePtr) |
Print a pose structure. More... | |
Print methods for converting data into strings with different formats.
uint16 atoi_hex16 | ( | char * | string) |
Convert 16-bit hex string to an integer.
string | 16-bit hex string to be converted |
uint32 atoi_hex32 | ( | char * | string) |
Convert 32-bit hex string to an integer.
string | 32-bit hex string to be converted |
uint8 atoi_hex8 | ( | char * | string) |
Convert 8-bit hex string to an integer.
string | 8-bit hex string to be converted |
char* bitString8 | ( | char * | string, |
uint8 | val | ||
) |
Function that allows us to print binary.
Creates a binary version of the input character in the space given by string.
string | is the char pointer that will point to the binary bitstring of val |
val | is the value to be converted to binary |
uint8 ctoi_hex4 | ( | char | c) |
Convert single character to an integer.
Converts a single character that represents a unicode number (hex) to a unicode number(integer)
c | is the character to be converted |
void posePrint | ( | Pose * | posePtr) |
Print a pose structure.
Print a pose structure. Prints in braces to be fancy.
posePtr | is a pointer to a pose. |