/* Description: get eink panel type, for example, 3 stands for ED060XC3(4-bit), 4 stands for ED060XD4(5-bit) Input: None Output: type  */
int get_eink_panel_type(EINK_PANEL_TYPE *type)
/* Description: get eink panel type, for example, 3 stands for ED060XC3(4-bit), 4 stands for ED060XD4(5-bit) Input: None Output: type  */
int get_eink_panel_type(EINK_PANEL_TYPE *type)
{
    if (g_waveform_file.load_flag != 1) {
        WF_ERR("waveform hasn't init yet, pls init first\n");
        return -EAGAIN;
    }
    if (type == NULL) {
        WF_ERR("input param is null\n");
        return -EINVAL;
    }
    *type = g_waveform_file.eink_panel_type;
    return 0;
}