Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: PinDetect libmDot mbed-rtos mbed
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.
Generated on Sat Jul 16 2022 13:04:30 by
1.7.2