/* Description: get bit number of eink panel, 4-bit stands for 16 grayscale, 5-bit stands for 32 grayscale Input: None Output: bit_num  */
int get_eink_panel_bit_num(enum eink_bit_num *bit_num)
/* Description: get bit number of eink panel, 4-bit stands for 16 grayscale, 5-bit stands for 32 grayscale Input: None Output: bit_num  */
int get_eink_panel_bit_num(enum eink_bit_num *bit_num)
{
    if (g_waveform_file.load_flag != 1) {
        WF_ERR("waveform hasn't init yet, pls init first\n");
        return -EAGAIN;
    }
    if (bit_num == NULL) {
        WF_ERR("input param is null\n");
        return -EINVAL;
    }
    if (g_waveform_file.eink_panel_type == ED060XD4)
        *bit_num = EINK_BIT_5;
    else
        *bit_num = EINK_BIT_4;
    return 0;
}