[RF69] Fixed typos
This commit is contained in:
parent
28c12f4576
commit
089d925f82
7 changed files with 17 additions and 17 deletions
|
@ -58,8 +58,8 @@ void setup() {
|
|||
}
|
||||
|
||||
// set broadcast address
|
||||
// NOTE: calling this method will autmatically enable
|
||||
// address filtering (node or broadcast address)
|
||||
// NOTE: calling this method will automatically enable
|
||||
// address filtering (node or broadcast address)
|
||||
Serial.print(F("[RF69] Setting broadcast address ... "));
|
||||
state = rf.setBroadcastAddress(0xFF);
|
||||
if (state == ERR_NONE) {
|
||||
|
|
|
@ -104,7 +104,7 @@ void loop() {
|
|||
// you can also read received data as byte array
|
||||
/*
|
||||
byte byteArr[8];
|
||||
int state = lora.readData(byteArr, 8);
|
||||
int state = rf.readData(byteArr, 8);
|
||||
*/
|
||||
|
||||
if (state == ERR_NONE) {
|
||||
|
|
|
@ -71,11 +71,11 @@ void loop() {
|
|||
|
||||
if (state == ERR_NONE) {
|
||||
// the packet was successfully transmitted
|
||||
Serial.println(F(" success!"));
|
||||
Serial.println(F("success!"));
|
||||
|
||||
} else if (state == ERR_PACKET_TOO_LONG) {
|
||||
// the supplied packet was longer than 64 bytes
|
||||
Serial.println(F(" too long!"));
|
||||
Serial.println(F("too long!"));
|
||||
|
||||
} else {
|
||||
// some other error occurred
|
||||
|
|
|
@ -72,7 +72,7 @@ void setup() {
|
|||
|
||||
// address filtering can also be disabled
|
||||
// NOTE: calling this method will also erase previously set
|
||||
// node and broadcast address
|
||||
// node and broadcast address
|
||||
/*
|
||||
Serial.print(F("[RF69] Disabling address filtering ... "));
|
||||
state = rf.disableAddressFiltering();
|
||||
|
@ -105,17 +105,17 @@ void loop() {
|
|||
|
||||
// transmit byte array in broadcast mode
|
||||
/*
|
||||
byte byteArr[] = {0x01, 0x23, 0x45, 0x56, 0x78, 0xAB, 0xCD, 0xEF};
|
||||
byte byteArr[] = {0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF};
|
||||
int state = rf.transmit(byteArr, 8, 0xFF);
|
||||
*/
|
||||
|
||||
if (state == ERR_NONE) {
|
||||
// the packet was successfully transmitted
|
||||
Serial.println(F(" success!"));
|
||||
Serial.println(F("success!"));
|
||||
|
||||
} else if (state == ERR_PACKET_TOO_LONG) {
|
||||
// the supplied packet was longer than 64 bytes
|
||||
Serial.println(F(" too long!"));
|
||||
Serial.println(F("too long!"));
|
||||
|
||||
} else {
|
||||
// some other error occurred
|
||||
|
|
|
@ -61,8 +61,8 @@ void setup() {
|
|||
|
||||
// you can also transmit byte array up to 64 bytes long
|
||||
/*
|
||||
byte byteArr[] = {0x01, 0x23, 0x45, 0x56,
|
||||
0x78, 0xAB, 0xCD, 0xEF};
|
||||
byte byteArr[] = {0x01, 0x23, 0x45, 0x67,
|
||||
0x89, 0xAB, 0xCD, 0xEF};
|
||||
state = rf.startTransmit(byteArr, 8);
|
||||
*/
|
||||
}
|
||||
|
@ -123,8 +123,8 @@ void loop() {
|
|||
|
||||
// you can also transmit byte array up to 64 bytes long
|
||||
/*
|
||||
byte byteArr[] = {0x01, 0x23, 0x45, 0x56,
|
||||
0x78, 0xAB, 0xCD, 0xEF};
|
||||
byte byteArr[] = {0x01, 0x23, 0x45, 0x67,
|
||||
0x89, 0xAB, 0xCD, 0xEF};
|
||||
int state = rf.startTransmit(byteArr, 8);
|
||||
*/
|
||||
|
||||
|
|
|
@ -308,7 +308,7 @@ int16_t RF69::startTransmit(uint8_t* data, size_t len, uint8_t addr) {
|
|||
}
|
||||
|
||||
int16_t RF69::readData(uint8_t* data, size_t len) {
|
||||
// set mdoe to standby
|
||||
// set mode to standby
|
||||
int16_t state = standby();
|
||||
RADIOLIB_ASSERT(state);
|
||||
// get packet length
|
||||
|
|
|
@ -144,7 +144,7 @@
|
|||
#define RF69_LISTEN_RES_IDLE_64_US 0b01000000 // 7 6 resolution of Listen mode idle time: 64 us
|
||||
#define RF69_LISTEN_RES_IDLE_4_1_MS 0b10000000 // 7 6 4.1 ms (default)
|
||||
#define RF69_LISTEN_RES_IDLE_262_MS 0b11000000 // 7 6 262 ms
|
||||
#define RF69_LISTEN_RES_RX_64_US 0b00010000 // 5 4 resolution of Listen mode ry time: 64 us (default)
|
||||
#define RF69_LISTEN_RES_RX_64_US 0b00010000 // 5 4 resolution of Listen mode rx time: 64 us (default)
|
||||
#define RF69_LISTEN_RES_RX_4_1_MS 0b00100000 // 5 4 4.1 ms
|
||||
#define RF69_LISTEN_RES_RX_262_MS 0b00110000 // 5 4 262 ms
|
||||
#define RF69_LISTEN_ACCEPT_ABOVE_RSSI_THRESH 0b00000000 // 3 3 packet acceptance criteria: RSSI above threshold
|
||||
|
@ -305,7 +305,7 @@
|
|||
#define RF69_IRQ_TX_READY 0b00100000 // 5 5 Tx mode ready
|
||||
#define RF69_IRQ_PLL_LOCK 0b00010000 // 4 4 PLL is locked
|
||||
#define RF69_IRQ_RSSI 0b00001000 // 3 3 RSSI value exceeded RssiThreshold
|
||||
#define RF69_IRQ_TIMEOUT 0b00000100 // 2 2 timeout occured
|
||||
#define RF69_IRQ_TIMEOUT 0b00000100 // 2 2 timeout occurred
|
||||
#define RF69_IRQ_AUTO_MODE 0b00000010 // 1 1 entered intermediate mode
|
||||
#define RF69_SYNC_ADDRESS_MATCH 0b00000001 // 0 0 sync address detected
|
||||
|
||||
|
@ -313,7 +313,7 @@
|
|||
#define RF69_IRQ_FIFO_FULL 0b10000000 // 7 7 FIFO is full
|
||||
#define RF69_IRQ_FIFO_NOT_EMPTY 0b01000000 // 6 6 FIFO contains at least 1 byte
|
||||
#define RF69_IRQ_FIFO_LEVEL 0b00100000 // 5 5 FIFO contains more than FifoThreshold bytes
|
||||
#define RF69_IRQ_FIFO_OVERRUN 0b00010000 // 4 4 FIFO overrun occured
|
||||
#define RF69_IRQ_FIFO_OVERRUN 0b00010000 // 4 4 FIFO overrun occurred
|
||||
#define RF69_IRQ_PACKET_SENT 0b00001000 // 3 3 packet was sent
|
||||
#define RF69_IRQ_PAYLOAD_READY 0b00000100 // 2 2 last payload byte received and CRC check passed
|
||||
#define RF69_IRQ_CRC_OK 0b00000010 // 1 1 CRC check passed
|
||||
|
|
Loading…
Add table
Reference in a new issue