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.
Dependencies: Beta_Apper_beta ctrl
Fork of I2C by
Diff: I2CTransporter.h
- Revision:
- 0:45f0d9b73179
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/I2CTransporter.h Fri Sep 08 03:29:55 2017 +0000 @@ -0,0 +1,25 @@ +#ifndef I2C_TRANSPORTER_H +#define I2C_TRANSPORTER_H + +#include <mbed.h> + +class I2CTransporter +{ + public: + I2CTransporter(I2C *master_); + + void transport_begin(int addr_, char *target_array_, int data_size_); + bool read(); + bool write(); + void transport_end(); + + private: + I2C *_master; + + int address; + char *target_array; + int data_size; + bool Transport_Began; +}; + +#endif