📄 i2cregs.h
字号:
/*
* Voyager GX SDK
*
* This file contains the definitions for the I2C registers.
*
* Written by Alexei Chlytchkov
* Copyright (c) 2002 - Silicon Motion, Inc.
* All Rights Reserved.
*
*/
#define I2C_BYTE_COUNT 0x010040
#define I2C_BYTE_COUNT_COUNT 3:0
#define I2C_CONTROL 0x010041
#define I2C_CONTROL_REPEAT_START 6:6
#define I2C_CONTROL_REPEAT_START_DISABLE 0
#define I2C_CONTROL_REPEAT_START_ENABLE 1
#define I2C_CONTROL_ERROR 5:5
#define I2C_CONTROL_ERROR_CLEAR 0
#define I2C_CONTROL_ERROR_ACKNOWLEDGE 1
#define I2C_CONTROL_INTERRUPT 4:4
#define I2C_CONTROL_INTERRUPT_DISABLE 0
#define I2C_CONTROL_INTERRUPT_ENABLE 1
#define I2C_CONTROL_DIRECTION 3:3
#define I2C_CONTROL_DIRECTION_READ 0
#define I2C_CONTROL_DIRECTION_WRITE 1
#define I2C_CONTROL_STATUS 2:2
#define I2C_CONTROL_STATUS_STOP 0
#define I2C_CONTROL_STATUS_START 1
#define I2C_CONTROL_MODE 1:1
#define I2C_CONTROL_MODE_STANDARD 0
#define I2C_CONTROL_MODE_FAST 1
#define I2C_CONTROL_I2C 0:0
#define I2C_CONTROL_I2C_DISABLE 0
#define I2C_CONTROL_I2C_ENABLE 1
#define I2C_STATUS 0x010042
#define I2C_STATUS_TRANSFER 3:3
#define I2C_STATUS_TRANSFER_CLEAR 0
#define I2C_STATUS_TRANSFER_COMPLETE 1
#define I2C_STATUS_ERROR 2:2
#define I2C_STATUS_ERROR_CLEAR 0
#define I2C_STATUS_ERROR_BUS_ERROR 1
#define I2C_STATUS_ACK 1:1
#define I2C_STATUS_ACK_CLEAR 0
#define I2C_STATUS_ACK_NOT_RECEIVED 1
#define I2C_STATUS_BUS 0:0
#define I2C_STATUS_BUS_IDLE 0
#define I2C_STATUS_BUS_BUSY 1
#define I2C_SLAVE 0x010043
#define I2C_SLAVE_ADDRESS 7:0
#define I2C_SLAVE_SELECT 0:0
#define I2C_SLAVE_SELECT_WRITE 0
#define I2C_SLAVE_SELECT_READ 1
#define I2C_DATA 0x010044
#define I2C_DATA_0 0x010044
#define I2C_DATA_1 0x010045
#define I2C_DATA_2 0x010046
#define I2C_DATA_3 0x010047
#define I2C_DATA_4 0x010048
#define I2C_DATA_5 0x010049
#define I2C_DATA_6 0x01004A
#define I2C_DATA_7 0x01004B
#define I2C_DATA_8 0x01004C
#define I2C_DATA_9 0x01004D
#define I2C_DATA_A 0x01004E
#define I2C_DATA_B 0x01004F
#define I2C_DATA_C 0x010050
#define I2C_DATA_D 0x010051
#define I2C_DATA_E 0x010052
#define I2C_DATA_F 0x010053
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -