34 const void set (
const bool b)
const {
35 if (b) LPC_GPIO->SET[0] = pos;
36 else LPC_GPIO->CLR[0] = pos;
39 const void set (
void)
const {
40 LPC_GPIO->SET[0] = pos;
43 const void clr (
void)
const {
44 LPC_GPIO->CLR[0] = pos;
48 LPC_GPIO->NOT[0] = pos;
51 const bool get (void)
const {
52 if (LPC_GPIO->PIN[0] & pos)
return true;
56 if (p) LPC_GPIO->DIR[0] |= pos;
57 else LPC_GPIO->DIR[0] &= ~pos;
GpioClass(const uint32_t no, const GPIODir_TypeDef type=GPIO_Mode_OUT)
Definition: gpio.h:26
__IO uint32_t SYSAHBCLKCTRL
Definition: LPC11Uxx.h:490
const void clr(void) const
Nastav pin na log. L.
Definition: gpio.h:43
Obecný GPIO pin.
Definition: gpio.h:20
const void set(const bool b) const
Nastav pin.
Definition: gpio.h:34
GPIODir_TypeDef
Definition: gpio.h:6
const void set(void) const
Nastav pin na log. H.
Definition: gpio.h:39
const void change(void) const
Změň hodnotu pinu.
Definition: gpio.h:47
CMSIS Cortex-M0 Core Peripheral Access Layer Header File for default LPC11Uxx Device Series...