PEController BSP v4
Board Support Package for PEController from Taraz Technologies
 
Loading...
Searching...
No Matches

Functions

void CopyString (char *dest, const char *src)
 Copy the source string to destination.
 
int strcat_custom (char *dest, const char *src, int destLen, bool insertSpace)
 Concatenates two strings.
 
int ftoa_custom (float f, char *txt, int maxDigits, int precision)
 This function converts the floating point number to character string.
 
bool atof_custom (const char *txt, float *f)
 Custom implementation to convert string to single precision number if possible.
 
int btoa_custom (bool b, char *txt)
 Custom implementation to convert boolean value to string.
 
bool atob_custom (const char *txt, bool *val)
 Custom implementation to convert string to boolean if possible.
 
int itoa_custom (int32_t val, char *txt)
 This function converts the integer number to character string.
 
int utoa_custom (uint32_t val, char *txt)
 This function converts the unsigned integer number to character string.
 
bool atoi_custom (const char *txt, int32_t *result)
 Custom implementation to convert string to integer if possible.
 
bool atou_custom (const char *txt, uint32_t *result)
 Custom implementation to convert string to unsigned integer if possible.
 

Detailed Description

Function Documentation

◆ atob_custom()

bool atob_custom ( const char *  txt,
bool *  val 
)
extern
Parameters
txtPointer to the text field.
valPointer to the boolean value to be updated
Returns
true if successful else false

◆ atof_custom()

bool atof_custom ( const char *  txt,
float *  val 
)
extern
Parameters
txtPointer to the text field.
valPointer to the single precision value to be updated
Returns
true if successful else false

◆ atoi_custom()

bool atoi_custom ( const char *  txt,
int32_t *  result 
)
extern
Parameters
txtText representation
resultResult of the conversion
Returns
true if successful else false

◆ atou_custom()

bool atou_custom ( const char *  txt,
uint32_t *  result 
)
extern
Parameters
txtText representation
resultResult of the conversion
Returns
true if successful else false

◆ btoa_custom()

int btoa_custom ( bool  b,
char *  txt 
)
extern
Parameters
bBoolean value.
txtPointer to the text field to be filled.
Returns
Number of characters in the string.

◆ CopyString()

void CopyString ( char *  dest,
const char *  src 
)
extern
Parameters
destCopy destination
srcSource string

◆ ftoa_custom()

int ftoa_custom ( float  f,
char *  txt,
int  maxDigits,
int  precision 
)
extern
Parameters
fSingle precision floating point number to be converted
txtPointer to the string
maxDigitsMax number of digits to be displayed
precisionPrecision of reading to be displayed to avoid showing negligible numbers
Returns
Number of characters in the string

◆ itoa_custom()

int itoa_custom ( int32_t  val,
char *  txt 
)
extern
Parameters
valValue of the integer
txtPointer to the string
Returns
Number of characters in the string.

◆ strcat_custom()

int strcat_custom ( char *  dest,
const char *  src,
int  destLen,
bool  insertSpace 
)
extern
Parameters
destDestination string containing the first part where the src part will be appended
srcString to be appened in destination
destLenLength of the first string
insertSpaceSelects if a space characters needs to be inserted in between the strings
Returns
Length of the resulting string

◆ utoa_custom()

int utoa_custom ( uint32_t  val,
char *  txt 
)
extern
Parameters
valValue of the unsigned integer
txtPointer to the string
Returns
Number of characters in the string.