#include <cfg/clock.h>
#include <sys/atom.h>
#include <sys/event.h>
#include <sys/timer.h>
#include <dev/irqreg.h>
#include <dev/usartsc16is752.h>
#include <dev/twif.h>
Go to the source code of this file.
Defines | |
#define | MYPRINT(fmt,...) |
#define | US_OVRE 0x00000020 |
Overrun error. | |
#define | ASCII_XON 0x11 |
#define | ASCII_XOFF 0x13 |
#define | XON_PENDING 0x10 |
#define | XOFF_PENDING 0x20 |
#define | XOFF_SENT 0x40 |
#define | XOFF_RCVD 0x80 |
Functions | |
int | Sc16is752RegWrite (uint8_t dev, uint8_t ch, uint8_t reg, uint8_t val) |
int | Sc16is752RegRead (uint8_t dev, uint8_t ch, uint8_t reg, uint8_t *val) |
int | selectRegisterSet (uint8_t dev, uint8_t ch, uint8_t reg) |
void | Sc16is752UsartProcessChannelInterrupt (uint8_t dev, uint8_t ch, uint8_t iir) |
void | Sc16is752UsartInterruptProcessing (void *arg) |
void | Sc16is752UsartEnable (uint8_t dev, uint8_t ch) |
Carefully enable USART hardware functions. | |
void | Sc16is752UsartDisable (uint8_t dev, uint8_t ch) |
Carefully disable USART hardware functions. | |
uint32_t | Sc16is752UsartGetSpeed (uint8_t dev, uint8_t ch) |
Query the USART hardware for the selected speed. | |
int | Sc16is752UsartSetSpeed (uint32_t rate, uint8_t dev, uint8_t ch) |
Set the USART hardware bit rate. | |
uint8_t | Sc16is752UsartGetDataBits (uint8_t dev, uint8_t ch) |
Query the USART hardware for the number of data bits. | |
int | Sc16is752UsartSetDataBits (uint8_t bits, uint8_t dev, uint8_t ch) |
Set the USART hardware to the number of data bits. | |
uint8_t | Sc16is752UsartGetParity (uint8_t dev, uint8_t ch) |
Query the USART hardware for the parity mode. | |
int | Sc16is752UsartSetParity (uint8_t mode, uint8_t dev, uint8_t ch) |
Set the USART hardware to the specified parity mode. | |
uint8_t | Sc16is752UsartGetStopBits (uint8_t dev, uint8_t ch) |
Query the USART hardware for the number of stop bits. | |
int | Sc16is752UsartSetStopBits (uint8_t bits, uint8_t dev, uint8_t ch) |
Set the USART hardware to the number of stop bits. | |
uint32_t | Sc16is752UsartGetStatus (uint8_t dev, uint8_t ch) |
Query the USART hardware status. | |
int | Sc16is752UsartSetStatus (uint32_t flags, uint8_t dev, uint8_t ch) |
Set the USART hardware status. | |
uint8_t | Sc16is752UsartGetClockMode (uint8_t dev, uint8_t ch) |
Query the USART hardware for synchronous mode. | |
int | Sc16is752UsartSetClockMode (uint8_t mode, uint8_t dev, uint8_t ch) |
Set asynchronous or synchronous mode. | |
uint32_t | Sc16is752UsartGetFlowControl (uint8_t dev, uint8_t ch) |
Query flow control mode. | |
int | Sc16is752UsartSetFlowControl (uint32_t flags, uint8_t dev, uint8_t ch) |
Set flow control mode. | |
void | Sc16is752UsartTxStart (uint8_t dev, uint8_t ch) |
Start the USART transmitter hardware. | |
void | Sc16is752UsartRxStart (uint8_t dev, uint8_t ch) |
Start the USART receiver hardware. | |
int | Sc16is752UsartInit (uint8_t dev, uint8_t ch, NUTDEVICE *nutDev, IRQ_HANDLER *irq) |
Initialize the USART hardware driver. | |
int | Sc16is752UsartDeinit (uint8_t dev, uint8_t ch, IRQ_HANDLER *irq) |
Deinitialize the USART hardware driver. |
#define MYPRINT | ( | fmt, | |
... | |||
) |
Definition at line 59 of file usartsc16is752.c.
Referenced by Sc16is752UsartInit(), Sc16is752UsartInterruptProcessing(), and selectRegisterSet().