wiki:Docs/Prog/Manual/DeviceSupport/*Drivers

Device Drivers

Overview

For testing some device drivers may be loaded or unloaded dynamically or a startup script may be used to automatically load the modules.

DriverModule FilenameDevice NodesDepends on other modules
Mainboard communicationsmnbd-comm.ko/dev/mnbd
/dev/wt1 ..

/dev/wt10
USB Hubisp1520.koi2c-mcf, i2c-core
Keypad/Beeper?max734x.ko/dev/cardbeepI2c-mcf, i2c-core

Device driver operation may be tested from command line for some functions, for example:

# echo “A,B,C” > /dev/cardbeep <CR>

Play notes A, B, and C on beeper. (refer to beeper section for more details)

# echo “W” > /dev/wt1 <CR>

Request weight from scale one.

# cat < /dev/wt1 <CR>

Display response to previous request from scale 1 as a weight structure converted to hexadecimal.

Line 
101004812B682000000004812B6820003
2
3struct mnbd_wt_struct
4{
5  unsigned char interval;          (01  interval 1)
6  unsigned char decimal;           (00  no decimal)
7  float grosswt;                   (4812B682  IEEE floating point value)
8  float tarewt;                    (00000000  IEEE floating point valuetare zero)
9  float netwt;                     (4812B682  IEEE floating point value)
10  unsigned char units;             (00  units)
11  unsigned char status;            (03  status)
12};

[^]

Last modified 8 years ago Last modified on Nov 30, 2009, 2:45:18 PM