You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
764 B
C
39 lines
764 B
C
5 months ago
|
/*
|
||
|
* TimeStartStop.h
|
||
|
*
|
||
|
* Author: Aleksey Gerasimenko
|
||
|
* gerasimenko.aleksey.n@gmail.com
|
||
|
*/
|
||
|
|
||
|
#include "DSP2833x_Device.h" // DSP2833x Headerfile Include File
|
||
|
#include "DSP2833x_Examples.h"
|
||
|
|
||
|
#ifndef SYSCTRL_TIMEINTERVAL_H_
|
||
|
#define SYSCTRL_TIMEINTERVAL_H_
|
||
|
|
||
|
namespace SYSCTRL
|
||
|
{
|
||
|
|
||
|
class MeasureTimeInterval
|
||
|
{
|
||
|
private:
|
||
|
CPUTIMER_VARS& m_CPUTimer;
|
||
|
Uint32 m_timer_result;
|
||
|
Uint32 m_timer_result_previous;
|
||
|
Uint32 m_magic_number;
|
||
|
Uint32 m_period;
|
||
|
Uint32 m_tim;
|
||
|
Uint32 m_counter;
|
||
|
public:
|
||
|
MeasureTimeInterval(CPUTIMER_VARS& CPUTimer, Uint32 magic);
|
||
|
public:
|
||
|
void start(void);
|
||
|
void stop(void);
|
||
|
void reset(void);
|
||
|
//
|
||
|
};//end class MeasureTimeStartStop
|
||
|
|
||
|
} /* namespace SYSCTRL */
|
||
|
|
||
|
#endif /* SYSCTRL_TIMEINTERVAL_H_ */
|