Home | History | Annotate | Line # | Download | only in i2c
      1  1.1  jakllsch /* $NetBSD: cx24227var.h,v 1.1 2011/08/04 01:48:34 jakllsch Exp $ */
      2  1.1  jakllsch 
      3  1.1  jakllsch /*
      4  1.1  jakllsch  * Copyright (c) 2011 Jonathan A. Kollasch
      5  1.1  jakllsch  * All rights reserved.
      6  1.1  jakllsch  *
      7  1.1  jakllsch  * Redistribution and use in source and binary forms, with or without
      8  1.1  jakllsch  * modification, are permitted provided that the following conditions
      9  1.1  jakllsch  * are met:
     10  1.1  jakllsch  * 1. Redistributions of source code must retain the above copyright
     11  1.1  jakllsch  *    notice, this list of conditions and the following disclaimer.
     12  1.1  jakllsch  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.1  jakllsch  *    notice, this list of conditions and the following disclaimer in the
     14  1.1  jakllsch  *    documentation and/or other materials provided with the distribution.
     15  1.1  jakllsch  *
     16  1.1  jakllsch  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     17  1.1  jakllsch  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     18  1.1  jakllsch  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     19  1.1  jakllsch  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
     20  1.1  jakllsch  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     21  1.1  jakllsch  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     22  1.1  jakllsch  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
     23  1.1  jakllsch  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
     24  1.1  jakllsch  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
     25  1.1  jakllsch  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
     26  1.1  jakllsch  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     27  1.1  jakllsch  */
     28  1.1  jakllsch 
     29  1.1  jakllsch #ifndef _DEV_I2C_CX24227VAR_H_
     30  1.1  jakllsch #define _DEV_I2C_CX24227VAR_H_
     31  1.1  jakllsch 
     32  1.1  jakllsch #include <dev/i2c/i2cvar.h>
     33  1.1  jakllsch #include <dev/dtv/dtvio.h>
     34  1.1  jakllsch 
     35  1.1  jakllsch struct cx24227;
     36  1.1  jakllsch 
     37  1.1  jakllsch struct cx24227 * cx24227_open(device_t, i2c_tag_t, i2c_addr_t);
     38  1.1  jakllsch void cx24227_close(struct cx24227 *);
     39  1.1  jakllsch void cx24227_enable(struct cx24227 *, bool);
     40  1.1  jakllsch int cx24227_set_modulation(struct cx24227 *, fe_modulation_t);
     41  1.1  jakllsch fe_status_t cx24227_get_dtv_status(struct cx24227 *);
     42  1.1  jakllsch uint16_t cx24227_get_signal(struct cx24227 *);
     43  1.1  jakllsch uint16_t cx24227_get_snr(struct cx24227 *);
     44  1.1  jakllsch 
     45  1.1  jakllsch #endif /* _DEV_I2C_CX24227VAR_H_ */
     46