RTEMS
5.0.0
|
ADC library for the lpc176x bsp. More...
Go to the source code of this file.
Functions | |
rtems_status_code | adc_open (const lpc176x_pin_number pin_number) |
Opens and initializes the ADC device. More... | |
rtems_status_code | adc_close (void) |
Closes the ADC device. More... | |
rtems_status_code | adc_read (const lpc176x_pin_number pin_number, float *const result) |
Starts a conversion, waits for it to finish and reads the value. More... | |
ADC library for the lpc176x bsp.
rtems_status_code adc_close | ( | void | ) |
Closes the ADC device.
rtems_status_code adc_open | ( | const lpc176x_pin_number | pin_number | ) |
Opens and initializes the ADC device.
adc_number | The ADC pin number to be initialized. |
rtems_status_code adc_read | ( | const lpc176x_pin_number | pin_number, |
float *const | result | ||
) |
Starts a conversion, waits for it to finish and reads the value.
pin_number | The port to read the value. |
result | The read result. (In a percentage between 0.0f and 1.0f). |