Function si8900_init(UART_HandleTypeDef *, GPIO_TypeDef *, uint16_t)¶
- Defined in File si8900.h
Function Documentation¶
-
bool
si8900_init
(UART_HandleTypeDef *huart, GPIO_TypeDef *reset_gpio, uint16_t reset_pin) Initializes the ADC.
This function does the auto-baudrate detection initialization function described in si’s datasheet: https://www.silabs.com/documents/public/application-notes/AN635.pdf
- Warning
- Make sure the default value of the reset pin is in a non-reset position for the Si8900 E.G. In CubeMX, the GPIO Output Level is LOW for Fenice’s mainboard v1.0.5 (pin Si890x reset on the schematic)
- Return
- whether the initialization ended successfully.
- Parameters
huart
: The UART configuration structurereset_gpio
: GPIO group for the ADC reset pinreset_pin
: ADC reset pin number