2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef COMMUNICATION_SERVER_INCLUDE_CAN_TXMSG_CAN_TXMSG_H_
18 #define COMMUNICATION_SERVER_INCLUDE_CAN_TXMSG_CAN_TXMSG_H_
23 #include "CAN_Thread.h"
24 #include "API_Local_Common.h"
25 #include "Canif_API_Local.h"
28 #define CAN_OPC_PAC_RX 0x00
29 #define CAN_OPC_COMMAND_STARTUP_FIN_REQ_TX 0x00 // CAN start completion notification request transmission
30 #define CAN_OPC_COMMAND_MRST_INFO_REQ_TX 0x01 // CAN master reset information notification request transmission
31 #define CAN_OPC_COMMAND_VERSION_REQ_TX 0x02 // CAN Version Request Send
32 #define CAN_OPC_COMMAND_CONNECTION_NODE_REQ_TX 0x03 // CAN connection node notification request transmission
33 #define CAN_OPC_COMMAND_BUS_STATUS_REQ_TX 0x04 // CAN bus status notification request transmission
34 #define CAN_OPC_COMMAND_FUELCALC_REQ_TX 0x05 // CAN section flame reset response transmission
35 #define CAN_OPC_COMMAND_STARTUP_FIN_RESP_RX 0x06 // CAN startup completion notice received
36 #define CAN_OPC_COMMAND_MRST_INFO_RESP_RX 0x07 // CAN Master Reset Information Notification Reception
37 #define CAN_OPC_COMMAND_VERSION_RESP_RX 0x08 // CAN Version Response Reception
38 #define CAN_OPC_COMMAND_CONNECTION_NODE_RESP_RX 0x09 // Receive CAN Connection Node Notification Response
39 #define CAN_OPC_COMMAND_BUS_STATUS_RESP_RX 0x10 // CAN Bus Status Notification Response Reception
40 #define CAN_OPC_COMMAND_FUELCALC_RST_REQ_RX 0x11 // RECEIVE REQUEST FREE OF CAN SECTION
44 char notify_name[CANIF_NOTIFY_NAME_MAX_SIZE + 1];
45 } CAN_SEND_STATUS_DAT;
47 void CANTxMsgInit(void);
48 EFrameworkunifiedStatus CANTxMsg(HANDLE h_app);
49 EFrameworkunifiedStatus CANTxMsgBit(HANDLE h_app);
50 void CANCommandSetFuelCalcRstReq(void);
51 EFrameworkunifiedStatus CANTxMsgCommand(HANDLE h_app);
52 EFrameworkunifiedStatus CANSndStsProcess(HANDLE h_app, CanSendResult *rcv_msg,
53 PS_CommunicationProtocol cid);
54 #endif // COMMUNICATION_SERVER_INCLUDE_CAN_TXMSG_CAN_TXMSG_H_