Lines Matching defs:hdr
70 #define H5_HDR_SEQ(hdr) ((hdr)[0] & 0x07) argument
71 #define H5_HDR_ACK(hdr) (((hdr)[0] >> 3) & 0x07) argument
72 #define H5_HDR_CRC(hdr) (((hdr)[0] >> 6) & 0x01) argument
73 #define H5_HDR_RELIABLE(hdr) (((hdr)[0] >> 7) & 0x01) argument
74 #define H5_HDR_PKT_TYPE(hdr) ((hdr)[1] & 0x0f) argument
75 #define H5_HDR_LEN(hdr) ((((hdr)[1] >> 4) & 0x0f) + ((hdr)[2] << 4)) argument
77 #define H5_SET_SEQ(hdr, seq) ((hdr)[0] |= (seq)) argument
78 #define H5_SET_ACK(hdr, ack) ((hdr)[0] |= (ack) << 3) argument
79 #define H5_SET_RELIABLE(hdr) ((hdr)[0] |= 1 << 7) argument
80 #define H5_SET_TYPE(hdr, type) ((hdr)[1] |= type) argument
81 #define H5_SET_LEN(hdr, len) (((hdr)[1] |= ((len) & 0x0f) << 4), \ argument
231 static void h5_print_header(const uint8_t *hdr, const char *str) in h5_print_header()
298 uint8_t hdr[4]; in h5_send() local
382 static void h5_process_complete_packet(const struct device *dev, uint8_t *hdr) in h5_process_complete_packet()
434 static uint8_t hdr[4]; in bt_uart_isr() local