![]() |
MSPM0_ValvanoWare
1.0
ECE445L starter code
|
12-bit ADC input More...
Go to the source code of this file.
Functions | |
| void | ADCinit (void) |
| Initialize ADC. More... | |
| uint32_t | ADCin (void) |
| Input from PB18. More... | |
| uint32_t | Convert (uint32_t input) |
| Input from PB18. More... | |
| float | FloatConvert (uint32_t input) |
| Input from PB18. More... | |
12-bit ADC input
12-bit ADC input on ADC1 channel 5, PB18
| uint32_t ADCin | ( | void | ) |
Input from PB18.
Input from 12-bit ADC
| none |
| void ADCinit | ( | void | ) |
Initialize ADC.
Initialize 12-bit ADC
| none |
| uint32_t Convert | ( | uint32_t | input | ) |
Input from PB18.
Convert raw 12-bit ADC to fixed point distance
| input | 12-bit ADC raw sample |
| float FloatConvert | ( | uint32_t | input | ) |
Input from PB18.
Convert raw 12-bit ADC to distance
| input | 12-bit ADC raw sample |