Subversion Repositories NaviCtrl

Rev

Rev 482 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 482 Rev 522
Line 34... Line 34...
34
        u16 VIC_Source;   // irq source
34
        u16 VIC_Source;   // irq source
35
        I2C_pRxHandler_t pRxHandler; // function pointer to call back handler after transfer
35
        I2C_pRxHandler_t pRxHandler; // function pointer to call back handler after transfer
36
} __attribute__((packed)) I2C_Bus_t;
36
} __attribute__((packed)) I2C_Bus_t;
Line 37... Line 37...
37
 
37
 
38
#define I2C_TIMEOUT 500 // 500 ms
38
#define I2C_TIMEOUT 500 // 500 ms
Line 39... Line 39...
39
#define I2C_BUFFER_LEN 100  // define the size of the rx/tx buffer in bytes
39
#define I2C_BUFFER_LEN 200  // define the size of the rx/tx buffer in bytes
40
 
40
 
Line 41... Line 41...
41
// Retourns pointer to data structure of the selected bus 
41
// Retourns pointer to data structure of the selected bus