DGUS LCD Library
1
|
DGUS II LCD Driver Utility functions. More...
Go to the source code of this file.
Macros | |
#define | CURVE_ADDRESS 0x0310 |
#define | CURVE_HEADER 0x5AA5 |
Functions | |
struct | __attribute__ ((packed)) realtime_curve |
SP Structure for realtime curve 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... | |
DGUS_RETURN | dgus_curve_send_data (curve *cur) |
Send the data we have aggregated in the curve instance. 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_reset (curve *cur, uint8_t chan_id) |
Reset a curve on screen. This will not affect the buffer. More... | |
void | dgus_curve_destroy (curve *cur) |
Destroy a curve buffer and all. More... | |
Variables | |
realtime_curve | |
DGUS II LCD Driver Utility functions.
#define CURVE_ADDRESS 0x0310 |
VAR address to write each datapoint to
#define CURVE_HEADER 0x5AA5 |
CMD header to enable write mode
struct __attribute__ | ( | (packed) | ) |
SP Structure for realtime curve control.
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 |
realtime_curve |
Curve Data