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

include/otto/data.h File Reference

Data parameter definitions. More...

Go to the source code of this file.

Classes

union  otto_prn
 PRN structure. More...

struct  otto_slot
 SLOT definition. More...

struct  otto_prn_table_entry
 PRN table entry. More...

struct  otto_slot_pkt_table_entry
 PKT SLOT type. More...

struct  otto_slot_bmp_table_entry
 BMP SLOT type. More...

struct  otto_slot_bmm_table_entry
 BMM SLOT type. More...

struct  otto_slot_unm_table_entry
 UNM SLOT type. More...

struct  otto_slot_snm_table_entry
 SNM SLOT type. More...

struct  otto_slot_sed_table_entry
 SED SLOT type. More...

struct  otto_parameter_value
 Decoded parameter. More...

union  otto_dtc
 Encoded DTC. More...


Functions

int otto_decode_by_slot (struct otto_slot *slot, int in, int *out)
 Apply SLOT transformation to OBD2 data and return general format data.

int otto_encode_by_slot (struct otto_slot *slot, int in, int *out)
 Apply SLOT transformation to general format data and return OBD2 data.

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

Data parameter definitions.

Parameter reference number (PRN), scaling, limit, offset, transfer (SLOT) structures, and diagnostic trouble code (DTC) format


Function Documentation

int otto_decode_by_slot struct otto_slot slot,
int  in,
int *  out
 

Apply SLOT transformation to OBD2 data and return general format data.

Parameters:
slot  SLOT describing format of data
in  Input data (OBD2 format)
out  Output data (general format)

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

int otto_encode_by_slot struct otto_slot slot,
int  in,
int *  out
 

Apply SLOT transformation to general format data and return OBD2 data.

Parameters:
slot  SLOT describing format of data
in  Input data (general format)
out  Output data (OBD2 format)


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