⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 saa1064.h

📁 Philips芯片saa1064驱动.saa1064是I2C接口控制的LED控制芯片,一般做为前面板的控制芯片
💻 H
字号:
#ifndef __SAA1064_H__#define __SAA1064_H__/*****************************************************************************//*  Copyright (c) 2008 NXP B.V.  All rights are reserved.                    *//*  Reproduction in whole or in part is prohibited without the prior         *//*  written consent of the copyright owner.                                  *//*                                                                           *//*  This software and any compilation or derivative thereof is, and          *//*  shall remain the proprietary information of NXP and is                   *//*  highly confidential in nature. Any and all use hereof is restricted      *//*  and is subject to the terms and conditions set forth in the              *//*  software license agreement concluded with NXP B.V.                       *//*                                                                           *//*  Under no circumstances is this software or any derivative thereof        *//*  to be combined with any Open Source Software, exposed to, or in any      *//*  way licensed under any Open License Terms without the express prior      *//*  written permission of the copyright owner.                               *//*                                                                           *//*  For the purpose of the above, the term Open Source Software means        *//*  any software that is licensed under Open License Terms. Open             *//*  License Terms means terms in any license that require as a               *//*  condition of use, modification and/or distribution of a work             *//*                                                                           *//*  1. the making available of source code or other materials                *//*     preferred for modification, or                                        *//*                                                                           *//*  2. the granting of permission for creating derivative                    *//*     works, or                                                             *//*                                                                           *//*  3. the reproduction of certain notices or license terms                  *//*     in derivative works or accompanying documentation, or                 *//*                                                                           *//*  4. the granting of a royalty-free license to any party                   *//*     under Intellectual Property Rights                                    *//*                                                                           *//*  regarding the work and/or any work that contains, is combined with,      *//*  requires or otherwise is based on the work.                              *//*                                                                           *//*  This software is provided for ease of recompilation only.                *//*  Modification and reverse engineering of this software are strictly       *//*  prohibited.                                                              *//*                                                                           *//*****************************************************************************//**    @file   saa1064.h    @brief  Proprietary kernel module used to control the front panel LED display.    @b  Module:  saa1064 driver.*//*Rev Date        Author      Comments--------------------------------------------------------------------------------  1 20061123    neill       Original  2 20061124    neill       Changes after crosscheck  3 20080207    batelaan    Update file copyright/license text--------------------------------------------------------------------------------    For consistency and standardisation retain the Section Separators.*/#include <linux/ioctl.h>#include <linux/types.h>#if defined(__cplusplus)extern "C" {#endif//  ****************************************************************************//  *                                                                          *//  *                           M O D U L E    S E C T I O N                   *//  *                                                                          *//  ****************************************************************************//  ----------------------- MODULE Definition   --------------------------------#define SAA1064_MODULE_DESCRIPTION   "SAA1064 LED driver"//------------------------------------------------------------------------------//                              I O C T L ' s  data structures//------------------------------------------------------------------------------//------------------------------------------------------------------------------//                              I O C T L ' s  definition//------------------------------------------------------------------------------/** The base of SAA1064 ioctls. */#define SAA1064_IOCTL_BASE 0x64/** Enable / disable scrolling - takes int as an argument.    0 means scrolling off, 1 means scrolling on. */#define SAA1064_IOCTL_SET_SCROLLING_ENABLE _IOW(SAA1064_IOCTL_BASE, 0, int)/** Get the scrolling mode - takes &int as an argument.    0 means scrolling off, 1 means scrolling on. */#define SAA1064_IOCTL_GET_SCROLLING_ENABLE _IOR(SAA1064_IOCTL_BASE, 1, int *)/** Set the scrolling direction - takes int as an argument.    0 means scrolling backwards (left to right),    1 means scrolling forwards (right to left). */#define SAA1064_IOCTL_SET_SCROLLING_DIRECTION _IOW(SAA1064_IOCTL_BASE, 2, int)/** Get the scrolling direction - takes &int as an argument.    0 means scrolling backwards (left to right),    1 means scrolling forwards (right to left). */#define SAA1064_IOCTL_GET_SCROLLING_DIRECTION _IOR(SAA1064_IOCTL_BASE, 3, int *)/** Set the scrolling delay - takes int as an argument.    Delay between each update to the display in  milliseconds. */#define SAA1064_IOCTL_SET_SCROLLING_DELAY _IOW(SAA1064_IOCTL_BASE, 4, int)/** Get the scrolling delay - takes &int as an argument.    Delay between each update to the display in  milliseconds. */#define SAA1064_IOCTL_GET_SCROLLING_DELAY _IOR(SAA1064_IOCTL_BASE, 5, int *)/** Set the display brightness - takes int as an argument.    0 = off 7 = brightest. */#define SAA1064_IOCTL_SET_DISPLAY_BRIGHTNESS _IOW(SAA1064_IOCTL_BASE, 6, int)/** Get the display brightness - takes &int as an argument.    0 = off 7 = brightest. */#define SAA1064_IOCTL_GET_DISPLAY_BRIGHTNESS _IOR(SAA1064_IOCTL_BASE, 7, int *)//  ****************************************************************************//  *                                                                          *//  *                       P U B L I C    O B J E C T S                       *//  *                                                                          *//  ****************************************************************************#if defined(__cplusplus)}#endif#endif /* __SAA1064_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -