/* This I2C function resynchronizes communication. 
Parameters are not used for I2C. */
uint8_t sha204p_resync(uint8_t size, uint8_t *response)
/* This I2C function resynchronizes communication. 
Parameters are not used for I2C. */
uint8_t sha204p_resync(uint8_t size, uint8_t *response)
{
	twi_package_t twi_package = {
		.chip = (uint8_t) 0xFF,
		.addr_length = 1,
		.length = 0,
		.buffer = (void *) response,
		.addr[0] = 0
	};
	(void) twi_master_read(ATSHA204_TWI_PORT, &twi_package);
	return sha204p_reset_io();
}