aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/isdbt/fc8150/fc8150_i2c.h
blob: 64d69de244290e761185aaf5b206ecf38629ac02 (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
31
32
33
/*****************************************************************************
 Copyright(c) 2012 FCI Inc. All Rights Reserved

 File name : fc8150_i2c.c

 Description : API of 1-SEG baseband module

*******************************************************************************/

#ifndef __FC8150_I2C_H__
#define __FC8150_I2C_H__

#ifdef __cplusplus
extern "C" {
#endif

extern int fc8150_i2c_init(HANDLE hDevice, u16 param1, u16 param2);
extern int fc8150_i2c_byteread(HANDLE hDevice, u16 addr, u8 *data);
extern int fc8150_i2c_wordread(HANDLE hDevice, u16 addr, u16 *data);
extern int fc8150_i2c_longread(HANDLE hDevice, u16 addr, u32 *data);
extern int fc8150_i2c_bulkread(HANDLE hDevice, u16 addr, u8 *data, u16 length);
extern int fc8150_i2c_bytewrite(HANDLE hDevice, u16 addr, u8 data);
extern int fc8150_i2c_wordwrite(HANDLE hDevice, u16 addr, u16 data);
extern int fc8150_i2c_longwrite(HANDLE hDevice, u16 addr, u32 data);
extern int fc8150_i2c_bulkwrite(HANDLE hDevice, u16 addr, u8 *data, u16 length);
extern int fc8150_i2c_dataread(HANDLE hDevice, u16 addr, u8 *data, u32 length);
extern int fc8150_i2c_deinit(HANDLE hDevice);

#ifdef __cplusplus
}
#endif

#endif