Class Feedback::IoBank

Nested Relationships

This class is a nested type of Class Feedback.

Class Documentation

class IoBank

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

Public Functions

IoBank(const HebiFeedbackRef &internal, HebiFeedbackIoPinBank bank)
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.

Parameters:

pinNumber – Which pin to check; valid values for pinNumber depend on the bank.

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.

Parameters:

pinNumber – Which pin to check; valid values for pinNumber depend on the bank.

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.

Parameters:

pinNumber – Which pin to get; valid values for pinNumber depend on the bank.

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.

Parameters:

pinNumber – Which pin to get; valid values for pinNumber depend on the bank.