Dallas Semiconductor DS80C400 C Libraries Home Page

Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

tini400_debugport.h File Reference


Detailed Description

Functions supporting the debug port on the TINIs400 module.

This library contains functions that write to the debug port on the TINIs400. More information on the debug port can be found in the application note 614, Diagnostic Port for the TINIs400, found at http://pdfserv.maxim-ic.com/en/an/app614.pdf.

For detailed information on the TINIs400 debug port please see Application Note 614: Diagnostic Port for the TINIs400.

Warning:
The functions in this library are NOT multi-process safe--that is, if you call the same method from two different processes at the same time, the parameters to the function may be destroyed, yielding unpredictable results. Consult each individual funtion's documentation for details on which functions are multi-process safe.

Go to the source code of this file.

Defines

#define TINI400_DEBUGPORT_VERSION   2

Functions

unsigned int debugport_version (void)
 Returns the version number of this DEBUGPORT library.
void debugport_init (void)
 Initializes the timing for the debug port.
void debugport_sendbyte (unsigned char ch)
 Sends a character to the debug port.
void debugport_sendhex (unsigned char b)
 Prints a hexadecimal value to the debug port.
void debugport_sendstring (unsigned char *s)
 Sends a string to the debug port.


Define Documentation

#define TINI400_DEBUGPORT_VERSION   2
 

Version number associated with this header file. Should be the same as the version number returned by the debugport_version function.

See also:
debugport_version


Function Documentation

void debugport_init void   ) 
 

Initializes the timing for the debug port.

This function must be called after init_rom before the debug port can be used. For correct serial port timing, set the clock frequency using init_setfrequency().

void debugport_sendbyte unsigned char  ch  ) 
 

Sends a character to the debug port.

This function sends a character to the debug port at 115200 bps. Note: This function disables interrupts while sending the character.

void debugport_sendhex unsigned char  b  ) 
 

Prints a hexadecimal value to the debug port.

This function converts a byte into hexadecimal and sends the result to the debug port at 115200 bps. Note: This function disables interrupts while sending each character.

void debugport_sendstring unsigned char *  s  ) 
 

Sends a string to the debug port.

This function sends a zero-terminated string to the debug port at 115200 bps. Note: This function disables interrupts while sending each character.

unsigned int debugport_version void   ) 
 

Returns the version number of this DEBUGPORT library.

Returns:
Version number of this DEBUGPORT library.


Copyright 2005 Dallas Semiconductor, Inc.. Documentation generated by Doxygen.