|
HRI board firmware
v2.1
Microcontroller firmware of the board used during the HRI labs.
|
Functions | |
| void | adc_DmaInit (void) |
| Setup the DMA that copies the current ADC samples to the RAM. More... | |
| void | adc_Init (void) |
| Initialize the ADC converter (2 analog inputs + current sense). More... | |
| void | adc_CalibrateCurrentSens (void) |
| Compute the current sense offset. More... | |
| float32_t | adc_GetCurrent (void) |
| Compute the current sense offset. More... | |
| void | adc_StartConversion (AdcChannel channel) |
| Start the ADC conversion of the selected channel. More... | |
| bool | adc_ConversionIsFinished (void) |
| Gets the ADC conversion status of the selected channel. More... | |
| float32_t | adc_GetConversionResult (void) |
| Gets the voltage measured by the selected ADC channel. More... | |
| float32_t | adc_GetChannelVoltage (AdcChannel channel) |
| Gets the voltage measured by the selected ADC channel. More... | |
Variables | |
| volatile uint16_t | adc_currentValuesBuffer [ADC_BUFFER_SIZE] |
| bfilt_BasicFilter | adc_currentFilter |
| float32_t | adc_currentSensOffset = 0.0f |
| bool adc_ConversionIsFinished | ( | void | ) |
Gets the ADC conversion status of the selected channel.
| 1 | if the conversion is finished, 0 otherwise. |
| void adc_DmaInit | ( | void | ) |
Setup the DMA that copies the current ADC samples to the RAM.
| float32_t adc_GetConversionResult | ( | void | ) |
Gets the voltage measured by the selected ADC channel.
| void adc_StartConversion | ( | AdcChannel | channel | ) |
Start the ADC conversion of the selected channel.
| channel | the ADC channel to acquire. |
| bfilt_BasicFilter adc_currentFilter |
| float32_t adc_currentSensOffset = 0.0f |
| volatile uint16_t adc_currentValuesBuffer[ADC_BUFFER_SIZE] |
1.8.13