|
Data Structures | |
| struct | Message |
| The CAN message structure. More... | |
| struct | struct_s_BOARD |
| The CAN board configuration. More... | |
Functions | |
| UNS8 | UnLoadCanDriver (LIB_HANDLE handle) |
| Unload CAN driver interface. | |
| LIB_HANDLE | LoadCanDriver (const char *driver_name) |
| Load CAN driver interface. | |
| CAN_PORT | canOpen (s_BOARD *board, CO_Data *d) |
| Open a CANOpen device. | |
| int | canClose (CO_Data *d) |
| Close a CANOpen device. | |
| UNS8 | canChangeBaudRate (CAN_PORT port, char *baud) |
| Change the CANOpen device baudrate. | |
| UNS8 canChangeBaudRate | ( | CAN_PORT | port, | |
| char * | baud | |||
| ) |
Change the CANOpen device baudrate.
| port | CanFestival file descriptor | |
| *baud | The new baudrate to assign |
| port | CAN port | |
| baud | baudrate |
Definition at line 231 of file unix.c.
References canChangeBaudRate().
Referenced by canChangeBaudRate(), and LoadCanDriver().

| int canClose | ( | CO_Data * | d | ) |
Close a CANOpen device.
| *d | Pointer to the CAN object data structure |
| d | CAN object data |
Definition at line 207 of file unix.c.
References canClose(), struct_CO_Data::canHandle, EnterMutex(), and LeaveMutex().
Referenced by canClose(), and LoadCanDriver().

Open a CANOpen device.
| *board | Pointer to the board structure that contains busname and baudrate | |
| *d | Pointer to the CAN object data structure |
| board | device name and baudrate | |
| d | CAN object data |
Definition at line 173 of file unix.c.
References struct_s_BOARD::baudrate, struct_s_BOARD::busname, struct_CO_Data::canHandle, canOpen(), EnterMutex(), and LeaveMutex().
Referenced by canOpen(), and LoadCanDriver().

| LIB_HANDLE LoadCanDriver | ( | const char * | driver_name | ) |
Load CAN driver interface.
| *driver_name | The location of the library to load |
| driver_name | String containing driver's dynamic library name |
Definition at line 94 of file unix.c.
References canChangeBaudRate(), canClose(), and canOpen().

| UNS8 UnLoadCanDriver | ( | LIB_HANDLE | handle | ) |
1.5.6