Data Structures

struct  csp_can_config
 

Macros

#define CSP_CAN_MASKED   0
 CAN interface modes. More...
 
#define CSP_CAN_PROMISC   1
 

Functions

int csp_can_init (uint8_t mode, struct csp_can_config *conf)
 Init CAN interface. More...
 

Variables

csp_iface_t csp_if_can
 

Data Structure Documentation

struct csp_can_config

Data Fields

uint32_t bitrate
 
uint32_t clock_speed
 
char * ifc
 

Field Documentation

uint32_t csp_can_config::bitrate
uint32_t csp_can_config::clock_speed
char* csp_can_config::ifc

Macro Definition Documentation

#define CSP_CAN_MASKED   0

CAN interface modes.

#define CSP_CAN_PROMISC   1

Function Documentation

int csp_can_init ( uint8_t  mode,
struct csp_can_config conf 
)

Init CAN interface.

Parameters
modeMust be either CSP_CAN_MASKED or CSP_CAN_PROMISC
confPointer to configuration struct.
Returns
0 if CAN interface was successfully initialized, -1 otherwise

Variable Documentation

csp_iface_t csp_if_can