TWELITE SDK (MWSDK) manual

How to use TWELITE SDK

  About build definitions
   bin file naming conventions
   About Makefile
   about Version.mk
  folder structure
  program firmware
   Wiring for firmware programming
   tweterm.py
  How to build from the command line
  Install TWELITE SDK (MWSDK)
  Use with VSCode

Get the latest version

  TWELITE SDK revision history

Introduction

  Mono Wireless Software License Agreement
  TWELITE SDK Terms of Use
  Structure of TWELITE SDK
  Support and response

TWELIET NET API overview

  Modules
  About the network
   Relay net
    Static relay with fixed host address
    NB beacon system connection
    Address of the relay network
    Implementation of repeaters
    Implementing a child device (MININODES)
    Implementation of the parent device
   SimpleNet
    Receive
    Transmit
  Wireless packets
   Addressing conventions
   Application ID
   Maximum packet length
  Structure of the source code
  TWELITE NET library structure
  TWENET working flow
   Wireless events
   System start-up
   Hardware interrupts/events
   Main loop
   User-defined event processing function
  Terms

TWELITE NET API references

  Structures
   sToCoNet_AppContext
   tsRxDataApp
   tsTxDataApp
  global variables
   sToCoNet_AppContext (static variable)
   uint32 u32TickCount_ms
  The callback functions
   cbAppColdStart()
   cbAppWarmStart()
   cbToCoNet_u8HwInt()
   cbToCoNet_vHwEvent()
   cbToCoNet_vMain()
   cbToCoNet_vNwkEvent()
   cbToCoNet_vRxEvent()
   cbToCoNet_vTxEvent()
  Module library
   ENERGY SCAN
   NB SCAN
  RelayNet API
   functions
    ToCoNet_Nwk_bInit()
    ToCoNet_Nwk_bPause()
    ToCoNet_Nwk_bResume()
    ToCoNet_Nwk_bStart()
    ToCoNet_Nwk_bTx()
   LayerTree ネット
    ToCoNet_NwkLyTr_psConfig()
    ToCoNet_NwkLyTr_psConfig_MiniNodes()
    tsToCoNet_NwkLyTr_Context
   Structure
    tsRxDataApp (中継ネット)
    tsToCoNet_Nwk_Context
    tsTxDataApp (中継ネット)
  PANIC
  PRSEV library
  TWELITE NET functions
   ToCoNet_bMacTxReq()
   ToCoNet_bRegisterAesKey()
   ToCoNet_Tx_vProcessEventQueue()
   ToCoNet_u16RcCalib()
   ToCoNet_u32GetRand()
   ToCoNet_u32GetSerial()
   ToCoNet_u32GetVersion()
   ToCoNet_vChConfig()
   ToCoNet_vDebugInit()
   ToCoNet_vDebugLevel()
   ToCoNet_vMacStart()
   ToCoNet_vRfConfig()
   ToCoNet_vSleep()
  TWELITE NET macros
   ToCoNet_REG_MOD_ALL()
   utils.h
  typedef, frequently used macros
  User defined event handling functions
   Events
   State
   ToCoNet_Event API
    ToCoNet_Event_Process()
    ToCoNet_Event_Register_State_Machine()
    ToCoNet_Event_SetState()
    ToCoNet_Event_u32TickFrNewState()
    ToCoNet_Event_vKeepStateOnRamHoldSleep()

HW API reference

  Flash, EEPROM
   EEPROM
   Flash
  Peripherals
   ADC
    adc.c
   DIO
   I2C
   SPI
   TickTimer
   Timer
    Timer library
     tsTimerContext
     vTimerConfig()
     vTimerDisable()
     vTimerStart()
     vTimerStop()
   UART
    fprintf library
     tsFILE
     vfPrintf()
     vPutChar()
    SERIAL library
     SERIAL_bRxQueueEmpty()
     SERIAL_i16RxChar()
     SERIAL_vFlush()
     SERIAL_vInit()
     SERIAL_vInitEx()
     tsSerialPortSetup
     tsUartOpt
   WakeTimer

Utils references, others.

  BTM library (consecutive reading) DIO input
  ByteQueue
  SPRINTF library
  u8CCITT8()