LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
c_daisy.h File Reference
#include "libusb.h"
#include "lms2012.h"
#include "c_com.h"

Go to the source code of this file.

Data Structures

struct  DAISY_POLL
 
struct  DAISY_UNLOCK_REPLY
 
struct  DAISY_READ
 
struct  DAISY_WRITE
 
struct  DAISY_DEVICE_DATA
 
struct  DAISY_INFO
 
struct  DAISYCMD
 

Macros

#define FALSE   0
 
#define TRUE   1
 
#define DAISY_COMMAND_REPLY   0x0A
 
#define DAISY_COMMAND_NO_REPLY   0x8A
 
#define DAISY_CHAIN_DOWNSTREAM   0xA0
 
#define DAISY_CHAIN_UPSTREAM   0xA1
 
#define DAISY_CHAIN_INFO   0xA2
 
#define DAISY_UNLOCK_SLAVE   0xA3
 
#define DAISY_SET_TYPE   0xA4
 
#define DAISY_CHAIN_DOWNSTREAM_WITH_BUSY   0XA5
 
#define DAISY_REPLY   0x08
 
#define DAISY_REPLY_ERROR   0x09
 
#define DAISY_VENDOR_ID   0x0694
 
#define DAISY_PRODUCT_ID   0x0005
 
#define INTERFACE_NUMBER   0
 
#define DIR_IN   0x80
 
#define DIR_OUT   0x00
 
#define DAISY_INT_EP_ADR   0x01
 
#define DAISY_INTERRUPT_EP_IN   DIR_IN + DAISY_INT_EP_ADR
 
#define DAISY_INTERRUPT_EP_OUT   DIR_OUT + DAISY_INT_EP_ADR
 
#define DAISY_MAX_EP_IN_SIZE   64
 
#define DAISY_MAX_EP_OUT_SIZE   64
 
#define DAISY_DEFAULT_MAX_EP_SIZE   DAISY_MAX_EP_OUT_SIZE
 
#define DAISY_UPSTREAM_DATA_LENGTH   DAISY_DEFAULT_MAX_EP_SIZE
 
#define DAISY_DEFAULT_TIMEOUT   1000
 
#define NO_USER_DATA   0
 
#define DAISY_MAX_INPUT_PER_LAYER   4
 
#define DAISY_MAX_OUTPUT_PER_LAYER   4
 
#define DAISY_MAX_SENSORS_PER_LAYER   (DAISY_MAX_INPUT_PER_LAYER + DAISY_MAX_OUTPUT_PER_LAYER)
 
#define DAISY_MAX_LAYER_DEPT   4
 
#define DEVICE_MAX_DATA   32
 
#define BUSYFLAGS   16
 
#define DEVICE_MAX_INCL_BUSYFLAGS   (DEVICE_MAX_DATA + BUSYFLAGS)
 
#define SLAVE_PROD_ID   "0005"
 
#define SLAVE_VENDOR_ID   "0694"
 
#define SIZEOF_DAISY_POLL   6
 
#define SIZEOF_UNLOCK_REPLY   7
 
#define SIZEOF_DAISY_READ   8
 
#define SIZEOF_DAISY_WRITE   6
 
#define SIZEOF_DAISY_DEVICE_DATA_PROLOG   11
 
#define SIZEOF_REPLY_DAISY_READ   (DAISY_DEFAULT_MAX_EP_SIZE - sizeof(CMDSIZE))
 
#define DAISY_DEVICE_PAYLOAD_SIZE   (DEVICE_MAX_DATA + 4)
 
#define DAISY_DEVICE_CHKSUM_SIZE   1
 
#define DAISY_MAX_INPUT_SENSOR_INDEX   3
 
#define DAISY_SENSOR_OUTPUT_OFFSET   12
 
#define DAISY_SENSOR_DATA_SIZE   (SIZEOF_DAISY_DEVICE_DATA_PROLOG + DEVICE_MAX_DATA + DAISY_DEVICE_CHKSUM_SIZE - sizeof(CMDSIZE))
 
#define BUSYFLAGS_START_POS   (SIZEOF_DAISY_DEVICE_DATA_PROLOG + DEVICE_MAX_DATA + DAISY_DEVICE_CHKSUM_SIZE)
 
#define SIZEOF_DAISY_INFO   6
 
#define SIZEOF_DAISY_INFO_READ   (DAISY_DEFAULT_MAX_EP_SIZE - SIZEOF_DAISY_INFO)
 
#define LAYER_POS   6
 
#define SENSOR_POS   (LAYER_POS + 1)
 
#define DAISY_MAX_DATASIZE   DAISY_DEFAULT_MAX_EP_SIZE
 
#define DAISY_DATA_PACKET   (DAISY_DEFAULT_MAX_EP_SIZE - sizeof(CMDSIZE))
 
#define PAYLOAD_OFFSET   4
 
#define LAYER_POS_DOWN   (STAT +1)
 
#define SENSOR_POS_DOWN   (LAYER_POS_DOWN +1)
 
#define TYPE_POS_DOWN   (SENSOR_POS_DOWN + 1)
 
#define MODE_POS_DOWN   (TYPE_POS_DOWN + 1)
 
#define LAYER_POS_TO_SLAVE   (STAT)
 
#define SENSOR_POS_TO_SLAVE   (LAYER_POS_TO_SLAVE +1)
 
#define TYPE_POS_TO_SLAVE   (SENSOR_POS_TO_SLAVE + 1)
 
#define MODE_POS_TO_SLAVE   (TYPE_POS_TO_SLAVE + 1)
 
#define CHECKSUM_POS   (DAISY_DEVICE_PAYLOAD_SIZE - 1)
 
#define BUSYTIME   25000
 
#define DAISY_PRIORITY_COUNT   2
 
#define DAISY_PUSH_NOT_UNLOCKED   0x55
 
#define TIME_TO_CHECK_FOR_DAISY_DOWNSTREAM   2000
 
#define DAISY_SLAVE_SEARCH_STRING   "ID 0694:0005 Lego Group"
 

Enumerations

enum  {
  DAISY_WR_NOT_CONNECTED, DAISY_WR_CONNECTED, DAISY_WR_IDLE, DAISY_WR_REQUESTED,
  DAISY_WR_COMPLETED, DAISY_WR_TIMED_OUT, DAISY_WR_FAIL
}
 
enum  {
  DAISY_RD_IDLE, DAISY_RD_REQUESTED, DAISY_RD_DONE, DAISY_RD_DISCONNECTED,
  DAISY_RD_TIMEDOUT, DAISY_RD_ERROR
}
 
enum  {
  DAISY_DOWN_DISCONNECTED, DAISY_DOWN_CONNECTED, DAISY_DOWN_UNLOCKING, DAISY_CHECK_UNLOCK,
  DAISY_DOWN_UNLOCKED, DAISY_DOWN_SET_DEVICETYPE, DAISY_DOWNSTREAM_CHECK_WRITE_DONE
}
 
enum  { DAISY_PUSH_NOT_CONNECTED, DAISY_PUSH_CONNECTED }
 
enum  {
  DAISY_WR_OK = LIBUSB_SUCCESS, DAISY_WR_DONE = DAISY_WR_OK, DAISY_WR_NOT_FINISHED = LIBUSB_ERROR_BUSY, DAISY_WR_ERROR = LIBUSB_ERROR_OTHER,
  DAISY_WR_TIMEDOUT = LIBUSB_ERROR_TIMEOUT, DAISY_WR_DISCONNECTED = LIBUSB_ERROR_NO_DEVICE
}
 
enum  { STATUS_POS, TYPE_POS, MODE_POS, DEVICE_DATA_POS }
 
enum  {
  LEN1, LEN2, MSG1, MSG2,
  CMDTYP, SUBCMD, STAT
}
 
enum  {
  INFO_LEN1, INFO_LEN2, INFO_MSG1, INFO_MSG2,
  INFO_CMDTYP, INFO_SUBCMD, INFO_INFO
}
 
enum  { EMPTY, VALID }
 
enum  { DAISY_RD_OK = LIBUSB_SUCCESS, DAISY_RD_NO_DATA_YET = LIBUSB_ERROR_BUSY }
 

Functions

RESULT cDaisyReady (void)
 
int cDaisyWrite (void)
 
RESULT cDaisyGetDownstreamData (DATA8 Layer, DATA8 Sensor, DATA8 Length, DATA8 *pType, DATA8 *pMode, DATA8 *pData)
 
void cDaisyPollFromDownstream (void)
 
RESULT cDaisyDownStreamCmd (DATA8 *pData, DATA8 Length, DATA8 Layer)
 
int cDaisyWriteDone (void)
 
int cDaisyGetLastWriteState (void)
 
int cDaisyGetLastWriteResult (void)
 
RESULT cDaisyInit (void)
 
RESULT cDaisyOpen (void)
 
RESULT cDaisyClose (void)
 
RESULT cDaisyExit (void)
 
void cDaisyControl (void)
 
void cDaisySetTimeout (int TimeOut)
 
DATA8 cDaisyGetUsbUpStreamSpeed (void)
 
void cDaisyReadFromDownStream (void)
 
int cDaisyGetInterruptPacketSize (void)
 
void cDaisyCmd (RXBUF *pRxBuf, TXBUF *pTxBuf)
 
RESULT cDaisySetDeviceInfo (DATA8 Length, UBYTE *pInfo)
 
RESULT cDaisyGetDeviceInfo (DATA8 Length, UBYTE *pInfo)
 
RESULT cDaisySetDeviceType (DATA8 Layer, DATA8 Port, DATA8 Type, DATA8 Mode)
 
UWORD cDaisyData (UBYTE **pData)
 
void cDaisyStuffTxed (void)
 
uint GetDaisyPushCounter (void)
 
void ResetDaisyPushCounter (void)
 
RESULT cDaisyChained (void)
 
void DecrementDaisyPushCounter (void)
 
void cDaisyPushUpStream (void)
 
void cDaisyPrepareNext (void)
 
void SetUnlocked (int Status)
 
int GetUnlocked (void)
 
void SetSlaveUnlocked (int Status)
 
int GetSlaveUnlocked (void)
 
void cDaisySetOwnLayer (UBYTE Layer)
 
UBYTE cDaisyGetOwnLayer (void)
 
UBYTE cDaisyCheckBusyBit (UBYTE Layer, UBYTE PortBits)
 
RESULT cDaisyCheckBusyIndex (UBYTE Layer, UBYTE Port)
 
void cDaisySetBusyFlags (UBYTE Layer, UBYTE Port, UBYTE MagicCookie)
 
RESULT cDaisyMotorDownStream (DATA8 *pData, DATA8 Length, DATA8 Layer, DATA8 PortField)
 

Variables

enum { ... }  DAISY_WRITE_STATES
 
enum { ... }  DAISY_READ_STATES
 
enum { ... }  DAISY_DOWN_CONNECTION_STATES
 
enum { ... }  DAISY_PUSH_CONNECTION_STATES
 
enum { ... }  DAISY_WR_ERROR_CODES
 
enum { ... }  PAYLOAD_POSITIONS
 
enum { ... }  REPLY_INDEXES
 
enum { ... }  INFO_INDEXES
 
enum { ... }  INFO_STATES
 
enum { ... }  DAISY_READ_ERROR_CODES
 

Macro Definition Documentation

#define BUSYFLAGS   16

Definition at line 138 of file c_daisy.h.

Definition at line 213 of file c_daisy.h.

#define BUSYTIME   25000

Definition at line 412 of file c_daisy.h.

#define CHECKSUM_POS   (DAISY_DEVICE_PAYLOAD_SIZE - 1)

Definition at line 410 of file c_daisy.h.

#define DAISY_CHAIN_DOWNSTREAM   0xA0

Definition at line 67 of file c_daisy.h.

#define DAISY_CHAIN_DOWNSTREAM_WITH_BUSY   0XA5

Definition at line 72 of file c_daisy.h.

#define DAISY_CHAIN_INFO   0xA2

Definition at line 69 of file c_daisy.h.

#define DAISY_CHAIN_UPSTREAM   0xA1

Definition at line 68 of file c_daisy.h.

#define DAISY_COMMAND_NO_REPLY   0x8A

Definition at line 61 of file c_daisy.h.

#define DAISY_COMMAND_REPLY   0x0A

Definition at line 60 of file c_daisy.h.

#define DAISY_DATA_PACKET   (DAISY_DEFAULT_MAX_EP_SIZE - sizeof(CMDSIZE))

Definition at line 231 of file c_daisy.h.

#define DAISY_DEFAULT_MAX_EP_SIZE   DAISY_MAX_EP_OUT_SIZE

Definition at line 128 of file c_daisy.h.

#define DAISY_DEFAULT_TIMEOUT   1000

Definition at line 130 of file c_daisy.h.

#define DAISY_DEVICE_CHKSUM_SIZE   1

Definition at line 209 of file c_daisy.h.

#define DAISY_DEVICE_PAYLOAD_SIZE   (DEVICE_MAX_DATA + 4)

Definition at line 208 of file c_daisy.h.

#define DAISY_INT_EP_ADR   0x01

Definition at line 121 of file c_daisy.h.

#define DAISY_INTERRUPT_EP_IN   DIR_IN + DAISY_INT_EP_ADR

Definition at line 123 of file c_daisy.h.

#define DAISY_INTERRUPT_EP_OUT   DIR_OUT + DAISY_INT_EP_ADR

Definition at line 124 of file c_daisy.h.

#define DAISY_MAX_DATASIZE   DAISY_DEFAULT_MAX_EP_SIZE

Definition at line 230 of file c_daisy.h.

#define DAISY_MAX_EP_IN_SIZE   64

Definition at line 126 of file c_daisy.h.

#define DAISY_MAX_EP_OUT_SIZE   64

Definition at line 127 of file c_daisy.h.

#define DAISY_MAX_INPUT_PER_LAYER   4

Definition at line 132 of file c_daisy.h.

#define DAISY_MAX_INPUT_SENSOR_INDEX   3

Definition at line 210 of file c_daisy.h.

#define DAISY_MAX_LAYER_DEPT   4

Definition at line 135 of file c_daisy.h.

#define DAISY_MAX_OUTPUT_PER_LAYER   4

Definition at line 133 of file c_daisy.h.

#define DAISY_MAX_SENSORS_PER_LAYER   (DAISY_MAX_INPUT_PER_LAYER + DAISY_MAX_OUTPUT_PER_LAYER)

Definition at line 134 of file c_daisy.h.

#define DAISY_PRIORITY_COUNT   2

Definition at line 413 of file c_daisy.h.

#define DAISY_PRODUCT_ID   0x0005

Definition at line 116 of file c_daisy.h.

#define DAISY_PUSH_NOT_UNLOCKED   0x55

Definition at line 414 of file c_daisy.h.

#define DAISY_REPLY   0x08

Definition at line 98 of file c_daisy.h.

#define DAISY_REPLY_ERROR   0x09

Definition at line 99 of file c_daisy.h.

#define DAISY_SENSOR_DATA_SIZE   (SIZEOF_DAISY_DEVICE_DATA_PROLOG + DEVICE_MAX_DATA + DAISY_DEVICE_CHKSUM_SIZE - sizeof(CMDSIZE))

Definition at line 212 of file c_daisy.h.

#define DAISY_SENSOR_OUTPUT_OFFSET   12

Definition at line 211 of file c_daisy.h.

#define DAISY_SET_TYPE   0xA4

Definition at line 71 of file c_daisy.h.

#define DAISY_SLAVE_SEARCH_STRING   "ID 0694:0005 Lego Group"

Definition at line 427 of file c_daisy.h.

#define DAISY_UNLOCK_SLAVE   0xA3

Definition at line 70 of file c_daisy.h.

#define DAISY_UPSTREAM_DATA_LENGTH   DAISY_DEFAULT_MAX_EP_SIZE

Definition at line 129 of file c_daisy.h.

#define DAISY_VENDOR_ID   0x0694

Definition at line 115 of file c_daisy.h.

#define DEVICE_MAX_DATA   32

Definition at line 137 of file c_daisy.h.

#define DEVICE_MAX_INCL_BUSYFLAGS   (DEVICE_MAX_DATA + BUSYFLAGS)

Definition at line 139 of file c_daisy.h.

#define DIR_IN   0x80

Definition at line 119 of file c_daisy.h.

#define DIR_OUT   0x00

Definition at line 120 of file c_daisy.h.

#define FALSE   0

Definition at line 41 of file c_daisy.h.

#define INTERFACE_NUMBER   0

Definition at line 117 of file c_daisy.h.

#define LAYER_POS   6

Definition at line 226 of file c_daisy.h.

#define LAYER_POS_DOWN   (STAT +1)

Definition at line 393 of file c_daisy.h.

#define LAYER_POS_TO_SLAVE   (STAT)

Definition at line 398 of file c_daisy.h.

#define MODE_POS_DOWN   (TYPE_POS_DOWN + 1)

Definition at line 396 of file c_daisy.h.

#define MODE_POS_TO_SLAVE   (TYPE_POS_TO_SLAVE + 1)

Definition at line 401 of file c_daisy.h.

#define NO_USER_DATA   0

Definition at line 131 of file c_daisy.h.

#define PAYLOAD_OFFSET   4

Definition at line 233 of file c_daisy.h.

#define SENSOR_POS   (LAYER_POS + 1)

Definition at line 227 of file c_daisy.h.

#define SENSOR_POS_DOWN   (LAYER_POS_DOWN +1)

Definition at line 394 of file c_daisy.h.

#define SENSOR_POS_TO_SLAVE   (LAYER_POS_TO_SLAVE +1)

Definition at line 399 of file c_daisy.h.

#define SIZEOF_DAISY_DEVICE_DATA_PROLOG   11

Definition at line 206 of file c_daisy.h.

#define SIZEOF_DAISY_INFO   6

Definition at line 223 of file c_daisy.h.

#define SIZEOF_DAISY_INFO_READ   (DAISY_DEFAULT_MAX_EP_SIZE - SIZEOF_DAISY_INFO)

Definition at line 224 of file c_daisy.h.

#define SIZEOF_DAISY_POLL   6

Definition at line 153 of file c_daisy.h.

#define SIZEOF_DAISY_READ   8

Definition at line 177 of file c_daisy.h.

#define SIZEOF_DAISY_WRITE   6

Definition at line 188 of file c_daisy.h.

#define SIZEOF_REPLY_DAISY_READ   (DAISY_DEFAULT_MAX_EP_SIZE - sizeof(CMDSIZE))

Definition at line 207 of file c_daisy.h.

#define SIZEOF_UNLOCK_REPLY   7

Definition at line 164 of file c_daisy.h.

#define SLAVE_PROD_ID   "0005"

Definition at line 141 of file c_daisy.h.

#define SLAVE_VENDOR_ID   "0694"

Definition at line 142 of file c_daisy.h.

#define TIME_TO_CHECK_FOR_DAISY_DOWNSTREAM   2000

Definition at line 426 of file c_daisy.h.

#define TRUE   1

Definition at line 42 of file c_daisy.h.

#define TYPE_POS_DOWN   (SENSOR_POS_DOWN + 1)

Definition at line 395 of file c_daisy.h.

#define TYPE_POS_TO_SLAVE   (SENSOR_POS_TO_SLAVE + 1)

Definition at line 400 of file c_daisy.h.

Enumeration Type Documentation

anonymous enum
Enumerator
DAISY_WR_NOT_CONNECTED 
DAISY_WR_CONNECTED 
DAISY_WR_IDLE 
DAISY_WR_REQUESTED 
DAISY_WR_COMPLETED 
DAISY_WR_TIMED_OUT 
DAISY_WR_FAIL 

Definition at line 287 of file c_daisy.h.

anonymous enum
Enumerator
DAISY_RD_IDLE 
DAISY_RD_REQUESTED 
DAISY_RD_DONE 
DAISY_RD_DISCONNECTED 
DAISY_RD_TIMEDOUT 
DAISY_RD_ERROR 

Definition at line 299 of file c_daisy.h.

anonymous enum
Enumerator
DAISY_DOWN_DISCONNECTED 
DAISY_DOWN_CONNECTED 
DAISY_DOWN_UNLOCKING 
DAISY_CHECK_UNLOCK 
DAISY_DOWN_UNLOCKED 
DAISY_DOWN_SET_DEVICETYPE 
DAISY_DOWNSTREAM_CHECK_WRITE_DONE 

Definition at line 311 of file c_daisy.h.

anonymous enum
Enumerator
DAISY_PUSH_NOT_CONNECTED 
DAISY_PUSH_CONNECTED 

Definition at line 323 of file c_daisy.h.

anonymous enum
Enumerator
DAISY_WR_OK 
DAISY_WR_DONE 
DAISY_WR_NOT_FINISHED 
DAISY_WR_ERROR 
DAISY_WR_TIMEDOUT 
DAISY_WR_DISCONNECTED 

Definition at line 347 of file c_daisy.h.

anonymous enum
Enumerator
STATUS_POS 
TYPE_POS 
MODE_POS 
DEVICE_DATA_POS 

Definition at line 360 of file c_daisy.h.

anonymous enum
Enumerator
LEN1 
LEN2 
MSG1 
MSG2 
CMDTYP 
SUBCMD 
STAT 

Definition at line 369 of file c_daisy.h.

anonymous enum
Enumerator
INFO_LEN1 
INFO_LEN2 
INFO_MSG1 
INFO_MSG2 
INFO_CMDTYP 
INFO_SUBCMD 
INFO_INFO 

Definition at line 381 of file c_daisy.h.

anonymous enum
Enumerator
EMPTY 
VALID 

Definition at line 403 of file c_daisy.h.

anonymous enum
Enumerator
DAISY_RD_OK 
DAISY_RD_NO_DATA_YET 

Definition at line 416 of file c_daisy.h.

Function Documentation

RESULT cDaisyChained ( void  )

Definition at line 1004 of file c_daisy.c.

UBYTE cDaisyCheckBusyBit ( UBYTE  Layer,
UBYTE  PortBits 
)

Definition at line 360 of file c_daisy.c.

RESULT cDaisyCheckBusyIndex ( UBYTE  Layer,
UBYTE  Port 
)

Definition at line 350 of file c_daisy.c.

RESULT cDaisyClose ( void  )

Definition at line 2582 of file c_daisy.c.

void cDaisyCmd ( RXBUF pRxBuf,
TXBUF pTxBuf 
)

Definition at line 722 of file c_daisy.c.

void cDaisyControl ( void  )

Definition at line 2340 of file c_daisy.c.

UWORD cDaisyData ( UBYTE **  pData)

Definition at line 500 of file c_daisy.c.

RESULT cDaisyDownStreamCmd ( DATA8 pData,
DATA8  Length,
DATA8  Layer 
)

Definition at line 665 of file c_daisy.c.

RESULT cDaisyExit ( void  )

Definition at line 2587 of file c_daisy.c.

RESULT cDaisyGetDeviceInfo ( DATA8  Length,
UBYTE pInfo 
)

Definition at line 1370 of file c_daisy.c.

RESULT cDaisyGetDownstreamData ( DATA8  Layer,
DATA8  Sensor,
DATA8  Length,
DATA8 pType,
DATA8 pMode,
DATA8 pData 
)

Definition at line 1670 of file c_daisy.c.

int cDaisyGetInterruptPacketSize ( void  )

Definition at line 1014 of file c_daisy.c.

int cDaisyGetLastWriteResult ( void  )

Definition at line 174 of file c_daisy.c.

int cDaisyGetLastWriteState ( void  )

Definition at line 169 of file c_daisy.c.

UBYTE cDaisyGetOwnLayer ( void  )

Definition at line 215 of file c_daisy.c.

DATA8 cDaisyGetUsbUpStreamSpeed ( void  )

Definition at line 960 of file c_daisy.c.

RESULT cDaisyInit ( void  )

Definition at line 1212 of file c_daisy.c.

RESULT cDaisyMotorDownStream ( DATA8 pData,
DATA8  Length,
DATA8  Layer,
DATA8  PortField 
)

Definition at line 399 of file c_daisy.c.

RESULT cDaisyOpen ( void  )

Definition at line 2572 of file c_daisy.c.

void cDaisyPollFromDownstream ( void  )
void cDaisyPrepareNext ( void  )

Definition at line 1643 of file c_daisy.c.

void cDaisyPushUpStream ( void  )

Definition at line 1442 of file c_daisy.c.

void cDaisyReadFromDownStream ( void  )
RESULT cDaisyReady ( void  )

Definition at line 531 of file c_daisy.c.

void cDaisySetBusyFlags ( UBYTE  Layer,
UBYTE  Port,
UBYTE  MagicCookie 
)

Definition at line 391 of file c_daisy.c.

RESULT cDaisySetDeviceInfo ( DATA8  Length,
UBYTE pInfo 
)

Definition at line 1396 of file c_daisy.c.

RESULT cDaisySetDeviceType ( DATA8  Layer,
DATA8  Port,
DATA8  Type,
DATA8  Mode 
)

Definition at line 1156 of file c_daisy.c.

void cDaisySetOwnLayer ( UBYTE  Layer)

Definition at line 204 of file c_daisy.c.

void cDaisySetTimeout ( int  TimeOut)

Definition at line 1009 of file c_daisy.c.

void cDaisyStuffTxed ( void  )
int cDaisyWrite ( void  )

Definition at line 2159 of file c_daisy.c.

int cDaisyWriteDone ( void  )

Definition at line 1806 of file c_daisy.c.

void DecrementDaisyPushCounter ( void  )

Definition at line 525 of file c_daisy.c.

uint GetDaisyPushCounter ( void  )

Definition at line 510 of file c_daisy.c.

int GetSlaveUnlocked ( void  )

Definition at line 164 of file c_daisy.c.

int GetUnlocked ( void  )

Definition at line 154 of file c_daisy.c.

void ResetDaisyPushCounter ( void  )

Definition at line 520 of file c_daisy.c.

void SetSlaveUnlocked ( int  Status)

Definition at line 159 of file c_daisy.c.

void SetUnlocked ( int  Status)

Definition at line 149 of file c_daisy.c.

Variable Documentation

enum { ... } DAISY_DOWN_CONNECTION_STATES
enum { ... } DAISY_PUSH_CONNECTION_STATES
enum { ... } DAISY_READ_ERROR_CODES
enum { ... } DAISY_READ_STATES
enum { ... } DAISY_WR_ERROR_CODES
enum { ... } DAISY_WRITE_STATES
enum { ... } INFO_INDEXES
enum { ... } INFO_STATES
enum { ... } PAYLOAD_POSITIONS
enum { ... } REPLY_INDEXES