123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- #ifndef SUN
- #pragma pack(push, 1)
- #else
- #pragma pack(1)
- #endif
- struct HELO_packet {
- char opcode[4];
- u32_t length;
- u8_t deviceid;
- u8_t revision;
- u8_t mac[6];
- u8_t uuid[16];
- u16_t wlan_channellist;
- u32_t bytes_received_H, bytes_received_L;
- char lang[2];
-
- };
- struct STAT_packet {
- char opcode[4];
- u32_t length;
- u32_t event;
- u8_t num_crlf;
- u8_t mas_initialized;
- u8_t mas_mode;
- u32_t stream_buffer_size;
- u32_t stream_buffer_fullness;
- u32_t bytes_received_H;
- u32_t bytes_received_L;
- u16_t signal_strength;
- u32_t jiffies;
- u32_t output_buffer_size;
- u32_t output_buffer_fullness;
- u32_t elapsed_seconds;
- u16_t voltage;
- u32_t elapsed_milliseconds;
- u32_t server_timestamp;
- u16_t error_code;
- };
- struct DSCO_packet {
- char opcode[4];
- u32_t length;
- u8_t reason;
- };
- struct RESP_header {
- char opcode[4];
- u32_t length;
-
- };
- struct META_header {
- char opcode[4];
- u32_t length;
-
- };
- struct SETD_header {
- char opcode[4];
- u32_t length;
- u8_t id;
-
- };
- #if IR
- struct IR_packet {
- char opcode[4];
- u32_t length;
- u32_t jiffies;
- u8_t format;
- u8_t bits;
- u32_t ir_code;
- };
- #endif
- struct strm_packet {
- char opcode[4];
- char command;
- u8_t autostart;
- u8_t format;
- u8_t pcm_sample_size;
- u8_t pcm_sample_rate;
- u8_t pcm_channels;
- u8_t pcm_endianness;
- u8_t threshold;
- u8_t spdif_enable;
- u8_t transition_period;
- u8_t transition_type;
- u8_t flags;
- u8_t output_threshold;
- u8_t slaves;
- u32_t replay_gain;
- u16_t server_port;
- u32_t server_ip;
-
- };
- struct aude_packet {
- char opcode[4];
- u8_t enable_spdif;
- u8_t enable_dac;
- };
- struct audg_packet {
- char opcode[4];
- u32_t old_gainL;
- u32_t old_gainR;
- u8_t adjust;
- u8_t preamp;
- u32_t gainL;
- u32_t gainR;
-
- };
- struct cont_packet {
- char opcode[4];
- u32_t metaint;
- u8_t loop;
-
- };
- struct serv_packet {
- char opcode[4];
- u32_t server_ip;
-
- };
- struct setd_packet {
- char opcode[4];
- u8_t id;
- char data[];
- };
- struct codc_packet {
- char opcode[4];
- u8_t format;
- u8_t pcm_sample_size;
- u8_t pcm_sample_rate;
- u8_t pcm_channels;
- u8_t pcm_endianness;
- };
- #ifndef SUN
- #pragma pack(pop)
- #else
- #pragma pack()
- #endif
|