![]() |
Serial Wombat 18AB Firmware
|
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "serialWombat.h"
#include "asciiConversion.h"
Macros | |
#define | PROTOCOL_MAX_CAPTURED_PACKETS 256 |
#define | OUTPUT_I2C_DEBUG(_value) {} |
#define | CRCCCITT_POLYNOMIAL ((unsigned short)0x1021) |
#define | CRCCCITT_SEED_VALUE ((unsigned short)0x84CF) |
Functions | |
void | ProcessSetPin (void) |
void | uartStartTX () |
void | error (SW_ERROR_t errorCode) |
void | ProcessRx (void) |
void | crcAppSpace (uint32_t address_w, uint32_t length_w) |
void | processCapturedCommands () |
Variables | |
uint32_t | debug_discarded_bytes = 0 |
uint8_t | SW_I2CAddress = 0x6B |
bool | UART2ndInterface = false |
uint8_t | UartRxbufferCounter = 0 |
uint8_t | UartTxbufferCounter = 0 |
uint8_t | Rxbuffer [RXBUFFER_LENGTH] |
uint8_t | Txbuffer [TXBUFFER_LENGTH] |
bool | LineBreaksAndEcho = false |
volatile bool | ResponsePending = false |
volatile bool | ResponseAvailable = false |
volatile uint8_t | TX_ClockStretching = 0 |
volatile uint8_t | RX_ClockStretching = 0 |
uint16_t | lastUserBufferIndex = 0xFFFF |
uint16_t | lastQueueIndex = 0xFFFF |
uint8_t | testSequenceNumber = 0 |
bool | testSequenceArmed = 0 |
bool | protocolCapturingPackets = false |
uint16_t | protocolCapturedPackets = 0 |
uint8_t | lastErrorPacket [8] |
pinRegister_t | PinRegisterCopyBuffer |
timingResourceManager_t | TimingResourceManagerCopyBuffer |
volatile unsigned short | crcResultCRCCCITT = 0 |
uint16_t | Errors = 0 |
uint16_t | PacketsProcessed = 0 |
#define CRCCCITT_POLYNOMIAL ((unsigned short)0x1021) |
#define CRCCCITT_SEED_VALUE ((unsigned short)0x84CF) |
#define OUTPUT_I2C_DEBUG | ( | _value | ) | {} |
#define PROTOCOL_MAX_CAPTURED_PACKETS 256 |
void crcAppSpace | ( | uint32_t | address_w, |
uint32_t | length_w | ||
) |
void error | ( | SW_ERROR_t | errorCode | ) |
void processCapturedCommands | ( | ) |
void ProcessRx | ( | void | ) |
void ProcessSetPin | ( | void | ) |
void uartStartTX | ( | ) |
volatile unsigned short crcResultCRCCCITT = 0 |
uint32_t debug_discarded_bytes = 0 |
uint16_t Errors = 0 |
uint8_t lastErrorPacket[8] |
uint16_t lastQueueIndex = 0xFFFF |
uint16_t lastUserBufferIndex = 0xFFFF |
bool LineBreaksAndEcho = false |
uint16_t PacketsProcessed = 0 |
pinRegister_t PinRegisterCopyBuffer |
uint16_t protocolCapturedPackets = 0 |
bool protocolCapturingPackets = false |
volatile bool ResponseAvailable = false |
volatile bool ResponsePending = false |
volatile uint8_t RX_ClockStretching = 0 |
uint8_t Rxbuffer[RXBUFFER_LENGTH] |
uint8_t SW_I2CAddress = 0x6B |
bool testSequenceArmed = 0 |
uint8_t testSequenceNumber = 0 |
timingResourceManager_t TimingResourceManagerCopyBuffer |
volatile uint8_t TX_ClockStretching = 0 |
uint8_t Txbuffer[TXBUFFER_LENGTH] |
bool UART2ndInterface = false |
uint8_t UartRxbufferCounter = 0 |
uint8_t UartTxbufferCounter = 0 |