49#ifndef APIS_PTX_GPIO_H_
50#define APIS_PTX_GPIO_H_
72#if defined (_WIN32) || defined (_WIN64) || defined (ming) || defined (__MINGW32__) || defined (__GNUWIN32__)
73 #define PTX_API_LIBFUNC __declspec(dllexport)
76 #if defined (__GNUC__)
77 #define PTX_API_LIBFUNC __attribute__ ((visibility("default")))
78 #elif defined (_linux) || defined (__linux)
79 #error Missing Platform Specification
81 #error Missing Platform Specification
122 GPIO_Flags_In_Enable_Internal_Pullup,
123 GPIO_Flags_Out_Enable_High_Driver_Strength,
ptxGPIO_Flags
Supported GPIO-Flags.
Definition ptxGPIO.h:120
struct ptxGPIO ptxGPIO_t
GPIO Component.
enum ptxGPIO_Flags ptxGPIO_Flags_t
Supported GPIO-Flags.
ptxGPIO_Pin
Supported GPIO-pins.
Definition ptxGPIO.h:104
PTX_API_LIBFUNC ptxStatus_t ptxGPIO_Deinit(ptxGPIO_t *gpioComp)
Deinitializes the GPIO Component.
PTX_API_LIBFUNC ptxStatus_t ptxGPIO_Write_DAC(ptxGPIO_t *gpioComp, uint8_t dacValue)
Sets 5-bit value to DAC (pin DAC_0)
PTX_API_LIBFUNC ptxStatus_t ptxGPIO_Init(ptxGPIO_t *gpioComp, ptxGPIO_InitParams_t *initParams)
Initializes the GPIO Component.
ptxGPIO_Config
GPIO Config.
Definition ptxGPIO.h:131
enum ptxGPIO_Pin ptxGPIO_Pin_t
Supported GPIO-pins.
enum ptxGPIO_Config ptxGPIO_Config_t
GPIO Config.
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.
struct ptxGPIO_InitParams ptxGPIO_InitParams_t
GPIO Initialization Parameters.
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.
uint16_t ptxStatus_t
Status Type.
Definition ptx_Status.h:82
enum ptxStatus_Comps ptxStatus_Comps_t
Component Definitions.
struct ptxSemaphore * ptxSemaphore_t
Semaphore Wrapper Structure - Forward Declaration.
Definition ptxOsal.h:100
GPIO Initialization Parameters.
Definition ptxGPIO.h:95
void * StackComp
Definition ptxGPIO.h:96
GPIO Component.
Definition ptxGPIO.h:141
ptxSemaphore_t * Sem_Completion
Definition ptxGPIO.h:148
ptxLog_t * LOG
Definition ptxGPIO.h:146
uint16_t * CompletionStatus
Definition ptxGPIO.h:149
void * StackComp
Definition ptxGPIO.h:147
uint8_t * DataShared
Definition ptxGPIO.h:150
ptxStatus_Comps_t CompId
Definition ptxGPIO.h:143
struct ptxOsal * OS
Definition ptxGPIO.h:145
Logger Component Structure.
Definition ptxLog.h:208