Searched refs:b64 (Results 1 – 5 of 5) sorted by relevance
/Zephyr-Core-3.5.0/subsys/net/lib/lwm2m/ |
D | lwm2m_util.c | 105 int lwm2m_float_to_b64(double *in, uint8_t *b64, size_t len) in lwm2m_float_to_b64() argument 119 memset(b64, 0, len); in lwm2m_float_to_b64() 164 memset(b64, 0, len); in lwm2m_float_to_b64() 168 b64[0] = val2 < 0 ? 0x80 : 0; in lwm2m_float_to_b64() 170 b64[0] = val1 < 0 ? 0x80 : 0; in lwm2m_float_to_b64() 174 b64[0] |= (e >> 4); in lwm2m_float_to_b64() 175 b64[1] = ((e & 0xF) << 4); in lwm2m_float_to_b64() 179 b64[1] |= ((f >> 48) & 0xF); in lwm2m_float_to_b64() 180 b64[2] = (f >> 40) & 0xFF; in lwm2m_float_to_b64() 181 b64[3] = (f >> 32) & 0xFF; in lwm2m_float_to_b64() [all …]
|
D | lwm2m_util.h | 14 int lwm2m_float_to_b64(double *in, uint8_t *b64, size_t len); 18 int lwm2m_b64_to_float(uint8_t *b64, size_t len, double *out);
|
D | lwm2m_rw_oma_tlv.c | 529 uint8_t b64[8]; in put_float() local 536 ret = lwm2m_float_to_b64(value, b64, sizeof(b64)); in put_float() 543 tlv_calc_id(fd->writer_flags, path), sizeof(b64)); in put_float() 544 len = oma_tlv_put(&tlv, out, b64, false); in put_float()
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/transport/src/ |
D | serial_util.c | 152 uint8_t b64[4 + 1]; /* +1 required for null terminator. */ in mcumgr_serial_tx_small() local 156 rc = base64_encode(b64, sizeof(b64), &dst_len, data, len); in mcumgr_serial_tx_small() 160 return cb(b64, 4); in mcumgr_serial_tx_small()
|
D | smp_dummy.c | 523 uint8_t b64[4 + 1]; /* +1 required for null terminator. */ in mcumgr_dummy_tx_small() local 527 rc = base64_encode(b64, sizeof(b64), &dst_len, data, len); in mcumgr_dummy_tx_small() 531 return cb(b64, 4); in mcumgr_dummy_tx_small()
|