blob: 29d50a5a282cbf5d75e79c0b5f9b595f5d5ad205 [file] [log] [blame]
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_HW_DV_DPI_UARTDPI_UARTDPI_H_
#define OPENTITAN_HW_DV_DPI_UARTDPI_UARTDPI_H_
extern "C" {
#include <stdio.h>
struct uartdpi_ctx {
char ptyname[64];
int host;
int device;
char tmp_read;
FILE *log_file;
};
void *uartdpi_create(const char *name, const char *log_file_path);
void uartdpi_close(void *ctx_void);
int uartdpi_can_read(void *ctx_void);
char uartdpi_read(void *ctx_void);
void uartdpi_write(void *ctx_void, char c);
}
#endif // OPENTITAN_HW_DV_DPI_UARTDPI_UARTDPI_H_