パラメータを適応変化させる事により圧縮率を向上させた動的ライス・ゴロム符号を利用した可逆圧縮方式。圧縮ソフト、圧縮率のMATLABシミュレーションは詳細はInterface誌2011年8月号に掲載されるRX62Nマイコン連動特集にて掲載予定。

Dependencies:   mbed

Committer:
lynxeyed_atsu
Date:
Wed Mar 30 06:05:24 2011 +0000
Revision:
0:d920d64db582
alpha

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lynxeyed_atsu 0:d920d64db582 1 #ifndef I2S_IRQ_TEST_H_
lynxeyed_atsu 0:d920d64db582 2 #define I2S_IRQ_TEST_H_
lynxeyed_atsu 0:d920d64db582 3
lynxeyed_atsu 0:d920d64db582 4
lynxeyed_atsu 0:d920d64db582 5 #include "lpc_types.h"
lynxeyed_atsu 0:d920d64db582 6 #include "lpc17xx_i2s.h"
lynxeyed_atsu 0:d920d64db582 7 #include "lpc17xx_libcfg.h"
lynxeyed_atsu 0:d920d64db582 8 #include "lpc17xx_pinsel.h"
lynxeyed_atsu 0:d920d64db582 9 //#include "debug_frmwrk.h"
lynxeyed_atsu 0:d920d64db582 10 #include "i2s_irq_test.h"
lynxeyed_atsu 0:d920d64db582 11
lynxeyed_atsu 0:d920d64db582 12
lynxeyed_atsu 0:d920d64db582 13 /************************** PRIVATE DEFINITIONS *************************/
lynxeyed_atsu 0:d920d64db582 14 /** Max buffer length */
lynxeyed_atsu 0:d920d64db582 15 #define BUFFER_SIZE 0x400
lynxeyed_atsu 0:d920d64db582 16 /** I2S Buffer Source Address is AHBRAM1_BASE that used for USB RAM purpose, but
lynxeyed_atsu 0:d920d64db582 17 * it is not used in this example, so this memory section can be used for general purpose
lynxeyed_atsu 0:d920d64db582 18 * memory
lynxeyed_atsu 0:d920d64db582 19 */
lynxeyed_atsu 0:d920d64db582 20 #define I2S_BUFFER_SRC LPC_AHBRAM1_BASE //0x20080000
lynxeyed_atsu 0:d920d64db582 21 /** I2S Buffer Destination Address is (AHBRAM1_BASE + 0x100UL) that used for USB RAM purpose, but
lynxeyed_atsu 0:d920d64db582 22 * it is not used in this example, so this memory section can be used for general purpose
lynxeyed_atsu 0:d920d64db582 23 * memory
lynxeyed_atsu 0:d920d64db582 24 */
lynxeyed_atsu 0:d920d64db582 25 #define I2S_BUFFER_DST (I2S_BUFFER_SRC+0x1000UL) //0x20081000
lynxeyed_atsu 0:d920d64db582 26
lynxeyed_atsu 0:d920d64db582 27 #define RXFIFO_EMPTY 0
lynxeyed_atsu 0:d920d64db582 28 #define TXFIFO_FULL 8
lynxeyed_atsu 0:d920d64db582 29
lynxeyed_atsu 0:d920d64db582 30 extern "C" void I2S_IRQHandler(void);
lynxeyed_atsu 0:d920d64db582 31
lynxeyed_atsu 0:d920d64db582 32
lynxeyed_atsu 0:d920d64db582 33
lynxeyed_atsu 0:d920d64db582 34 extern void Buffer_Init(void);
lynxeyed_atsu 0:d920d64db582 35 extern Bool Buffer_Verify(void);
lynxeyed_atsu 0:d920d64db582 36 extern void print_menu(void);
lynxeyed_atsu 0:d920d64db582 37 extern int c_entry(void);
lynxeyed_atsu 0:d920d64db582 38 extern void mbed_i2s_init(void);
lynxeyed_atsu 0:d920d64db582 39
lynxeyed_atsu 0:d920d64db582 40
lynxeyed_atsu 0:d920d64db582 41 extern volatile uint8_t I2STXDone;
lynxeyed_atsu 0:d920d64db582 42 extern volatile uint8_t I2SRXDone;
lynxeyed_atsu 0:d920d64db582 43
lynxeyed_atsu 0:d920d64db582 44 extern volatile uint32_t *I2STXBuffer;
lynxeyed_atsu 0:d920d64db582 45 extern volatile uint32_t *I2SRXBuffer;
lynxeyed_atsu 0:d920d64db582 46
lynxeyed_atsu 0:d920d64db582 47 extern volatile uint32_t I2SReadLength;
lynxeyed_atsu 0:d920d64db582 48 extern volatile uint32_t I2SWriteLength;
lynxeyed_atsu 0:d920d64db582 49
lynxeyed_atsu 0:d920d64db582 50 extern uint8_t tx_depth_irq;
lynxeyed_atsu 0:d920d64db582 51 extern uint8_t rx_depth_irq;
lynxeyed_atsu 0:d920d64db582 52 extern uint8_t dummy;
lynxeyed_atsu 0:d920d64db582 53
lynxeyed_atsu 0:d920d64db582 54
lynxeyed_atsu 0:d920d64db582 55 #endif