DVBCore  20.3.0
DVBCore Documentation
Classes | Macros | Functions
stberc.c File Reference

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.

Classes

struct  ER_STATUS
 
struct  ER_LATCHED
 

Macros

#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 */
 

Functions

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...
 

Detailed Description

Event reporting control functions.

Date
15/02/2001

Definition in file stberc.c.

Function Documentation

◆ STB_ERNotifyEvent()

void STB_ERNotifyEvent ( U8BIT  event_class,
U16BIT  event_type 
)

Called by app to notify consumption of latched event.

Parameters
U8BITclass - event class
U16BITtype - 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
callbackfunction pointer

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
BOOLEANlatched - TRUE if event is to be latched
BOOLEANrepeat - TRUE for handset repeat codes
U8BITclass - event class
U16BITtype - 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
timeouttime in seconds after which an event will be sent

Definition at line 638 of file stberc.c.