/* Poll the acknowledge from AT24MACXX. 
Support and FAQ: visit  */
static void at24macxx_acknowledge_polling(twihs_package_t *twihs_package)
/* Poll the acknowledge from AT24MACXX. 
Support and FAQ: visit  */
static void at24macxx_acknowledge_polling(twihs_package_t *twihs_package)
{
	uint8_t data = 0;
	uint8_t addr = twihs_package->addr[0];
	uint32_t addr_length = twihs_package->addr_length;
	void *buffer = twihs_package->buffer;
	uint32_t length = twihs_package->length;
	twihs_package->addr[0] = 0;
	twihs_package->addr_length = 0;
	twihs_package->buffer = &data;
	twihs_package->length = 1;
	while (twihs_master_write(BOARD_AT24MAC_TWIHS_INSTANCE, twihs_package) !=
		TWIHS_SUCCESS);
	twihs_package->addr[0] = addr;
	twihs_package->addr_length = addr_length;
	twihs_package->buffer = buffer;
	twihs_package->length = length;
}