#3 rfcomm's pn_msg's credits is u8??

open
nobody
None
5
2001-05-25
2001-05-25
Anonymous
No

In Spec 1.1, rfcomm's pn_msg's credits is K bits
(K1~k3), then it's a 3 bit. But axis's source is now 1
octet(byte). Why??

/* PN-command */
typedef struct pn_msg {
short_frame_head s_head;
mcc_short_frame_head mcc_s_head;
/* The res1, res2 and res3 values have to be set to 0
by the sender */
u8 dlci:6;
u8 res1:2;
u8 frame_type:4;
u8 credit_flow:4;
u8 prior:6;
u8 res2:2;
u8 ack_timer;
u32 frame_size:16;
u8 max_nbrof_retrans;
u8 credits;(###)
u8 fcs;
} __attribute__ ((packed)) pn_msg;

==>
/* PN-command */
typedef struct pn_msg {
short_frame_head s_head;
mcc_short_frame_head mcc_s_head;
/* The res1, res2 and res3 values have to be set to 0
by the sender */
u8 dlci:6;
u8 res1:2;
u8 frame_type:4;
u8 credit_flow:4;
u8 prior:6;
u8 res2:2;
u8 ack_timer;
u32 frame_size:16;
u8 max_nbrof_retrans;
u8 credits :3;(###)
u8 res3: 5;(###)
u8 fcs;
} __attribute__ ((packed)) pn_msg;

Discussion


Log in to post a comment.