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
00001 #ifndef BITCOMMUNICATION_H 00002 #define BITCOMMUNICATION_H 00003 00004 #include "mbed.h" 00005 00006 /************************************書き込み*****************************************/ 00007 /**変数に書き込んでreturnするバージョン**/ 00008 int bitWrite(int data,int bitNumber,bool content); 00009 00010 /**アドレスを受け取って処理するバージョン**/ 00011 void bitWrite(int *dataAdress,int bitNumber,bool content); 00012 00013 /**配列のアドレスを受け取って処理するバージョン**/ 00014 void bitWrite(int *dataArray,int arrayNumber,int bitNumber,bool content); 00015 00016 /************************************読み込み******************************************/ 00017 /**指定したbitが0or1かをreturn**/ 00018 int bitRead(int data,int bitNumber); 00019 00020 #endif
Generated on Sat Dec 31 2022 14:38:03 by
