| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

Functions
Private Functions
BLUENRG1 Peripheral Driver » ADC Peripheral

## Functions

float | ADC_ConvertDifferentialVoltage (int32_t raw_value, uint8_t attenuation)
| Convert raw ADC value in converted differential voltage value. More...
float | ADC_ConvertSingleEndedVoltage (int32_t raw_value, uint8_t channel, uint8_t vRef, uint8_t attenuation)
| Convert raw ADC value in converted single ended voltage value. More...
float | ADC_ConvertBatterySensor (int32_t raw_value, uint8_t vRef)
| Convert raw ADC value in battery level. More...
float | ADC_ConvertTemperatureSensor (int32_t raw_value, uint8_t vRef, uint8_t attenuation)
| Convert raw ADC value in temperature level. More...

## Detailed Description

## Function Documentation

float ADC_ConvertBatterySensor | ( | int32_t | raw_value,
|  | uint8_t | vRef
| ) |  |

Convert raw ADC value in battery level.

Parameters

  raw_value | ADC raw value
  vRef | the configured reference voltage

Return values

  float | converted battery level

Definition at line 171 of file BlueNRG1_adc.c.

float ADC_ConvertDifferentialVoltage | ( | int32_t | raw_value,
|  | uint8_t | attenuation
| ) |  |

Convert raw ADC value in converted differential voltage value.

Parameters

  raw_value | ADC raw value

Return values

  float | converted differential voltage value

Definition at line 81 of file BlueNRG1_adc.c.

float ADC_ConvertSingleEndedVoltage | ( | int32_t | raw_value,
|  | uint8_t | channel,
|  | uint8_t | vRef,
|  | uint8_t | attenuation
| ) |  |

Convert raw ADC value in converted single ended voltage value.

Parameters

  raw_value | ADC raw value
  channel | the selected single channel type
  vRef | the configured reference voltage

Return values

  float | converted single ended voltage value

Definition at line 117 of file BlueNRG1_adc.c.

float ADC_ConvertTemperatureSensor | ( | int32_t | raw_value,
|  | uint8_t | vRef,
|  | uint8_t | attenuation
| ) |  |

Convert raw ADC value in temperature level.

Parameters

  raw_value | ADC raw value
  vRef | the configured reference voltage

Return values

  float | converted temperature level

Definition at line 182 of file BlueNRG1_adc.c.