L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
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
16
17int L4_CV
18l4vbus_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
22int L4_CV
23l4vbus_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
L4 compiler related defines.
unsigned char l4_uint8_t
Unsigned 8bit value.
Definition l4int.h:36
unsigned short int l4_uint16_t
Unsigned 16bit value.
Definition l4int.h:38
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:359
#define __END_DECLS
End section with C types and functions.
Definition compiler.h:199
#define L4_CV
Define calling convention.
Definition linkage.h:44
#define __BEGIN_DECLS
Start section with C types and functions.
Definition compiler.h:196
Common L4 ABI Data Types.
This header file contains descriptions of vbus related data types and constants.
l4_mword_t l4vbus_device_handle_t
Device handle for a device on the vbus.
Definition vbus_types.h:20