Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
m1553_bc_common_utils.h
Go to the documentation of this file.
1/****** NAI 1553 Common Sample Program Utility Functions ******/
2#ifndef NAI_1553_BC_UTILS_H
3#define NAI_1553_BC_UTILS_H
4
5#define TXMODECODE_NUM_OF_VALIDCOMMANDS 12
6#define RXMODECODE_NUM_OF_VALIDCOMMANDS 3
7
26
35
41
42bool_t GetBus(uint32_t* usBus);
43bool_t GetMsgDirection(bool_t* bcToRt);
45bool_t AskAndCheckForValidModeCodeAndCheckForQuit(M1553MsgDirectionForModeCode_t modeCodeDirection, M1553ModeCodes_t* modeCodeCommand, bool_t* isValidModeCodeCommand);
46
47#endif
enum M1553MsgDirectionForModeCode M1553MsgDirectionForModeCode_t
enum M1553ModeCodes M1553ModeCodes_t
bool_t GetMsgTypeAndCheckForQuit(M1553MsgType_t *msgType)
Definition m1553_bc_common_utils.c:136
enum M1553MsgType M1553MsgType_t
bool_t GetBus(uint32_t *usBus)
Definition m1553_bc_common_utils.c:48
M1553MsgDirectionForModeCode
Definition m1553_bc_common_utils.h:37
@ M1553_MSGTYPE_MODECODE_DIRECTION_RX
Definition m1553_bc_common_utils.h:39
@ M1553_MSGTYPE_MODECODE_DIRECTION_TX
Definition m1553_bc_common_utils.h:38
bool_t AskAndCheckForValidModeCodeAndCheckForQuit(M1553MsgDirectionForModeCode_t modeCodeDirection, M1553ModeCodes_t *modeCodeCommand, bool_t *isValidModeCodeCommand)
Definition m1553_bc_common_utils.c:205
M1553ModeCodes
Definition m1553_bc_common_utils.h:9
@ ResetRemoteTerminal_0x08
Definition m1553_bc_common_utils.h:18
@ TransmitStatusWord_0x02
Definition m1553_bc_common_utils.h:12
@ SelectedTransmitterShutDown_0x14
Definition m1553_bc_common_utils.h:23
@ OverrideTransmitterShutdown_0x05
Definition m1553_bc_common_utils.h:15
@ TransmitterShutdown_0x04
Definition m1553_bc_common_utils.h:14
@ InhibitTerminalFlag_0x06
Definition m1553_bc_common_utils.h:16
@ TransmitBITWord_0x13
Definition m1553_bc_common_utils.h:22
@ SyncronizeWdata_0x11
Definition m1553_bc_common_utils.h:20
@ TransmitLastCommandWord_0x12
Definition m1553_bc_common_utils.h:21
@ Syncronize_0x01
Definition m1553_bc_common_utils.h:11
@ DynamicBusControl_0x00
Definition m1553_bc_common_utils.h:10
@ Ovveride_SelectedTransmitter_Shoutdown_0x15
Definition m1553_bc_common_utils.h:24
@ OverrideInhibitTerminalFlag_0x07
Definition m1553_bc_common_utils.h:17
@ InitiateSelfTest_0x03
Definition m1553_bc_common_utils.h:13
@ TransmitVectorWord_0x10
Definition m1553_bc_common_utils.h:19
bool_t GetMsgDirection(bool_t *bcToRt)
Definition m1553_bc_common_utils.c:92
M1553MsgType
Definition m1553_bc_common_utils.h:28
@ M1553_MSGTYPE_RTTORT
Definition m1553_bc_common_utils.h:31
@ M1553_MSGTYPE_MODECODE_TX
Definition m1553_bc_common_utils.h:32
@ M1553_MSGTYPE_BCTORT
Definition m1553_bc_common_utils.h:29
@ M1553_MSGTYPE_MODECODE_RX
Definition m1553_bc_common_utils.h:33
@ M1553_MSGTYPE_RTTOBC
Definition m1553_bc_common_utils.h:30