GetBootVersion

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
    FAN OPN-2500
    FAM OPN-6000
    Examples of version strings are:
    FANV0030 = OPN-2500 Bootloader version 0.30
    FAMV0030 = OPN-6000 Bootloader version 0.30
    Syntax char GetBootVersion( 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();
        }
    }