rtems_status_code adc_open(const lpc176x_pin_number pin_number)
Opens and initializes the ADC device.
Definition: adc.c:101
rtems_status_code
Classic API Status.
Definition: status.h:43
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.
Definition: adc.c:228
Definitions types used by some devices in common.
uint32_t lpc176x_pin_number
A pin of the board.
Definition: common-types.h:32
rtems_status_code adc_close(void)
Closes the ADC device.
Definition: adc.c:120