APM:Libraries
|
#include <GPIO.h>
Public Member Functions | |
GPIO () | |
virtual void | init ()=0 |
virtual void | pinMode (uint8_t pin, uint8_t output)=0 |
virtual void | pinMode (uint8_t pin, uint8_t output, uint8_t alt) |
virtual uint8_t | read (uint8_t pin)=0 |
virtual void | write (uint8_t pin, uint8_t value)=0 |
virtual void | toggle (uint8_t pin)=0 |
virtual int8_t | analogPinToDigitalPin (uint8_t pin)=0 |
virtual AP_HAL::DigitalSource * | channel (uint16_t n)=0 |
virtual bool | attach_interrupt (uint8_t interrupt_num, AP_HAL::Proc p, uint8_t mode)=0 |
virtual bool | usb_connected (void)=0 |
|
inline |
|
pure virtual |
Implemented in F4Light::GPIO, Linux::GPIO_BBB, Linux::GPIO_Sysfs, Linux::GPIO_RPI, PX4::PX4GPIO, ChibiOS::GPIO, VRBRAIN::VRBRAINGPIO, Empty::GPIO, and HALSITL::GPIO.
Referenced by AP_Camera::feedback_pin_timer().
|
pure virtual |
Implemented in F4Light::GPIO, Linux::GPIO_BBB, Linux::GPIO_RPI, Linux::GPIO_Sysfs, PX4::PX4GPIO, ChibiOS::GPIO, VRBRAIN::VRBRAINGPIO, Empty::GPIO, and HALSITL::GPIO.
Referenced by AP_RPM_Pin::update().
|
pure virtual |
Implemented in F4Light::GPIO, Linux::GPIO_BBB, Linux::GPIO_RPI, Linux::GPIO_Sysfs, PX4::PX4GPIO, ChibiOS::GPIO, VRBRAIN::VRBRAINGPIO, Empty::GPIO, and HALSITL::GPIO.
Referenced by AP_InertialSensor_BMI160::_configure_int1_pin(), AP_Baro_BMP085::_init(), AP_InertialSensor_Invensense::_init(), AP_InertialSensor_LSM9DS1::_init_sensor(), AP_InertialSensor_LSM9DS0::_init_sensor(), Linux::CameraSensor_Mt9v117::_init_sensor(), DiscreteRGBLed::hw_init(), Linux::RCOutput_PCA9685::init(), AP_Compass_LSM303D::init(), Linux::RCInput_RPI::init(), Linux::SPIDevice::SPIDevice(), test_gpio_input(), and test_gpio_output().
|
pure virtual |
Implemented in F4Light::GPIO, Linux::GPIO_BBB, Linux::GPIO_RPI, Linux::GPIO_Sysfs, PX4::PX4GPIO, ChibiOS::GPIO, VRBRAIN::VRBRAINGPIO, Empty::GPIO, and HALSITL::GPIO.
Referenced by AP_BoardConfig::board_setup(), AP_BoardConfig::px4_setup_peripherals(), HAL_Linux::run(), and HAL_F4Light::run().
|
pure virtual |
Implemented in F4Light::GPIO, Linux::GPIO_BBB, Linux::GPIO_RPI, Linux::GPIO_Sysfs, PX4::PX4GPIO, ChibiOS::GPIO, VRBRAIN::VRBRAINGPIO, Empty::GPIO, and HALSITL::GPIO.
Referenced by AP_AdvancedFailsafe::check(), VRBRAIN::VRBRAINRCOutput::cork(), PX4::PX4RCOutput::cork(), AP_Camera::feedback_pin_timer(), AP_AdvancedFailsafe::heartbeat(), Linux::HeatPwm::HeatPwm(), Linux::RCInput_PRU::init(), Buzzer::init(), Linux::DigitalSource::mode(), PX4::PX4AnalogIn::next_stop_pin(), VRBRAIN::VRBRAINAnalogIn::next_stop_pin(), AP_Relay::off(), AP_Relay::on(), VRBRAIN::VRBRAINRCOutput::push(), PX4::PX4RCOutput::push(), AP_LeakDetector_Digital::read(), ChibiOS::RCOutput::serial_read_bytes(), AP_Button::setup_pins(), test_gpio_input(), test_gpio_output(), AP_SBusOut::update(), AP_RCProtocol_DSM::update(), and AP_RangeFinder_PX4_PWM::update().
|
inlinevirtual |
Reimplemented in Linux::GPIO_RPI.
Definition at line 31 of file GPIO.h.
|
pure virtual |
Implemented in F4Light::GPIO, Linux::GPIO_BBB, Linux::GPIO_RPI, Linux::GPIO_Sysfs, PX4::PX4GPIO, ChibiOS::GPIO, VRBRAIN::VRBRAINGPIO, Empty::GPIO, and HALSITL::GPIO.
Referenced by HALSITL::DigitalSource::DigitalSource(), AP_Camera::feedback_pin_timer(), AP_Button::get_mask(), AP_LeakDetector_Digital::read(), Linux::DigitalSource::read(), test_gpio_input(), and AP_Relay::toggle().
|
pure virtual |
Implemented in F4Light::GPIO, Linux::GPIO_BBB, Linux::GPIO_RPI, Linux::GPIO_Sysfs, PX4::PX4GPIO, ChibiOS::GPIO, VRBRAIN::VRBRAINGPIO, Empty::GPIO, and HALSITL::GPIO.
|
pure virtual |
Implemented in F4Light::GPIO, Linux::GPIO_BBB, Linux::GPIO_RPI, Linux::GPIO_Sysfs, PX4::PX4GPIO, ChibiOS::GPIO, VRBRAIN::VRBRAINGPIO, Empty::GPIO, and HALSITL::GPIO.
Referenced by PX4::PX4UARTDriver::_timer_tick(), VRBRAIN::VRBRAINUARTDriver::_timer_tick(), DataFlash_Class::handle_log_send(), GCS_MAVLINK::have_flow_control(), GCS_MAVLINK::telemetry_delayed(), and RGBLed::update_colours().
|
pure virtual |
Implemented in F4Light::GPIO, Linux::GPIO_BBB, Linux::GPIO_RPI, Linux::GPIO_Sysfs, PX4::PX4GPIO, ChibiOS::GPIO, VRBRAIN::VRBRAINGPIO, Empty::GPIO, and HALSITL::GPIO.
Referenced by AP_AdvancedFailsafe::check(), VRBRAIN::VRBRAINRCOutput::cork(), PX4::PX4RCOutput::cork(), HALSITL::DigitalSource::DigitalSource(), AP_Camera::feedback_pin_timer(), AP_AdvancedFailsafe::heartbeat(), Linux::HeatPwm::HeatPwm(), PixRacerLED::hw_init(), PixRacerLED::hw_set_rgb(), Linux::RCInput_PRU::init(), PX4::PX4AnalogIn::next_stop_pin(), VRBRAIN::VRBRAINAnalogIn::next_stop_pin(), AP_Relay::off(), AP_Relay::on(), Buzzer::on(), VRBRAIN::VRBRAINRCOutput::push(), PX4::PX4RCOutput::push(), AP_Button::setup_pins(), test_gpio_output(), AP_SBusOut::update(), AP_RCProtocol_DSM::update(), AP_RangeFinder_PX4_PWM::update(), and Linux::DigitalSource::write().