ArmSys Support
ArmsysApi  0.12.18

#include <BTim.h>

Public Types

enum  Mode { ModeCountUp, ModeCountDown }
 
enum  OcMode { OcModeOff = 0x0, OcModePwm1 = 0x6, OcModePwm2 = 0x7 }
 

Public Member Functions

 BTim ()
 
BError init (BUInt timer, Mode mode, BUInt prescale, BUInt period)
 
void start (Bool on)
 
BUInt32 getCount ()
 
void clear ()
 
BError ocInit (BUInt chan, OcMode ocMode, Bool enable)
 
void ocSetCompare (BUInt chan, BUInt value)
 

Protected Attributes

TIM_TypeDef * otim
 

Member Enumeration Documentation

◆ Mode

enum BTim::Mode
Enumerator
ModeCountUp 
ModeCountDown 

◆ OcMode

Enumerator
OcModeOff 
OcModePwm1 
OcModePwm2 

Constructor & Destructor Documentation

◆ BTim()

BTim::BTim ( )

Member Function Documentation

◆ clear()

void BTim::clear ( )

◆ getCount()

BUInt32 BTim::getCount ( )

◆ init()

BError BTim::init ( BUInt  timer,
Mode  mode,
BUInt  prescale,
BUInt  period 
)

◆ ocInit()

BError BTim::ocInit ( BUInt  chan,
OcMode  ocMode,
Bool  enable 
)

◆ ocSetCompare()

void BTim::ocSetCompare ( BUInt  chan,
BUInt  value 
)

◆ start()

void BTim::start ( Bool  on)

Member Data Documentation

◆ otim

TIM_TypeDef* BTim::otim
protected

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