MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / oldpins_array_seed

Function oldpins_array_seed

libsigrokdecode4DSL/instance.c:52–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 */
51
52static void oldpins_array_seed(struct srd_decoder_inst *di)
53{
54 size_t count;
55 GArray *arr;
56
57 if (!di)
58 return;
59 if (di->old_pins_array)
60 return;
61
62 count = di->dec_num_channels;
63 arr = g_array_sized_new(FALSE, TRUE, sizeof(uint8_t), count);
64 g_array_set_size(arr, count);
65 memset(arr->data, SRD_INITIAL_PIN_SAME_AS_SAMPLE0, count);
66 di->old_pins_array = arr;
67}
68
69static void oldpins_array_free(struct srd_decoder_inst *di)
70{

Callers 4

srd_inst_newFunction · 0.85
update_old_pins_arrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected