Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches
can_types.h
Go to the documentation of this file.
1
17/*
18© [2024] Microchip Technology Inc. and its subsidiaries.
19
20 Subject to your compliance with these terms, you may use Microchip
21 software and any derivatives exclusively with Microchip products.
22 You are responsible for complying with 3rd party license terms
23 applicable to your use of 3rd party software (including open source
24 software) that may accompany Microchip software. SOFTWARE IS ?AS IS.?
25 NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS
26 SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
27 MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
28 WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
29 INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY
30 KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
31 MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
32 FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP?S
33 TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT
34 EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR
35 THIS SOFTWARE.
36*/
37
38#ifndef CAN_TYPES_H
39#define CAN_TYPES_H
40
41// Section: Included Files
42
43#include <stdint.h>
44
53{
54 unsigned int idType:1;
55 unsigned int frameType:1;
56 unsigned int dlc:4;
57 unsigned int formatType:1;
58 unsigned int brs:1;
59};
60
61
68{
69 uint32_t msgId;
71 uint8_t *data;
72};
73
84
95
106
117
130
147
159
170
177{
178 // DLC_0 to DLC_8 for CAN 2.0 and CAN FD
189 // <Supported only in CAN FD mode
190 // DLC_12 to DLC_64 for CAN FD
198};
199
211
212#endif //CAN_TYPES_H
CAN_RX_FIFO_STATUS
Definition can_types.h:206
@ CAN_RX_MSG_OVERFLOW
Definition can_types.h:209
@ CAN_RX_MSG_NOT_AVAILABLE
Definition can_types.h:207
@ CAN_RX_MSG_AVAILABLE
Definition can_types.h:208
@ DLC_24
Definition can_types.h:194
@ DLC_0
Definition can_types.h:179
@ DLC_5
Definition can_types.h:184
@ DLC_20
Definition can_types.h:193
@ DLC_2
Definition can_types.h:181
@ DLC_12
Definition can_types.h:191
@ DLC_8
Definition can_types.h:187
@ DLC_16
Definition can_types.h:192
@ DLC_1
Definition can_types.h:180
@ DLC_48
Definition can_types.h:196
@ DLC_3
Definition can_types.h:182
@ DLC_4
Definition can_types.h:183
@ DLC_64
Definition can_types.h:197
@ DLC_6
Definition can_types.h:185
@ DLC_32
Definition can_types.h:195
@ DLC_7
Definition can_types.h:186
@ CAN_FRAME_STD
Definition can_types.h:92
@ CAN_FRAME_EXT
Definition can_types.h:93
@ CAN_FRAME_DATA
Definition can_types.h:103
@ CAN_FRAME_RTR
Definition can_types.h:104
@ CAN_TX_FIFO_AVAILABLE
Definition can_types.h:168
@ CAN_TX_FIFO_FULL
Definition can_types.h:167
@ CAN_2_0_FORMAT
Definition can_types.h:114
@ CAN_FD_FORMAT
Definition can_types.h:115
@ CAN_OP_MODE_SYS_ERROR_OCCURED
Definition can_types.h:157
@ CAN_OP_MODE_REQUEST_FAIL
Definition can_types.h:156
@ CAN_OP_MODE_REQUEST_SUCCESS
Definition can_types.h:155
@ CAN_BRS_MODE
Definition can_types.h:82
@ CAN_NON_BRS_MODE
Definition can_types.h:81
@ CAN_TX_MSG_REQUEST_BRS_ERROR
Definition can_types.h:127
@ CAN_TX_MSG_REQUEST_SUCCESS
Definition can_types.h:125
@ CAN_TX_MSG_REQUEST_DLC_EXCEED_ERROR
Definition can_types.h:126
@ CAN_TX_MSG_REQUEST_FIFO_FULL
Definition can_types.h:128
@ CAN_LISTEN_ONLY_MODE
Definition can_types.h:141
@ CAN_DISABLE_MODE
Definition can_types.h:139
@ CAN_RESTRICTED_OPERATION_MODE
Definition can_types.h:145
@ CAN_INTERNAL_LOOPBACK_MODE
Definition can_types.h:140
@ CAN_NORMAL_FD_MODE
Definition can_types.h:138
@ CAN_NORMAL_2_0_MODE
Definition can_types.h:144
@ CAN_EXTERNAL_LOOPBACK_MODE
Definition can_types.h:143
@ CAN_CONFIGURATION_MODE
Definition can_types.h:142
CAN_DLC
Defines the CAN message payload size that are available for the mode to use.
Definition can_types.h:177
CAN_MSG_OBJ_ID_TYPE
Defines the Standard ID or Extended ID in CAN message object.
Definition can_types.h:91
CAN_MSG_OBJ_FRAME_TYPE
Defines the Data frame or Remote transmit Request frame in CAN message object.
Definition can_types.h:102
CAN_TX_FIFO_STATUS
Defines the CAN transmit status get Api return status.
Definition can_types.h:166
CAN_MSG_OBJ_TYPE
Defines the CAN FD format or CAN 2.0 format in CAN message object.
Definition can_types.h:113
CAN_OP_MODE_STATUS
Defines the CAN operation set Api return status.
Definition can_types.h:154
CAN_MSG_OBJ_BRS_MODE
Defines the Bit rate with enabled or disabled the CAN message object.
Definition can_types.h:80
CAN_TX_MSG_REQUEST_STATUS
Defines the CAN transmit Api return status.
Definition can_types.h:124
CAN_OP_MODES
Defines the CAN operation modes are available for the module to use.
Definition can_types.h:137
This data structure used to configure the message fields. Some of the fields formatType and brs data ...
Definition can_types.h:53
unsigned int frameType
Definition can_types.h:55
unsigned int formatType
Definition can_types.h:57
unsigned int dlc
Definition can_types.h:56
unsigned int idType
Definition can_types.h:54
unsigned int brs
Definition can_types.h:58
This data structure used to configure the CAN FD message object.
Definition can_types.h:68
struct CAN_MSG_FIELD field
Definition can_types.h:70
uint32_t msgId
Definition can_types.h:69
uint8_t * data
Definition can_types.h:71