HPM SDK
HPMicro Software Development Kit
mcan_ram_config_struct Struct Reference

MCAN RAM configuration. More...

#include <hpm_mcan_drv.h>

Data Fields

bool enable_std_filter
 
uint8_t std_filter_elem_count
 
bool enable_ext_filter
 
uint8_t ext_filter_elem_count
 
struct {
   uint32_t   enable: 4
 
   uint32_t   elem_count: 8
 
   uint32_t   watermark: 8
 
   uint32_t   operation_mode: 4
 
   uint32_t   data_field_size: 8
 
rxfifos [2]
 
bool enable_rxbuf
 
uint8_t rxbuf_elem_count
 
uint16_t rxbuf_data_field_size
 
bool enable_txbuf
 
uint8_t txbuf_data_field_size
 
uint8_t txbuf_dedicated_txbuf_elem_count
 
uint8_t txbuf_fifo_or_queue_elem_count
 
uint8_t txfifo_or_txqueue_mode
 
bool enable_tx_evt_fifo
 
uint8_t tx_evt_fifo_elem_count
 
uint8_t tx_evt_fifo_watermark
 

Detailed Description

MCAN RAM configuration.

Note
: This Configuration focuses on the minimum required information for MCAN RAM configuration The Start address of each BUF/FIFO will be automatically calculated by the MCAN Driver API This RAM configuration is recommended for the most developers

Field Documentation

◆ data_field_size

uint32_t mcan_ram_config_struct::data_field_size

Data field size option for RXFIFO

◆ elem_count

uint32_t mcan_ram_config_struct::elem_count

Element Count for RXFIFO

◆ enable

uint32_t mcan_ram_config_struct::enable

Enable Flag for RXFIFO

◆ enable_ext_filter

bool mcan_ram_config_struct::enable_ext_filter

Enable Extended Identifier Filter

◆ enable_rxbuf

bool mcan_ram_config_struct::enable_rxbuf

Enable RXBUF

◆ enable_std_filter

bool mcan_ram_config_struct::enable_std_filter

Enable Standard Identifier Filter

◆ enable_tx_evt_fifo

bool mcan_ram_config_struct::enable_tx_evt_fifo

Enable TX Event FIFO

◆ enable_txbuf

bool mcan_ram_config_struct::enable_txbuf

Enable TXBUF

◆ ext_filter_elem_count

uint8_t mcan_ram_config_struct::ext_filter_elem_count

Extended Identifier Filter Element Count

◆ operation_mode

uint32_t mcan_ram_config_struct::operation_mode

Operation Mode for RXFIFO

◆ rxbuf_data_field_size

uint16_t mcan_ram_config_struct::rxbuf_data_field_size

RXBUF Data Field Size option

◆ rxbuf_elem_count

uint8_t mcan_ram_config_struct::rxbuf_elem_count

RXBUF Element count

◆ 

struct { ... } mcan_ram_config_struct::rxfifos[2]

◆ std_filter_elem_count

uint8_t mcan_ram_config_struct::std_filter_elem_count

Standard Identifier Filter Element Count

◆ tx_evt_fifo_elem_count

uint8_t mcan_ram_config_struct::tx_evt_fifo_elem_count

TX Event FIFO Element count

◆ tx_evt_fifo_watermark

uint8_t mcan_ram_config_struct::tx_evt_fifo_watermark

TX Event FIFO Watermark

◆ txbuf_data_field_size

uint8_t mcan_ram_config_struct::txbuf_data_field_size

TXBUF Data Field Size option

◆ txbuf_dedicated_txbuf_elem_count

uint8_t mcan_ram_config_struct::txbuf_dedicated_txbuf_elem_count

Dedicated TXBUF element count

◆ txbuf_fifo_or_queue_elem_count

uint8_t mcan_ram_config_struct::txbuf_fifo_or_queue_elem_count

FIFO/Queue element count

◆ txfifo_or_txqueue_mode

uint8_t mcan_ram_config_struct::txfifo_or_txqueue_mode

TXFIFO/QUEUE mode

◆ watermark

uint32_t mcan_ram_config_struct::watermark

Watermark for RXFIFO


The documentation for this struct was generated from the following file: