# utilities.c File Reference

Miscellaneous utility methods. More...

`#include <stdlib.h>`
`#include "printf.h"`

## Functions
void | printHexBytes (unsigned char *toPrint, unsigned char numBytes)
void | initializeBuffer (unsigned char *buf, unsigned char len)
void | printBinary (unsigned char n)
char | isAsciiPrintableCharacter (unsigned char c)

## Detailed Description

Miscellaneous utility methods.

Miscellaneous helper utilities.

Rev
  669

Author
  dsmith

Date
  2010-07-13 20:23:40 -0700 (Tue, 13 Jul 2010)

YOU ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.

## Function Documentation

void initializeBuffer | ( | unsigned char * | buf,
|  | unsigned char | len |
| ) |  |  |

Fills the messagePartBuffer with DEADBEEF to aid in debugging

char isAsciiPrintableCharacter | ( | unsigned char | c | ) |

returns >1 if is printable: ASCII values 0x20 (space) through 0x7E (~)

void printBinary | ( | unsigned char | n | ) |

Prints a number in its binary form

All Files Functions Defines