STM32Cube Expansion Pack CAN Stack
|
This pure virtual class holds the interface to work with derived driver classes. More...
#include <Can.h>
Public Member Functions | |
Can () | |
Standard Constructor. | |
virtual | ~Can () |
basic destructor | |
CanDrvStates | GetDrvState (void) |
To get the the software module state. | |
void | SetDrvStateReady (void) |
Switch driver state to ready. | |
void | SetDrvStateUninit (void) |
Switch driver state to uninit. | |
virtual Std_ReturnType | Init (const CanConfigType *ptr2Config=NULL_PTR, const ComIf *ptr2ComIfObject=NULL_PTR)=0 |
The API for Init. More... | |
virtual void | Deinit (void) |
The API function for Deinit. More... | |
virtual Std_ReturnType | SetBaudrate (ECU_CanController Controller, CanControllerBaudRateConfigID BaudrateId) |
The API to set baudrate on a controller. More... | |
virtual Std_ReturnType | SetControllerMode (ECU_CanController Controller, CanControllerStates Transition)=0 |
The API to set a controller mode. More... | |
virtual void | DisableControllerInterrupts (ECU_CanController Controller) |
The API to disable all interrupts of a controller. More... | |
virtual void | EnableControllerInterrupts (ECU_CanController Controller) |
The API to enable all interrupts of a controller. More... | |
virtual Std_ReturnType | CheckWakeup (ECU_CanController Controller) |
The API checks the controller for wakeup events. More... | |
virtual Std_ReturnType | GetControllerErrorState (ECU_CanController Controller, uint8_t *ErrorStatePtr) |
The API returns the error state of the CAN controller. More... | |
virtual Std_ReturnType | GetControllerMode (ECU_CanController Controller, CanControllerStates *ControllerModePtr) |
The API returns the error state of the CAN controller. More... | |
virtual Std_ReturnType | Write (ECU_CanController Controller, const ComStack_CanMessageType *ptr2PduInfo) |
The API to write a message to tx FIFO. More... | |
virtual Std_ReturnType | SetFilterByBitmask (ECU_CanController Controller, ComStack_CanIdType FilterId, ComStack_CanIdType FilterMask) |
configure a free hardware filter using bit masking More... | |
virtual Std_ReturnType | SetFilterByCanId (ECU_CanController Controller, ComStack_CanIdType FilterId) |
configure a free hardware filter using single CAN Id filtering More... | |
virtual void | TxTask (void) |
a task function to do something cycling | |
Private Attributes | |
CanDrvStates | state = CanDrvStates::Uninit |
the sate of the software module | |
Additional Inherited Members | |
![]() | |
TME_VersionInfo (uint16_t Module, uint16_t Version, uint16_t Patch) | |
constructor to set version Ids | |
TME_VersionInfo (uint16_t Vendor, uint16_t Module, uint16_t Version, uint16_t Patch) | |
constructor to set version Ids including the vendor | |
TME_VersionInfo (const TME_VersionInfo &other) | |
copy constructor | |
Std_ReturnType | GetVersionInfo (uint32_t BufferLength, const uint8_t *Ptr2Buffer) |
Copies the VersionIinfo to a 8byte buffer. More... | |
This pure virtual class holds the interface to work with derived driver classes.
It will be managed like the AUTOSAR CAN-module
|
inlinevirtual |
The API checks the controller for wakeup events.
Definition at line 324 of file Can.h.
References E_NOT_OK.
|
inlinevirtual |
|
inlinevirtual |
The API to disable all interrupts of a controller.
|
inlinevirtual |
The API to enable all interrupts of a controller.
|
inlinevirtual |
The API returns the error state of the CAN controller.
[in] | Controller | selects the controller |
[out] | ErrorStatePtr | gives a buffer where the error state should be stored |
Definition at line 334 of file Can.h.
References E_NOT_OK.
|
inlinevirtual |
The API returns the error state of the CAN controller.
[in] | Controller | selects the controller |
[out] | ControllerModePtr | gives a buffer where the controller mode should be stored |
Definition at line 345 of file Can.h.
References E_NOT_OK.
|
pure virtual |
|
inlinevirtual |
The API to set baudrate on a controller.
[in] | Controller | selects the controller |
[in] | BaudrateId | selects the baudrate per name/id |
Definition at line 289 of file Can.h.
References E_NOT_OK.
|
pure virtual |
The API to set a controller mode.
[in] | Controller | selects the controller |
[in] | Transition | selects the transition per name/id |
Implemented in CanDrv_bxCAN.
Referenced by CanIf::Init().
|
inlinevirtual |
configure a free hardware filter using bit masking
set hardware filter
[in] | Controller | select the controller where the filter should be applied |
[in] | FilterId | the selected filter bits |
[in] | FilterMask | the filter mask to select valid filter bits |
Reimplemented in CanDrv_bxCAN.
Definition at line 375 of file Can.h.
References E_NOT_OK.
Referenced by CanIf::Init().
|
inlinevirtual |
configure a free hardware filter using single CAN Id filtering
set hardware filter
[in] | Controller | select the controller where the filter should be applied |
[in] | FilterId | the selected filter bits |
Reimplemented in CanDrv_bxCAN.
Definition at line 387 of file Can.h.
References E_NOT_OK.
Referenced by CanIf::Init().
|
inlinevirtual |
The API to write a message to tx FIFO.
[in] | Controller | select the controller for tx |
[in] | PduInfo | the CAN message to send |
Reimplemented in CanDrv_bxCAN.
Definition at line 355 of file Can.h.
References E_NOT_OK.
Referenced by CanIf::Transmit().