| | |
| | | #define MESSAGEPROC_H_ |
| | | |
| | | #include <stdint.h> |
| | | #include <heapnew> |
| | | #include "protocol.h" |
| | | #include "typedefs.h" |
| | | #include "queue.h" |
| | | #include "dsp_report.h" |
| | | #include "../drv/memory.h" |
| | | |
| | | class Message{ |
| | | private: |
| | | Queue<MSG>* txQueue; |
| | | |
| | | ReportStatus dsp_status_q; |
| | | s16* Levels; |
| | | |
| | | s32 PresetProcess(MSG* pmsg); |
| | | |
| | |
| | | s32 HandshakeMessageProcess(MSG* pmsg); |
| | | |
| | | s32 RxMessageHandler(MSG* pmsg); |
| | | |
| | | void param_init(ptag_device_config pDevCfg); |
| | | |
| | | public: |
| | | Message(u32 num) |
| | | { |
| | | txQueue = new Queue<MSG>(num); |
| | | Levels = new s16[1000]; |
| | | } |
| | | ~Message() |
| | | { |
| | |
| | | uvoid Proc(); |
| | | |
| | | uvoid ReportDspStatus(MSG* pmsg); |
| | | uvoid ReportLevel(MSG* pmsg); |
| | | }; |
| | | |
| | | #endif /* MESSAGEPROC_H_ */ |