CAN Interface

group CANInterface

Defines

CSP_CAN_MASKED

CAN interface modes.

CSP_CAN_PROMISC

Functions

int csp_can_init(uint8_t mode, struct csp_can_config *conf)

Init CAN interface.

Return
0 if CAN interface was successfully initialized, -1 otherwise
Parameters
  • mode: Must be either CSP_CAN_MASKED or CSP_CAN_PROMISC
  • conf: Pointer to configuration struct.

Variables

csp_iface_t csp_if_can