PebbleOS v4.44.0-199-g465b7d28c
Loading...
Searching...
No Matches
pbl_mbox_controller_ops Struct Reference

Controller operations, implemented by the providers. More...

#include <mbox.h>

Data Fields

int(* xlate )(const struct pbl_mbox_controller *ctrl, const struct pbl_mbox_chan *chan)
 Translate a consumer's specifier to a channel index, or return a negative errno.
 
int(* startup )(const struct pbl_mbox_controller *ctrl, uint8_t idx)
 Enable a channel.
 
void(* shutdown )(const struct pbl_mbox_controller *ctrl, uint8_t idx)
 Disable a channel.
 
int(* send_data )(const struct pbl_mbox_controller *ctrl, uint8_t idx, const void *msg)
 Send a message on a channel.
 
bool(* last_tx_done )(const struct pbl_mbox_controller *ctrl, uint8_t idx)
 Whether the remote took the last message on a channel, for polled completion.
 

Detailed Description

Controller operations, implemented by the providers.

Field Documentation

◆ last_tx_done

bool(* pbl_mbox_controller_ops::last_tx_done) (const struct pbl_mbox_controller *ctrl, uint8_t idx)

Whether the remote took the last message on a channel, for polled completion.

◆ send_data

int(* pbl_mbox_controller_ops::send_data) (const struct pbl_mbox_controller *ctrl, uint8_t idx, const void *msg)

Send a message on a channel.

◆ shutdown

void(* pbl_mbox_controller_ops::shutdown) (const struct pbl_mbox_controller *ctrl, uint8_t idx)

Disable a channel.

◆ startup

int(* pbl_mbox_controller_ops::startup) (const struct pbl_mbox_controller *ctrl, uint8_t idx)

Enable a channel.

◆ xlate

int(* pbl_mbox_controller_ops::xlate) (const struct pbl_mbox_controller *ctrl, const struct pbl_mbox_chan *chan)

Translate a consumer's specifier to a channel index, or return a negative errno.


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