Zephyr API 3.6.99
Loading...
Searching...
No Matches
mipi_stp_decoder.h File Reference
#include <zephyr/kernel.h>

Go to the source code of this file.

Data Structures

union  mipi_stp_decoder_data
 Union with data associated with a given STP opcode. More...
 
struct  mipi_stp_decoder_config
 Decoder configuration. More...
 

Macros

#define STP_DECODER_TYPE2STR(_type)
 Convert type to a string literal.
 

Typedefs

typedef void(* mipi_stp_decoder_cb) (enum mipi_stp_decoder_ctrl_type type, union mipi_stp_decoder_data data, uint64_t *ts, bool marked)
 Callback signature.
 

Enumerations

enum  mipi_stp_decoder_ctrl_type {
  STP_DATA4 = 1 , STP_DATA8 = 2 , STP_DATA16 = 4 , STP_DATA32 = 8 ,
  STP_DATA64 = 16 , STP_DECODER_NULL = 128 , STP_DECODER_MAJOR , STP_DECODER_MERROR ,
  STP_DECODER_CHANNEL , STP_DECODER_VERSION , STP_DECODER_FREQ , STP_DECODER_GERROR ,
  STP_DECODER_FLAG , STP_DECODER_ASYNC , STP_DECODER_NOT_SUPPORTED
}
 STPv2 opcodes. More...
 

Functions

int mipi_stp_decoder_init (const struct mipi_stp_decoder_config *config)
 Initialize the decoder.
 
int mipi_stp_decoder_decode (const uint8_t *data, size_t len)
 Decode STPv2 stream.
 
void mipi_stp_decoder_sync_loss (void)
 Indicate synchronization loss.