ARDUINO MEGA Functions Debug
(→writeDebugStream) |
|||
| Line 8: | Line 8: | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | class="functionType"| <span class="bigKeywordBI">void </span><span class="bigKeywordB">writeDebugStream</span><span class="bigCodePunc">( | + | | class="functionType"| <span class="bigKeywordBI">void </span><span class="bigKeywordB">writeDebugStream</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const string</span><span class="bigCodeBasic">sFormatString</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_void|void]]) | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_void|void]]) The Debug Stream functionality allow the user to output formatted text to a debug terminal, similar to a printf statement in a command line terminal window. |
|- | |- | ||
| | | | ||
| Line 18: | Line 18: | ||
! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| − | | style="border-style: solid; border-width: 1px 0px 1px 0px"|'' | + | | style="border-style: solid; border-width: 1px 0px 1px 0px"|''sFormatString'' |
| − | | style="border-style: solid; border-width: 1px 0px 1px 0px"| | + | | style="border-style: solid; border-width: 1px 0px 1px 0px"|A formatted String |
| style="border-style: solid; border-width: 1px 0px 1px 0px"|[[Data_Types#dataType_void|void]] | | style="border-style: solid; border-width: 1px 0px 1px 0px"|[[Data_Types#dataType_void|void]] | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|- | |- | ||
|} | |} | ||
Revision as of 17:29, 9 May 2012
ARDUINO → Functions and Variables → ARDUINO MEGA Functions Debug
|
| |||||||
writeDebugStream
| void writeDebugStream(const stringsFormatString) | ||||||
| (void) The Debug Stream functionality allow the user to output formatted text to a debug terminal, similar to a printf statement in a command line terminal window. | ||||||
| ||||||
|
memset
| void memset(void &pToBuffer, const short nValue, const short nNumbOfBytes) | ||||||||||||
| (void) Sets a block of memory at pToBuffer to the value nValue. nNumbOfBytes is the number of bytes to set. This is a useful function for initializing the value of an array to all zeros. Identical to the function found in conventional C 'string.h' library. | ||||||||||||
| ||||||||||||
|
nVexMasterVersion
| const word nVexMasterVersion | |
| (word) Variable contains the firmware version for the VEX master CPU. | |
|
version
| const word version | |
| (word) Contains the firmware version number. | |
|