HEBI C++ API  3.10.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
hebi::Feedback::IoBank Class Referencefinal

A message field for interfacing with a bank of I/O pins. More...

#include <feedback.hpp>

Public Member Functions

bool hasInt (size_t pinNumber) const
 True if (and only if) the particular numbered pin in this bank has an integer (e.g., digital) value. More...
 
bool hasFloat (size_t pinNumber) const
 True if (and only if) the particular numbered pin in this bank has an floating point (e.g., analog or PWM) value. More...
 
int64_t getInt (size_t pinNumber) const
 If this numbered pin in this bank has an integer (e.g., digital) value, returns that value; otherwise returns a default. More...
 
float getFloat (size_t pinNumber) const
 If this numbered pin in this bank has an floating point (e.g., analog or PWM) value, returns that value; otherwise returns a default. More...
 

Detailed Description

A message field for interfacing with a bank of I/O pins.

Member Function Documentation

◆ hasInt()

bool hebi::Feedback::IoBank::hasInt ( size_t  pinNumber) const

True if (and only if) the particular numbered pin in this bank has an integer (e.g., digital) value.

Parameters
pinNumberWhich pin to check; valid values for pinNumber depend on the bank.

◆ hasFloat()

bool hebi::Feedback::IoBank::hasFloat ( size_t  pinNumber) const

True if (and only if) the particular numbered pin in this bank has an floating point (e.g., analog or PWM) value.

Parameters
pinNumberWhich pin to check; valid values for pinNumber depend on the bank.

◆ getInt()

int64_t hebi::Feedback::IoBank::getInt ( size_t  pinNumber) const

If this numbered pin in this bank has an integer (e.g., digital) value, returns that value; otherwise returns a default.

Parameters
pinNumberWhich pin to get; valid values for pinNumber depend on the bank.

◆ getFloat()

float hebi::Feedback::IoBank::getFloat ( size_t  pinNumber) const

If this numbered pin in this bank has an floating point (e.g., analog or PWM) value, returns that value; otherwise returns a default.

Parameters
pinNumberWhich pin to get; valid values for pinNumber depend on the bank.

The documentation for this class was generated from the following files: