Chapter 2. API Reference
bool triple_sampling
Enables triple sampling when the TWAI controller samples a bit
struct twai_filter_config_t
Structure for acceptance filter configuration of the TWAI driver (see documentation)
Note Macro initializers are available for this structure
Public Members
uint32_t acceptance_code
32-bit acceptance code
uint32_t acceptance_mask
32-bit acceptance mask
bool single_filter
Use Single Filter Mode (see documentation)
Macros
TWAI_EXTD_ID_MASK
TWAI Constants.
Bit mask for 29 bit Extended Frame Format ID
TWAI_STD_ID_MASK
Bit mask for 11 bit Standard Frame Format ID
TWAI_FRAME_MAX_DLC
Max data bytes allowed in TWAI
TWAI_FRAME_EXTD_ID_LEN_BYTES
EFF ID requires 4 bytes (29bit)
TWAI_FRAME_STD_ID_LEN_BYTES
SFF ID requires 2 bytes (11bit)
TWAI_ERR_PASS_THRESH
Error counter threshold for error passive
Enumerations
enum twai_mode_t
TWAI Controller operating modes.
Values:
TWAI_MODE_NORMAL
Normal operating mode where TWAI controller can send/receive/acknowledge messages
TWAI_MODE_NO_ACK
Transmission does not require acknowledgment. Use this mode for self testing
TWAI_MODE_LISTEN_ONLY
The TWAI controller will not influence the bus (No transmissions or acknowledgments) but can receive
messages
Header File
•
components/driver/include/driver/twai.h
Espressif Systems
453
Submit Document Feedback
Release v4.4
Need help?
Do you have a question about the ESP32-S2 and is the answer not in the manual?