min.c
static void stuffed_tx_byte(uint8_t byte)
{
	min_tx_byte(byte);
	fletcher16_tx_step(byte);
	
	if(byte == HEADER_BYTE) {
		if(--tx_header_byte_countdown == 0) {
			min_tx_byte(STUFF_BYTE);		/* Stuff byte */
			tx_header_byte_countdown = 2U;
		}
	}
	else {
		tx_header_byte_countdown = 2U;
	}
}
/* Queue a byte for transmission but also insert a stuff byte of 0x55 where two 0xaa bytes
 * occur in sequence
 */
Queue a byte for transmission but also insert a stuff byte of 0x55 where two 0xaa bytes
occur in sequence
Queue a byte for transmission but also insert a stuff byte of 0x55 where two 0xaa bytes occur in sequence
static void stuffed_tx_byte(uint8_t byte)
{
	min_tx_byte(byte);
	fletcher16_tx_step(byte);
	if(byte == HEADER_BYTE) {
		if(--tx_header_byte_countdown == 0) {
			min_tx_byte(STUFF_BYTE);		
			tx_header_byte_countdown = 2U;
		}
	}
	else {
		tx_header_byte_countdown = 2U;
	}
}
static void stuffed_tx_byte ( uint8_t byte ) { min_tx_byte ( byte ) ; fletcher16_tx_step ( byte ) ; if ( byte == HEADER_BYTE ) { if ( -- tx_header_byte_countdown == 0 ) { min_tx_byte ( STUFF_BYTE ) ; tx_header_byte_countdown = 2U ; } } else { tx_header_byte_countdown = 2U ; } }
Queue a byte for transmission but also insert a stuff byte of 0x55 where two 0xaa bytes
 occur in sequence
Queue a byte for transmission but also insert a stuff byte of 0x55 where two 0xaa bytes occur in sequence
/* Stuff byte */