Skip to content

Commit

Permalink
This is RUI3 SDK inside RUI_4.0.2 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlo-rak committed Aug 31, 2023
1 parent 1c86a7d commit 00ff6b1
Show file tree
Hide file tree
Showing 142 changed files with 652 additions and 1,788 deletions.
6 changes: 3 additions & 3 deletions boards.txt

Large diffs are not rendered by default.

23 changes: 0 additions & 23 deletions cores/nRF5/component/rui_v3_api/HardwareSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ using namespace std;
typedef enum
{
RAK_AT_MODE, ///< AT command mode
#ifdef SUPPOER_BINARY
RAK_API_MODE, ///< API mode
#endif
#ifdef SUPPORT_LORA
#ifdef SUPPORT_PASSTHRU
RAK_PASS_MODE, ///< Pass-through mode
Expand Down Expand Up @@ -357,27 +355,6 @@ class HardwareSerial : public Stream
*/
virtual void flush(void);

/**@par Description
* Get the baud rate from the system configure
*
* @par Syntax
* Serial.getBaudrate();
* @return void
* @par Example
* @verbatim
void setup() {
uint32_t baudrate = Serial.getBaudrate();
Serial.begin(baudrate);
}
void loop() {
}
@endverbatim
*/
virtual uint32_t getBaudrate(void);

/**@}*/
};

Expand Down
62 changes: 0 additions & 62 deletions cores/nRF5/component/rui_v3_api/RAKLoRa.h
Original file line number Diff line number Diff line change
Expand Up @@ -642,68 +642,7 @@ class RAKLoraP2P
*/
bool set(bool enable);
};
class cad
{
public:
/**@par Description
* This api allows the user to get the Channel Activity Detection status
*
* @par Syntax
* api.lora.cad.get();
* @return Channel Activity Detection status(Type: bool)
* @par Example
* @verbatim
void setup()
{
Serial.begin(115200);
Serial.printf("Set Node device work mode %s\r\n", api.lorawan.nwm.set(0) ? "Success" : "Fail");
Serial.printf("Set P2P mode fix Length payload %s\r\n", api.lora.cad.set(true) ? "Success" : "Fail");
}
void loop()
{
Serial.printf("P2P mode fix Length payload switch = %s\r\n", api.lora.cad.get()?"true":"false");
delay(1000);
}
@endverbatim
*/
bool get();
/**@par Description
* This api allows the user to set the Channel Activity Detection status
*
* @par Syntax
* api.lora.cad.set();
* @param value Channel Activity Detection status(bool)
* @return bool
* @retval TRUE for setting P2P Channel Activity Detection success
* @retval FALSE for setting P2P Channel Activity Detection failure
* @par Example
* @verbatim
void setup()
{
Serial.begin(115200);
Serial.printf("Set Node device work mode %s\r\n", api.lorawan.nwm.set(0) ? "Success" : "Fail");
Serial.printf("Set P2P mode fix Length payload %s\r\n", api.lora.cad.set(true) ? "Success" : "Fail");
}
void loop()
{
Serial.printf("P2P mode fix Length payload switch = %s\r\n", api.lora.cad.get()?"true":"false");

delay(1000);
}
@endverbatim
*/

bool set(bool enable);
};
iqInver iqInver;
syncword syncword;
rfFrequency rfFrequency;
Expand All @@ -714,7 +653,6 @@ class RAKLoraP2P
preambleLength preambleLength;
symbolTimeout symbolTimeout;
fixLengthPayload fixLengthPayload;
cad cad;

};

Expand Down
Loading

0 comments on commit 00ff6b1

Please sign in to comment.