Improvements to Olieman's MODI2C library. Supports calls from IRQ.

Dependencies:   FPointer

Dependents:   FreeIMU FreeIMU_external_magnetometer FreeIMU

Fork of MODI2C by Erik -

Files at this revision

API Documentation at this revision

Comitter:
tyftyftyf
Date:
Sun Feb 09 14:05:04 2014 +0000
Parent:
3:eb8120aa14fd
Child:
5:fa0cca8e28b6
Commit message:
Updated comments

Changed in this revision

MODI2C.h Show annotated file Show diff for this revision Revisions of this file
--- a/MODI2C.h	Mon Dec 23 08:37:28 2013 +0000
+++ b/MODI2C.h	Sun Feb 09 14:05:04 2014 +0000
@@ -96,6 +96,8 @@
     * @param address - I2C address of the slave (7 bit address << 1).
     * @param data - pointer to byte array that holds the data
     * @param length - amount of bytes that need to be sent
+    * @param function - pointer to a callback function of the form "uint32_t func(uint32_t)"
+    * @param pass_to_irq - what to pass to the callback function as parameter
     * @param repeated - determines if it should end with a stop condition (default false)
     * @param status - (optional) pointer to integer where the final status code of the I2C transmission is placed. (0x28 is success)
     * @param return - returns zero
@@ -113,6 +115,8 @@
     * @param address - I2C address of the slave (7 bit address << 1).
     * @param data - pointer to byte array where the data will be stored
     * @param length - amount of bytes that need to be received
+    * @param function - pointer to a callback function of the form "uint32_t func(uint32_t)"
+    * @param pass_to_irq - what to pass to the callback function as parameter
     * @param repeated - determines if it should end with a stop condition
     * @param status - (optional) pointer to integer where the final status code of the I2C transmission is placed. (0x58 is success)
     * @param return - returns zero