MAV'RIC
|
Public Member Functions | |
virtual bool | init (void)=0 |
Hardware initialization. | |
virtual bool | configure (gpio_dir_t dir, gpio_pull_updown_t pull)=0 |
Configures the GPIO. | |
virtual bool | set_high (void)=0 |
Write 1 to the gpio. | |
virtual bool | set_low (void)=0 |
Write 0 to the gpio. | |
virtual bool | toggle (void)=0 |
Toggle the gpio value. | |
virtual bool | write (bool level)=0 |
Write to the gpio pin. | |
virtual bool | read (void)=0 |
Read the current gpio level. |
virtual bool Gpio::configure | ( | gpio_dir_t | dir, |
gpio_pull_updown_t | pull | ||
) | [pure virtual] |
Configures the GPIO.
dir | Pin direction (one of enum gpio_dir_t) |
pull | Pin pull up/down (one of enum gpio_pull_updown_t) |
Implemented in Gpio_stm32, Gpio_avr32, Gpio_dummy, and Gpio_chibios.
virtual bool Gpio::init | ( | void | ) | [pure virtual] |
Hardware initialization.
Implemented in Gpio_stm32, Gpio_avr32, Gpio_dummy, and Gpio_chibios.
virtual bool Gpio::read | ( | void | ) | [pure virtual] |
Read the current gpio level.
Implemented in Gpio_stm32, Gpio_avr32, Gpio_dummy, and Gpio_chibios.
virtual bool Gpio::set_high | ( | void | ) | [pure virtual] |
Write 1 to the gpio.
Implemented in Gpio_stm32, Gpio_avr32, Gpio_dummy, and Gpio_chibios.
virtual bool Gpio::set_low | ( | void | ) | [pure virtual] |
Write 0 to the gpio.
Implemented in Gpio_stm32, Gpio_avr32, Gpio_dummy, and Gpio_chibios.
virtual bool Gpio::toggle | ( | void | ) | [pure virtual] |
Toggle the gpio value.
Writes 0 if currently high, writes 1 if currently low
Implemented in Gpio_stm32, Gpio_avr32, Gpio_dummy, and Gpio_chibios.
virtual bool Gpio::write | ( | bool | level | ) | [pure virtual] |
Write to the gpio pin.
level | Value to write |
Implemented in Gpio_stm32, Gpio_avr32, Gpio_dummy, and Gpio_chibios.