DVBCore  17.9.0
Open Source DVB Engine
 All Data Structures Files Functions Typedefs Macros Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
ap_tmr.h File Reference

Application timer functions and defines. More...

#include "techtype.h"
#include "stbgc.h"

Go to the source code of this file.

Data Structures

struct  S_ALARM_INFO
 
struct  S_PVR_RECORD_INFO
 
struct  s_timer
 
struct  s_avrec_settings
 

Macros

#define INVALID_TIMER_HANDLE   0
 
#define TMR_MAX_NAME_LENGTH   128
 
#define TMR_PVR_CRID_LEN_MAX   65
 
#define TMR_PVR_ADDINFO_LEN_MAX   255
 
#define EVENT_DURATION_OVERRUN_TIME   2
 

Typedefs

typedef struct s_timer S_TIMER_INFO
 
typedef struct s_avrec_settings S_AVREC_SETTINGS
 

Enumerations

enum  E_TIMER_TYPE {
  TIMER_TYPE_NONE = 0x00, TIMER_TYPE_ALARM = 0x01, TIMER_TYPE_SLEEP = 0x02, TIMER_TYPE_PVR_RECORD = 0x04,
  TIMER_TYPE_PRIVATE = 0x08, TIMER_TYPE_ALL = 0xff
}
 
enum  E_TIMER_FREQ {
  TIMER_FREQ_ONCE, TIMER_FREQ_WEEKLY, TIMER_FREQ_WEEKENDDAYS, TIMER_FREQ_WEEKDAYS,
  TIMER_FREQ_DAILY, TIMER_FREQ_HOURLY
}
 

Functions

void ATMR_Initialise (void)
 Performs initialisation of the timers, reading existing entries from the database. More...
 
U32BIT ATMR_AddTimer (S_TIMER_INFO *info)
 Creates a new timer based on the information supplied. More...
 
U32BIT ATMR_AddTimerForEvent (void *event_ptr, void *serv_ptr, BOOLEAN record, BOOLEAN event_triggered)
 Creates a timer based on the given event. If a recording timer is created, it will be set to record on the default disk, which can be changed afterwards using ATMR_SetDiskId. More...
 
BOOLEAN ATMR_UpdateTimerDuration (U32BIT handle, U32DHMS duration)
 Updates the duration for an existing PVR recording timer. More...
 
BOOLEAN ATMR_UpdateTimer (U32BIT handle, S_TIMER_INFO *info)
 Updates all the timer fields. More...
 
BOOLEAN ATMR_DeleteTimer (U32BIT handle)
 Deletes the timer with the given handle. More...
 
BOOLEAN ATMR_GetTimerList (U32BIT **timer_list, U16BIT *list_size, E_TIMER_TYPE list_type, BOOLEAN date_time_order)
 Returns a list of all the timer handles and the number of items in the list. More...
 
void ATMR_ReleaseTimerList (U32BIT *timer_list, U16BIT list_size)
 Release the given array of timer handles. More...
 
BOOLEAN ATMR_InitialiseTimer (S_TIMER_INFO *timer_info, E_TIMER_TYPE timer_type, void *serv_ptr, void *event_ptr)
 Sets up the given timer info structure with default values for the given timer type using the service and event depending on timer type. More...
 
BOOLEAN ATMR_GetTimerInfo (U32BIT handle, S_TIMER_INFO *timer_info)
 Copies timer data for the given timer info the info structure provided. More...
 
BOOLEAN ATMR_StartRecord (U8BIT path)
 Finds the timer using the given decode path and if it's a recording timer the recording will be started. More...
 
void ATMR_RecordingFailed (U8BIT path)
 Handles the timer when a recording fails to start for some reason. This may result in the timer being deleted. More...
 
void * ATMR_GetRecordService (U8BIT path)
 Returns the service for the recording timer on the given path. More...
 
U8BIT * ATMR_GetName (U32BIT handle)
 Get the name of the timer with the given handle. More...
 
void ATMR_SetName (U32BIT handle, U8BIT *name)
 Sets the name of the timer with the given handle. More...
 
U32DHMS ATMR_GetStartDateTime (U32BIT handle)
 Get the start date & time of the timer with the given handle. The date/time returned will be in UTC. More...
 
U32DHMS ATMR_GetDuration (U32BIT handle)
 Returns the duration of the timert with the given handle. More...
 
U32DHMS ATMR_GetEndDateTime (U32BIT handle)
 Get the end date & time of the timer with the given handle. The date/time returned will be in UTC. More...
 
E_TIMER_TYPE ATMR_GetType (U32BIT handle)
 Returns the type of the given timer. More...
 
E_TIMER_FREQ ATMR_GetFrequency (U32BIT handle)
 Returns the frequency setting for the given timer. More...
 
BOOLEAN ATMR_GetChangeService (U32BIT handle)
 Returns the change service setting for an alarm timer. More...
 
BOOLEAN ATMR_GetRampVolume (U32BIT handle)
 Returns the ramp volume setting for an alarm timer. More...
 
U16BIT ATMR_GetEventId (U32BIT handle)
 Returns the event ID for a PVR recording timer. More...
 
U16BIT ATMR_GetServiceId (U32BIT handle)
 Returns the service ID for an alarm or PVR recording timer. More...
 
U16BIT ATMR_GetTransportId (U32BIT handle)
 Returns the transport ID for an alarm or PVR recording timer. More...
 
U16BIT ATMR_GetOriginalNetworkId (U32BIT handle)
 Returns the original network ID for an alarm or PVR recording timer. More...
 
BOOLEAN ATMR_GetMissed (U32BIT handle)
 Gets the timer's missed flag. More...
 
U8BIT * ATMR_GetProgrammeCrid (U32BIT handle)
 Returns a pointer to the programme CRID string from a recording timer. The returned value shouldn't be changed or freed. More...
 
BOOLEAN ATMR_HasSeriesCrid (U32BIT handle)
 Does the timer have a series crid? More...
 
BOOLEAN ATMR_HasRecommendationCrid (U32BIT handle)
 Does the timer have a recommendation crid? More...
 
U16BIT ATMR_GetDiskId (U32BIT handle)
 Returns the disk id for the given timer if the timer is a PVR recording timer. More...
 
void ATMR_SetDiskId (U32BIT handle, U16BIT disk_id)
 Set the disk for the given timer if the timer is a recording timer. More...
 
U32BIT ATMR_GetRecordingHandle (U32BIT handle)
 Returns the recording handle associated with a PVR recording timer. More...
 
void ATMR_HandleTimerEvent (U32BIT timer_handle)
 Used by the DVB stack to handle an event for the given timer. If the timer requires the app to deal with it, such as for sleep or alarm timers, then another event will be sent to the app with an S_TIMER_INFO structure as the event data containing the timer's details to allow the app deal with it. The timer itself will have been updated or deleted. More...
 
BOOLEAN ATMR_CheckRecordStatus (BOOLEAN recordings_can_start)
 Checks all timers to see whether any recordings should be started or stopped as a result of the now event being changed. More...
 
void ATMR_EitUpdated (void)
 Checks each recording timer that's linked to an event to see whether the event is still in the schedule and whether the time has changed, and if it has changed then the timer is updated.
 
void ATMR_DeleteRecordingTimer (U32BIT recording_handle)
 Delete the PVR record timer with the given recording handle. More...
 
U8BIT ATMR_GetNumSimultaneousRecordings (U8BIT max_recordings, U32DHMS start_date_time, U32DHMS end_date_time, U32BIT **conflicting_timers)
 Counts the number of simultaneous recordings (EXT and PVR) between the given start and end dates/times. More...
 
void * ATMR_RecordEvent (void *serv_ptr, void *event_ptr, U8BIT *prog_crid, U8BIT *series_crid, BOOLEAN is_series, BOOLEAN check_alternatives)
 Adds a timer to perform a recording based on the given event and service. Conflicts are checked and a search is made for an alternative event if necessary. More...
 
BOOLEAN ATMR_RecordSplitEvent (void *serv_ptr, U8BIT *prog_crid, U32DHMS start_date_time, BOOLEAN radio_service, BOOLEAN search_forward)
 Searches for events within 3 hours of the given start date/time for an event with the given programme CRID and creates a timer to record any found. The search is performed forward or backward from the given start date/time as defined by the search direction argument. More...
 
U32BIT ATMR_GetFirstWakeupTime (U32DHMS *rec_date_time, U16BIT *onet_id, U16BIT *trans_id, U16BIT *service_id)
 Searches the timers for the first timer that will cause the DVB to wakeup that hasn't been missed. This will be an alarm or PVR recording timer. More...
 
U32BIT ATMR_FindTimerFromEvent (U16BIT onet_id, U16BIT trans_id, U16BIT serv_id, U16BIT event_id)
 Searches the timers for a recording timer with the given event and service IDs. More...
 
U32BIT ATMR_FindTimerFromCrid (U8BIT *prog_crid)
 Searches the timers for a recording timer with the given programme CRID. More...
 
U32BIT ATMR_FindTimerFromCridAndEvent (U8BIT *prog_crid, U16BIT service_id, U16BIT event_id)
 Searches the timers for a recording timer with the given programme CRID and event ID. More...
 
void ATMR_DeleteTimersForSeriesRecommendations (U8BIT *crid, BOOLEAN is_recommendation)
 Deletes any PVR record timers with the given series CRID. More...
 
void ATMR_SetAdditionalInfo (U32BIT handle, U8BIT *info, U32BIT size)
 Sets the additioinal information string for the specified timer and commits the change to the database. More...
 
U8BIT * ATMR_GetAdditionalInfo (U32BIT handle, U32BIT *size)
 Gets the additional information string associated with a timer. The name is allocated in UI temp memory. More...
 
S32BIT ATMR_GetStartPadding (U32BIT handle)
 Returns the value of start_padding associated with the specified timer The start padding is the number of seconds before (after, if negative) the actual timer start time the timer will be triggered. More...
 
BOOLEAN ATMR_SetStartPadding (U32BIT handle, S32BIT start_padding)
 Sets the value of start_padding associated with the specified timer The start padding is the number of seconds before (after, if negative) the actual timer start time the timer will be triggered. More...
 
S32BIT ATMR_GetEndPadding (U32BIT handle)
 Returns the value of end_padding associated with the specified timer The end padding is the number of seconds after (before, if negative) the actual timer end time the timer will expire. More...
 
BOOLEAN ATMR_SetEndPadding (U32BIT handle, S32BIT end_padding)
 Sets the value of end_padding associated with the specified timer The end padding is the number of seconds after (before, if negative) the actual timer end time the timer will expire. More...
 
void ATMR_DumpAllTimers (void)
 Prints details of all existing timers. More...
 

Detailed Description

Application timer functions and defines.

Date
27/5/2004
Author
Ocean Blue

Function Documentation

U32BIT ATMR_AddTimer ( S_TIMER_INFO info)

Creates a new timer based on the information supplied.

Parameters
infotimer info used to create the timer
Returns
timer handle, or INVALID_TIMER_HANDLE if creation fails
U32BIT ATMR_AddTimerForEvent ( void *  event_ptr,
void *  serv_ptr,
BOOLEAN  record,
BOOLEAN  event_triggered 
)

Creates a timer based on the given event. If a recording timer is created, it will be set to record on the default disk, which can be changed afterwards using ATMR_SetDiskId.

Parameters
event_ptr- pointer to the event to be recorded
serv_ptrservice the event is on
recordTRUE if a recording timer is to be created, FALSE for an alarm timer
event_triggeredTRUE if the timer should be triggered by the change of event rather than the time
Returns
timer handle, or INVALID_TIMER_HANDLE if the timer couldn't be created
BOOLEAN ATMR_CheckRecordStatus ( BOOLEAN  recordings_can_start)

Checks all timers to see whether any recordings should be started or stopped as a result of the now event being changed.

Parameters
recordings_can_startTRUE if the event should be checked to start a recording
Returns
TRUE if a record can be/has been started
void ATMR_DeleteRecordingTimer ( U32BIT  recording_handle)

Delete the PVR record timer with the given recording handle.

Parameters
recording_handlerecording handle used by the timer to be deleted
BOOLEAN ATMR_DeleteTimer ( U32BIT  handle)

Deletes the timer with the given handle.

Parameters
handlehandle of timer to be deleted
Returns
TRUE if the timer exists and is deleted, FALSE otherwise

Deletes the timer with the given handle.

Parameters
handlehandle of timer to be deleted
Returns
TRUE if timer exists and is deleted, FALSE otherwise
void ATMR_DeleteTimersForSeriesRecommendations ( U8BIT *  crid,
BOOLEAN  is_recommendation 
)

Deletes any PVR record timers with the given series CRID.

Parameters
cridthe series/recommendation CRID to be searched for
is_recommendationTRUE if the given crid is for a recommendation, FALSE otherwise
void ATMR_DumpAllTimers ( void  )

Prints details of all existing timers.


U32BIT ATMR_FindTimerFromCrid ( U8BIT *  prog_crid)

Searches the timers for a recording timer with the given programme CRID.

Parameters
prog_cridthe programme CRID to be searched for
Returns
handle of timer, or INVALID_TIMER_HANDLE if no timer is found
U32BIT ATMR_FindTimerFromCridAndEvent ( U8BIT *  prog_crid,
U16BIT  service_id,
U16BIT  event_id 
)

Searches the timers for a recording timer with the given programme CRID and event ID.

Parameters
prog_cridthe programme CRID to search for
service_idservice ID of the event
event_idID of the event
Returns
handle of timer, or INVALID_TIMER_HANDLE if no timer is found
U32BIT ATMR_FindTimerFromEvent ( U16BIT  onet_id,
U16BIT  trans_id,
U16BIT  serv_id,
U16BIT  event_id 
)

Searches the timers for a recording timer with the given event and service IDs.

Parameters
onet_idoriginal network ID or the service
trans_idtransport ID of the service
serv_idservice ID
event_idevent ID
Returns
handle of timer, or INVALID_TIMER_HANDLE if no timer is found
U8BIT* ATMR_GetAdditionalInfo ( U32BIT  handle,
U32BIT *  size 
)

Gets the additional information string associated with a timer. The name is allocated in UI temp memory.

Parameters
handleTimer handle
sizePointer to variable containing the number of bytes in the string
Returns
additional information string, or NULL
BOOLEAN ATMR_GetChangeService ( U32BIT  handle)

Returns the change service setting for an alarm timer.

Parameters
handletimer handle
Returns
value of change service setting, or FALSE if timer is invalid or isn't an alarm timer
U16BIT ATMR_GetDiskId ( U32BIT  handle)

Returns the disk id for the given timer if the timer is a PVR recording timer.

Parameters
handletimer handle
Returns
disk id if timer is valid and is a recording timer, INVALID_DISK_ID otherwise
U32DHMS ATMR_GetDuration ( U32BIT  handle)

Returns the duration of the timert with the given handle.

Parameters
handletimer handle
Returns
timer duration, or 0 if the timer handle isn't valid

Returns the duration of the timert with the given handle.

Parameters
handletimer handle
Returns
timer duration, or 0 if the timer handle isn't valid
U32DHMS ATMR_GetEndDateTime ( U32BIT  handle)

Get the end date & time of the timer with the given handle. The date/time returned will be in UTC.

Parameters
handletimer handle
Returns
UTC end date/time, or 0 if the timer handle isn't valid
S32BIT ATMR_GetEndPadding ( U32BIT  handle)

Returns the value of end_padding associated with the specified timer The end padding is the number of seconds after (before, if negative) the actual timer end time the timer will expire.

Parameters
handleTimer handle
Returns
start_padding
U16BIT ATMR_GetEventId ( U32BIT  handle)

Returns the event ID for a PVR recording timer.

Parameters
handletimer handle
Returns
event ID, or 0 if the timer isn't valid or isn't a recording timer
U32BIT ATMR_GetFirstWakeupTime ( U32DHMS *  date_time,
U16BIT *  onet_id,
U16BIT *  trans_id,
U16BIT *  service_id 
)

Searches the timers for the first timer that will cause the DVB to wakeup that hasn't been missed. This will be an alarm or PVR recording timer.

Parameters
rec_date_timepointer to return the date/time of the first timer found
onet_idreturns the original network ID of the service associated with the timer
trans_idreturns the transport ID of the service associated with the timer
service_idreturns the service ID of the service associated with the timer
Returns
timer handle, or INVALID_TIMER_HANDLE if no timer is found
Parameters
date_timepointer to return the date/time of the first timer found
onet_idreturns the original network ID of the service associated with the timer
trans_idreturns the transport ID of the service associated with the timer
service_idreturns the service ID of the service associated with the timer
Returns
timer handle, or INVALID_TIMER_HANDLE if no timer is found
E_TIMER_FREQ ATMR_GetFrequency ( U32BIT  handle)

Returns the frequency setting for the given timer.

Parameters
handletimer handle
Returns
frequency setting of the timer, or TIMER_FREQ_ONCE if handle isn't valid
BOOLEAN ATMR_GetMissed ( U32BIT  handle)

Gets the timer's missed flag.

Parameters
handletimer handle
Returns
TRUE if the timer is marked as missed, FALSE otherwise
U8BIT* ATMR_GetName ( U32BIT  handle)

Get the name of the timer with the given handle.

Parameters
handletimer handle
Returns
pointer to timer name, this value shouldn't be freed
U8BIT ATMR_GetNumSimultaneousRecordings ( U8BIT  max_recordings,
U32DHMS  start_date_time,
U32DHMS  end_date_time,
U32BIT **  conflicting_timers 
)

Counts the number of simultaneous recordings (EXT and PVR) between the given start and end dates/times.

Parameters
max_recordingsthe max recordings that can take place at the same time
start_date_timestart date and time of the period to be checked
end_date_timeend date and time of the period to be checked
conflicting_timerspointer to the list of conflicting timers, the list must to be freed by the caller. If NULL it's ignored.
Returns
Number of simultaneous recordings during the given period
U16BIT ATMR_GetOriginalNetworkId ( U32BIT  handle)

Returns the original network ID for an alarm or PVR recording timer.

Parameters
handletimer handle
Returns
original network ID, or ADB_INVALID_DVB_ID if the timer isn't valid or isn't an alarm or recording timer
U8BIT* ATMR_GetProgrammeCrid ( U32BIT  handle)

Returns a pointer to the programme CRID string from a recording timer. The returned value shouldn't be changed or freed.

Parameters
handletimer handle
Returns
CRID string, NULL if there isn't a CRID or the timer isn't a recording timer
BOOLEAN ATMR_GetRampVolume ( U32BIT  handle)

Returns the ramp volume setting for an alarm timer.

Parameters
handletimer handle
Returns
value of ramp volume setting, or FALSE if timer is invalid or isn't an alarm timer
U32BIT ATMR_GetRecordingHandle ( U32BIT  handle)

Returns the recording handle associated with a PVR recording timer.

Parameters
handletimer handle
Returns
recording handle, or 0 if the timer isn't a PVR recording timer or no recording has been started
void* ATMR_GetRecordService ( U8BIT  path)

Returns the service for the recording timer on the given path.

Parameters
pathrecording path
Returns
service pointer, or NULL if timer not found or service referenced by timer not found
U16BIT ATMR_GetServiceId ( U32BIT  handle)

Returns the service ID for an alarm or PVR recording timer.

Parameters
handletimer handle
Returns
service ID, or ADB_INVALID_DVB_ID if the timer isn't valid or isn't an alarm or recording timer
U32DHMS ATMR_GetStartDateTime ( U32BIT  handle)

Get the start date & time of the timer with the given handle. The date/time returned will be in UTC.

Parameters
handletimer handle
Returns
UTC start date/time, or 0 if the timer handle isn't valid
S32BIT ATMR_GetStartPadding ( U32BIT  handle)

Returns the value of start_padding associated with the specified timer The start padding is the number of seconds before (after, if negative) the actual timer start time the timer will be triggered.

Parameters
handleTimer handle
Returns
start_padding
BOOLEAN ATMR_GetTimerInfo ( U32BIT  handle,
S_TIMER_INFO timer_info 
)

Copies timer data for the given timer info the info structure provided.

Parameters
handletimer handle the data is to be copied from
timer_infowill be filled with info from the timer
Returns
TRUE if the timer is valid and data is returned, FALSE otherwise
BOOLEAN ATMR_GetTimerList ( U32BIT **  timer_list,
U16BIT *  list_size_ptr,
E_TIMER_TYPE  list_type,
BOOLEAN  date_time_order 
)

Returns a list of all the timer handles and the number of items in the list.

Parameters
timer_listpointer to an array of timer handles, the array is allocated by this function
list_sizepointer to the number of items in the returned list
list_typetype of timers to put in the list
date_time_orderTRUE if the list is to be returned in date/time order, FALSE returns the list in alphabetical name order
Returns
TRUE if a list is returned, FALSE otherwise
Parameters
timer_listpointer to an array of timer handles, the array is allocated by this function
list_size_ptrpointer to the number of items in the returned list
list_typetype of timers to put in the list
date_time_orderTRUE if the list is to be returned in date/time order, FALSE returns the list in alphabetical name order
Returns
TRUE if a list is returned, FALSE otherwise
U16BIT ATMR_GetTransportId ( U32BIT  handle)

Returns the transport ID for an alarm or PVR recording timer.

Parameters
handletimer handle
Returns
transport ID, or ADB_INVALID_DVB_ID if the timer isn't valid or isn't an alarm or recording timer
E_TIMER_TYPE ATMR_GetType ( U32BIT  handle)

Returns the type of the given timer.

Parameters
handletimer handle
Returns
type of the timer, or TIMER_TYPE_NONE if handle isn't valid
void ATMR_HandleTimerEvent ( U32BIT  handle)

Used by the DVB stack to handle an event for the given timer. If the timer requires the app to deal with it, such as for sleep or alarm timers, then another event will be sent to the app with an S_TIMER_INFO structure as the event data containing the timer's details to allow the app deal with it. The timer itself will have been updated or deleted.

Parameters
handletimer handle
BOOLEAN ATMR_HasRecommendationCrid ( U32BIT  handle)

Does the timer have a recommendation crid?

Parameters
handletimer handle
Returns
TRUE if the timer is valid and is a recording timer and has a recommendation CRID, FALSE otherwise
BOOLEAN ATMR_HasSeriesCrid ( U32BIT  handle)

Does the timer have a series crid?

Parameters
handletimer handle
Returns
TRUE if the timer is valid and is a recording timer and has a series CRID, FALSE otherwise
void ATMR_Initialise ( void  )

Performs initialisation of the timers, reading existing entries from the database.

Performs initialisation of the timers, reading existing entries from the database.

BOOLEAN ATMR_InitialiseTimer ( S_TIMER_INFO timer_info,
E_TIMER_TYPE  timer_type,
void *  serv_ptr,
void *  event_ptr 
)

Sets up the given timer info structure with default values for the given timer type using the service and event depending on timer type.

Parameters
timer_infopointer to timer info structure to be initialised
timer_typetype of timer to initialise the structure for
serv_ptrservice that will be used for alarm and PVR recording timers. It can be NULL, if not, it is used to initialise the service IDs in the alarm and PVR timers and to initialise the programme CRID field in PVR timers.
event_ptrevent that will be used for alarm and PVR recording timers. It can be NULL, if not, it is used to initialise start time and name in alarm and PVR timers and other event related fields in PVR timers. When event_ptr is specified for a PVR timer, it will be initialised as 'event triggered';
Returns
TRUE if the structure was setup, FALSE otherwise
void* ATMR_RecordEvent ( void *  serv_ptr,
void *  event_ptr,
U8BIT *  prog_crid,
U8BIT *  other_crid,
BOOLEAN  is_recommendation,
BOOLEAN  check_alternatives 
)

Adds a timer to perform a recording based on the given event and service. Conflicts are checked and a search is made for an alternative event if necessary.

Parameters
serv_ptrpointer to service on which recording is to take place
event_ptrevent to be recorded
prog_cridprogramme CRID or NULL
other_cridseries or recommendation CRID, or NULL
is_recommendationTRUE if the above crid is a recommendation crid, FALSE for series
check_alternativesTRUE if alternative events are to be searched for if the specified event can't be recorded
Returns
pointer to the event actually recorded, which may be different from the one given, or NULL if the event can't be recorded
void ATMR_RecordingFailed ( U8BIT  path)

Handles the timer when a recording fails to start for some reason. This may result in the timer being deleted.

Parameters
path- recording path
BOOLEAN ATMR_RecordSplitEvent ( void *  serv_ptr,
U8BIT *  prog_crid,
U32DHMS  start_date_time,
BOOLEAN  radio_service,
BOOLEAN  search_forward 
)

Searches for events within 3 hours of the given start date/time for an event with the given programme CRID and creates a timer to record any found. The search is performed forward or backward from the given start date/time as defined by the search direction argument.

Parameters
serv_ptrpointer to service on which search is to take place
prog_cridprogramme CRID to be searched for
start_date_timedate and time to start searching from
radio_serviceTRUE if the search is on a radio service
search_forwardTRUE if the search is to be made for events following the given date/time
Returns
TRUE if an event is found and is set for recording, FALSE otherwise
void ATMR_ReleaseTimerList ( U32BIT *  timer_list,
U16BIT  list_size 
)

Release the given array of timer handles.

Parameters
timer_list- timer array to be freed
list_size- number of items in the list
void ATMR_SetAdditionalInfo ( U32BIT  handle,
U8BIT *  info,
U32BIT  size 
)

Sets the additioinal information string for the specified timer and commits the change to the database.

Parameters
handleTimer handle
infopointer to the string
sizenumber of bytes in the string
void ATMR_SetDiskId ( U32BIT  handle,
U16BIT  disk_id 
)

Set the disk for the given timer if the timer is a recording timer.

Parameters
handletimer handle
disk_iddisk id
BOOLEAN ATMR_SetEndPadding ( U32BIT  handle,
S32BIT  end_padding 
)

Sets the value of end_padding associated with the specified timer The end padding is the number of seconds after (before, if negative) the actual timer end time the timer will expire.

Parameters
handleTimer handle
end_paddingnew value for the timer end_padding
Returns
TRUE if the start_padding could be changed, FALSE otherwise (e.g. due to a conflict)
void ATMR_SetName ( U32BIT  handle,
U8BIT *  name 
)

Sets the name of the timer with the given handle.

Parameters
handletimer handle
BOOLEAN ATMR_SetStartPadding ( U32BIT  handle,
S32BIT  start_padding 
)

Sets the value of start_padding associated with the specified timer The start padding is the number of seconds before (after, if negative) the actual timer start time the timer will be triggered.

Parameters
handleTimer handle
start_paddingnew value for the timer start_padding
Returns
TRUE if the start_padding could be changed, FALSE otherwise (e.g. due to a conflict)
BOOLEAN ATMR_StartRecord ( U8BIT  path)

Finds the timer using the given decode path and if it's a recording timer the recording will be started.

Parameters
pathdecode path being used for the recording
Returns
TRUE if the recording is started, FALSE otherwise
BOOLEAN ATMR_UpdateTimer ( U32BIT  handle,
S_TIMER_INFO info 
)

Updates all the timer fields.

Parameters
handlehandle of timer to be updated
infotimer info used to update the timer
Returns
TRUE if the timer exists and is deleted, FALSE otherwise
BOOLEAN ATMR_UpdateTimerDuration ( U32BIT  handle,
U32DHMS  duration 
)

Updates the duration for an existing PVR recording timer.

Parameters
handlehandle of timer to be updated
durationduration to be set in the timer
Returns
TRUE if the timer is updated, FALSE otherwise