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.
Diff: bit_set.cpp
- Revision:
- 0:e260b26ee5fb
- Child:
- 1:4b6bf9473b7d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bit_set.cpp Mon Sep 09 05:55:15 2019 +0000 @@ -0,0 +1,21 @@ +#include "bit_set.h" + +char bit_set::bitini(char var) +{ + return 0x00; +} + +void bit_set::bitset(char var,int cons) +{ + var |= 2^cons; +} + +void bit_set::bitclear(char var,int cons) +{ + var &= ~(2^cons); +} + +bool bit_set::bitcheck(char var,int cons) +{ + return (var &= 2^cons)?true:false ; +} \ No newline at end of file