Port_driver_internals_group
[PORT Driver]

Collaboration diagram for Port_driver_internals_group:

Functions

void gpio_set_value_noninline (gpio_pin_t pin, bool value)
 Drive a GPIO pin to a given state (non-constant pin version).
bool gpio_get_value_noninline (gpio_pin_t pin)
 Read the current state of a GPIO pin (non-constant pin version).

PORT Pin Numbering

For internal use only.

These macros are used to generate GPIO pin numbers for each port with the CREATE_GPIO_PIN macro. Each port has 8 pins so e.g. the first pin on PORTB gets number 8, first pin on PORTC gets 16 ...



#define PORT_PORTA   (0 * 8)
#define PORT_PORTB   (1 * 8)
#define PORT_PORTC   (2 * 8)
#define PORT_PORTD   (3 * 8)
#define PORT_PORTE   (4 * 8)
#define PORT_PORTF   (5 * 8)
#define PORT_PORTG   (6 * 8)
#define PORT_PORTH   (7 * 8)
#define PORT_PORTJ   (8 * 8)
#define PORT_PORTK   (9 * 8)
#define PORT_PORTL   (10 * 8)
#define PORT_PORTM   (11 * 8)
#define PORT_PORTN   (12 * 8)
#define PORT_PORTP   (13 * 8)
#define PORT_PORTQ   (14 * 8)
#define PORT_PORTR   (15 * 8)

Detailed Description

For internal use only.


Function Documentation

bool gpio_get_value_noninline ( gpio_pin_t  pin  ) 

Read the current state of a GPIO pin (non-constant pin version).

Parameters:
pin A number identifying the pin to read.
Return values:
true The pin is currently high (close to Vdd)
false The pin is currently low (close to Vss)

Definition at line 88 of file port.c.

Referenced by gpio_get_value().

void gpio_set_value_noninline ( gpio_pin_t  pin,
bool  value 
)

Drive a GPIO pin to a given state (non-constant pin version).

This function will only have an effect if pin is configured as an output.

Parameters:
pin A number identifying the pin to act on.
value The desired state of the pin. true means drive the pin high (towards Vdd), while false means drive the pin low (towards Vss).

Definition at line 75 of file port.c.

Referenced by gpio_set_value().

Generated on Thu Apr 29 14:10:02 2010 for display-demo by  doxygen 1.6.3