Alarm contact detect

From: Khue Pham (khuedinhpham_at_yahoo.com)
Date: 07/27/04


Date: Tue, 27 Jul 2004 15:06:01 -0400

Hi All,

In short version: Does anyone know any freely available C source code
(Linux/POSIX) for detecting whether the magnetic alarm contact is opened or
closed ?

In long version: I have an SBC running Linux with Digital IO, these IO can
be source/sink and swing between 3.5 V and ground (0V). I want to use these
Digital IO as inputs from the magnetic alarm contacts (those that you stick
at the door) and read the inputs. I just wonder if any C source code does
this and freely available.

All help an pointer are appreciated in advance.

Regards,

K. P.



Relevant Pages

  • Re: Alarm contact detect
    ... > (Linux/POSIX) for detecting whether the magnetic alarm contact is opened or ... > Digital IO as inputs from the magnetic alarm contacts (those that you stick ... I just wonder if any C source code does ...
    (comp.os.linux.embedded)
  • Source code for detecting/reading devices (was: Re: Simple Ping in C)
    ... David Schwartz wrote: ... Do you also know how to find any source code for detecting and reading a ... See a huge pile of work at "http://wyodesktop.sourceforge.net/ " ...
    (comp.unix.programmer)