9 #include "can_driver.h"
11 #include "timers_driver.h"
17 typedef void* LIB_HANDLE;
19 /** @defgroup userapi User API */
21 /** @defgroup can CAN management
32 * @brief Unload CAN driver interface
33 * @param handle The library handle
36 UNS8 UnLoadCanDriver(LIB_HANDLE handle);
40 * @brief Load CAN driver interface
41 * @param *driver_name The location of the library to load
42 * @return handle The library handle
44 LIB_HANDLE LoadCanDriver(const char* driver_name);
47 * @brief Send a CAN message
48 * @param port CanFestival file descriptor
49 * @param *m The message to send
52 UNS8 canSend(CAN_PORT port, Message *m);
56 * @brief Open a CANopen device
57 * @param *board Pointer on the board structure that contains busname and baudrate
58 * @param *d Pointer on the CAN object data structure
59 * @return port CanFestival file descriptor
61 CAN_PORT canOpen(s_BOARD *board, CO_Data * d);
65 * @brief Close a CANopen device
66 * @param *d Pointer on the CAN object data structure
69 int canClose(CO_Data * d);
73 * @brief Change the CANopen device baudrate
74 * @param port CanFestival file descriptor
75 * @param *baud The new baudrate to assign
78 UNS8 canChangeBaudRate(CAN_PORT port, char* baud);