mtkernel_3/device/include/dev_i2c.h | bare source | permlink (0.00 seconds) |
1: /* 2: *---------------------------------------------------------------------- 3: * Device Driver for micro T-Kernel for μT-Kernel 3.0 4: * 5: * Copyright (C) 2020 by Ken Sakamura. 6: * This software is distributed under the T-License 2.2. 7: *---------------------------------------------------------------------- 8: * 9: * Released by TRON Forum(http://www.tron.org) at 2020/10/21. 10: * 11: *---------------------------------------------------------------------- 12: */ 13: 14: 15: /* 16: * dev_i2c.h 17: * I2C device driver 18: */ 19: 20: #ifndef __DEVINC_I2C_H__ 21: #define __DEVINC_I2C_H__ 22: 23: /*----------------------------------------------------------------------*/ 24: /* Device driver initialization 25: */ 26: IMPORT ER dev_init_i2c( UW unit ); /* Device driver initialization */ 27: 28: 29: /*----------------------------------------------------------------------*/ 30: /* Attribute data number 31: */ 32: typedef enum { 33: TDN_I2C_EXEC = -100 34: } T_DN_I2C_ATR; 35: 36: /* Send / receive data type (Used by I2C_ATR_EXEC) */ 37: typedef struct { 38: UW sadr; 39: SZ snd_size; 40: UB *snd_data; 41: SZ rcv_size; 42: UB *rcv_data; 43: } T_I2C_EXEC; 44: 45: 46: #endif /* __DEVINC_I2C_H__ */