The wait in mci_WaitForEvent will delay all card transactions.
Fork of EALib by
EaLcdBoard Class Reference
An interface to Embedded Artists LCD Boards. More...
#include <EaLcdBoard.h>
Public Member Functions | |
EaLcdBoard (PinName sda, PinName scl) | |
Create an interface to an Embedded Artists LCD Board. | |
Result | open (LcdController::Config *cfg, char *initSeq) |
Open the interface and start initialization. | |
Result | close () |
Close the interface. | |
Result | setFrameBuffer (uint32_t address) |
Set and activate the address of the frame buffer to use. | |
Result | getLcdConfig (LcdController::Config *cfg) |
Get the LCD configuration stored in persistent storage on the LCD Board. | |
Result | getDisplayName (char *buf, int len) |
Get the display name stored in persistent storage on the LCD Board. | |
Result | getDisplayMfg (char *buf, int len) |
Get the display manufacturer stored in persistent storage on the LCD Board. | |
Result | getInitSeq (char *buf, int len) |
Get the initialization sequence stored in persistent storage on the LCD Board. | |
Result | getPowerDownSeq (char *buf, int len) |
Get the power down sequence stored in persistent storage on the LCD Board. | |
Result | getTouchParameters (TouchParams_t *params) |
Get the touch panel parameters stored in persistent storage. | |
Result | storeParameters (const char *lcdName, const char *lcdMfg, LcdController::Config *cfg, const char *initSeqStr, const char *pdSeqStr, TouchParams_t *touch, bool controlWp=false) |
Write display parameters to the EEPROM. |
Detailed Description
An interface to Embedded Artists LCD Boards.
Definition at line 10 of file EaLcdBoard.h.
Constructor & Destructor Documentation
EaLcdBoard | ( | PinName | sda, |
PinName | scl | ||
) |
Create an interface to an Embedded Artists LCD Board.
- Parameters:
-
sda I2C data line pin scl I2C clock line pin
Definition at line 95 of file EaLcdBoard.cpp.
Member Function Documentation
EaLcdBoard::Result close | ( | ) |
Close the interface.
- Returns:
- the result of the operation
Definition at line 125 of file EaLcdBoard.cpp.
EaLcdBoard::Result getDisplayMfg | ( | char * | buf, |
int | len | ||
) |
Get the display manufacturer stored in persistent storage on the LCD Board.
- Parameters:
-
buf buffer to which the name will be copied len size of the buffer in bytes
- Returns:
- the result of the operation
Definition at line 232 of file EaLcdBoard.cpp.
EaLcdBoard::Result getDisplayName | ( | char * | buf, |
int | len | ||
) |
Get the display name stored in persistent storage on the LCD Board.
- Parameters:
-
buf buffer to which the name will be copied len size of the buffer in bytes
- Returns:
- the result of the operation
Definition at line 210 of file EaLcdBoard.cpp.
EaLcdBoard::Result getInitSeq | ( | char * | buf, |
int | len | ||
) |
Get the initialization sequence stored in persistent storage on the LCD Board.
- Parameters:
-
buf buffer to which the string will be copied len size of the buffer in bytes
- Returns:
- the result of the operation
Definition at line 254 of file EaLcdBoard.cpp.
EaLcdBoard::Result getLcdConfig | ( | LcdController::Config * | cfg ) |
Get the LCD configuration stored in persistent storage on the LCD Board.
- Parameters:
-
cfg pointer to a configuration object. Parameters are copied to this object.
- Returns:
- the result of the operation
Definition at line 171 of file EaLcdBoard.cpp.
EaLcdBoard::Result getPowerDownSeq | ( | char * | buf, |
int | len | ||
) |
Get the power down sequence stored in persistent storage on the LCD Board.
- Parameters:
-
buf buffer to which the string will be copied len size of the buffer in bytes
- Returns:
- the result of the operation
Definition at line 277 of file EaLcdBoard.cpp.
EaLcdBoard::Result getTouchParameters | ( | TouchParams_t * | params ) |
Get the touch panel parameters stored in persistent storage.
- Parameters:
-
params pointer to a configuration object. Parameters are copied to this object.
- Returns:
- the result of the operation
Definition at line 300 of file EaLcdBoard.cpp.
EaLcdBoard::Result open | ( | LcdController::Config * | cfg, |
char * | initSeq | ||
) |
Open the interface and start initialization.
- Parameters:
-
cfg initialize with a given LCD configuration. If this argument is NULL the LCD configuration will be retrieved from persistent storage on the LCD Board. initSeq the initialization string. If this argument is NULL the initialization string will be retrieved from persistent storage on the LCD Board.
- Returns:
- the result of the operation
Definition at line 102 of file EaLcdBoard.cpp.
EaLcdBoard::Result setFrameBuffer | ( | uint32_t | address ) |
Set and activate the address of the frame buffer to use.
It is the content of the frame buffer that is shown on the display. All the drawing on the frame buffer can be done 'offline' and whenever it should be shown this function can be called with the address of the offline frame buffer.
- Parameters:
-
address Memory address of the frame buffer
- Returns:
- the result of the operation
Definition at line 144 of file EaLcdBoard.cpp.
EaLcdBoard::Result storeParameters | ( | const char * | lcdName, |
const char * | lcdMfg, | ||
LcdController::Config * | cfg, | ||
const char * | initSeqStr, | ||
const char * | pdSeqStr, | ||
TouchParams_t * | touch, | ||
bool | controlWp = false |
||
) |
Write display parameters to the EEPROM.
Please use this function with care since original parameters will be overwritten and cannot be restored.
- Parameters:
-
lcdName the name of the display lcdMfg the display manufacturer cfg the display configuration parameters initSeqStr the initialization sequence string pdSeqStr the power down sequence string touch touch panel parameters
Definition at line 329 of file EaLcdBoard.cpp.
Generated on Tue Jul 12 2022 15:13:42 by 1.7.2