CAN Device Driver Internals | ||
---|---|---|
<<< Previous | Next >>> |
struct chipspecops_t { int (* chip_config (struct chip_t *chip); int (* baud_rate (struct chip_t *chip, int rate, int clock, int sjw,int sampl_pt, int flags); int (* standard_mask (struct chip_t *chip, unsigned short code,unsigned short mask); int (* extended_mask (struct chip_t *chip, unsigned long code,unsigned long mask); int (* message15_mask (struct chip_t *chip, unsigned long code,unsigned long mask); int (* clear_objects (struct chip_t *chip); int (* config_irqs (struct chip_t *chip, short irqs); int (* pre_read_config (struct chip_t *chip, struct msgobj_t *obj); int (* pre_write_config (struct chip_t *chip, struct msgobj_t *obj,struct canmsg_t *msg); int (* send_msg (struct chip_t *chip, struct msgobj_t *obj,struct canmsg_t *msg); int (* remote_request (struct chip_t *chip, struct msgobj_t *obj); int (* check_tx_stat (struct chip_t *chip); int (* wakeup_tx (struct chip_t *chip, struct msgobj_t *obj); int (* enable_configuration (struct chip_t *chip); int (* disable_configuration (struct chip_t *chip); int (* set_btregs (struct chip_t *chip, unsigned short btr0,unsigned short btr1); int (* start_chip (struct chip_t *chip); int (* stop_chip (struct chip_t *chip); irqreturn_t (* irq_handler (int irq, void *dev_id, struct pt_regs *regs); }; |
CAN chip configuration
set communication parameters
setup of mask for message filtering
setup of extended mask for message filtering
set mask of i82527 message object 15
clears state of all message object residing in chip
tunes chip hardware interrupt delivery
prepares message object for message reception
prepares message object for message transmission
initiate message transmission
configures message object and asks for RTR message
checks state of transmission engine
wakeup TX processing
enable chip configuration mode
disable chip configuration mode
configures bitrate registers
starts chip message processing
stops chip message processing
interrupt service routine
<<< Previous | Home | Next >>> |
struct hwspecops_t | Up | Board Support Functions |