Sound_Scheduler.h 846 Bytes
Newer Older
hu's avatar
hu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

#ifndef _SOUND_SCHEDULER_H_
#define _SOUND_SCHEDULER_H_

#include "TYW_stdint.h"
#include "Sound_List.h"


typedef struct
{
    uint8_t   Current;
    uint8_t   Next;
    uint8_t   ReqCode;
    uint8_t   StopReq;
} SoundSchedulingStruct;

hu's avatar
hu committed
17
/*
hu's avatar
hu committed
18 19 20 21 22 23 24 25 26 27 28

#define   SND_SEATBELT_120s_TIME            117000

#define   SND_SEATBELT_DISABLE              0x00
#define   SND_SEATBELT_TIMING               0x01
#define   SND_SEATBELT_TIME_UP              0x02
#define   SND_SEATBELT_CONTINUOUS           0x03


typedef struct
{
hu's avatar
hu committed
29 30 31 32
uint8_t   DrMode;
uint8_t   PaMode;
uint16_t  DrTimer;
uint16_t  PaTimer;
hu's avatar
hu committed
33
} SoundSeatbeltCtrlStruct;
hu's avatar
hu committed
34
         */
hu's avatar
hu committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48






void Sound_Scheduler_Init ( void );
void Sound_Request ( uint8_t Sound, uint8_t ReqCode );
void Sound_Delete ( uint8_t Sound );
void Sound_Scheduling_Service ( void );
void Sound_Management_Service( void );

#endif