Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
i3c_ccc_getstatus Union Reference

Payload for GETSTATUS CCC (Get Device Status). More...

#include <ccc.h>

Data Fields

struct { 
 
   uint16_t   status 
 Device Status. More...
 
fmt1 
 
union { 
 
   uint16_t   tgtstat 
 Defining Byte 0x00: TGTSTAT. More...
 
   uint16_t   precr 
 Defining Byte 0x91: PRECR. More...
 
   uint16_t   raw_u16 
 
fmt2 
 

Detailed Description

Payload for GETSTATUS CCC (Get Device Status).

Field Documentation

◆ [struct]

struct { ... } i3c_ccc_getstatus::fmt1

◆ [union]

union { ... } i3c_ccc_getstatus::fmt2

◆ precr

uint16_t i3c_ccc_getstatus::precr

Defining Byte 0x91: PRECR.

  • Bit[15:8]: Vendor Reserved
  • Bit[7:2]: Reserved
  • Bit[1]: Handoff Delay NACK
  • Bit[0]: Deep Sleep Detected
Note
For drivers and help functions, the raw data coming back from target device is in big endian. This needs to be translated back to CPU endianness before passing back to function caller.

◆ raw_u16

uint16_t i3c_ccc_getstatus::raw_u16

◆ status

uint16_t i3c_ccc_getstatus::status

Device Status.

  • Bit[15:8]: Reserved.
  • Bit[7:6]: Activity Mode.
  • Bit[5]: Protocol Error.
  • Bit[4]: Reserved.
  • Bit[3:0]: Number of Pending Interrupts.
Note
For drivers and help functions, the raw data coming back from target device is in big endian. This needs to be translated back to CPU endianness before passing back to function caller.

◆ tgtstat

uint16_t i3c_ccc_getstatus::tgtstat

Defining Byte 0x00: TGTSTAT.

See also
i3c_ccc_getstatus::fmt1::status

The documentation for this union was generated from the following file: