Packages

o

com.cisco.streambed.lora.packet

PHYPayloadCodec

object PHYPayloadCodec

Provides encoding/decoding to/from bytes from/to a LoRa domain object

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PHYPayloadCodec
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed abstract class DecodeStatus extends AnyRef

    Returned by decoding when no decoding can be performed

  2. final case class UnimplementedMessage(major: Int, mtype: Int) extends DecodeStatus with Product with Serializable
  3. final case class UnknownMessageType(major: Int, mtype: Int) extends DecodeStatus with Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def decode(phyPayload: Array[Byte]): Either[DecodeStatus, (PHYPayload, Option[MIC])]

    Decode a LoRa PHYPayload

    Decode a LoRa PHYPayload

    phyPayload

    An array of bytes with the LoRa packet

    returns

    Some equivalent domain object if decoding is successful

  7. def encode(confirmedDataDown: ConfirmedDataDown, micFromMsg: (Array[Byte], Int) => MIC): Array[Byte]

    Encode an ConfirmedDataDown

    Encode an ConfirmedDataDown

    confirmedDataDown

    the domain object

    micFromMsg

    a function to determine the MIC given a msg and its size

    returns

    A byte array with the LoRa packet including the bytes required for the MIC

  8. def encode(confirmedDataUp: ConfirmedDataUp, micFromMsg: (Array[Byte], Int) => MIC): Array[Byte]

    Encode an ConfirmedDataUp

    Encode an ConfirmedDataUp

    confirmedDataUp

    the domain object

    micFromMsg

    a function to determine the MIC given a msg and its size

    returns

    A byte array with the LoRa packet including the bytes required for the MIC

  9. def encode(unconfirmedDataDown: UnconfirmedDataDown, micFromMsg: (Array[Byte], Int) => MIC): Array[Byte]

    Encode an UnconfirmedDataDown

    Encode an UnconfirmedDataDown

    unconfirmedDataDown

    the domain object

    micFromMsg

    a function to determine the MIC given a msg and its size

    returns

    A byte array with the LoRa packet including the bytes required for the MIC

  10. def encode(unconfirmedDataUp: UnconfirmedDataUp, micFromMsg: (Array[Byte], Int) => MIC): Array[Byte]

    Encode an UnconfirmedDataUp

    Encode an UnconfirmedDataUp

    unconfirmedDataUp

    the domain object

    micFromMsg

    a function to determine the MIC given a msg and its size

    returns

    A byte array with the LoRa packet including the bytes required for the MIC

  11. def encode(joinAccept: JoinAccept, micFromMsg: (Array[Byte], Int) => MIC): Array[Byte]

    Encode a JoinAccept

    Encode a JoinAccept

    joinAccept

    the domain object

    micFromMsg

    a function to determine the MIC given a msg and its size

    returns

    A byte array with the LoRa packet including the bytes required for the MIC

    Annotations
    @SuppressWarnings()
  12. def encode(joinRequest: JoinRequest, micFromMsg: (Array[Byte], Int) => MIC): Array[Byte]

    Encode a JoinRequest

    Encode a JoinRequest

    joinRequest

    the domain object

    micFromMsg

    a function to determine the MIC given a msg and its size

    returns

    A byte array with the LoRa packet including the bytes required for the MIC

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. case object BufferUnderflow extends DecodeStatus with Product with Serializable
  28. case object ProprietaryMessage extends DecodeStatus with Product with Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped