Wixel SDK
gpio.h
Go to the documentation of this file.
1 
115 #ifndef _GPIO_H
116 #define _GPIO_H
117 
118 #include <cc2511_types.h>
119 
121 #define LOW 0
122 
124 #define HIGH 1
125 
128 #define HIGH_IMPEDANCE 0
129 
132 #define PULLED 1
133 
151 void setDigitalOutput(uint8 pinNumber, BIT value) __reentrant;
152 
177 void setDigitalInput(uint8 pinNumber, BIT pulled) __reentrant;
178 
199 BIT isPinHigh(uint8 pinNumber) __reentrant;
200 
210 void setPort0PullType(BIT pullType) __reentrant;
211 
213 void setPort1PullType(BIT pullType) __reentrant;
214 
219 void setPort2PullType(BIT pullType) __reentrant;
220 
221 #endif
void setPort0PullType(BIT pullType) __reentrant
Definition: gpio.c:52
void setDigitalInput(uint8 pinNumber, BIT pulled) __reentrant
Configures the specified pin as an input.
Definition: gpio.c:41
void setPort1PullType(BIT pullType) __reentrant
Definition: gpio.c:58
void setDigitalOutput(uint8 pinNumber, BIT value) __reentrant
Configures the specified pin as a digital output.
Definition: gpio.c:36
__bit BIT
Definition: cc2511_types.h:32
unsigned char uint8
Definition: cc2511_types.h:9
BIT isPinHigh(uint8 pinNumber) __reentrant
Returns the current input or output value of the pin.
Definition: gpio.c:46
void setPort2PullType(BIT pullType) __reentrant
Definition: gpio.c:64