Commit 3f7c2652 authored by Hynek Syrovátka's avatar Hynek Syrovátka 🇨🇿
Browse files

Added iqrf.embed.os.Indicate_??? for DPA 4.13

parent a9095bfc
......@@ -56,14 +56,14 @@ Parameters:
Returns:
object: Object with the following fields (see DPA documentation https://www.iqrf.org/DpaTechGuide/ for details):
* mid - number:
* osVersion - number:
* trMcuType - number:
* osBuild - number:
* rssi - number:
* mid - number:
* osVersion - number:
* trMcuType - number:
* osBuild - number:
* rssi - number:
* supplyVoltage - number: contains real voltage value
* flags - number:
* slotLimits - number:
* flags - number:
* slotLimits - number:
* ibk - array: (from version 1.00 for DPA 3.03+)
* dpaVer - number: (from version 2.00 for DPA 4.10+)
* perNr - number: (from version 2.00 for DPA 4.10+)
......@@ -92,7 +92,7 @@ iqrf.embed.os.Read_Response = function ( response )
// False at DPA < 3.03
if ( responseData.length > 12 )
result.ibk = responseData.slice( 12, 28 );
// Only in DSM the next condition would be false or at DPA < 4.10
if ( responseData.length > 28 )
{
......@@ -152,10 +152,10 @@ Parameters:
Returns:
object: Object with the following fields (see DPA documentation https://www.iqrf.org/DpaTechGuide for details):
* checksum - number:
* configuration - array:
* rfpgm - number:
* undocumented - number:
* checksum - number:
* configuration - array:
* rfpgm - number:
* undocumented - number:
*/
iqrf.embed.os.ReadCfg_Response = function ( response )
{
......@@ -281,7 +281,7 @@ Encodes DPA request to set various security parameters.
Parameters:
type - number: see DPA documentation https://www.iqrf.org/DpaTechGuide for details.
data - array: see DPA documentation https://www.iqrf.org/DpaTechGuide for details.
data - array: see DPA documentation https://www.iqrf.org/DpaTechGuide for details.
Returns:
iqrf.DpaRawHdpMessage: DPA request object.
......@@ -332,9 +332,9 @@ Encodes DPA request to write configuration bytes.
Parameters:
bytes - array: Array of objects with the following fields (see DPA documentation https://www.iqrf.org/DpaTechGuide for details):
* address - number:
* value - number:
* mask - number:
* address - number:
* value - number:
* mask - number:
Returns:
iqrf.DpaRawHdpMessage: DPA request object.
......@@ -439,9 +439,9 @@ iqrf.embed.os.SelectiveBatch_Response = function ( response )
Encodes DPA request to test RF signal.
Parameters:
channel - number: The channel to test.
channel - number: The channel to test.
rxFilter - number: RX filter value passed as a parameter to checkRF().
time - number: Time interval to test the signal. Unit is 10 ms.
time - number: Time interval to test the signal. Unit is 10 ms.
Returns:
iqrf.DpaRawHdpMessage: DPA request object.
......@@ -523,7 +523,7 @@ iqrf.embed.os.WriteCfg_Response = function ( response )
Encodes DPA request indicate the node.
Parameters:
control - number: Indication control bits.
control - number: Indication control bits.
Returns:
iqrf.DpaRawHdpMessage: DPA request object.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment