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.
Dependents: Tourobo2022_TBCMotorDriver
bitCommunication.h@0:84d855550633, 2019-04-02 (annotated)
- Committer:
- YutaTogashi
- Date:
- Tue Apr 02 03:36:03 2019 +0000
- Revision:
- 0:84d855550633
- Child:
- 1:07e4d319fabf
bitCommunication
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| YutaTogashi | 0:84d855550633 | 1 | #ifndef BITCOMMUNICATION_H |
| YutaTogashi | 0:84d855550633 | 2 | #define BITCOMMUNICATION_H |
| YutaTogashi | 0:84d855550633 | 3 | |
| YutaTogashi | 0:84d855550633 | 4 | #include "mbed.h" |
| YutaTogashi | 0:84d855550633 | 5 | |
| YutaTogashi | 0:84d855550633 | 6 | /************************************書き込み*****************************************/ |
| YutaTogashi | 0:84d855550633 | 7 | /**変数に書き込んでreturnするバージョン**/ |
| YutaTogashi | 0:84d855550633 | 8 | int bitWrite(int data,int bitNumber,bool content); |
| YutaTogashi | 0:84d855550633 | 9 | |
| YutaTogashi | 0:84d855550633 | 10 | /**アドレスを受け取って処理するバージョン(未動作(危険))**/ |
| YutaTogashi | 0:84d855550633 | 11 | void bitWrite(int *dataAdress,int bitNumber,bool content); |
| YutaTogashi | 0:84d855550633 | 12 | |
| YutaTogashi | 0:84d855550633 | 13 | /**配列のアドレスを受け取って処理するバージョン**/ |
| YutaTogashi | 0:84d855550633 | 14 | void bitWrite(int *dataArray,int arrayNumber,int bitNumber,bool content); |
| YutaTogashi | 0:84d855550633 | 15 | |
| YutaTogashi | 0:84d855550633 | 16 | |
| YutaTogashi | 0:84d855550633 | 17 | /************************************読み込み******************************************/ |
| YutaTogashi | 0:84d855550633 | 18 | /**指定したbitが0or1かをreturn**/ |
| YutaTogashi | 0:84d855550633 | 19 | int bitRead(int data,int bitNumber); |
| YutaTogashi | 0:84d855550633 | 20 | |
| YutaTogashi | 0:84d855550633 | 21 | #endif |