Prusa MINI Firmware overview
connection.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "lwip/tcp.h"
4 
5 #include "lwsapi_app.hpp"
6 
7 #define CRLF "\r\n"
8 #define MINIMAL_REQUEST_LENGTH 14 // GET / HTTP/1.0
9 
10 #define memshift(ptr, size) \
11  (reinterpret_cast<const void *>(reinterpret_cast<size_t>(ptr) + size))
12 #define chrshift(ptr, size) \
13  (reinterpret_cast<const char *>(reinterpret_cast<size_t>(ptr) + size))
14 
15 //! return lenght of data from start to end
16 #define memlen(start, end) \
17  (reinterpret_cast<size_t>(end) - reinterpret_cast<size_t>(start) + 1)
18 
19 //! Internal connection structure which is used in LwIP tcp_ callbacks as arg.
20 class Context : public LwIPClass {
21 public:
22  enum State {
23  FIRST, // firt call of recv callback after constructor
24  WAIT_FOR_EOH, // wait for end of header \r\n\r\n
25  PAYLOAD // pbuf containt payload
26  };
27 
28  struct tcp_pcb *pcb;
29  uint8_t retries; /*< retries >*/
31  Environment env; /**< Request WSAPI environment */
32  Message_t message; /**< Last message returned from application */
33  char *buffer; /**< Buffer for internal output data */
34  size_t m_position; /**< Position of data in last message which is
35  write not yet. */
36  size_t end_of_header;
37  IResponse::unique_ptr_t response; /**< Response object with generator function. */
38 
39  static void *operator new(size_t size) noexcept {
40  if (Context::instances == Context::MAX) {
41  lwsapi_error("Context::new Too many connections\n");
42  return nullptr;
43  }
44  void *rv = mem_malloc(size);
45  if (rv != nullptr) {
46  Context::instances++;
47  }
48  return rv;
49  }
50 
51  static void operator delete(void *ptr) {
52  Context::instances--;
53  mem_free(ptr);
54  }
55 
56  Context(struct tcp_pcb *pcb)
57  : pcb(pcb)
58  , retries(0)
59  , state(FIRST)
60  , message({ nullptr, nullptr, nullptr, 0 })
61  , buffer(nullptr)
62  , m_position(0)
63  , end_of_header(0)
64  , response(nullptr)
65  , request_buffer(nullptr)
66  , request_buffer_size(0) {
67  tcp_arg(pcb, this);
68  }
69 
71  lwsapi_free(buffer); // when buffer is not deleted
72  lwsapi_free(request_buffer); // when request_buffer is not deleted
73  tcp_arg(this->pcb, nullptr);
74  }
75 
76  //! Append pbuf to request_buffer
77  err_t fill_request_buffer(const struct pbuf *p);
78 
79  //! Try to find End Of Header (\r\n\r\n) in buffer
80  /*!
81  @return position in data of \r\n\r\n. Return value can't
82  be less then MINIMAL_REQUEST_LENGTH. If EOH sequence is not
83  found, zero is returned.
84  */
85  size_t find_eoh(const void *data = nullptr, size_t length = 0);
86 
87  //! parste the request header (request line + request headers)
88  err_t parse_request(const void *data = nullptr, size_t length = 0);
89 
91 
93 
94  inline void free_buffer() {
96  }
97 
98 private:
99  static const uint8_t MAX = 4;
100  static uint8_t instances;
101 
102  char *request_buffer; /**< will be used when request can't be parsed at once */
103  uint16_t request_buffer_size;
104 
105  //! parse request line GET / HTTP/1.0
106  err_t parse_request_line(const void *line, size_t length);
107 
108  //! parse request header and add to env headers chain
109  err_t parse_header(const void *line, size_t length);
110 };
lwsapi_app.hpp
ConstHeader
ConstHeader only point to const chars defined in code.
Definition: lwsapi_app.hpp:116
rop_rgb888_disabled
static void rop_rgb888_disabled(uint8_t *ppx888)
Definition: st7789v.c:607
gui_timers_cycle
uint32_t gui_timers_cycle(void)
Definition: gui_timer.c:98
RENDER_FLG
#define RENDER_FLG(a, r)
Definition: display_helper.h:10
I2C_InitTypeDef::OwnAddress2
uint32_t OwnAddress2
Definition: stm32f4xx_hal_i2c.h:80
window_set_max
void window_set_max(int16_t id, float max)
Definition: window.c:704
USBH_read
DRESULT USBH_read(BYTE, BYTE *, DWORD, UINT)
Reads Sector(s)
Definition: usbh_diskio.c:135
DMA_InitTypeDef::PeriphDataAlignment
uint32_t PeriphDataAlignment
Definition: stm32f4xx_hal_dma.h:80
GPIO_PIN_6
#define GPIO_PIN_6
Definition: stm32f4xx_hal_gpio.h:108
_jogwheel_config_t::pinEN2
uint8_t pinEN2
Definition: jogwheel.h:22
gui_timers_delete_by_window_id
void gui_timers_delete_by_window_id(int16_t win_id)
Definition: gui_timer.c:91
RCC_PLLP_DIV2
#define RCC_PLLP_DIV2
Definition: stm32f4xx_hal_rcc.h:186
window_draw_t
void() window_draw_t(void *window)
Definition: window.h:57
FLG_RST
#define FLG_RST
Definition: st7789v.c:73
WINDOW_MAX_USERCLS
#define WINDOW_MAX_USERCLS
Definition: window.c:8
window_set_min_max
void window_set_min_max(int16_t id, float min, float max)
Definition: window.c:748
st7789v_set_rs
static void st7789v_set_rs(void)
Definition: st7789v.c:117
_window_numb_t::padding
padding_ui8_t padding
Definition: window_numb.h:24
WINDOW_EVENT_CAPT_0
#define WINDOW_EVENT_CAPT_0
Definition: window.h:44
USB_DESC_TYPE_STRING
#define USB_DESC_TYPE_STRING
Definition: usbd_def.h:97
window_ptr
window_t * window_ptr(int16_t id)
Definition: window.c:82
fatfs.h
Header for fatfs applications.
MSGBOX_RES_CANCEL
#define MSGBOX_RES_CANCEL
Definition: window_msgbox.h:40
GPIO_MODE_AF_PP
#define GPIO_MODE_AF_PP
Definition: stm32f4xx_hal_gpio.h:138
_window_text_t
Definition: window_text.h:15
gui_timer_create_timeout
int8_t gui_timer_create_timeout(uint32_t ms, int16_t win_id)
Definition: gui_timer.c:74
UART_OVERSAMPLING_16
#define UART_OVERSAMPLING_16
Definition: stm32f4xx_hal_uart.h:276
st7789v_config
st7789v_config_t st7789v_config
Definition: st7789v.c:905
NumberHeader
NumberHeader is for number headers like Content-Length.
Definition: lwsapi_app.hpp:88
BUZZER_GPIO_Port
#define BUZZER_GPIO_Port
Definition: main.h:100
window_is_enabled
int window_is_enabled(int16_t id)
Definition: window.c:257
HAL_DMA_DeInit
HAL_StatusTypeDef HAL_DMA_DeInit(DMA_HandleTypeDef *hdma)
DMA_CHANNEL_0
#define DMA_CHANNEL_0
Definition: stm32f4xx_hal_dma.h:218
header_factory_t
Definition: connect.cpp:32
USBD_SPEED_FULL
Definition: usbd_def.h:189
items
const char items[11][6]
Definition: window_list.c:5
window_text_t
struct _window_text_t window_text_t
USBH_LL_DeInit
USBH_StatusTypeDef USBH_LL_DeInit(USBH_HandleTypeDef *phost)
De-Initialize the low level portion of the host driver.
Definition: usbh_conf.c:221
idleTaskHandle
osThreadId idleTaskHandle
Definition: main.c:99
LCD_RS_Pin
#define LCD_RS_Pin
Definition: main.h:141
direction
uint8_t direction
Definition: UsbCore.h:185
USBD_CDC_SetTxBuffer
uint8_t USBD_CDC_SetTxBuffer(USBD_HandleTypeDef *pdev, uint8_t *pbuff, uint16_t length)
USBD_CDC_SetTxBuffer.
Definition: usbd_cdc.c:810
hdma_spi2_tx
DMA_HandleTypeDef hdma_spi2_tx
Definition: main.c:83
_term_t::attr
uint8_t attr
Definition: term.h:49
GET_SECTOR_COUNT
#define GET_SECTOR_COUNT
Definition: onboard_sd.h:63
render_text_align
void render_text_align(rect_ui16_t rc, const char *text, font_t *font, color_t clr0, color_t clr1, padding_ui8_t padding, uint16_t flags)
Definition: display_helper.c:6
RES_PARERR
Definition: onboard_sd.h:27
WINDOW_EVENT_CAPT_1
#define WINDOW_EVENT_CAPT_1
Definition: window.h:45
FAN1_Pin
#define FAN1_Pin
Definition: main.h:115
window_set_step
void window_set_step(int16_t id, float step)
Definition: window.c:726
E_DIR_Pin
#define E_DIR_Pin
Definition: main.h:135
window_msgbox_done
void window_msgbox_done(window_msgbox_t *window)
Definition: window_msgbox.c:155
resource_size
uint16_t resource_size(uint16_t id)
Definition: guitypes.c:174
HAL_RCC_GetPCLK1Freq
uint32_t HAL_RCC_GetPCLK1Freq(void)
rop_rgb888_invert
static void rop_rgb888_invert(uint8_t *ppx888)
Definition: st7789v.c:583
_window_progress_t::color_text
color_t color_text
Definition: window_progress.h:18
DMA_InitTypeDef::PeriphInc
uint32_t PeriphInc
Definition: stm32f4xx_hal_dma.h:74
WI_SPIN_FL_t::range
const float * range
Definition: window_menu.h:46
window_set_icon_id
void window_set_icon_id(int16_t id, uint16_t id_res)
Definition: window.c:659
_window_spin_t::min
float min
Definition: window_spin.h:14
st7789v_wr
void st7789v_wr(uint8_t *pdata, uint16_t size)
Definition: st7789v.c:221
TCHAR
char TCHAR
Definition: ff.h:62
usbd_desc.h
window_list_done
void window_list_done(window_list_t *window)
Definition: window_list.c:42
__HAL_RCC_USART6_CLK_DISABLE
#define __HAL_RCC_USART6_CLK_DISABLE()
Definition: stm32f4xx_hal_rcc.h:639
vterm_printf
int vterm_printf(term_t *pt, const char *fmt, va_list va)
Definition: term.c:191
png_destroy_read_struct
void PNGAPI png_destroy_read_struct(png_structpp png_ptr_ptr, png_infopp info_ptr_ptr, png_infopp end_info_ptr_ptr)
Definition: pngread.c:1005
USB_FS_N_Pin
#define USB_FS_N_Pin
Definition: main.h:161
Message_t::response
const char * response
Definition: lwsapi_app.hpp:212
WI_SWITCH_SELECT_t::strings
const char ** strings
Definition: window_menu.h:55
DMA_InitTypeDef::FIFOMode
uint32_t FIFOMode
Definition: stm32f4xx_hal_dma.h:94
hiwdg
IWDG_HandleTypeDef hiwdg
Definition: main.c:79
_window_menu_t::alignment
uint8_t alignment
Definition: window_menu.h:91
TIM_BreakDeadTimeConfigTypeDef::BreakState
uint32_t BreakState
Definition: stm32f4xx_hal_tim_ex.h:104
SPI_FIRSTBIT_MSB
#define SPI_FIRSTBIT_MSB
Definition: stm32f4xx_hal_spi.h:251
SPI_BAUDRATEPRESCALER_2
#define SPI_BAUDRATEPRESCALER_2
Definition: stm32f4xx_hal_spi.h:236
TIM_Base_InitTypeDef::Period
uint32_t Period
Definition: stm32f4xx_hal_tim.h:71
CMD_DISPON
#define CMD_DISPON
Definition: st7789v.c:24
USBH_LL_GetSpeed
USBH_SpeedTypeDef USBH_LL_GetSpeed(USBH_HandleTypeDef *phost)
Return the USB host speed from the low level driver.
Definition: usbh_conf.c:314
_window_class_menu_t
Definition: window_menu.h:74
window_capture
int16_t window_capture(void)
Definition: window.c:169
DMA_PRIORITY_MEDIUM
#define DMA_PRIORITY_MEDIUM
Definition: stm32f4xx_hal_dma.h:309
FAN0_TACH_Pin
#define FAN0_TACH_Pin
Definition: main.h:117
gui_timer_reset
void gui_timer_reset(int8_t id)
Definition: gui_timer.c:133
st7789v_ctrl_set
void st7789v_ctrl_set(uint8_t ctrl)
UART_HWCONTROL_NONE
#define UART_HWCONTROL_NONE
Definition: stm32f4xx_hal_uart.h:246
StartWebServerTask
void StartWebServerTask(void const *argument)
Function implementing the webServerTask thread.
Definition: main.c:1013
_gui_defaults_t
Definition: guitypes.h:106
api_job
IResponse::unique_ptr_t api_job(Environment &env)
return coroutine_fn for /api/job request
Definition: connect.cpp:211
st7789v_gamma_set
void st7789v_gamma_set(uint8_t gamma)
USBD_CDC_ReceivePacket
uint8_t USBD_CDC_ReceivePacket(USBD_HandleTypeDef *pdev)
USBD_CDC_ReceivePacket prepare OUT Endpoint for reception.
Definition: usbd_cdc.c:883
st7789v_cmd_madctl
void st7789v_cmd_madctl(uint8_t madctl)
Definition: st7789v.c:251
ethernetif_init
err_t ethernetif_init(struct netif *netif)
Definition: ethernetif.c:560
term_write_escape_char
void term_write_escape_char(term_t *pt, uint8_t ch)
Definition: term.c:128
_rect_ui16_t::y
uint16_t y
Definition: guitypes.h:71
_window_class_numb_t::cls
window_class_t cls
Definition: window_numb.h:14
_window_class_t::size
uint16_t size
Definition: window.h:69
_font_t::h
uint8_t h
Definition: guitypes.h:78
HOST_USER_SELECT_CONFIGURATION
#define HOST_USER_SELECT_CONFIGURATION
Definition: usbh_core.h:64
USBD_CONFIGURATION_STRING_FS
#define USBD_CONFIGURATION_STRING_FS
Definition: usbd_desc.c:100
USBD_LL_FlushEP
USBD_StatusTypeDef USBD_LL_FlushEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr)
Flushes an endpoint of the Low Level Driver.
Definition: usbd_conf.c:484
ALIGN_BOTTOM
#define ALIGN_BOTTOM
Definition: guitypes.h:16
ADC_InitTypeDef::ContinuousConvMode
uint32_t ContinuousConvMode
Definition: stm32f4xx_hal_adc.h:97
_window_list_t::count
int count
Definition: window_list.h:23
FONT_FLG_SWAP
#define FONT_FLG_SWAP
Definition: guitypes.h:36
ADC_HandleTypeDef::Instance
ADC_TypeDef * Instance
Definition: stm32f4xx_hal_adc.h:210
window_get_step
float window_get_step(int16_t id)
Definition: window.c:738
Context::state
State state
Definition: connection.hpp:30
stm32f4xx_hal_tim.h
Header file of TIM HAL module.
_display_t::h
uint16_t h
Definition: display.h:26
_window_progress_t::color_back
color_t color_back
Definition: window_progress.h:17
TIM_OCNPOLARITY_HIGH
#define TIM_OCNPOLARITY_HIGH
Definition: stm32f4xx_hal_tim.h:395
window_register_class
int16_t window_register_class(window_class_t *cls)
Definition: window.c:90
gui_timers_delete_by_window_id
void gui_timers_delete_by_window_id(int16_t win_id)
Definition: gui_timer.c:91
_rect_ui16_t::w
uint16_t w
Definition: guitypes.h:72
status_heatbed_svg
const uint8_t status_heatbed_svg[]
Definition: status_heatbed_svg.c:3
window_spin.h
CMD_RAMWR
#define CMD_RAMWR
Definition: st7789v.c:27
window_list_inc
void window_list_inc(window_list_t *window, int dif)
Definition: window_list.c:120
window_numb_init
void window_numb_init(window_numb_t *window)
Definition: window_numb.c:7
USBD_DescriptorsTypeDef
Definition: usbd_def.h:201
_screen_t::event
screen_event_t * event
Definition: screen.h:24
netif_set_up
void netif_set_up(struct netif *netif)
Definition: netif.c:624
BufferResponse::done
bool done
Definition: connect.cpp:123
GPIO_MODE_OUTPUT_PP
#define GPIO_MODE_OUTPUT_PP
Definition: stm32f4xx_hal_gpio.h:136
color_alpha
static color_t color_alpha(color_t clr0, color_t clr1, uint8_t alpha)
Definition: guitypes.h:141
Z_DIAG_Pin
#define Z_DIAG_Pin
Definition: main.h:87
st7789v_inversion_get
uint8_t st7789v_inversion_get(void)
_window_t::id_parent
int16_t id_parent
Definition: window.h:78
st7789v_clip_rect
void st7789v_clip_rect(rect_ui16_t rc)
Definition: st7789v.c:434
gui_free
void gui_free(void *ptr)
Definition: gui.c:39
_font_t
Definition: guitypes.h:76
_padding_ui8_t::bottom
uint8_t bottom
Definition: guitypes.h:90
USBH_LL_SubmitURB
USBH_StatusTypeDef USBH_LL_SubmitURB(USBH_HandleTypeDef *phost, uint8_t pipe, uint8_t direction, uint8_t ep_type, uint8_t token, uint8_t *pbuff, uint16_t length, uint8_t do_ping)
Submit a new URB to the low level driver.
Definition: usbh_conf.c:475
_lseek
int _lseek(int file, int ptr, int dir)
Definition: syscalls.c:139
_window_class_t::cls_id
int16_t cls_id
Definition: window.h:68
HAL_BUSY
Definition: stm32f4xx_hal_def.h:59
window_prev_enabled
int16_t window_prev_enabled(int16_t id)
Definition: window.c:204
HAL_TIM_Base_Init
HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
status_heatbed_svg.c
Context::message
Message_t message
Definition: connection.hpp:32
THERM_1_Pin
#define THERM_1_Pin
Definition: main.h:103
HAL_TIM_MspPostInit
void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim)
Definition: stm32f4xx_hal_msp.c:430
st7789v_brightness_disable
void st7789v_brightness_disable(void)
LCD_SW2_Pin
#define LCD_SW2_Pin
Definition: main.h:129
netif_set_down
void netif_set_down(struct netif *netif)
Definition: netif.c:682
font_meas_text
point_ui16_t font_meas_text(font_t *pf, const char *str)
Definition: guitypes.c:97
usb_device.h
: Header for usb_device.c file.
USBD_Start
USBD_StatusTypeDef USBD_Start(USBD_HandleTypeDef *pdev)
USBD_Start Start the USB Device Core.
Definition: usbd_core.c:181
st7789v_gamma_set_direct
void st7789v_gamma_set_direct(uint8_t gamma_enu)
NMI_Handler
void NMI_Handler(void)
This function handles Non maskable interrupt.
Definition: stm32f4xx_it.c:96
HAL_TIM_MspPostInit
void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim)
Definition: stm32f4xx_hal_msp.c:430
window_list_init
void window_list_init(window_list_t *window)
Definition: window_list.c:28
MX_USART2_UART_Init
static void MX_USART2_UART_Init(void)
USART2 Initialization Function.
Definition: main.c:743
HOST_USER_CLASS_ACTIVE
#define HOST_USER_CLASS_ACTIVE
Definition: usbh_core.h:65
Context::WAIT_FOR_EOH
Definition: connection.hpp:24
window_list_dec
void window_list_dec(window_list_t *window, int dif)
Definition: window_list.c:145
term_write_char
void term_write_char(term_t *pt, uint8_t ch)
Definition: term.c:157
Temperature::degTargetHotend
static FORCE_INLINE int16_t degTargetHotend(const uint8_t E_NAME)
Definition: temperature.h:562
MSGBOX_GREY_FRAME
#define MSGBOX_GREY_FRAME
Definition: window_msgbox.h:58
OTG_HS_IRQHandler
void OTG_HS_IRQHandler(void)
This function handles USB On The Go HS global interrupt.
Definition: stm32f4xx_it.c:297
osThreadDef
#define osThreadDef(name, thread, priority, instances, stacksz)
Definition: cmsis_os.h:468
HAL_OK
Definition: stm32f4xx_hal_def.h:57
window_icon_t
struct _window_icon_t window_icon_t
lwsapi_init
err_t lwsapi_init(void)
Init (start) the LwIP WSAPI server.
Definition: lwsapi.cpp:413
index_js
const uint8_t index_js[]
Definition: index_js.c:3
_term_t::row
uint8_t row
Definition: term.h:51
window_menu_item_select
void window_menu_item_select(window_menu_t *window, int dif)
Definition: window_menu.c:257
MX_USART1_UART_Init
static void MX_USART1_UART_Init(void)
USART1 Initialization Function.
Definition: main.c:713
st7789v_cmd_dispon
void st7789v_cmd_dispon(void)
Definition: st7789v.c:259
MSGBOX_SHI_CHG
#define MSGBOX_SHI_CHG
Definition: window_msgbox.h:17
USBD_LL_Start
USBD_StatusTypeDef USBD_LL_Start(USBD_HandleTypeDef *pdev)
Starts the low level portion of the device driver.
Definition: usbd_conf.c:355
usbh_core.h
Header file for usbh_core.c.
jogwheel_update_1ms
void jogwheel_update_1ms(void)
Definition: jogwheel.c:22
ipaddr
ip4_addr_t ipaddr
Definition: lwip.c:73
screen_0
screen_t * screen_0
Definition: screen.c:10
_window_t::f_enabled
uint32_t f_enabled
Definition: window.h:86
GPIO_SPEED_FREQ_HIGH
#define GPIO_SPEED_FREQ_HIGH
Definition: stm32f4xx_hal_gpio.h:160
window_msgbox_draw_buttons
void window_msgbox_draw_buttons(window_msgbox_t *window)
Definition: window_msgbox.c:70
uartrxbuff_init
void uartrxbuff_init(uartrxbuff_t *prxbuff, UART_HandleTypeDef *phuart, DMA_HandleTypeDef *phdma, uint8_t size, uint8_t *pdata)
Definition: uartrxbuff.c:15
HAL_TIM_PeriodElapsedCallback
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
Period elapsed callback in non blocking mode.
Definition: main.c:1033
ethernetif_update_config
void ethernetif_update_config(struct netif *netif)
window_numb_draw
void window_numb_draw(window_numb_t *window)
Definition: window_numb.c:17
RCC_HCLK_DIV2
#define RCC_HCLK_DIV2
Definition: stm32f4xx_hal_rcc.h:260
RCC_PLLInitTypeDef::PLLP
uint32_t PLLP
Definition: stm32f4xx_hal_rcc_ex.h:78
HAL_IncTick
void HAL_IncTick(void)
This function is called to increment a global variable "uwTick" used as application time base.
Definition: stm32f4xx_hal.c:328
st7789v_clip
rect_ui16_t st7789v_clip
Definition: st7789v.c:84
MSGBOX_MSK_BTN
#define MSGBOX_MSK_BTN
Definition: window_msgbox.h:9
TIM_OCFAST_DISABLE
#define TIM_OCFAST_DISABLE
Definition: stm32f4xx_hal_tim.h:377
TERM_PRINTF_MAX
#define TERM_PRINTF_MAX
Definition: term.h:38
Appli_state
ApplicationTypeDef Appli_state
Definition: usb_host.c:75
is_interrupt
static int is_interrupt(void)
Definition: st7789v.c:142
MSGBOX_SHI_BTN
#define MSGBOX_SHI_BTN
Definition: window_msgbox.h:15
st7789v_reset
void st7789v_reset(void)
Definition: st7789v.c:312
_window_class_progress_t
Definition: window_progress.h:11
uart6slave_line
char uart6slave_line[32]
Definition: main.c:150
st7789v_delay_ms
void st7789v_delay_ms(uint32_t ms)
Definition: st7789v.c:146
HAL_TIM_PWM_ConfigChannel
HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim, TIM_OC_InitTypeDef *sConfig, uint32_t Channel)
term_write_LF
void term_write_LF(term_t *pt)
Definition: term.c:139
screen_stack_pop
int16_t screen_stack_pop(void)
Definition: screen.c:55
st7789v_draw_text
void st7789v_draw_text(rect_ui16_t rc, const char *str, font_t *pf, color_t clr0, color_t clr1)
Definition: st7789v.c:562
WINDOW_NUMB_MAX_TEXT
#define WINDOW_NUMB_MAX_TEXT
Definition: window_numb.c:5
_window_frame_t
Definition: window_frame.h:18
connect_black_svg.c
_term_t::rows
uint8_t rows
Definition: term.h:45
USBD_LL_Delay
void USBD_LL_Delay(uint32_t Delay)
Delays routine for the USB Device Library.
Definition: usbd_conf.c:739
_display_t::draw_char
display_draw_char_t * draw_char
Definition: display.h:34
RCC_ClkInitTypeDef
RCC System, AHB and APB busses clock configuration structure definition.
Definition: stm32f4xx_hal_rcc.h:93
COLOR_WHITE
#define COLOR_WHITE
Definition: guitypes.h:41
uart1rx_data
static uint8_t uart1rx_data[200]
Definition: main.c:145
htim2
TIM_HandleTypeDef htim2
Definition: main.c:86
USBH_MSC_Write
USBH_StatusTypeDef USBH_MSC_Write(USBH_HandleTypeDef *phost, uint8_t lun, uint32_t address, uint8_t *pbuf, uint32_t length)
USBH_MSC_Write The function performs a Write operation.
Definition: usbh_msc.c:748
window_get_max
float window_get_max(int16_t id)
Definition: window.c:716
initialise_monitor_handles
void initialise_monitor_handles()
Definition: syscalls.c:68
osThreadId
TaskHandle_t osThreadId
Definition: cmsis_os.h:283
TIM_BREAK_DISABLE
#define TIM_BREAK_DISABLE
Definition: stm32f4xx_hal_tim.h:662
jogwheel_changed
uint8_t jogwheel_changed
Definition: jogwheel.c:14
resource_font
font_t * resource_font(uint16_t id)
Definition: guitypes.c:186
window_id
int16_t window_id(window_t *ptr)
Definition: window.c:86
window_class_msgbox
const window_class_msgbox_t window_class_msgbox
Definition: window_msgbox.c:249
CDC_DeInit_FS
static int8_t CDC_DeInit_FS(void)
DeInitializes the CDC media low layer.
Definition: usbd_cdc_if.c:200
TERM_FLG_ESCAPE
#define TERM_FLG_ESCAPE
Definition: term.h:30
MX_ADC1_Init
static void MX_ADC1_Init(void)
ADC1 Initialization Function.
Definition: main.c:336
_window_msgbox_t::padding
padding_ui8_t padding
Definition: window_msgbox.h:73
huart2
UART_HandleTypeDef huart2
Definition: main.c:91
RES_WRPRT
Definition: onboard_sd.h:25
_getpid
int _getpid(void)
Definition: syscalls.c:71
window_spin_dec
void window_spin_dec(window_spin_t *window, int dif)
Definition: window_spin.c:50
HAL_PWM_Initialized
int HAL_PWM_Initialized
Definition: main.c:106
uart6rx_data
uint8_t uart6rx_data[32]
Definition: main.c:148
_gui_defaults_t::color_text
color_t color_text
Definition: guitypes.h:108
_gui_timer_t::delay
uint32_t delay
Definition: gui_timer.c:20
__DMA_HandleTypeDef::Instance
DMA_Stream_TypeDef * Instance
Definition: stm32f4xx_hal_dma.h:157
png_voidp
void * png_voidp
Definition: pngconf.h:577
SPI_DIRECTION_2LINES
#define SPI_DIRECTION_2LINES
Definition: stm32f4xx_hal_spi.h:189
_padding_ui8_t::top
uint8_t top
Definition: guitypes.h:88
window_set_value
void window_set_value(int16_t id, float value)
Definition: window.c:363
st7789v_rd
void st7789v_rd(uint8_t *pdata, uint16_t size)
Definition: st7789v.c:234
USBD_LL_GetRxDataSize
uint32_t USBD_LL_GetRxDataSize(USBD_HandleTypeDef *pdev, uint8_t ep_addr)
Returns the last transfered packet size.
Definition: usbd_conf.c:696
resource_table_size
const uint16_t resource_table_size
USB_HS_N_Pin
#define USB_HS_N_Pin
Definition: main.h:131
environ
char ** environ
Definition: syscalls.c:65
_window_icon_t::id_res
uint16_t id_res
Definition: window_icon.h:14
screen_count
uint16_t screen_count
Definition: screen.c:13
window_icon_draw
void window_icon_draw(window_icon_t *window)
Definition: window_icon.c:11
HAL_SPI_MspInit
void HAL_SPI_MspInit(SPI_HandleTypeDef *hspi)
SPI MSP Initialization This function configures the hardware resources used in this example.
Definition: stm32f4xx_hal_msp.c:252
LOBYTE
#define LOBYTE(x)
Definition: usbd_def.h:263
__SPI_HandleTypeDef::Instance
SPI_TypeDef * Instance
Definition: stm32f4xx_hal_spi.h:122
DebugMon_Handler
void DebugMon_Handler(void)
This function handles Debug monitor.
Definition: stm32f4xx_it.c:160
HAL_RCC_OscConfig
HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
window_set_item_callback
void window_set_item_callback(int16_t id, window_list_item_t *fnc)
Definition: window.c:787
APP_RX_DATA_SIZE
#define APP_RX_DATA_SIZE
Definition: usbd_cdc_if.c:100
_padding_ui8_t::right
uint8_t right
Definition: guitypes.h:89
_window_icon_t::alignment
uint8_t alignment
Definition: window_icon.h:15
usb_host.h
: Header for usb_host.c file.
MX_TIM3_Init
static void MX_TIM3_Init(void)
TIM3 Initialization Function.
Definition: main.c:631
window_is_capture
int window_is_capture(int16_t id)
Definition: window.c:272
HOST_HS
#define HOST_HS
Definition: usbh_conf.h:127
_gui_timer_t::f_timer
uint32_t f_timer
Definition: gui_timer.c:26
GPIO_InitTypeDef::Mode
uint32_t Mode
Definition: stm32f4xx_hal_gpio.h:68
JOGWHEEL_FLG_2PULSES
#define JOGWHEEL_FLG_2PULSES
Definition: jogwheel.h:11
RCC_ClkInitTypeDef::SYSCLKSource
uint32_t SYSCLKSource
Definition: stm32f4xx_hal_rcc.h:98
gui_menu_timeout_id
int8_t gui_menu_timeout_id
Definition: gui_timer.c:36
HAL_IWDG_Reset
int HAL_IWDG_Reset
Definition: main.c:103
HIBYTE
#define HIBYTE(x)
Definition: usbd_def.h:264
CMD_SLPOUT
#define CMD_SLPOUT
Definition: st7789v.c:19
__SPI_HandleTypeDef
SPI handle Structure definition.
Definition: stm32f4xx_hal_spi.h:120
HAL_I2C_MspInit
void HAL_I2C_MspInit(I2C_HandleTypeDef *hi2c)
I2C MSP Initialization This function configures the hardware resources used in this example.
Definition: stm32f4xx_hal_msp.c:190
ADC_EOC_SINGLE_CONV
#define ADC_EOC_SINGLE_CONV
Definition: stm32f4xx_hal_adc.h:386
_jogwheel_config_t
Definition: jogwheel.h:20
__HAL_RCC_GPIOB_CLK_ENABLE
#define __HAL_RCC_GPIOB_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:409
HTTP_404
const char * HTTP_404
Definition: http_states.c:5
screen_dispatch_event
void screen_dispatch_event(window_t *window, uint8_t event, void *param)
Definition: screen.c:103
window_parent
int16_t window_parent(int16_t id)
Definition: window.c:173
VECT_TAB_OFFSET
#define VECT_TAB_OFFSET
Definition: system_stm32f4xx.c:108
app_error
void app_error(void)
Definition: appmain.cpp:145
status_filament_svg
const uint8_t status_filament_svg[]
Definition: status_filament_svg.c:3
GAMMA_CURVE0
#define GAMMA_CURVE0
Definition: st7789v.c:43
_window_class_spin_t
Definition: window_spin.h:21
usbd_cdc.h
header file for the usbd_cdc.c file.
mem
Definition: mem.c:264
HAL_SuspendTick
void HAL_SuspendTick(void)
Suspend Tick increment.
Definition: stm32f4xx_hal_timebase_tim.c:114
window_set_format
void window_set_format(int16_t id, const char *format)
Definition: window.c:403
DMA2_Stream1_IRQHandler
void DMA2_Stream1_IRQHandler(void)
This function handles DMA2 stream1 global interrupt.
Definition: stm32f4xx_it.c:245
_window_progress_t::color_progress
color_t color_progress
Definition: window_progress.h:19
WINDOW_CLS_TERM
#define WINDOW_CLS_TERM
Definition: window.h:17
TIM_BreakDeadTimeConfigTypeDef
TIM Break and Dead time configuration Structure definition.
Definition: stm32f4xx_hal_tim_ex.h:94
X_ENA_Pin
#define X_ENA_Pin
Definition: main.h:183
uartslave.h
SPI_InitTypeDef::CLKPhase
uint32_t CLKPhase
Definition: stm32f4xx_hal_spi.h:77
ADC_SAMPLETIME_3CYCLES
#define ADC_SAMPLETIME_3CYCLES
Definition: stm32f4xx_hal_adc.h:370
thread_measurement.h
st7789v_clear
void st7789v_clear(color_t clr)
Definition: st7789v.c:349
WaitResponse::done
size_t done
Definition: connect.cpp:159
ADC_RESOLUTION_12B
#define ADC_RESOLUTION_12B
Definition: stm32f4xx_hal_adc.h:284
_window_spin_t
Definition: window_spin.h:12
USB_OVERC_Pin
#define USB_OVERC_Pin
Definition: main.h:89
term_scroll_up
void term_scroll_up(term_t *pt)
Definition: term.c:114
_window_msgbox_t::font_title
font_t * font_title
Definition: window_msgbox.h:72
TIM_OC_InitTypeDef::OCIdleState
uint32_t OCIdleState
Definition: stm32f4xx_hal_tim.h:112
_window_t::f_timer
uint32_t f_timer
Definition: window.h:94
HOST_USER_DISCONNECTION
#define HOST_USER_DISCONNECTION
Definition: usbh_core.h:68
HAL_GPIO_EXTI_IRQHandler
void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
HAL_I2C_MspDeInit
void HAL_I2C_MspDeInit(I2C_HandleTypeDef *hi2c)
I2C MSP De-Initialization This function freeze the hardware resources used in this example.
Definition: stm32f4xx_hal_msp.c:225
CDC_SET_LINE_CODING
#define CDC_SET_LINE_CODING
Definition: usbd_cdc.h:76
USBD_RegisterClass
USBD_StatusTypeDef USBD_RegisterClass(USBD_HandleTypeDef *pdev, USBD_ClassTypeDef *pclass)
USBD_RegisterClass Link class driver to Device Core.
Definition: usbd_core.c:157
MX_TIM1_Init
static void MX_TIM1_Init(void)
TIM1 Initialization Function.
Definition: main.c:510
window_dispatch_event
void window_dispatch_event(window_t *window, uint8_t event, void *param)
Definition: window.c:797
st7789v_spi_tx_complete
void st7789v_spi_tx_complete(void)
Definition: st7789v.c:927
TIM8_TRG_COM_TIM14_IRQHandler
void TIM8_TRG_COM_TIM14_IRQHandler(void)
This function handles TIM8 trigger and commutation interrupts and TIM14 global interrupt.
Definition: stm32f4xx_it.c:219
_font_t::pcs
void * pcs
Definition: guitypes.h:81
favicon_ico
const uint8_t favicon_ico[]
Definition: favicon_ico.c:3
HAL_ADC_MspDeInit
void HAL_ADC_MspDeInit(ADC_HandleTypeDef *hadc)
ADC MSP De-Initialization This function freeze the hardware resources used in this example.
Definition: stm32f4xx_hal_msp.c:158
_uartslave_t
Definition: uartslave.h:32
MX_USB_HOST_Init
void MX_USB_HOST_Init(void)
USB Host initialization function.
Definition: usb_host.c:100
HAL_TIM_Base_Start_IT
HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
window_term.h
WINDOW_CLS_NUMB
#define WINDOW_CLS_NUMB
Definition: window.h:11
MSC_LUNTypeDef
Definition: usbh_msc.h:102
hUSB_Host
USBH_HandleTypeDef hUSB_Host
uartrxbuff_open
void uartrxbuff_open(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:24
_close
int _close(int file)
Definition: syscalls.c:126
TIM_Base_InitTypeDef::ClockDivision
uint32_t ClockDivision
Definition: stm32f4xx_hal_tim.h:75
jogwheel_button_down
uint16_t jogwheel_button_down
Definition: jogwheel.c:13
MSGBOX_SHI_ICO
#define MSGBOX_SHI_ICO
Definition: window_msgbox.h:14
USBD_FS_DeviceDescriptor
uint8_t * USBD_FS_DeviceDescriptor(USBD_SpeedTypeDef speed, uint16_t *length)
Return the device descriptor.
Definition: usbd_desc.c:264
ADC_DATAALIGN_RIGHT
#define ADC_DATAALIGN_RIGHT
Definition: stm32f4xx_hal_adc.h:332
gui_timer_create_timeout
int8_t gui_timer_create_timeout(uint32_t ms, int16_t win_id)
Definition: gui_timer.c:74
render_term
void render_term(rect_ui16_t rc, term_t *pt, font_t *font, color_t clr0, color_t clr1)
Definition: window_term.c:13
__HAL_RCC_TIM1_CLK_ENABLE
#define __HAL_RCC_TIM1_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:580
THERM_2_Pin
#define THERM_2_Pin
Definition: main.h:105
USB_LEN_LANGID_STR_DESC
#define USB_LEN_LANGID_STR_DESC
Definition: usbd_def.h:63
DEVICE_FS
#define DEVICE_FS
Definition: usbd_conf.h:111
_st7789v_config_t::phspi
SPI_HandleTypeDef * phspi
Definition: st7789v.h:20
not_found
IResponse::unique_ptr_t not_found(Environment &env)
return coroutine_fn for Not Found response
Definition: connect.cpp:277
IWDG_HandleTypeDef
IWDG Handle Structure definition.
Definition: stm32f4xx_hal_iwdg.h:76
RES_ERROR
Definition: onboard_sd.h:24
IWDG_PRESCALER_4
#define IWDG_PRESCALER_4
Definition: stm32f4xx_hal_iwdg.h:96
LCD_SW3_Pin
#define LCD_SW3_Pin
Definition: main.h:124
_term_t
Definition: term.h:43
MAX_HTTP_REQUEST
#define MAX_HTTP_REQUEST
LwIP WSAPI C/C++ implementation.
Definition: lwsapi_app.hpp:33
term_get_char_at
uint8_t term_get_char_at(term_t *pt, uint8_t col, uint8_t row)
Definition: term.c:51
GPIO_PIN_2
#define GPIO_PIN_2
Definition: stm32f4xx_hal_gpio.h:104
term_get_attr_at
uint8_t term_get_attr_at(term_t *pt, uint8_t col, uint8_t row)
Definition: term.c:71
HAL_ADC_Initialized
int HAL_ADC_Initialized
Definition: main.c:105
files
static const FileHandler_t files[]
Array of files which could be responed by http.
Definition: connect.cpp:52
window_term_init
static void window_term_init(window_term_t *window)
Definition: window_term.c:5
FLG_RS
#define FLG_RS
Definition: st7789v.c:72
_st7789v_config_t
Definition: st7789v.h:19
MSGBOX_RES_CUSTOM1
#define MSGBOX_RES_CUSTOM1
Definition: window_msgbox.h:50
st7789v_flg
uint8_t st7789v_flg
Definition: st7789v.c:75
window_set_tag
void window_set_tag(int16_t id, uint8_t tag)
Definition: window.c:329
screen.h
WP2_Pin
#define WP2_Pin
Definition: main.h:191
app_assert
void app_assert(uint8_t *file, uint32_t line)
Definition: appmain.cpp:149
_st7789v_config_t::gamma
uint8_t gamma
Definition: st7789v.h:28
window_list_t
struct _window_list_t window_list_t
Definition: window.h:60
diag.h
TERM_FLG_CHANGED
#define TERM_FLG_CHANGED
Definition: term.h:29
_window_numb_t::font
font_t * font
Definition: window_numb.h:21
IHeader
Headers list. Creator is responsible to clean the values.
Definition: lwsapi_app.hpp:70
window_menu.h
HAL_PCD_SuspendCallback
void HAL_PCD_SuspendCallback(PCD_HandleTypeDef *hpcd)
Suspend callback. When Low power mode is enabled the debug cannot be used (IAR, Keil doesn't support ...
Definition: usbd_conf.c:218
HAL_TIMEx_MasterConfigSynchronization
HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, TIM_MasterConfigTypeDef *sMasterConfig)
_window_menu_t::font
font_t * font
Definition: window_menu.h:88
TIM_OC_InitTypeDef::OCNPolarity
uint32_t OCNPolarity
Definition: stm32f4xx_hal_tim.h:103
hpcd_USB_OTG_FS
PCD_HandleTypeDef hpcd_USB_OTG_FS
Definition: usbd_conf.c:69
HAL_UART_RxCpltCallback
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
Definition: main.c:922
window_get_tag
uint8_t window_get_tag(int16_t id)
Definition: window.c:335
CDC_CLEAR_COMM_FEATURE
#define CDC_CLEAR_COMM_FEATURE
Definition: usbd_cdc.h:75
jogwheel_init
void jogwheel_init(void)
Definition: jogwheel.c:16
__HAL_RCC_TIM1_CLK_DISABLE
#define __HAL_RCC_TIM1_CLK_DISABLE()
Definition: stm32f4xx_hal_rcc.h:637
CMD_INVOFF
#define CMD_INVOFF
Definition: st7789v.c:20
gui_loop_cb_t
void() gui_loop_cb_t(void)
Definition: gui.h:34
sio_fd_t
void * sio_fd_t
Definition: sio.h:48
st7789v_set_pixel
void st7789v_set_pixel(point_ui16_t pt, color_t clr)
Definition: st7789v.c:364
SPI_TIMODE_DISABLE
#define SPI_TIMODE_DISABLE
Definition: stm32f4xx_hal_spi.h:260
tcpip_init
void tcpip_init(tcpip_init_done_fn initfunc, void *arg)
Definition: tcpip.c:462
window_class_progress
const window_class_progress_t window_class_progress
Definition: window_progress.c:61
FileResponse::generator
virtual Message_t generator(const struct pbuf *input=nullptr) override
Response generator, iterative returns file data.
Definition: connect.cpp:106
USBH_Delay
void USBH_Delay(uint32_t Delay)
Delay routine for the USB Host Library.
Definition: usbh_conf.c:601
MX_SPI2_Init
static void MX_SPI2_Init(void)
SPI2 Initialization Function.
Definition: main.c:440
WINDOW_EVENT_ENC_UP
#define WINDOW_EVENT_ENC_UP
Definition: window.h:41
hi2c1
I2C_HandleTypeDef hi2c1
Definition: main.c:77
Z_MIN_Pin
#define Z_MIN_Pin
Definition: main.h:159
uart1rxbuff
uartrxbuff_t uart1rxbuff
Definition: main.c:144
APPLICATION_DISCONNECT
Definition: usb_host.h:89
USB_EN_GPIO_Port
#define USB_EN_GPIO_Port
Definition: main.h:92
ALIGN_CENTER
#define ALIGN_CENTER
Definition: guitypes.h:19
MSGBOX_RES_NO
#define MSGBOX_RES_NO
Definition: window_msgbox.h:45
api_post
IResponse::unique_ptr_t api_post(Environment &env)
return 200 OK when file is post right
Definition: connect.cpp:257
Environment::request_uri
char request_uri[URI_LENGTH]
Definition: lwsapi_app.hpp:184
g29_auto.start
start
Definition: g29_auto.py:150
_window_numb_t::color_text
color_t color_text
Definition: window_numb.h:20
_window_text_t::color_back
color_t color_back
Definition: window_text.h:17
_window_class_text_t
Definition: window_text.h:11
resource_fopen
FILE * resource_fopen(uint16_t id, const char *opentype)
Definition: guitypes.c:180
window_invalidate
void window_invalidate(int16_t id)
Definition: window.c:304
GUI_MAX_TIMERS
#define GUI_MAX_TIMERS
Definition: gui_timer.c:8
rect_ui16
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
st7789v_spi_rd_bytes
void st7789v_spi_rd_bytes(uint8_t *pb, uint16_t size)
Definition: st7789v.c:183
jogwheel_encoder
int32_t jogwheel_encoder
Definition: jogwheel.c:10
BufferResponse::printf
int printf(const char *format...)
write string data to internal buffer
Definition: connect.cpp:131
HAL_UART_MspInit
void HAL_UART_MspInit(UART_HandleTypeDef *huart)
UART MSP Initialization This function configures the hardware resources used in this example.
Definition: stm32f4xx_hal_msp.c:550
USBD_FAIL
Definition: usbd_def.h:197
WINDOW_FLG_PARENT
#define WINDOW_FLG_PARENT
Definition: window.h:32
_point_ui16_t::x
uint16_t x
Definition: guitypes.h:65
_window_term_t::term
term_t * term
Definition: window_term.h:20
TIM_OC_InitTypeDef::OCPolarity
uint32_t OCPolarity
Definition: stm32f4xx_hal_tim.h:100
ADC_InitTypeDef::DMAContinuousRequests
uint32_t DMAContinuousRequests
Definition: stm32f4xx_hal_adc.h:117
window_text_init
void window_text_init(window_text_t *window)
Definition: window_text.c:5
THERM_0_Pin
#define THERM_0_Pin
Definition: main.h:97
_gui_defaults_t::font
font_t * font
Definition: guitypes.h:110
TIM_MasterConfigTypeDef
TIM Master configuration Structure definition.
Definition: stm32f4xx_hal_tim_ex.h:83
window_menu_item_spin
void window_menu_item_spin(window_menu_t *window, int dif)
Definition: window_menu.c:208
__io_putchar
int __io_putchar(int ch) __attribute__((weak))
HAL_ADC_MspInit
void HAL_ADC_MspInit(ADC_HandleTypeDef *hadc)
ADC MSP Initialization This function configures the hardware resources used in this example.
Definition: stm32f4xx_hal_msp.c:116
window_class_term
const window_class_term_t window_class_term
Definition: window_term.c:53
term_write_CR
void term_write_CR(term_t *pt)
Definition: term.c:135
bsod.h
MX_GPIO_Init
static void MX_GPIO_Init(void)
GPIO Initialization Function.
Definition: main.c:826
HAL_PCD_ResetCallback
void HAL_PCD_ResetCallback(PCD_HandleTypeDef *hpcd)
Reset callback.
Definition: usbd_conf.c:190
window_set_padding
void window_set_padding(int16_t id, padding_ui8_t padding)
Definition: window.c:549
_window_class_frame_t
Definition: window_frame.h:14
number_header_factory
IHeader * number_header_factory(const char *key, const char *value, size_t value_length)
Response new NumberHeader.
Definition: lwsapi.cpp:445
UART_PARITY_NONE
#define UART_PARITY_NONE
Definition: stm32f4xx_hal_uart.h:236
rop_rgb8888_swapbw
static void rop_rgb8888_swapbw(uint8_t *ppx)
Definition: st7789v.c:621
__attribute__
bool boolean __attribute__((deprecated))
Definition: wiring_constants.h:110
window_msgbox_title_text
const char * window_msgbox_title_text[]
Definition: window_msgbox.c:8
gui_malloc
void * gui_malloc(unsigned int size)
Definition: gui.c:35
displayTaskHandle
osThreadId displayTaskHandle
Definition: main.c:98
GPIO_InitTypeDef::Alternate
uint32_t Alternate
Definition: stm32f4xx_hal_gpio.h:77
CDC_Receive_FS
static int8_t CDC_Receive_FS(uint8_t *pbuf, uint32_t *Len)
Data received over USB OUT endpoint are sent over CDC interface through this function.
Definition: usbd_cdc_if.c:297
RCC_HSE_ON
#define RCC_HSE_ON
Definition: stm32f4xx_hal_rcc.h:137
term.h
_window_msgbox_t::title
const char * title
Definition: window_msgbox.h:75
data
uint8_t data[8]
Definition: masstorage.h:49
_window_list_t::icon_rect
rect_ui16_t icon_rect
Definition: window_list.h:22
FileResponse
Class to response any static files defined in files array.
Definition: connect.cpp:84
u32_t
uint32_t u32_t
Definition: arch.h:123
CDC_GET_LINE_CODING
#define CDC_GET_LINE_CODING
Definition: usbd_cdc.h:77
png_check_sig
#define png_check_sig(sig, n)
Definition: png.h:919
window_free_id
window_t * window_free_id(int16_t id)
Definition: window.c:64
window_draw
void window_draw(int16_t id)
Definition: window.c:277
Context::fill_request_buffer
err_t fill_request_buffer(const struct pbuf *p)
Append pbuf to request_buffer.
Definition: connection.cpp:17
window_destroy
void window_destroy(int16_t id)
Definition: window.c:132
Context::FIRST
Definition: connection.hpp:23
index_css.c
GUI_DELAY_MIN
#define GUI_DELAY_MIN
Definition: gui.c:73
BusFault_Handler
void BusFault_Handler(void)
This function handles Pre-fetch fault, memory access fault.
Definition: stm32f4xx_it.c:134
USBH_ErrLog
#define USBH_ErrLog(...)
Definition: usbh_conf.h:176
SPI_InitTypeDef::CLKPolarity
uint32_t CLKPolarity
Definition: stm32f4xx_hal_spi.h:74
HAL_PCD_ResumeCallback
void HAL_PCD_ResumeCallback(PCD_HandleTypeDef *hpcd)
Resume callback. When Low power mode is enabled the debug cannot be used (IAR, Keil doesn't support i...
Definition: usbd_conf.c:237
USBD_FS_SerialStrDescriptor
uint8_t * USBD_FS_SerialStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length)
Return the serial number string descriptor.
Definition: usbd_desc.c:312
X_DIR_Pin
#define X_DIR_Pin
Definition: main.h:177
jogwheel_init
void jogwheel_init(void)
Definition: jogwheel.c:16
I2C_InitTypeDef::DutyCycle
uint32_t DutyCycle
Definition: stm32f4xx_hal_i2c.h:68
status_prnflow_svg.c
USBH_LL_DriverVBUS
USBH_StatusTypeDef USBH_LL_DriverVBUS(USBH_HandleTypeDef *phost, uint8_t state)
Drive VBUS.
Definition: usbh_conf.c:532
ALIGN_MASK
#define ALIGN_MASK
Definition: guitypes.h:18
RENDER_FLG_WORDB
#define RENDER_FLG_WORDB
Definition: display_helper.h:9
_exit
void _exit(int status)
Definition: syscalls.c:80
padding_ui8
static padding_ui8_t padding_ui8(uint8_t l, uint8_t t, uint8_t r, uint8_t b)
Definition: guitypes.h:164
TIM_OCIDLESTATE_RESET
#define TIM_OCIDLESTATE_RESET
Definition: stm32f4xx_hal_tim.h:405
HAL_IWDG_Init
HAL_StatusTypeDef HAL_IWDG_Init(IWDG_HandleTypeDef *hiwdg)
ADC_CHANNEL_4
#define ADC_CHANNEL_4
Definition: stm32f4xx_hal_adc.h:345
__HAL_TIM_ENABLE_IT
#define __HAL_TIM_ENABLE_IT(__HANDLE__, __INTERRUPT__)
Enable the specified TIM interrupt.
Definition: stm32f4xx_hal_tim.h:932
htim14
TIM_HandleTypeDef htim14
Definition: main.c:88
USBD_LL_DataInStage
USBD_StatusTypeDef USBD_LL_DataInStage(USBD_HandleTypeDef *pdev, uint8_t epnum, uint8_t *pdata)
USBD_DataInStage Handle data in stage.
Definition: usbd_core.c:343
st7789v_gamma_prev
void st7789v_gamma_prev(void)
i
uint8_t i
Definition: screen_test_graph.c:72
HAL_HCD_SOF_Callback
void HAL_HCD_SOF_Callback(HCD_HandleTypeDef *hhcd)
SOF callback.
Definition: usbh_conf.c:147
timer_defaults.h
WINDOW_CLS_USER
#define WINDOW_CLS_USER
Definition: window.h:21
pbuf::next
struct pbuf * next
Definition: pbuf.h:144
_resource_entry_t::ptr
const uint8_t * ptr
Definition: guitypes.h:102
State_t
State_t
Response state enumeration.
Definition: connect.cpp:76
RCC_CLOCKTYPE_PCLK2
#define RCC_CLOCKTYPE_PCLK2
Definition: stm32f4xx_hal_rcc.h:209
_window_list_t::color_text
color_t color_text
Definition: window_list.h:18
TIM_OC_InitTypeDef::OCFastMode
uint32_t OCFastMode
Definition: stm32f4xx_hal_tim.h:107
HAL_TIMEOUT
Definition: stm32f4xx_hal_def.h:60
WINDOW_FLG_VISIBLE
#define WINDOW_FLG_VISIBLE
Definition: window.h:24
_gui_defaults_t::msg_box_sz
rect_ui16_t msg_box_sz
Definition: guitypes.h:114
hhcd_USB_OTG_HS
HCD_HandleTypeDef hhcd_USB_OTG_HS
Definition: usbh_conf.c:67
GPIO_MODE_ANALOG
#define GPIO_MODE_ANALOG
Definition: stm32f4xx_hal_gpio.h:141
Z_STEP_Pin
#define Z_STEP_Pin
Definition: main.h:185
max
#define max(a, b)
Definition: wiring_constants.h:40
state
static volatile fsensor_t state
Definition: filament_sensor.c:23
_window_class_t::draw
window_draw_t * draw
Definition: window.h:72
_st7789v_config_t::control
uint8_t control
Definition: st7789v.h:31
GPIO_InitTypeDef::Pull
uint32_t Pull
Definition: stm32f4xx_hal_gpio.h:71
_window_numb_t::value
float value
Definition: window_numb.h:22
window_get_top_index
int window_get_top_index(int16_t id)
Definition: window.c:648
_window_menu_t::data
void * data
Definition: window_menu.h:97
RCC_CLOCKTYPE_PCLK1
#define RCC_CLOCKTYPE_PCLK1
Definition: stm32f4xx_hal_rcc.h:208
window_set_color_back
void window_set_color_back(int16_t id, color_t clr)
Definition: window.c:431
st7789v_fill_rect
void st7789v_fill_rect(rect_ui16_t rc, color_t clr)
Definition: st7789v.c:490
_window_numb_t::color_back
color_t color_back
Definition: window_numb.h:19
gui_flags
uint16_t gui_flags
Definition: gui.c:9
window_progress_t
struct _window_progress_t window_progress_t
st7789v_done
void st7789v_done(void)
Definition: st7789v.c:346
osPriorityIdle
priority: idle (lowest)
Definition: cmsis_os.h:218
osSignalSet
int32_t osSignalSet(osThreadId thread_id, int32_t signal)
Set the specified Signal Flags of an active thread.
Definition: cmsis_os.c:545
favicon_ico.c
st7789v_draw_char
void st7789v_draw_char(point_ui16_t pt, char chr, font_t *pf, color_t clr0, color_t clr1)
Definition: st7789v.c:514
init.h
jogwheel_encoder_set
void jogwheel_encoder_set(int32_t val, int32_t min, int32_t max)
Definition: jogwheel.c:83
METHOD_LENGTH
#define METHOD_LENGTH
maximum method length (PROPPATCH) from WebDAV + \0
Definition: lwsapi_app.hpp:36
window_msgbox_button_text
const char * window_msgbox_button_text[]
Definition: window_msgbox.c:43
usbd_def.h
General defines for the usb device library.
HAL_GPIO_EXTI_Callback
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
Definition: main.c:931
_open
int _open(char *path, int flags,...)
Definition: syscalls.c:143
window_destroy
void window_destroy(int16_t id)
Definition: window.c:132
screens
screen_t * screens[SCREEN_MAX_SCREENS]
Definition: screen.c:12
TIM_TRGO_RESET
#define TIM_TRGO_RESET
Definition: stm32f4xx_hal_tim.h:688
_st7789v_config_t::colmod
uint8_t colmod
Definition: st7789v.h:25
_screen_t::data_size
uint16_t data_size
Definition: screen.h:25
FLASH_MOSI_Pin
#define FLASH_MOSI_Pin
Definition: main.h:175
HAL_SPI_Initialized
int HAL_SPI_Initialized
Definition: main.c:107
HAL_GPIO_DeInit
void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin)
USBD_LL_ClearStallEP
USBD_StatusTypeDef USBD_LL_ClearStallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr)
Clears a Stall condition on an endpoint of the Low Level Driver.
Definition: usbd_conf.c:548
GPIO_MODE_AF_OD
#define GPIO_MODE_AF_OD
Definition: stm32f4xx_hal_gpio.h:139
jogwheel_signals_old
uint8_t jogwheel_signals_old
Definition: jogwheel.c:8
MENU_TIMEOUT_MS
#define MENU_TIMEOUT_MS
Definition: guiconfig.h:20
__HAL_TIM_DISABLE_IT
#define __HAL_TIM_DISABLE_IT(__HANDLE__, __INTERRUPT__)
Disable the specified TIM interrupt.
Definition: stm32f4xx_hal_tim.h:949
index_html.c
SystemCoreClock
uint32_t SystemCoreClock
Definition: system_stm32f4xx.c:136
_window_term_t::color_text
color_t color_text
Definition: window_term.h:18
SPI_InitTypeDef::CRCPolynomial
uint32_t CRCPolynomial
Definition: stm32f4xx_hal_spi.h:99
COLOR_LIME
#define COLOR_LIME
Definition: guitypes.h:44
RCC_PLLInitTypeDef::PLLQ
uint32_t PLLQ
Definition: stm32f4xx_hal_rcc_ex.h:81
window_0
window_t * window_0
Definition: window.c:12
osKernelStart
osStatus osKernelStart(void)
Start the RTOS Kernel with executing the specified thread.
Definition: cmsis_os.c:193
TIM_Base_InitTypeDef::CounterMode
uint32_t CounterMode
Definition: stm32f4xx_hal_tim.h:68
ALIGN_RIGHT
#define ALIGN_RIGHT
Definition: guitypes.h:12
__DMA_HandleTypeDef::Init
DMA_InitTypeDef Init
Definition: stm32f4xx_hal_dma.h:159
rect_in_rect_ui16
static int rect_in_rect_ui16(rect_ui16_t rc, rect_ui16_t rc1)
Definition: guitypes.h:173
Z_DIR_Pin
#define Z_DIR_Pin
Definition: main.h:149
USBD_LL_SetUSBAddress
USBD_StatusTypeDef USBD_LL_SetUSBAddress(USBD_HandleTypeDef *pdev, uint8_t dev_addr)
Assigns a USB address to the device.
Definition: usbd_conf.c:596
_window_icon_t
Definition: window_icon.h:11
hdma_usart2_rx
DMA_HandleTypeDef hdma_usart2_rx
Definition: main.c:94
_st7789v_config_t::pinCS
uint8_t pinCS
Definition: st7789v.h:21
netif::flags
u8_t flags
Definition: netif.h:305
_gui_defaults_t::color_disabled
color_t color_disabled
Definition: guitypes.h:109
lwsapi_error
#define lwsapi_error
Definition: lwsapi_app.hpp:42
WI_SPIN
Definition: window_menu.h:15
status_prnspeed_svg
const uint8_t status_prnspeed_svg[]
Definition: status_prnspeed_svg.c:3
UART_MODE_TX_RX
#define UART_MODE_TX_RX
Definition: stm32f4xx_hal_uart.h:259
_display_t::draw_text
display_draw_text_t * draw_text
Definition: display.h:35
USBH_LL_OpenPipe
USBH_StatusTypeDef USBH_LL_OpenPipe(USBH_HandleTypeDef *phost, uint8_t pipe_num, uint8_t epnum, uint8_t dev_address, uint8_t speed, uint8_t ep_type, uint16_t mps)
Open a pipe of the low level driver.
Definition: usbh_conf.c:388
DMA_InitTypeDef::Direction
uint32_t Direction
Definition: stm32f4xx_hal_dma.h:70
ST7789V_COLS
#define ST7789V_COLS
Definition: st7789v.c:14
USBH_MSC_Read
USBH_StatusTypeDef USBH_MSC_Read(USBH_HandleTypeDef *phost, uint8_t lun, uint32_t address, uint8_t *pbuf, uint32_t length)
USBH_MSC_Read The function performs a Read operation.
Definition: usbh_msc.c:700
DMA_InitTypeDef::Priority
uint32_t Priority
Definition: stm32f4xx_hal_dma.h:91
window_is_visible
int window_is_visible(int16_t id)
Definition: window.c:252
RCC_LSI_ON
#define RCC_LSI_ON
Definition: stm32f4xx_hal_rcc.h:168
USBD_IDX_PRODUCT_STR
#define USBD_IDX_PRODUCT_STR
Definition: usbd_def.h:68
SPI_CRCCALCULATION_DISABLE
#define SPI_CRCCALCULATION_DISABLE
Definition: stm32f4xx_hal_spi.h:269
dbg.h
htim6
TIM_HandleTypeDef htim6
Definition: stm32f4xx_hal_timebase_tim.c:49
_window_numb_t::alignment
uint8_t alignment
Definition: window_numb.h:25
GPIO_PIN_10
#define GPIO_PIN_10
Definition: stm32f4xx_hal_gpio.h:112
UserRxBufferFS
uint8_t UserRxBufferFS[APP_RX_DATA_SIZE]
Definition: usbd_cdc_if.c:128
term_done
void term_done(term_t *pt)
Definition: term.c:26
RCC_PLLInitTypeDef::PLLSource
uint32_t PLLSource
Definition: stm32f4xx_hal_rcc_ex.h:68
RCC_OSCILLATORTYPE_LSI
#define RCC_OSCILLATORTYPE_LSI
Definition: stm32f4xx_hal_rcc.h:128
application
IResponse::unique_ptr_t application(Environment &env)
application_fn callback, which is called from LwIP WSAPI http server
Definition: connect.cpp:306
HOST_USER_CONNECTION
#define HOST_USER_CONNECTION
Definition: usbh_core.h:67
_window_text_t::text
char * text
Definition: window_text.h:20
Context::prepare_response
err_t prepare_response()
Process message.response to internal buffer.
Definition: connection.cpp:152
window_destroy_children
void window_destroy_children(int16_t id)
Definition: window.c:157
_st7789v_config_t::pinRS
uint8_t pinRS
Definition: st7789v.h:22
jogwheel_signals
uint8_t jogwheel_signals
Definition: jogwheel.c:7
ADC_SOFTWARE_START
#define ADC_SOFTWARE_START
Definition: stm32f4xx_hal_adc.h:324
_window_msgbox_t::color_text
color_t color_text
Definition: window_msgbox.h:70
TIM_OCMODE_PWM1
#define TIM_OCMODE_PWM1
Definition: stm32f4xx_hal_tim.h:365
Temperature::degHotend
static FORCE_INLINE float degHotend(const uint8_t E_NAME)
Definition: temperature.h:544
DMA_PINC_DISABLE
#define DMA_PINC_DISABLE
Definition: stm32f4xx_hal_dma.h:256
huart6
UART_HandleTypeDef huart6
Definition: main.c:92
gui_free
void gui_free(void *ptrx)
Definition: gui.c:39
DMA1_Stream5_IRQHandler
void DMA1_Stream5_IRQHandler(void)
This function handles DMA1 stream5 global interrupt.
Definition: stm32f4xx_it.c:192
USB_DESC_TYPE_DEVICE
#define USB_DESC_TYPE_DEVICE
Definition: usbd_def.h:95
CRLF
#define CRLF
Definition: connection.hpp:7
ROPFN_INVERT
#define ROPFN_INVERT
Definition: guitypes.h:31
USBD_LL_CloseEP
USBD_StatusTypeDef USBD_LL_CloseEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr)
Closes an endpoint of the low level driver.
Definition: usbd_conf.c:452
_USBH_HandleTypeDef
Definition: usbh_def.h:450
WINDOW_EVENT_CHANGE
#define WINDOW_EVENT_CHANGE
Definition: window.h:47
window_frame_t
struct _window_frame_t window_frame_t
SCREEN_MAX_HISTORY
#define SCREEN_MAX_HISTORY
Definition: screen.c:8
I2C_GENERALCALL_DISABLE
#define I2C_GENERALCALL_DISABLE
Definition: stm32f4xx_hal_i2c.h:257
_USBD_HandleTypeDef::pClassData
void * pClassData
Definition: usbd_def.h:246
TIM_OC_InitTypeDef
TIM Output Compare Configuration Structure definition.
Definition: stm32f4xx_hal_tim.h:92
uartslave_init
void uartslave_init(uartslave_t *pslave, uartrxbuff_t *prxbuff, int size, char *pline)
Definition: uartslave.c:57
ADC_ChannelConfTypeDef::Channel
uint32_t Channel
Definition: stm32f4xx_hal_adc.h:133
osThreadGetId
osThreadId osThreadGetId(void)
Return the thread ID of the current running thread.
Definition: cmsis_os.c:283
hdma_usart2_rx
DMA_HandleTypeDef hdma_usart2_rx
Definition: main.c:94
MSGBOX_BTN_MAX
#define MSGBOX_BTN_MAX
Definition: window_msgbox.h:29
window_get_min
float window_get_min(int16_t id)
Definition: window.c:694
Context
Internal connection structure which is used in LwIP tcp_ callbacks as arg.
Definition: connection.hpp:20
IWDG_InitTypeDef::Reload
uint32_t Reload
Definition: stm32f4xx_hal_iwdg.h:68
RCC_OscInitTypeDef::OscillatorType
uint32_t OscillatorType
Definition: stm32f4xx_hal_rcc.h:69
hhcd_USB_OTG_HS
HCD_HandleTypeDef hhcd_USB_OTG_HS
Definition: usbh_conf.c:67
st7789v_cmd_caset
void st7789v_cmd_caset(uint16_t x, uint16_t cx)
Definition: st7789v.c:263
RCC_PLLInitTypeDef::PLLM
uint32_t PLLM
Definition: stm32f4xx_hal_rcc_ex.h:71
NULL
#define NULL
Definition: usbd_def.h:53
_screen_t::pdata
void * pdata
Definition: screen.h:26
USB_MAX_EP0_SIZE
#define USB_MAX_EP0_SIZE
Definition: usbd_def.h:115
window_is_invalid
int window_is_invalid(int16_t id)
Definition: window.c:262
window_first_child
int16_t window_first_child(int16_t id)
Definition: window.c:218
GUI_FLG_INVALID
#define GUI_FLG_INVALID
Definition: gui.c:7
osEvent::status
osStatus status
status code: event or error information
Definition: cmsis_os.h:396
FLASH_MISO_Pin
#define FLASH_MISO_Pin
Definition: main.h:173
WINDOW_PROGRESS_MAX_TEXT
#define WINDOW_PROGRESS_MAX_TEXT
Definition: window_progress.c:5
HAL_PCD_SetupStageCallback
void HAL_PCD_SetupStageCallback(PCD_HandleTypeDef *hpcd)
Setup stage callback.
Definition: usbd_conf.c:152
window_class_msgbox
const window_class_msgbox_t window_class_msgbox
Definition: window_msgbox.c:249
BufferResponse::BufferResponse
BufferResponse()
Definition: connect.cpp:125
MSGBOX_ICO_INFO
#define MSGBOX_ICO_INFO
Definition: window_msgbox.h:36
gui_timer_delete
void gui_timer_delete(int8_t id)
Definition: gui_timer.c:79
RCC_OscInitTypeDef::HSEState
uint32_t HSEState
Definition: stm32f4xx_hal_rcc.h:72
window_class_numb
const window_class_numb_t window_class_numb
Definition: window_numb.c:41
png_get_image_height
png_uint_32 PNGAPI png_get_image_height(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:61
TIM_BreakDeadTimeConfigTypeDef::AutomaticOutput
uint32_t AutomaticOutput
Definition: stm32f4xx_hal_tim_ex.h:108
ADC_CLOCK_SYNC_PCLK_DIV4
#define ADC_CLOCK_SYNC_PCLK_DIV4
Definition: stm32f4xx_hal_adc.h:251
memlen
#define memlen(start, end)
return lenght of data from start to end
Definition: connection.hpp:16
TIM_CHANNEL_3
#define TIM_CHANNEL_3
Definition: stm32f4xx_hal_tim.h:424
st7789v_cx
uint16_t st7789v_cx
Definition: st7789v.c:79
MAX
#define MAX(a, b)
Definition: usbd_def.h:266
window_menu_init
void window_menu_init(window_menu_t *window)
Definition: window_menu.c:28
HAL_MspInit
void HAL_MspInit(void)
Definition: stm32f4xx_hal_msp.c:93
gw
ip4_addr_t gw
Definition: lwip.c:75
mem_calloc
void * mem_calloc(mem_size_t count, mem_size_t size)
Definition: mem.c:765
USBD_FS_InterfaceStrDescriptor
uint8_t * USBD_FS_InterfaceStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length)
Return the interface string descriptor.
Definition: usbd_desc.c:342
CDC_SET_COMM_FEATURE
#define CDC_SET_COMM_FEATURE
Definition: usbd_cdc.h:73
_window_class_t::done
window_done_t * done
Definition: window.h:71
CMD_CASET
#define CMD_CASET
Definition: st7789v.c:25
_window_progress_t::font
font_t * font
Definition: window_progress.h:20
CDC_SEND_ENCAPSULATED_COMMAND
#define CDC_SEND_ENCAPSULATED_COMMAND
Definition: usbd_cdc.h:71
Context::prepare_header
err_t prepare_header()
Process message.headers to internal buffer.
Definition: connection.cpp:171
screen_open
void screen_open(int16_t screen_id)
Definition: screen.c:62
USBH_LL_ResetPort
USBH_StatusTypeDef USBH_LL_ResetPort(USBH_HandleTypeDef *phost)
Reset the Host port of the low level driver.
Definition: usbh_conf.c:342
MAX
#define MAX(a, b)
Definition: window_menu.c:10
USBD_MAX_NUM_CONFIGURATION
#define USBD_MAX_NUM_CONFIGURATION
Definition: usbd_conf.h:97
WI_SPIN_t::range
const int32_t * range
Definition: window_menu.h:38
window_0
window_t * window_0
Definition: window.c:12
window_is_focused
int window_is_focused(int16_t id)
Definition: window.c:267
st7789v_cmd_slpout
void st7789v_cmd_slpout(void)
Definition: st7789v.c:247
GUI_TIMER_NONE
#define GUI_TIMER_NONE
Definition: gui_timer.c:10
SCREEN_MAX_SCREENS
#define SCREEN_MAX_SCREENS
Definition: screen.c:6
st7789v_draw_png_ex
void st7789v_draw_png_ex(point_ui16_t pt, FILE *pf, color_t clr0, uint8_t rop)
Definition: st7789v.c:885
USBH_LL_Stop
USBH_StatusTypeDef USBH_LL_Stop(USBH_HandleTypeDef *phost)
Stop the low level portion of the host driver.
Definition: usbh_conf.c:283
window_msgbox_buttons
const uint8_t window_msgbox_buttons[][3]
Definition: window_msgbox.c:30
interval_intersect_ui16
void interval_intersect_ui16(uint16_t *p)
Definition: guitypes.c:7
gui_timer_count
int8_t gui_timer_count
Definition: gui_timer.c:35
_point_ui16_t
Definition: guitypes.h:64
createSpeedLookupTable.end
end
Definition: createSpeedLookupTable.py:33
USBH_SPEED_FULL
Definition: usbh_def.h:320
font_line_chars
int font_line_chars(font_t *pf, const char *str, uint16_t line_width)
Definition: guitypes.c:122
MSGBOX_BTN_OK
#define MSGBOX_BTN_OK
Definition: window_msgbox.h:20
_term_t::col
uint8_t col
Definition: term.h:50
TX1_Pin
#define TX1_Pin
Definition: main.h:193
st7789v_draw_line
void st7789v_draw_line(point_ui16_t pt, point_ui16_t pt1, color_t clr)
Definition: st7789v.c:438
HAL_PCD_MspInit
void HAL_PCD_MspInit(PCD_HandleTypeDef *pcdHandle)
Definition: usbd_conf.c:94
_window_class_term_t
Definition: window_term.h:11
GPIO_PULLUP
#define GPIO_PULLUP
Definition: stm32f4xx_hal_gpio.h:171
window_focused_ptr
window_t * window_focused_ptr
Definition: window.c:19
osDelay
osStatus osDelay(uint32_t millisec)
Wait for Timeout (Time Delay)
Definition: cmsis_os.c:365
ADC_ChannelConfTypeDef::Rank
uint32_t Rank
Definition: stm32f4xx_hal_adc.h:135
ALIGN_LEFT_TOP
#define ALIGN_LEFT_TOP
Definition: guitypes.h:20
CDC_GET_COMM_FEATURE
#define CDC_GET_COMM_FEATURE
Definition: usbd_cdc.h:74
_kill
int _kill(int pid, int sig)
Definition: syscalls.c:75
GUI_DELAY_LOOP
#define GUI_DELAY_LOOP
Definition: gui.c:75
FIRST
Definition: connect.cpp:77
rect_ui16_sub_padding_ui8
rect_ui16_t rect_ui16_sub_padding_ui8(rect_ui16_t rc, padding_ui8_t pad)
Definition: guitypes.c:55
_window_frame_t::color_back
color_t color_back
Definition: window_frame.h:20
_display_t::fill_rect
display_fill_rect_t * fill_rect
Definition: display.h:33
HAL_GetTick
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
Definition: stm32f4xx_hal.c:339
button_draw.h
__HAL_PWR_VOLTAGESCALING_CONFIG
#define __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__)
macros configure the main internal regulator output voltage.
Definition: stm32f4xx_hal_pwr_ex.h:153
WIO_MAX
#define WIO_MAX
Definition: window_menu.c:6
_USBH_HandleTypeDef::id
uint8_t id
Definition: usbh_def.h:462
TIM_BreakDeadTimeConfigTypeDef::LockLevel
uint32_t LockLevel
Definition: stm32f4xx_hal_tim_ex.h:100
_window_t::id
int16_t id
Definition: window.h:79
HAL_SPI_MspDeInit
void HAL_SPI_MspDeInit(SPI_HandleTypeDef *hspi)
SPI MSP De-Initialization This function freeze the hardware resources used in this example.
Definition: stm32f4xx_hal_msp.c:337
MX_DMA_Init
static void MX_DMA_Init(void)
Definition: main.c:801
HAL_TIMEx_ConfigBreakDeadTime
HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim, TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig)
USBD_LL_OpenEP
USBD_StatusTypeDef USBD_LL_OpenEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t ep_type, uint16_t ep_mps)
Opens an endpoint of the low level driver.
Definition: usbd_conf.c:420
window_first_child
int16_t window_first_child(int16_t id)
Definition: window.c:218
_window_progress_t::alignment
uint8_t alignment
Definition: window_progress.h:22
window_validate
void window_validate(int16_t id)
Definition: window.c:298
_window_menu_t::icon_rect
rect_ui16_t icon_rect
Definition: window_menu.h:90
window_disable
void window_disable(int16_t id)
Definition: window.c:523
HAL_ERROR
Definition: stm32f4xx_hal_def.h:58
RCC_PLLSOURCE_HSE
#define RCC_PLLSOURCE_HSE
Definition: stm32f4xx_hal_rcc.h:198
HAL_StatusTypeDef
HAL_StatusTypeDef
HAL Status structures definition.
Definition: stm32f4xx_hal_def.h:55
_padding_ui8_t::left
uint8_t left
Definition: guitypes.h:87
window_msgbox.h
__HAL_RCC_GPIOH_CLK_ENABLE
#define __HAL_RCC_GPIOH_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:423
_window_class_numb_t
Definition: window_numb.h:13
TIM_BREAKPOLARITY_HIGH
#define TIM_BREAKPOLARITY_HIGH
Definition: stm32f4xx_hal_tim.h:671
_window_icon_t::color_back
color_t color_back
Definition: window_icon.h:13
gpio_get
static int gpio_get(uint8_t pin8)
Definition: gpio.h:94
uartrxbuff_rxcplt_cb
void uartrxbuff_rxcplt_cb(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:71
TIM_BreakDeadTimeConfigTypeDef::OffStateIDLEMode
uint32_t OffStateIDLEMode
Definition: stm32f4xx_hal_tim_ex.h:98
term_init
void term_init(term_t *pt, uint8_t cols, uint8_t rows, uint8_t *buff)
Definition: term.c:6
_gui_defaults_t::padding
padding_ui8_t padding
Definition: guitypes.h:112
_window_t::f_invalid
uint32_t f_invalid
Definition: window.h:87
window_frame_init
void window_frame_init(window_frame_t *window)
Definition: window_frame.c:5
_window_menu_t::color_text
color_t color_text
Definition: window_menu.h:86
USBH_UserProcess
static void USBH_UserProcess(USBH_HandleTypeDef *phost, uint8_t id)
Definition: usb_host.c:127
HardFault_Handler
void HardFault_Handler(void)
This function handles Hard fault interrupt.
Definition: stm32f4xx_it.c:108
window_progress.h
COLOR_GRAY
#define COLOR_GRAY
Definition: guitypes.h:50
screen_draw
void screen_draw(void)
Definition: screen.c:98
huart1
static UART_HandleTypeDef huart1
Definition: main.c:90
st7789v_x
uint16_t st7789v_x
Definition: st7789v.c:77
ERR_MEM
Definition: err.h:65
EXTI15_10_IRQHandler
void EXTI15_10_IRQHandler(void)
This function handles EXTI line[15:10] interrupts.
Definition: stm32f4xx_it.c:205
window_set_top_index
void window_set_top_index(int16_t id, int top_index)
Definition: window.c:636
term_set_char_at
void term_set_char_at(term_t *pt, uint8_t col, uint8_t row, uint8_t ch)
Definition: term.c:60
window_set_alignment
void window_set_alignment(int16_t id, uint8_t alignment)
Definition: window.c:561
window_spin_inc
void window_spin_inc(window_spin_t *window, int dif)
Definition: window_spin.c:42
StartDefaultTask
void StartDefaultTask(void const *argument)
Function implementing the defaultTask thread.
Definition: main.c:951
window_menu_done
void window_menu_done(window_menu_t *window)
Definition: window_menu.c:45
_window_spin_t::index
int index
Definition: window_spin.h:18
TIM_CLOCKDIVISION_DIV1
#define TIM_CLOCKDIVISION_DIV1
Definition: stm32f4xx_hal_tim.h:351
HAL_GPIO_Initialized
int HAL_GPIO_Initialized
Definition: main.c:104
USBD_IDX_MFC_STR
#define USBD_IDX_MFC_STR
Definition: usbd_def.h:67
resource_ptr
const uint8_t * resource_ptr(uint16_t id)
Definition: guitypes.c:168
_window_numb_t::format
char * format
Definition: window_numb.h:23
USB_DESC_TYPE_BOS
#define USB_DESC_TYPE_BOS
Definition: usbd_def.h:102
USBD_LL_Init
USBD_StatusTypeDef USBD_LL_Init(USBD_HandleTypeDef *pdev)
Initializes the low level portion of the device driver.
Definition: usbd_conf.c:290
WINDOW_CLS_LIST
#define WINDOW_CLS_LIST
Definition: window.h:13
GUI_TIMER_1SHT
#define GUI_TIMER_1SHT
Definition: gui_timer.c:11
HAL_Init
HAL_StatusTypeDef HAL_Init(void)
This function is used to initialize the HAL Library; it must be the first instruction to be executed ...
Definition: stm32f4xx_hal.c:173
hdma_usart6_rx
DMA_HandleTypeDef hdma_usart6_rx
Definition: main.c:95
IWDG_InitTypeDef::Prescaler
uint32_t Prescaler
Definition: stm32f4xx_hal_iwdg.h:65
RCC_PLL_ON
#define RCC_PLL_ON
Definition: stm32f4xx_hal_rcc.h:178
st7789v_spi_wr_byte
void st7789v_spi_wr_byte(uint8_t b)
Definition: st7789v.c:163
_window_msgbox_t::win
window_t win
Definition: window_msgbox.h:68
GPIO_PIN_8
#define GPIO_PIN_8
Definition: stm32f4xx_hal_gpio.h:110
osEvent
Definition: cmsis_os.h:395
_window_menu_item_t::wi_spin_fl
WI_SPIN_FL_t wi_spin_fl
Definition: window_menu.h:69
E_STEP_Pin
#define E_STEP_Pin
Definition: main.h:137
app_cdc_rx
void app_cdc_rx(uint8_t *buffer, uint32_t length)
Definition: appmain.cpp:153
window_ptr
window_t * window_ptr(int16_t id)
Definition: window.c:82
netif.h
_window_msgbox_t::color_back
color_t color_back
Definition: window_msgbox.h:69
MSGBOX_SHI_IDX
#define MSGBOX_SHI_IDX
Definition: window_msgbox.h:16
E_DIAG_Pin
#define E_DIAG_Pin
Definition: main.h:169
ApplicationTypeDef
ApplicationTypeDef
Definition: usb_host.h:85
__HAL_RCC_SYSCFG_CLK_ENABLE
#define __HAL_RCC_SYSCFG_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:615
_window_icon_t::win
window_t win
Definition: window_icon.h:12
dynamics_header_factory
IHeader * dynamics_header_factory(const char *key, const char *value, size_t value_length)
Return new DynamicsHeader.
Definition: lwsapi.cpp:440
USBD_LL_Resume
USBD_StatusTypeDef USBD_LL_Resume(USBD_HandleTypeDef *pdev)
USBD_Resume Handle Resume event.
Definition: usbd_core.c:478
_window_class_msgbox_t
Definition: window_msgbox.h:63
HAL_HCD_MspDeInit
void HAL_HCD_MspDeInit(HCD_HandleTypeDef *hcdHandle)
Definition: usbh_conf.c:119
swap_ui16
static uint16_t swap_ui16(uint16_t val)
Definition: guitypes.h:120
Error_Handler
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition: main.c:1057
NEXT
Definition: connect.cpp:78
USB_LEN_DEV_DESC
#define USB_LEN_DEV_DESC
Definition: usbd_def.h:58
HAL_PCD_DataInStageCallback
void HAL_PCD_DataInStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum)
Data In stage callback.
Definition: usbd_conf.c:172
window_invalidate
void window_invalidate(int16_t id)
Definition: window.c:304
IHeader::snprintf
virtual void snprintf(char *buff) const =0
window_menu_item_spin_fl
void window_menu_item_spin_fl(window_menu_t *window, int dif)
Definition: window_menu.c:225
guitypes.h
button_draw
void button_draw(rect_ui16_t rc_btn, const char *text, font_t *pf, int is_selected)
Definition: button_draw.c:5
gui_loop_tick
uint32_t gui_loop_tick
Definition: gui.c:33
screen_close
void screen_close(void)
Definition: screen.c:80
X_DIAG_Pin
#define X_DIAG_Pin
Definition: main.h:85
jogwheel_encoder
int32_t jogwheel_encoder
Definition: jogwheel.c:10
USBD_FS_ProductStrDescriptor
uint8_t * USBD_FS_ProductStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length)
Return the product string descriptor.
Definition: usbd_desc.c:286
_window_numb_t
Definition: window_numb.h:17
USBH_SPEED_LOW
Definition: usbh_def.h:321
hspi3
SPI_HandleTypeDef hspi3
Definition: main.c:82
window_done_t
void() window_done_t(void *window)
Definition: window.h:56
RCC_HCLK_DIV4
#define RCC_HCLK_DIV4
Definition: stm32f4xx_hal_rcc.h:261
_link
int _link(char *old, char *new)
Definition: syscalls.c:167
_window_t::f_parent
uint32_t f_parent
Definition: window.h:95
_window_term_t::win
window_t win
Definition: window_term.h:16
MX_USB_DEVICE_Init
void MX_USB_DEVICE_Init(void)
Definition: usb_device.c:93
window_enabled_child_count
int window_enabled_child_count(int16_t id)
Definition: window.c:240
usbd_cdc_initialized
int usbd_cdc_initialized
Definition: usbd_cdc_if.c:64
_isatty
int _isatty(int file)
Definition: syscalls.c:135
FAN1_TACH_Pin
#define FAN1_TACH_Pin
Definition: main.h:126
screen_id
int16_t screen_id(void)
Definition: screen.c:18
window_icon_init
void window_icon_init(window_icon_t *window)
Definition: window_icon.c:5
window_class_term
const window_class_term_t window_class_term
Definition: window_term.c:53
rop_rgb888_swapbw
static void rop_rgb888_swapbw(uint8_t *ppx888)
Definition: st7789v.c:593
JOGWHEEL_FLG_INV_ENC
#define JOGWHEEL_FLG_INV_ENC
Definition: jogwheel.h:9
USBD_CDC_HandleTypeDef::TxState
__IO uint32_t TxState
Definition: usbd_cdc.h:121
displayTaskHandle
osThreadId displayTaskHandle
Definition: main.c:98
_window_list_t::win
window_t win
Definition: window_list.h:16
_window_msgbox_t
Definition: window_msgbox.h:67
I2C_InitTypeDef::AddressingMode
uint32_t AddressingMode
Definition: stm32f4xx_hal_i2c.h:74
USBH_LL_SetTimer
void USBH_LL_SetTimer(USBH_HandleTypeDef *phost, uint32_t)
USBH_LL_SetTimer Set the initial Host Timer tick.
Definition: usbh_core.c:791
gui_invalidate
void gui_invalidate(void)
Definition: gui.c:66
_screen_t::draw
screen_draw_t * draw
Definition: screen.h:23
osSignalWait
osEvent osSignalWait(int32_t signals, uint32_t millisec)
Wait for one or more Signal Flags to become signaled for the current RUNNING thread.
Definition: cmsis_os.c:586
IHeader::dbg
virtual void dbg() const =0
min
#define min(a, b)
Definition: wiring_constants.h:36
status_nozzle_svg
const uint8_t status_nozzle_svg[]
Definition: status_nozzle_svg.c:3
st7789v_cmd_raset
void st7789v_cmd_raset(uint16_t y, uint16_t cy)
Definition: st7789v.c:268
GPIO_PIN_RESET
Definition: stm32f4xx_hal_gpio.h:86
window_progress_init
void window_progress_init(window_progress_t *window)
Definition: window_progress.c:7
_display_t
Definition: display.h:24
MSGBOX_RES_ABORT
#define MSGBOX_RES_ABORT
Definition: window_msgbox.h:41
app_tim14_tick
void app_tim14_tick(void)
Definition: appmain.cpp:173
__io_getchar
int __io_getchar(void)
Definition: syscalls.c:60
netif_is_link_up
#define netif_is_link_up(netif)
Definition: netif.h:413
WINDOW_CLS_SPIN
#define WINDOW_CLS_SPIN
Definition: window.h:15
connection.hpp
APPLICATION_READY
Definition: usb_host.h:88
window_menu_items
void window_menu_items(window_menu_t *pwindow_menu, uint16_t index, window_menu_item_t **ppitem, void *data)
Definition: window_menu.c:23
USBH_LL_Start
USBH_StatusTypeDef USBH_LL_Start(USBH_HandleTypeDef *phost)
Start the low level portion of the host driver.
Definition: usbh_conf.c:252
_gui_timer_t::flags
uint32_t flags
Definition: gui_timer.c:22
_window_spin_t::count
int count
Definition: window_spin.h:17
COLOR_ORANGE
#define COLOR_ORANGE
Definition: guitypes.h:57
errno
int errno
OTG_FS_IRQHandler
void OTG_FS_IRQHandler(void)
This function handles USB On The Go FS global interrupt.
Definition: stm32f4xx_it.c:284
BUZZER_Pin
#define BUZZER_Pin
Definition: main.h:99
BED_HEAT_Pin
#define BED_HEAT_Pin
Definition: main.h:109
TIM_Base_InitTypeDef::RepetitionCounter
uint32_t RepetitionCounter
Definition: stm32f4xx_hal_tim.h:78
MSGBOX_RES_CUSTOM2
#define MSGBOX_RES_CUSTOM2
Definition: window_msgbox.h:51
USBD_LL_DataOutStage
USBD_StatusTypeDef USBD_LL_DataOutStage(USBD_HandleTypeDef *pdev, uint8_t epnum, uint8_t *pdata)
USBD_DataOutStage Handle data OUT stage.
Definition: usbd_core.c:299
DMA_MINC_ENABLE
#define DMA_MINC_ENABLE
Definition: stm32f4xx_hal_dma.h:265
USBH_LL_GetToggle
uint8_t USBH_LL_GetToggle(USBH_HandleTypeDef *phost, uint8_t pipe)
Return the current toggle of a pipe.
Definition: usbh_conf.c:583
HAL_TIM_Base_MspInit
void HAL_TIM_Base_MspInit(TIM_HandleTypeDef *htim_base)
TIM_Base MSP Initialization This function configures the hardware resources used in this example.
Definition: stm32f4xx_hal_msp.c:386
USBH_MSC_GetLUNInfo
USBH_StatusTypeDef USBH_MSC_GetLUNInfo(USBH_HandleTypeDef *phost, uint8_t lun, MSC_LUNTypeDef *info)
USBH_MSC_GetLUNInfo The function return a LUN information.
Definition: usbh_msc.c:676
CMD_MADCTL
#define CMD_MADCTL
Definition: st7789v.c:29
WINDOW_FLG_CAPTURE
#define WINDOW_FLG_CAPTURE
Definition: window.h:29
TIM_BreakDeadTimeConfigTypeDef::DeadTime
uint32_t DeadTime
Definition: stm32f4xx_hal_tim_ex.h:102
WI_DISABLED
Definition: window_menu.h:20
TIM_IT_UPDATE
#define TIM_IT_UPDATE
Definition: stm32f4xx_hal_tim.h:491
window_user_classes
window_class_t * window_user_classes[WINDOW_MAX_USERCLS]
Definition: window.c:40
SPI_NSS_SOFT
#define SPI_NSS_SOFT
Definition: stm32f4xx_hal_spi.h:226
Context::retries
uint8_t retries
Definition: connection.hpp:29
USBD_LL_Stop
USBD_StatusTypeDef USBD_LL_Stop(USBD_HandleTypeDef *pdev)
Stops the low level portion of the device driver.
Definition: usbd_conf.c:386
_USBD_HandleTypeDef
Definition: usbd_def.h:225
FLASH_SCK_Pin
#define FLASH_SCK_Pin
Definition: main.h:171
DMA_InitTypeDef::MemInc
uint32_t MemInc
Definition: stm32f4xx_hal_dma.h:77
png_info_def
Definition: pnginfo.h:55
hdma_usart1_rx
DMA_HandleTypeDef hdma_usart1_rx
Definition: main.c:93
_term_t::cols
uint8_t cols
Definition: term.h:44
SystemInit
void SystemInit(void)
Setup the microcontroller system Initialize the FPU setting, vector table location and External memor...
Definition: system_stm32f4xx.c:166
gui_timer_create_periodical
int8_t gui_timer_create_periodical(uint32_t ms, int16_t win_id)
Definition: gui_timer.c:70
WINDOW_CLS_PROGRESS
#define WINDOW_CLS_PROGRESS
Definition: window.h:20
term_printf
int term_printf(term_t *pt, const char *fmt,...)
Definition: term.c:178
_window_spin_t::step
float step
Definition: window_spin.h:16
USBHFatFS
FATFS USBHFatFS
Definition: fatfs.c:53
USBD_LL_StallEP
USBD_StatusTypeDef USBD_LL_StallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr)
Sets a Stall condition on an endpoint of the Low Level Driver.
Definition: usbd_conf.c:516
_point_ui16_t::y
uint16_t y
Definition: guitypes.h:66
u8_t
uint8_t u8_t
Definition: arch.h:119
TIM_CLOCKSOURCE_INTERNAL
#define TIM_CLOCKSOURCE_INTERNAL
Definition: stm32f4xx_hal_tim.h:565
netmask
ip4_addr_t netmask
Definition: lwip.c:74
_unlink
int _unlink(char *name)
Definition: syscalls.c:153
__HAL_RCC_USART6_CLK_ENABLE
#define __HAL_RCC_USART6_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:594
req_headers
const header_factory_t req_headers[]
Definition: connect.cpp:37
__HAL_RCC_CLEAR_RESET_FLAGS
#define __HAL_RCC_CLEAR_RESET_FLAGS()
Set RMVF bit to clear the reset flags: RCC_FLAG_PINRST, RCC_FLAG_PORRST, RCC_FLAG_SFTRST,...
Definition: stm32f4xx_hal_rcc.h:1225
_USBD_HandleTypeDef::pData
void * pData
Definition: usbd_def.h:248
_window_text_t::padding
padding_ui8_t padding
Definition: window_text.h:21
WINDOW_EVENT_BTN_UP
#define WINDOW_EVENT_BTN_UP
Definition: window.h:39
FileHandler_t::content_type
const char * content_type
Definition: connect.cpp:46
window_show
void window_show(int16_t id)
Definition: window.c:529
USBD_FS_ManufacturerStrDescriptor
uint8_t * USBD_FS_ManufacturerStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length)
Return the manufacturer string descriptor.
Definition: usbd_desc.c:301
Context::find_eoh
size_t find_eoh(const void *data=nullptr, size_t length=0)
Try to find End Of Header (\r \r ) in buffer.
Definition: connection.cpp:39
rect_empty_ui16
static int rect_empty_ui16(rect_ui16_t rc)
Definition: guitypes.h:177
rect_intersect_ui16
rect_ui16_t rect_intersect_ui16(rect_ui16_t rc, rect_ui16_t rc1)
Definition: guitypes.c:37
_window_t
Definition: window.h:76
WINDOW_EVENT_FOCUS0
#define WINDOW_EVENT_FOCUS0
Definition: window.h:42
_window_list_t::list_item
window_list_item_t * list_item
Definition: window_list.h:26
window_get_text
char * window_get_text(int16_t id)
Definition: window.c:352
ESP_RST_Pin
#define ESP_RST_Pin
Definition: main.h:95
window_set_text
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
GPIO_MODE_IT_RISING
#define GPIO_MODE_IT_RISING
Definition: stm32f4xx_hal_gpio.h:143
RCC_OscInitTypeDef::PLL
RCC_PLLInitTypeDef PLL
Definition: stm32f4xx_hal_rcc.h:87
gpio_init
static void gpio_init(uint8_t pin8, uint32_t mode, uint32_t pull, uint32_t speed)
Definition: gpio.h:102
MSGBOX_MSK_CHG
#define MSGBOX_MSK_CHG
Definition: window_msgbox.h:11
__HAL_RCC_SPI2_CLK_ENABLE
#define __HAL_RCC_SPI2_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:500
_window_spin_t::max
float max
Definition: window_spin.h:15
status_prnflow_svg
const uint8_t status_prnflow_svg[]
Definition: status_prnflow_svg.c:3
gui_timer.h
window_class_spin
const window_class_spin_t window_class_spin
Definition: window_spin.c:58
ALIGN_TOP
#define ALIGN_TOP
Definition: guitypes.h:14
st7789v_set_cs
static void st7789v_set_cs(void)
Definition: st7789v.c:107
USBD_INTERFACE_STRING_FS
#define USBD_INTERFACE_STRING_FS
Definition: usbd_desc.c:101
TERM_DEF_ATTR
#define TERM_DEF_ATTR
Definition: term.h:34
_gui_timer_t
Definition: gui_timer.c:18
ADC_ChannelConfTypeDef
Structure definition of ADC channel for regular group.
Definition: stm32f4xx_hal_adc.h:131
GPIO_PIN_3
#define GPIO_PIN_3
Definition: stm32f4xx_hal_gpio.h:105
st7789v_spi_tx_complete
void st7789v_spi_tx_complete(void)
Definition: st7789v.c:927
_font_t::asc_max
char asc_max
Definition: guitypes.h:83
_window_class_t::event
window_event_t * event
Definition: window.h:73
HAL_ADC_Init
HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef *hadc)
UART_InitTypeDef::Mode
uint32_t Mode
Definition: stm32f4xx_hal_uart.h:84
_write
int _write(int file, char *ptr, int len)
Definition: syscalls.c:96
tcpip_input
err_t tcpip_input(struct pbuf *p, struct netif *inp)
Definition: tcpip.c:212
window_menu_t
struct _window_menu_t window_menu_t
Definition: window_menu.h:8
window_create_ptr
int16_t window_create_ptr(int16_t cls_id, int16_t id_parent, rect_ui16_t rect, void *ptr)
Definition: window.c:102
_window_list_t::padding
padding_ui8_t padding
Definition: window_list.h:20
window_set_item_index
void window_set_item_index(int16_t id, int index)
Definition: window.c:598
ff_gen_drv.h
Header for ff_gen_drv.c module.
APPLICATION_IDLE
Definition: usb_host.h:86
ADC_InitTypeDef::DataAlign
uint32_t DataAlign
Definition: stm32f4xx_hal_adc.h:80
USBH_LL_Disconnect
USBH_StatusTypeDef USBH_LL_Disconnect(USBH_HandleTypeDef *phost)
USBH_LL_Disconnect Handle USB Host disconnection event.
Definition: usbh_core.c:854
chrshift
#define chrshift(ptr, size)
Definition: connection.hpp:12
MSGBOX_RES_YES
#define MSGBOX_RES_YES
Definition: window_msgbox.h:44
TIM_COUNTERMODE_UP
#define TIM_COUNTERMODE_UP
Definition: stm32f4xx_hal_tim.h:339
UART_InitTypeDef::BaudRate
uint32_t BaudRate
Definition: stm32f4xx_hal_uart.h:65
undefined
window_menu_item_t undefined
Definition: window_menu.c:21
USBH_OK
Definition: usbh_def.h:304
SPI_InitTypeDef::TIMode
uint32_t TIMode
Definition: stm32f4xx_hal_spi.h:93
MX_I2C1_Init
static void MX_I2C1_Init(void)
I2C1 Initialization Function.
Definition: main.c:382
window_enable
void window_enable(int16_t id)
Definition: window.c:517
window_msgbox_init
void window_msgbox_init(window_msgbox_t *window)
Definition: window_msgbox.c:138
ROPFN_DISABLE
#define ROPFN_DISABLE
Definition: guitypes.h:33
_window_msgbox_t::alignment
uint8_t alignment
Definition: window_msgbox.h:74
USBD_Interface_fops_FS
USBD_CDC_ItfTypeDef USBD_Interface_fops_FS
Definition: usbd_cdc_if.c:174
_fstat
int _fstat(int file, struct stat *st)
Definition: syscalls.c:130
SPI_PHASE_1EDGE
#define SPI_PHASE_1EDGE
Definition: stm32f4xx_hal_spi.h:217
WINDOW_FLG_NUMB_FLOAT2INT
#define WINDOW_FLG_NUMB_FLOAT2INT
Definition: window_numb.h:8
HAL_HCD_HC_NotifyURBChange_Callback
void HAL_HCD_HC_NotifyURBChange_Callback(HCD_HandleTypeDef *hhcd, uint8_t chnum, HCD_URBStateTypeDef urb_state)
Notify URB state change callback.
Definition: usbh_conf.c:176
MSGBOX_MSK_IDX
#define MSGBOX_MSK_IDX
Definition: window_msgbox.h:10
WINDOW_CLS_FRAME
#define WINDOW_CLS_FRAME
Definition: window.h:9
RCC_CLOCKTYPE_SYSCLK
#define RCC_CLOCKTYPE_SYSCLK
Definition: stm32f4xx_hal_rcc.h:206
IWDG_HandleTypeDef::Instance
IWDG_TypeDef * Instance
Definition: stm32f4xx_hal_iwdg.h:78
_font_t::bpr
uint8_t bpr
Definition: guitypes.h:79
I2C_InitTypeDef::GeneralCallMode
uint32_t GeneralCallMode
Definition: stm32f4xx_hal_i2c.h:83
ADC_InitTypeDef::Resolution
uint32_t Resolution
Definition: stm32f4xx_hal_adc.h:78
netif
Definition: netif.h:225
jogwheel_changed
uint8_t jogwheel_changed
Definition: jogwheel.c:14
USBD_CDC
USBD_ClassTypeDef USBD_CDC
Definition: usbd_cdc.c:159
void
void
Definition: png.h:1083
IResponse
Definition: lwsapi_app.hpp:218
window_msgbox_t
struct _window_msgbox_t window_msgbox_t
_display_t::init
display_init_t * init
Definition: display.h:27
st7789v_cmd_colmod
void st7789v_cmd_colmod(uint8_t colmod)
Definition: st7789v.c:255
WI_SWITCH
Definition: window_menu.h:16
term_clear
void term_clear(term_t *pt)
Definition: term.c:34
_window_progress_t::max
float max
Definition: window_progress.h:27
__DMA_HandleTypeDef
DMA handle Structure definition.
Definition: stm32f4xx_hal_dma.h:155
window_get_format
char * window_get_format(int16_t id)
Definition: window.c:418
window_class_icon
const window_class_icon_t window_class_icon
Definition: window_icon.c:29
TIM_CHANNEL_2
#define TIM_CHANNEL_2
Definition: stm32f4xx_hal_tim.h:423
_term_t::flg
uint16_t flg
Definition: term.h:46
webServerTaskHandle
osThreadId webServerTaskHandle
Definition: main.c:100
E_ENA_Pin
#define E_ENA_Pin
Definition: main.h:139
TIM_OSSR_DISABLE
#define TIM_OSSR_DISABLE
Definition: stm32f4xx_hal_tim.h:634
stm32f4xx_it.h
This file contains the headers of the interrupt handlers.
DMA_CIRCULAR
#define DMA_CIRCULAR
Definition: stm32f4xx_hal_dma.h:298
CMD_INVON
#define CMD_INVON
Definition: st7789v.c:21
USBD_SERIALNUMBER_STRING_FS
#define USBD_SERIALNUMBER_STRING_FS
Definition: usbd_desc.c:99
window_draw_children
void window_draw_children(int16_t id)
Definition: window.c:284
st7789v_buff
uint8_t st7789v_buff[ST7789V_COLS *2 *16]
Definition: st7789v.c:82
under_construction_gif
const uint8_t under_construction_gif[]
Definition: under_construction_gif.c:3
window_menu_draw
void window_menu_draw(window_menu_t *window)
Definition: window_menu.c:74
window_list_item
void window_list_item(window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *pid_icon)
Definition: window_list.c:19
hpcd_USB_OTG_FS
PCD_HandleTypeDef hpcd_USB_OTG_FS
Definition: usbd_conf.c:69
window_term_draw
static void window_term_draw(window_term_t *window)
Definition: window_term.c:46
gui_loop_cb
gui_loop_cb_t * gui_loop_cb
Definition: gui.c:32
USBH_MSC_UnitIsReady
uint8_t USBH_MSC_UnitIsReady(USBH_HandleTypeDef *phost, uint8_t lun)
USBH_MSC_UnitIsReady The function check whether a LUN is ready.
Definition: usbh_msc.c:655
_gui_defaults_t::color_back
color_t color_back
Definition: guitypes.h:107
_window_class_icon_t
Definition: window_icon.h:18
WINDOW_CLS_MENU
#define WINDOW_CLS_MENU
Definition: window.h:18
window_class_menu
const window_class_menu_t window_class_menu
Definition: window_menu.c:319
window_msgbox_step
void window_msgbox_step(window_msgbox_t *window, int step)
Definition: window_msgbox.c:113
TIM_CHANNEL_4
#define TIM_CHANNEL_4
Definition: stm32f4xx_hal_tim.h:425
_font_t::w
uint8_t w
Definition: guitypes.h:77
_st7789v_config_t::madctl
uint8_t madctl
Definition: st7789v.h:26
HAL_GPIO_Init
void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
_screen_t::done
screen_done_t * done
Definition: screen.h:22
png_get_rowbytes
size_t PNGAPI png_get_rowbytes(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:30
Context::~Context
~Context()
Definition: connection.hpp:70
window_class_frame
const window_class_frame_t window_class_frame
Definition: window_frame.c:65
HAL_SPI_Receive_DMA
HAL_StatusTypeDef HAL_SPI_Receive_DMA(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size)
header_factory_t::key
const char * key
Definition: connect.cpp:33
WI_SPIN_t::value
int32_t value
Definition: window_menu.h:37
_window_msgbox_t::font
font_t * font
Definition: window_msgbox.h:71
WINDOW_EVENT_FOCUS1
#define WINDOW_EVENT_FOCUS1
Definition: window.h:43
DMA_InitTypeDef::Channel
uint32_t Channel
Definition: stm32f4xx_hal_dma.h:67
WI_SPIN_FL_t::value
float value
Definition: window_menu.h:44
window_class_text
const window_class_text_t window_class_text
Definition: window_text.c:27
lwsapi.h
window_msgbox_event
void window_msgbox_event(window_msgbox_t *window, uint8_t event, void *param)
Definition: window_msgbox.c:235
gui_init
void gui_init(void)
Definition: gui.c:43
Context::pcb
struct tcp_pcb * pcb
Definition: connection.hpp:28
display_helper.h
_times
int _times(struct tms *buf)
Definition: syscalls.c:158
window_set_focus
void window_set_focus(int16_t id)
Definition: window.c:480
RCC_PLLInitTypeDef::PLLState
uint32_t PLLState
Definition: stm32f4xx_hal_rcc_ex.h:65
RCC_ClkInitTypeDef::APB1CLKDivider
uint32_t APB1CLKDivider
Definition: stm32f4xx_hal_rcc.h:104
_window_list_t::alignment
uint8_t alignment
Definition: window_list.h:21
Context::Context
Context(struct tcp_pcb *pcb)
Definition: connection.hpp:56
USBD_LL_SOF
USBD_StatusTypeDef USBD_LL_SOF(USBD_HandleTypeDef *pdev)
USBD_SOF Handle SOF event.
Definition: usbd_core.c:491
HAL_NVIC_SetPriority
void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
_window_menu_t::mode
uint8_t mode
Definition: window_menu.h:95
button_draw
void button_draw(rect_ui16_t rc_btn, const char *text, font_t *pf, int is_selected)
Definition: button_draw.c:5
RES_OK
Definition: onboard_sd.h:23
GPIO_PIN_14
#define GPIO_PIN_14
Definition: stm32f4xx_hal_gpio.h:116
window_dispatch_event
void window_dispatch_event(window_t *window, uint8_t event, void *param)
Definition: window.c:797
_st7789v_config_t::brightness
uint8_t brightness
Definition: st7789v.h:29
st7789v_init
void st7789v_init(void)
Definition: st7789v.c:327
netif::name
char name[2]
Definition: netif.h:307
window_set_capture
void window_set_capture(int16_t id)
Definition: window.c:500
TIM_OCNIDLESTATE_RESET
#define TIM_OCNIDLESTATE_RESET
Definition: stm32f4xx_hal_tim.h:414
GPIO_NOPULL
#define GPIO_NOPULL
Definition: stm32f4xx_hal_gpio.h:170
lwip.h
_st7789v_config_t::pinRST
uint8_t pinRST
Definition: st7789v.h:23
ADC_InitTypeDef::ClockPrescaler
uint32_t ClockPrescaler
Definition: stm32f4xx_hal_adc.h:75
rect_align_ui16
rect_ui16_t rect_align_ui16(rect_ui16_t rc, rect_ui16_t rc1, uint8_t align)
Definition: guitypes.c:64
_jogwheel_config_t::flg
uint8_t flg
Definition: jogwheel.h:24
MSGBOX_BTN_CUSTOM1
#define MSGBOX_BTN_CUSTOM1
Definition: window_msgbox.h:26
DONE
Definition: connect.cpp:79
gui_run
void gui_run(void)
Definition: guimain.c:107
jogwheel_button_down
uint16_t jogwheel_button_down
Definition: jogwheel.c:13
UART_HandleTypeDef::Instance
USART_TypeDef * Instance
Definition: stm32f4xx_hal_uart.h:160
HAL_GPIO_WritePin
void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
icon_meas
point_ui16_t icon_meas(const uint8_t *pi)
Definition: guitypes.c:155
WaitResponse::WaitResponse
WaitResponse(size_t request_length)
Definition: connect.cpp:163
LwIPClass
Definition: lwsapi_app.hpp:56
st7789v_draw_png
void st7789v_draw_png(point_ui16_t pt, FILE *pf)
Definition: st7789v.c:883
MSGBOX_RES_CUSTOM0
#define MSGBOX_RES_CUSTOM0
Definition: window_msgbox.h:49
HAL_UART_Init
HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
Context::response
IResponse::unique_ptr_t response
Definition: connection.hpp:37
TIM_HandleTypeDef::Instance
TIM_TypeDef * Instance
Definition: stm32f4xx_hal_tim.h:289
_USBD_CDC_Itf
Definition: usbd_cdc.h:101
RX1_Pin
#define RX1_Pin
Definition: main.h:195
_window_menu_t::padding
padding_ui8_t padding
Definition: window_menu.h:89
ADC_ChannelConfTypeDef::SamplingTime
uint32_t SamplingTime
Definition: stm32f4xx_hal_adc.h:137
_window_class_t::init
window_init_t * init
Definition: window.h:70
Context::free_buffer
void free_buffer()
Definition: connection.hpp:94
uart6slave
uartslave_t uart6slave
Definition: main.c:149
_gui_defaults_t::btn_spacing
uint8_t btn_spacing
Definition: guitypes.h:115
_padding_ui8_t
Definition: guitypes.h:86
term_set_attr_at
void term_set_attr_at(term_t *pt, uint8_t col, uint8_t row, uint8_t attr)
Definition: term.c:80
create_custom_upload_command_CDC.env
env
Definition: create_custom_upload_command_CDC.py:23
USBD_Init
USBD_StatusTypeDef USBD_Init(USBD_HandleTypeDef *pdev, USBD_DescriptorsTypeDef *pdesc, uint8_t id)
USBD_Init Initializes the device stack and load the class driver.
Definition: usbd_core.c:96
TIM_COUNTERMODE_DOWN
#define TIM_COUNTERMODE_DOWN
Definition: stm32f4xx_hal_tim.h:340
USBH_LL_IncTimer
void USBH_LL_IncTimer(USBH_HandleTypeDef *phost)
USBH_LL_IncTimer Increment Host Timer tick.
Definition: usbh_core.c:801
osWaitForever
#define osWaitForever
wait forever timeout value
Definition: cmsis_os.h:230
window_child_count
int window_child_count(int16_t id)
Definition: window.c:230
if
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
GPIO_SPEED_FREQ_VERY_HIGH
#define GPIO_SPEED_FREQ_VERY_HIGH
Definition: stm32f4xx_hal_gpio.h:161
HAL_SPI_Init
HAL_StatusTypeDef HAL_SPI_Init(SPI_HandleTypeDef *hspi)
ROPFN_SWAPBW
#define ROPFN_SWAPBW
Definition: guitypes.h:32
DMA_InitTypeDef::Mode
uint32_t Mode
Definition: stm32f4xx_hal_dma.h:86
CDC_SET_CONTROL_LINE_STATE
#define CDC_SET_CONTROL_LINE_STATE
Definition: usbd_cdc.h:78
USBH_SPEED_HIGH
Definition: usbh_def.h:319
term_write_control_char
void term_write_control_char(term_t *pt, uint8_t ch)
Definition: term.c:146
USBD_LL_Transmit
USBD_StatusTypeDef USBD_LL_Transmit(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t size)
Transmits data over an endpoint.
Definition: usbd_conf.c:630
I2C_InitTypeDef::OwnAddress1
uint32_t OwnAddress1
Definition: stm32f4xx_hal_i2c.h:71
window_prev
int16_t window_prev(int16_t id)
Definition: window.c:180
TIM_CHANNEL_1
#define TIM_CHANNEL_1
Definition: stm32f4xx_hal_tim.h:422
FS_Desc
USBD_DescriptorsTypeDef FS_Desc
Definition: usbd_desc.c:160
gui_invalidate
void gui_invalidate(void)
Definition: gui.c:66
st7789v_inversion_on
void st7789v_inversion_on(void)
window_class_menu
const window_class_menu_t window_class_menu
Definition: window_menu.c:319
DSTATUS
BYTE DSTATUS
Definition: onboard_sd.h:19
USBD_MANUFACTURER_STRING
#define USBD_MANUFACTURER_STRING
Definition: usbd_desc.c:96
st7789v_brightness_get
uint8_t st7789v_brightness_get(void)
_window_menu_t::src_event
uint8_t src_event
Definition: window_menu.h:98
TIM_AUTOMATICOUTPUT_DISABLE
#define TIM_AUTOMATICOUTPUT_DISABLE
Definition: stm32f4xx_hal_tim.h:680
createSpeedLookupTable.a
list a
Definition: createSpeedLookupTable.py:29
USBH_Driver
const Diskio_drvTypeDef USBH_Driver
Definition: usbh_diskio.c:77
screen_get_curr
screen_t * screen_get_curr(void)
Definition: screen.c:114
ADC_HandleTypeDef
ADC handle Structure definition.
Definition: stm32f4xx_hal_adc.h:208
Environment
Environment struct like as WSGI environment as possible could be.
Definition: lwsapi_app.hpp:181
UserTxBufferFS
uint8_t UserTxBufferFS[APP_TX_DATA_SIZE]
Definition: usbd_cdc_if.c:131
WI_SPIN_FL_t::prt_format
const char * prt_format
Definition: window_menu.h:45
SPI_POLARITY_LOW
#define SPI_POLARITY_LOW
Definition: stm32f4xx_hal_spi.h:208
__HAL_RCC_I2C1_CLK_ENABLE
#define __HAL_RCC_I2C1_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:514
WINDOW_CLS_MSGBOX
#define WINDOW_CLS_MSGBOX
Definition: window.h:19
WI_SPIN_FL
Definition: window_menu.h:18
USBD_PRODUCT_STRING_FS
#define USBD_PRODUCT_STRING_FS
Definition: usbd_desc.c:98
WINDOW_EVENT_CHANGING
#define WINDOW_EVENT_CHANGING
Definition: window.h:48
_window_menu_item_t::label
char label[23]
Definition: window_menu.h:59
JOGWHEEL_FLG_INV_DIR
#define JOGWHEEL_FLG_INV_DIR
Definition: jogwheel.h:8
window_focused_ptr
window_t * window_focused_ptr
Definition: window.c:19
st7789v.h
_window_menu_t::menu_items
window_menu_items_t * menu_items
Definition: window_menu.h:96
I2C_HandleTypeDef::Init
I2C_InitTypeDef Init
Definition: stm32f4xx_hal_i2c.h:168
USBD_LL_Reset
USBD_StatusTypeDef USBD_LL_Reset(USBD_HandleTypeDef *pdev)
USBD_LL_Reset Handle Reset event.
Definition: usbd_core.c:415
status_z_axis_svg.c
eth0
struct netif eth0
Definition: lwip.c:72
HAL_PCD_MspDeInit
void HAL_PCD_MspDeInit(PCD_HandleTypeDef *pcdHandle)
Definition: usbd_conf.c:124
USBH_LL_GetURBState
USBH_URBStateTypeDef USBH_LL_GetURBState(USBH_HandleTypeDef *phost, uint8_t pipe)
Get a URB state from the low level driver.
Definition: usbh_conf.c:519
HTTP_200
const char * HTTP_200
Definition: http_states.c:3
term_get_attr
uint8_t term_get_attr(term_t *pt)
Definition: term.c:91
__ALIGN_END
__ALIGN_BEGIN uint8_t USBD_FS_DeviceDesc[USB_LEN_DEV_DESC] __ALIGN_END
Definition: usbd_desc.c:172
window_event_t
void() window_event_t(void *window, uint8_t event, void *param)
Definition: window.h:58
_rect_ui16_t
Definition: guitypes.h:69
st7789v_clr_rs
static void st7789v_clr_rs(void)
Definition: st7789v.c:122
display
display_t * display
Definition: display.c:6
USBD_BUSY
Definition: usbd_def.h:196
ESP_RX_Pin
#define ESP_RX_Pin
Definition: main.h:153
CDC_Transmit_FS
uint8_t CDC_Transmit_FS(uint8_t *Buf, uint16_t Len)
CDC_Transmit_FS Data to send over USB IN endpoint are sent over CDC interface through this function.
Definition: usbd_cdc_if.c:317
netif_set_default
void netif_set_default(struct netif *netif)
Definition: netif.c:604
USBD_SPEED_HIGH
Definition: usbd_def.h:188
gui_timer_t
struct _gui_timer_t gui_timer_t
StartIdleTask
void StartIdleTask(void const *argument)
Function implementing the idleTask thread.
Definition: main.c:997
window_term_t
struct _window_term_t window_term_t
TIM3_default_Period
#define TIM3_default_Period
Definition: timer_defaults.h:13
__HAL_RCC_DMA2_CLK_ENABLE
#define __HAL_RCC_DMA2_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:437
WI_LABEL
Definition: window_menu.h:14
Error_Handler
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition: main.c:1057
render_text_align
void render_text_align(rect_ui16_t rc, const char *text, font_t *font, color_t clr0, color_t clr1, padding_ui8_t padding, uint16_t flags)
Definition: display_helper.c:6
JOGWHEEL_FLG_INV_E12
#define JOGWHEEL_FLG_INV_E12
Definition: jogwheel.h:10
defaultTaskHandle
osThreadId defaultTaskHandle
Definition: main.c:97
htim6
TIM_HandleTypeDef htim6
Definition: stm32f4xx_hal_timebase_tim.c:49
window_count
uint16_t window_count
Definition: window.c:17
_window_menu_item_t
Definition: window_menu.h:58
sio_tryread
u32_t sio_tryread(sio_fd_t fd, u8_t *data, u32_t len)
HAL_DMA_IRQHandler
void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
E_DIAG_GPIO_Port
#define E_DIAG_GPIO_Port
Definition: main.h:170
USBD_CDC_HandleTypeDef
Definition: usbd_cdc.h:111
header_factory_t::factory
const header_factory_fn factory
Definition: connect.cpp:34
ALIGN_LEFT
#define ALIGN_LEFT
Definition: guitypes.h:10
DMA_MDATAALIGN_BYTE
#define DMA_MDATAALIGN_BYTE
Definition: stm32f4xx_hal_dma.h:286
I2C_DUALADDRESS_DISABLE
#define I2C_DUALADDRESS_DISABLE
Definition: stm32f4xx_hal_i2c.h:248
_USBD_HandleTypeDef::id
uint8_t id
Definition: usbd_def.h:227
ADC_HandleTypeDef::Init
ADC_InitTypeDef Init
Definition: stm32f4xx_hal_adc.h:212
MASK_CTRLD_BCTRL
#define MASK_CTRLD_BCTRL
Definition: st7789v.c:49
uint8_t
const uint8_t[]
Definition: 404_html.c:3
_window_class_t
Definition: window.h:67
IHeader::next
IHeader * next
Definition: lwsapi_app.hpp:73
hdma_usart1_rx
DMA_HandleTypeDef hdma_usart1_rx
Definition: main.c:93
ADC_EXTERNALTRIGCONVEDGE_NONE
#define ADC_EXTERNALTRIGCONVEDGE_NONE
Definition: stm32f4xx_hal_adc.h:295
_dbg
#define _dbg(...)
Definition: dbg.h:50
SystemClock_Config
void SystemClock_Config(void)
System Clock Configuration.
Definition: main.c:295
png_struct_def
Definition: pngstruct.h:143
app_run
void app_run(void)
Definition: appmain.cpp:62
index_css
const uint8_t index_css[]
Definition: index_css.c:3
RCC_CLOCKTYPE_HCLK
#define RCC_CLOCKTYPE_HCLK
Definition: stm32f4xx_hal_rcc.h:207
netif_link_callback
void netif_link_callback(struct netif *eth)
Definition: lwip.c:79
IResponse::unique_ptr_t
std::unique_ptr< IResponse > unique_ptr_t
Definition: lwsapi_app.hpp:237
SystemClock_Config
void SystemClock_Config(void)
System Clock Configuration.
Definition: variant.cpp:208
CMD_GAMMA_SET
#define CMD_GAMMA_SET
Definition: st7789v.c:22
png_get_image_width
png_uint_32 PNGAPI png_get_image_width(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:52
Y_STEP_Pin
#define Y_STEP_Pin
Definition: main.h:145
LAST_MODIFY
#define LAST_MODIFY
Definition: connect.cpp:15
window_menu_inc
void window_menu_inc(window_menu_t *window, int dif)
Definition: window_menu.c:281
resource_ptr
const uint8_t * resource_ptr(uint16_t id)
Definition: guitypes.c:168
HAL_TIM_PWM_Init
HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim)
st7789v_draw_icon
void st7789v_draw_icon(point_ui16_t pt, uint16_t id_res, color_t clr0, uint8_t rop)
Definition: st7789v.c:646
DMA_FIFOMODE_DISABLE
#define DMA_FIFOMODE_DISABLE
Definition: stm32f4xx_hal_dma.h:320
Tacho_FAN0
uint32_t Tacho_FAN0
Definition: main.c:152
HAL_TIM_IRQHandler
void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
USBH_status
DSTATUS USBH_status(BYTE)
Gets Disk Status.
Definition: usbh_diskio.c:111
WINDOW_FLG_DISABLED
#define WINDOW_FLG_DISABLED
Definition: window.h:30
display
display_t * display
Definition: display.c:6
DMA2_Stream2_IRQHandler
void DMA2_Stream2_IRQHandler(void)
This function handles DMA2 stream2 global interrupt.
Definition: stm32f4xx_it.c:258
USBH_LL_Init
USBH_StatusTypeDef USBH_LL_Init(USBH_HandleTypeDef *phost)
Initialize the low level portion of the host driver.
Definition: usbh_conf.c:191
Message_t
Message which must be returned from coroutine generator.
Definition: lwsapi_app.hpp:211
window_get_color_text
color_t window_get_color_text(int16_t id)
Definition: window.c:469
window_frame.h
_rect_ui16_t::h
uint16_t h
Definition: guitypes.h:73
IHeader::length
virtual size_t length() const =0
ALIGN_VCENTER
#define ALIGN_VCENTER
Definition: guitypes.h:15
USBD_CDC_TransmitPacket
uint8_t USBD_CDC_TransmitPacket(USBD_HandleTypeDef *pdev)
USBD_CDC_DataOut Data received on non-control Out endpoint.
Definition: usbd_cdc.c:846
_screen_t
Definition: screen.h:18
_window_t::rect
rect_ui16_t rect
Definition: window.h:101
ERR_OK
Definition: err.h:63
hdma_usart6_rx
DMA_HandleTypeDef hdma_usart6_rx
Definition: main.c:95
USBD_Interface_fops_FS
USBD_CDC_ItfTypeDef USBD_Interface_fops_FS
Definition: usbd_cdc_if.c:174
HAL_ResumeTick
void HAL_ResumeTick(void)
Resume Tick increment.
Definition: stm32f4xx_hal_timebase_tim.c:125
DMA_CHANNEL_5
#define DMA_CHANNEL_5
Definition: stm32f4xx_hal_dma.h:223
TIM_Base_InitTypeDef::Prescaler
uint32_t Prescaler
Definition: stm32f4xx_hal_tim.h:65
Context::PAYLOAD
Definition: connection.hpp:25
MX_LWIP_Init
void MX_LWIP_Init(void)
Definition: lwip.c:95
window_user_class_count
uint16_t window_user_class_count
Definition: window.c:42
USBD_FS_ConfigStrDescriptor
uint8_t * USBD_FS_ConfigStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length)
Return the configuration string descriptor.
Definition: usbd_desc.c:327
__HAL_RCC_USART1_CLK_ENABLE
#define __HAL_RCC_USART1_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:587
WaitResponse::close
bool close
Definition: connect.cpp:161
MSGBOX_RES_OK
#define MSGBOX_RES_OK
Definition: window_msgbox.h:46
netif_add
struct netif * netif_add(struct netif *netif, void *state, netif_init_fn init, netif_input_fn input)
Definition: netif.c:241
_window_frame_t::win
window_t win
Definition: window_frame.h:19
window_class_list
const window_class_list_t window_class_list
Definition: window_list.c:149
WINDOW_CLS_ICON
#define WINDOW_CLS_ICON
Definition: window.h:12
MemManage_Handler
void MemManage_Handler(void)
This function handles Memory management fault.
Definition: stm32f4xx_it.c:121
SPI_InitTypeDef::FirstBit
uint32_t FirstBit
Definition: stm32f4xx_hal_spi.h:90
TIM1_default_Period
#define TIM1_default_Period
Definition: timer_defaults.h:11
APBPrescTable
const uint8_t APBPrescTable[8]
Definition: system_stm32f4xx.c:138
SCSI_ASC_LOGICAL_UNIT_NOT_READY
#define SCSI_ASC_LOGICAL_UNIT_NOT_READY
Definition: usbh_msc_scsi.h:129
main
int main(void)
The application entry point.
Definition: main.c:161
HAL_NVIC_EnableIRQ
void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
Context::end_of_header
size_t end_of_header
Definition: connection.hpp:36
_window_menu_t::color_back
color_t color_back
Definition: window_menu.h:85
err_t
s8_t err_t
Definition: err.h:57
MINIMAL_REQUEST_LENGTH
#define MINIMAL_REQUEST_LENGTH
Definition: connection.hpp:8
USBH_initialize
DSTATUS USBH_initialize(BYTE)
Initializes a Drive.
Definition: usbh_diskio.c:100
_window_msgbox_t::id_icon
uint16_t id_icon
Definition: window_msgbox.h:76
SCSI_ASC_NOT_READY_TO_READY_CHANGE
#define SCSI_ASC_NOT_READY_TO_READY_CHANGE
Definition: usbh_msc_scsi.h:134
LCD_RST_Pin
#define LCD_RST_Pin
Definition: main.h:155
TIM_OC_InitTypeDef::Pulse
uint32_t Pulse
Definition: stm32f4xx_hal_tim.h:97
USBH_StatusTypeDef
USBH_StatusTypeDef
Definition: usbh_def.h:302
USBD_LL_PrepareReceive
USBD_StatusTypeDef USBD_LL_PrepareReceive(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t size)
Prepares an endpoint for reception.
Definition: usbd_conf.c:664
SPI_InitTypeDef::DataSize
uint32_t DataSize
Definition: stm32f4xx_hal_spi.h:71
_window_t::f_capture
uint32_t f_capture
Definition: window.h:90
USB_DEVICE_CAPABITY_TYPE
#define USB_DEVICE_CAPABITY_TYPE
Definition: usbd_def.h:111
FileHandler_t::file_name
const char * file_name
Definition: connect.cpp:45
window_set_min
void window_set_min(int16_t id, float min)
Definition: window.c:682
resource_count
const uint16_t resource_count
USBD_VID
#define USBD_VID
Definition: usbd_desc.c:94
_display_t::draw_rect
display_draw_rect_t * draw_rect
Definition: display.h:32
BufferResponse::buffer
const uint8_t * buffer() const
return internal string buffer as array of bytes
Definition: connect.cpp:141
window_invalidate_children
void window_invalidate_children(int16_t id)
Definition: window.c:320
TIM3_default_Prescaler
#define TIM3_default_Prescaler
Definition: timer_defaults.h:12
RCC_ClkInitTypeDef::AHBCLKDivider
uint32_t AHBCLKDivider
Definition: stm32f4xx_hal_rcc.h:101
delay
void delay(uint32_t ms)
Definition: wiring_time.c:42
GET_SECTOR_SIZE
#define GET_SECTOR_SIZE
Definition: onboard_sd.h:64
TIM_OC_InitTypeDef::OCNIdleState
uint32_t OCNIdleState
Definition: stm32f4xx_hal_tim.h:116
under_construction_gif.c
SPI_MODE_MASTER
#define SPI_MODE_MASTER
Definition: stm32f4xx_hal_spi.h:181
DWORD
unsigned long DWORD
Definition: onboard_sd.h:15
MSGBOX_BTN_CUSTOM3
#define MSGBOX_BTN_CUSTOM3
Definition: window_msgbox.h:28
lwsapi_free
#define lwsapi_free(arg)
Definition: lwsapi_app.hpp:44
window_frame_event
void window_frame_event(window_frame_t *window, uint8_t event, void *param)
Definition: window_frame.c:27
__SPI_HandleTypeDef::Init
SPI_InitTypeDef Init
Definition: stm32f4xx_hal_spi.h:124
MX_SPI3_Init
static void MX_SPI3_Init(void)
SPI3 Initialization Function.
Definition: main.c:475
UART_InitTypeDef::HwFlowCtl
uint32_t HwFlowCtl
Definition: stm32f4xx_hal_uart.h:87
term_set_attr
void term_set_attr(term_t *pt, uint8_t attr)
Definition: term.c:97
SystemCoreClockUpdate
void SystemCoreClockUpdate(void)
Update SystemCoreClock variable according to Clock Register Values. The SystemCoreClock variable cont...
Definition: system_stm32f4xx.c:238
WINDOW_CLS_TEXT
#define WINDOW_CLS_TEXT
Definition: window.h:10
TIM_OC_InitTypeDef::OCMode
uint32_t OCMode
Definition: stm32f4xx_hal_tim.h:94
CMD_RASET
#define CMD_RASET
Definition: st7789v.c:26
GUI_DELAY_MAX
#define GUI_DELAY_MAX
Definition: gui.c:74
usbd_cdc_if.h
: Header for usbd_cdc_if.c file.
FRESULT
FRESULT
Definition: ff.h:214
USBH_Start
USBH_StatusTypeDef USBH_Start(USBH_HandleTypeDef *phost)
USBH_Start Start the USB Host Core.
Definition: usbh_core.c:333
st7789v_spi_wr_bytes
void st7789v_spi_wr_bytes(uint8_t *pb, uint16_t size)
Definition: st7789v.c:167
THERM_0_GPIO_Port
#define THERM_0_GPIO_Port
Definition: main.h:98
USBH_LL_SetToggle
USBH_StatusTypeDef USBH_LL_SetToggle(USBH_HandleTypeDef *phost, uint8_t pipe, uint8_t toggle)
Set toggle for a pipe.
Definition: usbh_conf.c:564
display.h
RCC_OSCILLATORTYPE_HSE
#define RCC_OSCILLATORTYPE_HSE
Definition: stm32f4xx_hal_rcc.h:125
window_spin_init
void window_spin_init(window_spin_t *window)
Definition: window_spin.c:12
UART_InitTypeDef::StopBits
uint32_t StopBits
Definition: stm32f4xx_hal_uart.h:74
_window_menu_t::color_disabled
color_t color_disabled
Definition: window_menu.h:87
screen_stack
int16_t screen_stack[SCREEN_MAX_HISTORY]
Definition: screen.c:15
jogwheel_encoder_min
int32_t jogwheel_encoder_min
Definition: jogwheel.c:11
tcp.h
RCC_SYSCLK_DIV1
#define RCC_SYSCLK_DIV1
Definition: stm32f4xx_hal_rcc.h:243
PNG_LIBPNG_VER_STRING
#define PNG_LIBPNG_VER_STRING
Definition: png.h:280
hdma_usart6_rx
DMA_HandleTypeDef hdma_usart6_rx
Definition: main.c:95
APP_TX_DATA_SIZE
#define APP_TX_DATA_SIZE
Definition: usbd_cdc_if.c:101
USBH_RegisterClass
USBH_StatusTypeDef USBH_RegisterClass(USBH_HandleTypeDef *phost, USBH_ClassTypeDef *pclass)
USBH_RegisterClass Link class driver to Host Core.
Definition: usbh_core.c:199
URI_LENGTH
#define URI_LENGTH
maximum length of request uri
Definition: lwsapi_app.hpp:39
_window_progress_t::min
float min
Definition: window_progress.h:26
__HAL_RCC_GPIOC_CLK_ENABLE
#define __HAL_RCC_GPIOC_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:416
GPIO_PIN_5
#define GPIO_PIN_5
Definition: stm32f4xx_hal_gpio.h:107
st7789v_enable_safe_mode
void st7789v_enable_safe_mode(void)
enable safe mode (direct acces + safe delay)
Definition: st7789v.c:923
osEventSignal
function completed; signal event occurred.
Definition: cmsis_os.h:236
WIO_STEP
#define WIO_STEP
Definition: window_menu.c:7
_window_t::f_visible
uint32_t f_visible
Definition: window.h:85
_window_menu_item_t::type
uint16_t type
Definition: window_menu.h:65
screen_stack_push
void screen_stack_push(int16_t screen_id)
Definition: screen.c:48
_window_class_list_t
Definition: window_list.h:11
index_html
const uint8_t index_html[]
Definition: index_html.c:3
WINDOW_EVENT_CLICK
#define WINDOW_EVENT_CLICK
Definition: window.h:46
ADC_InitTypeDef::NbrOfConversion
uint32_t NbrOfConversion
Definition: stm32f4xx_hal_adc.h:100
MSGBOX_RES_RETRY
#define MSGBOX_RES_RETRY
Definition: window_msgbox.h:42
window_next
int16_t window_next(int16_t id)
Definition: window.c:192
jogwheel.h
window_get_value
float window_get_value(int16_t id)
Definition: window.c:390
window_class_list
const window_class_list_t window_class_list
Definition: window_list.c:149
screen_unregister
screen_t * screen_unregister(int16_t screen_id)
Definition: screen.c:43
USB_FS_P_Pin
#define USB_FS_P_Pin
Definition: main.h:163
window_frame_draw
void window_frame_draw(window_frame_t *window)
Definition: window_frame.c:15
I2C_HandleTypeDef::Instance
I2C_TypeDef * Instance
Definition: stm32f4xx_hal_i2c.h:166
WINDOW_FLG_FOCUSED
#define WINDOW_FLG_FOCUSED
Definition: window.h:27
WINDOW_MAX_WINDOWS
#define WINDOW_MAX_WINDOWS
Definition: window.c:6
ADC_InitTypeDef::EOCSelection
uint32_t EOCSelection
Definition: stm32f4xx_hal_adc.h:90
resource_table
const resource_entry_t resource_table[]
_resource_entry_t::size
const uint16_t size
Definition: guitypes.h:103
USBD_CDC_RegisterInterface
uint8_t USBD_CDC_RegisterInterface(USBD_HandleTypeDef *pdev, USBD_CDC_ItfTypeDef *fops)
USBD_CDC_RegisterInterface.
Definition: usbd_cdc.c:790
_gui_timer_t::win_id
int16_t win_id
Definition: gui_timer.c:29
HAL_PCD_DataOutStageCallback
void HAL_PCD_DataOutStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum)
Data Out stage callback.
Definition: usbd_conf.c:162
sio_open
sio_fd_t sio_open(u8_t devnum)
USBH_MSC_CLASS
#define USBH_MSC_CLASS
Definition: usbh_msc.h:173
FileHandler_t
File handler structure.
Definition: connect.cpp:44
main.h
: Header for main.c file. This file contains the common defines of the application.
_565_COLOR
#define _565_COLOR(clr)
Definition: st7789v.c:68
png_init_io
void PNGAPI png_init_io(png_structrp png_ptr, png_FILE_p fp)
Definition: png.c:703
_window_menu_t::index
int index
Definition: window_menu.h:93
usbh_diskio.h
Header for usbh_diskio.c module.
Len
#define Len
Definition: deflate.h:82
ADC_InitTypeDef::DiscontinuousConvMode
uint32_t DiscontinuousConvMode
Definition: stm32f4xx_hal_adc.h:103
png_read_info
void PNGAPI png_read_info(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngread.c:92
_window_t::event
window_event_t * event
Definition: window.h:102
USBD_IDX_SERIAL_STR
#define USBD_IDX_SERIAL_STR
Definition: usbd_def.h:69
gui_get_menu_timeout_id
int8_t gui_get_menu_timeout_id(void)
Definition: gui_timer.c:147
st7789v_read_ctrl
uint8_t st7789v_read_ctrl(void)
Error_Handler
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition: main.c:1057
htim3
TIM_HandleTypeDef htim3
Definition: main.c:87
png_alloc_size_t
size_t png_alloc_size_t
Definition: pngconf.h:557
ST7789V_FLG_DMA
#define ST7789V_FLG_DMA
Definition: st7789v.h:9
FR_OK
Definition: ff.h:215
CMD_COLMOD
#define CMD_COLMOD
Definition: st7789v.c:32
stm32f4xx_hal.h
This file contains all the functions prototypes for the HAL module driver.
window_create_ptr
int16_t window_create_ptr(int16_t cls_id, int16_t id_parent, rect_ui16_t rect, void *ptr)
Definition: window.c:102
status_filament_svg.c
Y_DIR_Pin
#define Y_DIR_Pin
Definition: main.h:143
MIN
#define MIN(a, b)
Definition: window_menu.c:9
ADC_InitTypeDef::ExternalTrigConvEdge
uint32_t ExternalTrigConvEdge
Definition: stm32f4xx_hal_adc.h:114
ST7789V_ROWS
#define ST7789V_ROWS
Definition: st7789v.c:15
TIM_MASTERSLAVEMODE_DISABLE
#define TIM_MASTERSLAVEMODE_DISABLE
Definition: stm32f4xx_hal_tim.h:716
hdma_spi2_tx
DMA_HandleTypeDef hdma_spi2_tx
Definition: main.c:83
HAL_ADC_ConfigChannel
HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef *hadc, ADC_ChannelConfTypeDef *sConfig)
window_spin_event
void window_spin_event(window_spin_t *window, uint8_t event, void *param)
Definition: window_spin.c:22
header_factory_fn
IHeader *(* header_factory_fn)(const char *key, const char *value, size_t value_length)
Definition: lwsapi_app.hpp:251
MX_TIM2_Init
static void MX_TIM2_Init(void)
TIM2 Initialization Function.
Definition: main.c:580
window_set_min_max_step
void window_set_min_max_step(int16_t id, float min, float max, float step)
Definition: window.c:767
USBD_LL_DevDisconnected
USBD_StatusTypeDef USBD_LL_DevDisconnected(USBD_HandleTypeDef *pdev)
USBD_DevDisconnected Handle device disconnection event.
Definition: usbd_core.c:542
USBD_MAX_STR_DESC_SIZ
#define USBD_MAX_STR_DESC_SIZ
Definition: usbd_conf.h:99
window_get_icon_id
uint16_t window_get_icon_id(int16_t id)
Definition: window.c:671
__HAL_RCC_I2C1_CLK_DISABLE
#define __HAL_RCC_I2C1_CLK_DISABLE()
Definition: stm32f4xx_hal_rcc.h:540
window_next_enabled
int16_t window_next_enabled(int16_t id)
Definition: window.c:211
COLOR_BLACK
#define COLOR_BLACK
Definition: guitypes.h:40
TIM_OCPOLARITY_HIGH
#define TIM_OCPOLARITY_HIGH
Definition: stm32f4xx_hal_tim.h:386
_window_progress_t::format
char * format
Definition: window_progress.h:24
USB_DEFAULT_BLOCK_SIZE
#define USB_DEFAULT_BLOCK_SIZE
Definition: usbh_diskio.c:59
CDC_Init_FS
static int8_t CDC_Init_FS(void)
Initializes the CDC media low layer over the FS USB IP.
Definition: usbd_cdc_if.c:186
putslave_init
void putslave_init(uartslave_t *pslave)
Definition: putslave.c:619
_window_spin_t::window
window_numb_t window
Definition: window_spin.h:13
sio_read
u32_t sio_read(sio_fd_t fd, u8_t *data, u32_t len)
_window_list_t::index
int index
Definition: window_list.h:24
COLOR_RED_ALERT
#define COLOR_RED_ALERT
Definition: guitypes.h:43
BufferResponse
Universal response class with internal buffer size by BUFFER_RESPONSE_SIZE.
Definition: connect.cpp:119
FileResponse::FileResponse
FileResponse(const FileHandler_t *handler)
Definition: connect.cpp:94
CMD_WRDISBV
#define CMD_WRDISBV
Definition: st7789v.c:34
DMA_PERIPH_TO_MEMORY
#define DMA_PERIPH_TO_MEMORY
Definition: stm32f4xx_hal_dma.h:244
ST7789V_FLG_SAFE
#define ST7789V_FLG_SAFE
Definition: st7789v.h:11
status
static status_t status
Definition: filament_sensor.c:37
UART_InitTypeDef::Parity
uint32_t Parity
Definition: stm32f4xx_hal_uart.h:77
BufferResponse::length
int length() const
return length of internal string buffer
Definition: connect.cpp:146
st7789v_gamma_get
uint8_t st7789v_gamma_get(void)
RCC_OscInitTypeDef::LSIState
uint32_t LSIState
Definition: stm32f4xx_hal_rcc.h:84
gui_timer_reset
void gui_timer_reset(int8_t id)
Definition: gui_timer.c:133
HAL_HCD_Disconnect_Callback
void HAL_HCD_Disconnect_Callback(HCD_HandleTypeDef *hhcd)
SOF callback.
Definition: usbh_conf.c:165
htim14
TIM_HandleTypeDef htim14
Definition: main.c:88
app.h
_wait
int _wait(int *status)
Definition: syscalls.c:148
window_menu_dec
void window_menu_dec(window_menu_t *window, int dif)
Definition: window_menu.c:315
Context::m_position
size_t m_position
Definition: connection.hpp:34
window_numb_draw
void window_numb_draw(window_numb_t *window)
Definition: window_numb.c:17
window_new_id
int16_t window_new_id(window_t *window)
Definition: window.c:44
UART_InitTypeDef::WordLength
uint32_t WordLength
Definition: stm32f4xx_hal_uart.h:71
CMD_WRCTRLD
#define CMD_WRCTRLD
Definition: st7789v.c:36
Context::env
Environment env
Definition: connection.hpp:31
__HAL_RCC_DMA1_CLK_ENABLE
#define __HAL_RCC_DMA1_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:430
_screen_t::init
screen_init_t * init
Definition: screen.h:21
USBD_StatusTypeDef
USBD_StatusTypeDef
Definition: usbd_def.h:194
connect_black_svg
const uint8_t connect_black_svg[]
Definition: connect_black_svg.c:3
GPIO_InitTypeDef::Pin
uint32_t Pin
Definition: stm32f4xx_hal_gpio.h:65
TIM_MasterConfigTypeDef::MasterOutputTrigger
uint32_t MasterOutputTrigger
Definition: stm32f4xx_hal_tim_ex.h:84
HAL_UART_MspDeInit
void HAL_UART_MspDeInit(UART_HandleTypeDef *huart)
UART MSP De-Initialization This function freeze the hardware resources used in this example.
Definition: stm32f4xx_hal_msp.c:683
WaitResponse
Definition: connect.cpp:157
RCC_ClkInitTypeDef::ClockType
uint32_t ClockType
Definition: stm32f4xx_hal_rcc.h:95
window_capture_ptr
window_t * window_capture_ptr
Definition: window.c:21
_window_menu_t::src_param
void * src_param
Definition: window_menu.h:99
__HAL_RCC_PWR_CLK_ENABLE
#define __HAL_RCC_PWR_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:528
_font_t::flg
uint32_t flg
Definition: guitypes.h:80
_display_t::draw_icon
display_draw_icon_t * draw_icon
Definition: display.h:36
GPIO_InitTypeDef::Speed
uint32_t Speed
Definition: stm32f4xx_hal_gpio.h:74
DMA1_Stream4_IRQHandler
void DMA1_Stream4_IRQHandler(void)
This function handles DMA1 stream4 global interrupt.
Definition: stm32f4xx_it.c:179
_resource_entry_t
Definition: guitypes.h:101
DMA_PRIORITY_LOW
#define DMA_PRIORITY_LOW
Definition: stm32f4xx_hal_dma.h:308
st7789v_y
uint16_t st7789v_y
Definition: st7789v.c:78
I2C_NOSTRETCH_DISABLE
#define I2C_NOSTRETCH_DISABLE
Definition: stm32f4xx_hal_i2c.h:266
HAL_NVIC_DisableIRQ
void HAL_NVIC_DisableIRQ(IRQn_Type IRQn)
IWDG_HandleTypeDef::Init
IWDG_InitTypeDef Init
Definition: stm32f4xx_hal_iwdg.h:80
gui_timer_expired
int8_t gui_timer_expired(int8_t id)
Definition: gui_timer.c:139
HAL_PCD_SOFCallback
void HAL_PCD_SOFCallback(PCD_HandleTypeDef *hpcd)
SOF callback.
Definition: usbd_conf.c:181
gpio_set
static void gpio_set(uint8_t pin8, int state)
Definition: gpio.h:98
_screen_t::id
int16_t id
Definition: screen.h:19
RCC_FLAG_IWDGRST
#define RCC_FLAG_IWDGRST
Definition: stm32f4xx_hal_rcc.h:379
_window_msgbox_t::text
const char * text
Definition: window_msgbox.h:77
MX_FATFS_Init
void MX_FATFS_Init(void)
Definition: fatfs.c:60
ST7789V_SIG_SPI_TX
#define ST7789V_SIG_SPI_TX
Definition: guiconfig.h:18
window.h
ADC_InitTypeDef::ScanConvMode
uint32_t ScanConvMode
Definition: stm32f4xx_hal_adc.h:83
st7789v_init_ctl_pins
void st7789v_init_ctl_pins(void)
Definition: st7789v.c:300
_window_msgbox_t::res
int res
Definition: window_msgbox.h:80
window_draw_children
void window_draw_children(int16_t id)
Definition: window.c:284
bsod
#define bsod(fmt,...)
Definition: bsod.h:20
window_1
window_t * window_1
Definition: window.c:14
f_mount
FRESULT f_mount(FATFS *fs, const TCHAR *path, BYTE opt)
Definition: ff.c:3248
WI_SELECT
Definition: window_menu.h:17
USB_SIZ_BOS_DESC
#define USB_SIZ_BOS_DESC
Definition: usbd_desc.c:103
_window_t::f_focused
uint32_t f_focused
Definition: window.h:88
TIM_HandleTypeDef
TIM Time Base Handle Structure definition.
Definition: stm32f4xx_hal_tim.h:287
RCC_SYSCLKSOURCE_PLLCLK
#define RCC_SYSCLKSOURCE_PLLCLK
Definition: stm32f4xx_hal_rcc.h:221
measurementTaskHandle
osThreadId measurementTaskHandle
Definition: main.c:102
I2C_InitTypeDef::ClockSpeed
uint32_t ClockSpeed
Definition: stm32f4xx_hal_i2c.h:65
ESP_TX_Pin
#define ESP_TX_Pin
Definition: main.h:151
USBD_LL_SetSpeed
USBD_StatusTypeDef USBD_LL_SetSpeed(USBD_HandleTypeDef *pdev, USBD_SpeedTypeDef speed)
USBD_LL_Reset Handle Reset event.
Definition: usbd_core.c:451
USBD_LL_IsStallEP
uint8_t USBD_LL_IsStallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr)
Returns Stall condition.
Definition: usbd_conf.c:580
_window_term_t::font
font_t * font
Definition: window_term.h:19
__HAL_RCC_USART2_CLK_DISABLE
#define __HAL_RCC_USART2_CLK_DISABLE()
Definition: stm32f4xx_hal_rcc.h:539
gui_timers_cycle
uint32_t gui_timers_cycle(void)
Definition: gui_timer.c:98
UART_STOPBITS_1
#define UART_STOPBITS_1
Definition: stm32f4xx_hal_uart.h:227
SPI_InitTypeDef::BaudRatePrescaler
uint32_t BaudRatePrescaler
Definition: stm32f4xx_hal_spi.h:84
mem_malloc
void * mem_malloc(mem_size_t size)
Definition: mem.c:603
HAL_HCD_MspInit
void HAL_HCD_MspInit(HCD_HandleTypeDef *hcdHandle)
Definition: usbh_conf.c:89
_window_list_t::color_back
color_t color_back
Definition: window_list.h:17
_window_term_t
Definition: window_term.h:15
_rect_ui16_t::x
uint16_t x
Definition: guitypes.h:70
window_class_progress
const window_class_progress_t window_class_progress
Definition: window_progress.c:61
StartMeasurementTask
void StartMeasurementTask(void const *argument)
Definition: thread_measurement.c:7
BUFFER_RESPONSE_SIZE
#define BUFFER_RESPONSE_SIZE
Definition: connect.cpp:116
_USBH_HandleTypeDef::pData
void * pData
Definition: usbh_def.h:463
SCSI_ASC_WRITE_PROTECTED
#define SCSI_ASC_WRITE_PROTECTED
Definition: usbh_msc_scsi.h:131
_fork
int _fork(void)
Definition: syscalls.c:172
_display_t::w
uint16_t w
Definition: display.h:25
window_set_focus
void window_set_focus(int16_t id)
Definition: window.c:480
st7789v_cmd_ramrd
void st7789v_cmd_ramrd(uint8_t *pdata, uint16_t size)
Definition: st7789v.c:277
ETH_IRQHandler
void ETH_IRQHandler(void)
This function handles Ethernet global interrupt.
Definition: stm32f4xx_it.c:271
putslave.h
GET_BLOCK_SIZE
#define GET_BLOCK_SIZE
Definition: onboard_sd.h:65
HAL_RCC_ClockConfig
HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
status_nozzle_svg.c
HTTP_10
static const char * HTTP_10
Definition: connection.cpp:8
class_ptr
window_class_t * class_ptr(int16_t cls_id)
Definition: window.c:73
gui_defaults
gui_defaults_t gui_defaults
Definition: gui.c:20
rect_ui16_sub_padding_ui8
rect_ui16_t rect_ui16_sub_padding_ui8(rect_ui16_t rc, padding_ui8_t pad)
Definition: guitypes.c:55
TERM_FLG_FREEMEM
#define TERM_FLG_FREEMEM
Definition: term.h:28
WI_SWITCH_SELECT_t::index
int32_t index
Definition: window_menu.h:54
set_num_of_ones
static uint16_t set_num_of_ones(uint8_t num_of_ones)
Definition: st7789v.c:392
window_is_enabled
int window_is_enabled(int16_t id)
Definition: window.c:257
st7789v_clr_rst
static void st7789v_clr_rst(void)
Definition: st7789v.c:132
BYTE
unsigned char BYTE
Definition: onboard_sd.h:13
HAL_TIM_ConfigClockSource
HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, TIM_ClockConfigTypeDef *sClockSourceConfig)
GUI_MENU_TIMEOUT
#define GUI_MENU_TIMEOUT
Definition: gui_timer.c:13
_window_msgbox_t::buttons
const char * buttons[3]
Definition: window_msgbox.h:78
_window_term_t::color_back
color_t color_back
Definition: window_term.h:17
WINDOW_EVENT_LOOP
#define WINDOW_EVENT_LOOP
Definition: window.h:49
Tacho_FAN1
uint32_t Tacho_FAN1
Definition: main.c:153
USBD_GetString
void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len)
USBD_GetString Convert Ascii string into unicode one.
Definition: usbd_ctlreq.c:732
window_get_color_back
color_t window_get_color_back(int16_t id)
Definition: window.c:446
MX_USART6_UART_Init
static void MX_USART6_UART_Init(void)
USART6 Initialization Function.
Definition: main.c:773
rect_ui16_add_padding_ui8
rect_ui16_t rect_ui16_add_padding_ui8(rect_ui16_t rc, padding_ui8_t pad)
Definition: guitypes.c:46
SWAPBW_TOLERANCE
#define SWAPBW_TOLERANCE
Definition: st7789v.c:592
I2C_InitTypeDef::DualAddressMode
uint32_t DualAddressMode
Definition: stm32f4xx_hal_i2c.h:77
HAL_I2C_Init
HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c)
_window_progress_t::padding
padding_ui8_t padding
Definition: window_progress.h:21
_window_progress_t::value
float value
Definition: window_progress.h:25
window_set_item_count
void window_set_item_count(int16_t id, int count)
Definition: window.c:573
USBH_SpeedTypeDef
USBH_SpeedTypeDef
Definition: usbh_def.h:317
TIM_ClockConfigTypeDef
Clock Configuration Handle Structure definition.
Definition: stm32f4xx_hal_tim.h:214
st7789v_reset_delay
uint16_t st7789v_reset_delay
Definition: st7789v.c:920
TERM_DEF_CHAR
#define TERM_DEF_CHAR
Definition: term.h:33
window_capture_ptr
window_t * window_capture_ptr
Definition: window.c:21
png_jmpbuf
#define png_jmpbuf(png_ptr)
Definition: png.h:952
Error_Handler
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition: main.c:1057
createSpeedLookupTable.int
int
Definition: createSpeedLookupTable.py:15
window_1
window_t * window_1
Definition: window.c:14
SPI_InitTypeDef::CRCCalculation
uint32_t CRCCalculation
Definition: stm32f4xx_hal_spi.h:96
LCD_CS_Pin
#define LCD_CS_Pin
Definition: main.h:157
DRESULT
DRESULT
Definition: onboard_sd.h:22
window_get_item_count
int window_get_item_count(int16_t id)
Definition: window.c:585
USBD_CDC_SetRxBuffer
uint8_t USBD_CDC_SetRxBuffer(USBD_HandleTypeDef *pdev, uint8_t *pbuff)
USBD_CDC_SetRxBuffer.
Definition: usbd_cdc.c:829
TIM_HandleTypeDef::Init
TIM_Base_InitTypeDef Init
Definition: stm32f4xx_hal_tim.h:290
window_class_count
const uint16_t window_class_count
Definition: window.c:38
_execve
int _execve(char *name, char **argv, char **env)
Definition: syscalls.c:177
index_js.c
TIM_BreakDeadTimeConfigTypeDef::BreakPolarity
uint32_t BreakPolarity
Definition: stm32f4xx_hal_tim_ex.h:106
window_msgbox_id_icon
uint16_t window_msgbox_id_icon[5]
Definition: window_msgbox.c:62
USBH_FAIL
Definition: usbh_def.h:306
window_invalidate_children
void window_invalidate_children(int16_t id)
Definition: window.c:320
st7789v_cmd
void st7789v_cmd(uint8_t cmd, uint8_t *pdata, uint16_t size)
Definition: st7789v.c:206
jogwheel_encoder_max
int32_t jogwheel_encoder_max
Definition: jogwheel.c:12
_window_menu_t
Definition: window_menu.h:83
SPI_InitTypeDef::Direction
uint32_t Direction
Definition: stm32f4xx_hal_spi.h:68
st7789v_get_pixel
color_t st7789v_get_pixel(point_ui16_t pt)
Definition: st7789v.c:373
_window_text_t::font
font_t * font
Definition: window_text.h:19
UART_WORDLENGTH_8B
#define UART_WORDLENGTH_8B
Definition: stm32f4xx_hal_uart.h:218
window_progress_draw
void window_progress_draw(window_progress_t *window)
Definition: window_progress.c:21
gui_malloc
void * gui_malloc(unsigned int size)
Definition: gui.c:35
GUI_TIMER_PERI
#define GUI_TIMER_PERI
Definition: gui_timer.c:12
MSGBOX_RES_IGNORE
#define MSGBOX_RES_IGNORE
Definition: window_msgbox.h:43
USBH_BUSY
Definition: usbh_def.h:305
sio_send
void sio_send(u8_t c, sio_fd_t fd)
color_rgb
static color_t color_rgb(uint8_t r, uint8_t g, uint8_t b)
Definition: guitypes.h:128
HAL_SPI_Transmit
HAL_StatusTypeDef HAL_SPI_Transmit(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout)
color_t
uint32_t color_t
Definition: guitypes.h:62
HAL_Delay
void HAL_Delay(uint32_t Delay)
This function provides minimum delay (in milliseconds) based on variable incremented.
Definition: stm32f4xx_hal.c:393
__HAL_RCC_ADC1_CLK_DISABLE
#define __HAL_RCC_ADC1_CLK_DISABLE()
Definition: stm32f4xx_hal_rcc.h:640
THERM_PINDA_Pin
#define THERM_PINDA_Pin
Definition: main.h:107
COLOR_SILVER
#define COLOR_SILVER
Definition: guitypes.h:49
_gui_defaults_t::font_big
font_t * font_big
Definition: guitypes.h:111
USBD_SpeedTypeDef
USBD_SpeedTypeDef
Definition: usbd_def.h:186
TIM6_DAC_IRQHandler
void TIM6_DAC_IRQHandler(void)
This function handles TIM6 global interrupt, DAC1 and DAC2 underrun error interrupts.
Definition: stm32f4xx_it.c:232
DMA_NORMAL
#define DMA_NORMAL
Definition: stm32f4xx_hal_dma.h:297
DMA_PDATAALIGN_BYTE
#define DMA_PDATAALIGN_BYTE
Definition: stm32f4xx_hal_dma.h:275
USBHPath
char USBHPath[4]
Definition: fatfs.c:52
window_init_t
void() window_init_t(void *window)
Definition: window.h:55
RCC_ClkInitTypeDef::APB2CLKDivider
uint32_t APB2CLKDivider
Definition: stm32f4xx_hal_rcc.h:107
RCC_OscInitTypeDef
RCC Internal/External Oscillator (HSE, HSI, LSE and LSI) configuration structure definition.
Definition: stm32f4xx_hal_rcc.h:67
_window_text_t::color_text
color_t color_text
Definition: window_text.h:18
st7789v_display
const display_t st7789v_display
Definition: st7789v.c:889
window_text.h
HAL_MAX_DELAY
#define HAL_MAX_DELAY
Definition: stm32f4xx_hal_def.h:76
hdma_usart1_rx
DMA_HandleTypeDef hdma_usart1_rx
Definition: main.c:93
st7789v_brightness_set
void st7789v_brightness_set(uint8_t brightness)
TERM_BUFF_SIZE
#define TERM_BUFF_SIZE(c, r)
Definition: term.h:36
TIM_LOCKLEVEL_OFF
#define TIM_LOCKLEVEL_OFF
Definition: stm32f4xx_hal_tim.h:651
gui.h
USBD_LL_IsoOUTIncomplete
USBD_StatusTypeDef USBD_LL_IsoOUTIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum)
USBD_IsoOUTIncomplete Handle iso out incomplete event.
Definition: usbd_core.c:520
TIM_OSSI_DISABLE
#define TIM_OSSI_DISABLE
Definition: stm32f4xx_hal_tim.h:643
HSE_VALUE
#define HSE_VALUE
Definition: system_stm32f4xx.c:67
gui_defaults
gui_defaults_t gui_defaults
Definition: gui.c:20
X_STEP_Pin
#define X_STEP_Pin
Definition: main.h:179
GPIO_MODE_INPUT
#define GPIO_MODE_INPUT
Definition: stm32f4xx_hal_gpio.h:135
gui_timer_new
int8_t gui_timer_new(uint8_t timer, uint32_t ms, int16_t win_id)
Definition: gui_timer.c:38
render_icon_align
void render_icon_align(rect_ui16_t rc, uint16_t id_res, color_t clr0, uint16_t flags)
Definition: display_helper.c:55
WINDOW_EVENT_BTN_DN
#define WINDOW_EVENT_BTN_DN
Definition: window.h:38
__SPI_HandleTypeDef::hdmatx
DMA_HandleTypeDef * hdmatx
Definition: stm32f4xx_hal_spi.h:142
Z_DIAGE1_Pin
#define Z_DIAGE1_Pin
Definition: main.h:199
osEvent::value
union osEvent::@54 value
event value
window_frame_done
void window_frame_done(window_frame_t *window)
Definition: window_frame.c:12
USBH_LL_Connect
USBH_StatusTypeDef USBH_LL_Connect(USBH_HandleTypeDef *phost)
USBH_LL_Connect Handle USB Host connexion event.
Definition: usbh_core.c:826
heth
ETH_HandleTypeDef heth
Definition: ethernetif.c:108
APPLICATION_START
Definition: usb_host.h:87
hspi2
SPI_HandleTypeDef hspi2
Definition: main.c:81
_window_menu_item_t::id_icon
uint16_t id_icon
Definition: window_menu.h:60
I2C_ADDRESSINGMODE_7BIT
#define I2C_ADDRESSINGMODE_7BIT
Definition: stm32f4xx_hal_i2c.h:239
SCSI_ASC_MEDIUM_NOT_PRESENT
#define SCSI_ASC_MEDIUM_NOT_PRESENT
Definition: masstorage.h:155
USBH_LL_ClosePipe
USBH_StatusTypeDef USBH_LL_ClosePipe(USBH_HandleTypeDef *phost, uint8_t pipe)
Close a pipe of the low level driver.
Definition: usbh_conf.c:422
_st7789v_config_t::is_inverted
uint8_t is_inverted
Definition: st7789v.h:30
DMA_CHANNEL_4
#define DMA_CHANNEL_4
Definition: stm32f4xx_hal_dma.h:222
_window_list_t::top_index
int top_index
Definition: window_list.h:25
font_meas_text
point_ui16_t font_meas_text(font_t *pf, const char *str)
Definition: guitypes.c:97
_COLOR_565
#define _COLOR_565(clr)
Definition: st7789v.c:66
window_list_item_t
void() window_list_item_t(window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *pid_icon)
Definition: window.h:61
Environment::add_header
void add_header(IHeader *header)
Definition: lwsapi.cpp:28
status_prnspeed_svg.c
WIO_MIN
#define WIO_MIN
Definition: window_menu.c:5
WINDOW_EVENT_TIMER
#define WINDOW_EVENT_TIMER
Definition: window.h:50
HW_IDENTIFY_Pin
#define HW_IDENTIFY_Pin
Definition: main.h:101
window_create
int16_t window_create(int16_t cls_id, int16_t id_parent, rect_ui16_t rect)
Definition: window.c:98
windows
window_t * windows[WINDOW_MAX_WINDOWS]
Definition: window.c:16
hUsbHostHS
USBH_HandleTypeDef hUsbHostHS
Definition: usb_host.c:74
createSpeedLookupTable.args
args
Definition: createSpeedLookupTable.py:17
_window_menu_t::top_index
int top_index
Definition: window_menu.h:94
Diskio_drvTypeDef
Disk IO Driver structure definition.
Definition: ff_gen_drv.h:67
HAL_InitTick
HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
This function configures the TIM6 as a time base source. The time source is configured to have 1ms ti...
Definition: stm32f4xx_hal_timebase_tim.c:62
_window_menu_item_t::wi_switch_select
WI_SWITCH_SELECT_t wi_switch_select
Definition: window_menu.h:70
USBD_FS_LangIDStrDescriptor
uint8_t * USBD_FS_LangIDStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length)
Return the LangID string descriptor.
Definition: usbd_desc.c:275
window_validate_children
void window_validate_children(int16_t id)
Definition: window.c:312
_font_t::asc_min
char asc_min
Definition: guitypes.h:82
Z_MIN_GPIO_Port
#define Z_MIN_GPIO_Port
Definition: main.h:160
WINDOW_FLG_FREEMEM
#define WINDOW_FLG_FREEMEM
Definition: window.h:31
usbh_msc.h
This file contains all the prototypes for the usbh_msc.c.
HAL_PCD_ISOOUTIncompleteCallback
void HAL_PCD_ISOOUTIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum)
ISOOUTIncomplete callback.
Definition: usbd_conf.c:250
USB_HS_P_Pin
#define USB_HS_P_Pin
Definition: main.h:133
EOF
#define EOF
Definition: ff.h:286
window_icon.h
_window_progress_t::height_progress
uint8_t height_progress
Definition: window_progress.h:23
length
png_uint_32 length
Definition: png.c:2247
mem_free
void mem_free(void *rmem)
Definition: mem.c:419
SPI_InitTypeDef::NSS
uint32_t NSS
Definition: stm32f4xx_hal_spi.h:80
TIM_BreakDeadTimeConfigTypeDef::OffStateRunMode
uint32_t OffStateRunMode
Definition: stm32f4xx_hal_tim_ex.h:96
HAL_SPI_Receive
HAL_StatusTypeDef HAL_SPI_Receive(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout)
USBH_Init
USBH_StatusTypeDef USBH_Init(USBH_HandleTypeDef *phost, void(*pUsrFunc)(USBH_HandleTypeDef *phost, uint8_t), uint8_t id)
HCD_Init Initialize the HOST Core.
Definition: usbh_core.c:92
diag_check_fastboot
void diag_check_fastboot(void)
Definition: diag.c:23
UART_HandleTypeDef
UART handle Structure definition.
Definition: stm32f4xx_hal_uart.h:158
_gui_defaults_t::alignment
uint8_t alignment
Definition: guitypes.h:113
sio.h
_window_list_t
Definition: window_list.h:15
WaitResponse::request_length
size_t request_length
Definition: connect.cpp:160
_window_menu_draw_value
void _window_menu_draw_value(window_menu_t *window, const char *value, rect_ui16_t *p_rc, color_t color_text_option, color_t color_back)
Definition: window_menu.c:62
_read
int _read(int file, char *ptr, int len)
Definition: syscalls.c:86
USBH_URBStateTypeDef
USBH_URBStateTypeDef
Definition: usbh_def.h:384
UART_InitTypeDef::OverSampling
uint32_t OverSampling
Definition: stm32f4xx_hal_uart.h:91
FLG_CS
#define FLG_CS
Definition: st7789v.c:71
png_read_row
void PNGAPI png_read_row(png_structrp png_ptr, png_bytep row, png_bytep dsp_row)
Definition: pngread.c:383
window_next_enabled
int16_t window_next_enabled(int16_t id)
Definition: window.c:211
point_in_rect_ui16
static int point_in_rect_ui16(point_ui16_t pt, rect_ui16_t rc)
Definition: guitypes.h:169
_term_t::file
FILE * file
Definition: term.h:52
FONT_FLG_LSBF
#define FONT_FLG_LSBF
Definition: guitypes.h:37
_window_msgbox_t::flags
uint16_t flags
Definition: window_msgbox.h:79
_st7789v_config_t::flg
uint8_t flg
Definition: st7789v.h:24
window_hide
void window_hide(int16_t id)
Definition: window.c:539
window_numb_t
struct _window_numb_t window_numb_t
PWR_REGULATOR_VOLTAGE_SCALE1
#define PWR_REGULATOR_VOLTAGE_SCALE1
Definition: stm32f4xx_hal_pwr_ex.h:90
DMA_InitTypeDef::MemDataAlignment
uint32_t MemDataAlignment
Definition: stm32f4xx_hal_dma.h:83
htim1
TIM_HandleTypeDef htim1
Definition: main.c:85
request_header
IHeader * request_header(const char *key, size_t key_length, const char *value, size_t value_length)
request_header_fn callbacke, which is call from LwIP WSAPI http server
Definition: connect.cpp:289
window_focused
int16_t window_focused(void)
Definition: window.c:165
HSI_VALUE
#define HSI_VALUE
Definition: system_stm32f4xx.c:71
_gui_timer_t::f_reserved0
uint32_t f_reserved0
Definition: gui_timer.c:25
window_menu_calculate_spin
void window_menu_calculate_spin(WI_SPIN_t *item, char *value)
Definition: window_menu.c:48
st7789v_set_pixel_directColor
void st7789v_set_pixel_directColor(point_ui16_t pt, uint16_t directColor)
Definition: st7789v.c:383
Y_ENA_Pin
#define Y_ENA_Pin
Definition: main.h:147
uart6rxbuff
uartrxbuff_t uart6rxbuff
Definition: main.c:147
USBD_PID_FS
#define USBD_PID_FS
Definition: usbd_desc.c:97
window_list_draw
void window_list_draw(window_list_t *window)
Definition: window_list.c:45
MX_LWIP_Init
void MX_LWIP_Init(void)
Definition: lwip.c:95
USBH_LL_GetLastXferSize
uint32_t USBH_LL_GetLastXferSize(USBH_HandleTypeDef *phost, uint8_t pipe)
Return the last transfered packet size.
Definition: usbh_conf.c:373
st7789v_inversion_off
void st7789v_inversion_off(void)
FLASH_CSN_Pin
#define FLASH_CSN_Pin
Definition: main.h:187
png.h
LCD_SW1_Pin
#define LCD_SW1_Pin
Definition: main.h:122
window_msgbox_click
void window_msgbox_click(window_msgbox_t *window)
Definition: window_msgbox.c:130
ESP_GPIO0_Pin
#define ESP_GPIO0_Pin
Definition: main.h:93
RCC_PLLInitTypeDef::PLLN
uint32_t PLLN
Definition: stm32f4xx_hal_rcc_ex.h:74
CDC_SEND_BREAK
#define CDC_SEND_BREAK
Definition: usbd_cdc.h:79
_window_progress_t::win
window_t win
Definition: window_progress.h:16
st7789v_draw_rect
void st7789v_draw_rect(rect_ui16_t rc, color_t clr)
Definition: st7789v.c:479
rect_intersect_ui16
rect_ui16_t rect_intersect_ui16(rect_ui16_t rc, rect_ui16_t rc1)
Definition: guitypes.c:37
MX_IWDG_Init
static void MX_IWDG_Init(void)
IWDG Initialization Function.
Definition: main.c:413
FileHandler_t::content_length
int content_length
Definition: connect.cpp:47
CMD_RAMRD
#define CMD_RAMRD
Definition: st7789v.c:28
FileHandler_t::data
const uint8_t * data
Definition: connect.cpp:48
TIM1_default_Prescaler
#define TIM1_default_Prescaler
Definition: timer_defaults.h:10
TIM_MasterConfigTypeDef::MasterSlaveMode
uint32_t MasterSlaveMode
Definition: stm32f4xx_hal_tim_ex.h:87
SPI_DATASIZE_8BIT
#define SPI_DATASIZE_8BIT
Definition: stm32f4xx_hal_spi.h:199
gui_timers
gui_timer_t gui_timers[GUI_MAX_TIMERS]
Definition: gui_timer.c:34
MSGBOX_MSK_ICO
#define MSGBOX_MSK_ICO
Definition: window_msgbox.h:8
HAL_PCD_DisconnectCallback
void HAL_PCD_DisconnectCallback(PCD_HandleTypeDef *hpcd)
Disconnect callback.
Definition: usbd_conf.c:278
WI_SPIN_t
Definition: window_menu.h:35
window_classes
const window_class_t * window_classes[]
Definition: window.c:23
rd18bit_to_16bit
static uint16_t rd18bit_to_16bit(uint8_t *buff)
Definition: st7789v.c:418
SPI_InitTypeDef::Mode
uint32_t Mode
Definition: stm32f4xx_hal_spi.h:65
_window_t::flg
uint32_t flg
Definition: window.h:81
__HAL_RCC_USART2_CLK_ENABLE
#define __HAL_RCC_USART2_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:507
ERR_VAL
Definition: err.h:75
st7789v_cmd_ramwr
void st7789v_cmd_ramwr(uint8_t *pdata, uint16_t size)
Definition: st7789v.c:273
usbd_conf.h
: Header for usbd_conf.c file.
window_class_spin
const window_class_spin_t window_class_spin
Definition: window_spin.c:58
media_set_inserted
void media_set_inserted(bool inserted)
Definition: Marlin_CardReader.cpp:21
createSpeedLookupTable.b
list b
Definition: createSpeedLookupTable.py:30
st7789v_cy
uint16_t st7789v_cy
Definition: st7789v.c:80
osPriorityNormal
priority: normal (default)
Definition: cmsis_os.h:221
hUsbDeviceFS
USBD_HandleTypeDef hUsbDeviceFS
Definition: usb_device.c:73
pbuf
Definition: pbuf.h:142
screen_dispatch_event
void screen_dispatch_event(window_t *window, uint8_t event, void *param)
Definition: screen.c:103
window_parent
int16_t window_parent(int16_t id)
Definition: window.c:173
_window_progress_t
Definition: window_progress.h:15
HAL_RCC_GetClockConfig
void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
window_msgbox_button_count
const uint8_t window_msgbox_button_count[]
Definition: window_msgbox.c:17
AHBPrescTable
const uint8_t AHBPrescTable[16]
Definition: system_stm32f4xx.c:137
WP1_Pin
#define WP1_Pin
Definition: main.h:197
app_tim6_tick
void app_tim6_tick(void)
Definition: appmain.cpp:157
__HAL_LINKDMA
#define __HAL_LINKDMA(__HANDLE__, __PPP_DMA_FIELD__, __DMA_HANDLE__)
Definition: stm32f4xx_hal_def.h:81
_window_list_t::font
font_t * font
Definition: window_list.h:19
window_capture
int16_t window_capture(void)
Definition: window.c:169
DMA_MEMORY_TO_PERIPH
#define DMA_MEMORY_TO_PERIPH
Definition: stm32f4xx_hal_dma.h:245
GPIO_PIN_9
#define GPIO_PIN_9
Definition: stm32f4xx_hal_gpio.h:111
RES_NOTRDY
Definition: onboard_sd.h:26
BufferResponse::ct_header
ConstHeader ct_header
Definition: connect.cpp:122
_window_menu_t::win
window_t win
Definition: window_menu.h:84
st7789v_gamma_next
void st7789v_gamma_next(void)
TIM_ClockConfigTypeDef::ClockSource
uint32_t ClockSource
Definition: stm32f4xx_hal_tim.h:216
_display_t::draw_line
display_draw_line_t * draw_line
Definition: display.h:31
CDC_Control_FS
static int8_t CDC_Control_FS(uint8_t cmd, uint8_t *pbuf, uint16_t length)
Manage the CDC class requests.
Definition: usbd_cdc_if.c:214
term_set_pos
void term_set_pos(term_t *pt, uint8_t col, uint8_t row)
Definition: term.c:103
BufferResponse::response
const char * response
Definition: connect.cpp:121
displayTaskHandle
osThreadId displayTaskHandle
Definition: main.c:98
_window_t::cls
window_class_t * cls
Definition: window.h:77
window_set_capture
void window_set_capture(int16_t id)
Definition: window.c:500
cmsis_os.h
Header of cmsis_os.c A new set of APIs are added in addition to existing ones, these APIs are specifi...
I2C_InitTypeDef::NoStretchMode
uint32_t NoStretchMode
Definition: stm32f4xx_hal_i2c.h:86
_window_numb_t::win
window_t win
Definition: window_numb.h:18
USBD_LL_IsoINIncomplete
USBD_StatusTypeDef USBD_LL_IsoINIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum)
USBD_IsoINIncomplete Handle iso in incomplete event.
Definition: usbd_core.c:509
menu_timeout_enabled
int8_t menu_timeout_enabled
Definition: guimain.c:103
status_z_axis_svg
const uint8_t status_z_axis_svg[]
Definition: status_z_axis_svg.c:3
UART_HandleTypeDef::hdmarx
DMA_HandleTypeDef * hdmarx
Definition: stm32f4xx_hal_uart.h:178
window_focused
int16_t window_focused(void)
Definition: window.c:165
HAL_SPI_Transmit_DMA
HAL_StatusTypeDef HAL_SPI_Transmit_DMA(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size)
USBD_OK
Definition: usbd_def.h:195
USBD_LANGID_STRING
#define USBD_LANGID_STRING
Definition: usbd_desc.c:95
UINT
unsigned int UINT
Definition: onboard_sd.h:16
Z_ENA_Pin
#define Z_ENA_Pin
Definition: main.h:181
HAL_HCD_Connect_Callback
void HAL_HCD_Connect_Callback(HCD_HandleTypeDef *hhcd)
SOF callback.
Definition: usbh_conf.c:156
_uartrxbuff_t
Definition: uartrxbuff.h:16
window_class_numb
const window_class_numb_t window_class_numb
Definition: window_numb.c:41
thermalManager
Temperature thermalManager
Definition: temperature.cpp:89
BED_MON_Pin
#define BED_MON_Pin
Definition: main.h:113
Context::parse_request
err_t parse_request(const void *data=nullptr, size_t length=0)
parste the request header (request line + request headers)
Definition: connection.cpp:110
WINDOW_FLG_INVALID
#define WINDOW_FLG_INVALID
Definition: window.h:26
FS_Desc
USBD_DescriptorsTypeDef FS_Desc
Definition: usbd_desc.c:160
HEAT0_Pin
#define HEAT0_Pin
Definition: main.h:111
WaitResponse::generator
virtual Message_t generator(const struct pbuf *input=nullptr) override
WSAPI generator (called more time from WSAPI http server).
Definition: connect.cpp:168
__HAL_RCC_GET_FLAG
#define __HAL_RCC_GET_FLAG(__FLAG__)
Definition: stm32f4xx_hal_rcc.h:1246
_window_t::f_tag
uint32_t f_tag
Definition: window.h:98
_jogwheel_config_t::pinEN1
uint8_t pinEN1
Definition: jogwheel.h:21
WINDOW_FLG_ENABLED
#define WINDOW_FLG_ENABLED
Definition: window.h:25
ALIGN_HCENTER
#define ALIGN_HCENTER
Definition: guitypes.h:11
window_menu_event
void window_menu_event(window_menu_t *window, uint8_t event, void *param)
Definition: window_menu.c:161
HAL_DMA_Init
HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
StartDisplayTask
void StartDisplayTask(void const *argument)
Function implementing the displayTask thread.
Definition: main.c:980
_window_invalidate
static void _window_invalidate(window_t *window)
Definition: window.h:257
USBD_LL_SetupStage
USBD_StatusTypeDef USBD_LL_SetupStage(USBD_HandleTypeDef *pdev, uint8_t *psetup)
USBD_SetupStage Handle the setup stage.
Definition: usbd_core.c:263
window_prev_enabled
int16_t window_prev_enabled(int16_t id)
Definition: window.c:204
screen_stack_count
uint16_t screen_stack_count
Definition: screen.c:16
window_class_icon
const window_class_icon_t window_class_icon
Definition: window_icon.c:29
__HAL_RCC_GPIOA_CLK_ENABLE
#define __HAL_RCC_GPIOA_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:402
CDC_GET_ENCAPSULATED_RESPONSE
#define CDC_GET_ENCAPSULATED_RESPONSE
Definition: usbd_cdc.h:72
ADC_InitTypeDef::ExternalTrigConv
uint32_t ExternalTrigConv
Definition: stm32f4xx_hal_adc.h:110
__HAL_RCC_USART1_CLK_DISABLE
#define __HAL_RCC_USART1_CLK_DISABLE()
Definition: stm32f4xx_hal_rcc.h:638
_gui_timer_t::start
uint32_t start
Definition: gui_timer.c:19
_window_menu_item_t::wi_spin
WI_SPIN_t wi_spin
Definition: window_menu.h:68
__HAL_RCC_SPI2_CLK_DISABLE
#define __HAL_RCC_SPI2_CLK_DISABLE()
Definition: stm32f4xx_hal_rcc.h:538
osThreadCreate
osThreadId osThreadCreate(const osThreadDef_t *thread_def, void *argument)
Create a thread and add it to Active Threads and set it to state READY.
Definition: cmsis_os.c:245
_sbrk
caddr_t _sbrk(int incr)
Definition: syscalls.c:105
http_states.h
UART_HandleTypeDef::Init
UART_InitTypeDef Init
Definition: stm32f4xx_hal_uart.h:162
WINDOW_EVENT_ENC_DN
#define WINDOW_EVENT_ENC_DN
Definition: window.h:40
Error_Handler
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition: main.c:1057
window_numb.h
_window_menu_t::count
int count
Definition: window_menu.h:92
st7789v_set_rst
static void st7789v_set_rst(void)
Definition: st7789v.c:127
FIL_SENSOR_Pin
#define FIL_SENSOR_Pin
Definition: main.h:189
_stat
int _stat(char *file, struct stat *st)
Definition: syscalls.c:162
window_list_event
void window_list_event(window_list_t *window, uint8_t event, void *param)
Definition: window_list.c:103
Environment::method
char method[METHOD_LENGTH]
Definition: lwsapi_app.hpp:183
HAL_SPI_TxCpltCallback
void HAL_SPI_TxCpltCallback(SPI_HandleTypeDef *hspi)
Definition: main.c:918
_term_t::buff
uint8_t * buff
Definition: term.h:47
window_text_draw
void window_text_draw(window_text_t *window)
Definition: window_text.c:14
screen_register
int16_t screen_register(screen_t *pscreen)
Definition: screen.c:24
hdma_spi2_tx
DMA_HandleTypeDef hdma_spi2_tx
Definition: main.c:83
GUI_SIG_REDRAW
#define GUI_SIG_REDRAW
Definition: guiconfig.h:15
window_list.h
HAL_TIM_Base_MspDeInit
void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef *htim_base)
TIM_Base MSP De-Initialization This function freeze the hardware resources used in this example.
Definition: stm32f4xx_hal_msp.c:500
GPIO_InitTypeDef
GPIO Init structure definition.
Definition: stm32f4xx_hal_gpio.h:63
window_get_item_index
int window_get_item_index(int16_t id)
Definition: window.c:623
window_class_frame
const window_class_frame_t window_class_frame
Definition: window_frame.c:65
FAN0_Pin
#define FAN0_Pin
Definition: main.h:120
MX_TIM14_Init
static void MX_TIM14_Init(void)
TIM14 Initialization Function.
Definition: main.c:686
hadc1
ADC_HandleTypeDef hadc1
Definition: main.c:75
TERM_FLG_AUTOCR
#define TERM_FLG_AUTOCR
Definition: term.h:31
CTRL_SYNC
#define CTRL_SYNC
Definition: onboard_sd.h:62
USBD_LL_Suspend
USBD_StatusTypeDef USBD_LL_Suspend(USBD_HandleTypeDef *pdev)
USBD_Suspend Handle Suspend event.
Definition: usbd_core.c:464
UsageFault_Handler
void UsageFault_Handler(void)
This function handles Undefined instruction or illegal state.
Definition: stm32f4xx_it.c:147
_window_text_t::win
window_t win
Definition: window_text.h:16
jogwheel_signals_new
uint8_t jogwheel_signals_new
Definition: jogwheel.c:9
png_set_sig_bytes
void PNGAPI png_set_sig_bytes(png_structrp png_ptr, int num_bytes)
Definition: png.c:47
memshift
#define memshift(ptr, size)
Definition: connection.hpp:10
font_line_chars
int font_line_chars(font_t *pf, const char *str, uint16_t line_width)
Definition: guitypes.c:122
_jogwheel_config_t::pinENC
uint8_t pinENC
Definition: jogwheel.h:23
window_class_text
const window_class_text_t window_class_text
Definition: window_text.c:27
gui_timer_create_oneshot
int8_t gui_timer_create_oneshot(uint32_t ms, int16_t win_id)
Definition: gui_timer.c:66
GPIO_SPEED_FREQ_LOW
#define GPIO_SPEED_FREQ_LOW
Definition: stm32f4xx_hal_gpio.h:158
__HAL_RCC_ADC1_CLK_ENABLE
#define __HAL_RCC_ADC1_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:601
st7789v_clr_cs
static void st7789v_clr_cs(void)
Definition: st7789v.c:112
gui_get_menu_timeout_id
int8_t gui_get_menu_timeout_id(void)
Definition: gui_timer.c:147
window_spin_t
struct _window_spin_t window_spin_t
st7789v_display
const display_t st7789v_display
Definition: st7789v.c:889
USBD_LL_DevConnected
USBD_StatusTypeDef USBD_LL_DevConnected(USBD_HandleTypeDef *pdev)
USBD_DevConnected Handle device connection event.
Definition: usbd_core.c:531
displayTaskHandle
osThreadId displayTaskHandle
Definition: main.c:98
osThread
#define osThread(name)
Definition: cmsis_os.h:478
resource_fopen
FILE * resource_fopen(uint16_t id, const char *opentype)
Definition: guitypes.c:180
st7789v_fill_ui16
static void st7789v_fill_ui16(uint16_t *p, uint16_t v, uint16_t c)
Definition: st7789v.c:137
point_ui16
static point_ui16_t point_ui16(uint16_t x, uint16_t y)
Definition: guitypes.h:154
Message_t::headers
const IHeader * headers
Definition: lwsapi_app.hpp:213
render_icon_align
void render_icon_align(rect_ui16_t rc, uint16_t id_res, color_t clr0, uint16_t flags)
Definition: display_helper.c:55
Context::State
State
Definition: connection.hpp:22
window_msgbox_draw
void window_msgbox_draw(window_msgbox_t *window)
Definition: window_msgbox.c:158
size
static png_bytep size_t size
Definition: pngwrite.c:2170
HAL_PCD_ISOINIncompleteCallback
void HAL_PCD_ISOINIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum)
ISOINIncomplete callback.
Definition: usbd_conf.c:260
api_printer
IResponse::unique_ptr_t api_printer(Environment &env)
return coroutine_fn for /api/printer request
Definition: connect.cpp:226
BufferResponse::generator
virtual Message_t generator(const struct pbuf *input=nullptr) override
Response generator, iterative returns file data.
Definition: connect.cpp:195
USBD_LL_DeInit
USBD_StatusTypeDef USBD_LL_DeInit(USBD_HandleTypeDef *pdev)
De-Initializes the low level portion of the device driver.
Definition: usbd_conf.c:324
I2C_DUTYCYCLE_2
#define I2C_DUTYCYCLE_2
Definition: stm32f4xx_hal_i2c.h:230
rect_align_ui16
rect_ui16_t rect_align_ui16(rect_ui16_t rc, rect_ui16_t rc1, uint8_t align)
Definition: guitypes.c:64
jogwheel_config
jogwheel_config_t jogwheel_config
Definition: jogwheel.c:95
USB_EN_Pin
#define USB_EN_Pin
Definition: main.h:91
ALIGN_HMASK
#define ALIGN_HMASK
Definition: guitypes.h:13
st7789v_brightness_enable
void st7789v_brightness_enable(void)
Context::buffer
char * buffer
Definition: connection.hpp:33
_term_t::size
uint16_t size
Definition: term.h:48
I2C_HandleTypeDef
I2C handle Structure definition.
Definition: stm32f4xx_hal_i2c.h:164
guiconfig.h
gui_redraw
void gui_redraw(void)
Definition: gui.c:55
window_set_color_text
void window_set_color_text(int16_t id, color_t clr)
Definition: window.c:457
st7789v_inversion_tgl
void st7789v_inversion_tgl(void)
osEvent::signals
int32_t signals
signal flags
Definition: cmsis_os.h:400
st7789v_get_pixel_directColor
uint16_t st7789v_get_pixel_directColor(point_ui16_t pt)
Definition: st7789v.c:422
icon_meas
point_ui16_t icon_meas(const uint8_t *pi)
Definition: guitypes.c:155
hdma_usart2_rx
DMA_HandleTypeDef hdma_usart2_rx
Definition: main.c:94
_window_t::f_freemem
uint32_t f_freemem
Definition: window.h:93
window_menu_item_switch
void window_menu_item_switch(window_menu_t *window)
Definition: window_menu.c:242
usbd_core.h
Header file for usbd_core.c file.
ALIGN_VMASK
#define ALIGN_VMASK
Definition: guitypes.h:17
ALIGN_LEFT_CENTER
#define ALIGN_LEFT_CENTER
Definition: guitypes.h:21
_window_text_t::alignment
uint8_t alignment
Definition: window_text.h:22
HAL_PCD_ConnectCallback
void HAL_PCD_ConnectCallback(PCD_HandleTypeDef *hpcd)
Connect callback.
Definition: usbd_conf.c:269
info
uint8_t info[12]
Definition: masstorage.h:54