NHAL Interface v0.5.0
Hardware Abstraction Layer Interface for Embedded Systems
Loading...
Searching...
No Matches
Data Structures | Typedefs | Enumerations
nhal_pin_types.h File Reference

This file defines the types and enumerations used for interacting with hardware pins in the HAL. More...

#include <stdint.h>
#include "nhal_common.h"

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
}
 

Detailed Description

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 Documentation

◆ nhal_pin_callback_t

typedef void(* nhal_pin_callback_t) (void *context)

Definition at line 34 of file nhal_pin_types.h.

◆ nhal_pin_state_t

Enumeration Type Documentation

◆ 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.

◆ 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.

◆ nhal_pin_state_t

Enumerator
NHAL_PIN_LOW 
NHAL_PIN_HIGH 

Definition at line 15 of file nhal_pin_types.h.