FMXXXX Parser Documentation 0.1
FM2100, FM2200, FM4100 and FM4200 Data Parser

IO Class Reference

Public Member Functions

 __construct ($nb_io=null)
 getNbIO ()
 getEvents ()
 addEvent ($id, $val)
 setNbIO ($val)

Detailed Description

IO object for Teltonika's FMXXXX GPS device .

Author:
Thierno Ib. Barry < >
Date:
27 Feb 2011
See also:
Teltonika FMXXXX Protocols GNU/LGPL v2.1
Todo:
Add getters to get Hex values (getHexVaribleName) Example: getHexNbIO()

Constructor & Destructor Documentation

__construct ( nb_io = null)

Constructor

Parameters:
array$nb_ioThe number of a IO's type

Member Function Documentation

addEvent ( id,
val 
)

Add a new event into events array. Note: Both of the parameters must be an Hexadecimal value

Parameters:
string$idThe IO ID which generated the event.
string$valThe IO value of the generated event.
getEvents ( )

Get the IO's events each converted in integer.

See also:
FMXXXX protocols for more informations about the IO's formation
Returns:
array Return IO's events array as array(io_id => io_value)
getNbIO ( )

Get the number of IO value converted in integer.

Returns:
int Return the number of IO converted in integer
setNbIO ( val)

Setter for the number of IO. Note: The value must be in Hexadecimal.

Parameters:
string$valThe number of IO value in Hex base (16)

The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Enumerations