STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
CanIf_Can.h
Go to the documentation of this file.
1
10#ifndef CANIF_CAN_H__
11#define CANIF_CAN_H__
12
13#include "Can_Types.h"
14
15void CanIf_TxConfirmation( PduIdType CanTxPduId );
16void CanIf_RxIndication( const Can_HwType *Mailbox, const PduInfoType *PduInfoPtr );
17void CanIf_ControllerBusOff( uint8 ControllerId );
18void CanIf_ControllerModeIndication( uint8 ControllerId, Can_ControllerStateType ControllerMode );
19void CanIf_ControllerErrorStatePassive( uint8 ControllerId, uint16 RxErrorCounter, uint16 TxErrorCounter );
20void CanIf_ErrorNotification( uint8 ControllerId, Can_ErrorType CanError );
21
22#endif /* CANIF_CAN_H__ */
void CanIf_ControllerModeIndication(uint8 ControllerId, Can_ControllerStateType ControllerMode)
Controller mode indication.
Definition CanIf.c:1127
void CanIf_ErrorNotification(uint8 ControllerId, Can_ErrorType CanError)
Signal the error notification of the CAN controller.
Definition CanIf.c:1206
void CanIf_ControllerErrorStatePassive(uint8 ControllerId, uint16 RxErrorCounter, uint16 TxErrorCounter)
Signal the error state of the CAN controller.
Definition CanIf.c:1170
void CanIf_TxConfirmation(PduIdType CanTxPduId)
Handles the transmit confirmation.
Definition CanIf.c:1015
void CanIf_RxIndication(const Can_HwType *Mailbox, const PduInfoType *PduInfoPtr)
Handles the received CAN frame.
Definition CanIf.c:1048
void CanIf_ControllerBusOff(uint8 ControllerId)
Handles the bus-off event.
Definition CanIf.c:1094
enum _Can_ErrorType Can_ErrorType
The enumeration represents a superset of CAN Error Types which typical CAN HW is able to report....
enum _Can_ControllerStateType Can_ControllerStateType
States that are used by the several ControllerMode functions.
struct _Can_HwType Can_HwType
This type defines a data structure which clearly provides an Hardware Object Handle including its cor...
Can Driver
uint8 PduIdType
This type is used within the entire AUTOSAR Com Stack except for bus drivers.
Definition ComStack_Types.h:28
unsigned short uint16
Definition Platform_Types.h:96
unsigned char uint8
Definition Platform_Types.h:94
This variables shall be used to store the basic information about a PDU.
Definition ComStack_Types.h:58