# rtai_leds.h

    00001 /*
    00002  * rtai_leds.c - mini-driver for generic control of digital signals
    00003  *
    00004  * Copyright (C) 2000  Pierre Cloutier <pcloutier@PoseidonControls.com>
    00005  *               2001  David A. Schleef <ds@schleef.org>
    00006  *
    00007  * This program is free software; you can redistribute it and/or
    00008  * modify it under the terms of version 2 of the GNU General Public
    00009  * License as published by the Free Software Foundation.
    00010  *
    00011  * This program is distributed in the hope that it will be useful,
    00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00014  * GNU General Public License for more details.
    00015  *
    00016  * You should have received a copy of the GNU General Public License
    00017  * along with this program; if not, write to the Free Software
    00018  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    00019  */
    00020
    00021 #ifndef _RTAI_LEDS_H
    00022 #define _RTAI_LEDS_H
    00023
    00024 #include <rtai_types.h>
    00025
    00026 #ifdef CONFIG_RTAI_INTERNAL_LEDS_SUPPORT
    00027
    00028 #include <asm/rtai_leds.h>
    00029
    00030 #ifdef __cplusplus
    00031 extern "C" {
    00032 #endif /* __cplusplus */
    00033
    00034 int __rtai_leds_init(void);
    00035
    00036 void __rtai_leds_exit(void);
    00037
    00038 void rt_leds_set_mask(unsigned int mask,
    00039                       unsigned int value);
    00040
    00041 void rt_toggle_leds(unsigned int l);
    00042
    00043 void rt_reset_leds(unsigned int l);
    00044
    00045 void rt_set_leds(unsigned int l);
    00046
    00047 void rt_clear_leds(void);
    00048
    00049 unsigned int rt_get_leds(void);
    00050
    00051 void rt_set_leds_port(int p);
    00052
    00053 void rt_config_leds(unsigned int type,
    00054                     void (*func)(unsigned long p, unsigned int l),
    00055                     unsigned long p);
    00056
    00057 #ifdef __cplusplus
    00058 }
    00059 #endif /* __cplusplus */
    00060
    00061 #endif /* CONFIG_RTAI_INTERNAL_LEDS_SUPPORT */
    00062
    00063 #endif /* !_RTAI_LEDS_H */