18 #include "RF24_config.h" 25 typedef enum { RF24_PA_MIN = 0,RF24_PA_LOW, RF24_PA_HIGH, RF24_PA_MAX, RF24_PA_ERROR } rf24_pa_dbm_e ;
32 typedef enum { RF24_1MBPS = 0, RF24_2MBPS, RF24_250KBPS } rf24_datarate_e;
39 typedef enum { RF24_CRC_DISABLED = 0, RF24_CRC_8, RF24_CRC_16 } rf24_crclength_e;
53 bool ack_payload_available;
54 bool dynamic_payloads_enabled;
55 uint8_t ack_payload_length;
56 uint64_t pipe0_reading_address;
96 uint8_t
read_register(uint8_t reg, uint8_t* buf, uint8_t len);
114 uint8_t
write_register(uint8_t reg,
const uint8_t* buf, uint8_t len);
238 RF24(uint8_t _cepin, uint8_t _cspin);
281 bool write(
const void* buf, uint8_t len );
304 bool read(
void* buf, uint8_t len );
457 void setAutoAck( uint8_t pipe,
bool enable ) ;
573 void startWrite(
const void* buf, uint8_t len );
616 void whatHappened(
bool& tx_ok,
bool& tx_fail,
bool& rx_ready);
647 bool isValid() {
return ce_pin != 0xff && csn_pin != 0xff; }
void setAutoAck(bool enable)
rf24_pa_dbm_e getPALevel(void)
bool read(void *buf, uint8_t len)
rf24_datarate_e getDataRate(void)
void setChannel(uint8_t channel)
void print_status(uint8_t status)
uint8_t read_register(uint8_t reg, uint8_t *buf, uint8_t len)
void whatHappened(bool &tx_ok, bool &tx_fail, bool &rx_ready)
void print_observe_tx(uint8_t value)
void startWrite(const void *buf, uint8_t len)
void setRetries(uint8_t delay, uint8_t count)
void print_byte_register(const char *name, uint8_t reg, uint8_t qty=1)
bool write(const void *buf, uint8_t len)
uint8_t read_payload(void *buf, uint8_t len)
void setPayloadSize(uint8_t size)
uint8_t getDynamicPayloadSize(void)
void startListening(void)
void enableDynamicPayloads(void)
bool isAckPayloadAvailable(void)
RF24(uint8_t _cepin, uint8_t _cspin)
void enableAckPayload(void)
void openReadingPipe(uint8_t number, uint64_t address)
void setCRCLength(rf24_crclength_e length)
bool setDataRate(rf24_datarate_e speed)
uint8_t write_payload(const void *buf, uint8_t len)
uint8_t getPayloadSize(void)
void setPALevel(rf24_pa_dbm_e level)
void print_address_register(const char *name, uint8_t reg, uint8_t qty=1)
void openWritingPipe(uint64_t address)
void toggle_features(void)
bool isValid()
Definition: RF24.h:647
void writeAckPayload(uint8_t pipe, const void *buf, uint8_t len)
uint8_t write_register(uint8_t reg, const uint8_t *buf, uint8_t len)
void delay(uint32_t time)
Pause execution.
rf24_crclength_e getCRCLength(void)