Util_spe2.c File Reference

Various harware specific utilities for CircleOS. More...

Go to the source code of this file.

Functions

u16 UTIL_GetBat (void)
u16 UTIL_GetTemp (void)
void UTIL_SetPll (enum eSpeed speed)
backup_t UTIL_ReadBackupRegister (index_t BKP_DR)
void UTIL_WriteBackupRegister (index_t BKP_DR, backup_t Data)
u16 UTIL_GetPrimerType (void)

Detailed Description

Author:
YRT
Date:
09/2009
Note:
Platform Open4 STM32C & STM32E

Definition in file Util_spe2.c.


Function Documentation

u16 UTIL_GetBat ( void   ) 

Return the battery tension in mV.

Returns:
Battery tension in mV.

Definition at line 103 of file Util_spe2.c.

u16 UTIL_GetPrimerType ( void   ) 

Get the current type of the PRIMER.

Returns:
1 = PRIMER 1, 2 = PRIMER 2, 4 = OPEN4.

Definition at line 405 of file Util_spe2.c.

u16 UTIL_GetTemp ( void   ) 

Return the Temperature: degrees / 10, Celcius or Fahrenheit.

Returns:
The temperature (C or F) (averaging of several channels).

Definition at line 145 of file Util_spe2.c.

backup_t UTIL_ReadBackupRegister ( index_t  BKP_DR  ) 

Reads data from the specified Data Backup Register.

Parameters:
[in] BKP_DR Specifies the Data Backup Register. This parameter can be BKP_DRx where x:[1, 10]
Returns:
The content of the specified Data Backup Register.

Definition at line 351 of file Util_spe2.c.

void UTIL_SetPll ( enum eSpeed  speed  ) 

Set clock frequency (lower to save energy)

Parameters:
[in] speed New clock speed from very low to very fast.
Note:
: STM32F10X_CL = STM32F107 STM32L1XX_MD = STM32L152 others = STM32E

Definition at line 188 of file Util_spe2.c.

void UTIL_WriteBackupRegister ( index_t  BKP_DR,
backup_t  Data 
)

Writes data to the specified Data Backup Register.

Parameters:
[in] BKP_DR Specifies the Data Backup Register. This parameter can be BKP_DRx where x:[1, 10]
[in] Data The data to write.

Definition at line 378 of file Util_spe2.c.