|
DGUS LCD Library
1
|
DGUS II LCD Driver Utility functions. More...
#include <string.h>#include <stdio.h>#include <stdlib.h>#include <stdint.h>#include <stddef.h>#include <time.h>#include "dgus.h"#include "dgus_control_curve.h"
Typedefs | |
| typedef struct curve_data_t | curve_data |
Functions | |
| struct | __attribute__ ((packed)) |
| position and size of the control More... | |
| curve * | dgus_curve_buffer_create (uint8_t num_curves, uint8_t datapoint_buffer_len) |
| Initialise a new curve buffer, allocating the memory required. More... | |
| void | dgus_curve_init_channel (curve *cur, uint8_t channel_id) |
| Initialise a channel. More... | |
| void | dgus_curve_destroy (curve *cur) |
| Destroy a curve buffer and all. More... | |
| DGUS_RETURN | dgus_curve_add_data (curve *cur, uint8_t chan_id, uint16_t data) |
| Append some data to the curve buffer for batch sending. More... | |
| DGUS_RETURN | dgus_curve_send_data (curve *cur) |
| Send the data we have aggregated in the curve instance. More... | |
| DGUS_RETURN | dgus_curve_reset (curve *cur, uint8_t chan_id) |
| Reset a curve on screen. This will not affect the buffer. More... | |
Variables | |
| dgus_curve_data | |
DGUS II LCD Driver Utility functions.
| typedef struct curve_data_t curve_data |
local app Storage for the curve data
| struct __attribute__ | ( | (packed) | ) |
position and size of the control
System configuration information.
Brightnedd LED configuration.
< Brightness while not in idle (0x0- 0x64)
< Brightness while in idle (0x0- 0x64)
< Time before we idle /5ms
| DGUS_RETURN dgus_curve_add_data | ( | curve * | cur, |
| uint8_t | chan_id, | ||
| uint16_t | data | ||
| ) |
Append some data to the curve buffer for batch sending.
| cur | curve handle |
| chan_id | channel id |
| data | data to append |
| curve* dgus_curve_buffer_create | ( | uint8_t | num_curves, |
| uint8_t | datapoint_buffer_len | ||
| ) |
Initialise a new curve buffer, allocating the memory required.
| num_curves | How many channels are enabled on the DGUS |
| datapoint_buffer_len | How much data should be send at once |
| void dgus_curve_destroy | ( | curve * | cur | ) |
Destroy a curve buffer and all.
| cur | curve |
| void dgus_curve_init_channel | ( | curve * | cur, |
| uint8_t | channel_id | ||
| ) |
Initialise a channel.
| cur | curve handle |
| channel_id | channel id we want to send data to |
| DGUS_RETURN dgus_curve_reset | ( | curve * | cur, |
| uint8_t | chan_id | ||
| ) |
Reset a curve on screen. This will not affect the buffer.
| cur | curve handle |
| chan_id | channel id |
| DGUS_RETURN dgus_curve_send_data | ( | curve * | cur | ) |
Send the data we have aggregated in the curve instance.
| cur | the curve handle |
| dgus_curve_data |
Curve packet format data