Timothy Mulrooney / Mbed 2 deprecated frdm_i2c_test

Dependencies:   PinDetect libmDot mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

utilities.cpp File Reference

utilities.cpp File Reference

functions used by other files. More...

Go to the source code of this file.

Functions

void date (void)
 gets current time and date.
void setDate (char *str)
 gets current time and date.
float strtofloat (char *str)
 converts an ASCII string to float.
uint16 power (uint8 num, uint8 pow)
 takes number(num) to power(pow)

Detailed Description

functions used by other files.

Definition in file utilities.cpp.


Function Documentation

void date ( void   )

gets current time and date.

gets date current time and date since last set date command. there is no real time clock in the system so date is relative.

Returns:
None

Definition at line 32 of file utilities.cpp.

uint16 power ( uint8  num,
uint8  pow 
)

takes number(num) to power(pow)

This routine takes an 8 bit integer num and raises it ot the power pow.

Parameters:
[in]num- 8 bit integer number
[in]pow- 8 bit power to raise num
Returns:
uint16 - 16 bit num to the power pow

Definition at line 193 of file utilities.cpp.

void setDate ( char *  str )

gets current time and date.

gets date current time and date since last set date command. there is no real time clock in the system so date is relative.

Returns:
None

Definition at line 51 of file utilities.cpp.

float strtofloat ( char *  str )

converts an ASCII string to float.

This routine converts a floating point number in the form xx.yy to a floating point number.

Parameters:
[in]str- pointer to a character string containing the floating point number
Returns:
float - converted number

Definition at line 106 of file utilities.cpp.