Read data asked for from the ring buffer.
int32_t adc_os_read_channel( struct adc_os_descriptor *const descr, const uint8_t channel, uint8_t *const buffer, const uint16_t length )
If the number of data in ring buffer less than want to read, the task/thread will be blocked until read is done.
Type: struct adc_os_descriptor Struct *const
The pointer to ADC descriptor
Type: const uint8_t
Channel number
A buffer to read data
Type: const uint16_t
The size of the buffer
Type: int32_t
The number of bytes the user wants to read.