4G_module/include/cmiot/cm_sim.h

81 lines
1.9 KiB
C
Raw Normal View History

2024-09-02 17:54:29 +08:00
/**
* @file cm_sim.h
* @brief SIM接口
* @copyright Copyright © 2021 China Mobile IOT. All rights reserved.
* @author By WangPeng
* @date 2021/10/27
*
* @defgroup sim sim
* @ingroup PHONE
* @{
*/
#ifndef __CM_SIM_H__
#define __CM_SIM_H__
/****************************************************************************
* Included Files
****************************************************************************/
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#define CM_IMSI_LEN 16 /*!< IMSI存储长度 */
/****************************************************************************
* Public Types
****************************************************************************/
/****************************************************************************
* Public Data
****************************************************************************/
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
#ifdef __cplusplus
#define EXTERN extern "C"
extern "C"
{
#else
#define EXTERN extern
#endif
/**
* @brief IMSI
*
* @param [out] imsi IMSI16
* @return
* = 0 - \n
* < 0 - , .
*
* @details More details
*
*/
int32_t cm_sim_get_imsi(char* imsi);
/**
* @brief ICCID
*
* @param [out] iccid ICCID21
* @return
* = 0 - \n
* < 0 - , .
*
* @details More details
*
*/
int32_t cm_sim_get_iccid(char* iccid);
#undef EXTERN
#ifdef __cplusplus
}
#endif
#endif /* __CM_SIM_H__ */