PASAHO Blind Patch Command Macros
PA/SA/Host Macros

PASAHO Blind Patch Command Macros

Macros used by the PASAHO Blind Patch Command

#define PASAHO_BPATCH_SET_PATCH_NBYTES(x, v)   PASAHO_SET_BITFIELD((x)->word0, v, 24, 5)
#define PASAHO_BPATCH_SET_PATCH_CMDSIZE(x, v)   PASAHO_SET_BITFIELD((x)->word0, v, 20, 4)
#define PASAHO_BPATCH_SET_OVERWRITE(x, v)   PASAHO_SET_BITFIELD((x)->word0, v, 19, 1)
#define PASAHO_BPATCH_SET_DELETE(x, v)   PASAHO_SET_BITFIELD((x)->word0, v, 18, 1)
#define PASAHO_BPATCH_SET_OFFSET(x, v)   PASAHO_SET_BITFIELD((x)->word0, v, 0, 16)
#define PASAHO_BPATCH_SET_PATCH_BYTE(x, byteNum, byte)   PASAHO_SET_BITFIELD((x)->patch[(byteNum) >> 2], byte, ((3 - (byteNum & 0x3)) << 3), 8)

Define Documentation

#define PASAHO_BPATCH_SET_DELETE (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0, v, 18, 1)

Sets the delete flag. If set, no data will be inserted

#define PASAHO_BPATCH_SET_OFFSET (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0, v, 0, 16)

Sets the offset to the start of the patch

#define PASAHO_BPATCH_SET_OVERWRITE (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0, v, 19, 1)

Sets the overwrite flag. If set the patch will overwrite existing packet data, otherwise data may be inserted

#define PASAHO_BPATCH_SET_PATCH_BYTE (   x,
  byteNum,
  byte 
)    PASAHO_SET_BITFIELD((x)->patch[(byteNum) >> 2], byte, ((3 - (byteNum & 0x3)) << 3), 8)

Sets the data to patch

#define PASAHO_BPATCH_SET_PATCH_CMDSIZE (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0, v, 20, 4)

Sets the size of the command in 32 bit word units

#define PASAHO_BPATCH_SET_PATCH_NBYTES (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0, v, 24, 5)

Sets the number of bytes to patch


Copyright 2014, Texas Instruments Incorporated