Web DMX - Firmware
Web DMX - Firmware
|
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | DMX_CHANNEL_MAX 512 |
#define | DMX_CHANNEL_MIN 1 |
#define | DMX_VALUE_MAX 255 |
#define | DMX_VALUE_MIN 0 |
Functions | |
void | serial_input (uint8_t *byte) |
Input bytes. | |
uint8_t | is_lane_modify_received () |
Check a lane modify packet is received. | |
uint8_t | get_lane_modify_data (uint16_t *channel, uint8_t *value) |
Get lane modify packet data and reset the flag of lane modify packet received. | |
uint8_t | is_values_request_received () |
Check a values request packet is received. | |
void | reset_values_request_received () |
Reset the flag of values request packet received. |
Bytes processing module for 'Lane modify packet' and 'Value request packet' receiving
uint8_t get_lane_modify_data | ( | uint16_t * | channel, |
uint8_t * | value ) |
Get lane modify packet data and reset the flag of lane modify packet received.
[out] | channel | Received data body - channel |
[out] | value | Received data body - value |
uint8_t is_lane_modify_received | ( | ) |
Check a lane modify packet is received.
uint8_t is_values_request_received | ( | ) |
Check a values request packet is received.
void serial_input | ( | uint8_t * | bytes | ) |
Input bytes.
[in] | byte | Data input from serial (length must be 3bytes) |