TouchGFX + 0/4 examples
CodeScope will show references to touchgfx::MCUInstrumentation from the following samples and libraries:
Examples
STM32469I-Discovery
Demonstrations
STM32469I_EVAL
Demonstrations
STM324x9I_EVAL
Demonstrations
STM32F429I-Discovery
Demonstrations
 
Symbols
loading...
Files
loading...

touchgfx::MCUInstrumentation class

@class MCUInstrumentation MCUInstrumentation.hpp platform/core/MCUInstrumentation.hpp Interface for instrumenting processors to measure MCU load via measured CPU cycles. Interface for instrumenting processors to measure MCU load via measured CPU cycles.

Syntax

class MCUInstrumentation { public:     MCUInstrumentation():         cc_consumed(0),         cc_in(0)     {     }     virtual void init() = 0;     virtual ~MCUInstrumentation() {}     virtual unsigned int getElapsedUS(unsigned int start, unsigned int now, unsigned int clockfrequency) = 0;     virtual unsigned int getCPUCycles(void) = 0;     virtual void setMCUActive(bool active)     {         if (active)          {             uint32_t cc_temp = getCPUCycles() - cc_in;             cc_consumed += cc_temp;         }         else          {             cc_in = getCPUCycles();         }     }     virtual uint32_t getCCConsumed()     {         return cc_consumed;     }     virtual void setCCConsumed(uint32_t val)     {         cc_consumed = val;     } protected:     volatile uint32_t cc_consumed;      volatile uint32_t cc_in;        };

Fields

cc_consumed

No summary provided. Read more...

cc_in

No summary provided. Read more...

Methods

init()

@fn virtual void MCUInstrumentation::init() = 0; Initialize. Initialize. Read more...

getElapsedUS()

@fn virtual unsigned int MCUInstrumentation::getElapsedUS(unsigned int start, unsigned int now, unsigned int clockfrequency) = 0; Gets elapsed microseconds based on clock frequency. Gets elapsed microseconds based on clock frequency. Read more...

getCPUCycles()

@fn virtual unsigned int MCUInstrumentation::getCPUCycles(void) = 0; Gets CPU cycles from register. Gets CPU cycles from register. Read more...

setMCUActive()

@fn virtual void MCUInstrumentation::setMCUActive(bool active) Sets MCU activity high. Sets MCU activity high. Read more...

getCCConsumed()

@fn virtual uint32_t MCUInstrumentation::getCCConsumed() Gets number of consumed clock cycles. Gets number of consumed clock cycles. Read more...

setCCConsumed()

@fn virtual void MCUInstrumentation::setCCConsumed(uint32_t val) Sets number of consumed clock cycles. Sets number of consumed clock cycles. Read more...

Examples

touchgfx::MCUInstrumentation is referenced by 4 libraries and example projects.

References

LocationReferrerScopeText
MCUInstrumentation.hpp:31
class MCUInstrumentation
HAL.hpp:853touchgfx::HAL::setMCUInstrumentation()
void setMCUInstrumentation(MCUInstrumentation* mcuInstr)
HAL.hpp:1231touchgfx::HAL::mcuInstrumentationtouchgfx::HAL
MCUInstrumentation* mcuInstrumentation; ///< A reference to an optional MCU instrumentation.

Type Use

Variables of touchgfx::MCUInstrumentation type
touchgfx::MCUInstrumentation