Uniot Core
0.8.1
Loading...
Searching...
No Matches
LispPrimitives.h
Go to the documentation of this file.
1/*
2 * This is a part of the Uniot project.
3 * Copyright (C) 2016-2024 Uniot <contact@uniot.io>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#pragma once
20
21#include <Button.h>
22#include <DefaultPrimitives.h>
23#include <LispHelper.h>
24#include <PrimitiveExpeditor.h>
25
30namespace uniot::primitive {
47Object dwrite(Root root, VarObject env, VarObject list);
61Object dread(Root root, VarObject env, VarObject list);
62
76Object awrite(Root root, VarObject env, VarObject list);
77
91Object aread(Root root, VarObject env, VarObject list);
92
106Object bclicked(Root root, VarObject env, VarObject list);
108} // namespace uniot::primitive
Defines string constants for Lisp primitive function names.
Object aread(Root root, VarObject env, VarObject list)
Analog read primitive function for reading analog input.
Definition LispPrimitives.cpp:74
Object bclicked(Root root, VarObject env, VarObject list)
Button clicked primitive function for checking button click status.
Definition LispPrimitives.cpp:91
Object dwrite(Root root, VarObject env, VarObject list)
Definition LispPrimitives.cpp:23
Object awrite(Root root, VarObject env, VarObject list)
Analog write primitive function for setting PWM output.
Definition LispPrimitives.cpp:57
Object dread(Root root, VarObject env, VarObject list)
Digital read primitive function for reading pin input state.
Definition LispPrimitives.cpp:40
struct Obj * Object
A pointer to a Lisp object structure.
Definition LispHelper.h:61
void * Root
A generic pointer representing the root of a Lisp environment.
Definition LispHelper.h:76
struct Obj ** VarObject
A pointer to a pointer to a Lisp object structure.
Definition LispHelper.h:69
Contains descriptions and implementations of primitive functions for hardware interaction.
Definition LispPrimitives.cpp:21