![](/media/cache/profiles/1b8833c58d3a24b62eb45027f94d093e.jpg.50x50_q85.jpg)
Knight Rider PIO sample for teckBASIC, konashi.js
Dependencies: BLE_API_Native_IRC mbed
Fork of BLE_konashi_PIO_test by
app_util.h File Reference
Go to the source code of this file.
Data Structures | |
struct | uint8_array_t |
Byte array type. More... | |
Typedefs | |
typedef uint8_t | uint16_le_t [2] |
type for holding an encoded (i.e. | |
typedef uint8_t | uint32_le_t [4] |
type for holding an encoded (i.e. | |
Enumerations | |
enum | app_irq_priority_t |
The interrupt priorities available to the application while the softdevice is active. More... | |
enum | { UNIT_0_625_MS = 625, UNIT_1_25_MS = 1250, UNIT_10_MS = 10000 } |
Functions | |
static __INLINE uint8_t | uint16_encode (uint16_t value, uint8_t *p_encoded_data) |
Function for encoding a uint16 value. | |
static __INLINE uint8_t | uint32_encode (uint32_t value, uint8_t *p_encoded_data) |
Function for encoding a uint32 value. | |
static __INLINE uint16_t | uint16_decode (const uint8_t *p_encoded_data) |
Function for decoding a uint16 value. | |
static __INLINE uint32_t | uint32_decode (const uint8_t *p_encoded_data) |
Function for decoding a uint32 value. | |
static __INLINE uint8_t | current_int_priority_get (void) |
Function for finding the current interrupt level. | |
static __INLINE uint8_t | battery_level_in_percent (const uint16_t mvolts) |
Function for converting the input voltage (in milli volts) into percentage of 3.0 Volts. | |
static __INLINE bool | is_word_aligned (void *p) |
Function for checking if a pointer value is aligned to a 4 byte boundary. |
Detailed Description
Definition in file app_util.h.
Generated on Tue Jul 12 2022 16:55:07 by
![doxygen](doxygen.png)