Sound_Scheduler.h 878 Bytes
Newer Older
hu's avatar
hu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48

#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;

        /*

#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
{
    uint8_t   DrMode;
    uint8_t   PaMode;
    uint16_t  DrTimer;
    uint16_t  PaTimer;
} SoundSeatbeltCtrlStruct;
                 */






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