Main Page | Class List | File List | Class Members | File Members | Related Pages

src/lib/dtc.c File Reference

Diagnostic trouble code routines. More...

#include <linux/types.h>
#include <assert.h>
#include <stdio.h>
#include <otto/otto.h>
#include <otto/packet.h>
#include <otto/data.h>

Functions

const char _ID_[] __attribute__ ((unused))="$Id: dtc.c,v 1.6 2004/07/05 23:25:06 alpha Exp $"
int otto_dtc_tostring (union otto_dtc *dtc, char *str, size_t size)
 Returns the string representation of a DTC.

int otto_dtclookup (union otto_dtc *dtc, char *desc, size_t size)
 Returns a diagnostic message from looking up the specified DTC in the database.


Detailed Description

Diagnostic trouble code routines.


Function Documentation

const char _ID_ [] __attribute__ (unused)   )  [static]
 

int otto_dtc_tostring union otto_dtc dtc,
char *  str,
size_t  size
 

Returns the string representation of a DTC.

Todo:
use DTC character PRN
Parameters:
dtc  DTC to format
str  Buffer to store DTC formatted as a string, must be at least 6 characters
size  Size of str, must be >= 6

int otto_dtclookup union otto_dtc dtc,
char *  desc,
size_t  size
 

Returns a diagnostic message from looking up the specified DTC in the database.

Returns:
Zero on succes, error on failure
Parameters:
dtc  DTC to lookup
desc  Buffer to store DTC description
size  Size of desc


Generated on Thu Jul 8 19:26:07 2004 for OpenOtto by doxygen 1.3.7