\Iqrf\Repository\Entities TransceiverCurrentRf

Transceiver RF current entity

Summary

Methods
Properties
Constants
__construct
fromApiResponse
jsonSerialize
tx
rx
ready
No public constants found
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Properties

$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