KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
scif.h File Reference

Serial port functionality. More...

#include <sys/cdefs.h>
#include <arch/types.h>
#include <kos/dbgio.h>

Go to the source code of this file.

Functions

void scif_set_parameters (int baud, int fifo)
 Set serial parameters.
 
int scif_set_irq_usage (int on)
 Enable or disable SCIF IRQ usage.
 
int scif_detected (void)
 Is the SCIF port detected? Of course it is!
 
int scif_init (void)
 Initialize the SCIF port.
 
int scif_shutdown (void)
 Shutdown the SCIF port.
 
int scif_read (void)
 Read a single character from the SCIF port.
 
int scif_write (int c)
 Write a single character to the SCIF port.
 
int scif_flush (void)
 Flush any FIFO'd bytes out of the buffer.
 
int scif_write_buffer (const uint8 *data, int len, int xlat)
 Write a whole buffer of data to the SCIF port.
 
int scif_read_buffer (uint8 *data, int len)
 Read a buffer of data from the SCIF port.
 
int scif_spi_init (void)
 Initialize the SCIF port for use of an SPI peripheral.
 
int scif_spi_shutdown (void)
 Shut down SPI card support over the SCIF port.
 
void scif_spi_set_cs (int v)
 Set or clear the SPI /CS line.
 
uint8 scif_spi_rw_byte (uint8 b)
 Read and write one byte from the SPI port.
 
uint8 scif_spi_slow_rw_byte (uint8 b)
 Read and write one byte from the SPI device, slowly.
 
void scif_spi_write_byte (uint8 b)
 Write a byte to the SPI device.
 
uint8 scif_spi_read_byte (void)
 Read a byte from the SPI device.
 
void scif_spi_read_data (uint8 *buffer, size_t len)
 Read a data from the SPI device.
 

Variables

dbgio_handler_t dbgio_scif
 SCIF debug I/O handler.
 

Detailed Description

Serial port functionality.

This file deals with raw access to the serial port on the Dreamcast.

Author
Megan Potter
Lawrence Sebald
Ruslan Rostovtsev