This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | bitmclr(var, bitm) |
#define | bitmset(var, bitm) |
Functions | |
__inline__ void | bitnclr (uchar *addr, uchar bitn) |
Clears bit @ addr (bit is 0..7). | |
__inline__ void | bitnset (uchar *addr, uchar bitn) |
Sets bit @ addr (bit is 0..7). | |
__inline__ bool | bitncheck (uchar *addr, uchar bitn) |
Checks bit @ addr (bit is 0..7). |
|
Value: do { \ __asm__ __volatile__ ( \ "bclr %0, %1" \ : /* Output */ \ : "p" (&var), "n" (bitm) /* Input */ \ : "%ccr" /* Clobbered */ \ ); \ \ } while (0); |
|
Value: do { \ __asm__ __volatile__ ( \ "bset %0, %1" \ : /* Output */ \ : "p" (&var), "n" (bitm) /* Input */ \ : "%ccr" /* Clobbered */ \ ); \ \ } while (0); |
|
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 }
|