\Iqrf\Repository\Entities Transceiver

Transceiver entity

Summary

Methods
Properties
Constants
__construct
fromApiResponse
jsonSerialize
trFamily
homePage
status
mounting
trSeries
mcu
components
pins
voltage
current
operatingTemperature
types
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

$trFamily

$trFamily : \Iqrf\Repository\Enums\TransceiverFamily

Type

TransceiverFamily — Transceiver family

$homePage

$homePage : string

Type

string

$mounting

$mounting : \Iqrf\Repository\Enums\TransceiverMount

Type

TransceiverMount

$trSeries

$trSeries : \Iqrf\Repository\Entities\TrSeries

Type

TrSeries

$mcu

$mcu : \Iqrf\Repository\Enums\McuTypes

Type

McuTypes

$pins

$pins : \Iqrf\Repository\Entities\TransceiverPins

Type

TransceiverPins

$voltage

$voltage : \Iqrf\Repository\Entities\TransceiverVoltage

Type

TransceiverVoltage

$current

$current : \Iqrf\Repository\Entities\TransceiverCurrent

Type

TransceiverCurrent

$operatingTemperature

$operatingTemperature : \Iqrf\Repository\Entities\TransceiverTemperature

Type

TransceiverTemperature

$types

$types : array

Type

array<string|int, mixed>

Methods

__construct()

__construct(string  $homePage, \Iqrf\Repository\Enums\TransceiverStatus  $status, \Iqrf\Repository\Enums\TransceiverMount  $mounting, \Iqrf\Repository\Entities\TrSeries  $trSeries, \Iqrf\Repository\Enums\McuTypes  $mcu, \Iqrf\Repository\Entities\TransceiverComponents  $components, \Iqrf\Repository\Entities\TransceiverPins  $pins, \Iqrf\Repository\Entities\TransceiverVoltage  $voltage, \Iqrf\Repository\Entities\TransceiverCurrent  $current, \Iqrf\Repository\Entities\TransceiverTemperature  $operatingTemperature, \Iqrf\Repository\Entities\TransceiverSeriesType[]  $types) : mixed

Constructor

Parameters

string $homePage

Product homepage

\Iqrf\Repository\Enums\TransceiverStatus $status

Product status

\Iqrf\Repository\Enums\TransceiverMount $mounting

Mounting method

\Iqrf\Repository\Entities\TrSeries $trSeries

TR series

\Iqrf\Repository\Enums\McuTypes $mcu

MCU type

\Iqrf\Repository\Entities\TransceiverComponents $components

Transceiver components

\Iqrf\Repository\Entities\TransceiverPins $pins

Transceiver pins

\Iqrf\Repository\Entities\TransceiverVoltage $voltage

Transceiver voltages

\Iqrf\Repository\Entities\TransceiverCurrent $current

Transceiver current

\Iqrf\Repository\Entities\TransceiverTemperature $operatingTemperature

Operating temperatures

\Iqrf\Repository\Entities\TransceiverSeriesType[] $types

Transceiver types

Returns

mixed —

fromApiResponse()

fromApiResponse(array{seriesName: string, homePage: string, status: string, mounting: string, seriesMIcode: int, mcuMIcode: int, mcu: string, rfChip: string, ldo: string, temperatureSensorChip: string, pins: int, ioPins: int, adInputs: int, operatingVoltageMin: float, operatingVoltageMax: float, operatingVoltageNominal: float, supplyVoltageMin: float, supplyVoltageMax: float, currentRfTxMin: float, currentRfTxMax: float, currentRfRxStd: float, currentRfRxLp: float, currentRfRxXlp: float, currentRfReady: float, currentLEDG: float, currentLEDR: float, currentMcu: float, currentSleep: float, currentDeepSleep: float, operatingTemperatureMin: float, operatingTemperatureMax: float, seriesImage: string, types: array{typeName: string, temperatureSensor: bool, antenna: string, dimensions: string, image?: string}[]}  $response) : \Iqrf\Repository\Entities\Transceiver

Creates a new Transceiver entity from API response

Parameters

array{seriesName: string, homePage: string, status: string, mounting: string, seriesMIcode: int, mcuMIcode: int, mcu: string, rfChip: string, ldo: string, temperatureSensorChip: string, pins: int, ioPins: int, adInputs: int, operatingVoltageMin: float, operatingVoltageMax: float, operatingVoltageNominal: float, supplyVoltageMin: float, supplyVoltageMax: float, currentRfTxMin: float, currentRfTxMax: float, currentRfRxStd: float, currentRfRxLp: float, currentRfRxXlp: float, currentRfReady: float, currentLEDG: float, currentLEDR: float, currentMcu: float, currentSleep: float, currentDeepSleep: float, operatingTemperatureMin: float, operatingTemperatureMax: float, seriesImage: string, types: array{typeName: string, temperatureSensor: bool, antenna: string, dimensions: string, image?: string}[]} $response

API response body

Returns

\Iqrf\Repository\Entities\Transceiver —

Transceiver entity

jsonSerialize()

jsonSerialize() : array{homePage: string, status: string, trFamily: string, trSeries: array{value: int, name: string, imageUrl: string}, mounting: string, mcu: array{value: int, name: string}, components: array{rfChip: string, ldo: string, temperatureSensorChip: string}, pins: array{total: int, ioPins: int, adInputs: int}, voltage: array{operating: array{min: float, max: float, nominal: float}, supply: array{min: float, max: float}}, current: array{rf: array{tx: array{min: float, max: float}, rx: array{std: float, lp: float, xlp: float}, ready: float}, ledg: float, ledr: float, mcu: float, sleep: float, deepSleep: float}, operatingTemperature: array{min: float, max: float}, types: array{name: string, temperatureSensor: bool, antenna: string, dimensions: array{width: float, height: float, depth: float}, imageUrl: string|null}[]}

Serializes the Transceivers entity into JSON

Returns

array{homePage: string, status: string, trFamily: string, trSeries: array{value: int, name: string, imageUrl: string}, mounting: string, mcu: array{value: int, name: string}, components: array{rfChip: string, ldo: string, temperatureSensorChip: string}, pins: array{total: int, ioPins: int, adInputs: int}, voltage: array{operating: array{min: float, max: float, nominal: float}, supply: array{min: float, max: float}}, current: array{rf: array{tx: array{min: float, max: float}, rx: array{std: float, lp: float, xlp: float}, ready: float}, ledg: float, ledr: float, mcu: float, sleep: float, deepSleep: float}, operatingTemperature: array{min: float, max: float}, types: array{name: string, temperatureSensor: bool, antenna: string, dimensions: array{width: float, height: float, depth: float}, imageUrl: string|null}[]} —

JSON serialized Transceiver entity