SLAAEN5 February 2025 MSPM0G1106 , MSPM0G1107 , MSPM0G1506 , MSPM0G1507 , MSPM0G1518 , MSPM0G1519 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0G3518 , MSPM0G3518-Q1 , MSPM0G3519 , MSPM0G3519-Q1
There are various configurable parameters that are listed in Table 3-3. Users can configure a CAN or SPI packet frame, the size of the FIFO, or the maximum size of the data area by modifying these parameters which are all defined in user_define.h.
Users can also modify the definition of Custom_Element in user_define.h. Entries can be increased or decreased based on application and storage requirements.
/*user-defined information storage structure */
typedef struct {
/*! Origin Identifier, indicating the origin of the message */
uint32_t origin_id;
/*! Destination Identifier, indicating the destination of the message */
uint32_t destination_id;
/*! Data Length Code */
uint8_t dlc;
/*! Data bytes */
uint8_t data[TRANSMIT_DATA_LENGTH];
} Custom_Element;
The reception and transmission of the two communication interfaces are separated. Messages are delivered through FIFO. As a result, users can make changes to the structure. For example, making messages follow a specific format or even a specific communication protocol. In addition, the structure can be split into a one-way transmission according to Figure 2-3.