AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/linux/dlmstp_linux.c
void dlmstp_set_max_master(
    void *poPort,
    uint8_t max_master)
{
/*	SHARED_MSTP_DATA * poSharedData; */
    struct mstp_port_struct_t *mstp_port =
        (struct mstp_port_struct_t *) poPort;
    if (!mstp_port) {
        return;
    }
/*
	poSharedData = (SHARED_MSTP_DATA *) mstp_port->UserData;
	if(!poSharedData)
	{
		return;
	}
*/
    if (max_master <= 127) {
        if (mstp_port->This_Station <= max_master) {
            mstp_port->Nmax_master = max_master;
            /* FIXME: implement your data storage */
            /* I2C_Write_Byte(
               EEPROM_DEVICE_ADDRESS,
               max_master,
               EEPROM_MSTP_MAX_MASTER_ADDR); */
        }
    }

    return;
}
/* This parameter represents the value of the Max_Master property of the */
/* node's Device object. The value of Max_Master specifies the highest */
/* allowable address for master nodes. The value of Max_Master shall be */
/* less than or equal to 127. If Max_Master is not writable in a node, */
/* its value shall be 127. */
This parameter represents the value of the Max_Master property of the
node's Device object. The value of Max_Master specifies the highest
allowable address for master nodes. The value of Max_Master shall be
less than or equal to 127. If Max_Master is not writable in a node,
its value shall be 127.
This parameter represents the value of the Max_Master property of the node ' s Device object . The value of Max_Master specifies the highest allowable address for master nodes . The value of Max_Master shall be less than or equal to 127 . If Max_Master is not writable in a node its value shall be 127 .
void dlmstp_set_max_master(
    void *poPort,
    uint8_t max_master)
{
    struct mstp_port_struct_t *mstp_port =
        (struct mstp_port_struct_t *) poPort;
    if (!mstp_port) {
        return;
    }
    if (max_master <= 127) {
        if (mstp_port->This_Station <= max_master) {
            mstp_port->Nmax_master = max_master;
        }
    }
    return;
}
void dlmstp_set_max_master ( void * poPort , uint8_t max_master ) { struct mstp_port_struct_t * mstp_port = ( struct mstp_port_struct_t * ) poPort ; if ( ! mstp_port ) { return ; } if ( max_master <= 127 ) { if ( mstp_port -> This_Station <= max_master ) { mstp_port -> Nmax_master = max_master ; } } return ; }
This parameter represents the value of the Max_Master property of the
node's Device object.
This parameter represents the value of the Max_Master property of the node ' s Device object .
/*	SHARED_MSTP_DATA * poSharedData; */ /*
	poSharedData = (SHARED_MSTP_DATA *) mstp_port->UserData;
	if(!poSharedData)
	{
		return;
	}
*/ /* FIXME: implement your data storage */ /* I2C_Write_Byte(
               EEPROM_DEVICE_ADDRESS,
               max_master,
               EEPROM_MSTP_MAX_MASTER_ADDR); */