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

📄 nleddrv.cpp

📁 ARM9基于WINDOWSCE的BSP源代码
💻 CPP
字号:
/*
*   The content of this file or document is CONFIDENTIAL and PROPRIETARY
*   to Jade Technologies Co., Ltd.  It is subjected to the terms of a
*   License Agreement between Licensee and Jade Technologies Co., Ltd.
*   restricting among other things, the use, reproduction, distribution
*   and transfer.  Each of the embodiments, including this information 
*   and any derivative work shall retain this copyright notice.
* 
*   Copyright (c) 2004 - 2005 Jade Technologies Co., Ltd. 
*   All rights reserved.
*/

#include <windows.h>
#include <nled.h>
#include <led_drvr.h>
#include <types.h>

/*
 * Notification LED not supported on this development board
 */


/*
 * @func        NLedDriverGetDeviceInfo
 *
 *    Retrieves information about the notification LED.
 *
 * @parms
 *
 *    nInfoId   Id number of the information to retrieve.
 *
 *    pOutput   Buffer to put the information.
 *
 * @comm
 *
 *    This is the function interface to the driver..
 */
BOOL WINAPI NLedDriverGetDeviceInfo(INT nInfoId, PVOID pOutput)
{
    if (nInfoId == NLED_COUNT_INFO_ID)
    {
        struct NLED_COUNT_INFO *p = (struct NLED_COUNT_INFO*)pOutput;

        p->cLeds = 0;
        return TRUE;
    }

    SetLastError(ERROR_GEN_FAILURE);
    return FALSE;
}

/*
 * @func        NLedDriverSetDevice
 *
 *    Changes setting of the notification LED.
 *
 * @parms
 *
 *    nInfoId   Id number of the setting.
 *
 *    pInput    Buffer which has the new settings.
 *
 * @comm
 *
 *    This is the function interface to the driver..
 */
BOOL WINAPI NLedDriverSetDevice(INT nInfoId, PVOID pInput)
{
    SetLastError(ERROR_GEN_FAILURE);
    return FALSE;
}

/*
 * @func        NLedDriverPowerDown
 *
 *    Power up/down notification to the LED device(s).
 *
 * @parms
 *
 *    power_down TRUE = Power down, FALSE = power up.
 */
VOID NLedDriverPowerDown(BOOL power_down)
{
    return;
}

BOOL NLedDriverInitialize(VOID)
{
    return TRUE;
}

/*
 * @func        NLedDriverDllEntry
 *
 *    This is the entry/exit point for the dll.
 *
 * @parms
 *
 *    hinstDll          Instance handle of the Dll.
 *
 *    fdwReason         The reason why the function was called.
 *
 *    lpvReserved       Reserved, not used.
 *
 * @rdesc
 *
 *    If the function was successful TRUE is returned; otherwise, FALSE.
*/
BOOL NLedDriverDllEntry(HANDLE hinstDll, DWORD fdwReason, LPVOID lpvReserved)
{
    return TRUE;
}

/* EOF nleddrv.cpp */

⌨️ 快捷键说明

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