This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TCAN4550-Q1: In driver code tcan4x5x.c, Can we use tcan4x5x_regmap_write() and tcan4x5x_regmap_read() to read write TCAN4550 ?

Part Number: TCAN4550-Q1
Other Parts Discussed in Thread: TCAN4550,

Hi 

In driver code tcan4x5x.c, Can we use below two function call to read and write TCAN4550 ?

static int tcan4x5x_regmap_write(void *context, const void *data, size_t count)
static int tcan4x5x_regmap_read(void *context,const void *reg, size_t reg_size, void *val, size_t val_size)

Can you help give an example for read and write reg 0x0800 bit 30 & 31 ? 

Also is there any document explaining how to use the these two function call ? 

  • PY,

    Yes, that is the intention of those functions. I would recommend reading through the TCAN4550-Q1 Software User's Guide. This can be found in the TCAN4550-Q1 product folder and walks through the starter code as well as steps to begin transmitting and receiving CAN frames on the CAN bus.

    Regards,

    Eric Hackett