CCAux
2.20.0.0
CCAux API reference
|
Functions | |
EXTERN_C CCAUXDLL_API CANSETTINGHANDLE CCAUXDLL_CALLING_CONV | GetCanSetting (void) |
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV | CanSetting_release (CANSETTINGHANDLE) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CanSetting_getBaudrate (CANSETTINGHANDLE, uint8_t net, uint16_t *baudrate) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CanSetting_getFrameType (CANSETTINGHANDLE, uint8_t net, CanFrameType *frameType) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CanSetting_setBaudrate (CANSETTINGHANDLE, uint8_t net, uint16_t baudrate) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CanSetting_setFrameType (CANSETTINGHANDLE, uint8_t net, CanFrameType frameType) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CanSetting_getFlexibleDataBaudrates (CANSETTINGHANDLE, uint8_t net, uint16_t *baudrateNominal, uint16_t *baudrateData) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | CanSetting_setFlexibleDataBaudrates (CANSETTINGHANDLE, uint8_t net, uint16_t baudrateNominal, uint16_t baudrateData) |
Functions in the CanSetting class
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CanSetting_getBaudrate | ( | CANSETTINGHANDLE | , |
uint8_t | net, | ||
uint16_t * | baudrate | ||
) |
Get Baud rate
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
net | CAN net (1-4) to get settings for. |
baudrate | CAN baud rate (kbit/s). |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CanSetting_getFlexibleDataBaudrates | ( | CANSETTINGHANDLE | , |
uint8_t | net, | ||
uint16_t * | baudrateNominal, | ||
uint16_t * | baudrateData | ||
) |
Get FD Baudrates
Supported Platform(s): XL5, XM9, X1200
net | CAN net (1-4) to get settings for. |
baudrateNominal | CAN baudrateNominal selection (kbit/s). |
baudrateData | CAN baudrateData selection (kbit/s). If the returned baudrates are ZERO then settings are such that FD-FLEXIBLE_DATA is not active a CLASSIC baudrate is active and the API CanSetting_getBaudrate() should be used. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CanSetting_getFrameType | ( | CANSETTINGHANDLE | , |
uint8_t | net, | ||
CanFrameType * | frameType | ||
) |
Get frame type
Supported Platform(s): XL, XL5, XM, XM9
net | CAN net (1-4) to get settings for. |
frameType | CAN frame type |
Example Usage:
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV CrossControl::CanSetting_release | ( | CANSETTINGHANDLE | ) |
Delete the CanSetting object.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CanSetting_setBaudrate | ( | CANSETTINGHANDLE | , |
uint8_t | net, | ||
uint16_t | baudrate | ||
) |
Set Baud rate. The changes will take effect after a restart (Windows). The changes will be reset after a restart (Linux)
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
net | CAN net (1-4). |
baudrate | CAN baud rate (kbit/s). The driver will calculate the best supported baud rate if it does not support the given baud rate. The maximum baud rate is 1000 kbit/s. |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CanSetting_setFlexibleDataBaudrates | ( | CANSETTINGHANDLE | , |
uint8_t | net, | ||
uint16_t | baudrateNominal, | ||
uint16_t | baudrateData | ||
) |
Set FD Baudrates.
Supported Platform(s): XL5, XM9, X1200
net | CAN net (1-4). |
baudrateNominal | CAN baudrateNominal selection (kbit/s). |
baudrateData | CAN baudrateData selection (kbit/s). |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::CanSetting_setFrameType | ( | CANSETTINGHANDLE | , |
uint8_t | net, | ||
CanFrameType | frameType | ||
) |
Set frame type. The changes will take effect after a restart.
Supported Platform(s): XL, XL5, XM, XM9
net | CAN net (1-4). |
frameType | CAN frameType |
EXTERN_C CCAUXDLL_API CANSETTINGHANDLE CCAUXDLL_CALLING_CONV CrossControl::GetCanSetting | ( | void | ) |
Factory function that creates instances of the CanSetting object.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
Example Usage: