analog.h
Go to the documentation of this file.
1 /********************************************************************************************************
2  * @file analog.h
3  *
4  * @brief This is the header file for TLSR8258
5  *
6  * @author Driver Group
7  * @date May 8, 2018
8  *
9  * @par Copyright (c) 2018, Telink Semiconductor (Shanghai) Co., Ltd.
10  * All rights reserved.
11  *
12  * The information contained herein is confidential property of Telink
13  * Semiconductor (Shanghai) Co., Ltd. and is available under the terms
14  * of Commercial License Agreement between Telink Semiconductor (Shanghai)
15  * Co., Ltd. and the licensee or the terms described here-in. This heading
16  * MUST NOT be removed from this file.
17  *
18  * Licensees are granted free, non-transferable use of the information in this
19  * file under Mutual Non-Disclosure Agreement. NO WARRENTY of ANY KIND is provided.
20  * @par History:
21  * 1.initial release(DEC. 26 2018)
22  *
23  * @version A001
24  *
25  *******************************************************************************************************/
26 
27 #pragma once
28 
29 #include "compiler.h"
30 
31 
37 unsigned char analog_read(unsigned char addr);
38 
45 void analog_write(unsigned char addr, unsigned char v);
46 
54 void analog_read_buff(unsigned char addr, unsigned char *buff, int len);
55 
63 void analog_write_buff(unsigned char addr, unsigned char *buff, int len);
64 
65 
66 #define WriteAnalogReg analog_write
67 #define ReadAnalogReg analog_read
68 
unsigned char analog_read(unsigned char addr)
This function serves to analog register read.
void analog_write_buff(unsigned char addr, unsigned char *buff, int len)
This function serves to analog register write.
void analog_read_buff(unsigned char addr, unsigned char *buff, int len)
This function serves to analog register read.
void analog_write(unsigned char addr, unsigned char v)
This function serves to analog register write.