Software Library API naibrd 1.62
See all documentation at naii.docs.com
|
Functions | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_TransmitInitiate (int32_t cardIndex, int32_t module, int32_t channel) |
Initiates the serial transmission for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_TransmitStop (int32_t cardIndex, int32_t module, int32_t channel) |
Stops the serial transmission for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_SetReceiverEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable) |
Sets the Receiver state for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetReceiverEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t *outenable) |
Retrieves the Receiver state for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_SetRTS (int32_t cardIndex, int32_t module, int32_t channel, bool_t active) |
Sets RTS pin state for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetRTS (int32_t cardIndex, int32_t module, int32_t channel, bool_t *outactive) |
Retrieves RTS pin state for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_SetDTR (int32_t cardIndex, int32_t module, int32_t channel, bool_t active) |
Sets the DTR pin state for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetDTR (int32_t cardIndex, int32_t module, int32_t channel, bool_t *outactive) |
Retrieves the DTR pin state for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetCTS (int32_t cardIndex, int32_t module, int32_t channel, bool_t *outactive) |
Retrieves the CTS pin state for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetDSR (int32_t cardIndex, int32_t module, int32_t channel, bool_t *outactive) |
Retrieves the DSR pin state for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_SetDCD (int32_t cardIndex, int32_t module, int32_t channel, bool_t active) |
Sets DCD pin state for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetDCD (int32_t cardIndex, int32_t module, int32_t channel, bool_t *outactive) |
Retrieves DCD pin state for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_SetDCDDirection (int32_t cardIndex, int32_t module, int32_t channel, bool_t direction) |
Sets the Direction (Input/Output) of the DCD pin for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetDCDDirection (int32_t cardIndex, int32_t module, int32_t channel, bool_t *outdirection) |
Retrieves the Direction (Input/Output) of the DCD pin for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_AsyncTransmitControl (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable) |
Sets the asynchronous data transmit mode for the specified Serial channel. When this mode is enabled, data written to the transmit FIFO buffer is transmitted. Tx initiate is not necessary. For Async mode only. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_EnterHuntSyncControl (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable) |
Sets the hunt mode for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_SetChannelEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable) |
Enables or Disables the specified Serial channel. Channels must be disabled before any configuration change is made, or before InitiateBIT. Channels must be enabled for the configuration changes to take effect, or after InitiateBIT is complete. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetChannelEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t *outenable) |
Retrieves the state of the specified Serial channel. Channels must be disabled before any configuration change is made, or before InitiateBIT. Channels must be enabled for the configuration changes to take effect, or after InitiateBIT is complete. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_SetTimedSerialEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable) |
Sets the Timed Async Serial mode enable for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetTimedSerialEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t *outenable) |
Retrieves the Timed Async Mode enable for the specified Serial channel. | |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_AsyncTransmitControl | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | enable ) |
Sets the asynchronous data transmit mode for the specified Serial channel. When this mode is enabled, data written to the transmit FIFO buffer is transmitted. Tx initiate is not necessary. For Async mode only.
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]). |
enable | : (Input) 0 = Disable, 1 = Enable. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_EnterHuntSyncControl | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | enable ) |
Sets the hunt 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]). |
enable | : (Input) 0 = Disable, 1 = Enable. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetChannelEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t * | outenable ) |
Retrieves the state of the specified Serial channel. Channels must be disabled before any configuration change is made, or before InitiateBIT. Channels must be enabled for the configuration changes to take effect, or after InitiateBIT is complete.
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]). |
outenable | : (Output) 0 = Disable, 1 = Enable. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetCTS | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t * | outactive ) |
Retrieves the CTS pin state 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]). |
outactive | : (Output) 0 = Inactive, 1 = Active. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetDCD | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t * | outactive ) |
Retrieves DCD pin state 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]). |
outactive | : (Output) 0 = Inactive, 1 = Active. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetDCDDirection | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t * | outdirection ) |
Retrieves the Direction (Input/Output) of the DCD pin 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]). |
outdirection | : (Output) 0 = Input, 1 = Output. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetDSR | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t * | outactive ) |
Retrieves the DSR pin state 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]). |
outactive | : (Output) 0 = Inactive, 1 = Active. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetDTR | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t * | outactive ) |
Retrieves the DTR pin state 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]). |
outactive | : (Output) 0 = Inactive, 1 = Active. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetReceiverEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t * | outenable ) |
Retrieves the Receiver state 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]). |
outenable | : (Output) 0 = disable receiver, 1 = enable receiver. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetRTS | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t * | outactive ) |
Retrieves RTS pin state 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]). |
outactive | : (Output) 0 = Inactive, 1 = Active. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetTimedSerialEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t * | outenable ) |
Retrieves the Timed Async Mode enable 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]). |
outenable | : (Output) 0 = disable mode, 1 = enable mode. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetChannelEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | enable ) |
Enables or Disables the specified Serial channel. Channels must be disabled before any configuration change is made, or before InitiateBIT. Channels must be enabled for the configuration changes to take effect, or after InitiateBIT is complete.
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]). |
enable | : (Input) 0 = Disable, 1 = Enable. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetDCD | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | active ) |
Sets DCD pin state 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]). |
active | : (Input) 0 = Inactive, 1 = Active. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetDCDDirection | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | direction ) |
Sets the Direction (Input/Output) of the DCD pin 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]). |
direction | : (Input) 0 = Input, 1 = Output. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetDTR | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | active ) |
Sets the DTR pin state 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]). |
active | : (Input) 0 = Inactive, 1 = Active. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetReceiverEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | enable ) |
Sets the Receiver state 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]). |
enable | : (Input) 0 = disable receiver, 1 = enable receiver. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetRTS | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | active ) |
Sets RTS pin state 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]). |
active | : (Input) 0 = Inactive, 1 = Active. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetTimedSerialEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | enable ) |
Sets the Timed Async Serial mode enable 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]). |
enable | : (Input) 0 = disable mode, 1 = enable mode. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_TransmitInitiate | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel ) |
Initiates the serial transmission 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]). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_TransmitStop | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel ) |
Stops the serial transmission 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]). |