aboutsummaryrefslogtreecommitdiff
path: root/devices/backlight.h
blob: a178dbb0a67ee129aa61c43f1cc4ad485f8aa898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _INCLUDE_GUARD_BACKLIGHT_H
#define _INCLUDE_GUARD_BACKLIGHT_H


#include "device.h"

class backlight: public device {
	int min_level, max_level;
	int start_level, end_level;
	char sysfs_path[4096];
	char name[4096];
public:

	backlight(char *_name, char *path);

	virtual void start_measurement(void);
	virtual void end_measurement(void);

	virtual double	utilization(void); /* percentage */

	virtual const char * class_name(void) { return "backlight";};

	virtual const char * device_name(void);
	virtual double power_usage(struct result_bundle *result, struct parameter_bundle *bundle);
};

extern void create_all_backlights(void);


#endif