Imt.Base C++ API V4.1.1.0
Loading...
Searching...
No Matches
imt::base::hal::stm32h730::mock::MockTIM Class Reference

Mock implementation for the TIM module. More...

#include <Imt.Base.HAL.STM32H730.Mock/Mock/MockTIM.h>

Public Member Functions

 MockTIM ()
 
virtual ~MockTIM ()
 
void clear ()
 
void init (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::InitStruct const &initConfig)
 
void initClock (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::ClkSrcInitStruct const &clockSourceConfig)
 
void initEncoder (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::EncInitStruct const &encoderConfig)
 
void configMaster (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::MasterInitStruct const &masterConfig)
 
void configSlave (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::SlaveInitStruct const &slaveConfig)
 
void enable (TIMModuleAddress const module, bool const doEnable)
 
void enableCC (TIMModuleAddress const module, bool const doEnable)
 
void enableMOE (TIMModuleAddress const module, bool const doEnable)
 
void clearFlag (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::Flag const flag)
 
bool isFlagSet (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::Flag const flag)
 
void enableIrq (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::Irq const irq, bool const doEnable)
 
bool isIrqEnabled (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::Irq const irq)
 
void setCounter (TIMModuleAddress const module, uint32_t const count)
 
uint32_t getCounter (TIMModuleAddress const module)
 
void setCompare (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::Channel const channel, uint32_t const value)
 
uint32_t getCompare (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::Channel const channel)
 
void setAutoReload (TIMModuleAddress const module, uint32_t const value)
 
void setOCConfig (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::OCInitStruct const &ocInitStruct, imt::base::hal::stm32h730::peripherals::TIM::Channel const channel)
 
void configPWMChannel (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::OCInitStruct const &ocInitStruct, imt::base::hal::stm32h730::peripherals::TIM::Channel const channel)
 
void initInputCapture (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::ICInitStruct const &inputCaptureConfig, imt::base::hal::stm32h730::peripherals::TIM::Channel const channel)
 
void setTIConfig (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::ICInitStruct const &init, imt::base::hal::stm32h730::peripherals::TIM::Channel const channel)
 
void startPWM (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::Channel const channel)
 
void startEncoder (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::Channel const channel)
 
void startInputCapture (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::Channel const channel)
 
void stopInputCapture (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::Channel const channel)
 
bool isInputCaptureSelected (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::Channel const channel)
 
bool isEnabled (TIMModuleAddress const module)
 
bool isCCEnabled (TIMModuleAddress const module)
 
bool isMOEEnabled (TIMModuleAddress const module)
 
void setFlag (TIMModuleAddress const module, imt::base::hal::stm32h730::peripherals::TIM::Flag const flag)
 

Detailed Description

Mock implementation for the TIM module.

Definition at line 19 of file MockTIM.h.

Constructor & Destructor Documentation

◆ MockTIM()

imt::base::hal::stm32h730::mock::MockTIM::MockTIM ( )
inlineexplicit

Definition at line 22 of file MockTIM.h.

◆ ~MockTIM()

virtual imt::base::hal::stm32h730::mock::MockTIM::~MockTIM ( )
inlinevirtual

Definition at line 26 of file MockTIM.h.

Member Function Documentation

◆ clear()

void imt::base::hal::stm32h730::mock::MockTIM::clear ( )
inline

Definition at line 29 of file MockTIM.h.

◆ clearFlag()

void imt::base::hal::stm32h730::mock::MockTIM::clearFlag ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::Flag const  flag 
)
inline

Definition at line 65 of file MockTIM.h.

◆ configMaster()

void imt::base::hal::stm32h730::mock::MockTIM::configMaster ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::MasterInitStruct const &  masterConfig 
)
inline

Definition at line 47 of file MockTIM.h.

◆ configPWMChannel()

void imt::base::hal::stm32h730::mock::MockTIM::configPWMChannel ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::OCInitStruct const &  ocInitStruct,
imt::base::hal::stm32h730::peripherals::TIM::Channel const  channel 
)
inline

Definition at line 102 of file MockTIM.h.

◆ configSlave()

void imt::base::hal::stm32h730::mock::MockTIM::configSlave ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::SlaveInitStruct const &  slaveConfig 
)
inline

Definition at line 50 of file MockTIM.h.

◆ enable()

void imt::base::hal::stm32h730::mock::MockTIM::enable ( TIMModuleAddress const  module,
bool const  doEnable 
)
inline

Definition at line 53 of file MockTIM.h.

◆ enableCC()

void imt::base::hal::stm32h730::mock::MockTIM::enableCC ( TIMModuleAddress const  module,
bool const  doEnable 
)
inline

Definition at line 57 of file MockTIM.h.

◆ enableIrq()

void imt::base::hal::stm32h730::mock::MockTIM::enableIrq ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::Irq const  irq,
bool const  doEnable 
)
inline

Definition at line 73 of file MockTIM.h.

◆ enableMOE()

void imt::base::hal::stm32h730::mock::MockTIM::enableMOE ( TIMModuleAddress const  module,
bool const  doEnable 
)
inline

Definition at line 61 of file MockTIM.h.

◆ getCompare()

uint32_t imt::base::hal::stm32h730::mock::MockTIM::getCompare ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::Channel const  channel 
)
inline

Definition at line 92 of file MockTIM.h.

◆ getCounter()

uint32_t imt::base::hal::stm32h730::mock::MockTIM::getCounter ( TIMModuleAddress const  module)
inline

Definition at line 84 of file MockTIM.h.

◆ init()

void imt::base::hal::stm32h730::mock::MockTIM::init ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::InitStruct const &  initConfig 
)
inline

Definition at line 38 of file MockTIM.h.

◆ initClock()

void imt::base::hal::stm32h730::mock::MockTIM::initClock ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::ClkSrcInitStruct const &  clockSourceConfig 
)
inline

Definition at line 41 of file MockTIM.h.

◆ initEncoder()

void imt::base::hal::stm32h730::mock::MockTIM::initEncoder ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::EncInitStruct const &  encoderConfig 
)
inline

Definition at line 44 of file MockTIM.h.

◆ initInputCapture()

void imt::base::hal::stm32h730::mock::MockTIM::initInputCapture ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::ICInitStruct const &  inputCaptureConfig,
imt::base::hal::stm32h730::peripherals::TIM::Channel const  channel 
)
inline

Definition at line 105 of file MockTIM.h.

◆ isCCEnabled()

bool imt::base::hal::stm32h730::mock::MockTIM::isCCEnabled ( TIMModuleAddress const  module)
inline

Definition at line 131 of file MockTIM.h.

◆ isEnabled()

bool imt::base::hal::stm32h730::mock::MockTIM::isEnabled ( TIMModuleAddress const  module)
inline

Definition at line 127 of file MockTIM.h.

◆ isFlagSet()

bool imt::base::hal::stm32h730::mock::MockTIM::isFlagSet ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::Flag const  flag 
)
inline

Definition at line 69 of file MockTIM.h.

◆ isInputCaptureSelected()

bool imt::base::hal::stm32h730::mock::MockTIM::isInputCaptureSelected ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::Channel const  channel 
)
inline

Definition at line 123 of file MockTIM.h.

◆ isIrqEnabled()

bool imt::base::hal::stm32h730::mock::MockTIM::isIrqEnabled ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::Irq const  irq 
)
inline

Definition at line 77 of file MockTIM.h.

◆ isMOEEnabled()

bool imt::base::hal::stm32h730::mock::MockTIM::isMOEEnabled ( TIMModuleAddress const  module)
inline

Definition at line 135 of file MockTIM.h.

◆ setAutoReload()

void imt::base::hal::stm32h730::mock::MockTIM::setAutoReload ( TIMModuleAddress const  module,
uint32_t const  value 
)
inline

Definition at line 96 of file MockTIM.h.

◆ setCompare()

void imt::base::hal::stm32h730::mock::MockTIM::setCompare ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::Channel const  channel,
uint32_t const  value 
)
inline

Definition at line 88 of file MockTIM.h.

◆ setCounter()

void imt::base::hal::stm32h730::mock::MockTIM::setCounter ( TIMModuleAddress const  module,
uint32_t const  count 
)
inline

Definition at line 81 of file MockTIM.h.

◆ setFlag()

void imt::base::hal::stm32h730::mock::MockTIM::setFlag ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::Flag const  flag 
)
inline

Definition at line 139 of file MockTIM.h.

◆ setOCConfig()

void imt::base::hal::stm32h730::mock::MockTIM::setOCConfig ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::OCInitStruct const &  ocInitStruct,
imt::base::hal::stm32h730::peripherals::TIM::Channel const  channel 
)
inline

Definition at line 99 of file MockTIM.h.

◆ setTIConfig()

void imt::base::hal::stm32h730::mock::MockTIM::setTIConfig ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::ICInitStruct const &  init,
imt::base::hal::stm32h730::peripherals::TIM::Channel const  channel 
)
inline

Definition at line 108 of file MockTIM.h.

◆ startEncoder()

void imt::base::hal::stm32h730::mock::MockTIM::startEncoder ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::Channel const  channel 
)
inline

Definition at line 114 of file MockTIM.h.

◆ startInputCapture()

void imt::base::hal::stm32h730::mock::MockTIM::startInputCapture ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::Channel const  channel 
)
inline

Definition at line 117 of file MockTIM.h.

◆ startPWM()

void imt::base::hal::stm32h730::mock::MockTIM::startPWM ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::Channel const  channel 
)
inline

Definition at line 111 of file MockTIM.h.

◆ stopInputCapture()

void imt::base::hal::stm32h730::mock::MockTIM::stopInputCapture ( TIMModuleAddress const  module,
imt::base::hal::stm32h730::peripherals::TIM::Channel const  channel 
)
inline

Definition at line 120 of file MockTIM.h.


The documentation for this class was generated from the following file: