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

Detailed Description

TCAN455X Driver Interface.


Overview

The TCAN455X driver performs the hardware access to the TCAN455x CAN controller with integrated transceiver via SPI.

Message RAM Size

The TCAN455X device has 2KB of message RAM.

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

Macro Definition Documentation

§ TCAN455X_MRAM_SIZE

#define TCAN455X_MRAM_SIZE   2048U

Function Documentation

§ TCAN455X_getStatus()

uint32_t TCAN455X_getStatus ( void  )

Reads the TCAN455X device status flags.

Returns
Device status flags.
See also
TCAN455X_clearStatus

§ TCAN455X_clearStatus()

void TCAN455X_clearStatus ( void  )

Clears all TCAN455X device status flags.

See also
TCAN455X_getStatus

§ TCAN455X_setMode()

void TCAN455X_setMode ( uint32_t  mode)

Sets the TCAN455X operational mode.

Parameters
modeOperational mode to set: TCAN455X_MODE_OPMODE_SLEEP, TCAN455X_MODE_OPMODE_STANDBY, TCAN455X_MODE_OPMODE_NORMAL
See also
TCAN455X_getMode

§ TCAN455X_getMode()

uint32_t TCAN455X_getMode ( void  )

Reads the TCAN455X operational mode.

Returns
Operational mode: TCAN455X_MODE_OPMODE_SLEEP, TCAN455X_MODE_OPMODE_STANDBY, TCAN455X_MODE_OPMODE_NORMAL
See also
TCAN455X_setMode

§ TCAN455X_disableSleepWakeErrorTimeout()

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.

Variable Documentation

§ TCAN455X_config

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