FreeCalypso > hg > fc-magnetite
view cdg211/cdginc/m_t30.h @ 516:1ed9de6c90bd
src/g23m-gsm/sms/sms_for.c: bogus malloc removed
The new error handling code that was not present in TCS211 blob version
contains a malloc call that is bogus for 3 reasons:
1) The memory allocation in question is not needed in the first place;
2) libc malloc is used instead of one of the firmware's proper ways;
3) The memory allocation is made inside a function and then never freed,
i.e., a memory leak.
This bug was caught in gcc-built FreeCalypso fw projects (Citrine
and Selenite) because our gcc environment does not allow any use of
libc malloc (any reference to malloc produces a link failure),
but this code from TCS3.2 is wrong even for Magnetite: if this code
path is executed repeatedly over a long time, the many small allocations
made by this malloc call without a subsequent free will eventually
exhaust the malloc heap provided by the TMS470 environment, malloc will
start returning NULL, and the bogus code will treat it as an error.
Because the memory allocation in question is not needed at all,
the fix entails simply removing it.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 22 Jul 2018 06:04:49 +0000 |
parents | 56abf6cf8a0b |
children |
line wrap: on
line source
/* +--------------------------------------------------------------------------+ | PROJECT : PROTOCOL STACK | | FILE : m_t30.h | | SOURCE : "__out__\g23m_dfile\msg\t30.mdf" | | LastModified : "2000-02-04" | | IdAndVersion : "8411.620.98.101" | | SrcFileTime : "Mon Nov 24 15:51:02 2003" | | Generated by CCDGEN_2.5.5 on Fri Jun 08 13:59:14 2007 | | !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!! | +--------------------------------------------------------------------------+ */ /* PRAGMAS * PREFIX : NONE * COMPATIBILITY_DEFINES : NO (require PREFIX) * ALWAYS_ENUM_IN_VAL_FILE: NO * ENABLE_GROUP: NO * CAPITALIZE_TYPENAME: NO */ #ifndef M_T30_H #define M_T30_H #define CDG_ENTER__M_T30_H #define CDG_ENTER__FILENAME _M_T30_H #define CDG_ENTER__M_T30_H__FILE_TYPE CDGINC #define CDG_ENTER__M_T30_H__LAST_MODIFIED _2000_02_04 #define CDG_ENTER__M_T30_H__ID_AND_VERSION _8411_620_98_101 #define CDG_ENTER__M_T30_H__SRC_FILE_TIME _Mon_Nov_24_15_51_02_2003 #include "CDG_ENTER.h" #undef CDG_ENTER__M_T30_H #undef CDG_ENTER__FILENAME #include "m_t30.val" /* * bitbuffer structure for the element non_std_fac */ #ifndef __T_BUF_non_std_fac__ #define __T_BUF_non_std_fac__ typedef struct { U16 l_non_std_fac; U16 o_non_std_fac; U8 b_non_std_fac[92]; } BUF_non_std_fac; /* size <96> */ #endif #ifndef __T_cap0_rcv__ #define __T_cap0_rcv__ /* * Basic facsimile capabilities receiver * CCDGEN:WriteStruct_Count==584 */ typedef struct { U8 v8; /*< 0: 1> V.8 */ U8 n_byte; /*< 1: 1> no. of octets preferred */ U8 ready_tx_fax; /*< 2: 1> Ready to transmit a facsimile document (polling) */ U8 rec_fax_op; /*< 3: 1> Receiver fax operation */ U8 data_sig_rate; /*< 4: 1> data signalling rate */ U8 R8_lines_pels; /*< 5: 1> R8 x 7.7 lines/mm and/or 200 x 200 pels/25.4 mm */ U8 two_dim_coding; /*< 6: 1> two dimensional coding */ U8 rec_width; /*< 7: 1> recording width */ U8 max_rec_len; /*< 8: 1> maximum recording length */ U8 min_scan_time; /*< 9: 1> minimum scan line time */ U8 _align0; /*< 10: 1> alignment */ U8 _align1; /*< 11: 1> alignment */ } T_cap0_rcv; #endif #ifndef __T_cap1_rcv__ #define __T_cap1_rcv__ /* * Extended facsimile capabilities 1 receiver * CCDGEN:WriteStruct_Count==585 */ typedef struct { U8 uncomp_mode; /*< 0: 1> uncompressed mode */ U8 err_corr_mode; /*< 1: 1> error correction mode */ U8 t6_coding; /*< 2: 1> T6 coding */ U8 _align0; /*< 3: 1> alignment */ } T_cap1_rcv; #endif #ifndef __T_cap2_rcv__ #define __T_cap2_rcv__ /* * Extended facsimile capabilities 2 receiver * CCDGEN:WriteStruct_Count==586 */ /* typedef void T_cap2_rcv;*/ #endif #ifndef __T_cap3_rcv__ #define __T_cap3_rcv__ /* * Extended facsimile capabilities 3 receiver * CCDGEN:WriteStruct_Count==587 */ typedef struct { U8 R8_lines; /*< 0: 1> R8 lines */ U8 r_300_pels; /*< 1: 1> Res 300 x 300 pels/25.4 mm */ U8 R16_lines_pels; /*< 2: 1> R16 x 15.4 lines/mm and/or 400 x 400 pels/24.4 mm */ U8 i_res_pref; /*< 3: 1> Inch-based resolution preferred */ U8 m_res_pref; /*< 4: 1> Metric-based resolution preferred */ U8 min_scan_time_hr; /*< 5: 1> Minimum scan line time for higher resolutions */ U8 sel_polling; /*< 6: 1> Selective polling */ U8 _align0; /*< 7: 1> alignment */ } T_cap3_rcv; #endif #ifndef __T_cap4_rcv__ #define __T_cap4_rcv__ /* * Extended facsimile capabilities 4 receiver * CCDGEN:WriteStruct_Count==588 */ typedef struct { U8 subaddr; /*< 0: 1> Sub-addressing */ U8 password; /*< 1: 1> Password flag */ U8 ready_tx_doc; /*< 2: 1> Ready to transmit a data file */ U8 bft; /*< 3: 1> Binary file transfer */ U8 dtm; /*< 4: 1> Document transfer mode */ U8 edi; /*< 5: 1> Electronic data interchange */ U8 _align0; /*< 6: 1> alignment */ U8 _align1; /*< 7: 1> alignment */ } T_cap4_rcv; #endif #ifndef __T_cap5_rcv__ #define __T_cap5_rcv__ /* * Extended facsimile capabilities 5 receiver * CCDGEN:WriteStruct_Count==589 */ typedef struct { U8 btm; /*< 0: 1> Basic transfer mode */ U8 ready_tx_mixed; /*< 1: 1> Ready to transmit a character or mixed mode document */ U8 char_mode; /*< 2: 1> Character mode */ U8 mixed_mode; /*< 3: 1> Mixed mode */ } T_cap5_rcv; #endif #ifndef __T_cap6_rcv__ #define __T_cap6_rcv__ /* * Extended facsimile capabilities 6 receiver * CCDGEN:WriteStruct_Count==590 */ typedef struct { U8 proc_mode_26; /*< 0: 1> Processable mode */ U8 dig_network_cap; /*< 1: 1> Digital network capability */ U8 duplex; /*< 2: 1> Duplex and half duplex capabilities */ U8 jpeg; /*< 3: 1> JPEG coding */ U8 full_colour; /*< 4: 1> Full color mode */ U8 r_12_bits_pel_comp; /*< 5: 1> Digitise 12 Bits/pel component */ U8 _align0; /*< 6: 1> alignment */ U8 _align1; /*< 7: 1> alignment */ } T_cap6_rcv; #endif #ifndef __T_cap7_rcv__ #define __T_cap7_rcv__ /* * Extended facsimile capabilities 7 receiver * CCDGEN:WriteStruct_Count==591 */ typedef struct { U8 no_subsamp; /*< 0: 1> No sub-sampling */ U8 cust_illum; /*< 1: 1> Custom illuminant */ U8 cust_gamut; /*< 2: 1> Custom gamut range */ U8 na_letter; /*< 3: 1> North American Letter */ U8 na_legal; /*< 4: 1> North American Legal */ U8 sing_prog_seq_coding_basic; /*< 5: 1> Single-progression sequential Coding basic */ U8 sing_prog_seq_coding_L0; /*< 6: 1> Single-progression sequential Coding Optional L0 */ U8 _align0; /*< 7: 1> alignment */ } T_cap7_rcv; #endif #ifndef __T_cap0_snd__ #define __T_cap0_snd__ /* * Basic facsimile capabilities sender * CCDGEN:WriteStruct_Count==592 */ typedef struct { U8 rec_fax_op; /*< 0: 1> Receiver fax operation */ U8 data_sig_rate; /*< 1: 1> data signalling rate */ U8 R8_lines_pels; /*< 2: 1> R8 x 7.7 lines/mm and/or 200 x 200 pels/25.4 mm */ U8 two_dim_coding; /*< 3: 1> two dimensional coding */ U8 rec_width; /*< 4: 1> recording width */ U8 max_rec_len; /*< 5: 1> maximum recording length */ U8 min_scan_time; /*< 6: 1> minimum scan line time */ U8 _align0; /*< 7: 1> alignment */ } T_cap0_snd; #endif #ifndef __T_cap1_snd__ #define __T_cap1_snd__ /* * Extended facsimile capabilities 1 sender * CCDGEN:WriteStruct_Count==593 */ typedef struct { U8 uncomp_mode; /*< 0: 1> uncompressed mode */ U8 err_corr_mode; /*< 1: 1> error correction mode */ U8 frame_size; /*< 2: 1> Frame size */ U8 t6_coding; /*< 3: 1> T6 coding */ } T_cap1_snd; #endif #ifndef __T_cap2_snd__ #define __T_cap2_snd__ /* * Extended facsimile capabilities 2 sender * CCDGEN:WriteStruct_Count==594 */ /* typedef void T_cap2_snd;*/ #endif #ifndef __T_cap3_snd__ #define __T_cap3_snd__ /* * Extended facsimile capabilities 3 sender * CCDGEN:WriteStruct_Count==595 */ typedef struct { U8 R8_lines; /*< 0: 1> R8 lines */ U8 r_300_pels; /*< 1: 1> Res 300 x 300 pels/25.4 mm */ U8 R16_lines_pels; /*< 2: 1> R16 x 15.4 lines/mm and/or 400 x 400 pels/24.4 mm */ U8 resolution_type; /*< 3: 1> Resolution type selection */ } T_cap3_snd; #endif #ifndef __T_cap4_snd__ #define __T_cap4_snd__ /* * Extended facsimile capabilities 4 sender * CCDGEN:WriteStruct_Count==596 */ typedef struct { U8 subaddr; /*< 0: 1> Sub-addressing */ U8 password; /*< 1: 1> Password flag */ U8 bft; /*< 2: 1> Binary file transfer */ U8 dtm; /*< 3: 1> Document transfer mode */ U8 edi; /*< 4: 1> Electronic data interchange */ U8 _align0; /*< 5: 1> alignment */ U8 _align1; /*< 6: 1> alignment */ U8 _align2; /*< 7: 1> alignment */ } T_cap4_snd; #endif #ifndef __T_cap5_snd__ #define __T_cap5_snd__ /* * Extended facsimile capabilities 5 sender * CCDGEN:WriteStruct_Count==597 */ typedef struct { U8 btm; /*< 0: 1> Basic transfer mode */ U8 char_mode; /*< 1: 1> Character mode */ U8 mixed_mode; /*< 2: 1> Mixed mode */ U8 _align0; /*< 3: 1> alignment */ } T_cap5_snd; #endif #ifndef __T_cap6_snd__ #define __T_cap6_snd__ /* * Extended facsimile capabilities 6 sender * CCDGEN:WriteStruct_Count==598 */ typedef struct { U8 proc_mode_26; /*< 0: 1> Processable mode */ U8 dig_network_cap; /*< 1: 1> Digital network capability */ U8 duplex; /*< 2: 1> Duplex and half duplex capabilities */ U8 jpeg; /*< 3: 1> JPEG coding */ U8 full_colour; /*< 4: 1> Full color mode */ U8 huffman_tables; /*< 5: 1> Preferred Huffman tables */ U8 r_12_bits_pel_comp; /*< 6: 1> Digitise 12 Bits/pel component */ U8 _align0; /*< 7: 1> alignment */ } T_cap6_snd; #endif #ifndef __T_cap7_snd__ #define __T_cap7_snd__ /* * Extended facsimile capabilities 7 sender * CCDGEN:WriteStruct_Count==599 */ typedef struct { U8 no_subsamp; /*< 0: 1> No sub-sampling */ U8 cust_illum; /*< 1: 1> Custom illuminant */ U8 cust_gamut; /*< 2: 1> Custom gamut range */ U8 na_letter; /*< 3: 1> North American Letter */ U8 na_legal; /*< 4: 1> North American Legal */ U8 sing_prog_seq_coding_basic; /*< 5: 1> Single-progression sequential Coding basic */ U8 sing_prog_seq_coding_L0; /*< 6: 1> Single-progression sequential Coding Optional L0 */ U8 _align0; /*< 7: 1> alignment */ } T_cap7_snd; #endif /* * End of substructure section, begin of message definition section */ #ifndef __T_BCS_DIS__ #define __T_BCS_DIS__ /* * * CCDGEN:WriteStruct_Count==600 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ T_cap0_rcv cap0_rcv; /*< 4: 12> Basic facsimile capabilities receiver */ U8 _align3; /*< 16: 1> alignment */ U8 _align4; /*< 17: 1> alignment */ U8 _align5; /*< 18: 1> alignment */ U8 v_cap1_rcv; /*< 19: 1> valid-flag */ T_cap1_rcv cap1_rcv; /*< 20: 4> Extended facsimile capabilities 1 receiver */ U8 _align6; /*< 24: 1> alignment */ U8 _align7; /*< 25: 1> alignment */ U8 _align8; /*< 26: 1> alignment */ U8 v_cap2_rcv; /*< 27: 1> valid-flag */ U8 _align9; /*< 28: 1> alignment */ U8 _align10; /*< 29: 1> alignment */ U8 _align11; /*< 30: 1> alignment */ U8 v_cap3_rcv; /*< 31: 1> valid-flag */ T_cap3_rcv cap3_rcv; /*< 32: 8> Extended facsimile capabilities 3 receiver */ U8 _align12; /*< 40: 1> alignment */ U8 _align13; /*< 41: 1> alignment */ U8 _align14; /*< 42: 1> alignment */ U8 v_cap4_rcv; /*< 43: 1> valid-flag */ T_cap4_rcv cap4_rcv; /*< 44: 8> Extended facsimile capabilities 4 receiver */ U8 _align15; /*< 52: 1> alignment */ U8 _align16; /*< 53: 1> alignment */ U8 _align17; /*< 54: 1> alignment */ U8 v_cap5_rcv; /*< 55: 1> valid-flag */ T_cap5_rcv cap5_rcv; /*< 56: 4> Extended facsimile capabilities 5 receiver */ U8 _align18; /*< 60: 1> alignment */ U8 _align19; /*< 61: 1> alignment */ U8 _align20; /*< 62: 1> alignment */ U8 v_cap6_rcv; /*< 63: 1> valid-flag */ T_cap6_rcv cap6_rcv; /*< 64: 8> Extended facsimile capabilities 6 receiver */ U8 _align21; /*< 72: 1> alignment */ U8 _align22; /*< 73: 1> alignment */ U8 _align23; /*< 74: 1> alignment */ U8 v_cap7_rcv; /*< 75: 1> valid-flag */ T_cap7_rcv cap7_rcv; /*< 76: 8> Extended facsimile capabilities 7 receiver */ } T_BCS_DIS; #endif #ifndef __T_BCS_CSI__ #define __T_BCS_CSI__ /* * * CCDGEN:WriteStruct_Count==601 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 c_cld_sub_nr; /*< 1: 1> counter */ U8 cld_sub_nr[20]; /*< 2: 20> called subscriber number */ U8 _align0; /*< 22: 1> alignment */ U8 _align1; /*< 23: 1> alignment */ } T_BCS_CSI; #endif #ifndef __T_BCS_NSF__ #define __T_BCS_NSF__ /* * * CCDGEN:WriteStruct_Count==602 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ BUF_non_std_fac non_std_fac; /*< 4: 96> Non-standard facility content */ } T_BCS_NSF; #endif #ifndef __T_BCS_DTC__ #define __T_BCS_DTC__ /* * * CCDGEN:WriteStruct_Count==603 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ T_cap0_rcv cap0_rcv; /*< 4: 12> Basic facsimile capabilities receiver */ U8 _align3; /*< 16: 1> alignment */ U8 _align4; /*< 17: 1> alignment */ U8 _align5; /*< 18: 1> alignment */ U8 v_cap1_rcv; /*< 19: 1> valid-flag */ T_cap1_rcv cap1_rcv; /*< 20: 4> Extended facsimile capabilities 1 receiver */ U8 _align6; /*< 24: 1> alignment */ U8 _align7; /*< 25: 1> alignment */ U8 _align8; /*< 26: 1> alignment */ U8 v_cap2_rcv; /*< 27: 1> valid-flag */ U8 _align9; /*< 28: 1> alignment */ U8 _align10; /*< 29: 1> alignment */ U8 _align11; /*< 30: 1> alignment */ U8 v_cap3_rcv; /*< 31: 1> valid-flag */ T_cap3_rcv cap3_rcv; /*< 32: 8> Extended facsimile capabilities 3 receiver */ U8 _align12; /*< 40: 1> alignment */ U8 _align13; /*< 41: 1> alignment */ U8 _align14; /*< 42: 1> alignment */ U8 v_cap4_rcv; /*< 43: 1> valid-flag */ T_cap4_rcv cap4_rcv; /*< 44: 8> Extended facsimile capabilities 4 receiver */ U8 _align15; /*< 52: 1> alignment */ U8 _align16; /*< 53: 1> alignment */ U8 _align17; /*< 54: 1> alignment */ U8 v_cap5_rcv; /*< 55: 1> valid-flag */ T_cap5_rcv cap5_rcv; /*< 56: 4> Extended facsimile capabilities 5 receiver */ U8 _align18; /*< 60: 1> alignment */ U8 _align19; /*< 61: 1> alignment */ U8 _align20; /*< 62: 1> alignment */ U8 v_cap6_rcv; /*< 63: 1> valid-flag */ T_cap6_rcv cap6_rcv; /*< 64: 8> Extended facsimile capabilities 6 receiver */ U8 _align21; /*< 72: 1> alignment */ U8 _align22; /*< 73: 1> alignment */ U8 _align23; /*< 74: 1> alignment */ U8 v_cap7_rcv; /*< 75: 1> valid-flag */ T_cap7_rcv cap7_rcv; /*< 76: 8> Extended facsimile capabilities 7 receiver */ } T_BCS_DTC; #endif #ifndef __T_BCS_CIG__ #define __T_BCS_CIG__ /* * * CCDGEN:WriteStruct_Count==604 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 c_clg_sub_nr; /*< 1: 1> counter */ U8 clg_sub_nr[20]; /*< 2: 20> calling subscriber number */ U8 _align0; /*< 22: 1> alignment */ U8 _align1; /*< 23: 1> alignment */ } T_BCS_CIG; #endif #ifndef __T_BCS_NSC__ #define __T_BCS_NSC__ /* * * CCDGEN:WriteStruct_Count==605 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ BUF_non_std_fac non_std_fac; /*< 4: 96> Non-standard facility content */ } T_BCS_NSC; #endif #ifndef __T_BCS_PWD_POLL__ #define __T_BCS_PWD_POLL__ /* * * CCDGEN:WriteStruct_Count==606 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 c_pm_pword; /*< 1: 1> counter */ U8 pm_pword[20]; /*< 2: 20> Password for polling */ U8 _align0; /*< 22: 1> alignment */ U8 _align1; /*< 23: 1> alignment */ } T_BCS_PWD_POLL; #endif #ifndef __T_BCS_SEP__ #define __T_BCS_SEP__ /* * * CCDGEN:WriteStruct_Count==607 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 c_pm_sub_addr; /*< 1: 1> counter */ U8 pm_sub_addr[20]; /*< 2: 20> Polling mode sub-address */ U8 _align0; /*< 22: 1> alignment */ U8 _align1; /*< 23: 1> alignment */ } T_BCS_SEP; #endif #ifndef __T_BCS_DCS__ #define __T_BCS_DCS__ /* * * CCDGEN:WriteStruct_Count==608 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ T_cap0_snd cap0_snd; /*< 4: 8> Basic facsimile capabilities sender */ U8 _align3; /*< 12: 1> alignment */ U8 _align4; /*< 13: 1> alignment */ U8 _align5; /*< 14: 1> alignment */ U8 v_cap1_snd; /*< 15: 1> valid-flag */ T_cap1_snd cap1_snd; /*< 16: 4> Extended facsimile capabilities 1 sender */ U8 _align6; /*< 20: 1> alignment */ U8 _align7; /*< 21: 1> alignment */ U8 _align8; /*< 22: 1> alignment */ U8 v_cap2_snd; /*< 23: 1> valid-flag */ U8 _align9; /*< 24: 1> alignment */ U8 _align10; /*< 25: 1> alignment */ U8 _align11; /*< 26: 1> alignment */ U8 v_cap3_snd; /*< 27: 1> valid-flag */ T_cap3_snd cap3_snd; /*< 28: 4> Extended facsimile capabilities 3 sender */ U8 _align12; /*< 32: 1> alignment */ U8 _align13; /*< 33: 1> alignment */ U8 _align14; /*< 34: 1> alignment */ U8 v_cap4_snd; /*< 35: 1> valid-flag */ T_cap4_snd cap4_snd; /*< 36: 8> Extended facsimile capabilities 4 sender */ U8 _align15; /*< 44: 1> alignment */ U8 _align16; /*< 45: 1> alignment */ U8 _align17; /*< 46: 1> alignment */ U8 v_cap5_snd; /*< 47: 1> valid-flag */ T_cap5_snd cap5_snd; /*< 48: 4> Extended facsimile capabilities 5 sender */ U8 _align18; /*< 52: 1> alignment */ U8 _align19; /*< 53: 1> alignment */ U8 _align20; /*< 54: 1> alignment */ U8 v_cap6_snd; /*< 55: 1> valid-flag */ T_cap6_snd cap6_snd; /*< 56: 8> Extended facsimile capabilities 6 sender */ U8 _align21; /*< 64: 1> alignment */ U8 _align22; /*< 65: 1> alignment */ U8 _align23; /*< 66: 1> alignment */ U8 v_cap7_snd; /*< 67: 1> valid-flag */ T_cap7_snd cap7_snd; /*< 68: 8> Extended facsimile capabilities 7 sender */ } T_BCS_DCS; #endif #ifndef __T_BCS_TSI__ #define __T_BCS_TSI__ /* * * CCDGEN:WriteStruct_Count==609 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 c_tra_sub_nr; /*< 1: 1> counter */ U8 tra_sub_nr[20]; /*< 2: 20> transmitting subscriber number */ U8 _align0; /*< 22: 1> alignment */ U8 _align1; /*< 23: 1> alignment */ } T_BCS_TSI; #endif #ifndef __T_BCS_NSS__ #define __T_BCS_NSS__ /* * * CCDGEN:WriteStruct_Count==610 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ BUF_non_std_fac non_std_fac; /*< 4: 96> Non-standard facility content */ } T_BCS_NSS; #endif #ifndef __T_BCS_SUB__ #define __T_BCS_SUB__ /* * * CCDGEN:WriteStruct_Count==611 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 c_sub_addr; /*< 1: 1> counter */ U8 sub_addr[20]; /*< 2: 20> Sub-address */ U8 _align0; /*< 22: 1> alignment */ U8 _align1; /*< 23: 1> alignment */ } T_BCS_SUB; #endif #ifndef __T_BCS_PWD_SND__ #define __T_BCS_PWD_SND__ /* * * CCDGEN:WriteStruct_Count==612 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 c_sm_pword; /*< 1: 1> counter */ U8 sm_pword[20]; /*< 2: 20> Password for sendingf */ U8 _align0; /*< 22: 1> alignment */ U8 _align1; /*< 23: 1> alignment */ } T_BCS_PWD_SND; #endif #ifndef __T_BCS_CFR__ #define __T_BCS_CFR__ /* * * CCDGEN:WriteStruct_Count==613 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ } T_BCS_CFR; #endif #ifndef __T_BCS_FTT__ #define __T_BCS_FTT__ /* * * CCDGEN:WriteStruct_Count==614 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ } T_BCS_FTT; #endif #ifndef __T_BCS_EOM__ #define __T_BCS_EOM__ /* * * CCDGEN:WriteStruct_Count==615 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ } T_BCS_EOM; #endif #ifndef __T_BCS_MPS__ #define __T_BCS_MPS__ /* * * CCDGEN:WriteStruct_Count==616 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ } T_BCS_MPS; #endif #ifndef __T_BCS_EOP__ #define __T_BCS_EOP__ /* * * CCDGEN:WriteStruct_Count==617 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ } T_BCS_EOP; #endif #ifndef __T_BCS_PRI_EOM__ #define __T_BCS_PRI_EOM__ /* * * CCDGEN:WriteStruct_Count==618 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ } T_BCS_PRI_EOM; #endif #ifndef __T_BCS_PRI_MPS__ #define __T_BCS_PRI_MPS__ /* * * CCDGEN:WriteStruct_Count==619 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ } T_BCS_PRI_MPS; #endif #ifndef __T_BCS_PRI_EOP__ #define __T_BCS_PRI_EOP__ /* * * CCDGEN:WriteStruct_Count==620 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ } T_BCS_PRI_EOP; #endif #ifndef __T_BCS_MCF__ #define __T_BCS_MCF__ /* * * CCDGEN:WriteStruct_Count==621 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ } T_BCS_MCF; #endif #ifndef __T_BCS_RTP__ #define __T_BCS_RTP__ /* * * CCDGEN:WriteStruct_Count==622 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ } T_BCS_RTP; #endif #ifndef __T_BCS_RTN__ #define __T_BCS_RTN__ /* * * CCDGEN:WriteStruct_Count==623 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ } T_BCS_RTN; #endif #ifndef __T_BCS_PIP__ #define __T_BCS_PIP__ /* * * CCDGEN:WriteStruct_Count==624 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ } T_BCS_PIP; #endif #ifndef __T_BCS_PIN__ #define __T_BCS_PIN__ /* * * CCDGEN:WriteStruct_Count==625 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ } T_BCS_PIN; #endif #ifndef __T_BCS_DCN__ #define __T_BCS_DCN__ /* * * CCDGEN:WriteStruct_Count==626 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ } T_BCS_DCN; #endif #ifndef __T_BCS_CRP__ #define __T_BCS_CRP__ /* * * CCDGEN:WriteStruct_Count==627 */ typedef struct { U8 fcf; /*< 0: 1> Facsimile control field */ U8 _align0; /*< 1: 1> alignment */ U8 _align1; /*< 2: 1> alignment */ U8 _align2; /*< 3: 1> alignment */ } T_BCS_CRP; #endif #include "CDG_LEAVE.h" #endif