Translations:Z21 mobile/40/de

Aus Digital Modellbahn
#include <z21.h> Einbinden der Library
z21Class z21; Erzeugen der Klasse
void setup()
z21.setPower(csNormal); Setzten des Gleisspannungszustand
void loop()


other public functions
void receive(uint8_t client, uint8_t *packet);
void setPower(byte state);
byte getPower();
unsigned long getz21BcFlag (byte flag);
LocoNet
void setLNDetector(byte *data, byte DataLen);
void setLNMessage(byte *data, byte DataLen, byte bcType, bool TX);
Basic Accessory (Zubehör Befehle)
void setTrntInfo(uint16_t Adr, bool State);
Lokomotiven
void setLocoStateFull (int Adr, byte steps, byte speed, byte F0, byte F1, byte F2, byte F3, bool bc);
S88
void setS88Data(byte *data);


C++ call back functions
void notifyz21EthSend(uint8_t client, uint8_t *data)
void notifyz21RailPower(uint8_t State)
LocoNet
void notifyz21LNdetector(uint8_t typ, uint16_t Adr)
uint8_t notifyz21LNdispatch(uint8_t Adr2, uint8_t Adr)
void notifyz21LNSendPacket(uint8_t *data, uint8_t length)
CV Programmierung
void notifyz21CVREAD(uint8_t cvAdrMSB, uint8_t cvAdrLSB)
uint8_t notifyz21CVWRITE(uint8_t cvAdrMSB, uint8_t cvAdrLSB, uint8_t value)
void notifyz21CVPOMWRITEBYTE(uint16_t Adr, uint16_t cvAdr, uint8_t value)
void notifyz21CVPOMREADBYTE(uint16_t Adr, uint16_t cvAdr)