49#ifndef APIS_PTX_GPIO_H_
50#define APIS_PTX_GPIO_H_
74#define PTX_GPIO_FLAGS_ENABLE_INTERNAL_PULLUP (uint8_t)0x01
75#define PTX_GPIO_FLAGS_ENABLE_HIGH_DRIVER_STRENGTH (uint8_t)0x02
114 GPIO_Flags_In_Enable_Internal_Pullup,
115 GPIO_Flags_Out_Enable_High_Driver_Strength,
ptxGPIO_Flags
Supported GPIO-Flags.
Definition ptxGPIO.h:112
struct ptxGPIO ptxGPIO_t
GPIO Component.
ptxStatus_t ptxGPIO_Deinit(ptxGPIO_t *gpioComp)
Deinitializes the GPIO Component.
enum ptxGPIO_Flags ptxGPIO_Flags_t
Supported GPIO-Flags.
ptxGPIO_Pin
Supported GPIO-pins.
Definition ptxGPIO.h:96
ptxGPIO_Config
GPIO Config.
Definition ptxGPIO.h:123
ptxStatus_t ptxGPIO_Init(ptxGPIO_t *gpioComp, ptxGPIO_InitParams_t *initParams)
Initializes the GPIO Component.
enum ptxGPIO_Pin ptxGPIO_Pin_t
Supported GPIO-pins.
ptxStatus_t ptxGPIO_Write(ptxGPIO_t *gpioComp, ptxGPIO_Pin_t gpioNr, uint8_t gpioValue)
Writes the selected GPIO-pin high or low.
ptxStatus_t ptxGPIO_Read(ptxGPIO_t *gpioComp, ptxGPIO_Pin_t gpioNr, uint8_t *gpioValue)
Reads the current value of a selected GPIO-pin.
enum ptxGPIO_Config ptxGPIO_Config_t
GPIO Config.
struct ptxGPIO_InitParams ptxGPIO_InitParams_t
GPIO Initialization Parameters.
ptxStatus_t ptxGPIO_Write_DAC(ptxGPIO_t *gpioComp, uint8_t dacValue)
Sets 5-bit value to DAC (pin DAC_0)
uint16_t ptxStatus_t
Status Type.
Definition ptxStatus.h:70
enum ptxStatus_Comps ptxStatus_Comps_t
Component Definitions.
GPIO Initialization Parameters.
Definition ptxGPIO.h:87
struct ptxNSC * Nsc
Definition ptxGPIO.h:88
GPIO Component.
Definition ptxGPIO.h:133
uint8_t GPIO_Cfg[12]
Definition ptxGPIO.h:138
struct ptxNSC * Nsc
Definition ptxGPIO.h:137
ptxStatus_Comps_t CompId
Definition ptxGPIO.h:135
Main NSC component structure.
Definition ptxNSC.h:1184