mirror of
https://github.com/buserror/mii_emu.git
synced 2024-09-29 13:54:54 +00:00
3fd0540a83
Changes are just too long to list... Signed-off-by: Michel Pollet <buserror@gmail.com>
35 lines
500 B
C
35 lines
500 B
C
/*
|
|
* mii_analog.h
|
|
*
|
|
* Copyright (C) 2023 Michel Pollet <buserror@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct mii_analog_t {
|
|
struct {
|
|
uint8_t value;
|
|
// mii_cycles_t decay;
|
|
uint8_t timer_id;
|
|
} v[4];
|
|
bool enabled;
|
|
} mii_analog_t;
|
|
|
|
struct mii_t;
|
|
|
|
void
|
|
mii_analog_init(
|
|
struct mii_t *mii,
|
|
mii_analog_t * analog );
|
|
|
|
void
|
|
mii_analog_access(
|
|
mii_t *mii,
|
|
mii_analog_t * analog,
|
|
uint16_t addr,
|
|
uint8_t * byte,
|
|
bool write);
|