8#ifndef _DMX512_DRIVER_H_
9#define _DMX512_DRIVER_H_
13#include "stm32f4xx_hal.h"
14#include "DMX512_defs.h"
16#define DMX512_BREAKMAB_BAUDRATE 0x186A0U
17#define DMX512_FRAME_BAUDRATE 0x3D090U
18#define DMX512_BREAKMAB_BYTESIZE 0x00001U
19#define DMX512_FRAME_BYTESIZE 0x00200U
20#define DMX512_BREAKMAB_BYTEDATA 0x00000U
29#define DEFAULT_DMX512_DRIVER {{}, {0}, DMX512_DRIVER_UNINITIALISED}
41 DMX512_DRIVER_THREAD_ERR,
42 DMX512_DRIVER_ADDRESS_OUT_OF_BOUNDS
53 DMX512_DRIVER_INITIALISED,
54 DMX512_DRIVER_UNINITIALISED
67 UART_HandleTypeDef uart;
DMX512_driver_err_e DMX512_driver_set_single(uint16_t address, uint8_t value)
Sets a buffer's address to a given value.
DMX512_driver_err_e
QLSF DMX512 driver error constants.
DMX512_driver_status_e DMX512_driver_get_status(void)
Returns the status of the DMX512 driver.
#define DMX512_FRAME_BYTESIZE
DMX512_driver_status_e
Status of the DMX512 driver instance.
DMX512_driver_err_e DMX512_driver_start(void)
Starts the DMX512 driver thread.
void DMX512_driver_init(void)
Initialises DMX512 driver periphals.
DMX512_driver_err_e DMX512_driver_stop(void)
Terminates the DMX512 driver thread.
Defines a DMX512 driver instance.