/** * @brief Releases the timer queue lock * @return OSLockResult structure */ OSLockResult putTimerQLock() { return timerq_lock->unlock(); }
/** * @brief Gets the timer queue lock * @return OSLockResult structure */ OSLockResult getTimerQLock() { return timerq_lock->lock(); }
/** * @brief Unlocks the port TX. * @return TRUE if success. FALSE otherwise. */ bool putTxLock() { return port_tx_lock->unlock() == oslock_ok ? true : false; }
/** * @brief Locks the TX port * @return TRUE if success. FALSE otherwise. */ bool getTxLock() { return port_tx_lock->lock() == oslock_ok ? true : false; }
/** * @brief Unlocks PDelay RX. * @return TRUE if success. FALSE otherwise */ bool putPDelayRxLock() { return pdelay_rx_lock->unlock() == oslock_ok ? true : false; }
/** * @brief Do a trylock on the PDelay RX * @return TRUE if acquired the lock. FALSE otherwise. */ bool tryPDelayRxLock() { return pdelay_rx_lock->trylock() == oslock_ok ? true : false; }