⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uem_proc_cmd.c

📁 最新MTK手机软件源码
💻 C
📖 第 1 页 / 共 5 页
字号:
*      kal_bool
*   GLOBALS AFFECTED
*****************************************************************************/


/*****************************************************************************
 * FUNCTION
 *  l4cuem_get_alert_mode_req
 * DESCRIPTION
 *  
 * PARAMETERS
 *  alert_mode      [?]     
 * RETURNS
 *  void
 *****************************************************************************/
void l4cuem_get_alert_mode_req(kal_uint8 *alert_mode)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    kal_trace(TRACE_FUNC, FUNC_UEM_GET_ALERT_MODE);

    ASSERT(alert_mode != NULL); /* invalid address */

    *alert_mode = uem_get_alert_mode();
}

/*****************************************************************************
*   Function 
*      l4cuem_set_greeting_text_req
*   DESCRIPTION
*      RMI requests L4C to set date format. Please reference the AT command "+CSDF".
*   PARAMETERS
*      mode      OUT
*      greeting_text       OUT
*   RETURNS
*      void
*   GLOBALS AFFECTED
*****************************************************************************/


/*****************************************************************************
 * FUNCTION
 *  l4cuem_set_greeting_text_req
 * DESCRIPTION
 *  
 * PARAMETERS
 *  mode                [IN]        
 *  text_dcs            [IN]        
 *  greeting_text       [?]         
 *  no_text             [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
void l4cuem_set_greeting_text_req(kal_bool mode, kal_uint8 text_dcs, kal_uint8 *greeting_text, kal_uint8 no_text)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    kal_trace(TRACE_FUNC, FUNC_UEM_SET_GREETING_TEXT);

    ASSERT(greeting_text != NULL);

    if (no_text >= UEM_GREETING_LEN)
    {
        no_text = UEM_GREETING_LEN - 1;
    }
    greeting_text[no_text] = '\0';

    uem_set_greeting_text(mode, text_dcs, greeting_text, no_text);
}

/*****************************************************************************
*   Function 
*      l4cuem_get_greeting_text_req
*   DESCRIPTION
*      RMI requests L4C to set date format. Please reference the AT command "+CSDF".
*   PARAMETERS
*      mode      OUT
*      greeting_text       OUT
*   RETURNS
*      void
*   GLOBALS AFFECTED
*****************************************************************************/


/*****************************************************************************
 * FUNCTION
 *  l4cuem_get_greeting_text_req
 * DESCRIPTION
 *  
 * PARAMETERS
 *  mode                [?]     
 *  text_dcs            [?]     
 *  greeting_text       [?]     
 *  text_no             [?]     
 * RETURNS
 *  void
 *****************************************************************************/
void l4cuem_get_greeting_text_req
    (kal_uint8 *mode, kal_uint8 *text_dcs, kal_uint8 *greeting_text, kal_uint8 *text_no)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    kal_trace(TRACE_FUNC, FUNC_UEM_GET_GREETING_TEXT);

    ASSERT((mode != NULL) && (greeting_text != NULL));  /* invalid address */

    uem_get_greeting_text(mode, text_dcs, greeting_text, text_no);
}

/*****************************************************************************
*   Function 
*      l4cuem_gpio_get_level_req
*   DESCRIPTION
*      L4C requests UEM to get gpio value. Please reference the AT command "+CVIB".
*   PARAMETERS
*      mode      OUT
*      greeting_text       OUT
*   RETURNS
*      void
*   GLOBALS AFFECTED
*****************************************************************************/


/*****************************************************************************
 * FUNCTION
 *  l4cuem_gpio_get_level_req
 * DESCRIPTION
 *  
 * PARAMETERS
 *  gpio_device         [IN]        
 *  gpio_dev_level      [?]         
 * RETURNS
 *  void
 *****************************************************************************/
void l4cuem_gpio_get_level_req(kal_uint8 gpio_device, kal_uint8 *gpio_dev_level)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    kal_trace(TRACE_FUNC, FUNC_UEM_GPIO_GET_LEVEL);

    ASSERT(gpio_dev_level != NULL); /* invalid address */

    if (gpio_device < MAX_GPIO_DEVICE_NUM)
    {
        *gpio_dev_level = uem_get_gpio_status(gpio_device);
    }
    else
    {
        *gpio_dev_level = 0;
        kal_trace(TRACE_WARNING, WARNING_UEM_OUT_OF_RANGE);
    }
}

/*****************************************************************************
*   Function 
*      l4cuem_equip_set_cc_req
*   DESCRIPTION
*      L4C requests UEM to set the country code. Please reference the AT command "+GCI".
*   PARAMETERS
*      country_code      IN
*   RETURNS
*      void
*   GLOBALS AFFECTED
*****************************************************************************/


/*****************************************************************************
 * FUNCTION
 *  l4cuem_equip_set_cc_req
 * DESCRIPTION
 *  
 * PARAMETERS
 *  country_code        [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
void l4cuem_equip_set_cc_req(kal_uint8 country_code)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    kal_trace(TRACE_FUNC, FUNC_UEM_EQUIP_SET_CC);

    g_uem_cntx_p->rmi_data.country_code = country_code;
}

/*****************************************************************************
*   Function 
*      l4cuem_equip_get_cc_req
*   DESCRIPTION
*      L4C requests UEM to get the country code. Please reference the AT command "+GCI".
*   PARAMETERS
*      country_code      OUT
*   RETURNS
*      void
*   GLOBALS AFFECTED
*****************************************************************************/


/*****************************************************************************
 * FUNCTION
 *  l4cuem_equip_get_cc_req
 * DESCRIPTION
 *  
 * PARAMETERS
 *  country_code        [?]     
 * RETURNS
 *  void
 *****************************************************************************/
void l4cuem_equip_get_cc_req(kal_uint8 *country_code)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    kal_trace(TRACE_FUNC, FUNC_UEM_EQUIP_GET_CC);

    ASSERT(country_code != NULL);   /* invalid address */

    *country_code = g_uem_cntx_p->rmi_data.country_code;
}

/*****************************************************************************
*   Function 
*      l4cuem_set_lang_req
*   DESCRIPTION
*      L4C requests UEM to store the current language. Please reference the AT command "+CLAV".
*   PARAMETERS
*      lang_id      OUT
*   RETURNS
*      void
*   GLOBALS AFFECTED
*****************************************************************************/


/*****************************************************************************
 * FUNCTION
 *  l4cuem_set_lang_req
 * DESCRIPTION
 *  
 * PARAMETERS
 *  lang_id_0       [IN]        
 *  lang_id_1       [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
void l4cuem_set_lang_req(kal_uint8 lang_id_0, kal_uint8 lang_id_1)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    kal_trace(TRACE_FUNC, FUNC_UEM_SET_LANG);

    g_uem_cntx_p->rmi_data.lang_id[0] = lang_id_0;
    g_uem_cntx_p->rmi_data.lang_id[1] = lang_id_1;
}

/*****************************************************************************
*   Function 
*      l4cuem_get_lang_req
*   DESCRIPTION
*      L4C requests UEM to store the current language. Please reference the AT command "+CLAV".
*   PARAMETERS
*      lang_id      OUT
*   RETURNS
*      void
*   GLOBALS AFFECTED
*****************************************************************************/


/*****************************************************************************
 * FUNCTION
 *  l4cuem_get_lang_req
 * DESCRIPTION
 *  
 * PARAMETERS
 *  lang_id     [?]     
 * RETURNS
 *  void
 *****************************************************************************/
void l4cuem_get_lang_req(kal_uint8 *lang_id)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    kal_trace(TRACE_FUNC, FUNC_UEM_GET_LANG);

    ASSERT(lang_id != NULL);    /* invalid address */

    lang_id[0] = g_uem_cntx_p->rmi_data.lang_id[0];
    lang_id[1] = g_uem_cntx_p->rmi_data.lang_id[1];
}

/*****************************************************************************
*   Function 
*      l4cuem_set_date_time_format_req
*   DESCRIPTION
*      L4C requests UEM to store date format. Please reference the AT command "+CSDF".
*   PARAMETERS
*      lang_id      OUT
*   RETURNS
*      void
*   GLOBALS AFFECTED
*****************************************************************************/


/*****************************************************************************
 * FUNCTION
 *  l4cuem_set_date_time_format_req
 * DESCRIPTION
 *  
 * PARAMETERS
 *  is_date_set     [IN]        
 *  mode            [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
void l4cuem_set_date_time_format_req(kal_bool is_date_set, kal_uint8 mode)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    kal_trace(TRACE_FUNC, FUNC_UEM_SET_DATE_TIME_FORMAT);

    /* ref: date_format_enum/time_format_enum */
    uem_set_datetime_format(is_date_set, mode);
}

/*****************************************************************************
*   Function 
*      l4cuem_get_date_time_format_req
*   DESCRIPTION
*      L4C requests UEM to retrieve date format. Please reference the AT command "+CSDF".
*   PARAMETERS
*      lang_id      OUT
*   RETURNS
*      void
*   GLOBALS AFFECTED
*****************************************************************************/


/*****************************************************************************
 * FUNCTION
 *  l4cuem_get_date_time_format_req
 * DESCRIPTION
 *  
 * PARAMETERS
 *  is_date_set     [IN]  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -