Solaris Software
Toggle main menu visibility
Loading...
Searching...
No Matches
custom.h
Go to the documentation of this file.
1
/**
2
* @file custom.h
3
* @brief Application-specific FSM configuration and error tracking.
4
*/
5
6
#ifndef CUSTOM_H
7
#define CUSTOM_H
8
9
/* ----------------------------------------------------------------
10
* INCLUDES
11
* ---------------------------------------------------------------- */
12
#include "
spp/services/fsm/fsm.h
"
13
14
/* ----------------------------------------------------------------
15
* DEFINES
16
* ---------------------------------------------------------------- */
17
#define K_CUSTOM_FSM_TABLE_SIZE (spp_uint8_t)(1U)
18
19
/* ----------------------------------------------------------------
20
* STRUCTS
21
* ---------------------------------------------------------------- */
22
typedef
union
23
{
24
spp_uint16_t
errors
;
25
struct
26
{
27
spp_uint16_t
fsmInitError
: 1;
28
spp_uint16_t
bmpPubsubError
: 1;
29
spp_uint16_t
icmPubsubError
: 1;
30
spp_uint16_t
datalogggerPubsubError
: 1;
31
spp_uint16_t
uartPubsubError
: 1;
32
spp_uint16_t
sx1262PubsubError
: 1;
33
spp_uint16_t
bmpInitError
: 1;
34
spp_uint16_t
icmInitError
: 1;
35
spp_uint16_t
dataloggerInitError
: 1;
36
spp_uint16_t
uartInitError
: 1;
37
spp_uint16_t
sx1262InitError
: 1;
38
spp_uint16_t
reserved
: 5;
39
};
40
}
FsmErrors_t
;
41
42
/* ----------------------------------------------------------------
43
* PUBLIC FUNCTIONS
44
* ---------------------------------------------------------------- */
45
46
/**
47
* @brief Returns the application-specific FSM transition table.
48
* @return Pointer to the statically allocated transition table.
49
*/
50
const
FSM_Transition_t
*
CUSTOM_getFsmTable
(
void
);
51
52
53
#endif
/* CUSTOM_H*/
CUSTOM_getFsmTable
const FSM_Transition_t * CUSTOM_getFsmTable(void)
Returns the application-specific FSM transition table.
Definition
custom.c:53
fsm.h
Finite State Machine (FSM) module for the SPP core.
FSM_Transition_t
A single row in the FSM transition table.
Definition
fsm.h:50
FsmErrors_t::[struct].__unnamed0__::uartPubsubError
spp_uint16_t uartPubsubError
FsmErrors_t::[struct].__unnamed0__::sx1262InitError
spp_uint16_t sx1262InitError
FsmErrors_t::[struct].__unnamed0__::dataloggerInitError
spp_uint16_t dataloggerInitError
FsmErrors_t::[struct].__unnamed0__::bmpInitError
spp_uint16_t bmpInitError
FsmErrors_t::[struct].__unnamed0__::sx1262PubsubError
spp_uint16_t sx1262PubsubError
FsmErrors_t::[struct].__unnamed0__::bmpPubsubError
spp_uint16_t bmpPubsubError
FsmErrors_t::[struct].__unnamed0__::fsmInitError
spp_uint16_t fsmInitError
FsmErrors_t::[struct].__unnamed0__::icmPubsubError
spp_uint16_t icmPubsubError
FsmErrors_t::[struct].__unnamed0__::uartInitError
spp_uint16_t uartInitError
FsmErrors_t::[struct].__unnamed0__::datalogggerPubsubError
spp_uint16_t datalogggerPubsubError
FsmErrors_t::[struct].__unnamed0__::reserved
spp_uint16_t reserved
FsmErrors_t::[struct].__unnamed0__::icmInitError
spp_uint16_t icmInitError
spp_uint16_t
uint16_t spp_uint16_t
Definition
types.h:29
FsmErrors_t
Definition
custom.h:23
FsmErrors_t::errors
spp_uint16_t errors
Definition
custom.h:24
solaris-v2
main
custom.h
Generated by
1.18.0