AYAB Arduino Firmware 0.95
The goal of the AYAB project is to provide an alternative way to control the famous Brother KH-9xx range of knitting machines using a computer
com.h File Reference
#include <Arduino.h>
#include <PacketSerial.h>
#include "encoders.h"
#include "fsm.h"
#include "version.h"
Include dependency graph for com.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ComInterface
 
class  GlobalCom
 
class  Com
 

Typedefs

using AYAB_API_t = enum AYAB_API
 

Enumerations

enum class  AYAB_API : unsigned char {
  reqStart = 0x01 , cnfStart = 0xC1 , reqLine = 0x82 , cnfLine = 0x42 ,
  reqInfo = 0x03 , cnfInfo = 0xC3 , reqTest = 0x04 , cnfTest = 0xC4 ,
  indState = 0x84 , helpCmd = 0x25 , sendCmd = 0x26 , beepCmd = 0x27 ,
  setSingleCmd = 0x28 , setAllCmd = 0x29 , readEOLsensorsCmd = 0x2A , readEncodersCmd = 0x2B ,
  autoReadCmd = 0x2C , autoTestCmd = 0x2D , stopCmd = 0x2E , quitCmd = 0x2F ,
  reqInit = 0x05 , cnfInit = 0xC5 , testRes = 0xEE , debug = 0x9F
}
 

Variables

constexpr uint8_t API_VERSION = 6U
 
constexpr uint32_t SERIAL_BAUDRATE = 115200U
 
constexpr uint8_t MAX_LINE_BUFFER_LEN = 25U
 
constexpr uint8_t MAX_MSG_BUFFER_LEN = 64U
 
constexpr uint8_t INDSTATE_LEN = 10U
 
constexpr uint8_t REQLINE_LEN = 3U
 

Detailed Description

This file is part of AYAB.

AYAB is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

AYAB is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with AYAB. If not, see http://www.gnu.org/licenses/.

Original Work Copyright 2013 Christian Obersteiner, Andreas Müller Modified Work Copyright 2020 Sturla Lange, Tom Price http://ayab-knitting.com