analog.h File Reference

Go to the source code of this file.

Macros

#define WriteAnalogReg   analog_write
 
#define ReadAnalogReg   analog_read
 

Functions

unsigned char analog_read (unsigned char addr)
 This function serves to analog register read. More...
 
void analog_write (unsigned char addr, unsigned char v)
 This function serves to analog register write. More...
 
void analog_read_buff (unsigned char addr, unsigned char *buff, int len)
 This function serves to analog register read. More...
 
void analog_write_buff (unsigned char addr, unsigned char *buff, int len)
 This function serves to analog register write. More...
 

Macro Definition Documentation

◆ WriteAnalogReg

#define WriteAnalogReg   analog_write

◆ ReadAnalogReg

#define ReadAnalogReg   analog_read

Function Documentation

◆ analog_read()

unsigned char analog_read ( unsigned char  addr)

This function serves to analog register read.

Parameters
[in]addr- address need to be read.
Returns
the result of read.

◆ analog_write()

void analog_write ( unsigned char  addr,
unsigned char  v 
)

This function serves to analog register write.

Parameters
[in]addr- address need to be write.
[in]v- the value need to be write.
Returns
none.

◆ analog_read_buff()

void analog_read_buff ( unsigned char  addr,
unsigned char *  buff,
int  len 
)

This function serves to analog register read.

Parameters
[in]addr- address need to be read.
[in]*buff- the value need to be read.
[in]len- the length of read value.
Returns
none.

◆ analog_write_buff()

void analog_write_buff ( unsigned char  addr,
unsigned char *  buff,
int  len 
)

This function serves to analog register write.

Parameters
[in]addr- address need to be write.
[in]*buff- the value need to be write.
[in]len- the length of write value.
Returns
none.