Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
Functions | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_SetDataBits (int32_t cardIndex, int32_t module, int32_t channel, uint8_t dataBits) |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetDataBits (int32_t cardIndex, int32_t module, int32_t channel, uint8_t *p_outdataBits) |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_SetStopBits (int32_t cardIndex, int32_t module, int32_t channel, uint8_t stopBits) |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetStopBits (int32_t cardIndex, int32_t module, int32_t channel, uint8_t *p_outstopBits) |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_SetClockMode (int32_t cardIndex, int32_t module, int32_t channel, uint32_t clockMode) |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetClockMode (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outclockMode) |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetClockMode | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
uint32_t * | p_outclockMode ) |
Retrieves the raw clock mode for the specified Serial channel.
cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
p_outclockMode | : (Output) Clock Mode, see below. 0 - TXINT_RXINT 1 - TXEXT_RXEXT |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetDataBits | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
uint8_t * | p_outdataBits ) |
Retrieves the Number of Data Bits in the Data Configuration for the specified Serial channel.
cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
p_outdataBits | : (Output) Number of Data Bits (5, 6, 7, 8, or 9). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetStopBits | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
uint8_t * | p_outstopBits ) |
Retrieves the Number of Stop Bits in the Data Configuration for the specified Serial channel.
cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
p_outstopBits | : (Output) Number of Stop Bits to set (1 or 2). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetClockMode | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
uint32_t | clockMode ) |
Sets the raw clock mode for the specified Serial channel.
cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
clockMode | : (Input) Clock Mode, see below. 0 - TXINT_RXINT 1 - TXEXT_RXEXT |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetDataBits | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
uint8_t | dataBits ) |
Sets the Number of Data Bits in the Data Configuration for the specified Serial channel. In sync modes, number of data bits is set to 8 and cannot be changed.
cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
dataBits | : (Input) Number of Data Bits (5, 6, 7, 8, or 9). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetStopBits | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
uint8_t | stopBits ) |
Sets the Number of Stop Bits in the Data Configuration for the specified Serial channel.
cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
stopBits | : (Input) Number of Stop Bits to set (1 or 2). |