YAHAL
Yet Another Hardware Abstraction Library
Loading...
Searching...
No Matches
timer_msp432 Class Reference
Inheritance diagram for timer_msp432:
timer_interface

Public Member Functions

 timer_msp432 (Timer32_Type *timer=TIMER32_1)
 
void setPeriod (uint32_t us, TIMER::timer_mode mode=TIMER::ONE_SHOT)
 
uint32_t getPeriod ()
 
void setCallback (function< void()> f)
 
void start ()
 
void stop ()
 
bool isRunning ()
 
void reset ()
 
void setNanoPeriod (uint32_t ns, TIMER::timer_mode mode=TIMER::ONE_SHOT)
 
uint32_t getNanoPeriod ()
 
- Public Member Functions inherited from timer_interface

Friends

void T32_INT1_IRQHandler (void)
 
void T32_INT2_IRQHandler (void)
 

Detailed Description

Definition at line 18 of file timer_msp432.h.

Constructor & Destructor Documentation

◆ timer_msp432()

timer_msp432::timer_msp432 ( Timer32_Type * timer = TIMER32_1)

Definition at line 19 of file timer_msp432.cpp.

◆ ~timer_msp432()

timer_msp432::~timer_msp432 ( )
virtual

Definition at line 34 of file timer_msp432.cpp.

Member Function Documentation

◆ getNanoPeriod()

uint32_t timer_msp432::getNanoPeriod ( )

Definition at line 90 of file timer_msp432.cpp.

◆ getPeriod()

uint32_t timer_msp432::getPeriod ( )
virtual

Implements timer_interface.

Definition at line 50 of file timer_msp432.cpp.

◆ isRunning()

bool timer_msp432::isRunning ( )
virtual

Implements timer_interface.

Definition at line 70 of file timer_msp432.cpp.

◆ reset()

void timer_msp432::reset ( )
virtual

Implements timer_interface.

Definition at line 74 of file timer_msp432.cpp.

◆ setCallback()

void timer_msp432::setCallback ( function< void()> f)
virtual

Implements timer_interface.

Definition at line 54 of file timer_msp432.cpp.

◆ setNanoPeriod()

void timer_msp432::setNanoPeriod ( uint32_t ns,
TIMER::timer_mode mode = TIMER::ONE_SHOT )

Definition at line 78 of file timer_msp432.cpp.

◆ setPeriod()

void timer_msp432::setPeriod ( uint32_t us,
TIMER::timer_mode mode = TIMER::ONE_SHOT )
virtual

Implements timer_interface.

Definition at line 38 of file timer_msp432.cpp.

◆ start()

void timer_msp432::start ( )
virtual

Implements timer_interface.

Definition at line 62 of file timer_msp432.cpp.

◆ stop()

void timer_msp432::stop ( )
virtual

Implements timer_interface.

Definition at line 66 of file timer_msp432.cpp.

Friends And Related Symbol Documentation

◆ T32_INT1_IRQHandler

void T32_INT1_IRQHandler ( void )
friend

Definition at line 98 of file timer_msp432.cpp.

◆ T32_INT2_IRQHandler

void T32_INT2_IRQHandler ( void )
friend

Definition at line 109 of file timer_msp432.cpp.


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