summaryrefslogtreecommitdiff
path: root/include/display_7seg.h
blob: 976d496ccb05437fa0a965d80e9ea4ad99f644fd (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
/* Copyright 2019 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* Seven Segment Display module for Chrome EC */

#ifndef __CROS_EC_DISPLAY_7SEG_H
#define __CROS_EC_DISPLAY_7SEG_H

enum seven_seg_module_display {
	SEVEN_SEG_CONSOLE_DISPLAY, /* Console data */
	SEVEN_SEG_EC_DISPLAY, /* power state */
	SEVEN_SEG_PORT80_DISPLAY, /* port80 data */
};

/**
 * Write register to MAX656x 7-segment display.
 *
 * @param module which is writing to the display
 * @param data to be displayed
 * @return EC_SUCCESS is write is successful
 */
int display_7seg_write(enum seven_seg_module_display module, uint16_t data);

#endif /* __CROS_EC_DISPLAY_7SEG_H */