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.
bit_set.cpp
- Committer:
- yosino_adati
- Date:
- 2019-09-10
- Revision:
- 4:9b24dd4dff68
- Parent:
- 3:2a301290cf76
File content as of revision 4:9b24dd4dff68:
#include "bit_set.h" void bitini(char var) { var &= 0x00; } void bitset(char var,int cons) { var |= 0x01<<cons; } void bitclear(char var,int cons) { var &= ~(0x01<<cons); } void bit_ini(char* var) { *var &= 0x00; } void bit_set(char* var,int cons) { *var |= 0x01<<cons; } void bit_clear(char* var,int cons) { *var &= ~(0x01<<cons); } bool bittest(char var,int cons) { return (var &= 0x01<<cons)?true:false; }