Public Member Functions | Private Member Functions | Private Attributes | List of all members
hebi::Command::IoBank Class Referencefinal

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

#include <command.hpp>

Public Member Functions

void clear (size_t pinNumber)
 Removes any currently set value for this pin. 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...
 
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 (HebiCommandPtr internal, HebiCommandIoPinBank bank)
 
void setFloat (size_t pinNumber, float value)
 Sets the particular pin to a floating point value (representing a PWM output). More...
 
void setInt (size_t pinNumber, int64_t value)
 Sets the particular pin to a integer value (representing a digital output). More...
 

Private Member Functions

 HEBI_DISABLE_COPY_MOVE (IoBank)
 

Private Attributes

HebiCommandIoPinBank const bank_
 
HebiCommandPtr const internal_
 

Detailed Description

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

Definition at line 325 of file command.hpp.

Constructor & Destructor Documentation

hebi::Command::IoBank::IoBank ( HebiCommandPtr  internal,
HebiCommandIoPinBank  bank 
)

Definition at line 235 of file command.cpp.

Member Function Documentation

void hebi::Command::IoBank::clear ( size_t  pinNumber)

Removes any currently set value for this pin.

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

Definition at line 274 of file command.cpp.

float hebi::Command::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.

Definition at line 257 of file command.cpp.

int64_t hebi::Command::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.

Definition at line 250 of file command.cpp.

bool hebi::Command::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.

Definition at line 245 of file command.cpp.

bool hebi::Command::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.

Definition at line 240 of file command.cpp.

hebi::Command::IoBank::HEBI_DISABLE_COPY_MOVE ( IoBank  )
private
void hebi::Command::IoBank::setFloat ( size_t  pinNumber,
float  value 
)

Sets the particular pin to a floating point value (representing a PWM output).

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

Definition at line 269 of file command.cpp.

void hebi::Command::IoBank::setInt ( size_t  pinNumber,
int64_t  value 
)

Sets the particular pin to a integer value (representing a digital output).

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

Definition at line 264 of file command.cpp.

Member Data Documentation

HebiCommandIoPinBank const hebi::Command::IoBank::bank_
private

Definition at line 376 of file command.hpp.

HebiCommandPtr const hebi::Command::IoBank::internal_
private

Definition at line 375 of file command.hpp.


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


hebiros
Author(s): Xavier Artache , Matthew Tesch
autogenerated on Thu Sep 3 2020 04:10:59