Nexus Embedded Platform
0.1.0
Statically assembled reusable embedded mechanisms
Loading...
Searching...
No Matches
fault.h
Go to the documentation of this file.
1
6
#ifndef NEXUS_CORE_FAULT_H
7
#define NEXUS_CORE_FAULT_H
8
#include "
nexus/core/status.h
"
9
#ifdef __cplusplus
10
extern
"C"
{
11
#endif
13
typedef
enum
{
14
NX_FAULT_FREERTOS_ASSERT
= 0,
15
NX_FAULT_FREERTOS_STACK
,
16
NX_FAULT_THREADX_ADAPTER
,
17
NX_FAULT_PLATFORM
18
}
nx_fault_domain_t
;
19
39
void
nx_fault_observe
(
nx_fault_domain_t
domain,
nx_result_t
reason,
40
const
char
* file,
unsigned
line);
41
#ifdef __cplusplus
42
}
43
#endif
44
#endif
nx_fault_domain_t
nx_fault_domain_t
Fault origin, without any product safety or recovery decision.
Definition
fault.h:13
NX_FAULT_THREADX_ADAPTER
@ NX_FAULT_THREADX_ADAPTER
Definition
fault.h:16
NX_FAULT_PLATFORM
@ NX_FAULT_PLATFORM
Definition
fault.h:17
NX_FAULT_FREERTOS_STACK
@ NX_FAULT_FREERTOS_STACK
Definition
fault.h:15
NX_FAULT_FREERTOS_ASSERT
@ NX_FAULT_FREERTOS_ASSERT
Definition
fault.h:14
nx_fault_observe
void nx_fault_observe(nx_fault_domain_t domain, nx_result_t reason, const char *file, unsigned line)
Observe a terminal fault before the caller retains effects.
status.h
Small vendor-independent result vocabulary.
nx_result_t
nx_result_t
Operation result; success at submission means admission only.
Definition
status.h:21
core
include
nexus
core
fault.h
Generated by
1.14.0