Pigweed
 
Loading...
Searching...
No Matches
pw::chre::MessageToAp Struct Reference

#include <host_link.h>

Public Attributes

uint64_t nanoapp_id
 The id of the nanoapp sending the message.
 
uint32_t message_type
 The type of the message.
 
uint32_t app_permissions
 
uint32_t message_permissions
 
uint16_t host_endpoint
 The id of the client that this message should be delivered to on the host.
 
bool woke_host
 
const uint8_t * data
 
size_t length
 The length of data in bytes.
 
MessageToApContext chre_context
 

Detailed Description

This is a message that should be sent to the AP. It was allocated by CHRE, so pw::chre::FreeMessageToAp should be called in order to free it.

Member Data Documentation

◆ chre_context

MessageToApContext pw::chre::MessageToAp::chre_context

The context of the message, used to free the message when the client is finished sending it.

◆ data

const uint8_t* pw::chre::MessageToAp::data

The underlying data of the message. This is owned by chre_context and should not be accessed after the message has been freed.

◆ woke_host

bool pw::chre::MessageToAp::woke_host

Whether CHRE is responsible for waking the AP. If this is true, then the client must wake the AP in SendMessageToAp before sending this message.


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