sja1000p_chip_config

Name

sja1000p_chip_config --  can chip configuration

Synopsis

int sja1000p_chip_config (struct chip_t * chip);

Arguments

chip

pointer to chip state structure

Description

This function configures chip and prepares it for message transmission and reception. The function resets chip, resets mask for acceptance of all messages by call to sja1000p_extended_mask function and then computes and sets baudrate with use of function sja1000p_baud_rate.

Return Value

negative value reports error.

File

src/sja1000p.c