CAN driver implementation for the CC27XX family.
The CC27XX family of devices has an integrated CAN-FD controller.
The CC27XX CAN-FD controller has 4KB of message RAM.
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | CANCC27XX_Config |
CANCC27XX global configuration. More... | |
Macros | |
#define | CANCC27XX_MRAM_SIZE 4096U |
#define | CANCC27XX_CLK_FREQ_MHZ 80U |
Functions | |
uint32_t | CANCC27XX_getStatus (void) |
Reads the CANCC27XX device status flags. More... | |
void | CANCC27XX_clearStatus (void) |
Clears all CANCC27XX device status flags. More... | |
void | CANCC27XX_setMode (uint32_t mode) |
Sets the CANCC27XX operational mode. More... | |
uint32_t | CANCC27XX_getMode (void) |
Reads the CANCC27XX operational mode. More... | |
void | CANCC27XX_disableSleepWakeErrorTimeout (void) |
Disables the sleep wake error timeout. More... | |
Variables | |
const CANCC27XX_Config | CANCC27XX_config |
#define CANCC27XX_MRAM_SIZE 4096U |
CAN message RAM size
#define CANCC27XX_CLK_FREQ_MHZ 80U |
CAN functional clock frequency in MHz
uint32_t CANCC27XX_getStatus | ( | void | ) |
void CANCC27XX_clearStatus | ( | void | ) |
Clears all CANCC27XX device status flags.
void CANCC27XX_setMode | ( | uint32_t | mode | ) |
Sets the CANCC27XX operational mode.
mode | Operational mode to set: CANCC27XX_MODE_OPMODE_SLEEP, CANCC27XX_MODE_OPMODE_STANDBY, CANCC27XX_MODE_OPMODE_NORMAL |
uint32_t CANCC27XX_getMode | ( | void | ) |
Reads the CANCC27XX operational mode.
void CANCC27XX_disableSleepWakeErrorTimeout | ( | void | ) |
Disables the sleep wake error timeout.
The sleep wake error timeout is enabled by default and powers down the CANCC27XX 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 CANCC27XX_Config CANCC27XX_config |