gpio_getFilteringHit()
| Usage |
gpio_getFilteringHit(reg) |
| Parameters |
[IN] reg base address of specific
I2C |
| Include |
driver/i2c.h |
| Description |
Read the 32-bit I2C register filter hit with a call back
function. |
| Example |
if(gpio_getFilteringHit(I2C_CTRL) == 1);
// Check filter hit value, bit [7] from slave address,
// read =’1’ write =’0’
|
Note: gpio_getFilteringHit() is deprecated, use
i2C_getFilteringHit() instead.
gpio_getFilteringStatus()
| Usage |
gpio_getFilteringStatus(reg) |
| Parameters |
[IN] reg base address of specific
I2C |
| Include |
driver/i2c.h |
| Description |
Read the 32-bit I2C register filter status with a call back
function. |
| Example |
if(gpio_getFilteringStatus (I2C_CTRL) == 1);
// Check filter hit status, bit [7] from slave address,
// read =’1’ write =’0
|
Note: gpio_getFilteringStatus() is deprecated, use
i2C_getFilteringStatus() instead.
gpio_getInterruptFlag()
| Usage |
gpio_getInterruptFlag(reg) |
| Parameters |
[IN] reg base address of specific
I2C |
| Returns |
[OUT] 32-bit I2C register interrupt flag |
| Include |
driver/i2c.h |
| Description |
Read the 32-bit I2C register interrupt flag with a call back
function. |
| Example |
Int flag = gpio_getInterruptFlag(I2C_CTRL) & I2C_INTERRUPT_DROP;
// Get Drop interrupt flag from Interrupt register
//[2] I2C_INTERRUPT_TX_DATA
//[3] I2C_INTERRUPT_TX_ACK
//[7] I2C_INTERRUPT_DROP
//[16] I2C_INTERRUPT_CLOCK_GEN_BUSY
//[17] I2C_INTERRUPT_FILTER
|
Note: gpio_getInterruptFlag() is deprecated, use
i2C_getInterruptFlag() instead.
gpio_getMasterStatus()
| Usage |
gpio_getMasterStatus(reg) |
| Parameters |
[IN] reg base address of specific
I2C |
| Returns |
[OUT] 32-bit I2C register master status |
| Include |
driver/i2c.h |
| Description |
Read the 32-bit I2C register master status with a call back
function. |
| Example |
int status = gpio_getMasterStatus(I2C_CTRL) & I2C_MASTER_BUSY;
// Get master busy status from status register
[0]I2C_MASTER_BUSY
[4]I2C_MASTER_START
[5]I2C_MASTER_STOP
[6]I2C_MASTER_DROP
|
Note: gpio_getMasterStatus() is deprecated, use
i2C_getMasterStatus() instead.
gpio_getOutput()
| Usage |
gpio_getOutput(reg) |
| Parameters |
[IN] reg base address of specific GPIO |
| Returns |
[OUT] 32-bit GPIO output state |
| Include |
driver/gpio.h |
| Description |
Read the output pin. |
gpio_getOutputEnable()
| Usage |
gpio_getOutputEnable(reg) |
| Parameters |
[IN] reg base address of specific GPIO |
| Returns |
[OUT] 32-bit GPIO output enable setting |
| Include |
driver/gpio.h |
| Description |
Read GPIO output enable. |
gpio_setOutput()
| Usage |
gpio_setOutput(reg, value) |
| Parameters |
[IN] reg base address of specific GPIO[IN]
value GPIO pin bitwise |
| Include |
driver/gpio.h |
| Description |
Set GPIO as 1 or 0. |
gpio_setOutputEnable()
| Usage |
gpio_setOutputEnable(reg, value) |
| Parameters |
[IN] reg base address of specific GPIO[IN]
value GPIO pin bitwise |
| Include |
driver/gpio.h |
| Description |
Set 1 to set GPIO bit as output. Set 0 to set GPIO bit as
input. |
gpio_setInterruptRiseEnable()
| Usage |
gpio_setInterruptRiseEnable(reg, value) |
| Parameters |
[IN] reg base address of specific GPIO[IN]
value GPIO Rise Interrupt Enable
bitwise |
| Include |
driver/gpio.h |
| Description |
Set 1 to set GPIO bit to interrupt when a rising edge is
detected. |
gpio_setInterruptFallEnable()
| Usage |
gpio_setInterruptFallEnable(reg, value) |
| Parameters |
[IN] reg base address of specific GPIO[IN]
value GPIO Fall Interrupt Enable
bitwise |
| Include |
driver/gpio.h |
| Description |
Set 1 to set GPIO bit to interrupt when a falling edge is detected. |
gpio_setInterruptHighEnable()
| Usage |
gpio_setInterruptHighEnable(reg, value) |
| Parameters |
[IN] reg base address of specific GPIO[IN]
value GPIO High Interrupt Enable
bitwise |
| Include |
driver/gpio.h |
| Description |
Set 1 to set GPIO bit to interrupt when a high state is
detected. |
gpio_setInterruptLowEnable()
| Usage |
gpio_setInterruptLowEnable(reg, value) |
| Parameters |
[IN] reg base address of specific GPIO[IN]
value GPIO Low Interrupt Enable
bitwise |
| Include |
driver/gpio.h |
| Description |
Set 1 to set GPIO bit to interrupt when a low state is
detected. |