ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_epd_cal_limits_mv_t Struct Reference

The panel's documented VCOM window, in millivolt magnitudes. More...

#include <ra8_epd_cal.h>

Data Fields

uint16_t min_mv
 Lowest accepted VCOM magnitude, millivolts.
uint16_t max_mv
 Highest accepted VCOM magnitude, millivolts.

Detailed Description

The panel's documented VCOM window, in millivolt magnitudes.

Range-checking is what turns "a number came back" into "a number worth trusting". A controller that has not finished booting reports 0; a corrupted read reports 0xFFFF; both must be rejected rather than programmed. The window is panel data – state it from the panel's datasheet in the BSP descriptor, not from a guess here.

Invariant
min_mv <= max_mv.
min_mv is non-zero, so zero can never be in range.
Example:
// Waveshare 6 inch HD (IT8951): panels ship labelled around -1.5 V.
const ra8_epd_cal_limits_mv_t limits = {.min_mv = 200U, .max_mv = 4000U};
The panel's documented VCOM window, in millivolt magnitudes.
See also
ra8_epd_cal_vcom_in_range

Definition at line 278 of file ra8_epd_cal.h.

Field Documentation

◆ max_mv

uint16_t ra8_epd_cal_limits_mv_t::max_mv

Highest accepted VCOM magnitude, millivolts.

Definition at line 280 of file ra8_epd_cal.h.

Referenced by ra8_epd_cal_resolve(), and ra8_epd_cal_vcom_in_range().

◆ min_mv

uint16_t ra8_epd_cal_limits_mv_t::min_mv

Lowest accepted VCOM magnitude, millivolts.

Definition at line 279 of file ra8_epd_cal.h.

Referenced by ra8_epd_cal_resolve().


The documentation for this struct was generated from the following file: