Macros
sam_gpio.h File Reference

GPIO service for SAM. More...

#include "compiler.h"
#include "pio.h"
Include dependency graph for sam_gpio.h:

Go to the source code of this file.

Macros

#define gpio_configure_group(port_id, port_mask, io_flags)   pio_configure_pin_group(port_id,port_mask,io_flags)
 
#define gpio_configure_pin(io_id, io_flags)   pio_configure_pin(io_id,io_flags)
 
#define gpio_pin_is_high(io_id)   (pio_get_pin_value(io_id) ? 1 : 0)
 
#define gpio_pin_is_low(io_id)   (pio_get_pin_value(io_id) ? 0 : 1)
 
#define gpio_set_pin_group_high(port_id, mask)   pio_set_pin_group_high(port_id,mask)
 
#define gpio_set_pin_group_low(port_id, mask)   pio_set_pin_group_low(port_id,mask)
 
#define gpio_set_pin_high(io_id)   pio_set_pin_high(io_id)
 
#define gpio_set_pin_low(io_id)   pio_set_pin_low(io_id)
 
#define gpio_toggle_pin(io_id)   pio_toggle_pin(io_id)
 
#define gpio_toggle_pin_group(port_id, mask)   pio_toggle_pin_group(port_id,mask)
 

Detailed Description

GPIO service for SAM.

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

Definition in file sam_gpio.h.

Macro Definition Documentation

◆ gpio_configure_group

#define gpio_configure_group (   port_id,
  port_mask,
  io_flags 
)    pio_configure_pin_group(port_id,port_mask,io_flags)

Definition at line 61 of file sam_gpio.h.

◆ gpio_configure_pin

#define gpio_configure_pin (   io_id,
  io_flags 
)    pio_configure_pin(io_id,io_flags)

Definition at line 58 of file sam_gpio.h.

◆ gpio_pin_is_high

#define gpio_pin_is_high (   io_id)    (pio_get_pin_value(io_id) ? 1 : 0)

Definition at line 46 of file sam_gpio.h.

◆ gpio_pin_is_low

#define gpio_pin_is_low (   io_id)    (pio_get_pin_value(io_id) ? 0 : 1)

Definition at line 43 of file sam_gpio.h.

◆ gpio_set_pin_group_high

#define gpio_set_pin_group_high (   port_id,
  mask 
)    pio_set_pin_group_high(port_id,mask)

Definition at line 64 of file sam_gpio.h.

◆ gpio_set_pin_group_low

#define gpio_set_pin_group_low (   port_id,
  mask 
)    pio_set_pin_group_low(port_id,mask)

Definition at line 67 of file sam_gpio.h.

◆ gpio_set_pin_high

#define gpio_set_pin_high (   io_id)    pio_set_pin_high(io_id)

Definition at line 49 of file sam_gpio.h.

◆ gpio_set_pin_low

#define gpio_set_pin_low (   io_id)    pio_set_pin_low(io_id)

Definition at line 52 of file sam_gpio.h.

◆ gpio_toggle_pin

#define gpio_toggle_pin (   io_id)    pio_toggle_pin(io_id)

Definition at line 55 of file sam_gpio.h.

◆ gpio_toggle_pin_group

#define gpio_toggle_pin_group (   port_id,
  mask 
)    pio_toggle_pin_group(port_id,mask)

Definition at line 70 of file sam_gpio.h.



inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:06