Giter Site home page Giter Site logo

ggannann / drvasyni2c Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ffeldbauer/drvasyni2c

0.0 1.0 0.0 42 KB

I2C device support for EPICS using asynDriver

License: GNU General Public License v3.0

Makefile 20.22% C 6.06% C++ 71.33% Batchfile 2.39%

drvasyni2c's Introduction

drvAsynI2C

This module provides EPICS device support for accessing I2C bus.

Dependencies

  • EPICS base 3.14.12.5 (or newer)
  • asynDriver 4-26 (or newer)
  • i2c-tools

Installation

  1. Edit "configure/RELEASE" according to your environment
  2. Type make inside the top directory

Usage

Loading the driver

To load the driver use the command inside the IOC

drvAsynI2CConfigure( "NAME", "I2Cbus", autoConnect )

where NAME is the name used by asyn to identify the driver, I2Cbus is the name of the I2C device on the filesystem and autoConnect is a flag whether the driver should automatically connect to the device or not.

Writing to/Reading from the bus

The driver provides an asynOctet interface for reading from/writing to the bus. This interfaces uses a binary format. The first byte of a write command is always treated as the slave address on the bus without the R/!W bit. The setting of this bit is managed by the kernel module. All following bytes will be send to the slave device.

The directory example contains a small IOC controlling an AD7998 ADC via streamDevice. (Note: This example uses also the devGpio device support which can also be found on github )

Using StreamDevice

Refer to the readme inside the direcotry "streamDevice"

Known Issues

  • none

drvasyni2c's People

Contributors

ffeldbauer avatar

Watchers

James Cloos 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.