/*!
 * In Samsung Ukraine R&D Center (SRK) under a contract between
 * LLC "Samsung Electronics Ukraine Company" (Kyiv, Ukraine)
 * and "Samsung Electronics Co", Ltd (Seoul, Republic of Korea)
 * Copyright: (c) Samsung Electronics Co, Ltd 2019. All rights reserved.
 *
 * \brief It's a higher level API for iso7816
 *
 */

#ifndef __SEC_MW_H__
#define __SEC_MW_H__

#include "sec_EseStatus.h"
#include "sec_apdu.h"

ESESTATUS iso7816_init(void);

void iso7816_deinit(void);

ESESTATUS iso7816_transceive(secEse_7816_cpdu_t *capdu, secEse_7816_rpdu_t *rapdu);

ESESTATUS iso7816_apdu_transceive(uint16_t apdu_len, uint8_t *p_apdu, p_secEse_7816_rpdu_t p_rapdu);

/*!
 * \brief The function return SPI MODE0 state
 *
 * \return 1 if SPI MODE0 enabled, 0 - otherwise
 */
uint8_t iso7816_spi_mode0(void);

#endif /* __SEC_MW_H__ */
