STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
self_test_port.h File Reference
#include <stdbool.h>
#include <stdint.h>
Include dependency graph for self_test_port.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  self_test_reply_t
struct  self_test_device_status_t
struct  self_test_battery_t
struct  self_test_status_t
struct  self_test_port_t

Macros

#define SELF_TEST_MAX_DEVICES   8U
#define SELF_TEST_DIAG_BAD_REPLY   (-1)
#define SELF_TEST_DIAG_STALE_BATTERY   (-2)
#define SELF_TEST_DIAG_SESSION_TIMEOUT   (-3)

Enumerations

enum  self_test_result_t {
  SELF_TEST_PENDING = 0 , SELF_TEST_PASS , SELF_TEST_FAIL , SELF_TEST_TIMEOUT ,
  SELF_TEST_NOT_CONFIGURED , SELF_TEST_NOT_IMPLEMENTED
}

Macro Definition Documentation

◆ SELF_TEST_DIAG_BAD_REPLY

#define SELF_TEST_DIAG_BAD_REPLY   (-1)

◆ SELF_TEST_DIAG_SESSION_TIMEOUT

#define SELF_TEST_DIAG_SESSION_TIMEOUT   (-3)

Definition at line 30 of file self_test_port.h.

Referenced by self_test_tick(), and test_session_deadline().

◆ SELF_TEST_DIAG_STALE_BATTERY

#define SELF_TEST_DIAG_STALE_BATTERY   (-2)

Definition at line 29 of file self_test_port.h.

Referenced by sample_battery(), and test_battery_validity().

◆ SELF_TEST_MAX_DEVICES

#define SELF_TEST_MAX_DEVICES   8U

Enumeration Type Documentation

◆ self_test_result_t

Enumerator
SELF_TEST_PENDING 
SELF_TEST_PASS 
SELF_TEST_FAIL 
SELF_TEST_TIMEOUT 
SELF_TEST_NOT_CONFIGURED 
SELF_TEST_NOT_IMPLEMENTED 

Definition at line 13 of file self_test_port.h.