#include <sigrok.h>
#include "text.h"
-
int init_bits(struct sr_output *o)
{
return init(o, DEFAULT_BPL_BITS, MODE_BITS);
return SR_OK;
}
-
struct sr_output_format output_text_bits = {
- "bits",
- "Bits (takes argument, default 64)",
- SR_DF_LOGIC,
- init_bits,
- data_bits,
- event,
+ .extension = "bits",
+ .description = "Bits (takes argument, default 64)",
+ .df_type = SR_DF_LOGIC,
+ .init = init_bits,
+ .data = data_bits,
+ .event = event,
};
-