Software Library API naibrd 1.62
See all documentation at naii.docs.com
|
Functions | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_CAN_SetAddress (int32_t cardIndex, int32_t module, int32_t channel, int32_t address) |
Set the CAN channel's SAE J1939 address. NOTE: In order for address assignment to work, all channels on the the bus need to be enabled for TX and RX so each channel can communicate with the channel requesting the address. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_CAN_GetAddress (int32_t cardIndex, int32_t module, int32_t channel, int32_t *outaddress, int32_t *outstatus) |
Get the CAN channel's SAE J1939 address. | |
NAIBRDFUNC nai_status_t NAIAPI naibrd_CAN_GetAddress | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
int32_t * | outaddress, | ||
int32_t * | outstatus ) |
Get the CAN channel's SAE J1939 address.
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]). |
outaddress | : (Output) The returned SAE J1939 address. |
outstatus | : (Output) The returned SAE J1939 address status. 0: not claimed yet (in process) 1: failed to claim 2: claimed |
NAIBRDFUNC nai_status_t NAIAPI naibrd_CAN_SetAddress | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
int32_t | address ) |
Set the CAN channel's SAE J1939 address. NOTE: In order for address assignment to work, all channels on the the bus need to be enabled for TX and RX so each channel can communicate with the channel requesting the address.
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]). |
address | : (Input) The SAE J1939 address to set. |