Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
Functions | |
NAIBRDFUNC naibrd_1553_t NAIAPI | naibrd_1553_BcStart (int16_t device, int16_t frameId, int32_t frameCount) |
Start the Bus Controller (BC). | |
NAIBRDFUNC naibrd_1553_t NAIAPI | naibrd_1553_BcStop (int16_t device) |
Stop the Bus Controller (BC). | |
NAIBRDFUNC naibrd_1553_t NAIAPI | naibrd_1553_BcGetActiveState (int16_t device, naibrd_1553_bc_active_state_t *p_outcurrentState) |
Get the activation state, idle or busy, of given BC device. | |
NAIBRDFUNC naibrd_1553_t NAIAPI | naibrd_1553_BcGetConditionCodeState (int16_t device, naibrd_1553_bc_conditionCode_t conditionCode, uint16_t *p_outcurrentState) |
Read the BC Condition Code register to get the current condition state. | |
NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_BcGetActiveState | ( | int16_t | device, |
naibrd_1553_bc_active_state_t * | p_outcurrentState ) |
Get the activation state, idle or busy, of given BC device.
Note:
Equivalent DDC definition: aceBCGetStatus
device | : (Input) Logical Device Number (0-31). |
p_outcurrentState | : (Output) Activation state (NAIBRD_1553_BC_STATE_BUSY or NAIBRD_1553_BC_STATE_IDLE). |
NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_BcGetConditionCodeState | ( | int16_t | device, |
naibrd_1553_bc_conditionCode_t | conditionCode, | ||
uint16_t * | p_outcurrentState ) |
Read the BC Condition Code register to get the current condition state.
device | : (Input) Logical Device Number (0-31). |
conditionCode | : (Input) Condition Code. Valid values: * NAIBRD_1553_BC_COND_GPF_EQUAL_FLAG * NAIBRD_1553_BC_COND_GPF_LESS_THAN_FLAG * NAIBRD_1553_BC_COND_GPF0 * NAIBRD_1553_BC_COND_GPF1 * NAIBRD_1553_BC_COND_GPF2 * NAIBRD_1553_BC_COND_GPF3 * NAIBRD_1553_BC_COND_GPF4 * NAIBRD_1553_BC_COND_GPF5 * NAIBRD_1553_BC_COND_GPF6 * NAIBRD_1553_BC_COND_GPF7 * NAIBRD_1553_BC_COND_NO_RESPONSE * NAIBRD_1553_BC_COND_FORMAT_ERROR * NAIBRD_1553_BC_COND_GOOD_DATA_BLOCK_TRANSFER * NAIBRD_1553_BC_COND_MASKED_STATUS * NAIBRD_1553_BC_COND_BAD_MESSAGE * NAIBRD_1553_BC_COND_RETRY_COUNT * NAIBRD_1553_BC_COND_ALWAYS * |
p_outcurrentState | : (Output) If wConditionCode equals NAI_1553_BC_COND_RETRY_COUNT, then this parameter returns any one of the following values. * 0 (no retry) * 1 (one retry) * 2 (Not used) * 3 (2 retries) *For all other values of wConditionCode, this parameter returns 0 (NAI_FALSE) or 1 (NAI_TRUE). |
NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_BcStart | ( | int16_t | device, |
int16_t | frameId, | ||
int32_t | frameCount ) |
Start the Bus Controller (BC).
device | : (Input) Logical Device Number (0-31). |
frameId | : (Input) Unique Frame ID. |
frameCount | : (Input) Number of times frame is to be executed (zero also means single Tx) or NAIBRD_1553_BC_FRAME_RUN_FOREVER to run forever. |
NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_BcStop | ( | int16_t | device | ) |
Stop the Bus Controller (BC).
device | : (Input) Logical Device Number (0-31). |