18 typedef struct curve curve;
20 #define CURVE_ADDRESS 0x0310
21 #define CURVE_HEADER 0x5AA5
38 uint8_t distrance_horizontal;
curve * dgus_curve_buffer_create(uint8_t num_curves, uint8_t datapoint_buffer_len)
Initialise a new curve buffer, allocating the memory required.
Definition: dgus_control_curve.c:35
realtime_curve
Definition: dgus_control_curve.h:41
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.
Definition: dgus_control_curve.c:65
struct __attribute__((packed)) realtime_curve
SP Structure for realtime curve control.
Definition: dgus_control_curve.h:28
DGUS_RETURN dgus_curve_reset(curve *cur, uint8_t chan_id)
Reset a curve on screen. This will not affect the buffer.
Definition: dgus_control_curve.c:128
void dgus_curve_init_channel(curve *cur, uint8_t channel_id)
Initialise a channel.
Definition: dgus_control_curve.c:51
DGUS_RETURN dgus_curve_send_data(curve *cur)
Send the data we have aggregated in the curve instance.
Definition: dgus_control_curve.c:79
void dgus_curve_destroy(curve *cur)
Destroy a curve buffer and all.
Definition: dgus_control_curve.c:58
DGUS II LCD Driver. Register and cointrol definitions.
#define DGUS_RETURN
Definition: dgus_reg.h:33