Definition in file bbit.c.
#include "../include/beeos.h"
#include "../include/bbit.h"
Include dependency graph for bbit.c:
Go to the source code of this file.
Functions | |
void | bitnclr (uchar *addr, uchar bitn) |
Clears bit @ addr (bit is 0..7). | |
void | bitnset (uchar *addr, uchar bitn) |
Sets bit @ addr (bit is 0..7). | |
bool | bitncheck (uchar *addr, uchar bitn) |
Checks bit @ addr (bit is 0..7). |
|
Checks
Definition at line 61 of file bbit.c. References uchar. Referenced by btnscan_chk().
00063 { 00064 if ((*addr & (0x01<<bitn)) != '\0') return true; 00065 else return false; 00066 } |
|
Clears
Definition at line 32 of file bbit.c. References uchar.
00034 {
00035 *addr &= ~(0x01<<bitn);
00036
00037 return;
00038 }
|
|
Sets
Definition at line 46 of file bbit.c. References uchar.
00048 {
00049 *addr |= 0x01<<bitn;
00050
00051 return;
00052 }
|