目次

last update: 2024/09

embOS RTOS用BSPパッケージ
第7章: 圧縮・解凍機能のデモサンプル
評価ボード:AP-RX651-0A




テストサンプル

Demo Sample Application Folder:

Application
 └ _Exclude
     ├ COMPRESS  ..... 圧縮・解凍機能のデモサンプル
Sample説明
COMPRESS_StartemCompress APIを使用して圧縮バイナリデータを解凍し、結果を表示します
CTG_BenchDecodeemCompress ToGo APIを使用して各種転送モードでの解凍処理のパフォーマンスを確認します
CTG_BenchEncodeemCompress ToGo APIを使用して各種転送モードでの圧縮処理のパフォーマンスを確認します
CTG_F2M_DecodeFunction to Memory(F2M)転送モード設定で解凍処理のパフォーマンスを確認
CTG_F2M_EncodeFunction to Memory(F2M)転送モード設定で圧縮処理のパフォーマンスを確認
CTG_M2F_DecodeMemory to Function(M2F)転送モード設定で解凍処理のパフォーマンスを確認
CTG_M2F_EncodeMemory to Function(M2F)転送モード設定で圧縮処理のパフォーマンスを確認
CTG_M2M_DecodeMemory to Memory(M2M)転送モード設定で解凍処理のパフォーマンスを確認
CTG_M2M_EncodeMemory to Memory(M2M)転送モード設定で圧縮処理のパフォーマンスを確認

関連設定ファイル:

Config
 ├ COMPRESS_Conf.h  .... emCompress Embedライブラリのコンフィグレーション設定
 ├ CTG_Conf.h  ......... emCompress ToGoライブラリのコンフィグレーション設定
 └ IO
    ├ COMPRESS_ConfigIO.c  ......... エラーのコールバック処理

ビルド・動作確認方法

プロジェクト設定では「\Application\_Exclude\COMPRESS」フォルダはビルド対象外に設定しています。以下のどちらかの方法で動作確認を行うサンプルアプリケーションを選択します。

  1. 「\_Exclude\COMPRESS」フォルダ下の対象テストサンプルファイルをビルド対象設定の「\Application」フォルダ下にコピーします。
  2. 「\_Exclude\COMPRESS」フォルダ下の対象テストサンプルファイルのみ「ビルド対象外」の設定を解除します。

プロジェクトを再ビルドし、評価ボードに接続してデバッグセッションを開始します。
デバッガのIOコンソールのログ画面から結果を確認します。


テストレポート

Sample: CTG_BenchDecode

Debug IO Console:

SEGGER Software Evaluation Sample
Eval Board: AP-RX651-0A (RX651 RXv2 @96MHz)
RTOS: SEGGER embOS
------------------------------------------------
Memory to Memory decompression
Successfully expanded 9224 Bytes to 20895 Bytes.

Function to Memory decompression
Successfully expanded 9224 Bytes to 20895 Bytes.

Memory to Function decompression
Successfully expanded 9224 Bytes to 20895 Bytes.

Function to Function decompression
Successfully expanded 9224 Bytes to 20895 Bytes.

Stream decompression
Successfully expanded 9224 Bytes to 20895 Bytes.

Sample: CTG_BenchEncode

Debug IO Console:

SEGGER Software Evaluation Sample
Eval Board: AP-RX651-0A (RX651 RXv2 @96MHz)
RTOS: SEGGER embOS
------------------------------------------------
Memory to Memory compression
Successfully compressed 20895 Bytes to 9224 Bytes.

Function to Memory compression
Successfully compressed 20895 Bytes to 9224 Bytes.

Memory to Function compression
Successfully compressed 20895 Bytes to 9224 Bytes.

Function to Function compression
Successfully compressed 20895 Bytes to 9224 Bytes.

Stream compression
Successfully compressed 20895 Bytes to 9224 Bytes.

Fast Memory to Memory compression
Successfully compressed 20895 Bytes to 9224 Bytes.

Sample: COMPRESS_Start

Debug IO Console:

SEGGER Software Evaluation Sample
Eval Board: AP-RX651-0A (RX651 RXv2 @96MHz)
RTOS: SEGGER embOS
------------------------------------------------
**********************************************************************
*               (c) SEGGER Microcontroller GmbH & Co. KG             *
*                        The Embedded Experts                        *
*                           www.segger.com                           *
**********************************************************************

SEGGER emCompress demonstration.
Processing bitstream:
Sample data for emCompress demonstration.
===========================================

                  *!
                *  !
              *    !
            *      !
          *        !
        *          ! 
      *            !
    *              !
   *               !
  *                !
  *                ! 
  *                !  
   *               !  
    *              !                    
      *            !
        *          ! 
          *        !
            *      !
              *    !
                *  !
                  *!
                   !*
                   !  *
                   !    *
                   !      *
                   !        *
                   !          *
                   !            *
                   !              *
                   !               *
                   !                *
                   !                *
                   !                *
                   !               *
                   !              *
                   !            *
                   !          *
                   !        *
                   !      *
                   !    *
                   !  *
                   !*
                  *!
                *  !
              *    !
            *      !
          *        !
        *          ! 
      *            !
    *              !
   *               !
  *                !
  *                ! 
  *                !  
   *               !  
    *              !                    
      *            !
        *          ! 
          *        !
            *      !
              *    !
                *  !
                  *!
                   !*
                   !  *
                   !    *
                   !      *
                   !        *
                   !          *
                   !            *
                   !              *
                   !               *
                   !                *
                   !                *
                   !                *
                   !               *
                   !              *
                   !            *
                   !          *
                   !        *
                   !      *
                   !    *
                   !  *
                   !*
                  *!
                *  !
              *    !
            *      !
          *        !
        *          ! 
      *            !
    *              !
   *               !
  *                !
  *                ! 
  *                !  
   *               !  
    *              !                    
      *            !
        *          ! 
          *        !
            *      !
              *    !
                *  !
                  *!
                   !*
                   !  *
                   !    *
                   !      *
                   !        *
                   !          *
                   !            *
                   !              *
                   !               *
                   !                *
                   !                *
                   !                *
                   !               *
                   !              *
                   !            *
                   !          *
                   !        *
                   !      *
                   !    *
                   !  *
                   !*
                  *!
                *  !
              *    !
            *      !
          *        !
        *          ! 
      *            !
    *              !
   *               !
  *                !
  *                ! 
  *                !  
   *               !  
    *              !                    
      *            !
        *          ! 
          *        !
            *      !
              *    !
                *  !
                  *!
                   !*
                   !  *
                   !    *
                   !      *
                   !        *
                   !          *
                   !            *
                   !              *
                   !               *
                   !                *
                   !                *
                   !                *
                   !               *
                   !              *
                   !            *
                   !          *
                   !        *
                   !      *
                   !    *
                   !  *
                   !*


To be, or not to be, that is the question:
Whether 'tis Nobler in the mind to suffer
The Slings and Arrows of outrageous Fortune,
Or to take Arms against a Sea of troubles,
And by opposing end them: to die, to sleep
No more; and by a sleep, to say we end
The Heart-ache, and the thousand Natural shocks
That Flesh is heir to? 'Tis a consummation
Devoutly to be wished. To die, to sleep,
To sleep, perchance to Dream; aye, there's the rub,
For in that sleep of death, what dreams may come,
When we have shuffled off this mortal coil,
Must give us pause. There's the respect
That makes Calamity of so long life:
For who would bear the Whips and Scorns of time,
The Oppressor's wrong, the proud man's Contumely,
The pangs of despised Love, the Laws delay,
The insolence of Office, and the Spurns
That patient merit of the unworthy takes,
When he himself might his Quietus make
With a bare Bodkin? Who would Fardels bear,
To grunt and sweat under a weary life,
But that the dread of something after death,
The undiscovered Country, from whose bourn
No Traveller returns, Puzzles the will,
And makes us rather bear those ills we have,
Than fly to others that we know not of.
Thus Conscience does make Cowards of us all,
And thus the Native hue of Resolution
Is sicklied o'er, with the pale cast of Thought,
And enterprises of great pitch and moment,
With this regard their Currents turn awry,
And lose the name of Action. Soft you now,
The fair Ophelia? Nymph, in thy Orisons
Be all my sins remembered.

** End of file **

OK.
前の章

MODBUS通信(RS232経由)

次の章

セキュリティ機能の評価