Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Bicycl_Computer_NUCLEO-F411RE Bicycl_Computer_NUCLEO-L476RG
Fork of UniGraphic by
Protocols Class Reference
Abstract interface class for spi and parallel protocols. More...
#include <Protocols.h>
Inherited by PAR16, PAR8, SPI16, and SPI8.
Public Member Functions | |
virtual void | wr_cmd8 (unsigned char cmd)=0 |
Send 8bit command to display controller. | |
virtual void | wr_data8 (unsigned char data)=0 |
Send 8bit data to display controller. | |
virtual void | wr_cmd16 (unsigned short cmd)=0 |
Send 2x8bit command to display controller. | |
virtual void | wr_data16 (unsigned short data)=0 |
Send 2x8bit data to display controller. | |
virtual void | wr_gram (unsigned short data)=0 |
Send 16bit pixeldata to display controller. | |
virtual void | wr_gram (unsigned short data, unsigned int count)=0 |
Send same 16bit pixeldata to display controller multiple times. | |
virtual void | wr_grambuf (unsigned short *data, unsigned int lenght)=0 |
Send array of pixeldata shorts to display controller. | |
virtual unsigned short | rd_gram (bool convert)=0 |
Read 16bit pixeldata from display controller (with dummy cycle) | |
virtual unsigned int | rd_reg_data32 (unsigned char reg)=0 |
Read 4x8bit register data (with dummy cycle) | |
virtual unsigned int | rd_extcreg_data32 (unsigned char reg, unsigned char SPIreadenablecmd)=0 |
Read 3x8bit ExtendedCommands register data. | |
virtual void | hw_reset ()=0 |
HW reset sequence (without display init commands) | |
virtual void | BusEnable (bool enable)=0 |
Set ChipSelect high or low. |
Detailed Description
Abstract interface class for spi and parallel protocols.
Definition at line 30 of file Protocols.h.
Member Function Documentation
virtual void BusEnable | ( | bool | enable ) | [pure virtual] |
virtual void hw_reset | ( | ) | [pure virtual] |
virtual unsigned int rd_extcreg_data32 | ( | unsigned char | reg, |
unsigned char | SPIreadenablecmd | ||
) | [pure virtual] |
Read 3x8bit ExtendedCommands register data.
- Parameters:
-
reg the register to read SPIreadenablecmd vendor/device specific cmd to read EXTC registers
- Returns:
- data as uint
- Note:
- EXTC regs (0xB0 to 0xFF) are read/write registers but needs special cmd to be read in SPI mode
virtual unsigned short rd_gram | ( | bool | convert ) | [pure virtual] |
virtual unsigned int rd_reg_data32 | ( | unsigned char | reg ) | [pure virtual] |
virtual void wr_cmd16 | ( | unsigned short | cmd ) | [pure virtual] |
virtual void wr_cmd8 | ( | unsigned char | cmd ) | [pure virtual] |
virtual void wr_data16 | ( | unsigned short | data ) | [pure virtual] |
virtual void wr_data8 | ( | unsigned char | data ) | [pure virtual] |
virtual void wr_gram | ( | unsigned short | data ) | [pure virtual] |
virtual void wr_gram | ( | unsigned short | data, |
unsigned int | count | ||
) | [pure virtual] |
Generated on Wed Jul 13 2022 20:11:31 by
