Code Monkey home page Code Monkey logo

device-solenodrive's Introduction

NAME
    Device::Solenodrive - Interface to the solenodrive hardware

VERSION
    version 0.1

SYNOPSIS
    my $solenodrive = Device::Solenodrive->new(device => '/dev/ttyUSB0');

DESCRIPTION
    Host software to interface to solenodrive hardware.

METHODS
  "new(%parameters)"
    This constructor returns a new Device::Solenodrive object. Supported
    parameters are listed below

    device
        The target device to connect to. This can be either a serial port
        object (e.g. /dev/ttyUSB0) or a TCP socket (e.g.
        192.168.1.52:10001).

    baudrate
        Optional parameter when using a serial port for connecting to the
        bootloader. Default value is 57600 bps.

    verbose
        Controls the verbosity of the module. Defaults to 0. Increasing
        numbers make the module more chatty. 5 is the highest level and
        probably provides too much information. 3 is a good level to get
        started.

  "connect_target()"
    Opens the connection to the device that provides the RS485 interface,
    should be called before trying to send commands

  "set(ID, channel)"
    Sets the channel "channel" of the Solenodrive with ID "ID" active.

  "enumerate()"
    Enumerate the devices on the bus, reports the addresses of the devices
    together with their firmware version. The returned object is a hash
    containing the address/firmware version pairs. Only supported from
    Solenodrive firmware v1.1 and upwards.

  "disconnect_target()"
    Closes the connection to the RS485 bus.

  "list_devices()"
    List the devices that were discovered after enumeration.

  "BUILD"
    An internal function used by Moose to run code after the constructor.
    Need to document because otherwise Test::Pod::Coverage test fails

  "O_NDELAY"
    Detected by Pod::Coverage from the sysopen function. Stub documenation
    to ensure the test does not fail when the module is deployed.

  "O_NOCTTY"
    Detected by Pod::Coverage from the sysopen function. Stub documenation
    to ensure the test does not fail when the module is deployed.

  "O_RDWR"
    Detected by Pod::Coverage from the sysopen function. Stub documenation
    to ensure the test does not fail when the module is deployed.

AUTHOR
    Lieven Hollevoet <[email protected]>

COPYRIGHT AND LICENSE
    This software is copyright (c) 2013 by Lieven Hollevoet.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.

device-solenodrive's People

Contributors

hollie avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.