Library Functions.
More...
Library Functions.
| void TM_ADC_DisableVbat |
( |
void |
| ) |
|
Disables Vbat channel for ADC.
- Parameters
-
- Return values
-
| void TM_ADC_EnableVbat |
( |
void |
| ) |
|
Enables Vbat channel for ADC.
- Parameters
-
- Return values
-
Initializes ADCx with ADCx channel.
- Parameters
-
| *ADCx | ADCx peripheral to operate with |
| channel | channel for ADCx. This parameter can be a value of TM_ADC_Channel_t enumeration |
- Return values
-
| void TM_ADC_InitADC |
( |
ADC_TypeDef * |
ADCx | ) |
|
Initializes ADCx peripheral.
- Parameters
-
| *ADCx | ADCx peripheral to initialize |
- Return values
-
Reads from ADCx channel.
- Parameters
-
| *ADCx | ADCx peripheral to operate with |
| channel | channel for ADCx to read from. This parameter can be a value of TM_ADC_Channel_t enumeration |
- Return values
-
| uint16_t TM_ADC_ReadVbat |
( |
ADC_TypeDef * |
ADCx | ) |
|
Reads vbat pin voltage.
- Parameters
-
| *ADCx | ADCx peripheral to use for Vbat measurement |
- Return values
-