cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

dodo_4647966
New Contributor

I need to dynamically configure the CAN controller ID at init time via software. Not able to see an API call that does this.

Thanks!

0 Likes
Reply
1 Solution
LiDo_2439176
Contributor II

Yes, you can use CAN_TxBufConfig() or/and CAN_RxBufConfig() functions. For more details see component datasheet and how they are used in can.c (in CAN_RxTxBuffersConfig() function) file from Generated_Source.

View solution in original post

2 Replies
LiDo_2439176
Contributor II

Yes, you can use CAN_TxBufConfig() or/and CAN_RxBufConfig() functions. For more details see component datasheet and how they are used in can.c (in CAN_RxTxBuffersConfig() function) file from Generated_Source.

View solution in original post

BragadeeshV
Moderator
Moderator

Hi dodo_4647966​,

In addition to LiDo_2439176 points, we believe what you are looking for is a basic mail box. Please refer to CAN_Basic_P4_Example and CAN_Full_P4_Example code example. PSoC Creator > File > Code Example

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes
Reply