Type 0 Extension 17 - mattpascoe135/dab GitHub Wiki
#Extension 17 - Programme Type The Programme Type (PTy) feature allows programme contents to be categorized according to their intended audience.
The Programme Type feature is encoded in Extension 17 of FIG type 0 (FIG 0/17). It consists of at least one code from the international set of codes followed by an optional additional code. The Programme Type codes apply to all the audio components of the service. The language field allows the language of the primary service component to be signalled. In addition, one language can be signalled for the secondary service component(s). Figure 49 shows the structure of Programme Type field which is part of the Type 0 field (see also figure 4).

The following definitions apply:
###SId (Service Identifier): this 16-bit field shall identify the service (see clause 6.3.1).
###S/D (Static/Dynamic): this 1-bit flag shall indicate that the Programme Type codes, and language (when present), signalled in the programme type field, represent the current programme contents, as follows:
0: Programme Type codes and language (when present), may not represent the current programme contents;
1: Programme Type codes and language (when present), represent the current programme contents.
###P/S (Primary/Secondary): this 1-bit flag shall indicate whether the language refers to a primary or a secondary service component, as follows:
0: primary service component;
1: secondary service component.
If no language is signalled (language field absent, L flag = 0), then the P/S flag is meaningless and shall be set to "0".
###L (Language) flag: this 1-bit flag shall indicate whether or not the language field is present, as follows:
0: language field absent;
1: language field present.
###CC (Complementary Code) flag: this 1-bit flag shall indicate whether or not the complementary code field and the preceding Rfa and Rfu fields are present, as follows:
0: complementary code and preceding Rfa and Rfu fields absent;
1: complementary code and preceding Rfa and Rfu fields present.
###Rfa: this 4-bit field shall be reserved for future additions. The bits shall be set to zero until they are defined.
###Language: this 8-bit field shall indicate the language of the audio. It shall be coded according to TS 101 756 [16], tables 9 and 10.
###Rfa: this 2-bit field shall be reserved for future additions. The bits shall be set to zero until they are defined.
###Rfu: this 1-bit field shall be reserved for extending the international code field range. The bit shall be set to "0" for the currently specified international code field.
###Int. (International) code: this 5-bit field shall specify the basic Programme Type (PTy) category. This code is chosen from an international table (see clause 8.1.3.2).
###Rfa: this 2-bit field shall be reserved for future additions. The bits shall be set to zero until they are defined.
###Rfu: this 1-bit field shall be reserved for extending the complementary code field range. The bit shall be set to "0" for the currently specified complementary code field.
###Comp. (Complementary) code: this 5-bit field shall specify the complementary PTy category which should be chosen from an international table (see clause 8.1.3.2).