mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-02-09 18:40:46 -07:00
Rework the trigger_analog code to support different "trigger" conditions. This merges in features of ldc1612.c into trigger_analog.c, such as error code reporting in the MCU. This is in preparation for using trigger_analog with ldc1612. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
10 lines
329 B
C
10 lines
329 B
C
#ifndef __TRIGGER_ANALOG_H
|
|
#define __TRIGGER_ANALOG_H
|
|
|
|
#include <stdint.h> // uint8_t
|
|
|
|
struct trigger_analog *trigger_analog_oid_lookup(uint8_t oid);
|
|
void trigger_analog_note_error(struct trigger_analog *ta, uint8_t sensor_code);
|
|
void trigger_analog_update(struct trigger_analog *ta, int32_t sample);
|
|
|
|
#endif // trigger_analog.h
|