TM STM32F4xx Libraries  v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle
TM_EMWIN_Functions

Library Functions. More...

Functions

TM_EMWIN_Result_t TM_EMWIN_Init (void)
 Initializes emWin peripheral. More...
 
TM_EMWIN_Result_t TM_EMWIN_Rotate (TM_EMWIN_Rotate_t rotation)
 Rotates LCD. More...
 
void TM_EMWIN_MemoryEnable (void)
 Enables memory feature for EMWIN. More...
 
void TM_EMWIN_MemoryDisable (void)
 Disables memory feature for EMWIN. More...
 
uint32_t TM_EMWIN_Exec (void)
 Execute EMWIN pending tasks. More...
 
TM_EMWIN_Result_t TM_EMWIN_UpdateTouch (void)
 Updates touch. More...
 

Detailed Description

Library Functions.

Function Documentation

uint32_t TM_EMWIN_Exec ( void  )

Execute EMWIN pending tasks.

Note
This function was designed to be used in case memory is enabled using TM_EMWIN_MemoryEnable function. You can also use it (and it is recommended) in case you don't have memory enabled
Parameters
None
Return values
Returnvalues of GUI_Exec() function from EMWIN
TM_EMWIN_Result_t TM_EMWIN_Init ( void  )

Initializes emWin peripheral.

Note
This function initialize LCD, SDRAM, STMPE811 touch and GUI for STM32F429-Discovery board
Return values
Memberof TM_EMWIN_Result_t
void TM_EMWIN_MemoryDisable ( void  )

Disables memory feature for EMWIN.

Parameters
None
Return values
None
void TM_EMWIN_MemoryEnable ( void  )

Enables memory feature for EMWIN.

Note
When you enable memory, then all drawings for EMWIN are stored on LCD layer 1, but layer 2 is shown to user. You have to use TM_EMWIN_Exec() to update data from LCD layer 1 to layer 2 This is used to avoid flickering system when doing a lot of redrawing, for example updating a big graph very fast
Parameters
None
Return values
None
TM_EMWIN_Result_t TM_EMWIN_Rotate ( TM_EMWIN_Rotate_t  rotation)

Rotates LCD.

Note
It does not have any sense, if you have disabled define TM_EMWIN_ROTATE_LCD.

By default, rotation is disabled for memory purpose.

To rotate LCD you need additional RAM, but it is available on F429-Discovery board

Parameters
rotationRotate direction. This parameter can be a value of TM_EMWIN_Result_t enumeration
Return values
Memberof TM_EMWIN_Result_t
TM_EMWIN_Result_t TM_EMWIN_UpdateTouch ( void  )

Updates touch.

It must be called periodically every 1ms.

It makes touch controller check every number of ms as defined in EMWIN_UPDATE_TOUCH_MILLIS define

Parameters
None
Return values
Memberof TM_EMWIN_Result_t