MCURTC:PublishNotifications: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
Dazzozo (talk | contribs)
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x004E0040] |- | 1 | Notification bitmask |} =Response= {| class="wikitable" b..."
 
MarcusD (talk | contribs)
Made page more accurate
 
Line 9: Line 9:
|-
|-
| 1
| 1
| Notification bitmask
| [[I2C_Registers#Device_3|Interrupt bitmask]]
|}
|}


Line 26: Line 26:


=Description=
=Description=
This publishes MCU notifications based on the bitmask provided. Depending on the notification ID, mcu-module can publish "srv" notifications (using [[SRV:PublishToSubscriber|PublishToSubscriber]]) or use its own internal event system for mcu::GPU, mcu::HID and mcu::RTC clients.
This triggers a software MCU interrupt in the mcu sysmodule. Depending on the bitmask, the mcu sysmodule can publish srv notifications (using [[SRV:PublishToSubscriber|PublishToSubscriber]]).


If value 0xFFFFFFFF (-1) is passed, mcu-module will instead ask the i2c MCU device for notifications.
If value 0xFFFFFFFF (-1) is passed, mcu sysmodule will instead read the [[I2C_Registers#Device_3|MCU interrupt field]].

Latest revision as of 08:46, 9 October 2017

Request

Index Word Description
0 Header code [0x004E0040]
1 Interrupt bitmask

Response

Index Word Description
0 Header code
1 Result code

Description

This triggers a software MCU interrupt in the mcu sysmodule. Depending on the bitmask, the mcu sysmodule can publish srv notifications (using PublishToSubscriber).

If value 0xFFFFFFFF (-1) is passed, mcu sysmodule will instead read the MCU interrupt field.