summaryrefslogtreecommitdiff
path: root/board/servo_v4p1/ccd_measure_sbu.h
blob: 0dd1ce0de7ceb46f0e21e70dc878400b989ef10d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Copyright 2020 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef __CROS_EC_CCD_MEASURE_SBU_H
#define __CROS_EC_CCD_MEASURE_SBU_H

/**
 * Enables or disables CCD for use with SuzyQ cable
 *
 * @param en    0 - Disable CCD
 *              1 - Enable CCD
 */
void ccd_enable(int enable);

/**
 * Triggers the detection of a SuzyQ cable every 100mS
 */
void start_ccd_meas_sbu_cycle(void);

#endif /* __CROS_EC_CCD_MEASURE_SBU_H */