GetApplVersion

Availability All terminals
Description This function returns the version of the Bootloader of the device. The version is returned in an 8 character string and is terminated by a null character.

  • The first character defines the device Family ('F' = devices with nRF528xx CPU)
  • The second character defines the software type (`A` for Bootloader; `B` for OS; `F` for Application )
  • The third character defines the device model (`N` for OPN-2500; `M` for OPN-6000)
  • Code Terminal
    FFN OPN-2500
    FFM OPN-6000
    Examples of version strings are:
    FFN4076C = OPN-2500 Application 4076 rev. C
    FFM4076C = OPN-6000 Application 4076 rev. C
    Syntax char GetApplVersion( void );
    Arguments None
    Returns A pointer to a zero terminated string with the version number.
    Remarks None
    Example
    #include <stdio.h>
    #include "lib.h"
    
    void main( void )
    {
        int key;
    
        ResetKey();
        printf("\nPress trigger key");
        for(;;)
        {
            if( (key = getchar()) != EOF)
            {
                ResetKey();
                switch( key )
                {
                    case TRIGGER_KEY:
                        Sound( TSTANDARD, VHIGH, SHIGH, 0);
                        printf("\nBootloader = %s", GetBootVersion());
                        printf("\nO/S = %s", GetOsVersion());
                        printf("\nAppl. = %s", GetApplVersion());
                        break;
                    default:
                        Sound( TCLICK, VHIGH, SLOW, 0);
                        break;
                }
            }
            Idle();
        }
    }