Web DMX - Firmware
Web DMX - Firmware
|
: Main program body More...
#include "main.h"
Functions | |
void | SystemClock_Config (void) |
System Clock Configuration. | |
static void | MX_GPIO_Init (void) |
GPIO Initialization Function. | |
static void | MX_USART1_UART_Init (void) |
USART1 Initialization Function. | |
static void | MX_USART2_UART_Init (void) |
USART2 Initialization Function. | |
static void | MX_TIM6_Init (void) |
TIM6 Initialization Function. | |
static void | MX_TIM7_Init (void) |
TIM7 Initialization Function. | |
void | HAL_TIM_PeriodElapsedCallback (TIM_HandleTypeDef *htim) |
Timers for DMX Break and MAB (Mark After Break) signal duration control. | |
void | HAL_UART_TxCpltCallback (UART_HandleTypeDef *huart) |
DMX data transmit ended, next frame Break signal start. | |
void | HAL_UART_RxCpltCallback (UART_HandleTypeDef *huart) |
For receive FW control packets from PC (web server) | |
int | main (void) |
The application entry point. | |
void | Error_Handler (void) |
This function is executed in case of error occurrence. |
Variables | |
TIM_HandleTypeDef | htim6 |
TIM_HandleTypeDef | htim7 |
UART_HandleTypeDef | huart1 |
UART_HandleTypeDef | huart2 |
uint8_t | vcp_rx_buf [3] |
uint8_t | dmx_values [DMX_CHANNEL_COUNT+1] = {} |
: Main program body
Copyright (c) 2025 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
void Error_Handler | ( | void | ) |
This function is executed in case of error occurrence.
None |
void HAL_TIM_PeriodElapsedCallback | ( | TIM_HandleTypeDef * | htim | ) |
Timers for DMX Break and MAB (Mark After Break) signal duration control.
[in] | htim | Period elapsed timer handler |
DMX signal transmit sequence below:
void HAL_UART_RxCpltCallback | ( | UART_HandleTypeDef * | huart | ) |
For receive FW control packets from PC (web server)
[in] | huart | RX completed uart handler |
void HAL_UART_TxCpltCallback | ( | UART_HandleTypeDef * | huart | ) |
DMX data transmit ended, next frame Break signal start.
[in] | huart | TX completed uart handler |
int main | ( | void | ) |
The application entry point.
int |
|
static |
GPIO Initialization Function.
None |
None |
|
static |
TIM6 Initialization Function.
None |
None |
|
static |
TIM7 Initialization Function.
None |
None |
|
static |
USART1 Initialization Function.
None |
None |
|
static |
USART2 Initialization Function.
None |
None |
void SystemClock_Config | ( | void | ) |
System Clock Configuration.
None |
Initializes the RCC Oscillators according to the specified parameters in the RCC_OscInitTypeDef structure.
Initializes the CPU, AHB and APB buses clocks