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

otto_packet Union Reference

OBD2 Packet format. More...

#include <packet.h>

List of all members.

Public Attributes

struct {
   unsigned char   data [OTTO_PACKET_LENGTH_MAX]
 Packet data.

   int   length
 Packet length.

   unsigned char   nb
 Normalization bit for in frame response (only valid with VPW).

raw
struct {
   unsigned char   id
 Message ID.

   unsigned char   data [OTTO_PACKET_LENGTH_MAX-1]
 Data field.

single
 Single byte header packet.

union {
   struct {
enum  { OTTO_PKTHDRCS_THREEBYTE = 0, OTTO_PKTHDRCS_ONEBYTE = 1 }
 Header type. More...

      unsigned char   id_lo:4
 Message ID low 4 bits.

      enum otto_packet:: { ... } ::@31::@34   h
 Header type.

      unsigned char   id_hi:3
 Message ID high 3 bits.

   }   hdr
 Single byte form of consolidated header.

   struct {
      otto_funcadr_data   data
   }   func
   struct {
      otto_phyadr_data   data
   }   phy
consol1
 Single byte form of consolidated header message.

union {
   struct {
enum  { OTTO_PKTHDR_FUNCTIONAL = 0, OTTO_PKTHDR_PHYSICAL = 1 }
 Addressing mode. More...

enum  { OTTO_PKTHDR_IFRREQUIRED = 0, OTTO_PKTHDR_IFRDISALLOWED = 1 }
 In-frame response (IFR). More...

enum  { OTTO_PKTHDR_THREEBYTE = 0, OTTO_PKTHDR_ONEBYTE = 1 }
 Header type. More...

      unsigned char   z:2
 Message type see HS3000, p. 254, table 6.

      enum otto_packet:: { ... } ::@35::@38   y
 Addressing mode.

      enum otto_packet:: { ... } ::@35::@39   k
 In-frame response (IFR).

      enum otto_packet:: { ... } ::@35::@40   h
 Header type.

      unsigned char   p:3
 Priority Zero is highest priority, 7 is lowest.

   }   first
 First byte.

   struct {
      struct {
enum  { OTTO_FUNCADR_TGTADR_COMMAND = 0, OTTO_FUNCADR_TGTADR_STATUS = 1 }
 Functional target address type. More...

         enum otto_packet:: { ... } ::@36::@41::@42   w
 Functional target address type.

         unsigned char   id:7
 Primary ID.

      }   target
 Target address.

      unsigned char   source
 Source address.

      otto_funcadr_data   data
 Data formats.

   }   func
 Functional addressing.

   struct {
      unsigned char   target
 Target address.

      unsigned char   source
 Source address.

      otto_phyadr_data   data
 Data.

   }   phy
 Physical addressing.

consol3
 Three byte form of consolidated header message.


Detailed Description

OBD2 Packet format.


Member Data Documentation

union { ... } otto_packet::consol1
 

Single byte form of consolidated header message.

union { ... } otto_packet::consol3
 

Three byte form of consolidated header message.

union otto_phyadr_data otto_packet::data
 

Data.

union otto_funcadr_data otto_packet::data
 

Data formats.

union otto_phyadr_data otto_packet::data
 

union otto_funcadr_data otto_packet::data
 

unsigned char otto_packet::data[OTTO_PACKET_LENGTH_MAX-1]
 

Data field.

struct { ... } otto_packet::first
 

First byte.

struct { ... } otto_packet::func
 

Functional addressing.

struct { ... } otto_packet::func
 

enum { ... } ::@40 otto_packet::h
 

Header type.

enum { ... } ::@34 otto_packet::h
 

Header type.

struct { ... } otto_packet::hdr
 

Single byte form of consolidated header.

unsigned char otto_packet::id
 

Primary ID.

unsigned char otto_packet::id_hi
 

Message ID high 3 bits.

unsigned char otto_packet::id_lo
 

Message ID low 4 bits.

enum { ... } ::@39 otto_packet::k
 

In-frame response (IFR).

int otto_packet::length
 

Packet length.

unsigned char otto_packet::nb
 

Normalization bit for in frame response (only valid with VPW).

unsigned char otto_packet::p
 

Priority Zero is highest priority, 7 is lowest.

struct { ... } otto_packet::phy
 

Physical addressing.

struct { ... } otto_packet::phy
 

struct { ... } otto_packet::raw
 

struct { ... } otto_packet::single
 

Single byte header packet.

unsigned char otto_packet::source
 

Source address.

unsigned char otto_packet::target
 

Target address.

struct { ... } ::@41 otto_packet::target
 

Target address.

enum { ... } otto_packet::w
 

Functional target address type.

enum { ... } ::@38 otto_packet::y
 

Addressing mode.

unsigned char otto_packet::z
 

Message type see HS3000, p. 254, table 6.


The documentation for this union was generated from the following file:
Generated on Thu Jul 8 19:26:08 2004 for OpenOtto by doxygen 1.3.7