//------------------------------------------------------------------------------ //! @brief Standard Destructor //------------------------------------------------------------------------------ GpioManager::~GpioManager() { std::map< epicsUInt32, GPIO >::iterator it = _mgpio.begin(); for( ; it != _mgpio.end(); ++it ) { unexportPin( it->first ); } _mgpio.clear(); }
Input::~Input() { close(_fd); unexportPin(_pin); }
Output::~Output() { close(_fd); setDirection(_pin, Direction::IN); unexportPin(_pin); }