sja1000p_send_msg

Name

sja1000p_send_msg --  initiate message transmission

Synopsis

int sja1000p_send_msg (struct chip_t * chip, struct msgobj_t * obj, struct canmsg_t * msg);

Arguments

chip

pointer to chip state structure

obj

pointer to message object state structure

msg

pointer to CAN message

Description

This function is called after sja1000p_pre_write_config function, which prepares data in chip buffer.

Return Value

negative value reports error.

File

src/sja1000p.c