components/esp-cryptoauthlib/cryptoauthlib/lib/hal/hal_pic32mz2048efm_i2c.c
ATCA_STATUS hal_i2c_sleep(ATCAIface iface)
{
    ATCAIfaceCfg *cfg = atgetifacecfg(iface);
    uint8_t data[4];

    data[0] = 0x01;  // sleep word address value

    write_bufHandle = DRV_I2C_Transmit(drvI2CMasterHandle, cfg->atcai2c.slave_address, &data, 1, NULL);

    return ATCA_SUCCESS;
}
/** \brief sleep CryptoAuth device using I2C bus
 * \param[in] iface  interface to logical device to sleep
 * \return ATCA_SUCCESS on success, otherwise an error code.
 */
\brief sleep CryptoAuth device using I2C bus
\param[in] iface  interface to logical device to sleep
\return ATCA_SUCCESS on success, otherwise an error code.
\ brief sleep CryptoAuth device using I2C bus \ param [ in ] iface interface to logical device to sleep \ return ATCA_SUCCESS on success otherwise an error code .
ATCA_STATUS hal_i2c_sleep(ATCAIface iface)
{
    ATCAIfaceCfg *cfg = atgetifacecfg(iface);
    uint8_t data[4];
    data[0] = 0x01;  
    write_bufHandle = DRV_I2C_Transmit(drvI2CMasterHandle, cfg->atcai2c.slave_address, &data, 1, NULL);
    return ATCA_SUCCESS;
}
ATCA_STATUS hal_i2c_sleep ( ATCAIface iface ) { ATCAIfaceCfg * cfg = atgetifacecfg ( iface ) ; uint8_t data [ 4 ] ; data [ 0 ] = 0x01 ; write_bufHandle = DRV_I2C_Transmit ( drvI2CMasterHandle , cfg -> atcai2c . slave_address , & data , 1 , NULL ) ; return ATCA_SUCCESS ; }
\brief sleep CryptoAuth device using I2C bus
 \param[in] iface  interface to logical device to sleep
 \return ATCA_SUCCESS on success, otherwise an error code.
\ brief sleep CryptoAuth device using I2C bus \ param [ in ] iface interface to logical device to sleep \ return ATCA_SUCCESS on success otherwise an error code .
// sleep word address value