@@ -152,67 +152,6 @@ typedef enum
152
152
RF24_IRQ_ALL = (1 << MASK_MAX_RT) | (1 << TX_DS) | (1 << RX_DR),
153
153
} rf24_irq_flags_e;
154
154
155
- /* *
156
- * @brief A bit-field struct to represent the radio's STATUS byte.
157
- */
158
- struct StatusFlags
159
- {
160
- // starting with bit 0 at the top...
161
- // / Signifies that the TX FIFO is fully occupied.
162
- const bool tx_full () const ;
163
- // / @brief Represents the pipe number that received the first available payload in the RX FIFO.
164
- // / @remark This data shall be considered invalid if the @ref StatusFlags::rx_dr flag is `false`.
165
- const uint8_t rx_pipe () const ;
166
- // / Represents an event where TX Data Failed to send.
167
- const bool tx_df () const ;
168
- // / Represents an event where TX Data Sent successfully.
169
- const bool tx_ds () const ;
170
- // / Represents an event where RX Data is Ready to `RF24::read()`.
171
- const bool rx_dr () const ;
172
-
173
- /* *
174
- * @brief Convert this struct to a human understandable string.
175
- *
176
- * ```cpp
177
- * char buf[69] = {0};
178
- * StatusFlags flags;
179
- * flags.toString(buf);
180
- * ```
181
- *
182
- * Afterward, printing the string in `buf` should read something similar to:
183
- *
184
- * > rx_dr: false, tx_ds: false, tx_df: false, rx_pipe: 7, tx_full: false
185
- *
186
- * @param[out] buf The string buffer into which the StatusFlags description is stored.
187
- * This buffer needs to be at least 69 bytes long.
188
- * @returns The amount of bytes altered in the given `buf` parameter.
189
- */
190
- int toString (char * buf) const ;
191
-
192
- // / The default initializer constructor.
193
- // / @see Details about `StatusFlags::toString()` show an example output of default values.
194
- StatusFlags () : value(0x0E ) {};
195
-
196
- /* *
197
- * @brief Set the StatusFlags using constants defined by @ref rf24_irq_flags_e
198
- *
199
- * @param bits This value shall be a value of @ref rf24_irq_flags_e.
200
- * Enabling multiple flags can be done with bitwise OR operator (`|`).
201
- *
202
- * ```cpp
203
- * // only enable the "RX Data Ready" event
204
- * StatusFlags flags(RF24_RX_DR);
205
- *
206
- * // only enable the "TX Data Sent" and "TX Data Fail" events
207
- * flags = StatusFlags(RF24_TX_DF | RF24_TX_DS);
208
- * ```
209
- */
210
- StatusFlags (uint8_t bits) : value(bits) {};
211
-
212
- private:
213
- const uint8_t value;
214
- };
215
-
216
155
/* *
217
156
* @}
218
157
* @brief Driver class for nRF24L01(+) 2.4GHz Wireless Transceiver
@@ -1250,7 +1189,7 @@ class RF24
1250
1189
* passed by reference.
1251
1190
*
1252
1191
* @note When used in an ISR (Interrupt Service routine), there is a chance that the
1253
- * @ref StatusFlags::rx_pipe() information is inaccurate. See available(uint8_t*) (or the
1192
+ * returned bits 0b1110 (rx_pipe number) is inaccurate. See available(uint8_t*) (or the
1254
1193
* datasheet) for more detail.
1255
1194
*
1256
1195
* @param flags The IRQ flags to clear. Default value is all of them (@ref RF24_IRQ_ALL).
0 commit comments