NHAL Interface v0.5.0
Hardware Abstraction Layer Interface for Embedded Systems
Loading...
Searching...
No Matches
nhal_pin_types.h
Go to the documentation of this file.
1
8#ifndef NHAL_PIN_TYPES_H
9#define NHAL_PIN_TYPES_H
10
11#include <stdint.h>
12
13#include "nhal_common.h"
14
19
25
33
34typedef void (*nhal_pin_callback_t)(void *context);
35
41
56 struct nhal_pin_id * pin_id;
57 struct nhal_pin_impl_ctx * impl_ctx;
58};
59
60
61#endif
nhal_pin_pull_mode_t
@ NHAL_PIN_PMODE_PULL_DOWN
@ NHAL_PIN_PMODE_PULL_UP
@ NHAL_PIN_PMODE_NONE
@ NHAL_PIN_PMODE_TOTAL_NUM
@ NHAL_PIN_PMODE_PULL_UP_AND_DOWN
void(* nhal_pin_callback_t)(void *context)
nhal_pin_dir_t
@ NHAL_PIN_DIR_TOTAL_NUM
@ NHAL_PIN_DIR_INPUT
@ NHAL_PIN_DIR_OUTPUT
nhal_pin_state_t
@ NHAL_PIN_LOW
@ NHAL_PIN_HIGH
struct nhal_pin_impl_config * impl_config
nhal_pin_pull_mode_t pull_mode
nhal_pin_dir_t direction
Pin context structure.
struct nhal_pin_id * pin_id
struct nhal_pin_impl_ctx * impl_ctx