nut-debian/drivers/nutdrv_qx_blazer-common.h

45 lines
1.6 KiB
C
Raw Normal View History

2014-04-22 21:39:47 +03:00
/* nutdrv_qx_blazer-common.h - Common functions/settings for nutdrv_qx_{mecer,megatec,megatec-old,mustek,q1,voltronic-qs,zinto}.{c,h}
2013-11-24 17:00:12 +02:00
*
* Copyright (C)
* 2013 Daniele Pezzini <hyouko@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef NUTDRV_QX_BLAZER_COMMON_H
#define NUTDRV_QX_BLAZER_COMMON_H
#include "nutdrv_qx.h"
/* Support functions */
void blazer_makevartable(void);
2015-04-30 16:53:36 +03:00
void blazer_makevartable_light(void);
2013-11-24 17:00:12 +02:00
void blazer_initups(item_t *qx2nut);
2015-04-30 16:53:36 +03:00
void blazer_initups_light(item_t *qx2nut);
2013-11-24 17:00:12 +02:00
int blazer_claim(void);
2014-04-22 21:39:47 +03:00
int blazer_claim_light(void);
2013-11-24 17:00:12 +02:00
/* Preprocess functions */
int blazer_process_command(item_t *item, char *value, size_t valuelen);
int blazer_process_setvar(item_t *item, char *value, size_t valuelen);
int blazer_process_status_bits(item_t *item, char *value, size_t valuelen);
/* Ranges */
extern info_rw_t blazer_r_ondelay[];
extern info_rw_t blazer_r_offdelay[];
#endif /* NUTDRV_QX_BLAZER_COMMON_H */