\Iqrf\Repository\EntitiesTransceiverCurrent

Transceiver current entity

Summary

Methods
Properties
Constants
__construct()
fromApiResponse()
jsonSerialize()
$rf
$ledg
$ledr
$mcu
$sleep
$deepSleep
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$rf

$rf : \Iqrf\Repository\Entities\TransceiverCurrentRf

Type

\Iqrf\Repository\Entities\TransceiverCurrentRf

$ledg

$ledg : float

Type

float

$ledr

$ledr : float

Type

float

$mcu

$mcu : float

Type

float

$sleep

$sleep : float

Type

float

$deepSleep

$deepSleep : float

Type

float

Methods

__construct()

__construct(\Iqrf\Repository\Entities\TransceiverCurrentRf  $rf, float  $ledg, float  $ledr, float  $mcu, float  $sleep, float  $deepSleep) : mixed

Constructor

Parameters

\Iqrf\Repository\Entities\TransceiverCurrentRf $rf

RF current

float $ledg

Green LED current [µA]

float $ledr

Red LED current [µA]

float $mcu

MCU current [µA]

float $sleep

Sleep current [µA]

float $deepSleep

Deep sleep current [µA]

Returns

mixed —

fromApiResponse()

fromApiResponse(array{currentRfTxMin: float, currentRfTxMax: float, currentRfRxStd: float, currentRfRxLp: float, currentRfRxXlp: float, currentRfReady: float, currentLEDG: float, currentLEDR: float, currentMcu: float, currentSleep: float, currentDeepSleep: float}  $response) : \Iqrf\Repository\Entities\TransceiverCurrent

Creates a new TransceiverCurrent entity from API Response

Parameters

array{currentRfTxMin: float, currentRfTxMax: float, currentRfRxStd: float, currentRfRxLp: float, currentRfRxXlp: float, currentRfReady: float, currentLEDG: float, currentLEDR: float, currentMcu: float, currentSleep: float, currentDeepSleep: float} $response

API response body

Returns

\Iqrf\Repository\Entities\TransceiverCurrent —

TransceiverCurrent entity

jsonSerialize()

jsonSerialize() : array{rf: array{rx: array{std: float, lp: float, xlp: float}, tx: array{min: float, max: float}, ready: float}, ledg: float, ledr: float, mcu: float, sleep: float, deepSleep: float}

Serializes the TransceiverCurrent entity into JSON

Returns

array{rf: array{rx: array{std: float, lp: float, xlp: float}, tx: array{min: float, max: float}, ready: float}, ledg: float, ledr: float, mcu: float, sleep: float, deepSleep: float} —

JSON serialized TransceiverCurrent entity