45static const char*
const s_tag =
"EPAPER";
51typedef enum : uint8_t {
68typedef enum : uint8_t {
113 dst[0] = (char)(hi_p ? hi : 0U);
114 dst[1] = (char)(lo_p ? lo : 0U);
static const char * s_tag
Logging / check tag.
Annotation-attribute framework macros for ra8-firmware.
#define RA8_INTERNAL
Marker that a function is intended to be static (file-local).
Validation and Error-Checking Macros for ra8-firmware.
#define RA8_CHECK_NULL_PTR(ptr, tag, message)
Reject nullptr pointer, returning k_ra8_err_null_ptr.
IT8951 e-paper controller SPI driver – public API.
@ k_ra8_epaper_ver_chars
Chars in a FW / LUT version string.
ra8_epaper_devinfo_const_t
Word-unpacking constants (no magic numbers).
@ k_ra8_epaper_di_ascii_min
Lowest printable ASCII.
@ k_ra8_epaper_di_byte_shift
Bits per byte.
@ k_ra8_epaper_di_word_shift
Bits per 16-bit word.
@ k_ra8_epaper_di_byte_mask
Low-byte extraction mask.
@ k_ra8_epaper_di_ver_per_word
Version chars per word.
@ k_ra8_epaper_di_ascii_max
One past printable ASCII.
static void internal_ra8_epaper_unpack_ver_word(uint16_t word, char *dst)
Unpack one 16-bit version word into two ASCII chars.
static void internal_ra8_epaper_decode_dev_word(uint32_t idx, uint16_t word, ra8_epaper_dev_info_t *out)
Fold one GET_DEV_INFO word into the decoded info block.
ra8_err_t ra8_epaper_decode_dev_info(const uint16_t *words, size_t count, ra8_epaper_dev_info_t *out_info)
Decode a raw GET_DEV_INFO word block into a device-info struct.
ra8_epaper_devinfo_idx_t
Word offsets inside the 20-word GET_DEV_INFO response.
@ k_ra8_epaper_di_idx_height
Panel height.
@ k_ra8_epaper_di_idx_width
Panel width.
@ k_ra8_epaper_di_idx_fw
First firmware-version word.
@ k_ra8_epaper_di_idx_buf_lo
Image-buffer base, low half.
@ k_ra8_epaper_di_idx_lut
First LUT-version word.
@ k_ra8_epaper_di_idx_end
One past the last decoded word.
@ k_ra8_epaper_di_idx_buf_hi
Image-buffer base, high half.
Error Code Definitions for ra8-firmware.
@ k_ra8_err_invalid_arg
Invalid function argument.
@ k_ra8_ok
Success – operation completed with all postconditions satisfied.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
#define ra8_log_error(tag, message)
RA8 log error.
Decoded GET_DEV_INFO (0x0302) response.
uint32_t image_buf_base
Controller frame-RAM base.
char fw_version[k_ra8_epaper_ver_chars+1U]
Firmware version, NUL-term.
char lut_version[k_ra8_epaper_ver_chars+1U]
LUT version, NUL-terminated.
uint16_t panel_width
Reported panel width (px).
uint16_t panel_height
Reported panel height (px).