Got ack payloads working. Renamed from 'ackpacket'

This commit is contained in:
maniacbug
2011-05-10 14:39:01 -07:00
parent 39b15c8b55
commit ffc7d099ed
2 changed files with 36 additions and 14 deletions

17
RF24.h
View File

@@ -21,7 +21,8 @@ private:
uint8_t ce_pin; /**< "Chip Enable" pin, activates the RX or TX role */
uint8_t csn_pin; /**< SPI Chip select */
uint8_t payload_size; /**< Fixed size of payloads */
boolean ack_packet_available; /**< Whether there is an ack packet waiting */
boolean ack_payload_available; /**< Whether there is an ack payload waiting */
uint8_t ack_payload_length; /**< Dynamic size of pending ack payload. Note: not used. */
protected:
/**
@@ -98,7 +99,17 @@ protected:
* @return Current value of status register
*/
uint8_t read_payload(void* buf, uint8_t len) ;
public:
/**
* Read the payload length
*
* For dynamic payloads, this pulls the size of the payload off
* the chip
*
* @return Payload length of last-received dynamic payload
*/
uint8_t read_payload_length(void);
/**
* Empty the receive buffer
*
@@ -112,7 +123,7 @@ public:
* @return Current value of status register
*/
uint8_t flush_tx(void);
protected:
/**
* Retrieve the current status of the chip
*