aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/outputsp.h
blob: a7b1b9e979acab16cd9c252e9cb15c3b100e16ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef OUTPUTSP_H_
#define OUTPUTSP_H_

#include "pwm.h"


uint16_t output_setpoint_get(uint8_t index, bool hsl);
void output_setpoint_set(IF_MULTIPWM(uint8_t index,)
				     bool allow_hsl,
				     uint16_t setpoint);

void output_setpoint_convert_hsl2rgb(const uint16_t *hsl);
void output_setpoint_transform(IF_MULTIPWM(uint8_t index,)
			       bool allow_hsl,
			       uint16_t raw_adc,
			       uint16_t *raw_setpoint,
			       uint16_t *filt_setpoint);

void output_setpoint_wakeup(void);
void output_setpoint_init(void);

#endif /* OUTPUTSP_H_ */
bues.ch cgit interface