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 Finite State Machine (FSM) module for the SPP core.
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)(2U)
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
e22mbl01PubsubError
: 1;
32
spp_uint16_t
m10mPubsubError
: 1;
33
spp_uint16_t
bmpInitError
: 1;
34
spp_uint16_t
icmInitError
: 1;
35
spp_uint16_t
dataloggerInitError
: 1;
36
spp_uint16_t
e22mbl01InitError
: 1;
37
spp_uint16_t
m10mInitError
: 1;
38
spp_uint16_t
reserved
: 5;
39
};
40
}
FsmErrors_t
;
41
42
/* ----------------------------------------------------------------
43
* PUBLIC FUNCTIONS
44
* ---------------------------------------------------------------- */
45
46
// TODO: Add Doxygen
47
const
FSM_Transition_t
*
CUSTOM_getFsmTable
(
void
);
48
49
spp_uint32_t
CUSTOM_getBusyTimeUs
(
void
);
50
spp_uint16_t
CUSTOM_getProcessedSamples
(
void
);
51
52
53
#endif
/* CUSTOM_H*/
CUSTOM_getFsmTable
const FSM_Transition_t * CUSTOM_getFsmTable(void)
Definition
custom.c:66
CUSTOM_getProcessedSamples
spp_uint16_t CUSTOM_getProcessedSamples(void)
Definition
custom.c:76
CUSTOM_getBusyTimeUs
spp_uint32_t CUSTOM_getBusyTimeUs(void)
Definition
custom.c:71
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:49
FsmErrors_t::[struct].__unnamed0__::dataloggerInitError
spp_uint16_t dataloggerInitError
FsmErrors_t::[struct].__unnamed0__::bmpInitError
spp_uint16_t bmpInitError
FsmErrors_t::[struct].__unnamed0__::m10mPubsubError
spp_uint16_t m10mPubsubError
FsmErrors_t::[struct].__unnamed0__::e22mbl01InitError
spp_uint16_t e22mbl01InitError
FsmErrors_t::[struct].__unnamed0__::m10mInitError
spp_uint16_t m10mInitError
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__::datalogggerPubsubError
spp_uint16_t datalogggerPubsubError
FsmErrors_t::[struct].__unnamed0__::e22mbl01PubsubError
spp_uint16_t e22mbl01PubsubError
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
spp_uint32_t
uint32_t spp_uint32_t
Definition
types.h:31
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