DpaPacket
in package
DPA packet
Table of Contents
Properties
- $hwpId : int|null
- $nAdr : int|null
- $pCmd : int|null
- $pData : array<string|int, int>
- $pNum : int|null
Methods
- __construct() : mixed
- DPA packet object constructor
- __toString() : string
- Returns a DPA packet converted to a string
Properties
$hwpId
public
int|null
$hwpId
= null
Hardware profile ID
$nAdr
public
int|null
$nAdr
= null
Network device address
$pCmd
public
int|null
$pCmd
= null
Peripheral command
$pData
public
array<string|int, int>
$pData
= []
Binary buffer with DPA request data
$pNum
public
int|null
$pNum
= null
Peripheral number
Methods
__construct()
DPA packet object constructor
public
__construct(string $packet[, bool $bigEndian = false ]) : mixed
Parameters
- $packet : string
-
DPA packet in string
- $bigEndian : bool = false
-
Is NADR and HWPID in big endian?
__toString()
Returns a DPA packet converted to a string
public
__toString() : string
Return values
string —DPA packet converted to a string