CC Pilot XS. Backlight interface description

Similar documents
Table Of Contents. Rev. 1.0 Page 2

ADS Windows CE Digital I/O Driver

Software Specification. For. J1708 Driver

& WizChan. Driver Documentation

DYNAMIC ENGINEERING 150 DuBois, Suite C, Santa Cruz, CA Fax Est

DYNAMIC ENGINEERING 150 DuBois St., Suite C Santa Cruz, CA (831) Fax (831) Est.

DYNAMIC ENGINEERING 150 DuBois, Suite 3 Santa Cruz, CA (831) Fax (831) Est

S3C6400 HW Mulimedia Codec (MFC) User s Guide. S3C6400 HW Multimedia Codec (MFC) User s Guide

BBK-PCI. User s Manual. Document: Document No.: Date: File:

DYNAMIC ENGINEERING 150 DuBois, Suite 3 Santa Cruz, CA (831) Fax (831) Est.

PCI-EK01 Driver Level Programming Guide

User Manual UNO-1251G. Windows Embedded Compact7 Software Manual

Bulk Transfers Using Visual Basic 6.0

NSPI Driver. NetDCU. Windows CE. Native SPI Support. Version 2.0 ( )

DYNAMIC ENGINEERING 150 DuBois, Suite C Santa Cruz, CA (831) Fax (831) Est.

BBK-PCI light. User s Manual

JetBox 8152 User Manual. WinCE 5.0 Canbus.

Comprehensive User s Guide 236 Adapter. Version 1.0. DH electronics GmbH

IVI-6.2: VISA Interoperability Requirements for USBTMC Specification

DYNAMIC ENGINEERING 150 DuBois St., Suite C Santa Cruz, CA Fax Est.

DYNAMIC ENGINEERING. 150 DuBois, Suite C Santa Cruz, CA (831) Fax (831) Est.

User Manual UNO TI Cortex AM3505 DIN-rail PC with 2 x LAN, 5 x COM, 4 x USB

Tape Channel Analyzer Windows Driver Spec.

Visualization Of Hard Disk Geometry And Master Boot Record

UNO PXA 200MHZ, 64MB RAM, 2 x LAN,4 x COM Universal Network Controller. User Manual

PcieAltBase & PcieAltChan

Pci3Ip, Pci5Ip, Pc104pIp, Pc104p4Ip, cpci2ip, cpci4ip and PcieCar IndustryPack Carrier Device Drivers

PHLnkBase & PHLnkChan

PMC Parallel TTL BA17 Base & Channel

ccpmc Parallel TTL BA18 Base & Channel

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

Files, Registry and Databases for storing data

DYNAMIC ENGINEERING 150 DuBois, Suite 3 Santa Cruz, CA (831) Fax (831) Est

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

DYNAMIC ENGINEERING 150 DuBois, Suite C Santa Cruz, CA (831) Fax (831) Est.

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

PMC Parallel TTL BA16 Base. Channel Software Manual

USB Socket Interface User Manual

COM-EX(PCI/C-PCI) GPF Windows Drivers Software for Asynchronous Serial Communications Product. Help for Windows.

QP-1000 Compact All-in-One Point of Sales System

IP-429-II ARINC 429 Interface 1-4 Transmitters 2-8 Receivers

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

USB Interface User Manual

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

DYNAMIC ENGINEERING 150 DuBois St Suite 3, Santa Cruz CA Fax Est.

UPS25 API Manual for Windows 2000/XP/Vista

POS-400 Expander II All-in-One Point of Sales System

TPC-66X Series. AMD LX800 Touch Panel Computers with 6.4" VGA TFT LCD. User Manual

HPOS II series All-in-One Point of Sales System

REAL TIME OPERATING SYSTEM PROGRAMMING-II: II: Windows CE, OSEK and Real time Linux. Lesson-9: WCE Serial Communication, Network, device-to

WP-7530 Series. Bezel Free All-in-One Modular Wall-Mount POS System. User Manual

The System of Automatic Searching for Vulnerabilities or how to use Taint Analysis to find vulnerabilities

ABOX II Series. Compact POS Box System. User Manual

TPC-2012/TPC-2512 User Manual

TPC-1570H. Intel Celeron M Touch Panel Computer with High Luminance 15" XGA TFT LCD. User Manual

AN1814 APPLICATION NOTE

Multithreading Applications in Win32 (Chapter 6. Overlapped I/O or Juggling Behind Your Back)

Multithreading Applications in Win32

EP-5500 Series. Efficiency All-in-One Point of Sales System. User Manual

User Manual TPC-31/ "/ 5.7" QVGA TFT LCD TI Cortex-A8 Touch Panel Computer

TPC-1260G TFT LCD Display Touch Panel Computer with Transmeta Crusoe GHz CPU. User Manual

PICO822. Intel Atom TM E620T/E680T All-In-One Pico-ITX Board. User s Manual

Standard. Information technology - Serial Attached SCSI Driver Interface (SDI) Revision 0 17 January 2005

Meddle: Framework for piggy-back fuzzing and tool development

CSCE : Computer Systems Homework #1 Part 1 (25 pts) Due date: 1/24/19

TPC-1260H. Crusoe 5800 Touch Panel Computer with High-Luminance 12.1 SVGA TFT LCD Display. User Manual

Examensarbete. Kandidat-nivå Forensisk undersökning av Solid State Drive. Forensic investigation of Solid State Drive

Title: Migrating to Delcom USB HID Chip Set (Generation 2) from the Delcom USB custom driver Chip Set (Generation 1).

Lampiran 1. Program Visual Basic ke PC. Universitas Sumatera Utara

Ser8UART. Serial NT / W2000 Device Driver for SC28L198 Based ISA Cards

Human Interface Devices: Host Application

DISTRIBUTION A: APPROVED FOR PUBLIC RELEASE DISTRIBUTION IS UNLIMITED (Case # 412 TW-PA-15666)

Soliton SCTS Extender

DEVELOPMENT OF MULTITHREADED REAL TIME DATA ACQUISITION SOLUTIONS. Gajendra Singh

ACR30U PC/SC Memory Card Access Reference Manual

File System Watcher. Gregory Adam 2015

USB Driver Programming (1)

CSC 306 Assignment 4: A Floppy Disk Dumper

Operating systems Portfolio

USBIO. USB Software Development Kit for Windows. Reference Manual. Version 2.0 January 31, 2003

700 Series Color Mobile Computer User s Manual

Intel Platform Controller Hub EG20T

I-Worm.Xanax.txt Sun Jul 20 12:43: /*

USB Dynamic Industrial Interface V A Universal Application Programming Interface To Data Acquisition Products Users Manual

Janus-MM Basic CAN Driver For Linux 2.6.xx and Windows XP. User Manual Revision A

Cypress CyUsb.sys Programmer's Reference

15: Filesystem Examples: Ext3, NTFS, The Future. Mark Handley. Linux Ext3 Filesystem

Cypress CyUsb.sys Programmer's Reference

CSCE Introduction to Computer Systems Spring 2019

Automated import / export for CMDFlash slave files.

RTD Fastrax itrax02 GPS Module Application and Driver Manual for Windows 98/2000/NT4/XP User s Manual Version 2.0.x

Vhand 2.0 SDK Manual. DGTech Engineering Solutions

Cracking, The Anti. Dorian Bugeja Department of Computer Science and Artificial Intelligence University of Malta

IRIG CHAPTER 10 PROGRAMMING HANDBOOK

Interoperability Specification for ICCs and Personal Computer Systems

WinCE6.0 I2C SMDKV210. Revision 1.00 October Samsung Electronics Co., Ltd. All rights reserved.

I would like to dedicate this article to all my friends, they know who they are, and to Irene, for her love and support.

Transcription:

CC Pilot XS Backlight interface description

Table of Contents Introduction... 3 Purpose... 3 References... 3 History... 3 Backlight device interface... 4 Summary of IOCTLs... 4 IOCTL_BACKLIGHT_GET_RESOLUTION... 4 IOCTL_BACKLIGHT_GET... 5 IOCTL_BACKLIGHT_SET... 7

Introduction Purpose This document describes the software interface to the backlight device. References - History Rev Date Author Remarks 1.0 2005-09-31 Göran Nordin First version. 1.1 2008-04-08 Fredrik Lans Revision

Backlight device interface IOCTLs are used to communicate with the backlight device. The name of the backlight device is BKL1 in Unicode character set. Summary of IOCTLs IOCTL_BACKLIGHT_GET_RESOLUTION IOCTL_BACKLIGHT_GET IOCTL_BACKLIGHT_SET Returns the number of steps of the backlight element. Returns the current level of the backlight element in number of steps. Sets the level of the backlight element. The level is the number of steps. IOCTL_BACKLIGHT_GET_RESOLUTION Description Returns the number of steps of the backlight element. The windows DeviceIoControl function passes the IOCTL to the backlight device. Include files #include "Backlight.h" Parameters supplied to DeviceIoControl hdevice dwiocontrolcode lpinbuffer ninbuffersize lpoutbuffer noutbuffersize lpbytesreturned lpoverlapped Handle to the backlight device. To obtain a device handle, call the CreateFile function with lpfilename parameter set to TEXT("BKL1:"). Set to IOCTL_BACKLIGHT_GET_RESOLUTION. Set to NULL. Set to zero. Pointer to a unsigned long where the number of steps of the backlight element will be returned. Set to sizeof(unsigned long). Pointer to a variable that receives the size, in bytes, of the data stored into the buffer pointed to by lpoutbuffer. Ignored; set to NULL Return value TRUE if operation succeeded otherwise FALSE. If operation failed then "GetLastError" can be used to get more information of the error. Restrictions -

Example HANDLE hdevice; if ((hdevice = CreateFile( TEXT("BKL1:"), GENERIC_READ GENERIC_WRITE, FILE_SHARE_READ FILE_SHARE_WRITE, OPEN_EXISTING, 0, NULL))!= INVALID_HANDLE_VALUE) unsigned long bytesreturned, resolution; if (DeviceIoControl( hdevice, IOCTL_BACKLIGHT_GET_RESOLUTION, 0, &resolution, sizeof(resolution), &bytesreturned, NULL)) "Resolution in steps is %lu\n", resolution); "!!ERROR, %lu when calling \"DeviceIoControl\"\n", "!!ERROR, %lu when calling \"CreateFile\"\n", IOCTL_BACKLIGHT_GET Description Returns the current level of the backlight element in number of steps. The windows DeviceIoControl function passes the IOCTL to the backlight device. Include files #include "Backlight.h" Parameters supplied to DeviceIoControl hdevice Handle to the backlight device. To obtain a device handle, call the CreateFile function with lpfilename parameter set to TEXT("BKL1:").

dwiocontrolcode lpinbuffer ninbuffersize lpoutbuffer noutbuffersize lpbytesreturned lpoverlapped Set to IOCTL_BACKLIGHT_GET. Set to NULL. Set to zero. Pointer to a unsigned long where the current level of the backlight element in number of steps will be returned. Set to sizeof(unsigned long). Pointer to a variable that receives the size, in bytes, of the data stored into the buffer pointed to by lpoutbuffer. Ignored; set to NULL Return value TRUE if operation succeeded otherwise FALSE. If operation failed then "GetLastError" can be used to get more information of the error. Restrictions - Example HANDLE hdevice; if ((hdevice = CreateFile( TEXT("BKL1:"), GENERIC_READ GENERIC_WRITE, FILE_SHARE_READ FILE_SHARE_WRITE, OPEN_EXISTING, 0, NULL))!= INVALID_HANDLE_VALUE) unsigned long bytesreturned, level; if (DeviceIoControl( hdevice, IOCTL_BACKLIGHT_GET, 0,&level, sizeof(level), &bytesreturned, NULL)) "Level in steps is %lu\n", level); "!!ERROR, %lu when calling \"DeviceIoControl\"\n",

"!!ERROR, %lu when calling \"CreateFile\"\n", IOCTL_BACKLIGHT_SET Description Sets the level of the backlight element. The level is the number of steps. The windows DeviceIoControl function passes the IOCTL to the backlight device. Include files #include "Backlight.h" Parameters supplied to DeviceIoControl hdevice dwiocontrolcode lpinbuffer ninbuffersize lpoutbuffer ninbuffersize lpbytesreturned lpoverlapped Handle to the backlight device. To obtain a device handle, call the CreateFile function with lpfilename parameter set to TEXT("BKL1:"). Set to IOCTL_BACKLIGHT_SET. Pointer to a unsigned long where the level in number of steps is stored. Set to sizeof(unsigned long). Set to NULL. Set to zero. Pointer to a variable that receives the size, in bytes, of the data stored into the buffer pointed to by lpoutbuffer. Ignored; set to NULL Return value TRUE if operation succeeded otherwise FALSE. If operation failed then "GetLastError" can be used to get more information of the error. Restrictions - Example HANDLE hdevice; if ((hdevice = CreateFile( TEXT("BKL1:"), GENERIC_READ GENERIC_WRITE, FILE_SHARE_READ FILE_SHARE_WRITE, OPEN_EXISTING,0, NULL ))!= INVALID_HANDLE_VALUE ) unsigned long bytesreturned, level = 10;

if (!DeviceIoControl( hdevice, IOCTL_BACKLIGHT_SET, &level, sizeof(level), 0, &bytesreturned, NULL)) "!!ERROR, %lu when calling \"DeviceIoControl\"\n", "!!ERROR, %lu when calling \"CreateFile\"\n",