DO NOT MERGE: test struct_endianness CI
Change-Id: I91625b54ab2698504340f627c8473e2967868f6d
This commit is contained in:
parent
c871c2f4b3
commit
5b234e3365
|
@ -40,3 +40,32 @@ bool msc_is_connected(struct msc *msc);
|
||||||
|
|
||||||
void msc_free(struct msc *msc);
|
void msc_free(struct msc *msc);
|
||||||
void msc_free_subscr_conn_all(struct msc *msc);
|
void msc_free_subscr_conn_all(struct msc *msc);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
struct gsm341_ms_message {
|
||||||
|
struct {
|
||||||
|
#if OSMO_IS_LITTLE_ENDIAN
|
||||||
|
uint8_t code_hi:6;
|
||||||
|
uint8_t gs:2;
|
||||||
|
uint8_t update:4;
|
||||||
|
uint8_t code_lo:4;
|
||||||
|
#elif OSMO_IS_BIG_ENDIAN
|
||||||
|
#endif
|
||||||
|
} serial;
|
||||||
|
uint16_t msg_id;
|
||||||
|
struct {
|
||||||
|
#if OSMO_IS_LITTLE_ENDIAN
|
||||||
|
uint8_t language:4;
|
||||||
|
uint8_t group:4;
|
||||||
|
#endif
|
||||||
|
} dcs;
|
||||||
|
struct {
|
||||||
|
#if OSMO_IS_LITTLE_ENDIAN
|
||||||
|
uint8_t total:4;
|
||||||
|
uint8_t current:4;
|
||||||
|
#endif
|
||||||
|
} page;
|
||||||
|
uint8_t data[0];
|
||||||
|
} __attribute__((packed));
|
||||||
|
|
Loading…
Reference in New Issue