Method: OpenC3::ReceivedCountConversion#call

Defined in:
lib/openc3/conversions/received_count_conversion.rb

#call(value, packet, buffer) ⇒ Integer

Returns packet.received_count.

Parameters:

  • value (Object)

    The value to convert

  • packet (Packet)

    The packet which contains the value. This can be useful to reach into the packet and use other values in the conversion.

  • buffer (String)

    The packet buffer

Returns:

  • (Integer)

    packet.received_count



37
38
39
# File 'lib/openc3/conversions/received_count_conversion.rb', line 37

def call(value, packet, buffer)
  packet.received_count
end