STM32L0538-Discovery BSP User Manual
|
Functions | |
uint8_t | BSP_EPD_Init (void) |
Initializes the EPD. | |
uint32_t | BSP_EPD_GetXSize (void) |
Gets the EPD X size. | |
uint32_t | BSP_EPD_GetYSize (void) |
Gets the EPD Y size. | |
void | BSP_EPD_SetFont (sFONT *pFonts) |
Sets the Text Font. | |
sFONT * | BSP_EPD_GetFont (void) |
Gets the Text Font. | |
void | BSP_EPD_Clear (uint16_t Color) |
Clears the hole EPD. | |
void | BSP_EPD_DisplayStringAtLine (uint16_t Line, uint8_t *ptr) |
Displays a character on the EPD. | |
void | BSP_EPD_DisplayStringAt (uint16_t Xpos, uint16_t Ypos, uint8_t *pText, Text_AlignModeTypdef mode) |
Displays characters on the EPD. | |
void | BSP_EPD_DisplayChar (uint16_t Xpos, uint16_t Ypos, uint8_t Ascii) |
Displays one character. | |
void | BSP_EPD_DrawHLine (uint16_t Xpos, uint16_t Ypos, uint16_t Length) |
Draws an horizontal line. | |
void | BSP_EPD_DrawVLine (uint16_t Xpos, uint16_t Ypos, uint16_t Length) |
Draws a vertical line. | |
void | BSP_EPD_DrawRect (uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height) |
Draws a rectangle. | |
void | BSP_EPD_FillRect (uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height) |
Displays a full rectangle. | |
void | BSP_EPD_RefreshDisplay (void) |
Updates the display from the data located into the RAM. | |
void | BSP_EPD_CloseChargePump (void) |
Disables the clock and the charge pump. | |
void | BSP_EPD_DrawImage (uint16_t Xpos, uint16_t Ypos, uint16_t Xsize, uint16_t Ysize, uint8_t *pdata) |
Draws an Image. |
Function Documentation
void BSP_EPD_Clear | ( | uint16_t | Color | ) |
Clears the hole EPD.
- Parameters:
-
Color,: Color of the background
- Return values:
-
None
Definition at line 166 of file stm32l0538_discovery_epd.c.
References epd_drv.
Referenced by BSP_EPD_Init().
void BSP_EPD_CloseChargePump | ( | void | ) |
Disables the clock and the charge pump.
- Parameters:
-
None
- Return values:
-
None
Definition at line 375 of file stm32l0538_discovery_epd.c.
References EPD_Delay(), and epd_drv.
void BSP_EPD_DisplayChar | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint8_t | Ascii | ||
) |
Displays one character.
- Parameters:
-
Xpos,: start column address. Ypos,: the Line where to display the character shape. Ascii,: character ascii code, must be between 0x20 and 0x7E.
- Return values:
-
None
Definition at line 185 of file stm32l0538_discovery_epd.c.
References DrawChar(), _tFont::Height, _tFont::table, and _tFont::Width.
Referenced by BSP_EPD_DisplayStringAt().
void BSP_EPD_DisplayStringAt | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint8_t * | Text, | ||
Text_AlignModeTypdef | Mode | ||
) |
Displays characters on the EPD.
- Parameters:
-
Xpos,: X position Ypos,: Y position Text,: Pointer to string to display on EPD Mode,: Display mode This parameter can be one of the following values: - CENTER_MODE
- RIGHT_MODE
- LEFT_MODE
- Return values:
-
None
Definition at line 204 of file stm32l0538_discovery_epd.c.
References BSP_EPD_DisplayChar(), BSP_EPD_GetXSize(), CENTER_MODE, LEFT_MODE, RIGHT_MODE, and _tFont::Width.
Referenced by BSP_EPD_DisplayStringAtLine().
void BSP_EPD_DisplayStringAtLine | ( | uint16_t | Line, |
uint8_t * | ptr | ||
) |
Displays a character on the EPD.
- Parameters:
-
Line,: Line where to display the character shape This parameter can be one of the following values: - 0..8: if the Current fonts is Font8
- 0..5: if the Current fonts is Font12
- 0..3: if the Current fonts is Font16
- 0..2: if the Current fonts is Font20
ptr,: Pointer to string to display on EPD
- Return values:
-
None
Definition at line 264 of file stm32l0538_discovery_epd.c.
References BSP_EPD_DisplayStringAt(), LEFT_MODE, and LINE.
void BSP_EPD_DrawHLine | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Length | ||
) |
Draws an horizontal line.
- Parameters:
-
Xpos,: X position Ypos,: Y position Length,: line length
- Return values:
-
None
Definition at line 276 of file stm32l0538_discovery_epd.c.
References epd_drv.
Referenced by BSP_EPD_DrawRect().
void BSP_EPD_DrawImage | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Xsize, | ||
uint16_t | Ysize, | ||
uint8_t * | pdata | ||
) |
Draws an Image.
- Parameters:
-
Xpos,: X position in the EPD Ypos,: Y position in the EPD Xsize,: X size in the EPD Ysize,: Y size in the EPD pdata,: Pointer to the Image address
- Return values:
-
None
Definition at line 358 of file stm32l0538_discovery_epd.c.
References BSP_EPD_GetXSize(), BSP_EPD_GetYSize(), and epd_drv.
void BSP_EPD_DrawRect | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Width, | ||
uint16_t | Height | ||
) |
Draws a rectangle.
- Parameters:
-
Xpos,: X position Ypos,: Y position Height,: rectangle height Width,: rectangle width
- Return values:
-
None
Definition at line 317 of file stm32l0538_discovery_epd.c.
References BSP_EPD_DrawHLine(), and BSP_EPD_DrawVLine().
void BSP_EPD_DrawVLine | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Length | ||
) |
Draws a vertical line.
- Parameters:
-
Xpos,: X position Ypos,: Y position Length,: line length.
- Return values:
-
None
Definition at line 296 of file stm32l0538_discovery_epd.c.
References epd_drv.
Referenced by BSP_EPD_DrawRect().
void BSP_EPD_FillRect | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Width, | ||
uint16_t | Height | ||
) |
Displays a full rectangle.
- Parameters:
-
Xpos,: X position. Ypos,: Y position. Height,: display rectangle height. Width,: display rectangle width.
- Return values:
-
None
Definition at line 336 of file stm32l0538_discovery_epd.c.
References epd_drv.
sFONT* BSP_EPD_GetFont | ( | void | ) |
Gets the Text Font.
- Parameters:
-
None.
- Return values:
-
the used layer font.
Definition at line 156 of file stm32l0538_discovery_epd.c.
References pFont.
uint32_t BSP_EPD_GetXSize | ( | void | ) |
Gets the EPD X size.
- Parameters:
-
None
- Return values:
-
EPD X size
Definition at line 126 of file stm32l0538_discovery_epd.c.
References epd_drv.
Referenced by BSP_EPD_DisplayStringAt(), and BSP_EPD_DrawImage().
uint32_t BSP_EPD_GetYSize | ( | void | ) |
Gets the EPD Y size.
- Parameters:
-
None
- Return values:
-
EPD Y size
Definition at line 136 of file stm32l0538_discovery_epd.c.
References epd_drv.
Referenced by BSP_EPD_DrawImage().
uint8_t BSP_EPD_Init | ( | void | ) |
Initializes the EPD.
- Parameters:
-
None
- Return values:
-
EPD state
Definition at line 98 of file stm32l0538_discovery_epd.c.
References BSP_EPD_Clear(), BSP_EPD_SetFont(), EPD_COLOR_WHITE, EPD_DEFAULT_FONT, epd_drv, EPD_ERROR, EPD_OK, and Font16.
void BSP_EPD_RefreshDisplay | ( | void | ) |
Updates the display from the data located into the RAM.
- Parameters:
-
None
- Return values:
-
None
Definition at line 389 of file stm32l0538_discovery_epd.c.
References EPD_BUSY_GPIO_PORT, EPD_BUSY_PIN, EPD_Delay(), epd_drv, and EPD_RESET_HIGH.
void BSP_EPD_SetFont | ( | sFONT * | pFonts | ) |
Sets the Text Font.
- Parameters:
-
pFonts,: specifies the layer font to be used.
- Return values:
-
None
Definition at line 146 of file stm32l0538_discovery_epd.c.
Referenced by BSP_EPD_Init().
Generated on Mon Aug 28 2017 14:51:54 for STM32L0538-Discovery BSP User Manual by 1.7.6.1