RSCAN_Table.h 608 Bytes
Newer Older
1 2
#ifndef RSCAN_TABLE_H
#define RSCAN_TABLE_H
hu's avatar
hu committed
3
/*-----------------use for RH850_D1M1A_1441 --------------------*/
4 5 6

#include "r_typedefs.h"

hu's avatar
hu committed
7

8
/* structure */
hu's avatar
hu committed
9 10
typedef struct
{
hu's avatar
hu committed
11
    uint32_t data[4];
hu's avatar
hu committed
12 13 14 15
} RSCANFD_Filter_st_t;

#define CANFD0_CH0_RX_RULE_SIZE 24u
#define CANFD0_CH1_RX_RULE_SIZE 0U
hu's avatar
hu committed
16
#define CANFD0_CH2_RX_RULE_SIZE 3U
hu's avatar
hu committed
17 18 19 20 21


#define CANFD0_RX_RULE_SIZE (CANFD0_CH0_RX_RULE_SIZE + \
                             CANFD0_CH1_RX_RULE_SIZE + \
                             CANFD0_CH2_RX_RULE_SIZE )
22

hu's avatar
hu committed
23
extern const RSCANFD_Filter_st_t CANFD_RX_RULE_TABLE_LIST[CANFD0_RX_RULE_SIZE];
24 25

#endif