void neo_uext_init(void)
Initialise the UExt I/O system.
void neo_uext_uart_configure(uint32_t baudrate, uint8_t protocol)
Configure the UART baud rate and protocol.
::uint16_t uint16_t
Definition: cstdint:22
void neo_uext_spi_block_read(uint8_t device, void *dest, uint16_t len)
Read a block from an SPI device.
void neo_uext_i2c_block_read(uint8_t device, void *dest, uint16_t len)
Read a block from an I2C device.
bool neo_uext_uart_available(void)
Check if a byte can be read from UART.
void neo_uext_spi_block_write(uint8_t device, const void *src, uint16_t len)
Write a block to an SPI device.
neo_uext_direction
Definition: uext.h:17
void neo_uext_gpio_write(uint8_t pin, uint8_t value)
Write the specified value to the output latch for the specified UEXT pin.
::uint8_t uint8_t
Definition: cstdint:21
void neo_uext_gpio_set_direction(uint8_t pin, uint8_t direction)
Set the direction of the specified UEXT pin.
void neo_uext_i2c_block_write(uint8_t device, const void *src, uint16_t len)
Write a block to an I2C device.
uint16_t neo_uext_analogue_read(uint8_t pin)
Read from an analogue input pin.
@ NEO_UEXT_ANALOGUE_INPUT
Definition: uext.h:20
const void * src
Definition: memory.h:57
void neo_uext_uart_write(uint8_t value)
Write a byte to UART.
uint8_t neo_uext_uart_read(void)
Read a byte from UART.
void neo_uext_i2c_write(uint8_t device, uint8_t reg, uint8_t value)
Write to an I2C device.
uint8_t neo_uext_i2c_status(uint8_t device)
Query the I2C device status.
uint8_t neo_uext_i2c_read(uint8_t device, uint8_t reg)
Read from an I2C device.
@ NEO_UEXT_INPUT
Definition: uext.h:18
::uint32_t uint32_t
Definition: cstdint:23
enum neo_uext_direction neo_uext_direction_t
uint8_t neo_uext_gpio_read(uint8_t pin)
Reads the value on the specified UEXT pin.
@ NEO_UEXT_OUTPUT
Definition: uext.h:19
void neo_uext_uart_block_write(uint8_t device, const void *src, uint16_t len)
Write a block to an UART device.
void neo_uext_uart_block_read(uint8_t device, void *dest, uint16_t len)
Read a block from an UART device.
char len
Definition: nesdoug.h:26