Annotation of src/spw_int.h, revision 1.1

1.1     ! root        1: #ifndef SPW_INT_H
        !             2: #define SPW_INT_H
        !             3: /* ------------------------------------------------------------------------- */
        !             4: 
        !             5: typedef struct Spw_IntPacket {
        !             6:   unsigned char  command;   
        !             7:   unsigned char  res1;      
        !             8:   short      comspec;   
        !             9:   long       period;    
        !            10:   unsigned short button;    
        !            11:   short          tx;        
        !            12:   short      ty;        
        !            13:   short      tz;        
        !            14:   short      rx;        
        !            15:   short      ry;        
        !            16:   short      rz;        
        !            17:   short      res2;      
        !            18:   short      res3;      
        !            19:   unsigned short checksum;
        !            20: } Spw_IntPacket;
        !            21: 
        !            22: /* ------------------------------------------------------------------------- */
        !            23: 
        !            24: #define SPW_INTCMD_INITIALIZE   0x0000   /* Initialize the driver */
        !            25: #define SPW_INTCMD_GCFORCE      0x0003   /* Get Cumulative Force */
        !            26: #define SPW_INTCMD_SCFORCE      0x0004   /* Set Cumulative Force */
        !            27: #define SPW_INTCMD_GBPRESS      0x0005   /* Get Button Press info */
        !            28: #define SPW_INTCMD_GBRELEASE    0x0006   /* Get Button Release info */
        !            29: #define SPW_INTCMD_SETCMIN      0x0007   /* Set Cumulative Minimums */
        !            30: #define SPW_INTCMD_SETCMAX      0x0008   /* Set Cumulative Maximums */
        !            31: #define SPW_INTCMD_GFORCE       0x000b   /* Get current Force */
        !            32: #define SPW_INTCMD_SEVENT       0x000c   /* Set user defined Event Handler */
        !            33: #define SPW_INTCMD_SRATIO       0x000f   /* Set force to cum. force ratio */
        !            34: #define SPW_INTCMD_SWAPE        0x0014   /* Swap user defined event handlers */
        !            35: #define SPW_INTCMD_SALTE        0x0018   /* Set alternate event handler */
        !            36: #define SPW_INTCMD_GALTE        0x0019   /* Get alternate event handler */
        !            37: #define SPW_INTCMD_SSENSE       0x001a   /* Set Sensativity */
        !            38: #define SPW_INTCMD_GSENSE       0x001b   /* Get Sensativity */
        !            39: #define SPW_INTCMD_DISABLE      0x001f   /* Disable driver */
        !            40: #define SPW_INTCMD_ENABLE       0x0020   /* Enable driver */
        !            41: #define SPW_INTCMD_RESET        0x0021   /* Reset driver */
        !            42: #define SPW_INTCMD_INFO         0x0024   /* Get Information */
        !            43: 
        !            44: /* ------------------------------------------------------------------------- */
        !            45: 
        !            46: int SPW_IntInit(void);
        !            47: void SPW_IntEnable(void);
        !            48: void SPW_IntDisable(void);
        !            49: int SPW_IntCommand(int command, struct Spw_IntPacket *data_pkt);
        !            50: int SPW_IntGetInfo(int *major, int *minor, int *device, int *irq);
        !            51: 
        !            52: /* ------------------------------------------------------------------------- */
        !            53: #endif /* SPW_INT_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.