FastLED 3.9.15
Loading...
Searching...
No Matches
memcpy.h File Reference

Detailed Description

ISR-safe memory operations (inline, header-only)

Definition in file memcpy.h.

+ Include dependency graph for memcpy.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fl
 Base definition for an LED controller.
 
namespace  fl::isr
 

Functions

FASTLED_FORCE_INLINE bool fl::isr::is_aligned (const void *ptr, size_t alignment)
 Check if a pointer is aligned to a specific byte boundary.
 
FL_OPTIMIZE_FUNCTION FL_IRAM FASTLED_FORCE_INLINE void fl::isr::memcpy (void *FL_RESTRICT_PARAM dst, const void *FL_RESTRICT_PARAM src, size_t num_bytes)
 ISR-optimized memcpy with alignment detection and switch dispatch.
 
FL_OPTIMIZE_FUNCTION FL_IRAM FASTLED_FORCE_INLINE void fl::isr::memcpy_16 (u16 *FL_RESTRICT_PARAM dst, const u16 *FL_RESTRICT_PARAM src, size_t count)
 ISR-optimized 16-bit block copy for 2-byte aligned memory.
 
FL_OPTIMIZE_FUNCTION FL_IRAM FASTLED_FORCE_INLINE void fl::isr::memcpy_32 (u32 *FL_RESTRICT_PARAM dst, const u32 *FL_RESTRICT_PARAM src, size_t count)
 ISR-optimized 32-bit block copy for 4-byte aligned memory.
 
FL_OPTIMIZE_FUNCTION FL_IRAM FASTLED_FORCE_INLINE void fl::isr::memcpy_byte (u8 *FL_RESTRICT_PARAM dst, const u8 *FL_RESTRICT_PARAM src, size_t count)
 ISR-optimized byte copy.
 
FL_OPTIMIZE_FUNCTION FL_IRAM FASTLED_FORCE_INLINE void fl::isr::memset_zero (u8 *dest, size_t count)
 ISR-safe memset with alignment optimization.
 
FL_OPTIMIZE_FUNCTION FL_IRAM FASTLED_FORCE_INLINE void fl::isr::memset_zero_byte (u8 *dest, size_t count)
 ISR-safe memset replacement (byte-by-byte zero)
 
FL_OPTIMIZE_FUNCTION FL_IRAM FASTLED_FORCE_INLINE void fl::isr::memset_zero_word (u8 *dest, size_t count)
 ISR-safe word-aligned memset (4-byte writes)