PebbleOS
Loading...
Searching...
No Matches
Functions
Comm session scheduling

Pick the task that sends a comm session's pending data. More...

Functions

bool pbl_bt_comm_schedule_send_next_job (CommSession *session)
 Schedule pbl_bt_run_send_next_job() for a session.
 
bool pbl_bt_comm_is_current_task_send_next_task (void)
 Check whether the current task is the one pbl_bt_comm_schedule_send_next_job() schedules on.
 
void pbl_bt_run_send_next_job (CommSession *session, bool is_callback)
 Send a session's pending data.
 

Detailed Description

Pick the task that sends a comm session's pending data.

Function Documentation

◆ pbl_bt_comm_is_current_task_send_next_task()

bool pbl_bt_comm_is_current_task_send_next_task ( void  )

Check whether the current task is the one pbl_bt_comm_schedule_send_next_job() schedules on.

Returns
true if called from that task.

◆ pbl_bt_comm_schedule_send_next_job()

bool pbl_bt_comm_schedule_send_next_job ( CommSession *  session)

Schedule pbl_bt_run_send_next_job() for a session.

The NimBLE backend runs it on KernelMain.

Parameters
sessionThe session with pending data.
Returns
true if the job was scheduled.

◆ pbl_bt_run_send_next_job()

void pbl_bt_run_send_next_job ( CommSession *  session,
bool  is_callback 
)
extern

Send a session's pending data.

Implemented by the firmware, invoked by the job scheduled with pbl_bt_comm_schedule_send_next_job().

Parameters
sessionThe session.
is_callbacktrue when invoked from the scheduled job.