Account
ArmsysApi 0.12.18 |
BTim Class Reference
#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 |
◆ OcMode
enum BTim::OcMode |
Constructor & Destructor Documentation
◆ BTim()
BTim::BTim | ( | ) |
Member Function Documentation
◆ clear()
void BTim::clear | ( | ) |
◆ getCount()
BUInt32 BTim::getCount | ( | ) |
◆ init()
◆ ocInit()
◆ ocSetCompare()
◆ start()
void BTim::start | ( | Bool | on | ) |
Member Data Documentation
◆ otim
| protected |
The documentation for this class was generated from the following files:
Generated by 1.8.15