Function si8900_read_channel(UART_HandleTypeDef *, SI8900_CHANNEL, uint16_t *)

Function Documentation

bool si8900_read_channel(UART_HandleTypeDef *huart, SI8900_CHANNEL ch, uint16_t *voltage)

Reads a single ADC channel in demand mode.

Return
whether the reading succeded
Parameters
  • huart: The UART configuration structure
  • ch: The channel
  • voltage: The output voltage