Files | |
file | volatile_utils.h |
Utility functions for non-atomic but volatile access. | |
Functions | |
static uint8_t | volatile_load_u8 (const volatile uint8_t *var) |
Load an 8 bit value completely unoptimized. More... | |
static uint16_t | volatile_load_u16 (const volatile uint16_t *var) |
Load an 16 bit value completely unoptimized. More... | |
static uint32_t | volatile_load_u32 (const volatile uint32_t *var) |
Load an 32 bit value completely unoptimized. More... | |
static uint64_t | volatile_load_u64 (const volatile uint64_t *var) |
Load an 64 bit value completely unoptimized. More... | |
static void | volatile_store_u8 (volatile uint8_t *dest, uint8_t val) |
Store an 8 bit value completely unoptimized. More... | |
static void | volatile_store_u16 (volatile uint16_t *dest, uint16_t val) |
Store a 16 bit value completely unoptimized. More... | |
static void | volatile_store_u32 (volatile uint32_t *dest, uint32_t val) |
Store a 32 bit value completely unoptimized. More... | |
static void | volatile_store_u64 (volatile uint64_t *dest, uint64_t val) |
Store a 64 bit value completely unoptimized. More... | |
static uint8_t | volatile_fetch_add_u8 (volatile uint8_t *dest, uint8_t val) |
Unoptimized version of *dest += val More... | |
static uint8_t | volatile_fetch_sub_u8 (volatile uint8_t *dest, uint8_t val) |
Unoptimized version of *dest -= val More... | |
static uint8_t | volatile_fetch_or_u8 (volatile uint8_t *dest, uint8_t val) |
Unoptimized version of *dest |= val More... | |
static uint8_t | volatile_fetch_xor_u8 (volatile uint8_t *dest, uint8_t val) |
Unoptimized version of *dest ^= val More... | |
static uint8_t | volatile_fetch_and_u8 (volatile uint8_t *dest, uint8_t val) |
Unoptimized version of *dest &= val More... | |
static uint16_t | volatile_fetch_add_u16 (volatile uint16_t *dest, uint16_t val) |
Unoptimized version of *dest += val More... | |
static uint16_t | volatile_fetch_sub_u16 (volatile uint16_t *dest, uint16_t val) |
Unoptimized version of *dest -= val More... | |
static uint16_t | volatile_fetch_or_u16 (volatile uint16_t *dest, uint16_t val) |
Unoptimized version of *dest |= val More... | |
static uint16_t | volatile_fetch_xor_u16 (volatile uint16_t *dest, uint16_t val) |
Unoptimized version of *dest ^= val More... | |
static uint16_t | volatile_fetch_and_u16 (volatile uint16_t *dest, uint16_t val) |
Unoptimized version of *dest &= val More... | |
static uint32_t | volatile_fetch_add_u32 (volatile uint32_t *dest, uint32_t val) |
Unoptimized version of *dest += val More... | |
static uint32_t | volatile_fetch_sub_u32 (volatile uint32_t *dest, uint32_t val) |
Unoptimized version of *dest -= val More... | |
static uint32_t | volatile_fetch_or_u32 (volatile uint32_t *dest, uint32_t val) |
Unoptimized version of *dest |= val More... | |
static uint32_t | volatile_fetch_xor_u32 (volatile uint32_t *dest, uint32_t val) |
Unoptimized version of *dest ^= val More... | |
static uint32_t | volatile_fetch_and_u32 (volatile uint32_t *dest, uint32_t val) |
Unoptimized version of *dest &= val More... | |
static uint64_t | volatile_fetch_add_u64 (volatile uint64_t *dest, uint64_t val) |
Unoptimized version of *dest += val More... | |
static uint64_t | volatile_fetch_sub_u64 (volatile uint64_t *dest, uint64_t val) |
Unoptimized version of *dest -= val More... | |
static uint64_t | volatile_fetch_or_u64 (volatile uint64_t *dest, uint64_t val) |
Unoptimized version of *dest |= val More... | |
static uint64_t | volatile_fetch_xor_u64 (volatile uint64_t *dest, uint64_t val) |
Unoptimized version of *dest ^= val More... | |
static uint64_t | volatile_fetch_and_u64 (volatile uint64_t *dest, uint64_t val) |
Unoptimized version of *dest &= val More... | |
|
inlinestatic |
Unoptimized version of *dest += val
dest | Address of the value to add to |
val | Value to add |
Definition at line 171 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest += val
dest | Address of the value to add to |
val | Value to add |
Definition at line 232 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest += val
dest | Address of the value to add to |
val | Value to add |
Definition at line 293 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest += val
dest | Address of the value to add to |
val | Value to add |
Definition at line 115 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest &= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 219 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest &= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 280 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest &= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 341 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest &= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 159 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest |= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 195 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest |= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 256 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest |= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 317 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest |= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 137 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest -= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 183 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest -= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 244 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest -= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 305 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest -= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 126 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest ^= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 207 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest ^= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 268 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest ^= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 329 of file volatile_utils.h.
|
inlinestatic |
Unoptimized version of *dest ^= val
dest | Address of the value to apply the operation on |
val | Second operand |
Definition at line 148 of file volatile_utils.h.
|
inlinestatic |
Load an 16 bit value completely unoptimized.
var | Address to load the value from |
var
Definition at line 50 of file volatile_utils.h.
|
inlinestatic |
Load an 32 bit value completely unoptimized.
var | Address to load the value from |
var
Definition at line 59 of file volatile_utils.h.
|
inlinestatic |
Load an 64 bit value completely unoptimized.
var | Address to load the value from |
var
Definition at line 68 of file volatile_utils.h.
|
inlinestatic |
Load an 8 bit value completely unoptimized.
var | Address to load the value from |
var
Definition at line 41 of file volatile_utils.h.
|
inlinestatic |
Store a 16 bit value completely unoptimized.
dest | Address to write the given value unoptimized to |
val | Value to write unoptimized |
Definition at line 87 of file volatile_utils.h.
|
inlinestatic |
Store a 32 bit value completely unoptimized.
dest | Address to write the given value unoptimized to |
val | Value to write unoptimized |
Definition at line 96 of file volatile_utils.h.
|
inlinestatic |
Store a 64 bit value completely unoptimized.
dest | Address to write the given value unoptimized to |
val | Value to write unoptimized |
Definition at line 105 of file volatile_utils.h.
|
inlinestatic |
Store an 8 bit value completely unoptimized.
dest | Address to write the given value unoptimized to |
val | Value to write unoptimized |
Definition at line 78 of file volatile_utils.h.