26 #ifndef __RFLPC_PINCONF_H__
27 #define __RFLPC_PINCONF_H__
30 #include "nxp/LPC17xx.h"
47 #define RFLPC_PIN_MAKE(port, pin) ((port) << 5 | (pin))
50 #define RFLPC_PIN_GET_PORT(pin) (((pin) >> 5) & 0x7)
52 #define RFLPC_PIN_GET_PIN(pin) ((pin) & 0x1F)
uint8_t rflpc_pin_t
Represents a pin.
The pin has pull-down resistor enabled.
The pin has repeater mode enabled.
The pin has pull-up resistor enabled.
rflpc_pin_mode_t
Pin mode.
void rflpc_pin_set(rflpc_pin_t pin, int function, rflpc_pin_mode_t mode, int opendrain)
Sets the operational mode for a given pin on a given port.
The pin has neither pull-up nor pull-down.
#define RFLPC_PIN_MAKE(port, pin)
Can be used to create a rflpc_pin_t from a port index and a pin index.