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
fsm.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FsmInterface
 
class  GlobalFsm
 
class  Fsm
 

Typedefs

using OpState_t = enum OpState
 
using Err_t = enum ErrorCode
 

Enumerations

enum class  OpState : unsigned char {
  wait_for_machine , init , ready , knit ,
  test , error
}
 
enum class  ErrorCode : unsigned char {
  success = 0x00 , expected_longer_message = 0x01 , unrecognized_msgid = 0x02 , unexpected_msgid = 0x03 ,
  checksum_error = 0x04 , machine_type_invalid = 0x10 , needle_value_invalid = 0x11 , null_pointer_argument = 0x12 ,
  argument_invalid = 0x13 , arguments_incompatible = 0x13 , no_machine_type = 0x20 , no_carriage = 0x21 ,
  no_direction = 0x22 , no_beltshift = 0x23 , machine_state_init = 0xE0 , machine_state_ready = 0xE1 ,
  machine_state_knit = 0xE2 , machine_state_test = 0xE3 , wrong_machine_state = 0xEF , warning = 0xF0 ,
  recoverable_error = 0xF1 , critical_error = 0xF2 , fatal_error = 0xF3 , unspecified_failure = 0xFF
}
 

Variables

constexpr unsigned int FLASH_DELAY = 500
 

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