Go to the source code of this file.
◆ gpio_mode
GPIOs possible modes
Enumerator gpio_mode
| name | description |
| GPIO_MODE_MGMT_STD_INPUT_NOPULL | Management input with no pull (floating is read as Z) |
| GPIO_MODE_MGMT_STD_INPUT_PULLDOWN | Management input pull-down (floating is read as 0) |
| GPIO_MODE_MGMT_STD_INPUT_PULLUP | Management input pull-up (floating is read as 1) |
| GPIO_MODE_MGMT_STD_OUTPUT | Management output |
| GPIO_MODE_MGMT_STD_BIDIRECTIONAL | Management bi-direction |
| GPIO_MODE_MGMT_STD_ANALOG | Management Analog |
| GPIO_MODE_USER_STD_INPUT_NOPULL | User input with no pull (floating is read as Z) |
| GPIO_MODE_USER_STD_INPUT_PULLDOWN | User input pull-down (floating is read as 0) |
| GPIO_MODE_USER_STD_INPUT_PULLUP | User input pull-up (floating is read as 1) |
| GPIO_MODE_USER_STD_OUTPUT | User output |
| GPIO_MODE_USER_STD_BIDIRECTIONAL | User bi-direction |
| GPIO_MODE_USER_STD_OUT_MONITORED | User Monitor same as output |
| GPIO_MODE_USER_STD_ANALOG | User Analog |
◆ GPIOs_configure()
| void GPIOs_configure |
( |
int |
gpio_num, |
|
|
enum gpio_mode |
config |
|
) |
| |
Configure one GPIO with the input config
- Parameters
-
| config | is configuration of type gpio_mode |
| gpio_num | is GPIO number it can have values from 0 to 37 |
- Note
- These configurations will not be change the GPIOs modes until calling GPIOs_loadConfigs()
◆ GPIOs_configureAll()
| void GPIOs_configureAll |
( |
enum gpio_mode |
config | ) |
|
Configure all GPIOs with the config
- Parameters
-
| config | is configuration of type gpio_mode |
- Note
- These configurations will not be change the GPIOs modes until calling GPIOs_loadConfigs()
◆ GPIOs_loadConfigs()
| void GPIOs_loadConfigs |
( |
| ) |
|
Load the configurations changes to the GPIOs
◆ GPIOs_readHigh()
| unsigned int GPIOs_readHigh |
( |
| ) |
|
Read the highest 6 GPIOs GPIOS[37:32]
- Note
- For Reading value from the GPIOs, the GPIO should be configured as management input. otherwise 0 would be read
◆ GPIOs_readLow()
| unsigned int GPIOs_readLow |
( |
| ) |
|
Read low 32 GPIOs GPIOS[31:0]
- Note
- For Reading value from the GPIOs, the GPIO should be configured as management input. otherwise 0 would be read
◆ GPIOs_waitHigh()
| void GPIOs_waitHigh |
( |
unsigned int |
data | ) |
|
wait over the highest 6 GPIOs to equal the data passed
- Note
- For writing by this function to be seen at the GPIO the GPIO has to be configured as management output
- Parameters
-
| data | is the data that should wait until sent to the GPIOs |
Examples:
◆ GPIOs_waitHighWithMask()
| void GPIOs_waitHighWithMask |
( |
unsigned int |
data, |
|
|
unsigned int |
mask |
|
) |
| |
wait over the masked highest 6 GPIOs to equal the data passed
- Note
- For writing by this function to be seen at the GPIO the GPIO has to be configured as management output
- Parameters
-
| data | is the data that should wait until sent to the GPIOs |
| mask | mask over the each GPIO if the mask value is 0 the this GPIO value are ignored |
Examples:
◆ GPIOs_waitLow()
| void GPIOs_waitLow |
( |
unsigned int |
data | ) |
|
wait over the lowest 32 GPIOsto equal the data passed
- Note
- For writing by this function to be seen at the GPIO the GPIO has to be configured as management output
- Parameters
-
| data | is the data that should wait until sent to the GPIOs |
Examples:
◆ GPIOs_waitLowWithMask()
| void GPIOs_waitLowWithMask |
( |
unsigned int |
data, |
|
|
unsigned int |
mask |
|
) |
| |
wait over the masked lowest 32 GPIOs to equal the data passed
- Note
- For writing by this function to be seen at the GPIO the GPIO has to be configured as management output
- Parameters
-
| data | is the data that should wait until sent to the GPIOs |
| mask | mask over the each GPIO if the mask value is 0 the this GPIO value are ignored |
Examples:
◆ GPIOs_writeHigh()
| void GPIOs_writeHigh |
( |
unsigned int |
data | ) |
|
Write to the highest 6 GPIOs GPIOS[37:32]
- Note
- For writing by this function to be seen at the GPIO the GPIO has to be configured as management output
- Parameters
-
| data | is the data sent to the GPIOs |
Examples:
◆ GPIOs_writeLow()
| void GPIOs_writeLow |
( |
unsigned int |
data | ) |
|
Write to the low 32 GPIOs GPIOS[31:0]
- Note
- For writing by this function to be seen at the GPIO the GPIO has to be configured as management output
- Parameters
-
| data | is the data sent to the GPIOs |
Examples:
◆ GPIOs_writeLowHigh()
| void GPIOs_writeLowHigh |
( |
long |
data | ) |
|
Write to the 38 GPIOs GPIOS[37:0]
- Note
- For writing by this function to be seen at the GPIO the GPIO has to be configured as management output
- Parameters
-
| data | is the data sent to the GPIOs |
Examples:
- Todo:
- verify this function