Serial Wombat 18AB Firmware
Classes | Typedefs | Enumerations | Functions | Variables
uartSw.c File Reference
#include "serialWombat.h"
#include "mcc_generated_files/mcc.h"

Classes

struct  uartSw_n
 

Typedefs

typedef struct uartSw_n uartSw_t
 

Enumerations

enum  UART_SW_RX_STATE_t {
  UART_SW_RX_STATE_IDLE = 0, UART_SW_RX_STATE_SAMPLE_START = 1, UART_SW_RX_STATE_BITS = 2, UART_SW_RX_STATE_STOP = 3,
  UART_SW_RX_STATE_WAIT_FOR_IDLE = 4
}
 

Functions

void initUARTSw ()
 
void updateUARTSwTx ()
 
void updateUARTSwRx ()
 
void updateUARTSw ()
 

Variables

const uint16_t swBaudDivisor [] = { 192,48,24, 12, 6, 3, 2, 1, 1 }
 
uartSw_tdebuguartSw
 

Typedef Documentation

◆ uartSw_t

typedef struct uartSw_n uartSw_t

Enumeration Type Documentation

◆ UART_SW_RX_STATE_t

Enumerator
UART_SW_RX_STATE_IDLE 
UART_SW_RX_STATE_SAMPLE_START 
UART_SW_RX_STATE_BITS 
UART_SW_RX_STATE_STOP 
UART_SW_RX_STATE_WAIT_FOR_IDLE 

Function Documentation

◆ initUARTSw()

void initUARTSw ( )

◆ updateUARTSw()

void updateUARTSw ( )

◆ updateUARTSwRx()

void updateUARTSwRx ( )

◆ updateUARTSwTx()

void updateUARTSwTx ( )

Variable Documentation

◆ debuguartSw

uartSw_t* debuguartSw

◆ swBaudDivisor

const uint16_t swBaudDivisor[] = { 192,48,24, 12, 6, 3, 2, 1, 1 }