Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
Functions | |
NAIBRDFUNC naibrd_1553_t NAIAPI | naibrd_1553_BcDataBlkCreate (int16_t device, int16_t dataBlockId, naibrd_1553_bc_dataBlockSize_t dataBlockSize, const uint16_t *p_buffer, uint16_t writeCount) |
Create a BC data block with a unique identifier given by the dataBlockId input parameter. This data block can be used by a BC message and can be 1-32 words long, single or double buffered. | |
NAIBRDFUNC naibrd_1553_t NAIAPI | naibrd_1553_BcDataBlkWrite (int16_t device, int16_t dataBlockId, const uint16_t *p_buffer, uint16_t writeCount, uint16_t offset) |
Write to a BC data block. | |
NAIBRDFUNC naibrd_1553_t NAIAPI | naibrd_1553_BcDataBlkRead (int16_t device, int16_t dataBlockId, uint16_t *p_outbuffer, uint16_t readCount, uint16_t offset) |
Read a BC data block. If the function completes successfully, the return value is the actual size of the data block. | |
NAIBRDFUNC naibrd_1553_t NAIAPI | naibrd_1553_BcDataBlkDelete (int16_t device, int16_t dataBlockId) |
Delete the data block associated with the dataBlockId identifier. | |
NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_BcDataBlkCreate | ( | int16_t | device, |
int16_t | dataBlockId, | ||
naibrd_1553_bc_dataBlockSize_t | dataBlockSize, | ||
const uint16_t * | p_buffer, | ||
uint16_t | writeCount ) |
Create a BC data block with a unique identifier given by the dataBlockId input parameter. This data block can be used by a BC message and can be 1-32 words long, single or double buffered.
device | : (Input) Logical Device Number (0-31). |
dataBlockId | : (Input) Unique block ID. |
dataBlockSize | : (Input) Value representing the size of the data block (1-32, NAIBRD_1553_BC_DATABLOCK_DOUBLE, NAIBRD_1553_BC_DATABLOCK_SINGLE). |
p_buffer | : (Input) Pointer to data to be loaded upon block creation. |
writeCount | : (Input) Number of words to be copied from p_buffer to the data block. NOTE: Length of p_buffer must be at at least as large as writeCount |
NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_BcDataBlkDelete | ( | int16_t | device, |
int16_t | dataBlockId ) |
Delete the data block associated with the dataBlockId identifier.
device | : (Input) Logical Device Number (0-31). |
dataBlockId | : (Input) Unique block ID. |
NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_BcDataBlkRead | ( | int16_t | device, |
int16_t | dataBlockId, | ||
uint16_t * | p_outbuffer, | ||
uint16_t | readCount, | ||
uint16_t | offset ) |
Read a BC data block. If the function completes successfully, the return value is the actual size of the data block.
device | : (Input) Logical Device Number (0-31). |
dataBlockId | : (Input) Unique block ID. |
p_outbuffer | : (Output) Pointer to a buffer that will contain the data read from the data block. |
readCount | : (Input) Number of words to be read from the data block and copied to the p_outbuffer NOTE: Length of p_outbuffer must be at least as large as readCount. |
offset | : (Input) Starting word index of the data block to read from. |
NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_BcDataBlkWrite | ( | int16_t | device, |
int16_t | dataBlockId, | ||
const uint16_t * | p_buffer, | ||
uint16_t | writeCount, | ||
uint16_t | offset ) |
Write to a BC data block.
device | : (Input) Logical Device Number (0-31). |
dataBlockId | : (Input) Unique block ID. |
p_buffer | : (Input) Pointer to data to be loaded into the data block. |
writeCount | : (Input) Number of words to be copied from p_buffer to the data block. NOTE: Length of p_buffer must be at least as large as writeCount. |
offset | : (Input) Starting word index of the data block to write to. |