⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spi.h

📁 RT-Thread是发展中的下一代微内核嵌入式实时操作系统
💻 H
字号:
/* * File      : spi.h
 * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006, RT-Thread Develop Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://openlab.rt-thread.com/license/LICENSE * * Change Logs: * Date           Author       Notes * 2006-08-17     Vai          Nintendo DS(ARM7TDMI part) version
 */

#ifndef __SPI_H__
#define __SPI_H__

signed int touch_read_value(int measure, int retry , int range);

#define POWER0_SOUND_AMP	(1<<0)
#define POWER0_LOWER_BACKLIGHT	(1<<2)
#define POWER0_UPPER_BACKLIGHT	(1<<3)
#define POWER0_LED_BLINK	(1<<4)
#define POWER0_LED_FAST		(1<<5)
#define POWER0_SYSTEM_POWER	(1<<6)

enum power_reg {
	POWER_CONTROL,
	POWER_BATTERY,
	POWER_MIC_CONTROL,
	POWER_MIC_GAIN
};

unsigned char power_read(enum power_reg);
void power_write(enum power_reg, unsigned char val);

void read_firmware(unsigned int address, unsigned char * destination, int count);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -