SDK

Esta página aún no está en español, así que se muestra en inglés.

Events

Every signal in the Kode Dot's firmware, grouped by the Active Object that owns it, with the event each one carries.

What it is

Active Objects talk only through events. An event is a signal, a number that says what happened or what is asked, plus a small struct of data copied into it. This page lists every signal the SDK and kodeOS define, one table per owner, so you can find what to subscribe to and what to post.

How it is connected

flowchart LR
subgraph pubs["Published: below MAX_PUB_SIG"]
  pub["An owner"] -- "publish" --> any["Every subscriber"]
end
subgraph posts["Posted: at or above MAX_PUB_SIG"]
  req["Your AO"] -- "post" --> own["One owner"]
  own -. "reply to who" .-> req
end
class pub ao
class any ao
class req app
class own ao
Two ways an event travels

Each table is one owner. How to read its columns:

  • Range is publish for a signal below MAX_PUB_SIG and post for one at or above it.
  • Event names the struct the signal carries. A bare QEvt is made once as a static const and takes no pool block, so it cannot fail to allocate.

Three more rules help when you read a table:

  • Replies go to the QActive *who the request carried.
  • The private timers are QTimeEvt members of the owner and nobody else sends them.
  • A *_TEST_REQ_SIG runs a row of the console's test. The verdict returns as a published TEST_RESULT_SIG or TEST_SKIP_SIG, after the row's own step signals when it has them.

The signals are numbered in kqp_signals.h, and the structs they carry are declared in the same file. kqp.c checks with _Static_assert that each struct fits the pool block it is allocated from, so an event that grows too big fails the build instead of the board.

sdk/kqp explains the pools that hold the events and the priorities that decide who runs first.

Specifications

AO_LedMgr

Every signal AO_LedMgr owns.

SignalRangeEventWhat it does
LED_SET_SIGpublishLedEvtLight the LED (last colour, or white) or darken it, by on.
LED_TOGGLE_SIGpublishLedEvtInvert the LED. on is unused.
LED_BLINK_PERIOD_SIGpublishLedBlinkEvtSet the heartbeat period.
LED_HEARTBEAT_ENABLE_SIGpublishLedEvtStart or stop the heartbeat, by on.
LED_RGB_SIGpublishLedRgbEvtSet the colour; (0, 0, 0) is off.
LED_TEST_SIGpublishLedTestEvtOne step of the LED row: a colour to judge or its outcome.
LED_TEST_REQ_SIGpostbare QEvtRun test component=led; the verdict returns as TEST_RESULT_SIG.
LED_HEARTBEAT_SIG, LED_TEST_WAIT_SIGpostQTimeEvtPrivate timers, in order: the heartbeat blink; nobody answered the colour in time.

AO_AppMgr

Published signals: every Active Object that subscribed hears them.

SignalRangeEventWhat it does
APP_FLASH_DONE_SIGpublishAppFlashDoneEvtA write ended well; name is the app installed, empty for the C5 image. AO_Radio publishes it too.
APP_FLASH_FAIL_SIGpublishAppFlashFailEvtA write failed. AO_Radio publishes it too.
APP_FLASH_PROGRESS_SIGpublishAppProgressEvt0 % when a write starts, then each whole percent, with the file and what is written. The Opening sheet and the LED follow a write by this family.
APP_ENTRY_SIGpublishAppEntryEvtOne installed app, in answer to APP_LIST_REQ_SIG.
APP_LIST_END_SIGpublishListEndEvtThe last entry of the page; more says another page follows.
APP_EVICTED_SIGpublishAppEvictedEvtAn install took this app's place in the region, one event per app, before the write starts; kept says a copy is on the card. The app being replaced is not one.
APP_CAT_RSP_SIGpublishAppCatRspEvtThe outcome of APP_CAT_REQ_SIG.
APP_ERASE_DONE_SIGpublishAppEraseDoneEvtAn erase ended: what went, what stayed and where. The console and the launcher both close on it, and a request refused while AO_AppMgr is busy ends the same way.
APP_CARD_FULL_SIGpublishbare QEvtThe copy of an app does not fit the card, and that app has none there. Published once for each card mounted. The interface says the card is full when it is in sight.

AO_AppMgr: posted signals

Posted signals go to one Active Object: requests, replies to the asker, and the private signals and timers.

SignalRangeEventWhat it does
APP_FLASH_CHUNK_SIGpostbare QEvtPrivate: pace the next chunk of a write.
APP_ADOPT_SIGpostbare QEvtPrivate: the app_pending mailbox holds a verified image at boot; adopt it.
APP_ERASE_REQ_SIGpostAppFlashEvtRemove the named app from the region.
APP_CAT_REQ_SIGpostAppCatReqEvtAssign or drop an app's categories.
APP_RUN_REQ_SIGpostAppFlashEvtBoot the named installed app; the board resets.
APP_LIST_REQ_SIGpostAppListReqEvtPost APP_ENTRY_SIG for a page of installed apps to the asker, then APP_LIST_END_SIG.
APP_EVICT_REQ_SIGpostAppEvictReqEvtAsk which installed apps an install of this size and name would evict.
APP_EVICT_ENTRY_SIGpostAppEvictEntryEvtTo the asker: one app the install would evict, in eviction order.
APP_EVICT_END_SIGpostAppEvictEndEvtTo the asker: the last entry.
APP_RECV_REQ_SIGpostAppRecvReqEvtAn image is about to arrive on the console, for the region, the inactive OS slot or the mailbox.
FLASH_REQ_SIGpostFlashReqEvtOne source-to-sink transfer. The only way to ask for an image to be written.
APP_RECV_IDLE_SIG, APP_RECV_LAUNCH_SIGpostQTimeEvtPrivate timers, in order: no chunk for KODE_RECV_IDLE_MS, the host is gone; the drain delay after a good install is over, boot it.
APP_CANCEL_REQ_SIGpostbare QEvtLeave the install in hand, as a failure: the person went back.
APP_FIND_REQ_SIGpostAppFindReqEvtWhere is the app named project: its extent in the apps region, or whether the card has it. Answered to the asker alone.
APP_FIND_RSP_SIGpostAppFindRspEvtTo the asker: the answer to APP_FIND_REQ_SIG.
APP_KEEP_ONLY_REQ_SIGpostAppKeepOnlyReqEvtRemove every installed app but the one named, their data folders with them. Answered to the asker alone, once the last folder is dealt with.
APP_KEEP_ONLY_RSP_SIGpostAppKeepOnlyRspEvtTo the asker: the answer to APP_KEEP_ONLY_REQ_SIG.
APP_KEEP_ONLY_STEP_SIGpostbare QEvtPrivate, posted to itself once per header: erase the next removed app's image header.
APP_TIDY_TIMEOUT_SIGpostQTimeEvtPrivate timer: AO_Storage did not answer a folder request in APPMGR_TIDY_MS.
APPDATA_GET_REQ_SIGpostAppDataGetReqEvtFetch one app's data folder from a URL and have AO_Storage write it. Posted directly.
APPDATA_GET_RSP_SIGpostAppDataGetRspEvtTo the asker: how that fetch ended.
INSTALL_INFO_REQ_SIGpostInstallInfoReqEvtWrite the records of the last app install and the last kodeOS update to the asker's port (src), then post APP_REQ_RSP_SIG to who. The console's install_info.
APP_BACKUP_TMO_SIGpostQTimeEvtPrivate timer: the wait, the pace or the deadline of the copy of an app to the card in hand.

Console receive protocol

The signals of a payload that arrives on the console.

SignalRangeEventWhat it does
RECV_READY_SIGpublishbare QEvtThe destination is open and the console is in raw mode: the host may stream. Becomes >|ready.
RECV_ACK_SIGpublishbare QEvtOne full chunk was consumed: the host may send the next (>|ack). The whole flow control of a transfer. AO_Console alone hears it.
RECV_DONE_SIGpublishbare QEvtThe payload arrived and verified. A terminal install is installed; a file_put is a file on FAT.
RECV_FAIL_SIGpublishbare QEvtRefused, or the bytes did not survive the trip.
RECV_STALL_SIGpublishbare QEvtThe host stopped sending and never came back.
RECV_AGAIN_SIGpublishbare QEvtAO_AppMgr refused the stream for now: the card stayed busy while an app the image would evict was copied to it, or a compressed image evicts an app with no copy that its length on the wire did not. The console answers >err code=4 msg=busy; ask again.
RECV_WAIT_SIGpublishbare QEvtAO_AppMgr holds the stream back while an app the image would evict is copied to the card, before the console is armed. Published when the wait begins and every second of it. Becomes >|wait, and the console gives the command its time again.
RECV_DATA_SIGpostRecvDataEvtOne chunk of the payload, from AO_Console to the receiving AO.

AO_Storage

Published signals: every Active Object that subscribed hears them.

SignalRangeEventWhat it does
STORAGE_ENTRY_SIGpublishStorageEntryEvtOne file found by sd_ls or fs_ls. A page that an Active Object asks for, such as a page of ls or of kode_sys_file_list(), posts its entries to the asker alone.
STORAGE_LIST_END_SIGpublishListEndEvtThe last entry of the page.
STORAGE_INFO_SIGpublishStorageInfoEvtOne medium's mount state and usage, and for a card that is not mounted, why: no card, no FAT volume, or a card that would not come up.
STORAGE_TEST_SIGpublishStorageTestEvtOne phase of the card test, with what it measured.
STORAGE_CARD_SIGpublishStorageCardEvtThe card was mounted, or is mounted no more: mounted.

AO_Storage: posted signals

Posted signals go to one Active Object: requests, replies to the asker, and the private signals and timers.

SignalRangeEventWhat it does
STORAGE_CMD_SIGpostStorageCmdEvtRun one command (op) on a medium.
STORAGE_LIST_PAGE_SIGpostStorageListPageEvtPost a page of the bootable images on every medium to the asker.
STORAGE_CMD_RSP_SIGpostbare QEvtTo who: the command has run.
STORAGE_OPEN_REQ_SIGpostStorageOpenEvtOpen a named file for reading.
STORAGE_READ_REQ_SIGpostbare QEvtFill a free buffer and send it.
STORAGE_NEXT_SIGpostStorageBufEvtA borrowed buffer handed back: refill it and send it again.
STORAGE_CLOSE_REQ_SIGpostbare QEvtClose the open file.
STORAGE_OPEN_RSP_SIGpostStorageOpenRspEvtTo the opener: whether the file is open.
STORAGE_DATA_SIGpostStorageDataEvtTo the reader: one buffer of the file.
STORAGE_WRITE_REQ_SIGpostStorageWriteEvtPut a caller's data in a file, in one event.
STORAGE_WRITE_RSP_SIGpostStorageWriteRspEvtTo the writer: how the write ended.
STORAGE_DESC_REQ_SIGpostStorageDescReqEvtRead the manifest out of the front of one file.
STORAGE_DESC_RSP_SIGpostStorageDescRspEvtThat file's identity, back to who.
APPDATA_REQ_SIGpostAppDataReqEvtResolve an app's data folder.
APPDATA_FIELDS_SIGpostAppDataFieldsEvtTo the asker: the folder's fields.
APPDATA_ICON_SIGpostAppDataIconEvtTo the asker: one third of the icon.
APPDATA_END_SIGpostbare QEvtTo the asker: the conversation is over.
APPDATA_RM_REQ_SIGpostAppDataReqEvtDelete one app's data folder on the internal partition.
APPDATA_RM_RSP_SIGpostAppDataRmRspEvtTo the asker: how the delete ended.
STORAGE_FIELD_REQ_SIGpostStorageFieldReqEvtRead, write or dump one field of the card's table.
STORAGE_FIELD_RSP_SIGpostStorageFieldEvtTo the requester: the field.
STORAGE_PATH_REQ_SIGpostStoragePathEvtStat, list, cat, mkdir, unlink or rmdir one path.
STORAGE_PATH_RSP_SIGpostStoragePathRspEvtTo the requester: the answer of stat, mkdir, unlink, rmdir and move.
STORAGE_LINE_SIGpostStorageLineEvtTo the requester of cat: one line of the file, or the terminator.
STORAGE_PAIR_REQ_SIGpostStoragePairEvtMove or copy a source to a destination.
STORAGE_TEXT_REQ_SIGpostStorageTextEvtPut text in a file.
STORAGE_RECV_REQ_SIGpostStorageRecvEvtA file is about to arrive on the console (file_put).
STORAGE_SDJOB_DONE_SIGpostKqpWorkerDoneEvtstorage_sd to AO_Storage: a call to the card returned.
STORAGE_WRITE_NEXT_SIG, STORAGE_TEST_NEXT_SIG, STORAGE_CAT_NEXT_SIG, STORAGE_COPY_NEXT_SIG, STORAGE_RECV_IDLE_SIG, STORAGE_SDJOB_TO_SIGpostQTimeEvtPrivate timers, in order: the next chunk of a write; the next step of the card test; the next batch of lines of a cat; the next chunk of a cp; no chunk of an arriving file for KODE_RECV_IDLE_MS; a call to the card did not return in time.
APPDATA_PUT_REQ_SIGpostAppDataPutEvtWrite one app's data folder on the internal partition: app.json, then the icon when there is one. Posted directly, never published.
APPDATA_PUT_RSP_SIGpostAppDataPutRspEvtTo the asker: how that put ended.
APPDATA_PUT_NEXT_SIGpostbare QEvtPrivate self-post: the icon's step of a put in progress.
STORAGE_APP_WIPE_REQ_SIGpostAppDataReqEvtTake every file of one app off both media: the images at a medium's root whose descriptor names the project, and its data folder. Posted directly, never published.
STORAGE_APP_WIPE_RSP_SIGpostStorageAppWipeRspEvtTo the asker: what went and what stayed on each medium.
STORAGE_APP_WIPE_NEXT_SIGpostQTimeEvtPrivate timer: the next file of the wipe in progress.
STORAGE_WRITE_ABANDON_REQ_SIGpostStorageWriteAbandonEvtThe writer who ends its write in flight.
STORAGE_SWEEP_NEXT_SIGpostQTimeEvtPrivate timer: the next pass over the card's root for what a cut copy of an app left there.
HTTP_FILE_REQ_SIGpostHttpFileReqEvtDownload a URL into a file, from kode_sys_http_get_file(). Answered to the asker with one HTTP_FILE_PROGRESS_SIG per chunk and one HTTP_FILE_RSP_SIG.
HTTP_FILE_PROGRESS_SIGpostHttpFileEvtTo the asker: a chunk of its download is in the file. written bytes so far, of total when the server said it.
HTTP_FILE_RSP_SIGpostHttpFileEvtTo the asker: its download ended. rc, stopped when the asker ended it, the HTTP status, written, size and total.
HTTP_FILE_STOP_SIGpostHttpFileStopEvtEnd the download its asker who started, from kode_sys_http_file_stop().
HTTP_FILE_RETRY_SIG, HTTP_FILE_STALL_SIGpostQTimeEvtPrivate timers, in order: try again the chunk that found another transfer holding the file; AO_Net has said nothing of the download for KODE_HTTP_FILE_STALL_MS.
FILE_STATUS_RSP_SIGpostFileRspEvtAnswers kode_sys_file_status(), to the asking AO.
FILE_SPACE_RSP_SIGpostFileRspEvtAnswers kode_sys_file_space(): the volume's total and free kilobytes.
FILE_READ_RSP_SIGpostFileRspEvtAnswers kode_sys_file_read(): got bytes of the window are in the asker's buffer.
FILE_WRITE_RSP_SIGpostFileRspEvtAnswers kode_sys_file_write().
FILE_LIST_END_SIGpostFileRspEvtEnds a page of STORAGE_ENTRY_SIG asked by kode_sys_file_list() or by the console's ls: count entries and more.
FILE_FOLDER_RSP_SIGpostFileRspEvtAnswers kode_sys_file_create_folder().
FILE_DELETE_RSP_SIGpostFileRspEvtAnswers kode_sys_file_delete().
FILE_RENAME_RSP_SIGpostFileRspEvtAnswers kode_sys_file_rename().

AO_Autotest

Every signal AO_Autotest owns.

SignalRangeEventWhat it does
TEST_RESULT_SIGpublishTestResultEvtAny AO: the outcome of a self-test that could not be answered on the spot. It carries the origin of the run, and AO_Autotest ignores a verdict that is not its own.
TEST_SKIP_SIGpublishTestResultEvtAny AO: a self-test that could not be judged because what it needs is absent (no card, no cable, no tag). ok is unused.
AUTOTEST_BEGIN_SIGpublishAutotestBeginEvtA run was taken or refused.
AUTOTEST_ROW_SIGpublishAutotestRowEvtOne row started or ended.
AUTOTEST_END_SIGpublishAutotestEndEvtThe run is over.
AUTOTEST_HOLD_SIGpublishAutotestHoldEvtThe run waits for whoever asked, before the rows that need hands.
AUTOTEST_REPORT_SIGpublishAutotestReportEvtOne row of the report kept from the last user run, then an end marker.
PSRAM_TEST_SIGpublishPsramTestEvtWhat the PSRAM row tested and found, once per run, before its verdict.
AUTOTEST_RUN_REQ_SIGpostAutotestRunReqEvtRun a group of rows, or one by name.
AUTOTEST_CANCEL_REQ_SIGpostAutotestClientEvtEnd the run in flight after the row in flight.
AUTOTEST_CONTINUE_SIGpostAutotestClientEvtThe answer to a hold.
AUTOTEST_REPORT_REQ_SIGpostAutotestClientEvtPublish the kept report.
AUTOTEST_PSRAM_STEP_SIG, AUTOTEST_BUDGET_SIGpostQTimeEvtPrivate timers, in order: the PSRAM row's next step is due; the row in flight ran out of budget, or nobody answered a hold.

AO_Power

Every signal AO_Power owns.

SignalRangeEventWhat it does
POWER_EVT_SIGpublishPowerEvtA battery reading.
POWER_SHIP_SIGpublishbare QEvtThe BATFET is about to open (ship mode). Published in the step before the write, so every owner can prepare.
POWER_FIELD_SIGpublishPowerFieldEvtOne chip field's value, or the outcome of writing it.
POWER_CTRL_SIGpublishPowerCtrlEvtThe answer to one POWER_CTRL_REQ_SIG, a refusal included.
POWER_TEST_SIGpublishPowerTestEvtOne step of the power_plug row.
POWER_CRITICAL_SIGpublishPowerCriticalEvtThe cell is critical on battery (critical true), or that it is over (false). Said once per fall, at KODE_POWER_CRITICAL_PCT (10 %) or under, or at the first reading under the cut, so it always comes before the readings that end in ship mode. Over when a cable comes or the level climbs KODE_POWER_CRITICAL_REARM_PCT (3 %) above the mark. One of two static events, and the reading that decided it is the POWER_EVT_SIG just before it. kscreen shows its notice for it with kscreen_critical().
POWER_DUMP_REQ_SIGpostbare QEvtLog everything both chips say.
POWER_PEEK_REQ_SIGpostbare QEvtOne quiet reading, published as POWER_EVT_SIG, with the wall clock kept. AO_LowPower asks once a minute while the board is ASLEEP or the CPU part of an app's rest runs.
POWER_CABLE_REQ_SIGpostbare QEvtRead whether a cable is in, one bit of the charger, and publish a whole reading as POWER_EVT_SIG only when that differs from the last one published. AO_LowPower asks every KODE_LOWPOWER_CABLE_LOOK_MS (2000 ms) while the board sleeps, with power_cable_request(). A static event.
POWER_SHIP_REQ_SIGpostbare QEvtShip mode: open the BATFET and cut the battery from VSYS. power_ship_request() posts it for the console verb ship_mode, for AO_Power's own cut at a low cell, for AO_Display when the panel never answers on battery, and for the factory reset's ship end.
POWER_SHIP_ARM_SIGpostPowerShipArmEvtCount KODE_SHIP_UNPLUG_MS from the cable leaving, then tell the asker.
POWER_SHIP_DUE_SIGpostbare QEvtTo the asker of the arming: the cable has been out for KODE_SHIP_UNPLUG_MS.
POWER_FIELD_REQ_SIGpostPowerFieldReqEvtRead, write or dump one field of the PMIC or the gauge.
POWER_TEST_REQ_SIGpostPowerTestReqEvtRun test component=pmic or gauge.
POWER_CTRL_REQ_SIGpostPowerCtrlReqEvtOne owner-level operation on the PMIC: boost, charge, charge limit, reset.
POWER_POLL_SIG, POWER_PULSE_SIG, POWER_CTRL_TICK_SIG, POWER_TEST_STEP_SIG, POWER_SHIP_TMO_SIGpostQTimeEvtPrivate timers, in order: the poll; the next half of the write pulse of the LED; the one-shot wait of Power_waiting is over; the power_plug row looks at the cable again; the countdown after the cable left is over.
POWER_BOOST_TEST_REQ_SIGpostPowerBoostTestReqEvtThe pads delivery test's boost on or off, from power_boost_test_request(). Answered once with POWER_BOOST_TEST_SIG.
POWER_BOOST_TEST_SIGpostPowerBoostTestEvtTo the asker: the boost as the delivery test left it.

AO_LowPower

Present only with CONFIG_KODE_LOWPOWER. The first three published signals are the protocol of the board's rest (sdk/kaos/lowpower), and LOWPOWER_PART_SIG is the news of an app's rest of single parts (sdk/kaos/part-rest).

SignalRangeEventWhat it does
LOWPOWER_ROUND_SIGpublishLowPowerRoundEvtA round of readiness is open for a target state, ASLEEP or OFF. Each owner that joined rests its device and answers once with lowpower_ready(). parts is 0 for a round of the board. A round for an app's rest is posted to one owner alone, with parts the part it is asked for.
LOWPOWER_STATE_SIGpublishLowPowerStateEvtThe board changed state: state is AWAKE, ASLEEP, OFF or DARK, with the cause and the prev state. State AWAKE also arrives with prev AWAKE when a round was abandoned, or when a request for AWAKE ended an app's rest, so the restore must be idempotent. Arm no QTimeEvt on state ASLEEP. State DARK, the dark wake, is for the owners of lowpower_join_dark() alone: every other owner stays at rest.
LOWPOWER_REFUSED_SIGpublishLowPowerRefusedEvtA request or a round did not go through. src says whose request it answers, and why is who: why, a copy.
LOWPOWER_PART_SIGpublishLowPowerPartEvtNews of an app's rest: what is ANSWER (the one answer to a request, with rc, src and why), WOKE (a wake of the P4, with cause) or TAKEN (the board's rest, or a request for AWAKE, took over). parts holds the parts at rest. The board stays AWAKE throughout.
LOWPOWER_REQ_SIGpostLowPowerReqEvtGo to a state. From the console verbs sleep and power_off, from kode_sys_power_sleep() and kode_sys_power_off(), and from AO_Radio when its sentinel could not go back down.
LOWPOWER_READY_SIGpostLowPowerReadyEvtOne participant's answer to a round: who, round, busy and a reason copy.
LOWPOWER_INPUT_SIGpostLowPowerInputEvtA console line came in. One static event for each port, so a wake from BLE or the channel is never lost to an empty pool.
LOWPOWER_REST_SIGpostLowPowerReqEvtAn owner whose time woke the board (AO_Scheduler) asks to sleep again, unless somebody used the board.
LOWPOWER_WAKE_AT_SIGpostLowPowerWakeAtEvtAn owner's work falls due at a real time (khal_time_us()). Asleep, the board wakes for it.
LOWPOWER_DARK_DONE_SIGpostLowPowerDarkDoneEvtA dark-wake owner's work in a dark wake is finished: who, the id lowpower_join_dark() gave.
LOWPOWER_PART_REQ_SIGpostLowPowerPartReqEvtPut parts away (parts, and for the CPU part wake_touch, wake_pin with wake_level, wake_after_ms), or with end bring them all back. From kode_sys_rest(), kode_sys_rest_end(), kode_rest() and the console's rest.
LOWPOWER_PART_WAKE_SIGpostLowPowerPartWakeEvtA source the app chose woke the P4 from the CPU part: cause is KODE_LP_WAKE_PIN or KODE_LP_WAKE_TIMER. One static event per source, posted from the wake line's interrupt and the wake timer.
LOWPOWER_MINUTE_SIGpostbare QEvtThe minute timer of ASLEEP ran out. A static event, posted from the callback of khal_timer_once().
LOWPOWER_ROUND_TMO_SIG, LOWPOWER_IDLE_TMO_SIG, LOWPOWER_DARK_TMO_SIG, LOWPOWER_RETRY_TMO_SIG, LOWPOWER_STATE_RETRY_SIGpostQTimeEvtPrivate timers, in order: a round's budget, or the grace before OFF; the idle time; the bound of a dark wake, KODE_LOWPOWER_DARK_MAX_MS; the wait before a requested round begins again; a state change that found no event is published again.
LOWPOWER_TOP_SIGpostbare QEvtFrom AO_Buttons: GPIO35 moved. While ASLEEP the tick is stopped and no settle runs, so this is what wakes the board on the top button.

It subscribes to IOEXP_INPUT_SIG, BUTTON_EVT_SIG, TOUCH_EVT_SIG, POWER_EVT_SIG, MQTT_MSG_SIG and CONFIG_REQ_SIG.

AO_Scheduler

Present only with CONFIG_KODE_SCHEDULER (sdk/kaos/scheduler).

SignalRangeEventWhat it does
SCHED_SET_REQ_SIGpostSchedSetReqEvtMake or change a console entry. when of off removes it, or switches mqtt off.
SCHED_SET_AO_REQ_SIGpostSchedSetAoReqEvtMake or change an entry that posts an event to an Active Object.
SCHED_REMOVE_REQ_SIGpostSchedNameReqEvtRemove an entry of code.
SCHED_LIST_REQ_SIGpostSchedNameReqEvtOne entry, or every entry when the name is empty.
SCHED_ENTRY_SIGpostSchedEntryEvtTo the asker: one entry (owner, stored, next_s, name, when, cmd). The widest tenant of the large pool.
SCHED_END_SIGpostSchedEndEvtTo the asker: the request is answered (st, why, count).
SCHED_LINE_DONE_SIGpostbare QEvtThe console answered the line it was given, so the next may go.
SCHED_CHECK_DONE_SIGpostSchedCheckDoneEvtAO_Net made the check of the mqtt entry.
SCHED_UP_SIGpostbare QEvtFrom kode_init(): every Active Object has its queue, so the scheduler may post.
SCHED_DUE_SIG, SCHED_WORK_TMO_SIGpostQTimeEvtPrivate timers, in order: the earliest minute is near, or the clock is asked again; the work of a minute ran KODE_SCHED_WORK_BOUND_MS.
SCHED_WALL_SET_SIGpostbare QEvtFrom the hook registered with kdrv_clocks: the wall clock was written by a person or a time server, so the minute timer is armed again. A static event.
SCHED_LINE_BUSY_SIGpostbare QEvtFrom sched_line_busy(): the console was busy with another command when the line it was given arrived, and answered nothing. A static event.
SCHED_RETRY_SIGpostQTimeEvtPrivate one-shot timer: a line the console was busy for is given again KODE_SCHED_RETRY_MS after the refusal.

An entry of code fires as a SchedFireEvt (name) with the signal that the entry named. AO_Scheduler subscribes to LOWPOWER_ROUND_SIG, LOWPOWER_STATE_SIG and LOWPOWER_REFUSED_SIG when CONFIG_KODE_LOWPOWER is on.

AO_Display

Published signals: every Active Object that subscribed hears them.

SignalRangeEventWhat it does
DISPLAY_STATE_SIGpublishDisplayStateEvtWhether the panel is up and how bright it is driven. Published once at startup and again for each DISPLAY_STATE_REQ_SIG.
DISPLAY_MIRROR_INFO_SIGpublishMirrorInfoEvtThe mirror's live state.
DISPLAY_TEST_SIGpublishDisplayTestEvtOne step of the display row.
DISPLAY_REPAINT_SIGpublishbare QEvtThe display row is over, or the glass came back from a rest with new framebuffers (CONFIG_KODE_LOWPOWER). Whoever draws the glass fetches its buffers again and invalidates all of it.
DISPLAY_SLEEP_SIGpublishDisplaySleepEvtHow one request to sleep or wake the glass ended: asleep, rc, why and who. Once per DISPLAY_SLEEP_REQ_SIG, done or refused.
DISPLAY_PARK_SIGpublishDisplayParkEvtThe glass is about to sleep for kode_sys_screen_sleep(). Whoever draws stops, says so with kode_sys_screen_parked(seq) within KODE_LOWPOWER_GLYPHS_WAIT_MS, and draws nothing until DISPLAY_REPAINT_SIG.

AO_Display: posted signals

Posted signals go to one Active Object: requests, replies to the asker, and the private signals and timers.

SignalRangeEventWhat it does
DISPLAY_FLUSH_SIGpostFlushEvtPush one rendered rectangle to the panel.
DISPLAY_BRIGHTNESS_SIGpostBrightnessEvtSet the brightness, in percent.
DISPLAY_STATE_REQ_SIGpostbare QEvtPublish DISPLAY_STATE_SIG again, for whoever started late.
DISPLAY_CAPTURE_REQ_SIGpostDisplayCaptureReqEvtCopy the frame on the glass and say how big it is.
DISPLAY_CAPTURE_RSP_SIGpostDisplayCaptureRspEvtTo the requester: the copy.
DISPLAY_CAPTURE_END_SIGpostbare QEvtThe capture is done with the buffer; the flush path may write it again.
DISPLAY_MIRROR_START_SIGpostMirrorStartEvtBegin streaming the panel; the next frame is the whole panel.
DISPLAY_MIRROR_STOP_SIGpostbare QEvtStop streaming.
DISPLAY_MIRROR_ACK_SIGpostMirrorAckEvtThe host has received up to seq; releases credit.
DISPLAY_MIRROR_INFO_REQ_SIGpostbare QEvtPublish DISPLAY_MIRROR_INFO_SIG.
DISPLAY_SHOT_REQ_SIGpostDisplayShotReqEvtEncode the front framebuffer whole as one JPEG and lend it.
DISPLAY_SHOT_RSP_SIGpostDisplayShotRspEvtTo the requester: the JPEG.
DISPLAY_SHOT_END_SIGpostbare QEvtThe requester is done with the shot; take the buffer back.
DISPLAY_TEST_REQ_SIGpostbare QEvtRun test component=display.
DISPLAY_TEST_STEP_SIGpostbare QEvtPrivate, self-posted: paint the next band of the field.
DISPLAY_MINUTE_REQ_SIGpostbare QEvtWith CONFIG_KODE_LOWPOWER, from AO_LowPower each minute while ASLEEP: write the time into the panel's memory.
DISPLAY_GLYPHS_SIGpostDisplayGlyphsEvtWith CONFIG_KODE_LOWPOWER, from display_glyphs_hand(): the renderer has stopped, and here is the strip of digits (a pointer into the renderer's PSRAM, an exception to the rule that events carry copies).
DISPLAY_MIRROR_TICK_SIG, DISPLAY_TEST_WAIT_SIG, DISPLAY_GLYPHS_TMO_SIG, DISPLAY_RESTORE_SIGpostQTimeEvtPrivate timers, in order: the mirror's pacer, re-armed after each pass; nobody answered the field in time; the renderer handed no glyphs in KODE_LOWPOWER_GLYPHS_WAIT_MS; the glass could not be put back and is tried again.
DISPLAY_JPEG_REQ_SIGpostDisplayJpegReqEvtEncode the requester's RGB565 frame and copy the JPEG into its buffer, from display_jpeg_request().
DISPLAY_HEALTH_SIGpostQTimeEvtPrivate timer: the glass is looked at.
DISPLAY_SLEEP_REQ_SIGpostDisplaySleepReqEvtPut the glass to sleep or wake it (sleep, who), from kode_sys_screen_sleep() and from AO_LowPower for an app's rest. Answered with one DISPLAY_SLEEP_SIG.
DISPLAY_SUPPLY_REQ_SIGpostDisplaySupplyReqEvtFrom AO_LowPower, display_supply_off_request(): take the supply of a panel already asleep for an app's rest. Answered with lowpower_ready() for round.
DISPLAY_COMPOSE_REQ_SIGpostDisplayComposeReqEvtRun one pass of the pixel accelerator on the requester's pictures, from display_compose_run() (sdk/kdrv/compose).

AO_Touch

Every signal AO_Touch owns.

SignalRangeEventWhat it does
TOUCH_EVT_SIGpublishTouchEvtA touch sample, pinned to the glass.
TOUCH_TEST_SIGpublishTouchTestEvtOne step of the guided touch test: a target to tap, or its outcome.
TOUCH_FIELD_REQ_SIGpostTouchFieldReqEvtRead, write or dump one field of the CST820.
TOUCH_FIELD_RSP_SIGpostTouchFieldEvtTo the requester: the field.
TOUCH_TEST_REQ_SIG, TOUCH_TEST_REQ_FROM_SIGpostbare QEvt, TestReqEvtRun test component=tp. The second names who asked (origin), and every step and the verdict carry it back.
TOUCH_POLL_SIG, TOUCH_TEST_TMO_SIG, TOUCH_RESTORE_SIGpostQTimeEvtPrivate timers, in order: the poll while a finger is down; the operator did not tap the target in time; with CONFIG_KODE_LOWPOWER, the controller is written back to its awake settings again.
TOUCH_LOOK_SIGpostQTimeEvtPrivate one-shot timer: look again for a controller that did not answer the bring-up.
TOUCH_TEST_CANCEL_SIGpostTestReqEvtThe same for the guided touch test: it ends here, with no verdict.
TOUCH_INJECT_SIGpostTouchEvtPrivate: the console's touch or tap moved the finger, for the judge of the touch test.

AO_Buttons

Every signal AO_Buttons owns.

SignalRangeEventWhat it does
BUTTON_EVT_SIGpublishButtonEvtOne button changed.
BUTTON_HOLD_SIGpublishButtonHoldEvtTOP or BOT has been down for KODE_BUTTON_HOLD_MS.
BUTTON_HOME_HOLD_SIGpublishButtonHoldEvtBOT has been down for KODE_HOME_HOLD_MS (3 s); id is always KDRV_BTN_BOT. Once per press, after that press's BUTTON_HOLD_SIG. A static event, so it goes out with the pool dry. AO_Boot turns it into HOME_SIG in an app built with KODEOS_HOME_HOLD.
BUTTON_DOUBLE_SIGpublishButtonDoubleEvtTOP was pressed twice in quick succession.
BTN_STATE_SIGpublishButtonsStateEvtAll six buttons now, in answer to BUTTONS_DUMP_REQ_SIG.
BTN_TEST_SIGpublishButtonsTestEvtOne step of the guided button test.
BUTTONS_DUMP_REQ_SIGpostbare QEvtLog every button's state.
BUTTONS_TOP_INT_SIGpostbare QEvtPrivate: GPIO35 moved. Posted from the pin's interrupt through kqp_post_from_isr().
BUTTONS_TEST_REQ_SIG, BUTTONS_TEST_REQ_FROM_SIGpostbare QEvt, TestReqEvtRun test component=buttons. The second names who asked (origin), and every step and the verdict carry it back.
BUTTONS_ROTATE_SIGpostButtonsRotateEvtTurn the pad by quarter turns, from buttons_rotation_request().
BUTTONS_PAD_IDLE_SIGpostbare QEvtPrivate: an injected release left the pad idle, so a turn that waited may apply.
BUTTONS_SETTLE_SIG, BUTTONS_TEST_TMO_SIG, BUTTONS_HOLD_TMO_SIGpostQTimeEvtPrivate timers, in order: A change was seen, take the confirming sample; the operator did not press the button in time; a button has been down for KODE_BUTTON_HOLD_MS.
BUTTONS_TEST_CANCEL_SIGpostTestReqEvtThe guided button test that client origin asked for ends here, with no verdict.
BUTTONS_INJECT_SIGpostButtonEvtPrivate: the console's btn moved a button, for the judge of the button test.

AO_Boot

Every signal AO_Boot owns.

SignalRangeEventWhat it does
HOME_SIGpublishbare QEvtThe bottom button was held: the interface goes home. Published in both roles.
BOOT_STATE_SIGpublishBootStateEvtThe boot state, in answer to BOOT_INFO_REQ_SIG.
BOOT_OS_SWITCH_SIGpostbare QEvtPoint otadata at the inactive kodeOS slot and reset.
BOOT_APP_RUN_SIGpostBootRunEvtWrite a boot request (NEW or ALWAYS, by mode) and reset so the bootloader jumps.
BOOT_INFO_REQ_SIGpostbare QEvtLog the boot state.
BOOT_EXIT_REQ_SIGpostbare QEvtReset. In an app this is the way home.
BOOT_HOME_DEFER_SIGpostbare QEvtThe app asks for a moment before the hold resets it, from kode_sys_home_defer().
BOOT_HOME_NOW_SIGpostbare QEvtThe app is ready, go home now, from kode_sys_home_now().
BOOT_RADIO_PARKED_SIGpostbare QEvtPrivate, from boot_radio_parked(): AO_Radio has done with the C5 for the jump.
BOOT_NET_LEFT_SIGpostbare QEvtPrivate, from boot_net_left(): AO_Net has left the Kode channel for the jump.
BOOT_HOME_GRACE_SIG, BOOT_LEAVE_TMO_SIGpostQTimeEvtPrivate timers, in order: the grace is over (or, once extended, the cap); the step of the leave that is running ran out of time.
BOOT_FIRST_FRAME_SIGpostbare QEvtThe interface's first frame has reached the glass.
BOOT_KEEP_SIGpublishbare QEvtA restart into kodeOS is a moment away: the panel's owner leaves the frame on the glass and says so to the next boot. Nobody answers.
FACTORY_RESET_REQ_SIGpostFactoryResetReqEvtForget everything the board remembers but its identity and the station lock. One FACTORY_RESET_RSP_SIG to the asker, always.
FACTORY_RESET_RSP_SIGpostFactoryResetRspEvtTo the asker: the step that stopped the reset, or that it is done.
BOOT_HEALTHY_TMO_SIGpostQTimeEvtPrivate timer: the board has been up long enough to confirm itself, and then long enough to forget its crashes.
BOOT_RESET_AGAIN_SIGpostQTimeEvtPrivate timer: ask AO_Radio again for the wipe it refused as busy.
BOOT_RESET_STEP_SIGpostbare QEvtPrivate self-post: erase the next NVS namespace of the reset.
BOOT_RESET_TMO_SIGpostQTimeEvtPrivate timer: the step of the reset that is running ran out of time.
BOOT_STABLE_SIGpublishBootStableEvtThe kodeOS running has stayed up KODE_BOOT_STABLE_MS: running, where its partition starts, and other, what became of the other slot. Once per boot, kodeOS role only.
BOOT_OS_SWITCH_FAIL_SIGpublishbare QEvtA BOOT_OS_SWITCH_SIG could not point otadata at the other slot, and the board stays on this one.
BOOT_NVS_SET_SIGpostBootNvsSetEvtWrite value under key in the app's store, kapp, from kode_sys_nvs_set(). Nobody is answered, and a pair the store refuses is a warning in the log, as is one that would take the apps' keys past KODE_NVS_SHARE_MAX (16384 bytes).
BOOT_LOG_FLUSHED_SIGpostbare QEvtPrivate, from boot_log_flushed(): AO_Log has written every line posted before the leave began. One per LOG_FLUSH_REQ_SIG.

AO_IoExp

Every signal AO_IoExp owns.

SignalRangeEventWhat it does
IOEXP_INPUT_SIGpublishIoexpInputEvtWhat the expander's eight pins read. Published on every read of the input register.
IOEXP_INT_SIGpostbare QEvtPrivate: the TCA6408A's INT line went low.
IOEXP_READ_REQ_SIGpostbare QEvtRead the input register now and publish IOEXP_INPUT_SIG, changed or not.
IOEXP_FIELD_REQ_SIGpostIoexpFieldReqEvtRead, write or dump one field of the expander.
IOEXP_FIELD_RSP_SIGpostIoexpFieldEvtTo the requester: the field.
IOEXP_TEST_REQ_SIGpostbare QEvtRun test component=ioexp.
IOEXP_RETRY_SIGpostQTimeEvtPrivate timers, in order: INT fired and the input register did not read: ask again.

AO_Ir

Every signal AO_Ir owns.

SignalRangeEventWhat it does
IR_RX_SIGpublishIrRxEvtOne frame the receiver heard. Not published for a frame this board sent itself.
IR_SEND_REQ_SIGpostIrSendEvtTransmit one NEC frame.
IR_SEND_RAW_REQ_SIGpostIrSendRawEvtTransmit the frame the requester lends, on its carrier.
IR_CAPTURE_REQ_SIGpostIrCaptureEvtFill the requester's buffer with the next frame heard.
IR_INFO_REQ_SIGpostIrInfoReqEvtThe console's ir: the block's own status.
IR_INFO_RSP_SIGpostIrInfoEvtTo the requester: the status.
IR_LAST_REQ_SIGpostIrLastEvtThe last frame heard, written into the requester's memory and signalled on a semaphore.
IR_TEST_REQ_SIGpostbare QEvtRun test component=ir.
IR_RX_RDY_SIGpostbare QEvtPrivate: a capture is waiting in the driver. Posted from the receive interrupt.
IR_JOB_DONE_SIGpostKqpWorkerDoneEvtir_worker to AO_Ir: a call to the C5 returned.
IR_ECHO_SIG, IR_CAPTURE_TO_SIG, IR_TEST_TO_SIG, IR_JOB_TO_SIGpostQTimeEvtPrivate timers, in order: the echo-suppression window closed; the pending capture reached its deadline; an attempt of the production row heard nothing; a call to the C5 did not return in time.
IR_SEND_RAW_RSP_SIGpostStatusRspEvtAnswers kode_sys_ir_send_raw(), to the asking AO.
IR_CAPTURE_RSP_SIGpostIrCaptureRspEvtAnswers kode_sys_ir_capture(), to the asking AO.
IR_LAST_RSP_SIGpostIrLastRspEvtAnswers kode_sys_ir_last(), to the asking AO.
IR_LINK_TO_SIGpostQTimeEvtPrivate one-shot timer, armed again by each request taken while requests wait for the C5 link: each request past its own budget is answered KODE_TIMEOUT.

AO_Nfc

Published signals: every Active Object that subscribed hears them.

SignalRangeEventWhat it does
NFC_TAG_SIGpublishNfcTagEvtOne tag the poller activated. Published only while a request is in flight.
NFC_EMU_SIGpublishNfcEmuEvtOne turn of an emulation window: a field arriving, a select, a read.

AO_Nfc: posted signals

Posted signals go to one Active Object: requests, replies to the asker, and the private signals and timers.

SignalRangeEventWhat it does
NFC_READ_REQ_SIGpostNfcReadEvtEnergise and answer with the first tag activated inside the window.
NFC_NDEF_REQ_SIGpostNfcNdefEvtRead or write an NDEF message on the first tag activated.
NFC_NDEF_RSP_SIGpostNfcNdefRspEvtTo the requester: the NDEF answer.
NFC_INFO_REQ_SIGpostNfcInfoReqEvtThe console's nfc: the reader's status.
NFC_INFO_RSP_SIGpostNfcInfoEvtTo the requester: the status.
NFC_KEYS_REQ_SIGpostNfcKeysReqEvtSweep the public Mifare key dictionary against one block.
NFC_KEYS_RSP_SIGpostNfcKeysRspEvtTo the requester: which key opened it.
NFC_DUMP_REQ_SIGpostNfcDumpReqEvtRead every sector a Mifare Classic opens and stream it, one sector per tick.
NFC_DUMP_RSP_SIGpostNfcDumpRspEvtTo the requester: the dump is finished.
NFC_FIELD_REQ_SIGpostNfcFieldEvtListen for a window with the reader's own field off and describe the field somebody else put on the antenna.
NFC_FIELD_RSP_SIGpostNfcFieldRspEvtTo the requester: the window's statistics.
NFC_EMU_REQ_SIGpostNfcEmuReqEvtPresent the Kode Dot as a passive NFC-A card, or stop.
NFC_EMU_RSP_SIGpostNfcEmuRspEvtTo the console: a start or stop finished.
NFC_CERT_REQ_SIGpostNfcCertEvtRaise, switch or drop the held maximum-drive field. Posted only in a build with KODEOS_NFC_CERT.
NFC_TEST_REQ_SIGpostbare QEvtRun test component=nfc.
NFC_TICK_SIG, NFC_DEADLINE_SIGpostQTimeEvtPrivate timers, in order: pump rfalNfcWorker() once and arm again; the request in flight reached its window.
NFC_READ_RSP_SIGpostNfcReadRspEvtAnswers kode_sys_nfc_read_tag(), to the asking AO.
NFC_CERT_RSP_SIGpostStatusRspEvtAnswers kode_cert_nfc_carrier(), to the asking AO.

AO_Rfid

Every signal AO_Rfid owns.

SignalRangeEventWhat it does
RFID_TAG_SIGpublishRfidTagEvtOne EM4100 ID decoded inside a window. Published only while a request is in flight.
RFID_READ_REQ_SIGpostRfidReqEvtEnergise and report the first EM4100 ID decoded inside the window.
RFID_WRITE_REQ_SIGpostRfidWriteReqEvtClone a 5-byte ID onto a T5577.
RFID_INFO_REQ_SIGpostRfidInfoReqEvtThe console's rfid.
RFID_INFO_RSP_SIGpostRfidInfoEvtTo the requester: the status.
RFID_OP_RSP_SIGpostRfidOpRspEvtTo the console: a rfid_read or rfid_write finished.
RFID_FIELD_REQ_SIGpostRfidFieldEvtRead the demod line for a window with the carrier off and describe it.
RFID_FIELD_RSP_SIGpostRfidFieldRspEvtTo the requester: the window's statistics, by value.
RFID_CERT_REQ_SIGpostRfidCertEvtRaise, switch or drop the held maximum-drive 125 kHz carrier. Posted only with KODEOS_NFC_CERT.
RFID_TEST_REQ_SIGpostbare QEvtRun test component=rfid.
RFID_WORKER_DONE_SIGpostKqpWorkerDoneEvtrfid_worker to AO_Rfid: the job finished.
RFID_DEADLINE_SIGpostQTimeEvtPrivate timers, in order: the request's window is over.
RFID_EMU_REQ_SIGpostRfidEmuEvtPlay an EM4100 ID as a tag.
RFID_EMU_STOP_REQ_SIGpostRfidEmuEvtEnd the emulation.
RFID_EMU_RSP_SIGpostRfidEmuRspEvtAnswers kode_sys_rfid_emulate_start() and _stop(), to the asking AO.
RFID_CERT_RSP_SIGpostStatusRspEvtAnswers kode_cert_rfid_carrier(), to the asking AO.

AO_Audio

Every signal AO_Audio owns.

SignalRangeEventWhat it does
AUDIO_TEST_SIGpublishAudioTestEvtOne step of the audio row.
AUDIO_FILE_RSP_SIGpublishAudioFileRspEvtA recording reached a file, or did not.
AUDIO_FIELD_SIGpublishAudioFieldEvtOne codec field's value, or the outcome of writing it.
AUDIO_DONE_SIGpostAudioDoneEvtAnswers kode_sys_audio_play(), to the asking AO, once the sound was heard or refused: the only end of a play an Active Object can wait for.
AUDIO_TONE_REQ_SIGpostAudioToneEvtEmit one tone, snapped to a detector bin.
AUDIO_FIELD_REQ_SIGpostAudioFieldReqEvtRead, write or dump one field of the codec.
AUDIO_INFO_REQ_SIGpostAudioInfoReqEvtWhat the audio path is and what it is set to.
AUDIO_REC_FILE_REQ_SIGpostAudioFileReqEvtRecord for a while into a file.
AUDIO_PLAY_REQ_SIGpostAudioBufEvtPlay the frames in the event, then wake the blocked waiter or answer the asking AO.
AUDIO_REC_REQ_SIGpostAudioBufEvtFill the event's buffer and wake the waiter.
AUDIO_STREAM_OPEN_REQ_SIGpostAudioBufEvtOpen the stream; wake the waiter once it plays.
AUDIO_STREAM_CLOSE_REQ_SIGpostAudioBufEvtEnd the stream; wake the waiter once what it held has been heard.
AUDIO_TEST_REQ_SIGpostbare QEvtRun test component=audio.
AUDIO_JOB_SIGpostKqpWorkerDoneEvtThe codec worker finished a job.
AUDIO_GUARD_SIGpostQTimeEvtPrivate timers, in order: A job handed to the worker never answered.
AUDIO_INFO_RSP_SIGpostAudioInfoRspEvtAnswers kode_sys_audio_info_read(), to the asking AO.
AUDIO_REC_RSP_SIGpostAudioDoneEvtAnswers kode_sys_audio_record(), to the asking AO; frames says how many were recorded.
AUDIO_STREAM_OPEN_RSP_SIGpostAudioDoneEvtAnswers kode_sys_audio_stream_open(), to the asking AO.
AUDIO_STREAM_CLOSE_RSP_SIGpostAudioDoneEvtAnswers kode_sys_audio_stream_close(), to the asking AO.
AUDIO_STREAM_IDLE_SIGpostQTimeEvtPrivate timer: read how long the open stream has gone without a write. At KODE_SYS_AUDIO_STREAM_IDLE_MS (10 s) the stream is closed; short of it the timer counts what is left.
AUDIO_REC_STOP_REQ_SIGpostbare QEvtEnd the recording into memory in flight at its next block. Ignored when none runs and for a recording into a file. A static event, one queued at a time.
AUDIO_SETTING_REQ_SIGpostAudioSettingReqEvtWrite the latest volume, microphone gain or mute value. One request is queued per setting, and AUDIO_FIELD_SIG answers.

AO_Imu

Every signal AO_Imu owns.

SignalRangeEventWhat it does
IMU_TEST_SIGpublishImuTestEvtOne step of the IMU row.
MAG_TEST_SIGpublishMagTestEvtOne step of the magnetometer row.
IMU_READ_REQ_SIGpostImuReadEvtOne sample into the caller's own struct, answered inside the step that receives it.
IMU_CAPTURE_REQ_SIGpostImuCaptureReqEvtArm the FIFO for the witness window of the haptic row.
IMU_ARMED_SIGpostImuArmedEvtTo whoever asked: the FIFO is armed.
IMU_DRAIN_REQ_SIGpostImuDrainReqEvtDrain what the FIFO holds and measure it at a rate.
IMU_ENERGY_SIGpostImuEnergyEvtTo whoever asked: the energy measured.
MAG_READ_REQ_SIGpostMagReadEvtOne magnetometer sample into the caller's own int32_t[3].
IMU_TEST_REQ_SIGpostbare QEvtRun test component=imu.
MAG_TEST_REQ_SIGpostbare QEvtRun test component=mag.
IMU_WAIT_SIG, IMU_REST_SIG, MAG_REST_SIGpostQTimeEvtPrivate timers, in order: A self-test's poll, a chunk of a witness window or the gyroscope's turn-on; the IMU rests after KODE_IMU_REST_AFTER_MS; the same for the QMC5883P.
IMU_SAMPLE_RSP_SIGpostImuSampleRspEvtAnswers kode_sys_imu_read(), to the asking AO.
MAG_SAMPLE_RSP_SIGpostMagSampleRspEvtAnswers kode_sys_mag_read(), to the asking AO.
MAG_CAL_REQ_SIGpostMagCalEvtRead, store or clear the magnetometer's calibration, answered inside the step that receives it. The blocking calls of kode.h use it.
MAG_CAL_RSP_SIGpostMagCalRspEvtAnswers kode_sys_mag_cal_get(), _set() and _clear(), to the asking AO.

AO_Haptic

Every signal AO_Haptic owns.

SignalRangeEventWhat it does
HAPTIC_TEST_SIGpublishHapticTestEvtOne step of the haptic row.
HAPTIC_FIELD_SIGpublishHapticFieldEvtOne field's value, or the outcome of writing it.
HAPTIC_DONE_SIGpublishHapticDoneEvtA buzz ended.
HAPTIC_PLAY_REQ_SIGpostHapticPlayEvtOne buzz: ms and gain_pct.
HAPTIC_FIELD_REQ_SIGpostHapticFieldReqEvtRead, write or dump one field of the driver.
HAPTIC_TEST_REQ_SIGpostbare QEvtRun test component=haptic.
HAPTIC_TICK_SIG, HAPTIC_TAIL_SIG, HAPTIC_WAIT_SIGpostQTimeEvtPrivate timers, in order: feed the RTP FIFO; the chip has played what it was left with; the row's stillness window or the deadline on a reply from AO_Imu.
HAPTIC_STOP_REQ_SIGpostbare QEvtEnd the pattern or the hold early. A static event.
HAPTIC_RETRY_SIGpostQTimeEvtPrivate one-shot timer: look again for a chip that did not answer at boot.

AO_Radio

Published signals: every Active Object that subscribed hears them.

SignalRangeEventWhat it does
RADIO_STATE_SIGpublishRadioStateEvtThe C5 link's state. Published on every change and for each RADIO_STATE_REQ_SIG.
WIFI_STATE_SIGpublishWifiStateEvtWhere the Wi-Fi connection stands.
WIFI_SCAN_ENTRY_SIGpublishWifiScanEntryEvtOne network found.
WIFI_SCAN_END_SIGpublishWifiScanEndEvtThe last one: how many, and whether the ceiling cut the scan short. cut says a stop or a newer Wi-Fi request ended it early, and gen is the generation of the newest request the listing answers.
WIFI_SCAN_AGAIN_SIGpublishWifiScanEndEvtThe Wi-Fi listing in flight ended early for a newer wifi_scan and starts again: cut, how many entries the cut sweep published, and the newer request's gen. One WIFI_SCAN_END_SIG, the newest sweep's, closes the listing.
WIFI_SAVED_ENTRY_SIGpublishWifiSavedEvtOne remembered network, name only.
WIFI_SAVED_END_SIGpublishWifiScanEndEvtThe last remembered one, in the same shape.
BLE_STATE_SIGpublishBleStateEvtWhat the BLE half is doing. Published on every change.
BLE_PAIR_SIGpublishBlePairEvtA pairing wants a code shown, has ended, or was refused with no code (phase REFUSED, with the cause in outcome). A refusal is told at most once in KODE_BLE_PAIR_REFUSED_QUIET_MS (10 s) and changes nothing on the board.
BLE_SCAN_ENTRY_SIGpublishBleScanEvtOne device seen.
BLE_SCAN_END_SIGpublishWifiScanEndEvtThe last one: a count and whether the scan worked.
C5_RUN_REQ_SIGpublishbare QEvtPublished by whoever needs the C5 running without its link, AO_Audio for the amplifier.
C5_RUNNING_SIGpublishbare QEvtThe C5 has been out of reset for KODE_C5_BOOT_MS: its own boot is over.
BLE_APP_WRITE_SIGpublishBleAppWriteEvtA central wrote to the app's own service: a copy of the bytes. Heard by an Active Object that called kode_sys_ble_subscribe().
BLE_APP_LINK_SIGpublishBleAppLinkEvtA central connected or left, one edge each.
BLE_APP_TAKEN_SIGpublishBleAppTakenEvtA read took the oldest value of a queued characteristic; the event says how many are left.
EXP_POWER_SIGpublishExpPowerDoneEvtA switch of J3's +3.3V_EXT is over. rc is KODE_OK when the rail is as asked, KODE_IO_ERROR when the C5 would not drive the pin (the wish is dropped), KODE_DENIED when the link would not come up or went with the switch (the wish stays for the next link-up).
C5_AMP_OFF_SIGpublishbare QEvtFrom radio_amp_request(false): the amplifier is not wanted. AO_Radio drives the C5's IO4 low over the link, now or at the next link-up.

AO_Radio: posted signals

Posted signals go to one Active Object: requests, replies to the asker, and the private signals and timers.

SignalRangeEventWhat it does
RADIO_UP_REQ_SIGpostbare QEvtBring the C5 link up. The outcome is the next RADIO_STATE_SIG.
RADIO_DOWN_REQ_SIGpostbare QEvtTear the link down; the C5 keeps running.
RADIO_STATE_REQ_SIGpostbare QEvtPublish RADIO_STATE_SIG again.
RADIO_JOB_SIGpostKqpWorkerDoneEvtPrivate: a job came back from the radio worker.
RADIO_LINK_LOST_SIGpostRadioLostEvtPrivate: the link to the C5 is gone, from the driver's notification.
RADIO_SVC_JOB_SIGpostKqpWorkerDoneEvtPrivate: a KODE request came back from the service worker.
KODE_SVC_RSP_SIGpostKodeSvcEvtPrivate: a KODE service on the C5 answered.
ID_SIGN_REQ_SIGpostIdSignReqEvtSign the cloud's challenge with the unit's key on the C5.
ID_SIGN_RSP_SIGpostIdSignRspEvtTo the asker: the signature, or why not.
ID_REQ_SIGpostIdReqEvtOne identity operation that is not a signature.
ID_PART_SIGpostIdPartEvtTo the asker: one piece of DER, in order.
ID_END_SIGpostIdEndEvtTo the asker: the operation is over.
C5_WIPE_REQ_SIGpostC5WipeReqEvtForget the user's secrets: the C5's vault and BLE keys, then the bond store.
C5_WIPE_RSP_SIGpostC5WipeRspEvtTo the asker: how far the wipe got.
RADIO_SCAN_MORE_SIGpostbare QEvtPrivate: a scan finished a channel and the driver's table grew.
RADIO_TEST_REQ_SIGpostbare QEvtRun test component=c5; brings the link up if it is down.
RADIO_TEST_STEP_SIGpostbare QEvtPrivate: the link is up, take the row's next step.
RADIO_FIELD_REQ_SIGpostRadioFieldReqEvtRead, write or dump one field of the coprocessor.
RADIO_FIELD_RSP_SIGpostRadioFieldEvtTo the requester: the field.
RADIO_RECV_REQ_SIGpostAppRecvReqEvtA C5 image is about to arrive on the console.
RADIO_UNUSED_SIGpostbare QEvtTo itself: its settle found nothing left that uses the link.
RADIO_INSTALL_GO_SIGpostbare QEvtPrivate: the staged image is verified and the link is up, start the push.
RADIO_PARK_REQ_SIGpostRadioParkEvtPrivate, from radio_park_request(): a jump is about to restart the board, park the C5.
RADIO_SLEEP_NOTE_SIGpostRadioSleepNoteEvtWith CONFIG_KODE_LOWPOWER, private: the sleep sentinel reports a wake of the P4 that involved the C5 (kind, knocks, tx_sta, tx_serial, tx_hci).
RADIO_NET_LEFT_SIGpostRadioNetLeftEvtWith CONFIG_KODE_LOWPOWER, from radio_net_left(): AO_Net closed its sessions for an OFF round, so the link may go down.
WIFI_SCAN_REQ_SIGpostWifiScanReqEvtScan, with the request's gen. Entries follow on the bus, then WIFI_SCAN_END_SIG. It ends a Wi-Fi scan somebody asked for that is in flight (sdk/kaos/radio).
WIFI_JOIN_REQ_SIGpostWifiJoinEvtJoin a network and remember it if it works.
WIFI_LEAVE_REQ_SIGpostbare QEvtLeave the network. The credentials stay remembered, and nothing rejoins until someone asks.
WIFI_STATE_REQ_SIGpostbare QEvtPublish WIFI_STATE_SIG now.
WIFI_RSSI_REQ_SIGpostbare QEvtRefresh the association's signal strength; the answer is the next WIFI_STATE_SIG.
WIFI_FAST_REQ_SIGpostWifiFastEvtNo power save on the station (on), or the default back.
EXP_POWER_REQ_SIGpostExpPowerEvtSwitch J3's +3.3V_EXT on or off, from kode_sys_exp_power().
WIFI_AUTO_REQ_SIGpostbare QEvtScan and join the best remembered network in range.
WIFI_LIST_REQ_SIGpostbare QEvtPublish the remembered networks, names only.
WIFI_FORGET_REQ_SIGpostWifiJoinEvtRemove a network from the store; the password field stays empty.
WIFI_START_REQ_SIGpostbare QEvtEnable the Wi-Fi service: set the stored flag, bring the link up, autojoin.
WIFI_STOP_REQ_SIGpostbare QEvtDisable it: stop the station and clear the flag. The link stays up.
BLE_START_REQ_SIGpostbare QEvtBring the BLE stack up. Being up is being on the air.
BLE_SCAN_REQ_SIGpostBleScanReqEvtListen for advertisers for the time given.
BLE_STOP_REQ_SIGpostbare QEvtTake the BLE stack down.
BLE_STATE_REQ_SIGpostbare QEvtPublish BLE_STATE_SIG now.
BLE_LINK_SIGpostbare QEvtFrom the driver's callback: a central arrived or left.
BLE_PAIR_TAKE_SIGpostbare QEvtTo itself, from the driver's callback: collect the pairing record and publish it.
BLE_PAIR_REJECT_REQ_SIGpostbare QEvtRefuse the pairing in flight. The refusal is said at once in every state, and the hang-up on the peer is a job of the radio worker.
BLE_UNPAIR_REQ_SIGpostbare QEvtForget every bonded peer.
RADIO_JOB_GUARD_SIG, KODE_SVC_TMO_SIG, C5_BOOT_SIG, EXP_PULSE_SIG, RADIO_RECV_IDLE_SIG, RADIO_UNMOUNT_RETRY_SIGpostQTimeEvtPrivate timers, in order: the radio worker's job never came back; a KODE request's answer did not come (one timer per service); the C5 it let go has had its boot time; the C5 reset that switches the header's supply on has lasted; no chunk for KODE_RECV_IDLE_MS; the card still answered an unmount as mounted, ask again.
BLE_APP_VALUE_REQ_SIGpostBleAppValueReqEvtSet or notify a value of the app's own service, or push or clear a queued characteristic's values.
BLE_RSP_REQ_SIGpostBleRspReqEvtThe name and the maker data the scan response carries from now on. Never stored.
BLE_PAIR_OPEN_REQ_SIGpostbare QEvtShow the board for five minutes, so a new device can pair. Answered by BLE_STATE_SIG.
BLE_SCAN_RSP_SIGpostScanRspEvtAnswers kode_sys_ble_scan(), to the asking AO. rc is KODE_CANCELLED when a newer Bluetooth request took its place. rest is true when rc is KODE_DENIED because an app rests the radio.
WIFI_SCAN_RSP_SIGpostScanRspEvtAnswers kode_sys_wifi_scan(), to the asking AO. rc is KODE_CANCELLED when a newer Wi-Fi request took its place. rest is true when rc is KODE_DENIED because an app rests the radio.
RADIO_SCAN_ASK_SIGpostScanAskEvtA scan asked by an Active Object or a blocked task: the sweep that WIFI_SCAN_REQ_SIG runs or the listen that BLE_SCAN_REQ_SIG runs, as kind says. An Active Object's entries are posted to it, never published, then its end; a task's rows are written into its waiter.
WIFI_SCAN_STOP_REQ_SIGpostbare QEvtEnd the listing in flight after its step on the air, from wifi_scan_stop_request(). The listing's WIFI_SCAN_END_SIG says it was cut.
WIFI_FRAMES_REQ_SIGpostWifiFramesReqEvtStart or stop telling an Active Object about the Wi-Fi frames the C5 hears, from wifi_frames_request(). Answered to the asker in every state with WIFI_FRAMES_STATE_SIG.
WIFI_FRAMES_STATE_SIGpostWifiFramesStateEvtTo the asker: listening or not, and why. Posted, never published.
WIFI_FRAMES_TICK_SIGpostWifiFramesTickEvtTo the asker: one period's counts, before the frames of its batch. Posted, never published.
WIFI_FRAME_SIGpostWifiFrameEvtTo the asker: one frame heard. Posted, never published.
BLE_HEARD_REQ_SIGpostBleHeardReqEvtStart or stop telling who about the BLE advertisements the stack hears, from ble_heard_request(). Answered to the asker in every state, always, with BLE_HEARD_STATE_SIG.
BLE_HEARD_STATE_SIGpostBleHeardStateEvtTo the asker: listening or not (on), why, and the totals heard and dropped. Posted, never published.
BLE_HEARD_SIGpostBleHeardEvtTo the asker: one advertisement heard, with its address, type, level, kind of packet and payload. Posted, never published.
BLE_HID_REPORT_REQ_SIGpostBleHidReportEvtQueue one input report of the HID service for its host, from ble_hid_report_post(). With no report it is a knock, a static event, that wakes the drain for a report of zeroes owed (sdk/kaos/ble-hid).
RADIO_HEARD_KNOCK_SIGpostbare QEvtPrivate, a static event from NimBLE's host task, owed when the queue has no room: the ring of heard advertisements holds records, or the stack ended the stream's scan.
RADIO_PROBE_REQ_SIGpostRadioProbeReqEvtThe radio check, from radio_probe_request(): the C5's card, a Wi-Fi network on a channel or a sweep for it, a BLE name. Answered exactly once with RADIO_PROBE_SIG.
RADIO_PROBE_SIGpostRadioProbeEvtThe radio check's answer, posted to the asking Active Object.
WIFI_LOST_SIGpostbare QEvtPrivate: the network in use went away by itself. The driver's state is the news.
WIFI_RETRY_SIGpostQTimeEvtPrivate timer: the wait before the next try at getting back on a network is over.
RADIO_RELINK_SIGpostQTimeEvtPrivate timer: the wait before the next bring-up of a link that was lost is over, or the board woke and one is owed.
RADIO_EXP_OWED_SIGpostbare QEvtPrivate: J3's supply waits on a rail the link-up did not switch. Only Radio_up applies it.
RADIO_SCAN_OWED_SIGpostbare QEvtPrivate: an asked scan waits for the link to be ready. Posted at the end of the reconcile chain.
RADIO_FRAMES_KNOCK_SIGpostbare QEvtPrivate, a static event posted with a margin from esp-hosted's thread: a batch of frames waits in the driver's ring.

AO_Net

Published signals: every Active Object that subscribed hears them.

SignalRangeEventWhat it does
NET_PING_ENTRY_SIGpublishNetPingEntryEvtOne ICMP echo's outcome, a timeout included.
NET_PING_END_SIGpublishNetPingEndEvtThe session's summary, or the refusal when there was no session.
NET_HTTP_DATA_SIGpublishNetHttpDataEvtA slice of a response body.
NET_HTTP_DONE_SIGpublishNetHttpDoneEvtStatus, lengths, and whether the body was cut.
NET_UDP_DONE_SIGpublishNetUdpDoneEvtThe datagram is away, or is not.
NET_INFO_SIGpublishNetInfoEvtThis board's addresses and the MQTT client's state.
MQTT_STATE_SIGpublishMqttStateEvtWhere the MQTT client is. Published on every change and on request.
MQTT_MSG_SIGpublishMqttMsgEvtA message the broker sent. The only published event whose rate a stranger sets.
CHANNEL_STATE_SIGpublishChannelStateEvtWhere the Kode channel stands. Published on every change and on request.

AO_Net: posted signals

Posted signals go to one Active Object: requests, replies to the asker, and the private signals and timers.

SignalRangeEventWhat it does
NET_PING_REQ_SIGpostNetPingReqEvtPing a host. Entries follow on the bus, then NET_PING_END_SIG.
NET_HTTP_REQ_SIGpostNetHttpReqEvtGET a URL. Body slices follow, then NET_HTTP_DONE_SIG.
NET_UDP_REQ_SIGpostNetUdpReqEvtSend a datagram.
NET_INFO_REQ_SIGpostbare QEvtPublish NET_INFO_SIG.
NET_STREAM_OPEN_REQ_SIGpostNetStreamOpenEvtOpen a download.
NET_STREAM_OPEN_FROM_SIGpostNetStreamFromEvtOpen url from offset on, for a download that goes on where it stopped. Answered with NET_STREAM_FROM_RSP_SIG, then read and closed as the transfer of NET_STREAM_OPEN_REQ_SIG.
NET_STREAM_FROM_RSP_SIGpostNetStreamFromRspEvtTo the opener: the size left, the HTTP code and the status.
NET_STREAM_READ_REQ_SIGpostbare QEvtFill a free buffer and send it.
NET_STREAM_NEXT_SIGpostStorageBufEvtA borrowed buffer handed back.
NET_STREAM_CLOSE_REQ_SIGpostbare QEvtClose the open transfer.
NET_STREAM_OPEN_RSP_SIGpostStorageOpenRspEvtTo the opener: the download is open or refused.
NET_STREAM_DATA_SIGpostStorageDataEvtTo the reader: one buffer of the download. The same conversation AO_Storage has, over a URL.
NET_TEST_REQ_SIGpostbare QEvtRun test component=net.
NET_JOB_SIGpostKqpWorkerDoneEvtPrivate: a job came back from the worker.
NET_STREAM_JOB_SIGpostKqpWorkerDoneEvtPrivate: a job came back from the download's worker.
MQTT_UP_REQ_SIGpostMqttUpEvtConnect to a broker by URI.
MQTT_DOWN_REQ_SIGpostbare QEvtStop the client.
MQTT_PUB_REQ_SIGpostMqttPubEvtPublish a message.
MQTT_SUB_REQ_SIGpostMqttTopicEvtSubscribe to a topic.
MQTT_UNSUB_REQ_SIGpostMqttTopicEvtUnsubscribe from a topic.
MQTT_STATE_REQ_SIGpostbare QEvtPublish MQTT_STATE_SIG now.
NET_MQTT_LINK_SIGpostNetMqttLinkEvtPrivate: the client connected, dropped or errored, moved off esp-mqtt's task.
NET_MQTT_RX_SIGpoststatic QEvtPrivate, from esp-mqtt's task: the driver's receive ring holds messages. AO_Net takes them from the ring and republishes each as MQTT_MSG_SIG from its own thread.
NET_LINE_DONE_SIGpostNetLineDoneEvtFrom net_line_done(): the console answered the line AO_Net gave it from cmd/in, so the next may go. Carries the sequence of the line it ends.
NET_LINE_BUSY_SIGpoststatic QEvtFrom net_line_busy(): the console was busy and did not take the line; AO_Net offers it again shortly.
CHANNEL_STATE_REQ_SIGpostbare QEvtPublish CHANNEL_STATE_SIG now.
NET_CHAN_OUT_SIGpostbare QEvtPrivate: reply lines wait in the channel's ring. Posted by AO_Log.
NET_LEAVE_REQ_SIGpostbare QEvtPrivate, from net_leave_request(): leave the Kode channel cleanly and start no new one.
NET_CHECK_AT_SIGpostNetCheckAtEvtFrom net_check_at(): the next time the scheduler's mqtt entry falls due, in Unix seconds, or -1 for none.
NET_SHOT_REQ_SIGpostNetShotReqEvtFrom net_shot_request(): upload the glass to the channel's shots link.
NET_SHOT_RSP_SIGpostNetShotRspEvtTo the requester: how the upload ended.
NET_SHOT_STOP_SIGpostNetShotStopEvtFrom net_shot_stop_request(): end the running stream of uploads.
NET_DUMP_REQ_SIGpostNetDumpReqEvtFrom net_dump_request(): send the core dump of a KodeOS fault to the channel's dumps link. With KODEOS_DUMP_HTTP.
NET_DUMP_RSP_SIGpostNetDumpRspEvtTo the requester: how the fault report ended. With KODEOS_DUMP_HTTP.
NET_TMO_SIG, NET_JOB_GUARD_SIG, NET_STREAM_GUARD_SIG, NET_CHAN_TMO_SIG, NET_CHAN_FAST_SIG, NET_JOB_FAST_SIG, NET_FAST_RETRY_SIG, NET_CHAN_WATCH_SIG, NET_SHOT_TICK_SIG, NET_SHOT_WAIT_SIG, NET_CHECK_TMO_SIG, NET_CHAN_LINE_SIGpostQTimeEvtPrivate timers, in order: the broker never answered the connect; the worker's job never came back; the download's job never came back; the channel's one timer (back-off, renewal); no cmd/in line for CHAN_FAST_HOLD_MS, the channel's hold of the fast mode ends; no job with either worker for NET_FAST_JOB_HOLD_MS, the jobs' hold ends; a fast-mode wish AO_Radio had no room for is asked again; the channel's client check; the pace of a stream of uploads; the display did not answer a shot; the dwell of a dark wake for the mqtt check ran out; the console has had KODE_CHAN_LINE_BOUND_MS for the line it holds, or the post of the next line was refused and is tried again.
NET_HOST_ASK_SIGpostNetHostAskEvtAn asking Active Object's lookup or ping of a host.
NET_HTTP_ASK_SIGpostNetHttpAskEvtAn asking Active Object's GET or POST, its buffers lent.
NET_UDP_ASK_SIGpostNetUdpAskEvtAn asking Active Object's datagram, lent.
NET_LOOKUP_RSP_SIGpostNetHostRspEvtAnswers kode_sys_net_lookup(), to the asking AO.
NET_PING_RSP_SIGpostNetHostRspEvtAnswers kode_sys_net_ping(), to the asking AO.
NET_HTTP_RSP_SIGpostNetHttpRspEvtAnswers kode_sys_http_get() and kode_sys_http_post(), to the asking AO.
NET_UDP_RSP_SIGpostNetUdpDoneEvtAnswers kode_sys_udp_send(), to the asking AO.

AO_Log

Every signal AO_Log owns.

SignalRangeEventWhat it does
LOG_LINE_SIGpostLogEvtPut one log line on the console.
CONSOLE_BYTE_SIGpostConsoleByteEvtA byte arrived.
CONSOLE_RAW_REQ_SIGpostConsoleRawReqEvtSwitch the input stream to raw and deliver it to who.
CONSOLE_RAW_RSP_SIGpostConsoleRawRspEvtTo the requester: whether raw mode is armed.
CONSOLE_RAW_END_SIGpostbare QEvtAbandon raw mode: the transfer died before its last byte.
LOG_LEVEL_SET_SIGpostLogLevelEvtApply a log level, and store it when it is the global default.
LOG_DOCK_REQ_SIGpostLogDockReqEvtLend the dock console's pins, or take them back, from log_dock_lend_request(). Answered once with LOG_DOCK_SIG.
LOG_DOCK_SIGpostLogDockEvtTo the asker: the dock's pins are lent or back.
LOG_FLUSH_REQ_SIGpostbare QEvtAnswer AO_Boot with boot_log_flushed(), from log_flush_request(). Its place in the queue is the point: every line posted before it is on its ports first.
LOG_BOUNCE_REQ_SIGpostbare QEvtA cable came while the USB-C port was off the bus. Show the port to the computer again unless frames come, from log_bounce_request(). A static event.
LOG_BOUNCE_TMO_SIGpostQTimeEvtPrivate one-shot: the wait for a frame, or the pad's time off the bus, ran out.
CONSOLE_SENT_SIGpublishConsoleSentEvtAO_Log for the BLE console, or AO_Net for the Kode channel: a line written with kode_log_reply_confirm() left the board on that port (ok), or could not. It answers the last such line sent on port src and every line before it, so two confirmed lines close together may get one.

AO_Console

Every signal AO_Console owns.

SignalRangeEventWhat it does
CONSOLE_LINE_SIGpublishConsoleLineEvtA finished command line (src, line[240]). AO_Log publishes it; AO_Net posts the Kode channel's with a margin.
CONFIG_REQ_SIGpublishKodeConfigReqEvtRead or set one setting. The owner answers with kode_config_answer().
CONFIG_ANS_SIGpublishKodeConfigAnsEvtA setting's owner: its value, or why it refused.
FUNCTION_ANS_SIGpostFunctionAnsEvtPosted by the owner of a function that answers: one record of the answer.
CONSOLE_TIMEOUT_SIG, CONSOLE_SLICE_SIG, CONSOLE_WATCH_SIG, KCLI_INJ_TMO_SIGpostQTimeEvtPrivate timers, in order: the command in flight never got its closing answer; emit the next slice of a listing; a followed variable's period ran out; an injected gesture has a sample due.

The standard layer

Private signals of the standard layer's own Active Object, which runs the event listeners, the pins' interrupts and the screen's render pass. Nothing outside kode_standard_ao.c sends them.

SignalRangeEventWhat it does
KODE_PIN_LISTEN_SIGpostprivate structA pin is listened to from now on, at this level. A direct post.
KODE_PIN_EDGE_SIGpostprivate static eventA listened J3 pin moved. Posted from the pin's interrupt through kqp_post_from_isr(), one static event per pin.
KODE_PIN_SETTLE_SIGpostQTimeEvtPrivate one-shot timer, one per pin: the pin's edge has had KODE_PIN_SETTLE_MS, so read its level.
KODE_TOUCH_LISTEN_SIGpostbare QEvtSubscribe to the finger and turn it into events. A direct post.
KODE_SCREEN_ATTACH_SIGpostbare QEvtTake the screen's table of functions. A direct post.
KODE_SCREEN_REQ_SIGpostKodeScreenReqEvtChange the screen. A direct post.
KODE_SCREEN_TICK_SIGpostQTimeEvtPrivate one-shot timer: the screen's render pass.

AO_TestDot

Every signal AO_TestDot owns. It is the factory's final test, built only with CONFIG_KODE_TEST_DOT (sdk/kode).

SignalRangeEventWhat it does
TEST_DOT_REQ_SIGpostTestDotReqEvtA station verb from the console. Answered with TEST_DOT_REC_SIG records and one TEST_DOT_ANS_SIG, posted to the asker.
TEST_DOT_REC_SIGpostTestDotRecEvtTo the asker: one record of a station verb.
TEST_DOT_ANS_SIGpostTestDotAnsEvtTo the asker: a station verb's end.
TEST_DOT_LEND_SIGpostTestDotLendEvtTo the asker: a blob lent for the wire. The asker sends it and gives it back with test_dot_blob_back().
TEST_DOT_BACK_SIGpostbare QEvtThe lent blob is sent and no longer read. A static event.
TEST_DOT_JOB_SIGpostKqpWorkerDoneEvtIts worker's job returned.
TEST_DOT_SCREEN_REQ_SIGpublishTestDotScreenEvtA screen or a pattern for the glass. The firmware's LVGL owner builds it and answers test_dot_screen_done() once it is on the panel.
TEST_DOT_SCREEN_DONE_SIGpostTestDotScreenDoneEvtThe screen host has the screen or the pattern on the panel, from test_dot_screen_done().
TEST_DOT_DRAIN_SIG, TEST_DOT_REST_SIG, TEST_DOT_TMO_SIG, TEST_DOT_WATCH_SIGpostQTimeEvtPrivate one-shot timers, in order: post the records the console's queue refused; the rest before the photos, or the operator's screen settling; the wait in hand ran out; the run's watchdog.

AO_Gui

Every signal AO_Gui owns.

SignalRangeEventWhat it does
GUI_STATE_SIGpublishGuiStateEvtWhat state the interface is in. AO_Gui lives in kgui, above the SDK.
GUI_DUMP_REQ_SIGpublishbare QEvtSay what state the interface is in. The one request in the published range, so kaos need not name a symbol of kgui.

In the SDK