NHAL Interface v0.5.0
Hardware Abstraction Layer Interface for Embedded Systems
|
This file defines the types and enumerations used for interacting with hardware pins in the HAL. More...
Go to the source code of this file.
Data Structures | |
struct | nhal_pin_config |
struct | nhal_pin_context |
Pin context structure. More... | |
Typedefs | |
typedef enum nhal_pin_state_t | nhal_pin_state_t |
typedef void(* | nhal_pin_callback_t) (void *context) |
Enumerations | |
enum | nhal_pin_state_t { NHAL_PIN_LOW = 0 , NHAL_PIN_HIGH } |
enum | nhal_pin_dir_t { NHAL_PIN_DIR_INPUT , NHAL_PIN_DIR_OUTPUT , NHAL_PIN_DIR_TOTAL_NUM } |
enum | nhal_pin_pull_mode_t { NHAL_PIN_PMODE_NONE , NHAL_PIN_PMODE_PULL_UP , NHAL_PIN_PMODE_PULL_DOWN , NHAL_PIN_PMODE_PULL_UP_AND_DOWN , NHAL_PIN_PMODE_TOTAL_NUM } |
This file defines the types and enumerations used for interacting with hardware pins in the HAL.
This header provides definitions for pin identifiers, status codes, callback functions, configuration structures, context structures, and pin states.
Definition in file nhal_pin_types.h.
typedef void(* nhal_pin_callback_t) (void *context) |
Definition at line 34 of file nhal_pin_types.h.
typedef enum nhal_pin_state_t nhal_pin_state_t |
enum nhal_pin_dir_t |
Enumerator | |
---|---|
NHAL_PIN_DIR_INPUT | |
NHAL_PIN_DIR_OUTPUT | |
NHAL_PIN_DIR_TOTAL_NUM |
Definition at line 20 of file nhal_pin_types.h.
enum nhal_pin_pull_mode_t |
Enumerator | |
---|---|
NHAL_PIN_PMODE_NONE | |
NHAL_PIN_PMODE_PULL_UP | |
NHAL_PIN_PMODE_PULL_DOWN | |
NHAL_PIN_PMODE_PULL_UP_AND_DOWN | |
NHAL_PIN_PMODE_TOTAL_NUM |
Definition at line 26 of file nhal_pin_types.h.
enum nhal_pin_state_t |
Enumerator | |
---|---|
NHAL_PIN_LOW | |
NHAL_PIN_HIGH |
Definition at line 15 of file nhal_pin_types.h.