Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 75 lines (63 sloc) 2.801 kb
4bc042b initial public release v1.50
Patrick Titiano authored
1 /*
2 *
3 * @Component OMAPCONF
4 * @Filename vc.h
5 * @Description VOLTAGE CONTROLLER (VC) Common Definitions &
6 * Functions
7 * @Author Patrick Titiano (p-titiano@ti.com)
8 * @Date 2006
9 * @Copyright Texas Instruments Incorporated
10 *
11 *
12 * Copyright (C) 2006 Texas Instruments Incorporated - http://www.ti.com/
13 *
14 *
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions
17 * are met:
18 *
19 * Redistributions of source code must retain the above copyright
20 * notice, this list of conditions and the following disclaimer.
21 *
22 * Redistributions in binary form must reproduce the above copyright
23 * notice, this list of conditions and the following disclaimer in the
24 * documentation and/or other materials provided with the
25 * distribution.
26 *
27 * Neither the name of Texas Instruments Incorporated nor the names of
28 * its contributors may be used to endorse or promote products derived
29 * from this software without specific prior written permission.
30 *
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
36 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
37 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
38 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
39 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
40 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
41 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42 *
43 */
44
45
46 #ifndef __VC_H__
47 #define __VC_H__
48
49
50 #include <stdio.h>
51
52
53 short int vc_cmd_values_get(unsigned int prm_vc_val_cmd,
54 unsigned char *cmd_on, unsigned char *cmd_onlp,
55 unsigned char *cmd_ret, unsigned char *cmd_off);
56
57 unsigned char sri2c_is_double_filtering_enabled(
58 unsigned int prm_vc_cfg_i2c_mode);
59 unsigned char sri2c_is_sr_mode_enabled(unsigned int prm_vc_cfg_i2c_mode);
60 unsigned char sri2c_is_hs_mode_enabled(unsigned int prm_vc_cfg_i2c_mode);
61 unsigned char sri2c_master_code_get(unsigned int prm_vc_cfg_i2c_mode);
62
63 int sri2c_low_clock_cycles_count_get(unsigned int prm_vc_cfg_i2c_mode,
64 unsigned int prm_vc_cfg_i2c_clk,
65 unsigned char *cycles, double *us);
66 int sri2c_high_clock_cycles_count_get(unsigned int prm_vc_cfg_i2c_mode,
67 unsigned int prm_vc_cfg_i2c_clk,
68 unsigned char *cycles, double *us);
69
70 int sri2c_config_show(FILE *stream, unsigned int prm_vc_cfg_i2c_mode,
71 unsigned int prm_vc_cfg_i2c_clk);
72
73
74 #endif
Something went wrong with that request. Please try again.