|
Renesas PTX1xxR IoT-Reader API Version 7.3.1
Renesas Software Stack for IoT-Reader Applications
|

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) | |
| 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.
| [in] | gpioComp | Pointer to an initialized instance of the GPIO component. |
| [in] | gpioNr | GPIO number. |
| [in] | gpioConfig | GPIO configuration (input, output, special function). |
| [in] | gpioFlags | GPIO flags (e.g. enable internal pull-up resistor, enable high driver strength). |
| PTX_API_LIBFUNC ptxStatus_t ptxGPIO_Deinit | ( | ptxGPIO_t * | gpioComp | ) |
Deinitializes the GPIO Component.
| [in] | gpioComp | Pointer to an initialized instance of the GPIO component. |
| PTX_API_LIBFUNC ptxStatus_t ptxGPIO_Init | ( | ptxGPIO_t * | gpioComp, |
| ptxGPIO_InitParams_t * | initParams ) |
Initializes the GPIO Component.
| [in] | gpioComp | Pointer to an allocated instance of the GPIO-component. |
| [in] | initParams | Pointer to 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.
| [in] | gpioComp | Pointer to an initialized instance of the GPIO component. |
| [in] | gpioNr | GPIO number. |
| [out] | gpioValue | Pointer to variable storing GPIO-value. |
| 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.
| [in] | gpioComp | Pointer to an initialized instance of the GPIO component. |
| [in] | gpioNr | GPIO number. |
| [in] | gpioValue | Value to set (!= 0 = High, 0 = Low). |
| PTX_API_LIBFUNC ptxStatus_t ptxGPIO_Write_DAC | ( | ptxGPIO_t * | gpioComp, |
| uint8_t | dacValue ) |
Sets 5-bit value to DAC (pin DAC_0)
| [in] | gpioComp | Pointer to an initialized instance of the GPIO component. |
| [in] | dacValue | 5-bit DAC-value. |