![]() |
![]() |
CC23x0R5DriverLibrary
|
#include <stdint.h>
#include "../inc/hw_types.h"
#include "../inc/hw_memmap.h"
#include "../inc/hw_gpio.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | GPIO_DIO_0_MASK 0x00000001 |
#define | GPIO_DIO_1_MASK 0x00000002 |
#define | GPIO_DIO_2_MASK 0x00000004 |
#define | GPIO_DIO_3_MASK 0x00000008 |
#define | GPIO_DIO_4_MASK 0x00000010 |
#define | GPIO_DIO_5_MASK 0x00000020 |
#define | GPIO_DIO_6_MASK 0x00000040 |
#define | GPIO_DIO_7_MASK 0x00000080 |
#define | GPIO_DIO_8_MASK 0x00000100 |
#define | GPIO_DIO_9_MASK 0x00000200 |
#define | GPIO_DIO_10_MASK 0x00000400 |
#define | GPIO_DIO_11_MASK 0x00000800 |
#define | GPIO_DIO_12_MASK 0x00001000 |
#define | GPIO_DIO_13_MASK 0x00002000 |
#define | GPIO_DIO_14_MASK 0x00004000 |
#define | GPIO_DIO_15_MASK 0x00008000 |
#define | GPIO_DIO_16_MASK 0x00010000 |
#define | GPIO_DIO_17_MASK 0x00020000 |
#define | GPIO_DIO_18_MASK 0x00040000 |
#define | GPIO_DIO_19_MASK 0x00080000 |
#define | GPIO_DIO_20_MASK 0x00100000 |
#define | GPIO_DIO_21_MASK 0x00200000 |
#define | GPIO_DIO_22_MASK 0x00400000 |
#define | GPIO_DIO_23_MASK 0x00800000 |
#define | GPIO_DIO_24_MASK 0x01000000 |
#define | GPIO_DIO_25_MASK 0x02000000 |
#define | GPIO_DIO_ALL_MASK 0xFFFFFFFF |
#define | GPIO_OUTPUT_DISABLE 0x00000000 |
#define | GPIO_OUTPUT_ENABLE 0x00000001 |
Functions | |
__STATIC_INLINE uint32_t | GPIOReadDio (uint32_t dioNumber) |
Reads a specific DIO. More... | |
__STATIC_INLINE uint32_t | GPIOReadMultiDio (uint32_t dioMask) |
Reads the input value for the specified DIOs. More... | |
__STATIC_INLINE void | GPIOWriteDio (uint32_t dioNumber, uint32_t value) |
Writes a value to a specific DIO. More... | |
__STATIC_INLINE void | GPIOWriteMultiDio (uint32_t dioMask, uint32_t bitVectoredValue) |
Writes masked data to the specified DIOs. More... | |
__STATIC_INLINE void | GPIOSetDio (uint32_t dioNumber) |
Sets a specific DIO to 1 (high). More... | |
__STATIC_INLINE void | GPIOSetMultiDio (uint32_t dioMask) |
Sets the specified DIOs to 1 (high). More... | |
__STATIC_INLINE void | GPIOClearDio (uint32_t dioNumber) |
Clears a specific DIO to 0 (low). More... | |
__STATIC_INLINE void | GPIOClearMultiDio (uint32_t dioMask) |
Clears the specified DIOs to 0 (low). More... | |
__STATIC_INLINE void | GPIOToggleDio (uint32_t dioNumber) |
Toggles a specific DIO. More... | |
__STATIC_INLINE void | GPIOToggleMultiDio (uint32_t dioMask) |
Toggles the specified DIOs. More... | |
__STATIC_INLINE uint32_t | GPIOGetOutputEnableDio (uint32_t dioNumber) |
Gets the output enable status of a specific DIO. More... | |
__STATIC_INLINE uint32_t | GPIOGetOutputEnableMultiDio (uint32_t dioMask) |
Gets the output enable setting of the specified DIOs. More... | |
__STATIC_INLINE void | GPIOSetOutputEnableDio (uint32_t dioNumber, uint32_t outputEnableValue) |
Sets output enable of a specific DIO. More... | |
__STATIC_INLINE void | GPIOSetOutputEnableMultiDio (uint32_t dioMask, uint32_t bitVectoredOutputEnable) |
Configures the output enable setting for all specified DIOs. More... | |
__STATIC_INLINE uint32_t | GPIOGetEventDio (uint32_t dioNumber) |
Gets the event status of a specific DIO. More... | |
__STATIC_INLINE uint32_t | GPIOGetEventMultiDio (uint32_t dioMask) |
Gets the event status of the specified DIOs. More... | |
__STATIC_INLINE void | GPIOClearEventDio (uint32_t dioNumber) |
Clears the IO event status of a specific DIO. More... | |
__STATIC_INLINE void | GPIOClearEventMultiDio (uint32_t dioMask) |
Clears the IO event status on the specified DIOs. More... | |