DPC Module:DPC under Linux

From LEXWiKi

Revision as of 10:52, 14 April 2009 by Denny (Talk | contribs)
Jump to: navigation, search

The Sample code source you can download from

Source file: DPCv2.4.1L.tar.gz

Binary file: DPC-binv2.4.1L.tar.gz

How to use this Demo Application

1. execute the ap, it will showed in system bar

Image:trayicon.jpg

Image:Dialog.jpg

2. Content explanation

Panel Type : Select panel what you try to adjust

Duty cycle : Brightness control, from 10 to 100

Select Area : After pressed this button, show another dialog which for you can select an area to light on panel

Image:AreaSelect.jpg

Panel off : light off the panel, (if you try to light on panel again, just click selected area or hotkey)

Hotkey Setting: Setting hotkey to light on panel, press the "OK" button after setting to completed

Image:HotKey.jpg

Install : Set the system to autorun this application when booting

Uninstall : Remove autorun this application when booting.

Exit : Exit the program.


Sample Code Introduction

//----------------------------------------------------------------------------------

  1. define HST_STS 0x00 // SMBus Host Status Register Offset
  2. define HST_CNT 0x02 // SMBus Host Contorl Register Offset
  3. define HST_CMD 0x03 // SMBus Host Command Register Offset
  4. define XMIT_SLVA 0x04 // SMBus Host Address Register Offset
  5. define HST_D0 0x05 // SMBus Host Data0 Register Offset

//----------------------------------------------------------------------------------

  1. define SADD 0xb0
  2. define PWMFeq 0x01
  3. define PWMDuty 0x02
Personal tools