\Iqrf\Repository\EntitiesTransceiverCurrentRf

Transceiver RF current entity

Summary

Methods
Properties
Constants
__construct()
fromApiResponse()
jsonSerialize()
$tx
$rx
$ready
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$tx

$tx : \Iqrf\Repository\Entities\TransceiverCurrentRfTx

Type

\Iqrf\Repository\Entities\TransceiverCurrentRfTx

$rx

$rx : \Iqrf\Repository\Entities\TransceiverCurrentRfRx

Type

\Iqrf\Repository\Entities\TransceiverCurrentRfRx

$ready

$ready : float

Type

float

Methods

__construct()

__construct(\Iqrf\Repository\Entities\TransceiverCurrentRfTx  $tx, \Iqrf\Repository\Entities\TransceiverCurrentRfRx  $rx, float  $ready) : mixed

Constructor

Parameters

\Iqrf\Repository\Entities\TransceiverCurrentRfTx $tx

RF TX current

\Iqrf\Repository\Entities\TransceiverCurrentRfRx $rx

RF RX current

float $ready

RF ready current [µA]

Returns

mixed —

fromApiResponse()

fromApiResponse(array{currentRfTxMin: float, currentRfTxMax: float, currentRfRxStd: float, currentRfRxLp: float, currentRfRxXlp: float, currentRfReady: float}  $response) : \Iqrf\Repository\Entities\TransceiverCurrentRf

Creates a new TransceiverCurrentRf entity from API Response

Parameters

array{currentRfTxMin: float, currentRfTxMax: float, currentRfRxStd: float, currentRfRxLp: float, currentRfRxXlp: float, currentRfReady: float} $response

API response body

Returns

\Iqrf\Repository\Entities\TransceiverCurrentRf —

TransceiverCurrentRf entity

jsonSerialize()

jsonSerialize() : array{rx: array{std: float, lp: float, xlp: float}, tx: array{min: float, max: float}, ready: float}

Serializes the TransceiverCurrentRf entity into JSON

Returns

array{rx: array{std: float, lp: float, xlp: float}, tx: array{min: float, max: float}, ready: float} —

JSON serialized TransceiverCurrentRf entity