![]() |
snickerdoodle Platform Controller
firmware for STM32F0 platform controller
|
Functions | |
| enum sd_led_err | sd_led_init (struct sd_led *led, TIM_HandleTypeDef *tim, uint32_t chan, uint32_t *pattern, uint32_t len, TIM_HandleTypeDef *up_tim) |
| LED initialization Initialize an LED configuration on a timer peripheral with a pattern. More... | |
| enum sd_led_err | sd_led_enable (struct sd_led *led, uint8_t en) |
| LED Enable. | |
| enum sd_led_err | sd_led_reset (struct sd_led *led) |
| LED reset Reset the LED configuration and clear the pattern. More... | |
| enum sd_led_err | sd_led_queuehandler (struct sd_led *led) |
| LED queue handler Execute the LED pattern state machine. More... | |
| enum sd_led_err | sd_led_set_pattern (struct sd_led *led, uint32_t *pattern, uint32_t len, uint8_t repeat) |
| LED set pattern Set pattern for LED output. More... | |
| enum sd_led_err sd_led_init | ( | struct sd_led * | led, |
| TIM_HandleTypeDef * | tim, | ||
| uint32_t | chan, | ||
| uint32_t * | pattern, | ||
| uint32_t | len, | ||
| TIM_HandleTypeDef * | up_tim | ||
| ) |
#include <Src/sd_led.c>
LED initialization Initialize an LED configuration on a timer peripheral with a pattern.
| led | LED configuration |
| tim | Timer handle associated with the LED |
| chan | Timer channel for the LED |
| pattern | The pattern to initialize the LED with |
| len | Length of the pattern |
| up_tim | Update timer for patter queue |
| SD_LED_SUCCESS | on success, error status otherwise |
Only reenable the update timer if it was running prior to this function being called
| enum sd_led_err sd_led_queuehandler | ( | struct sd_led * | led | ) |
#include <Src/sd_led.c>
LED queue handler Execute the LED pattern state machine.
| led | The LED pattern handle |
| SD_LED_SUCCESS | on success, error status otherwise |
| enum sd_led_err sd_led_reset | ( | struct sd_led * | led | ) |
#include <Src/sd_led.c>
LED reset Reset the LED configuration and clear the pattern.
| led | LED configuration |
| SD_LED_SUCCESS | on success, error status otherwise |
| enum sd_led_err sd_led_set_pattern | ( | struct sd_led * | led, |
| uint32_t * | pattern, | ||
| uint32_t | len, | ||
| uint8_t | repeat | ||
| ) |
#include <Src/sd_led.c>
LED set pattern Set pattern for LED output.
| led | The LED pattern handle |
| pattern | The pattern to use for the LED |
| len | The length of the pattern |
| repeat | Set the pattern to repeat after ending |
| SD_LED_SUCCESS | on success, error status otherwise |