|
K-FSW v1.2.1-59-gcaca356
KFSW: modular flight software on Zephyr, for small satellites
|
Public Headers | |
| file | button_test.h |
Data Structures | |
| struct | kfsw_button_test_status |
Enumerations | |
| enum | kfsw_button_test_led { KFSW_BUTTON_TEST_LED_GREEN , KFSW_BUTTON_TEST_LED_BLUE , KFSW_BUTTON_TEST_LED_RED , KFSW_BUTTON_TEST_LED_COUNT } |
Functions | |
| int | kfsw_button_test_init (void) |
| int | kfsw_button_test_get_status (struct kfsw_button_test_status *status) |
| int | kfsw_button_test_set_led (enum kfsw_button_test_led led, bool on) |
Variables | |
| const struct kfsw_param_definition_set | kfsw_button_test_param_definitions |
Debounced button, LEDs, status and parameters.
| enum kfsw_button_test_led |
#include <button_test.h>
Independently controlled LEDs in the developer hardware-test example.
| int kfsw_button_test_get_status | ( | struct kfsw_button_test_status * | status | ) |
#include <button_test.h>
Copy a consistent snapshot of the module state.
| status | Destination status structure. |
| int kfsw_button_test_init | ( | void | ) |
#include <button_test.h>
Initialize the module and its GPIO.
State starts at zero on each boot. A button already held at startup is not counted until it is released and pressed again.
| int kfsw_button_test_set_led | ( | enum kfsw_button_test_led | led, |
| bool | on | ||
| ) |
#include <button_test.h>
Set one LED.
| led | LED colour to control. |
| on | True to turn the LED on, false to turn it off. |
|
extern |
#include <button_test.h>
Parameter table of button_test.