Lines Matching refs:index
1839 static uint8_t mdm_pdu_read_byte(const char *pdu, size_t index) in mdm_pdu_read_byte() argument
1841 return (mdm_pdu_decode_ascii(pdu[index * 2]) << 4 | in mdm_pdu_read_byte()
1842 mdm_pdu_decode_ascii(pdu[index * 2 + 1])); in mdm_pdu_read_byte()
1851 static uint8_t mdm_pdu_read_time(const char *pdu, size_t index) in mdm_pdu_read_time() argument
1853 return (mdm_pdu_decode_ascii(pdu[index * 2]) + in mdm_pdu_read_time()
1854 mdm_pdu_decode_ascii(pdu[index * 2 + 1]) * 10); in mdm_pdu_read_time()
1862 size_t index; in mdm_decode_pdu() local
1889 index = mdm_pdu_read_byte(pdu, 0) + 1; in mdm_decode_pdu()
1891 if (index >= pdu_len) { in mdm_decode_pdu()
1896 target_buf->first_octet = mdm_pdu_read_byte(pdu, index++); in mdm_decode_pdu()
1898 if (index >= pdu_len) { in mdm_decode_pdu()
1909 uint8_t addr_len = mdm_pdu_read_byte(pdu, index); in mdm_decode_pdu()
1911 index += ((addr_len % 2) == 0) ? (addr_len / 2) + 2 : (addr_len / 2) + 3; in mdm_decode_pdu()
1913 if (index >= pdu_len) { in mdm_decode_pdu()
1918 target_buf->tp_pid = mdm_pdu_read_byte(pdu, index++); in mdm_decode_pdu()
1920 if (index >= pdu_len) { in mdm_decode_pdu()
1925 uint8_t tp_dcs = mdm_pdu_read_byte(pdu, index++); in mdm_decode_pdu()
1928 if ((index + 7) >= pdu_len) { in mdm_decode_pdu()
1932 target_buf->time.year = mdm_pdu_read_time(pdu, index++); in mdm_decode_pdu()
1933 target_buf->time.month = mdm_pdu_read_time(pdu, index++); in mdm_decode_pdu()
1934 target_buf->time.day = mdm_pdu_read_time(pdu, index++); in mdm_decode_pdu()
1935 target_buf->time.hour = mdm_pdu_read_time(pdu, index++); in mdm_decode_pdu()
1936 target_buf->time.minute = mdm_pdu_read_time(pdu, index++); in mdm_decode_pdu()
1937 target_buf->time.second = mdm_pdu_read_time(pdu, index++); in mdm_decode_pdu()
1938 target_buf->time.timezone = mdm_pdu_read_time(pdu, index++); in mdm_decode_pdu()
1941 uint8_t tp_udl = mdm_pdu_read_byte(pdu, index++); in mdm_decode_pdu()
1947 uint8_t tp_udhl = mdm_pdu_read_byte(pdu, index); in mdm_decode_pdu()
1949 index += tp_udhl + 1; in mdm_decode_pdu()
1952 if (index >= pdu_len) { in mdm_decode_pdu()
1973 buf = mdm_pdu_read_byte(pdu, index++); in mdm_decode_pdu()
1982 uint8_t octet = mdm_pdu_read_byte(pdu, index++); in mdm_decode_pdu()
2008 target_buf->data[idx] = mdm_pdu_read_byte(pdu, index++); in mdm_decode_pdu()
2014 target_buf->data[idx] = mdm_pdu_read_byte(pdu, index++); in mdm_decode_pdu()
2147 sms->index = sms_index; in MODEM_CMD_DEFINE()
2172 int mdm_sim7080_delete_sms(uint16_t index) in mdm_sim7080_delete_sms() argument
2177 ret = snprintk(buf, sizeof(buf), "AT+CMGD=%u", index); in mdm_sim7080_delete_sms()