Serial Wombat 18AB Firmware
Macros | Functions
uarttx.c File Reference
#include <stdio.h>
#include "types.h"
#include "utilities.h"

Macros

#define UART_ACTIVE()   { if (tp->uart_tx.output) { OutputArrayA[lastportbcounter] |= bitfield;} else {OutputArrayA[lastportbcounter] &= bitfieldInvert;}}
 
#define UART_INACTIVE()   { if (tp->uart_tx.output) { OutputArrayA[lastportbcounter] &= bitfieldInvert;} else {OutputArrayA[lastportbcounter] |= bitfield;}}
 
#define STATE_IDLE   0
 
#define STATE_START_BIT   1
 
#define STATE_DATA   2
 
#define STATE_STOP_BIT   3
 
#define START_BIT_VALUE   0
 
#define STOP_BIT_VALUE   1
 
#define OUTPUT_CHARACTER   1
 

Functions

void init_uart_tx (void)
 
void update_uart_tx (void)
 

Macro Definition Documentation

◆ OUTPUT_CHARACTER

#define OUTPUT_CHARACTER   1

◆ START_BIT_VALUE

#define START_BIT_VALUE   0

◆ STATE_DATA

#define STATE_DATA   2

◆ STATE_IDLE

#define STATE_IDLE   0

◆ STATE_START_BIT

#define STATE_START_BIT   1

◆ STATE_STOP_BIT

#define STATE_STOP_BIT   3

◆ STOP_BIT_VALUE

#define STOP_BIT_VALUE   1

◆ UART_ACTIVE

#define UART_ACTIVE ( )    { if (tp->uart_tx.output) { OutputArrayA[lastportbcounter] |= bitfield;} else {OutputArrayA[lastportbcounter] &= bitfieldInvert;}}

◆ UART_INACTIVE

#define UART_INACTIVE ( )    { if (tp->uart_tx.output) { OutputArrayA[lastportbcounter] &= bitfieldInvert;} else {OutputArrayA[lastportbcounter] |= bitfield;}}

Function Documentation

◆ init_uart_tx()

void init_uart_tx ( void  )

◆ update_uart_tx()

void update_uart_tx ( void  )