struct chipspecops_t

Name

struct chipspecops_t --  can controller chip specific operations

Synopsis

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);
};  

Members

chip_config

CAN chip configuration

baud_rate

set communication parameters

standard_mask

setup of mask for message filtering

extended_mask

setup of extended mask for message filtering

message15_mask

set mask of i82527 message object 15

clear_objects

clears state of all message object residing in chip

config_irqs

tunes chip hardware interrupt delivery

pre_read_config

prepares message object for message reception

pre_write_config

prepares message object for message transmission

send_msg

initiate message transmission

remote_request

configures message object and asks for RTR message

check_tx_stat

checks state of transmission engine

wakeup_tx

wakeup TX processing

enable_configuration

enable chip configuration mode

disable_configuration

disable chip configuration mode

set_btregs

configures bitrate registers

start_chip

starts chip message processing

stop_chip

stops chip message processing

irq_handler

interrupt service routine