Commit | Line | Data |
---|---|---|
d6483c83 PP |
1 | {% import 'common.j2' as common %} |
2 | {% set bo = 'le' if op.ft.byte_order == barectf_config.ByteOrder.LITTLE_ENDIAN else 'be' %} | |
3 | {{ common.prefix }}bt_bitfield_write_{{ bo }}(&ctx->buf[_BITS_TO_BYTES(ctx->at)], | |
4 | uint8_t, {{ op.offset_in_byte }}, {{ op.ft.size }}, {{ c_type }}, | |
5 | ({{ c_type }}) {{ src }}); | |
6 | ctx->at += {{ op.ft.size }}; |