54 unsigned int reserved1 : 16;
56 unsigned int reserved0 : 10;
58 unsigned int type : 1;
60 unsigned char data[ 8 ];
127 const lpc176x_can_number minor,
139 const lpc176x_can_number minor,
153 const lpc176x_can_number number,
154 const can_irq_type type,
171 const char *
const _data,
Definition: media-server.c:33
rtems_status_code can_open(lpc176x_can_number minor, can_freq freq)
Opens CAN device.
Definition: can.c:332
A CAN message represented with each logical parts.
Definition: can.h:53
rtems_status_code can_write(const lpc176x_can_number minor, const can_message *const message)
Writes the passed CAN message into the selected CAN device.
Definition: can.c:458
rtems_status_code
Classic API Status.
Definition: status.h:43
lpc176x_can_number
The CAN devices of the board.
Definition: can.h:34
A CAN message represented of both forms.
Definition: can.h:66
rtems_status_code create_can_message(can_message *const msg, const int _id, const char *const _data, const char _len)
Creates a CAN message.
Definition: can.c:523
Specific register definitions according to lpc176x family boards.
can_irq_type
The possible interrupt sources for CAN.
Definition: can.h:74
void(* lpc176x_can_isr)(lpc176x_can_number number)
An isr for a CAN interrupt.
Definition: can.h:92
Definition: b1553brm.c:75
rtems_status_code can_register_isr(const lpc176x_can_number number, const can_irq_type type, const lpc176x_can_isr isr)
Registers an isr in the driver vector, and enables the interrupt in the device.
Definition: can.c:506
unsigned int can_freq
A CAN frequency value.
Definition: can.h:97
A CAN message represented for the registers of the device.
Definition: can.h:43
rtems_status_code can_close(lpc176x_can_number minor)
Closes the passed CAN device and shut it down.
Definition: can.c:81
rtems_status_code can_read(const lpc176x_can_number minor, can_message *message)
Reads the CAN device.
Definition: can.c:415