TCAN455X Driver Interface.
The TCAN455X driver performs the hardware access to the TCAN455x CAN controller with integrated transceiver via SPI.
The TCAN455X device has 2KB of message RAM.
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | TCAN455X_Config |
TCAN455X global configuration. More... | |
Macros | |
#define | TCAN455X_MRAM_SIZE 2048U |
Functions | |
uint32_t | TCAN455X_getStatus (void) |
Reads the TCAN455X device status flags. More... | |
void | TCAN455X_clearStatus (void) |
Clears all TCAN455X device status flags. More... | |
void | TCAN455X_setMode (uint32_t mode) |
Sets the TCAN455X operational mode. More... | |
uint32_t | TCAN455X_getMode (void) |
Reads the TCAN455X operational mode. More... | |
void | TCAN455X_disableSleepWakeErrorTimeout (void) |
Disables the sleep wake error timeout. More... | |
Variables | |
const TCAN455X_Config | TCAN455X_config |
#define TCAN455X_MRAM_SIZE 2048U |
uint32_t TCAN455X_getStatus | ( | void | ) |
void TCAN455X_clearStatus | ( | void | ) |
Clears all TCAN455X device status flags.
void TCAN455X_setMode | ( | uint32_t | mode | ) |
Sets the TCAN455X operational mode.
mode | Operational mode to set: TCAN455X_MODE_OPMODE_SLEEP, TCAN455X_MODE_OPMODE_STANDBY, TCAN455X_MODE_OPMODE_NORMAL |
uint32_t TCAN455X_getMode | ( | void | ) |
Reads the TCAN455X operational mode.
void TCAN455X_disableSleepWakeErrorTimeout | ( | void | ) |
Disables the sleep wake error timeout.
The sleep wake error timeout is enabled by default and powers down the TCAN455X device within four minutes after power-on, reset, or coming out of sleep if the device is not configured by the host. This function can be used to disable the sleep wake error timeout and prevent the device from powering down.
const TCAN455X_Config TCAN455X_config |