Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
Functions | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR_CAN_SetBaudRate (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ar_can_low_rate_type_t baseBaudRate, naibrd_ar_can_high_rate_type_t dataBaudRate) |
Change the baud rate for a particular CAN module channel. - This function can be used in place of naibrd_CAN_SetBitTiming if you know what baud rate you want but you do not want to specify the specific bit timing parameters to achieve the desired baud rate. We will take care of determining bit timing parameters to achieve the desired baud rate. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR_CAN_GetBaudRate (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ar_can_low_rate_type_t *p_outbaseBaudRate, naibrd_ar_can_high_rate_type_t *p_outdataBaudRate) |
Retrieve the baud rate for a particular CAN module channel. NOTE: This function retrieves the value of what was last assigned using the "naibrd_CAN_SetBaudRate" function call. If baud rate was set using the naibrd_CAN_SetBitTiming, a call to naibrd_CAN_GetBaudRate will return 0 since no attempt is made to reverse calculate what the baud rate is based upon the bit timing parameters. | |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_CAN_GetBaudRate | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
naibrd_ar_can_low_rate_type_t * | p_outbaseBaudRate, | ||
naibrd_ar_can_high_rate_type_t * | p_outdataBaudRate ) |
Retrieve the baud rate for a particular CAN module channel. NOTE: This function retrieves the value of what was last assigned using the "naibrd_CAN_SetBaudRate" function call. If baud rate was set using the naibrd_CAN_SetBitTiming, a call to naibrd_CAN_GetBaudRate will return 0 since no attempt is made to reverse calculate what the baud rate is based upon the bit timing parameters.
cardIndex | : (Input) Logical Card Index assigned to connect 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_outbaseBaudRate | : (Output) Base Baud Rate (enumerated type value). |
p_outdataBaudRate | : (Output) Data Baud Rate (enumerated type value). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_CAN_SetBaudRate | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
naibrd_ar_can_low_rate_type_t | baseBaudRate, | ||
naibrd_ar_can_high_rate_type_t | dataBaudRate ) |
Change the baud rate for a particular CAN module channel. - This function can be used in place of naibrd_CAN_SetBitTiming if you know what baud rate you want but you do not want to specify the specific bit timing parameters to achieve the desired baud rate. We will take care of determining bit timing parameters to achieve the desired baud rate.
cardIndex | : (Input) Logical Card Index assigned to connect 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]). |
baseBaudRate | : (Input) Value from naibrd_ar_can_low_rate_type_t enumeration to specify a well-known base baud rate. |
dataBaudRate | : (Input) Value from naibrd_ar_can_high_rate_type_t enumeration to specify a well-known base data rate. |