summaryrefstree
path: root/kernel/drivers/media/isdbt/fc8180_spi/fc8180_spib.h
blob: 4c9ef276e93c1510e36340307f679ae0a50ea935 (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
34
/*****************************************************************************
 Copyright(c) 2014 FCI Inc. All Rights Reserved

 File name : fc8180_spib.c

 Description : API of 1-SEG baseband module

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

#ifndef __FC8180_SPIB__
#define __FC8180_SPIB__

#ifdef __cplusplus
extern "C" {
#endif

extern s32 fc8180_spib_init(HANDLE handle, u16 param1, u16 param2);
extern s32 fc8180_spib_byteread(HANDLE handle, u16 addr, u8 *data);
extern s32 fc8180_spib_wordread(HANDLE handle, u16 addr, u16 *data);
extern s32 fc8180_spib_longread(HANDLE handle, u16 addr, u32 *data);
extern s32 fc8180_spib_bulkread(HANDLE handle, u16 addr, u8 *data, u16 length);
extern s32 fc8180_spib_bytewrite(HANDLE handle, u16 addr, u8 data);
extern s32 fc8180_spib_wordwrite(HANDLE handle, u16 addr, u16 data);
extern s32 fc8180_spib_longwrite(HANDLE handle, u16 addr, u32 data);
extern s32 fc8180_spib_bulkwrite(HANDLE handle, u16 addr, u8 *data, u16 length);
extern s32 fc8180_spib_dataread(HANDLE handle, u16 addr, u8 *data, u32 length);
extern s32 fc8180_spib_deinit(HANDLE handle);

#ifdef __cplusplus
}
#endif

#endif /* __FC8180_SPIB__ */