Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

otVMC Class Reference
[View Memory Content - Class for displays the memory contentView Memory Content - Class for displays the memory content]

Class for displays the memory content. More...

#include <otVMC.h>


Public Types

enum  DataType { D_U8, D_U16, D_U32 }
 < Data types More...

Public Member Functions

 otVMC ()
void open (U8 maxColumns=32, U8 pageLines=32, bool hex=true, bool showAscii=true)
void display (void *ptr, U32 len, U8 dt)
void redirectOutput (__putString fun)
void redirectInput (__getChar funin)
void hexDisplay (bool ena)
void ascii (bool ena)
void lines (U8 ln)
void close ()


Detailed Description


Member Enumeration Documentation

enum otVMC::DataType
 

Enumeration values:
D_U8  Byte.
D_U16  Word.
D_U32  Double word.


Constructor & Destructor Documentation

otVMC.otVMC  ) 
 

Create the class


Member Function Documentation

void otVMC.ascii bool  ena  ) 
 

Enable/disable ASCII corrispondence of displayed data

Parameters:
ena If true show ASCII data

void otVMC.close  ) 
 

Free allocate dmemory used by the library

void otVMC.display void *  ptr,
U32  len,
U8  dt
 

Display the memory content

Parameters:
ptr Memory pointer
len Length of data to display
dt Data type of store, see DataType

void otVMC.hexDisplay bool  ena  ) 
 

Enable/disable hex display of displayed data

Parameters:
ena If true enable hex display

void otVMC.lines U8  ln  ) 
 

Specify the number of lines before a wait is executed

Parameters:
ln Number of lines

void otVMC.open U8  maxColumns = 32,
U8  pageLines = 32,
bool  hex = true,
bool  showAscii = true
 

Init the library with several set

Parameters:
maxColumns Number of locations displayed on each line
pageLines Number of lines displayed before inserting a pause
hex If true display data as hexadecimal
showAscii If true show, at the end of displayed line, a possible ASCII character corrispondence

void otVMC.redirectInput __getChar  funin  ) 
 

Redirect the input to a different one. As default is used UART0 input

Parameters:
funin Function pointer to an input character function

void otVMC.redirectOutput __putString  fun  ) 
 

Redirect the output to a different one. As default is used UART0 output

Parameters:
fun Function pointer to a display function


The documentation for this class was generated from the following file: footer
otStudio - Library Reference - (C) 2020-23 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0