Trident IoT SDK
 
Loading...
Searching...
No Matches
tr_hal_gpio.h File Reference

This is the common include file for the Trident HAL GPIO Driver. More...

#include "tr_hal_platform.h"
+ Include dependency graph for tr_hal_gpio.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

tr_hal_status_t tr_hal_gpio_init (tr_hal_gpio_pin_t pin, tr_hal_gpio_settings_t *gpio_settings)
 
tr_hal_status_t tr_hal_gpio_read_settings (tr_hal_gpio_pin_t pin, tr_hal_gpio_settings_t *gpio_settings)
 
tr_hal_status_t tr_hal_gpio_read_input (tr_hal_gpio_pin_t pin, tr_hal_level_t *read_value)
 
bool tr_hal_gpio_is_available (tr_hal_gpio_pin_t pin)
 
bool tr_hal_gpio_are_pins_equal (tr_hal_gpio_pin_t pin1, tr_hal_gpio_pin_t pin2)
 
tr_hal_status_t tr_hal_gpio_set_direction (tr_hal_gpio_pin_t pin, tr_hal_direction_t direction)
 
tr_hal_status_t tr_hal_gpio_get_direction (tr_hal_gpio_pin_t pin, tr_hal_direction_t *direction)
 
tr_hal_status_t tr_hal_gpio_set_output (tr_hal_gpio_pin_t pin, tr_hal_level_t level)
 
tr_hal_status_t tr_hal_gpio_get_output (tr_hal_gpio_pin_t pin, tr_hal_level_t *level)
 
tr_hal_status_t tr_hal_gpio_toggle_output (tr_hal_gpio_pin_t pin)
 
tr_hal_status_t tr_hal_gpio_set_interrupt_trigger (tr_hal_gpio_pin_t pin, tr_hal_trigger_t trigger)
 
tr_hal_status_t tr_hal_gpio_get_interrupt_trigger (tr_hal_gpio_pin_t pin, tr_hal_trigger_t *trigger)
 
tr_hal_status_t tr_hal_gpio_set_interrupt_priority (tr_hal_int_pri_t new_interrupt_priority)
 
tr_hal_status_t tr_hal_gpio_get_interrupt_priority (tr_hal_int_pri_t *interrupt_priority)
 
tr_hal_status_t tr_hal_gpio_set_interrupt_callback (tr_hal_gpio_pin_t pin, tr_hal_gpio_event_callback_t callback_function)
 
tr_hal_status_t tr_hal_gpio_get_interrupt_callback (tr_hal_gpio_pin_t pin, tr_hal_gpio_event_callback_t *callback_function)
 
tr_hal_status_t tr_hal_gpio_set_open_drain (tr_hal_gpio_pin_t pin, bool enable)
 
tr_hal_status_t tr_hal_gpio_get_open_drain (tr_hal_gpio_pin_t pin, bool *drain_enabled)
 
tr_hal_status_t tr_hal_gpio_set_pull_mode (tr_hal_gpio_pin_t pin, tr_hal_pullopt_t mode)
 
tr_hal_status_t tr_hal_gpio_get_pull_mode (tr_hal_gpio_pin_t pin, tr_hal_pullopt_t *mode)
 
tr_hal_status_t tr_hal_gpio_set_debounce (tr_hal_gpio_pin_t pin, bool enable)
 
tr_hal_status_t tr_hal_gpio_get_debounce (tr_hal_gpio_pin_t pin, bool *debounce_enabled)
 
tr_hal_status_t tr_hal_gpio_set_debounce_time (tr_hal_debounce_time_t new_debounce_time)
 
tr_hal_status_t tr_hal_gpio_get_debounce_time (tr_hal_debounce_time_t *debounce_time)
 
tr_hal_status_t tr_hal_gpio_set_drive_strength (tr_hal_gpio_pin_t pin, tr_hal_drive_strength_t new_drive_strength)
 
tr_hal_status_t tr_hal_gpio_get_drive_strength (tr_hal_gpio_pin_t pin, tr_hal_drive_strength_t *drive_strength)
 
tr_hal_status_t tr_hal_gpio_set_wake_mode (tr_hal_gpio_pin_t pin, tr_hal_wake_mode_t wake_mode)
 
tr_hal_status_t tr_hal_gpio_get_wake_mode (tr_hal_gpio_pin_t pin, tr_hal_wake_mode_t *wake_mode)
 
tr_hal_status_t tr_hal_gpio_set_mode (tr_hal_gpio_pin_t pin, tr_hal_pin_mode_t mode)
 
tr_hal_status_t tr_hal_gpio_get_mode (tr_hal_gpio_pin_t pin, tr_hal_pin_mode_t *mode)
 
char * tr_hal_gpio_get_string (tr_hal_gpio_pin_t pin)
 

Detailed Description

This is the common include file for the Trident HAL GPIO Driver.


SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com