Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of I2cRtosDriver by
Diff: i2cRtos_api.h
- Revision:
- 9:65aae53a34de
- Child:
- 13:530968937ccb
diff -r 5be85bd4c5ba -r 65aae53a34de i2cRtos_api.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/i2cRtos_api.h Sat May 04 16:47:56 2013 +0000
@@ -0,0 +1,45 @@
+/* mbed Microcontroller Library
+ * Copyright (c) 2006-2013 ARM Limited
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef MBED_I2CRTOS_API_H
+#define MBED_I2CRTOS_API_H
+
+#include "i2c_api.h"
+
+#if DEVICE_I2C
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+ void i2cRtos_init(i2c_t *obj, PinName sda, PinName scl);
+
+ int i2cRtos_read(i2c_t *obj, int address, char *data, int length, int stop);
+ int i2cRtos_write(i2c_t *obj, int address, const char *data, int length, int stop);
+ int i2cRtos_byte_read(i2c_t *obj, int last);
+ int i2cRtos_byte_write(i2c_t *obj, int data);
+
+#if DEVICE_I2CSLAVE
+ int i2cRtos_slave_receive(i2c_t *obj, uint32_t tmOut);
+ int i2cRtos_slave_read(i2c_t *obj, char *data, int length);
+ int i2cRtos_slave_write(i2c_t *obj, const char *data, int length);
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#endif
