A message field for interfacing with a bank of I/O pins. More...
#include <feedback.hpp>
Public Member Functions | |
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... | |
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... | |
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... | |
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... | |
IoBank (const HebiFeedbackRef &internal, HebiFeedbackIoPinBank bank) | |
Private Attributes | |
HebiFeedbackIoPinBank const | bank_ |
const HebiFeedbackRef & | internal_ |
A message field for interfacing with a bank of I/O pins.
Definition at line 372 of file feedback.hpp.
hebi::Feedback::IoBank::IoBank | ( | const HebiFeedbackRef & | internal, |
HebiFeedbackIoPinBank | bank | ||
) |
Definition at line 114 of file feedback.cpp.
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.
pinNumber | Which pin to get; valid values for pinNumber depend on the bank. |
Definition at line 130 of file feedback.cpp.
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.
pinNumber | Which pin to get; valid values for pinNumber depend on the bank. |
Definition at line 124 of file feedback.cpp.
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.
pinNumber | Which pin to check; valid values for pinNumber depend on the bank. |
Definition at line 120 of file feedback.cpp.
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.
pinNumber | Which pin to check; valid values for pinNumber depend on the bank. |
Definition at line 116 of file feedback.cpp.
|
private |
Definition at line 406 of file feedback.hpp.
|
private |
Definition at line 405 of file feedback.hpp.