Functions | |
| uint8_t | SelfTest_CANFD (CANFD_Type *base, uint32_t chan, const cy_stc_canfd_config_t *config, cy_stc_canfd_context_t *context, cy_stc_canfd_test_mode_t test_mode) |
| This function configure the CANFD channel in an internal loopback and then it is configure to accept message IDs in the range 0x50 to 0x55 and a message with message ID 0x60 is transmitted and RX fifo is verified to be empty. | |
| uint8_t SelfTest_CANFD | ( | CANFD_Type * | base, |
| uint32_t | chan, | ||
| const cy_stc_canfd_config_t * | config, | ||
| cy_stc_canfd_context_t * | context, | ||
| cy_stc_canfd_test_mode_t | test_mode ) |
This function configure the CANFD channel in an internal loopback and then it is configure to accept message IDs in the range 0x50 to 0x55 and a message with message ID 0x60 is transmitted and RX fifo is verified to be empty.
Similarly, a message with message ID 0x50 is transmitted and the message received in RX FIFO is verified.
| base | The pointer to a CAN FD instance |
| chan | The CAN FD channel number |
| config | The pointer to the CAN FD configuration structure |
| context | The pointer to the context structure allocated by the user. The structure is used during the CAN FD operation for internal configuration and data retention. The user must not modify anything in this structure. |
| test_mode | internal: will not drive the pin external: will drive the external pins along with loopback |