roneos
Operating System for the r-one robot
 All Data Structures Files Functions Variables Typedefs Groups
basicPrinting.h File Reference

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...
 

Detailed Description

Print methods for converting data into strings with different formats.

Since
March 24, 2012
Author
: James McLurkin

Function Documentation

uint16 atoi_hex16 ( char *  string)

Convert 16-bit hex string to an integer.

Parameters
string16-bit hex string to be converted
Returns
hex integer version of input
uint32 atoi_hex32 ( char *  string)

Convert 32-bit hex string to an integer.

Parameters
string32-bit hex string to be converted
Returns
hex integer version of input
uint8 atoi_hex8 ( char *  string)

Convert 8-bit hex string to an integer.

Parameters
string8-bit hex string to be converted
Returns
hex integer version of input
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.

Parameters
stringis the char pointer that will point to the binary bitstring of val
valis the value to be converted to binary
Returns
a pointer to the binary string converted from val
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)

Parameters
cis the character to be converted
Returns
val is the integer value
void posePrint ( Pose posePtr)

Print a pose structure.

Print a pose structure. Prints in braces to be fancy.

Parameters
posePtris a pointer to a pose.
Returns
void