27 #ifndef SW_AIRBORNE_MODULES_STEREO_CAM_STEREOPROTOCOL_H_
28 #define SW_AIRBORNE_MODULES_STEREO_CAM_STEREOPROTOCOL_H_
73 uint8_t *stereocam_datalen,
uint8_t *stereocam_data_matrix_width,
uint8_t *stereocam_data_matrix_height);
uint8_t stereoprot_isEndOfMsg(uint8_t *stack, uint16_t i, uint16_t buffer_size)
Checks if the sequence in the array is equal to 255-0-0-171, as this means that this is the end of an...
uint8_t handleStereoPackage(uint8_t newByte, uint16_t buffer_size, uint16_t *insert_loc, uint16_t *extract_loc, uint16_t *msg_start, uint8_t *msg_buf, uint8_t *ser_read_buf, uint8_t *stereocam_datadata_new, uint8_t *stereocam_datalen, uint8_t *stereocam_data_matrix_width, uint8_t *stereocam_data_matrix_height)
Get all available data from stereo com link and decode any complete messages.
void stereoprot_sendArray(struct link_device *fd, uint8_t *b, uint8_t array_width, uint8_t array_height)
uint16_t positionImageStart
uint16_t stereoprot_diff(uint16_t counter, uint16_t i, uint16_t buffer_size)
Decrement circular buffer counter by i.
uint8_t stereoprot_isStartOfMsg(uint8_t *stack, uint16_t i, uint16_t buffer_size)
Checks if the sequence in the array is equal to 255-0-0-171, as this means a new image is starting fr...
void stereoprot_get_msg_properties(uint8_t *raw, MsgProperties *properties, uint16_t start, uint16_t buffer_size)
Retrieve size of image from message.
uint8_t ser_read_buf[STEREO_BUF_SIZE]
uint8_t msg_buf[STEREO_BUF_SIZE]
void WritePart(struct link_device *, uint8_t *, uint8_t)
uint16_t stereoprot_add(uint16_t counter, uint16_t i, uint16_t buffer_size)
Increment circular buffer counter by i.