Loading...
Searching...
No Matches
CAN transceiver interface

CAN generic transceiver interface. More...

Detailed Description

CAN generic transceiver interface.

Modules

 NCV7356 Single Wire CAN Transceiver
 Device driver for the NCV7356 Single Wire CAN Transceiver.
 
 TJA1042
 tja1042 High Speed CAN transceiver driver
 

Files

file  can_trx.h
 CAN generic transceiver interface.
 

Data Structures

struct  can_trx
 Generic transceiver descriptor. More...
 
struct  trx_driver
 Generic transceiver driver. More...
 

Typedefs

typedef struct trx_driver trx_driver_t
 forward declaration of trx_driver
 
typedef struct can_trx can_trx_t
 Generic transceiver descriptor.
 

Enumerations

enum  can_trx_mode_t {
  TRX_NORMAL_MODE = 0 , TRX_SILENT_MODE , TRX_SLEEP_MODE , TRX_HIGH_SPEED_MODE ,
  TRX_HIGH_VOLTAGE_WAKE_UP_MODE
}
 trx transceiver mode More...
 

Functions

int can_trx_init (can_trx_t *dev)
 initialize a transceiver
 
int can_trx_set_mode (can_trx_t *dev, can_trx_mode_t mode)
 transceiver set mode
 

Typedef Documentation

◆ trx_driver_t

typedef struct trx_driver trx_driver_t

forward declaration of trx_driver

Definition at line 43 of file can_trx.h.

Enumeration Type Documentation

◆ can_trx_mode_t

trx transceiver mode

Definition at line 31 of file can_trx.h.

Function Documentation

◆ can_trx_init()

int can_trx_init ( can_trx_t dev)

initialize a transceiver

Parameters
[in]devTransceiver to initialize
Returns
0 on success
< 0 on error

◆ can_trx_set_mode()

int can_trx_set_mode ( can_trx_t dev,
can_trx_mode_t  mode 
)

transceiver set mode

Parameters
[in]devTransceiver to set
[in]modeMode to set
Returns
0 on success
< 0 on error