LED#
Sample API funtions for controlling LEDs.
See sl_si91x_led.c for source code.
Functions#
Configures GPIOs pertaining to the control of LEDs.
Atomically wraps an XOR or similar operation for a single GPIO pin attached to an LED.
Turns on (sets) a GPIO pin connected to an LED so that the LED turns on.
Turns off (clears) a GPIO pin connected to an LED, which turns off the LED.
Called by the stack to indicate activity over the radio (for both transmission and reception).
Function Documentation#
sl_si91x_led_init#
void sl_si91x_led_init (const sl_led_t * handle)
Configures GPIOs pertaining to the control of LEDs.
[in] | handle | The pointer to led structure that has the specific led information. |
42
of file components/device/silabs/si91x/mcu/drivers/hardware_drivers/led/inc/sl_si91x_led.h
sl_si91x_led_toggle#
void sl_si91x_led_toggle (uint8_t pin)
Atomically wraps an XOR or similar operation for a single GPIO pin attached to an LED.
[in] | pin | LED pin for the LED to be toggled. |
49
of file components/device/silabs/si91x/mcu/drivers/hardware_drivers/led/inc/sl_si91x_led.h
sl_si91x_led_set#
void sl_si91x_led_set (uint8_t pin)
Turns on (sets) a GPIO pin connected to an LED so that the LED turns on.
[in] | pin | LED pin for the LED to turn on. |
56
of file components/device/silabs/si91x/mcu/drivers/hardware_drivers/led/inc/sl_si91x_led.h
sl_si91x_led_clear#
void sl_si91x_led_clear (uint8_t pin)
Turns off (clears) a GPIO pin connected to an LED, which turns off the LED.
[in] | pin | LED pin for the LED to turn off. |
63
of file components/device/silabs/si91x/mcu/drivers/hardware_drivers/led/inc/sl_si91x_led.h
sl_si91x_led_StackIndicateActivity#
void sl_si91x_led_StackIndicateActivity (bool turnOn)
Called by the stack to indicate activity over the radio (for both transmission and reception).
N/A | turnOn | See Usage. |
It is called once with turnOn
true and shortly thereafter with turnOn
false.
Typically does something interesting, such as change the state of an LED.
74
of file components/device/silabs/si91x/mcu/drivers/hardware_drivers/led/inc/sl_si91x_led.h