|
OOKwiz
on/off-keying for ESP32 and a variety of supported radio modules
|
Functions | |
| long | nthNumberFrom (String &in, int num) |
| Identifies contiguous series of digits in String, giving you the toInt() of the nth one. More... | |
| void | trim (String &in) |
| Takes spaces off start and end of supplied string, operates in place on String passed in. More... | |
| void | shiftInBit (uint8_t *buf, const int len, const bool bit) |
| Shifts bits into a range of bytes. Reverse order because length may be unkown at start. More... | |
| bool | shiftOutBit (uint8_t *buf, const int len) |
| Shifts out the bits in an array of bytes, emptying array in process. More... | |
| void | split (const String &in, const String &separator, String &before, String &after) |
| Will split a srting in two on first occurence of String separator. More... | |
| bool | between (const int &compare, const int &lower_bound, const int &upper_bound) |
| See if number is between two bounds. More... | |
| long tools::nthNumberFrom | ( | String & | in, |
| int | num | ||
| ) |
Identifies contiguous series of digits in String, giving you the toInt() of the nth one.
| in | (String) The string we're looking at. |
| num | (int) Which series of numbers you'd like evaluated. |
| void tools::trim | ( | String & | in | ) |
| void tools::shiftInBit | ( | uint8_t * | buf, |
| const int | len, | ||
| const bool | bit | ||
| ) |
Shifts bits into a range of bytes. Reverse order because length may be unkown at start.
| buf | pointer to uint8_t array with enough space for the bits to me shifted in. |
| len | number of bits that have been shifted in so far. |
| bit | bool holding the bit to be shifted in this time |
| bool tools::shiftOutBit | ( | uint8_t * | buf, |
| const int | len | ||
| ) |
| void tools::split | ( | const String & | in, |
| const String & | separator, | ||
| String & | before, | ||
| String & | after | ||
| ) |
| bool tools::between | ( | const int & | compare, |
| const int & | lower_bound, | ||
| const int & | upper_bound | ||
| ) |