/* enable or disable I2C ARP protocol in SMBus switch  */
void i2c_smbus_arp_enable(uint32_t i2c_periph, uint32_t arpstate)
/* enable or disable I2C ARP protocol in SMBus switch  */
void i2c_smbus_arp_enable(uint32_t i2c_periph, uint32_t arpstate)
{
    uint32_t ctl = 0U;
    ctl = I2C_CTL0(i2c_periph);
    ctl &= ~(I2C_CTL0_ARPEN);
    ctl |= arpstate;
    I2C_CTL0(i2c_periph) = ctl;
}