Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 2 | mjames | 1 | /* |
| 2 | * stm32_halDisplay.H |
||
| 3 | * |
||
| 4 | * Created on: 1 Nov 2020 |
||
| 5 | * Author: mike |
||
| 6 | */ |
||
| 7 | |||
| 8 | #pragma once |
||
| 9 | |||
| 10 | #include "main.h" |
||
| 11 | |||
| 12 | #include "libOLED/displayclass.H" |
||
| 13 | |||
| 14 | class stm32_halDisplay_t : public display_t |
||
| 15 | { |
||
| 16 | public: |
||
| 17 | stm32_halDisplay_t (int const width, int const height, int const ramwidth, |
||
| 18 | uint8_t *const data, |
||
| 19 | SPI_HandleTypeDef *const spiInterface, |
||
| 20 | |||
| 21 | GPIO_TypeDef *const CD_GPIO, |
||
| 22 | uint16_t CD_GPIO_Pin, GPIO_TypeDef *const RESET_GPIO, |
||
| 23 | uint16_t RESET_GPIO_Pin, GPIO_TypeDef *const NSS_GPIO, |
||
| 24 | uint16_t NSS_GPIO_Pin); |
||
| 25 | |||
| 26 | private: |
||
| 27 | void |
||
| 28 | oledSetCD (uint8_t set) override; |
||
| 29 | |||
| 30 | void |
||
| 31 | oledWrite (uint8_t d) override; |
||
| 32 | |||
| 33 | void |
||
| 34 | oledReset () override; |
||
| 35 | |||
| 36 | void |
||
| 37 | oledWrite (uint8_t *buff, uint8_t len) override; |
||
| 38 | |||
| 39 | SPI_HandleTypeDef * const m_spiInterface; |
||
| 40 | |||
| 41 | GPIO_TypeDef *const m_CD_GPIO; |
||
| 42 | uint16_t const m_CD_GPIO_Pin; |
||
| 43 | |||
| 44 | GPIO_TypeDef *const m_RESET_GPIO; |
||
| 45 | uint16_t const m_RESET_GPIO_Pin; |
||
| 46 | |||
| 47 | GPIO_TypeDef *const m_NSS_GPIO; |
||
| 48 | uint16_t const m_NSS_GPIO_Pin; |
||
| 49 | |||
| 50 | }; |