/*
 * adc128s022.h
 *
 *  Created on: 2017-8-29
 *      Author: Administrator
 */

#ifndef SAMPLE_H_
#define SAMPLE_H_
#include "io.h"

#define IORD_MASTER_WR_CTRL_CONTROL(base)  				IORD(base, 0)
#define IOWR_MASTER_WR_CTRL_CONTROL(base, data)			IOWR(base, 0, data)

//ָݴ洢λûַĴ
#define IORD_MASTER_WR_CTRL_ADDR(base)  				IORD(base, 1)
#define IOWR_MASTER_WR_CTRL_ADDR(base, data)			IOWR(base, 1, data)

//ָȼĴ
#define IORD_MASTER_WR_CTRL_LENGTH(base)  				IORD(base, 2)
#define IOWR_MASTER_WR_CTRL_LENGTH(base, data)			IOWR(base, 2, data)

#endif /* ADC128S022_H_ */
