28 #include <satcat5/cfgbus_i2c.h>
58 void config_uart(
unsigned baud,
bool ignore_cts=
false);
110 void config_uart(
unsigned baud,
bool ignore_cts=
false);
ConfigBus core definitions.
Pointer-like wrapper for one or more ConfigBus registers.
Driver for "port_serial_auto.vhd".
static constexpr u8 MODE_AUTO
Constants for config_mode() and read_mode().
static constexpr u8 MODE_UART1
Constants for config_mode() and read_mode().
static constexpr u8 MODE_SPI
Constants for config_mode() and read_mode().
static constexpr u8 MODE_UART2
Constants for config_mode() and read_mode().
void config_spi(u8 mode, u8 gfilt=1)
Set the SPI clock mode (0/1/2/3) and glitch-filter parameters.
void config_mode(u8 mode)
Manually select auto/SPI/UART mode.
u8 read_mode()
Report the current mode (auto/SPI/UART).
void config_uart(unsigned baud, bool ignore_cts=false)
Set the UART baud rate and flow-control options.
Parent class for each of the Serial* objects.
u8 status()
Read the port-status register.
SerialGeneric(satcat5::cfg::ConfigBus *cfg, unsigned devaddr)
Link this object to a specific ConfigBus address.
Driver for "port_serial_i2c_controller.vhd".
void config_i2c(const satcat5::util::I2cAddr &devaddr, unsigned baud=100000)
Configure the remote I2C address and baud rate.
Driver for "port_serial_i2c_peripheral.vhd".
void config_i2c(const satcat5::util::I2cAddr &devaddr)
Configure the local I2C address.
Driver for "port_serial_spi_controller.vhd".
void config_spi(unsigned baud, u8 mode)
Set the SPI baud-rate and clock mode (0/1/2/3).
Driver for "port_serial_spi_peripheral.vhd".
void config_spi(u8 mode, u8 gfilt=1)
Set the SPI clock mode (0/1/2/3) and glitch-filter parameters.
Driver for "port_serial_uart_*.vhd".
void config_uart(unsigned baud, bool ignore_cts=false)
Set the UART baud rate and flow-control options.
Conversion function for I2C device addresses.