truck-code
Public Member Functions | List of all members
TSC1Interpreter Class Reference

#include <j1939_interpreters.h>

Inheritance diagram for TSC1Interpreter:
Inheritance graph
[legend]
Collaboration diagram for TSC1Interpreter:
Collaboration graph
[legend]

Public Member Functions

virtual int pgn ()
 
virtual void * convert (j1939_pdu_typ *pdu)
 
virtual void print (void *pdv, FILE *fp, bool numeric)
 
virtual void * import (vector< string > &tokens)
 
- Public Member Functions inherited from J1939Interpreter
bool is_type (j1939_pdu_typ *pdu)
 
virtual ~J1939Interpreter ()=0
 

Detailed Description

PDU TSC1 (Torque/Speed Control) doc. in J1939 - 71, p149

Member Function Documentation

◆ convert()

void * TSC1Interpreter::convert ( j1939_pdu_typ pdu)
virtual

Convert a message from its pdu format to its data-specific format.

Parameters
pdugeneric format of the message
Returns
data-specific format of the message, depending on the child class used

Implements J1939Interpreter.

◆ import()

void * TSC1Interpreter::import ( vector< string > &  tokens)
virtual

Import data from a printed file into a message-specific object.

This is used primarily for processing preprinted messages from a file.

Parameters
tokenslist of string values from each data element in the message
Returns
the data-specific format of the message

Implements J1939Interpreter.

◆ pgn()

int TSC1Interpreter::pgn ( )
virtual

J1939 PGN number for the data-type

Reimplemented from J1939Interpreter.

◆ print()

void TSC1Interpreter::print ( void *  pdv,
FILE *  fp,
bool  numeric 
)
virtual

Print and log the message-specific format of a data point.

Parameters
pdvthe message to print
fplocation of the file to print to
numericIf set to true, the names of the separate data points are further revealed.

Implements J1939Interpreter.


The documentation for this class was generated from the following files: