24 #define CI_STREAM_PROTOCOL_ID_BYTESIZE (sizeof(uint8))
27 #define CI_STREAM_OUTPUTPACKET_STREAMID_BYTESIZE (sizeof(uint8))
30 #define CI_STREAM_DATASET_ID_BYTESIZE (sizeof(uint8))
33 #define CI_STREAM_OUTPUTPACKET_LENGTH_BYTESIZE (sizeof(uint16))
36 #define CI_STREAM_NUMELEMENTS_BYTESIZE (sizeof(uint8))
39 #define STREAM_CRC_BYTESIZE (sizeof(uint16))
48 #define STREAM_PROTOCOL_CMD_BYTESIZE (1)
51 #define STREAM_PROTOCOL_CMD_STATUS_BYTESIZE (1)
54 #define STREAM_PROTOCOL_RECV_MIN_BYTESIZE (STREAM_PROTOCOL_CMD_BYTESIZE)
57 #define STREAM_PROTOCOL_SUBCMD_BYTESIZE (1)
72 #define STREAM_PROTOCOL_RESP_MIN_BYTESIZE (3)
79 #define STREAM_PROTOCOL_RESP_RESPDATALENGTH_BYTESIZE (2)
98 #define STREAM_PROTOCOL_RESP_DEFAULT_ARRAY_BYTESIZE ( \
99 STREAM_PROTOCOL_RESP_MIN_BYTESIZE \
100 + STREAM_PROTOCOL_RESP_RESPDATALENGTH_BYTESIZE \
119 #define STREAM_PROTOCOL_RESP_INDEX_PROTOCOLID (0)
120 #define STREAM_PROTOCOL_RESP_INDEX_COCO_STAT (1)
121 #define STREAM_PROTOCOL_RESP_INDEX_CMD_ECHO (2)
122 #define STREAM_PROTOCOL_RESP_INDEX_NUMDATA_MSB (3)
123 #define STREAM_PROTOCOL_RESP_INDEX_NUMDATA_LSB (4)
124 #define STREAM_PROTOCOL_RESP_INDEX_DATASTART (5)
144 #define STREAM_PROTOCOL_OUTPUTPACKET_INDEX_PROTOCOLID (0)
145 #define STREAM_PROTOCOL_OUTPUTPACKET_INDEX_COCO_STAT (1)
146 #define STREAM_PROTOCOL_OUTPUTPACKET_INDEX_STREAMID (2)
147 #define STREAM_PROTOCOL_OUTPUTPACKET_INDEX_LENGTH_MSB (3)
148 #define STREAM_PROTOCOL_OUTPUTPACKET_INDEX_LENGTH_LSB (4)
153 #define STREAM_COCO_BIT (7) // Bit position (starting at 0)
154 #define STREAM_COCO_BIT_MASK (1 << STREAM_COCO_BIT)
158 #define STREAM_PROTOCOL_DATA_ENABLED (1)
159 #define STREAM_PROTOCOL_DATA_DISABLED (0)
163 #define ci_stream_get_host_cmd(pSrc) (pSrc[0] & 0xFF)
164 #define ci_stream_get_host_data(pSrc) (pSrc[1])
170 #define cmd_createstream_get_streamID(pSrc) (pSrc[0])
171 #define cmd_createstream_get_numelements(pSrc) (pSrc[1])
172 #define cmd_createstream_get_trigmask_ptr(pSrc) (&pSrc[2])
224 uint8 *pStreamBuffer;
233 uint8 *pTriggerState;
240 struct _ci_stream_instance *pNextInstance;
248 #endif // CI_STREAM_H_
ISF board support header files.
unsigned char uint8
This defines uint8 as unsigned char.
Stream protocol control register 1 Structure.
ISF Command Interpreter (CI) stream protocol header file.
Main ISF header file. Contains code common to all ISF components.
ci_stream_ctrl_reg1_t StreamCtrlReg1
Stream protocol registers Structure. Contains stream protocol control registers.
struct __attribute__((__packed__)) _ci_stream_instance
This structure contains the stream configuration information.