Struct relay8x::Relay8x[][src]

pub struct Relay8x { /* fields omitted */ }

Provides access to serial port

Methods

impl Relay8x
[src]

constructor for a new Relay Card

initialise device with correct params

sets device address, function can be used to re-set it

switch arbitrary relays on

  • numbers: Vector containing all relay numbers (1..8)
  • state: true for switching on, false for off

switch arbitrary relays off

  • numbers: Vector containing all relay numbers (1..8)
  • state: true for switching on, false for off

toggle aribtrary relays

numbers: vector containing all relay numbers (1..8)

Auto Trait Implementations

impl !Send for Relay8x

impl !Sync for Relay8x