Skip to content

Commit

Permalink
more doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
camilo committed Jun 7, 2024
1 parent db0ace0 commit 7157471
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/include/input.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ namespace qOS {
/**
* @brief Set the callback function when event are detected on the
* input input channel.
* @param[in] inputChannel The specified channel(pin) number to read.
* @param[in] invert To invert/negate the raw-reading.
* @param[in] cb The callback function
*/
inline bool setCallback( eventCallback_t cb ) noexcept
{
Expand Down Expand Up @@ -149,7 +148,7 @@ namespace qOS {
}
/**
* @brief Set the channel user-data.
* @param[in] A pointer to the user-data
* @param[in] pUserData A pointer to the user-data
*/
inline void setUserData( void* pUserData ) noexcept
{
Expand Down Expand Up @@ -185,7 +184,7 @@ namespace qOS {
* @param[in] p The value of the parameter.
* @return @c true on success. Otherwise @c false.
*/
virtual bool setParameter( const event e, const int value ) noexcept = 0;
virtual bool setParameter( const event e, const int p ) noexcept = 0;
/**
* @brief Get pulsation count for the digital input.
* @note No valid on analog inputs
Expand Down Expand Up @@ -253,7 +252,7 @@ namespace qOS {
* @param[in] p The value of the parameter.
* @return @c true on success. Otherwise @c false.
*/
bool setParameter( const event e, const int value ) noexcept override;
bool setParameter( const event e, const int p ) noexcept override;
/**
* @brief Get pulsation count for the digital input.
* @note No valid on analog inputs
Expand Down Expand Up @@ -367,11 +366,12 @@ namespace qOS {
/*! @endcond */
/**
* @brief Constructor for the input-watcher instance
* @param[in] rFcn A pointer to a function that reads the specific
* channel
* @param[in] rDigital A pointer to a function that reads the specific
* digital input channel
* @param[in] rAnalog A pointer to a function that reads the specific
* analog input channel
* @param[in] timeDebounce The specified time to bypass the
* bounce of the digital input channels
* @return @c true on success. Otherwise @c false.
*/
watcher( const channelReaderFcn_t& rDigital, const channelReaderFcn_t& rAnalog, const qOS::duration_t timeDebounce = 100_ms ) :
debounceTime( timeDebounce ), digitalReader( rDigital ), analogReader( rAnalog ) {}
Expand Down
2 changes: 0 additions & 2 deletions src/include/memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ namespace qOS {
* allocated to act as Heap of the memory pool. The size of this block should
* match the @a pSize argument.
* @param[in] pSize The size of the memory block pointed by @a pArea
* @return Returns @c true on success, otherwise, returns @c false.
*/
inline pool( void *pArea, const size_t pSize ) noexcept {
(void)setup( pArea, pSize );
Expand Down Expand Up @@ -89,7 +88,6 @@ namespace qOS {
* returns, an access is made through the pointer @a ptr.
* @attention This method is NOT interrupt-safe.
* @param[in] ptr to the memory to deallocate
* @return none.
*/
void free( void *ptr ) noexcept;
/**
Expand Down

0 comments on commit 7157471

Please sign in to comment.