-
Notifications
You must be signed in to change notification settings - Fork 1
c_slave
The header ftslave.h defines functions for allocalting slave TXTs as well as functions to query names, versions, serial numbers, firmware versions etc.
Returns the slave TXT with the given number as network id. The network id is the order in which the TXTs are connected to the CAN-network. Returns NULL if device is NOT the master TXT or if a slave TXT with the given network id does not exsist.
Type | Paremeter | Description |
---|---|---|
in | device | pointer to master TXT |
in | number | network id |
Return:
pointer to slave object
Returns the slave TXT with the given uid. Returns NULL if device is NOT the master TXT or if a slave TXT with the given uid does not exsist.
Type | Paremeter | Description |
---|---|---|
in | device | pointer to master TXT |
in | uid | uid |
Return:
pointer to slave object
Returns the slave TXT with the given name. In order to get the slave based on the extension number set in the TXT's menu, use this function with the name 'Extension.X' where X is the extension's number. Returns NULL if device is NOT the master TXT or if a slave TXT with the given name does not exsist.
Type | Paremeter | Description |
---|---|---|
in | device | pointer to master TXT |
in | name | TXT name |
Return:
pointer to slave object
Returns the slave TXT with the given serial number. Returns NULL if device is NOT the master TXT or if a slave TXT with the given serial number does not exsist.
Type | Paremeter | Description |
---|---|---|
in | device | pointer to master TXT |
in | sn | serial number |
Return:
pointer to slave object
Returns the TXT's name.
Type | Paremeter | Description |
---|---|---|
in | device | pointer to TXT |
Return:
TXT name
Returns the TXT's version.
Type | Paremeter | Description |
---|---|---|
in | device | pointer to TXT |
Return:
TXT version
Returns the TXT's firmware version.
Type | Paremeter | Description |
---|---|---|
in | device | pointer to TXT |
Return:
TXT firmware version
Returns the number of slave TXTs in the network.
Type | Paremeter | Description |
---|---|---|
in | device | pointer to TXT |
Return:
number of slaves
Returns the uid for the TXT with the given network id.
Type | Paremeter | Description |
---|---|---|
in | device | pointer to master TXT |
in | number | network id |
Return:
slave's uid
Returns the name for the TXT with the given network id.
Type | Paremeter | Description |
---|---|---|
in | device | pointer to master TXT |
in | number | network id |
Return:
slave's name
Returns the serial number for the TXT with the given network id.
Type | Paremeter | Description |
---|---|---|
in | device | pointer to master TXT |
in | number | network id |
Return:
slave's serial number
Sets or changes the TXT's mode. Pass 0 for single mode, 1 for master mode and 2 for slave mode (see ft_txt_mode enum).
Type | Paremeter | Description |
---|---|---|
in | device | pointer to master TXT |
in | mode | new mode |
Sets new name for the TXT. A name is a 16 character string. The name can shorter.
Type | Paremeter | Description |
---|---|---|
in | device | pointer to master TXT |
in | name | new name |