0
mirror of https://gitlab.com/hyperglitch/jellyfish.git synced 2025-12-26 15:16:30 +00:00
2025-06-12 10:31:43 +02:00

32 lines
583 B
C

/*
* SPDX-FileCopyrightText: 2025 Igor Brkic <igor@hyperglitch.com>
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef JF_COMMON_H
#define JF_COMMON_H
#include <stdint.h>
typedef struct{
uint32_t enc_sw;
uint32_t enc_sw_evt_id;
uint32_t btn;
uint32_t btn_evt_id;
int32_t encoder;
} jf_ui_t;
// keep this in sync with labels in .c file
typedef enum {
JF_HWREV_v01,
JF_HWREV_v20,
} jf_dev_revision_t;
jf_dev_revision_t jf_get_dev_revision();
void jf_get_dev_revision_name(char *name_out);
void jf_dev_get_uid(uint32_t *uid_out);
#endif //JF_COMMON_H