AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/linux/dlmstp_linux.c
void dlmstp_set_max_info_frames(
    void *poPort,
    uint8_t max_info_frames)
{
/*	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_info_frames >= 1) {
        mstp_port->Nmax_info_frames = max_info_frames;
        /* FIXME: implement your data storage */
        /* I2C_Write_Byte(
           EEPROM_DEVICE_ADDRESS,
           (uint8_t)max_info_frames,
           EEPROM_MSTP_MAX_INFO_FRAMES_ADDR); */
    }

    return;
}
/* This parameter represents the value of the Max_Info_Frames property of */
/* the node's Device object. The value of Max_Info_Frames specifies the */
/* maximum number of information frames the node may send before it must */
/* pass the token. Max_Info_Frames may have different values on different */
/* nodes. This may be used to allocate more or less of the available link */
/* bandwidth to particular nodes. If Max_Info_Frames is not writable in a */
/* node, its value shall be 1. */
This parameter represents the value of the Max_Info_Frames property of
the node's Device object. The value of Max_Info_Frames specifies the
maximum number of information frames the node may send before it must
pass the token. Max_Info_Frames may have different values on different
nodes. This may be used to allocate more or less of the available link
bandwidth to particular nodes. If Max_Info_Frames is not writable in a
node, its value shall be 1.
This parameter represents the value of the Max_Info_Frames property of the node ' s Device object . The value of Max_Info_Frames specifies the maximum number of information frames the node may send before it must pass the token . Max_Info_Frames may have different values on different nodes . This may be used to allocate more or less of the available link bandwidth to particular nodes . If Max_Info_Frames is not writable in a node its value shall be 1 .
void dlmstp_set_max_info_frames(
    void *poPort,
    uint8_t max_info_frames)
{
    struct mstp_port_struct_t *mstp_port =
        (struct mstp_port_struct_t *) poPort;
    if (!mstp_port) {
        return;
    }
    if (max_info_frames >= 1) {
        mstp_port->Nmax_info_frames = max_info_frames;
    }
    return;
}
void dlmstp_set_max_info_frames ( void * poPort , uint8_t max_info_frames ) { struct mstp_port_struct_t * mstp_port = ( struct mstp_port_struct_t * ) poPort ; if ( ! mstp_port ) { return ; } if ( max_info_frames >= 1 ) { mstp_port -> Nmax_info_frames = max_info_frames ; } return ; }
This parameter represents the value of the Max_Info_Frames property of
the node's Device object.
This parameter represents the value of the Max_Info_Frames 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,
           (uint8_t)max_info_frames,
           EEPROM_MSTP_MAX_INFO_FRAMES_ADDR); */