|
PebbleOS v4.47.0-1362-gd278268fe
|
#include <stdbool.h>#include <stdint.h>#include <pbl/device.h>#include <pbl/drivers/can.h>#include <pbl/kernel/mutex.h>#include <pbl/kernel/sem.h>Data Structures | |
| struct | pbl_can_ops |
| Controller driver operations. More... | |
| struct | pbl_can |
| A CAN controller. More... | |
Macros | |
| #define | PBL_CAN_STATE_DEFINE(sym, _tx_slots) |
Define the class state of controller sym, for the PBL_CAN_*_DEFINE() macro of a driver. | |
| #define | PBL_CAN_INIT(sym, _name, _parent, _ops, _limits, _data_limits, _modes, _num_filters) |
Initializer for the struct pbl_can of controller sym. | |
Functions | |
| int | pbl_can_dev_init (const struct pbl_device *dev) |
| Device init of every controller: calls the driver's init. | |
| void | pbl_can_receive (const struct pbl_can *can, const struct pbl_can_frame *frame) |
| Hand a received frame to the receive callback. | |
| void | pbl_can_tx_done (const struct pbl_can *can, pbl_can_tx_callback_t cb, void *arg, int status) |
| Complete a frame given to the driver's send(). | |
| void | pbl_can_report_state (const struct pbl_can *can, enum pbl_can_bus_state state, struct pbl_can_err_cnt cnt) |
| Report a state change. | |
| void | pbl_can_report_error (const struct pbl_can *can, enum pbl_can_error error) |
| Count an error. | |