From 9947a454d6c951582519bd1bf66153bb8a8241fa Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 30 Mar 2020 19:50:36 +0200 Subject: [PATCH] BladeRF2: REST API: implemented actions --- swagger/sdrangel/api/swagger/include/BladeRF2.yaml | 10 ++++++++++ .../sdrangel/api/swagger/include/DeviceActions.yaml | 2 ++ 2 files changed, 12 insertions(+) diff --git a/swagger/sdrangel/api/swagger/include/BladeRF2.yaml b/swagger/sdrangel/api/swagger/include/BladeRF2.yaml index 23c9f7dac..3350b7ab8 100644 --- a/swagger/sdrangel/api/swagger/include/BladeRF2.yaml +++ b/swagger/sdrangel/api/swagger/include/BladeRF2.yaml @@ -57,6 +57,16 @@ BladeRF2InputReport: items: $ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/NamedEnum" +BladeRF2InputActions: + description: BladeRF2 + properties: + record: + type: integer + description: > + Record IQ stream action + * 0 - stop recording + * 1 - start recording + BladeRF2OutputSettings: description: BladeRF2 properties: diff --git a/swagger/sdrangel/api/swagger/include/DeviceActions.yaml b/swagger/sdrangel/api/swagger/include/DeviceActions.yaml index 9c0ae6920..f034ae2b6 100644 --- a/swagger/sdrangel/api/swagger/include/DeviceActions.yaml +++ b/swagger/sdrangel/api/swagger/include/DeviceActions.yaml @@ -20,6 +20,8 @@ DeviceActions: $ref: "http://localhost:8081/api/swagger/include/AirspyHF.yaml#/AirspyHFActions" bladeRF1InputActions: $ref: "http://localhost:8081/api/swagger/include/BladeRF1.yaml#/BladeRF1InputActions" + bladeRF2InputActions: + $ref: "http://localhost:8081/api/swagger/include/BladeRF2.yaml#/BladeRF2InputActions" fcdProActions: $ref: "http://localhost:8081/api/swagger/include/FCDPro.yaml#/FCDProActions" fcdProPlusActions: