Renesas PTX1xxR IoT-Reader API Version 7.3.1
Renesas Software Stack for IoT-Reader Applications
Data Structures | Typedefs | Enumerations | Functions
ptxGPIO.h File Reference
#include <stdint.h>
#include "ptx_Status.h"
#include "ptxOsal.h"
#include "ptxLog.h"
Include dependency graph for ptxGPIO.h:

Go to the source code of this file.

Data Structures

struct  ptxGPIO_InitParams
 GPIO Initialization Parameters. More...
 
struct  ptxGPIO
 GPIO Component. More...
 

Typedefs

typedef struct ptxGPIO_InitParams ptxGPIO_InitParams_t
 GPIO Initialization Parameters.
 
typedef enum ptxGPIO_Pin ptxGPIO_Pin_t
 Supported GPIO-pins.
 
typedef enum ptxGPIO_Flags ptxGPIO_Flags_t
 Supported GPIO-Flags.
 
typedef enum ptxGPIO_Config ptxGPIO_Config_t
 GPIO Config.
 
typedef struct ptxGPIO ptxGPIO_t
 GPIO Component.
 

Enumerations

enum  ptxGPIO_Pin {
  GPIO_Pin_5 = 5 , GPIO_Pin_6 = 6 , GPIO_Pin_7 = 7 , GPIO_Pin_8 = 8 ,
  GPIO_Pin_9 = 9 , GPIO_Pin_10 = 10 , GPIO_Pin_11 = 11 , GPIO_Pin_12 = 12
}
 Supported GPIO-pins.
 
enum  ptxGPIO_Flags { GPIO_Flags_None , GPIO_Flags_In_Enable_Internal_Pullup , GPIO_Flags_Out_Enable_High_Driver_Strength }
 Supported GPIO-Flags.
 
enum  ptxGPIO_Config { GPIO_Config_Input , GPIO_Config_Output }
 GPIO Config.
 

Functions

PTX_API_LIBFUNC ptxStatus_t ptxGPIO_Init (ptxGPIO_t *gpioComp, ptxGPIO_InitParams_t *initParams)
 Initializes the GPIO Component.
 
PTX_API_LIBFUNC ptxStatus_t ptxGPIO_Deinit (ptxGPIO_t *gpioComp)
 Deinitializes the GPIO Component.
 
PTX_API_LIBFUNC ptxStatus_t ptxGPIO_Config (ptxGPIO_t *gpioComp, ptxGPIO_Pin_t gpioNr, ptxGPIO_Config_t gpioConfig, ptxGPIO_Flags_t gpioFlags)
 Configures a selected GPIO-pin to work as input or output.
 
PTX_API_LIBFUNC ptxStatus_t ptxGPIO_Write (ptxGPIO_t *gpioComp, ptxGPIO_Pin_t gpioNr, uint8_t gpioValue)
 Writes the selected GPIO-pin high or low.
 
PTX_API_LIBFUNC ptxStatus_t ptxGPIO_Read (ptxGPIO_t *gpioComp, ptxGPIO_Pin_t gpioNr, uint8_t *gpioValue)
 Reads the current value of a selected GPIO-pin.
 
PTX_API_LIBFUNC ptxStatus_t ptxGPIO_Write_DAC (ptxGPIO_t *gpioComp, uint8_t dacValue)
 Sets 5-bit value to DAC (pin DAC_0)
 

Detailed Description

SPDX-License-Identifier: BSD-3-Clause

Copyright (c) 2026, Renesas Electronics Corporation and/or its affiliates

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Renesas nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY Renesas "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RENESAS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT

OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Project : PTX1K Module : PTX1K GPIO API File : ptxGPIO.h

Description : Writes / Reads GPIO pins 5-12 and provides access to 5-bit DAC of PTX100x