Graphic Display v1.0.0
Control any mochrome display, with any microcontroller, in any amount.
Loading...
Searching...
No Matches
st7920_t Struct Reference

Handler of ST7920. Each display must need your own handler. Yes, this library supports multiples displays. More...

#include <st7920.h>

Data Fields

st7920_mode_e Mode
 
struct { 
 
   fxnDelay_ms   delayMs 
 Pointer to function to execute a milliseconds delay. More...
 
   fxn7920_mtxLock   mtxLock 
 Pointer to function that waits and lock the mutex. More...
 
   fxn7920_mtxunlock   mtxUnlock 
 Pointer to function that will unlock the mutex. More...
 
   fxn1306spi_cs   spiCs 
 Pointer to function that controls the Chip Select pin of ST7920. More...
 
   fxn1306spi_reset   spiReset 
 Pointer to function that controls the Reset pin of ST7920. More...
 
   fxn1306spi_write   spiWrite 
 Pointer to function that write data over SPI. More...
 
fxn 
 
struct { 
 
   bool   bInitialized 
 
   uint32_t   u32FrameSize 
 
   uint8_t *   pu8FrameBuffer 
 
   uint32_t   u32Width 
 
   uint32_t   u32Heigth 
 
_intern 
 

Detailed Description

Handler of ST7920. Each display must need your own handler. Yes, this library supports multiples displays.

Precondition
A good practice is to initialize this handler with all parameters as zero.

Field Documentation

◆ [struct]

struct { ... } st7920_t::_intern

◆ bInitialized

bool st7920_t::bInitialized

◆ delayMs

fxnDelay_ms st7920_t::delayMs

Pointer to function to execute a milliseconds delay.

◆ [struct]

struct { ... } st7920_t::fxn

◆ Mode

st7920_mode_e st7920_t::Mode

◆ mtxLock

fxn7920_mtxLock st7920_t::mtxLock

Pointer to function that waits and lock the mutex.

◆ mtxUnlock

fxn7920_mtxunlock st7920_t::mtxUnlock

Pointer to function that will unlock the mutex.

◆ pu8FrameBuffer

uint8_t* st7920_t::pu8FrameBuffer

◆ spiCs

fxn1306spi_cs st7920_t::spiCs

Pointer to function that controls the Chip Select pin of ST7920.

Note
Mandatory when display is on ST7920_MODE_SPI.

◆ spiReset

fxn1306spi_reset st7920_t::spiReset

Pointer to function that controls the Reset pin of ST7920.

Note
Mandatory when display is on ST7920_MODE_SPI.

◆ spiWrite

fxn1306spi_write st7920_t::spiWrite

Pointer to function that write data over SPI.

Note
Mandatory when display is on ST7920_MODE_SPI.
Precondition
Configure the SPI Peripheral in Mode 1 (CPOL=0 and CPHA=1).

◆ u32FrameSize

uint32_t st7920_t::u32FrameSize

◆ u32Heigth

uint32_t st7920_t::u32Heigth

◆ u32Width

uint32_t st7920_t::u32Width

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