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
I2CTransporter.h
- Committer:
- Komazawa_sun
- Date:
- 2017-09-08
- Revision:
- 0:45f0d9b73179
File content as of revision 0:45f0d9b73179:
#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