Web DMX - Firmware
Web DMX - Firmware
|
#include "serial_receiver.h"
Functions | |
void | serial_input (uint8_t *bytes) |
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. |
Variables | |
static uint16_t | channel_next = 0 |
static uint8_t | value_next = 0 |
static uint8_t | is_lane_modify_received_flag = 0 |
static uint8_t | is_values_request_received_flag = 0 |
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) |