obcsim/msp_obc_link.c
unsigned long msp_next_data_length(const msp_link_t *lnk)
{
	unsigned long remaining;
	if (lnk == NULL)
		return 0;

	remaining = lnk->total_length - lnk->processed_length;
	if (remaining > lnk->mtu)
		return lnk->mtu;
	else
		return remaining;
}
/* The amount of data to be sent in the next data frame or be received from the
 * next data/frame. */
The amount of data to be sent in the next data frame or be received from the
next data/frame.
The amount of data to be sent in the next data frame or be received from the next data / frame .
unsigned long msp_next_data_length(const msp_link_t *lnk)
{
	unsigned long remaining;
	if (lnk == NULL)
		return 0;
	remaining = lnk->total_length - lnk->processed_length;
	if (remaining > lnk->mtu)
		return lnk->mtu;
	else
		return remaining;
}
unsigned long msp_next_data_length ( const msp_link_t * lnk ) { unsigned long remaining ; if ( lnk == NULL ) return 0 ; remaining = lnk -> total_length - lnk -> processed_length ; if ( remaining > lnk -> mtu ) return lnk -> mtu ; else return remaining ; }
The amount of data to be sent in the next data frame or be received from the
 next data/frame.
The amount of data to be sent in the next data frame or be received from the next data / frame .