Event reporting control functions.
More...
#include <stdio.h>
#include <techtype.h>
#include <dbgfuncs.h>
#include "stberc.h"
#include "stbpvr.h"
#include "stbdpc.h"
#include "stbhwos.h"
Go to the source code of this file.
|
#define | EVENT_LATCHED_MAX 10 |
|
#define | INTERACTION_STACK_SIZE 1024 |
|
#define | INTERACTION_TASK_PRIORITY 8 /* Not a critical task so can have a low priority */ |
|
|
void | STB_ERInitialise (void) |
| Initialises STB layer Event Reporting control.
|
|
void | STB_ERRegisterHandler (BOOLEAN(*func)(BOOLEAN latched, BOOLEAN repeat, U16BIT class, U16BIT type, void *data, U32BIT data_size)) |
| Called by app to register callback function for events. More...
|
|
void | STB_ERNotifyEvent (U8BIT event_class, U16BIT event_type) |
| Called by app to notify consumption of latched event. More...
|
|
void | STB_ERSendEvent (BOOLEAN latched, BOOLEAN repeat, U16BIT path_class, U16BIT type, void *data, U32BIT data_size) |
| Sends an event to event reporting control module. More...
|
|
void | STB_ERSetUserInteractionTimeout (U32BIT timeout) |
| Sets the time, in seconds, after which the STB_EVENT_USER_INTERACTION_TIMEOUT event will be sent to indicate that there hasn't been any user interaction for the set period of time. More...
|
|
Event reporting control functions.
- Date
- 15/02/2001
Definition in file stberc.c.
◆ STB_ERNotifyEvent()
void STB_ERNotifyEvent |
( |
U8BIT |
event_class, |
|
|
U16BIT |
event_type |
|
) |
| |
Called by app to notify consumption of latched event.
- Parameters
-
U8BIT | class - event class |
U16BIT | type - event type |
Definition at line 532 of file stberc.c.
◆ STB_ERRegisterHandler()
void STB_ERRegisterHandler |
( |
BOOLEAN(*)(BOOLEAN latched, BOOLEAN repeat, U16BIT class, U16BIT type, void *data, U32BIT data_size) |
func | ) |
|
Called by app to register callback function for events.
- Parameters
-
Definition at line 510 of file stberc.c.
◆ STB_ERSendEvent()
void STB_ERSendEvent |
( |
BOOLEAN |
latched, |
|
|
BOOLEAN |
repeat, |
|
|
U16BIT |
path_class, |
|
|
U16BIT |
type, |
|
|
void * |
data, |
|
|
U32BIT |
data_size |
|
) |
| |
Sends an event to event reporting control module.
- Parameters
-
BOOLEAN | latched - TRUE if event is to be latched |
BOOLEAN | repeat - TRUE for handset repeat codes |
U8BIT | class - event class |
U16BIT | type - event type |
Definition at line 571 of file stberc.c.
◆ STB_ERSetUserInteractionTimeout()
void STB_ERSetUserInteractionTimeout |
( |
U32BIT |
timeout | ) |
|
Sets the time, in seconds, after which the STB_EVENT_USER_INTERACTION_TIMEOUT event will be sent to indicate that there hasn't been any user interaction for the set period of time.
- Parameters
-
timeout | time in seconds after which an event will be sent |
Definition at line 638 of file stberc.c.