Data Structures | Macros | Functions | Variables
CANCC27XX.h File Reference

Detailed Description

CAN driver implementation for the CC27XX family.


Overview

The CC27XX family of devices has an integrated CAN-FD controller.

Message RAM Size

The CC27XX CAN-FD controller has 4KB of message RAM.

#include <stdint.h>
Include dependency graph for CANCC27XX.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
 

Macro Definition Documentation

§ CANCC27XX_MRAM_SIZE

#define CANCC27XX_MRAM_SIZE   4096U

CAN message RAM size

§ CANCC27XX_CLK_FREQ_MHZ

#define CANCC27XX_CLK_FREQ_MHZ   80U

CAN functional clock frequency in MHz

Function Documentation

§ CANCC27XX_getStatus()

uint32_t CANCC27XX_getStatus ( void  )

Reads the CANCC27XX device status flags.

Returns
Device status flags.
See also
CANCC27XX_clearStatus

§ CANCC27XX_clearStatus()

void CANCC27XX_clearStatus ( void  )

Clears all CANCC27XX device status flags.

See also
CANCC27XX_getStatus

§ CANCC27XX_setMode()

void CANCC27XX_setMode ( uint32_t  mode)

Sets the CANCC27XX operational mode.

Parameters
modeOperational mode to set: CANCC27XX_MODE_OPMODE_SLEEP, CANCC27XX_MODE_OPMODE_STANDBY, CANCC27XX_MODE_OPMODE_NORMAL
See also
CANCC27XX_getMode

§ CANCC27XX_getMode()

uint32_t CANCC27XX_getMode ( void  )

Reads the CANCC27XX operational mode.

Returns
Operational mode: CANCC27XX_MODE_OPMODE_SLEEP, CANCC27XX_MODE_OPMODE_STANDBY, CANCC27XX_MODE_OPMODE_NORMAL
See also
CANCC27XX_setMode

§ CANCC27XX_disableSleepWakeErrorTimeout()

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.

Variable Documentation

§ CANCC27XX_config

const CANCC27XX_Config CANCC27XX_config
© Copyright 1995-2024, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale