44 #define osmo_v110_e1e2e3_set(e_bits, rate) \ 45 memcpy(e_bits, osmo_v110_e1e2e3[rate], 3) 46 #define osmo_v110_e1e2e3_cmp(e_bits, rate) \ 47 memcmp(e_bits, osmo_v110_e1e2e3[rate], 3) 54 const ubit_t *d_in,
size_t in_len);
int osmo_v110_sync_ra1_get_user_data_chunk_bitlen(enum osmo_v100_sync_ra1_rate rate)
obtain the size (in number of bits) of the user data bits in one V.110 frame for specified RA1 rate ...
Definition: v110.c:536
ubit_t d_bits[MAX_D_BITS]
Definition: v110.h:13
ubit_t e_bits[MAX_E_BITS]
Definition: v110.h:14
int osmo_v110_sync_ra1_user_to_ir(enum osmo_v100_sync_ra1_rate rate, struct osmo_v110_decoded_frame *fr, const ubit_t *d_in, size_t in_len)
perform V.110 RA1 function in user rate -> intermediate rate direction.
Definition: v110.c:568
int osmo_v110_sync_ra1_get_intermediate_rate(enum osmo_v100_sync_ra1_rate rate)
obtain the intermediate rate (in bits/s) for specified RA1 rate
Definition: v110.c:554
#define MAX_D_BITS
Definition: v110.h:6
int osmo_v110_sync_ra1_get_user_data_rate(enum osmo_v100_sync_ra1_rate rate)
obtain the user data rate (in bits/s) for specified RA1 rate
Definition: v110.c:545
ubit_t x_bits[MAX_X_BITS]
Definition: v110.h:16
#define MAX_E_BITS
Definition: v110.h:7
int osmo_v110_encode_frame(ubit_t *ra_bits, size_t n_bits, const struct osmo_v110_decoded_frame *fr)
Encode a struct osmo_v110_decoded_frame into an 80-bit V.110 frame as ubits.
Definition: v110.c:84
#define MAX_S_BITS
Definition: v110.h:8
ubit_t s_bits[MAX_S_BITS]
Definition: v110.h:15
int osmo_v110_decode_frame(struct osmo_v110_decoded_frame *fr, const ubit_t *ra_bits, size_t n_bits)
Decode a 80-bit V.110 frame present as 80 ubits into a struct osmo_v110_decoded_frame.
Definition: v110.c:45
osmo_v100_sync_ra1_rate
enum for each supported V.110 synchronous RA1 function (one for each user bitrate) ...
Definition: v110.h:26
#define MAX_X_BITS
Definition: v110.h:9
void osmo_v110_ubit_dump(FILE *outf, const ubit_t *fr, size_t in_len)
Print a encoded V.110 frame in the same table-like structure as the spec.
Definition: v110.c:127
int osmo_v110_sync_ra1_ir_to_user(enum osmo_v100_sync_ra1_rate rate, ubit_t *d_out, size_t out_len, const struct osmo_v110_decoded_frame *fr)
perform V.110 RA1 function in intermediate rate -> user rate direction.
Definition: v110.c:583
const ubit_t osmo_v110_e1e2e3[_NUM_OSMO_V110_SYNC_RA1][3]
E1/E2/E3 bit values as per Table 5/V.110.
Definition: v110.c:147
a 'decoded' representation of a single V.110 frame.
Definition: v110.h:12