tablestore

writes and outputs a value to a table if the value changes.
Author: robert schirmer
License: BSD
Github: rbrt/data/tablestore.axo

Inlets

frac32 v0

int32 sets an offset for writing to the table

Outlets

frac32 v0

Attributes

objref table

spinner offset

Declaration
uint32_t prev0;
uint32_t prev1;
uint32_t prev2;
uint32_t prev3;
Init
prev0 = 0;
prev1 = 0;
prev2 = 0;
prev3 = 0;
Control Rate
if (inlet_v0 != prev0) {
  attr_table.array[inlet_offset + attr_offset] =
      __SSAT(inlet_v0, 28) >> attr_table.GAIN;
  outlet_v0 =
      attr_table
          .array[__USAT((inlet_offset + attr_offset), attr_table.LENGTHPOW)]
      << attr_table.GAIN;
  prev0 = inlet_v0;
} else {
  outlet_v0 =
      attr_table
          .array[__USAT((inlet_offset + attr_offset), attr_table.LENGTHPOW)]
      << attr_table.GAIN;
}

Privacy

© 2024 Zrna Research