L4Re - L4 Runtime Environment
vbus_i2c.h
1 /*
2  * (c) 2009 Torsten Frenzel <frenzel@os.inf.tu-dresden.de>
3  * economic rights: Technische Universit├Ąt Dresden (Germany)
4  *
5  * This file is part of TUD:OS and distributed under the terms of the
6  * GNU General Public License 2.
7  * Please see the COPYING-GPL-2 file for details.
8  */
9 #pragma once
10 
11 #include <l4/sys/compiler.h>
12 #include <l4/sys/types.h>
13 #include <l4/vbus/vbus_types.h>
14 
15 __BEGIN_DECLS
16 
17 int L4_CV
18 l4vbus_i2c_write(l4_cap_idx_t vbus, l4vbus_device_handle_t handle,
19  l4_uint16_t addr, l4_uint8_t sub_addr,
20  l4_uint8_t *buffer, unsigned long size);
21 
22 int L4_CV
23 l4vbus_i2c_read(l4_cap_idx_t vbus, l4vbus_device_handle_t handle,
24  l4_uint16_t addr, l4_uint8_t sub_addr,
25  l4_uint8_t *buffer, unsigned long *size);
26 
unsigned short int l4_uint16_t
Unsigned 16bit value.
Definition: l4int.h:38
Common L4 ABI Data Types.
unsigned long l4_cap_idx_t
L4 Capability selector Type.
Definition: types.h:341
#define __END_DECLS
End section with C types and functions.
Definition: compiler.h:193
L4 compiler related defines.
#define L4_CV
Define calling convention.
Definition: linkage.h:44
This header file contains descriptions of vbus related data types and constants.
unsigned char l4_uint8_t
Unsigned 8bit value.
Definition: l4int.h:36