K-FSW v1.2.1-59-gcaca356
KFSW: modular flight software on Zephyr, for small satellites
Loading...
Searching...
No Matches
button_test.h File Reference
#include <stdbool.h>
#include <stdint.h>

Data Structures

struct  kfsw_button_test_status
 

Macros

#define KFSW_BUTTON_TEST_PARAM_TABLE_ID   67U
 
#define KFSW_BUTTON_TEST_PARAM_TABLE_NAME   "hw_test"
 

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
 

Description

Debounced button state and typed status API.

Macro Documentation

◆ KFSW_BUTTON_TEST_PARAM_TABLE_ID

#define KFSW_BUTTON_TEST_PARAM_TABLE_ID   67U

Parameter table of the button example, in the module band.

◆ KFSW_BUTTON_TEST_PARAM_TABLE_NAME

#define KFSW_BUTTON_TEST_PARAM_TABLE_NAME   "hw_test"

Parameter table name, kept from when the module was the hardware test.