Functions | |
| u16 | UTIL_GetBat (void) |
| u16 | UTIL_GetTemp (void) |
| void | UTIL_SetTempMode (int mode) |
| u8 | UTIL_GetUsb (void) |
| void | UTIL_uint2str (char *ptr, u32 X, u16 digit, int fillwithzero) |
| void | UTIL_int2str (char *ptr, s32 X, u16 digit, int fillwithzero) |
| void | UTIL_SetPll (enum eSpeed speed) |
| enum eSpeed | UTIL_GetPll (void) |
| const char * | UTIL_GetVersion (void) |
| u16 | UTIL_ReadBackupRegister (u16 BKP_DR) |
| void | UTIL_WriteBackupRegister (u16 BKP_DR, u16 Data) |
| void | UTIL_SetIrqHandler (int Offs, tHandler pHDL) |
| tHandler | UTIL_GetIrqHandler (int Offs) |
| void | UTIL_SetSchHandler (enum eSchHandler Ix, tHandler pHDL) |
| tHandler | UTIL_GetSchHandler (enum eSchHandler Ix) |
| u16 UTIL_GetBat | ( | void | ) |
Return the batterie tension in mV.
| tHandler UTIL_GetIrqHandler | ( | int | Offs | ) |
Get the current IRQ handler. Since (V1.6) the vector table is relocated in RAM, the vectors can be easily modified by the applications.
| [in] | Offs | Address in the NVIC table |
| enum eSpeed UTIL_GetPll | ( | void | ) |
Get clock frequency
| tHandler UTIL_GetSchHandler | ( | enum eSchHandler | Ix | ) |
Get the current SCHEDULER handler. With UTIL_SetSchHandler(), these functions allow to take the control of the different handler. You can:
| [in] | Ix | ID is the SCH Handler |
| u16 UTIL_GetTemp | ( | void | ) |
Return the Temperature: degrees / 10, Celcius or Fahrenheit.
| u8 UTIL_GetUsb | ( | void | ) |
Return the USB connexion state.
| const char* UTIL_GetVersion | ( | void | ) |
Get CircleOS version.
| void UTIL_int2str | ( | char * | ptr, | |
| s32 | X, | |||
| u16 | digit, | |||
| int | fillwithzero | |||
| ) |
Convert a signed integer into a string.
| [out] | ptr | The output string. |
| [in] | X | The unsigned value to convert. |
| [in] | digit | The number of digits in the output string. |
| [in] | fillwithzero |
|
| u16 UTIL_ReadBackupRegister | ( | u16 | BKP_DR | ) |
Reads data from the specified Data Backup Register.
| [in] | BKP_DR | Specifies the Data Backup Register. This parameter can be BKP_DRx where x:[1, 10] |
| void UTIL_SetIrqHandler | ( | int | Offs, | |
| tHandler | pHDL | |||
| ) |
Redirect an IRQ handler.
| [in] | Offs | Address in the NVIC table |
| [in] | pHDL | Pointer to the handler. |
| void UTIL_SetPll | ( | enum eSpeed | speed | ) |
Set clock frequency (lower to save energy)
| [in] | speed | New clock speed from very low to very fast. |
| void UTIL_SetSchHandler | ( | enum eSchHandler | Ix, | |
| tHandler | pHDL | |||
| ) |
Redirect a SCHEDULER handler. Set the current SCHEDULER handler. With UTIL_GetSchHandler(), these functions allow to take the control of the different handler. You can:
| [in] | Ix | ID if the SCH Handler |
| [in] | pHDL | Pointer to the handler. |
| void UTIL_SetTempMode | ( | int | mode | ) |
Set the temperature mode (F/C)
| [in] | mode | 0: Celcius, 1: Fahrenheit |
| void UTIL_uint2str | ( | char * | ptr, | |
| u32 | X, | |||
| u16 | digit, | |||
| int | fillwithzero | |||
| ) |
Convert an unsigned integer into a string.
| [out] | ptr | The output string. |
| [in] | X | The unsigned value to convert. |
| [in] | digit | The number of digits in the output string. |
| [in] | fillwithzero |
|
| void UTIL_WriteBackupRegister | ( | u16 | BKP_DR, | |
| u16 | Data | |||
| ) |
Writes data to the specified Data Backup Register.
| [in] | BKP_DR | Specifies the Data Backup Register. This parameter can be BKP_DRx where x:[1, 10] |
| [in] | Data | The data to write. |