1.新增各设备读写类型(仅作提示)。
This commit is contained in:
@@ -29,6 +29,11 @@ extern "C" {
|
||||
#define MR_CTRL_ADC_SET_CHANNEL_STATE ((0x01|0x80) << 16) /**< Set channel state */
|
||||
#define MR_CTRL_ADC_GET_CHANNEL_STATE ((0x01|0x00) << 16) /**< Get channel state */
|
||||
|
||||
/**
|
||||
* @brief ADC data type.
|
||||
*/
|
||||
typedef uint32_t mr_adc_data_t; /**< ADC read data type */
|
||||
|
||||
/**
|
||||
* @brief ADC structure.
|
||||
*/
|
||||
|
||||
@@ -29,6 +29,11 @@ extern "C" {
|
||||
#define MR_CTRL_DAC_SET_CHANNEL_STATE ((0x01|0x80) << 16) /**< Set channel state */
|
||||
#define MR_CTRL_DAC_GET_CHANNEL_STATE ((0x01|0x00) << 16) /**< Get channel state */
|
||||
|
||||
/**
|
||||
* @brief DAC data type.
|
||||
*/
|
||||
typedef uint32_t mr_dac_data_t; /**< DAC write data type */
|
||||
|
||||
/**
|
||||
* @brief DAC structure.
|
||||
*/
|
||||
|
||||
@@ -47,6 +47,11 @@ extern "C" {
|
||||
*/
|
||||
#define MR_CTRL_GPIO_SET_PIN_MODE ((0x01|0x80) << 16) /**< Set pin mode */
|
||||
|
||||
/**
|
||||
* @brief GPIO data type.
|
||||
*/
|
||||
typedef uint8_t mr_gpio_data_t; /**< GPIO read/write data type */
|
||||
|
||||
/**
|
||||
* @brief GPIO structure.
|
||||
*/
|
||||
|
||||
@@ -51,6 +51,11 @@ struct mr_i2c_config
|
||||
uint32_t reserved: 25;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief I2C data type.
|
||||
*/
|
||||
typedef uint8_t mr_i2c_data_t; /**< I2C read/write data type */
|
||||
|
||||
/**
|
||||
* @brief I2C bus structure.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user