Loading...
Searching...
No Matches
modmachine.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Kaspar Schleiser <kaspar@schleiser.de>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#include "py/obj.h"
21#include "periph/gpio.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27extern const mp_obj_type_t machine_pin_type;
28extern const mp_obj_type_t machine_hw_spi_type;
29extern const mp_obj_type_t machine_adc_type;
30
31MP_DECLARE_CONST_FUN_OBJ_0(machine_info_obj);
32
36typedef struct _machine_pin_obj_t {
37 mp_obj_base_t base;
38 gpio_t pin;
40
41#ifdef __cplusplus
42}
43#endif
Low-level GPIO peripheral driver interface definitions.
MP_DECLARE_CONST_FUN_OBJ_0(machine_info_obj)
Machine info function object.
struct _machine_pin_obj_t machine_pin_obj_t
Machine pin object.
const mp_obj_type_t machine_adc_type
Machine ADC object type.
const mp_obj_type_t machine_pin_type
Machine pin object type.
const mp_obj_type_t machine_hw_spi_type
Machine hardware SPI object type.
Machine pin object.
Definition modmachine.h:36
mp_obj_base_t base
Base object.
Definition modmachine.h:37
gpio_t pin
GPIO pin.
Definition modmachine.h:38