|
HardFOC Core
API reference
|
Unified handler for ISF15ACP4 SmartDisplay modules. More...
#include <Isf15acp4Handler.h>
Public Member Functions | |
| Isf15acp4Handler (BaseSpi &spi, BaseGpio &cs, BaseGpio &dc, BaseGpio &reset, const Isf15acp4HandlerConfig &config={}, BaseGpio *vcc_enable=nullptr, BaseGpio *switch_in=nullptr, bool switch_active_low=true) noexcept | |
| Isf15acp4Handler (const Isf15acp4Handler &)=delete | |
| Isf15acp4Handler & | operator= (const Isf15acp4Handler &)=delete |
| Isf15acp4Handler (Isf15acp4Handler &&)=delete | |
| Isf15acp4Handler & | operator= (Isf15acp4Handler &&)=delete |
| bool | EnsureInitialized () noexcept |
| bool | EnsureDeinitialized () noexcept |
| bool | Deinitialize () noexcept |
| bool | IsInitialized () const noexcept |
| bool | DisplayOn () noexcept |
| bool | DisplayOff () noexcept |
| bool | FillScreen (isf15acp4::Color565 color) noexcept |
| Fill the panel with a packed RGB565 color. | |
| bool | Present (const isf15acp4::GraphicsContext &gfx) noexcept |
| Blit the graphics context to the panel. | |
| isf15acp4::GraphicsContext | CreateGraphicsContext () const noexcept |
| Canvas matching the configured variant and graphics backend. | |
| bool | IsPressed () const noexcept |
| template<typename Fn > | |
| bool | visitDriver (Fn &&fn) noexcept |
| isf15acp4::SmartDisplay< HalIsf15acp4SpiAdapter > * | GetDriver () noexcept |
| const isf15acp4::SmartDisplay< HalIsf15acp4SpiAdapter > * | GetDriver () const noexcept |
| isf15acp4::SmartDisplay< HalIsf15acp4SpiAdapter > * | GetDisplay () noexcept |
| uint16_t | GetErrorFlags () const noexcept |
| void | ClearErrorFlags (uint16_t mask=0xFFFF) noexcept |
| void | DumpDiagnostics () const noexcept |
Private Member Functions | |
| bool | ensureInitializedUnlocked () noexcept |
| void | deinitializeUnlocked () noexcept |
Private Attributes | |
| BaseSpi & | spi_ref_ |
| BaseGpio & | cs_ref_ |
| BaseGpio & | dc_ref_ |
| BaseGpio & | reset_ref_ |
| BaseGpio * | vcc_enable_ |
| BaseGpio * | switch_in_ |
| bool | switch_active_low_ |
| Isf15acp4HandlerConfig | config_ |
| std::unique_ptr< HalIsf15acp4SpiAdapter > | adapter_ |
| std::unique_ptr< isf15acp4::SmartDisplay< HalIsf15acp4SpiAdapter > > | display_ |
| RtosMutex | handler_mutex_ |
| bool | initialized_ {false} |
Unified handler for ISF15ACP4 SmartDisplay modules.
| spi | Host SPI. |
| cs | Software chip-select GPIO. |
| dc | Data/command GPIO. |
| reset | Panel reset GPIO. |
| config | Product variant and graphics backend. |
| vcc_enable | Optional VCC enable GPIO. |
| switch_in | Optional switch sense GPIO. |
| switch_active_low | True when the switch input is active-low. |
|
noexcept |
|
delete |
|
delete |
|
noexcept |
|
noexcept |
Canvas matching the configured variant and graphics backend.
Once initialized the context is bound to the panel (the driver's CreateGraphicsContext()), so GraphicsBackend::HardwareDirect draws reach it; before Initialize() it is unbound. The handler must outlive it.
|
noexcept |
|
privatenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
privatenoexcept |
|
noexcept |
Fill the panel with a packed RGB565 color.
| color | 16-bit RGB565 value. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
delete |
|
delete |
|
noexcept |
Blit the graphics context to the panel.
| gfx | Canvas produced by CreateGraphicsContext(). |
|
inlinenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |