repo_name
stringlengths 6
97
| path
stringlengths 3
341
| text
stringlengths 8
1.02M
|
|---|---|---|
7eggert/L293_shield_v1
|
L293_shield_v1.h
|
// Simple Motor Shield sketch
// -----------------------------------
//
// by <NAME> <<EMAIL>>, August 2016
//
// Open Source / Public Domain
//
// Inspired by a work from arduino.cc user "Krodal".
// June 2012
// Open Source / Public Domain
//
// Using Arduino 1.16.10
//
// A simple sketch for the motor shield,
// without using the Adafruit library.
//
// The outputs can be used for DC-motors
// (either full H-bridge or just On and Off), lights,
// relays, solenoids, etc.
// But stepper motors can not be used !
// Servo motors can be used with the default Servo library.
//
// A maximum of 4 DC motors can be used with full-bridge,
// or a maximum of 8 normal outputs, or a combination.
// Two servo motors can always be used, they use the +5V
// of the Arduino board, so the voltage regulator could
// get hot.
//
// Tested with an Ebay clone with the Arduino Uno.
//
// Parts of the code are from an old Adafruit Motor Shield
// library, which was public domain at that time.
// This code is also public domain
//
// This simplified program is using the normal
// Arduino library functions as much as possible.
//
// The motors will make a whistling sound,
// due to the analogWrite() PWM frequency.
// The Adafruit library is specifically designed to avoid
// this, so use the Adafruit library for a better result.
//
//
//
// Connector usage
// ---------------
// The order is different than what you would expect.
// If the Arduino (Uno) board is held with the USB
// connector to the left, the positive (A) side is
// at the top (north), and the negative (B) side is
// the bottom (south) for both headers.
//
// Connector X1:
// M1 on outside = MOTOR1_A (+) north
// M1 on inside = MOTOR1_B (-)
// middle = GND
// M2 on inside = MOTOR2_A (+)
// M2 on outside = MOTOR2_B (-) south
//
// Connector X2:
// M3 on outside = MOTOR3_B (-) south
// M3 on inside = MOTOR3_A (+)
// middle = GND
// M4 on inside = MOTOR4_B (-)
// M4 on outside = MOTOR4_A (+) north
//
//
// -------------------------------
// | -+s |
// | -+s |
// M1 A | | M4 A
// M1 B | | M4 B
// GND | | GND
// M2 A | | M3 A
// M2 B | | M3 B
// | ..... |
// -------------------------------
// + -
//
//
//
// Pin usage with the Motorshield
// ---------------------------------------
// Analog pins: not used at all
// A0 ... A5 are still available
// They all can also be used as digital pins.
// Also I2C (A4=SDA and A5=SCL) can be used.
// These pins have a breadboard area on the shield.
// Digital pins: used: 3,4,5,6,7,8,9,10,11,12
// Pin 9 and 10 are only used for the servo motors.
// Already in use: 0 (RX) and 1 (TX).
// Unused: 2,13
// Pin 2 has an soldering hole on the board,
// easy to connect a wire.
// Pin 13 is also connected to the system led.
// I2C is possible, but SPI is not possible since
// those pins are used.
//
#ifndef __L293_shield_included__
#define __L293_shield_included__
class t_L293 final {
public:
static const char dir_forward = 0x2;
static const char dir_rewind = 0x1;
static const char dir_stop = 0x0;
/* bits in latch */
static const char latches[8];
/* pins for controlling motors */
static const char PWM_Pin[4];
static const char Servo_Pin[2];
/* Low level functions:
* shiftWrite: Write bit(s) to the latch
* shiftWrite8:Write full latch
*/
void shiftWrite(int n, int value);
void shiftWrite(int n_high, int n_low, int values);
void shiftWrite8(char newlatch);
/* DC motors being connected to a pair of pins
*
* DCMotor_set_speed will actually pulse the outputs,
* DCMotor_set_speed(0) will cause the outputs to be disconnected
*/
void DCMotor_set_speed(int n, int speed);
void DCMotor_set(int n, int dir) {
shiftWrite(latches[n * 2], latches[n * 2 + 1], dir);
} void DCMotor_set(int n, int dir, int speed) {
DCMotor_set(n, dir);
DCMotor_set_speed(n, speed);
}
void DCMotor_set_speed_dir(int n, int speed) {
if (speed < 0) {
DCMotor_set(n, dir_rewind, -speed);
} else {
DCMotor_set(n, dir_forward, speed);
}
}
// direction will be cleared
void DCMotor_brake(int n) {
DCMotor_set(n, dir_stop, 0xff);
}
// direction will NOT be cleared
void DCMotor_release(int n) {
// DCMotor_set_speed(n, 0);
digitalWrite(PWM_Pin[n], 0);
}
/* DC motors being connected to one pin and GND
*
* DC1Motor_set_pairspeed will actually pulse the outputs,
* DC1Motor_set_pairspeed(0) will cause the outputs to be disconnected
*/
void DC1Motor_set_pair_speed(int n, int speed) {
DCMotor_set_speed(n >> 1, speed);
}
void DC1Motor_set(int n, int on_off) {
shiftWrite(latches[n], on_off);
}
void DC1Motor_set_all_speed(int speed) {
for (int n = 0; n < 4; n++)
DCMotor_set_speed(n, speed);
}
// enable/disable will not change the status,
// re-enabling or setting the speed will
// use the old values.
void DC1Motor_enable_all() {
digitalWrite(PWM_Pin[0], 1);
digitalWrite(PWM_Pin[1], 1);
digitalWrite(PWM_Pin[2], 1);
digitalWrite(PWM_Pin[3], 1);
}
void DC1Motor_disable_all() {
digitalWrite(PWM_Pin[0], 0);
digitalWrite(PWM_Pin[1], 0);
digitalWrite(PWM_Pin[2], 0);
digitalWrite(PWM_Pin[3], 0);
}
void DC1Motor_enable_all(int enabled) {
digitalWrite(PWM_Pin[0], enabled);
digitalWrite(PWM_Pin[1], enabled);
digitalWrite(PWM_Pin[2], enabled);
digitalWrite(PWM_Pin[3], enabled);
}
private:
/* pins used for communication with latch */
static const char IC74HC595N_LATCH = 12; // aka. STCP
static const char IC74HC595N_CLK = 4; // aka. SHCP
static const char IC74HC595N_ENABLE = 7; // aka. ~OE
static const char IC74HC595N_DATA = 8; // aka. DS
static char latch_copy;
public: // but don't use it, please
t_L293();
} L293;
const char
t_L293::latches[8] = { 2, 3, 1, 4, 5, 7, 0, 6 };
const char
t_L293::PWM_Pin[4] = { 11, 3, 6, 5 };
const char
t_L293::Servo_Pin[2] = { 10, 9 };
char
t_L293::latch_copy = 0;
t_L293::t_L293()
{
pinMode(IC74HC595N_LATCH, OUTPUT);
pinMode(IC74HC595N_ENABLE, OUTPUT);
pinMode(IC74HC595N_DATA, OUTPUT);
pinMode(IC74HC595N_CLK, OUTPUT);
// Set pins for shift register to default value (low);
digitalWrite(IC74HC595N_DATA, LOW);
digitalWrite(IC74HC595N_LATCH, LOW);
digitalWrite(IC74HC595N_CLK, LOW);
// Enable the shift register, set Enable pin Low.
digitalWrite(IC74HC595N_ENABLE, LOW);
// avoid variables here, so we don't unnecessarily include the variable arrays
pinMode(PWM_Pin[0], OUTPUT);
pinMode(PWM_Pin[1], OUTPUT);
pinMode(PWM_Pin[2], OUTPUT);
pinMode(PWM_Pin[3], OUTPUT);
DC1Motor_disable_all(); // disconnect ports
// the digitalWrite above will cause a slight delay between setting
// IC74HC595N_* to low and clearing the latches
shiftWrite8(0);
// now all connectors will connect to ground on
// DCMotor_set_speed()
}
void
t_L293::shiftWrite(int n, int value)
{
char new_latch_copy = latch_copy;
bitWrite(new_latch_copy, n, value & 1);
if (latch_copy != new_latch_copy)
shiftWrite8(new_latch_copy);
}
void
t_L293::shiftWrite(int n_high, int n_low, int values)
{
char new_latch_copy = latch_copy;
bitWrite(new_latch_copy, n_high, (values >> 1) & 1);
bitWrite(new_latch_copy, n_low, (values >> 0) & 1);
if (latch_copy != new_latch_copy)
shiftWrite8(new_latch_copy);
}
void
t_L293::shiftWrite8(char newlatch)
{
// Use the default Arduino 'shiftOut()' function to
// shift the bits with the IC74HC595N_CLK as clock pulse.
// The 74HC595 shiftregister wants the MSB first.
// After that, generate a latch pulse with IC74HC595N_LATCH.
latch_copy = newlatch;
shiftOut(IC74HC595N_DATA, IC74HC595N_CLK, MSBFIRST, newlatch);
delayMicroseconds(5); // For safety, not really needed.
digitalWrite(IC74HC595N_LATCH, HIGH);
delayMicroseconds(5); // For safety, not really needed.
digitalWrite(IC74HC595N_LATCH, LOW);
}
void
t_L293::DCMotor_set_speed(int n, int speed)
{
if (speed & ~0xff) // not in 0..255
return;
if (n & ~0x03) // not in 0..3
return;
analogWrite(PWM_Pin[n], speed);
}
#endif
|
cimeq/amazon-freertos
|
lib/cbor/src/aws_cbor_mem.c
|
/*
* Amazon FreeRTOS CBOR Library V1.0.1
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
/*
* Section: Included Files
*/
#include "aws_cbor_internals.h"
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
/** @brief Checks if CBOR cursor is out of bounds */
#define CursorOutOfBounds( cbor_data ) \
OverflowOccured( ( cbor_data ) ) || UnderflowOccured( ( cbor_data ) )
/** @brief Checks if CBOR cursor is past the end of the buffer */
#define OverflowOccured( cbor_data ) \
( ( cbor_data )->buffer_end < ( cbor_data )->cursor )
/** @brief Checks if CBOR cursor is before the start of the buffer */
#define UnderflowOccured( cbor_data ) \
( ( cbor_data )->buffer_start > ( cbor_data )->cursor )
/** @brief Calculates the size of the CBOR buffer */
#define BufferSize( cbor_data ) \
( ( cbor_data )->buffer_end - ( cbor_data )->buffer_start + 1 )
/**
* @brief Doubles the size of the CBOR buffer
*
* Reallocates the CBOR buffer with double the size of the current buffer size.
* Sets err if unable to reallocate the space.
*/
static void CBOR_Reallocate( cbor_handle_t pxCbor_data )
{
assert( NULL != pxCbor_data );
/* Multiply by 1.5, more efficient on some compilers than just doing *1.5 */
/* https://github.com/facebook/folly/blob/master/folly/docs/FBVector.md */
cbor_ssize_t xNew_size = BufferSize( pxCbor_data ) * 3;
xNew_size /= 2;
cbor_byte_t * pxNew_start = pxCBOR_realloc( pxCbor_data->buffer_start, xNew_size );
if( NULL == pxNew_start )
{
pxCbor_data->err = eCBOR_ERR_INSUFFICENT_SPACE;
return;
}
/* Adjust pointers to new location */
cbor_ssize_t xCursor_index = pxCbor_data->cursor - pxCbor_data->buffer_start;
pxCbor_data->buffer_start = pxNew_start;
pxCbor_data->buffer_end = pxCbor_data->buffer_start + xNew_size - 1;
pxCbor_data->cursor = pxCbor_data->buffer_start + xCursor_index;
}
/**
* @brief Copies memory into the CBOR buffer "front to back."
*
* Copies memory starting from the lowest address and ending with the highest
* address.
*/
static void CBOR_MemCopyLowToHigh( cbor_handle_t pxCbor_data,
const cbor_byte_t * pxSource,
cbor_ssize_t xLength )
{
assert( NULL != pxCbor_data );
assert( NULL != pxSource );
assert( 0 <= xLength );
assert( pxCbor_data->cursor < pxSource );
for( cbor_int_t xI = 0; xI < xLength; xI++ )
{
CBOR_AssignAndIncrementCursor( pxCbor_data, *pxSource++ );
if( pxCbor_data->err )
{
return;
}
}
}
/**
* @brief Copies memory into the CBOR buffer "back to front."
*
* Copies memory starting from the highest address and ending with the lowest
* address.
*/
static void CBOR_MemCopyHighToLow( cbor_handle_t pxCbor_data,
const cbor_byte_t * pxSource,
cbor_ssize_t xLength )
{
assert( NULL != pxCbor_data );
assert( NULL != pxSource );
assert( 0 <= xLength );
assert( pxCbor_data->cursor > pxSource );
pxSource += ( xLength - 1 );
pxCbor_data->cursor += ( xLength - 1 );
for( cbor_int_t xI = 0; xI < xLength; xI++ )
{
CBOR_AssignAndDecrementCursor( pxCbor_data, *pxSource-- );
/* assert, because else case is unreachable, unlike in 'LowToHigh' */
assert( eCBOR_ERR_NO_ERROR == pxCbor_data->err );
}
pxCbor_data->cursor += xLength + 1;
}
void CBOR_AssignAndIncrementCursor( cbor_handle_t pxCbor_data,
cbor_byte_t xInput )
{
assert( NULL != pxCbor_data );
assert( !UnderflowOccured( pxCbor_data ) );
while( OverflowOccured( pxCbor_data ) )
{
CBOR_Reallocate( pxCbor_data );
if( eCBOR_ERR_NO_ERROR != pxCbor_data->err )
{
return;
}
}
*( pxCbor_data->cursor )++ = xInput;
( pxCbor_data->err ) = eCBOR_ERR_NO_ERROR;
}
void CBOR_AssignAndDecrementCursor( cbor_handle_t pxCbor_data,
cbor_byte_t xInput )
{
assert( NULL != pxCbor_data );
assert( !UnderflowOccured( pxCbor_data ) );
while( OverflowOccured( pxCbor_data ) )
{
CBOR_Reallocate( pxCbor_data );
if( eCBOR_ERR_NO_ERROR != pxCbor_data->err )
{
return;
}
}
*( pxCbor_data->cursor )-- = xInput;
( pxCbor_data->err ) = eCBOR_ERR_NO_ERROR;
}
void CBOR_MemCopy( cbor_handle_t pxCbor_data,
const void * pxInput,
cbor_ssize_t xLength )
{
assert( NULL != pxCbor_data );
assert( NULL != pxInput );
assert( 0 <= xLength );
const cbor_byte_t * pxSource = pxInput;
if( pxCbor_data->cursor < pxSource )
{
CBOR_MemCopyLowToHigh( pxCbor_data, pxSource, xLength );
}
else if( pxCbor_data->cursor > pxSource )
{
CBOR_MemCopyHighToLow( pxCbor_data, pxSource, xLength );
}
else
{
/* Copying from a location into itself, so we can skip the copy part and
* just move the cursor. Maybe a user error, but not necessarily*/
pxCbor_data->cursor += xLength;
}
}
cbor_ssize_t CBOR_DataItemSize( cbor_handle_t pxCbor_data )
{
assert( NULL != pxCbor_data );
return CBOR_DataItemSizePtr( pxCbor_data->cursor );
}
cbor_ssize_t CBOR_DataItemSizePtr( const cbor_byte_t * pxPtr )
{
assert( NULL != pxPtr );
cbor_byte_t xData_head = *pxPtr;
cbor_byte_t xMajor_type = xData_head & CBOR_MAJOR_TYPE_MASK;
switch( xMajor_type )
{
case CBOR_POS_INT:
return CBOR_IntSize( pxPtr );
case CBOR_STRING:
return CBOR_StringSize( pxPtr );
case CBOR_MAP:
return CBOR_MapSize( pxPtr );
default:
break;
}
return 0;
}
void CBOR_ValueResize( cbor_handle_t pxCbor_data,
cbor_ssize_t xNew_size )
{
assert( NULL != pxCbor_data );
cbor_ssize_t xOld_size = CBOR_DataItemSize( pxCbor_data );
if( 0 == xOld_size )
{
return;
}
cbor_byte_t * pxCurrent_place = pxCbor_data->cursor;
cbor_byte_t * pxNext_key = pxCurrent_place + xOld_size;
cbor_byte_t * pxKey_position = pxCurrent_place + xNew_size;
cbor_ssize_t xRemaining_length = pxCbor_data->map_end - pxNext_key + 1;
assert( 0 <= xRemaining_length );
pxCbor_data->cursor = pxKey_position;
CBOR_MemCopy( pxCbor_data, pxNext_key, xRemaining_length );
assert( eCBOR_ERR_NO_ERROR == pxCbor_data->err );
pxCbor_data->cursor = pxCurrent_place;
}
|
cimeq/amazon-freertos
|
lib/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/pic32mzef/NetworkInterface_eth.c
|
<gh_stars>1-10
/*******************************************************************************
* Network Interface file
*
* Summary:
* Network Interface file for FreeRTOS-Plus-TCP stack
*
* Description:
* - Interfaces PIC32 to the FreeRTOS TCP/IP stack
*******************************************************************************/
/*******************************************************************************
* File Name: pic32_NetworkInterface.c
* Copyright 2017 Microchip Technology Incorporated and its subsidiaries.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do
* so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE
*******************************************************************************/
#include <sys/kmem.h>
#include "FreeRTOS.h"
#include "semphr.h"
#include "event_groups.h"
#include "FreeRTOS_IP.h"
#include "FreeRTOS_IP_Private.h"
#include "NetworkInterface.h"
#include "NetworkBufferManagement.h"
#include "NetworkInterface.h"
#include "NetworkConfig.h"
#include "peripheral/eth/plib_eth.h"
#include "system_config.h"
#include "system/console/sys_console.h"
#include "system/debug/sys_debug.h"
#include "system/command/sys_command.h"
#include "driver/ethmac/drv_ethmac.h"
#include "driver/miim/drv_miim.h"
#include "tcpip/tcpip.h"
#include "tcpip/src/tcpip_private.h"
#include "tcpip/src/link_list.h"
#ifdef PIC32_USE_ETHERNET
/* local definitions and data */
/* debug messages */
#if ( PIC32_MAC_DEBUG_MESSAGES != 0 )
#define PIC32_MAC_DbgPrint( format, ... ) SYS_CONSOLE_PRINT( format, ## __VA_ARGS__ )
#else
#define PIC32_MAC_DbgPrint( format, ... )
#endif /* (PIC32_MAC_DEBUG_MESSAGES != 0) */
typedef enum
{
PIC32_MAC_EVENT_INIT_NONE = 0x000, /* no event/invalid */
PIC32_MAC_EVENT_INIT_DONE = 0x001, /* initialization done event */
PIC32_MAC_EVENT_TIMEOUT = 0x002, /* periodic timeout event */
PIC32_MAC_EVENT_IF_PENDING = 0x004, /* an interface event signal: RX, TX, errors. etc. */
} PIC32_MAC_EVENT_TYPE;
static TCPIP_STACK_HEAP_HANDLE macHeapHandle;
static const TCPIP_MAC_OBJECT * macObject; /* the one and only MAC object; */
static SYS_MODULE_OBJ macObjHandle; /* the MAC object instance, obtained at initialization */
static TCPIP_MAC_HANDLE macCliHandle; /* client handle */
static volatile SYS_STATUS macObjStatus; /* current MAC status */
static TaskHandle_t macTaskHandle;
static TimerHandle_t macTmrHandle;
static bool macLinkStatus; /* true if link is ON */
/* local prototypes */
static bool StartInitMac( void );
static void StartInitCleanup( void );
static void SetMacCtrl( TCPIP_MAC_MODULE_CTRL * pMacCtrl );
static bool MacSyncFunction( void * synchHandle,
TCPIP_MAC_SYNCH_REQUEST req );
/* the PIC32 MAC task function */
static void MacHandlerTask( void * params );
/* MAC interrupt event function */
static void MAC_EventFunction( TCPIP_MAC_EVENT event,
const void * eventParam );
/* timer callback for link maintenance, etc; */
static void MacTmrCallback( TimerHandle_t xTimer );
/* MAC RX packets functions */
static void MacRxPackets( void );
static void MacProcessRxPacket( TCPIP_MAC_PACKET * pRxPkt );
/* memory allocation mapping to FreeRTOS */
static void * _malloc( size_t nBytes )
{
return pvPortMalloc( nBytes );
}
/*-----------------------------------------------------------*/
static void * _calloc( size_t nElems,
size_t elemSize )
{
size_t nBytes = nElems * elemSize;
void * ptr = pvPortMalloc( nBytes );
if( ptr != 0 )
{
memset( ptr, 0, nBytes );
}
return ptr;
}
/*-----------------------------------------------------------*/
static void _free( void * pBuff )
{
vPortFree( pBuff );
}
/* extern references */
/* */
/* use the configuration data from the system_init.c */
extern const TCPIP_NETWORK_CONFIG TCPIP_HOSTS_CONFIGURATION[];
/* BufferAllocation_2.c:: packet allocation function */
extern TCPIP_MAC_PACKET * PIC32_MacPacketAllocate( uint16_t pktLen,
uint16_t segLoadLen,
TCPIP_MAC_PACKET_FLAGS flags );
extern void PIC32_MacAssociate( TCPIP_MAC_PACKET * pRxPkt,
NetworkBufferDescriptor_t * pxBufferDescriptor,
size_t pktLength );
extern void PIC32_MacPacketOrphan( TCPIP_MAC_PACKET * pPkt );
/* cannot use the system_init.c::tcpipHeapConfig because FreeRTOS does not have a calloc function! */
/* we build it here! */
/* make sure we're running with external heap! Redirect to FreeRTOS. */
#if !defined( TCPIP_STACK_USE_EXTERNAL_HEAP ) || defined( TCPIP_STACK_USE_INTERNAL_HEAP ) || defined( TCPIP_STACK_USE_INTERNAL_HEAP_POOL )
#error "TCPIP_STACK_USE_EXTERNAL_HEAP should be defined for this project!"
#endif
static const TCPIP_STACK_HEAP_EXTERNAL_CONFIG tcpipHeapConfig =
{
.heapType = TCPIP_STACK_HEAP_TYPE_EXTERNAL_HEAP,
.heapFlags = TCPIP_STACK_HEAP_FLAG_ALLOC_UNCACHED | TCPIP_STACK_HEAP_FLAG_NO_MTHREAD_SYNC,
.heapUsage = TCPIP_STACK_HEAP_USE_DEFAULT,
.malloc_fnc = _malloc,
.calloc_fnc = _calloc,
.free_fnc = _free,
};
#if ( PIC32_MAC_DEBUG_COMMANDS != 0 )
static int _Command_MacInfo( SYS_CMD_DEVICE_NODE * pCmdIO,
int argc,
char ** argv );
static int _Command_NetInfo( SYS_CMD_DEVICE_NODE * pCmdIO,
int argc,
char ** argv );
static const SYS_CMD_DESCRIPTOR macCmdTbl[] =
{
{ "macinfo", _Command_MacInfo, ": Check MAC statistics" },
{ "netinfo", _Command_NetInfo, ":Net info" },
{"version", _Command_Version, ":Version info"},
};
#endif /* (PIC32_MAC_DEBUG_COMMANDS != 0) */
/* FreeRTOS implementation functions */
BaseType_t xNetworkInterfaceInitialise( void )
{
if( StartInitMac() )
{
return pdPASS;
}
return pdFAIL;
}
/*-----------------------------------------------------------*/
BaseType_t xNetworkInterfaceOutput( NetworkBufferDescriptor_t * const pxDescriptor,
BaseType_t xReleaseAfterSend )
{
TCPIP_MAC_RES macRes;
TCPIP_MAC_PACKET * pTxPkt;
BaseType_t retRes = pdFALSE;
if( ( pxDescriptor != 0 ) && ( pxDescriptor->pucEthernetBuffer != 0 ) && ( pxDescriptor->xDataLength != 0 ) )
{
TCPIP_MAC_PACKET ** ppkt = ( TCPIP_MAC_PACKET ** ) ( pxDescriptor->pucEthernetBuffer - PIC32_BUFFER_PKT_PTR_OSSET );
configASSERT( ( ( uint32_t ) ppkt & ( sizeof( uint32_t ) - 1 ) ) == 0 );
pTxPkt = *ppkt;
configASSERT( pTxPkt != 0 );
/* prepare the packet for transmission */
/* set the correct data length: */
configASSERT( pTxPkt->pDSeg->segSize >= pTxPkt->pDSeg->segLen );
pTxPkt->pDSeg->segLen = pxDescriptor->xDataLength;
pTxPkt->next = 0; /* unlink it */
macRes = ( macObject->TCPIP_MAC_PacketTx )( macCliHandle, pTxPkt );
if( macRes >= 0 )
{
retRes = pdTRUE;
pxDescriptor->pucEthernetBuffer = 0; /* it will be released by the MAC driver once it's transmitted */
iptraceNETWORK_INTERFACE_TRANSMIT();
}
/* else same error occurred; this normally should not happen! But the buffer is left in there so it shold be freed! */
/* The buffer has been sent so can be released. */
if( xReleaseAfterSend != pdFALSE )
{
vReleaseNetworkBufferAndDescriptor( pxDescriptor );
}
}
return retRes;
}
/************************************* Section: helper functions ************************************************** */
/* */
void PIC32_GetMACAddress( uint8_t macAdd[ 6 ] )
{
#if defined( __PIC32MZ__ ) || defined( __PIC32MX__ )
PLIB_ETH_MACGetAddress( ETH_ID_0, macAdd );
#else
#error "MAC Address: not supported architecture!"
#endif
}
/*-----------------------------------------------------------*/
const void * const PIC32_GetMacConfigData( void )
{
#if defined( __PIC32MZ__ ) || defined( __PIC32MX__ )
extern const TCPIP_MODULE_MAC_PIC32INT_CONFIG tcpipMACPIC32INTInitData;
return &tcpipMACPIC32INTInitData;
#else
#error "MAC Address: not supported architecture!"
#endif
}
/************************************* Section: worker code ************************************************** */
/* */
static bool StartInitMac( void )
{
TCPIP_MAC_MODULE_CTRL macCtrl;
SYS_MODULE_INIT moduleInit;
EventBits_t evBits;
/* perform some initialization of all variables so that we can cleanup what failed */
/* if something failed, the routine will be called again and again by FreeRTOS! */
macHeapHandle = 0;
macObjHandle = 0;
macCliHandle = 0;
macTmrHandle = 0;
macTaskHandle = 0;
macObject = TCPIP_HOSTS_CONFIGURATION[ 0 ].pMacObject; /* the MAC object we use */
macObjStatus = SYS_STATUS_UNINITIALIZED;
macLinkStatus = false;
int netUpFail = 0;
while( true )
{
/* start the allocator */
macHeapHandle = TCPIP_HEAP_Create( ( const TCPIP_STACK_HEAP_CONFIG * ) &tcpipHeapConfig, 0 );
if( macHeapHandle == 0 )
{
netUpFail = 1;
break;
}
if( TCPIP_PKT_Initialize( macHeapHandle, 0, 0 ) == false )
{
netUpFail = 2;
break;
}
moduleInit.sys.powerState = SYS_MODULE_POWER_RUN_FULL;
/* init the MAC */
SetMacCtrl( &macCtrl );
TCPIP_MAC_INIT macInit =
{
.moduleInit = { moduleInit.value },
.macControl = &macCtrl,
.moduleData = PIC32_GetMacConfigData(),
};
macObjHandle = ( macObject->TCPIP_MAC_Initialize )( TCPIP_MODULE_MAC_PIC32INT, &macInit.moduleInit );
if( macObjHandle == SYS_MODULE_OBJ_INVALID )
{
macObjHandle = 0;
netUpFail = 4;
break;
}
/* open the MAC */
macCliHandle = ( macObject->TCPIP_MAC_Open )( TCPIP_MODULE_MAC_PIC32INT, DRV_IO_INTENT_READWRITE );
if( macCliHandle == DRV_HANDLE_INVALID )
{
macCliHandle = 0;
netUpFail = 5;
break;
}
if( !( macObject->TCPIP_MAC_EventMaskSet )( macCliHandle, ( TCPIP_MAC_EV_RX_DONE | TCPIP_MAC_EV_TX_DONE | TCPIP_MAC_EV_RXTX_ERRORS ), true ) )
{
netUpFail = 6;
break;
}
/* completed the MAC initialization */
/* continue the initialization */
macTmrHandle = xTimerCreate( PIC32_MAC_TIMER_NAME, PIC32_MAC_TIMER_PERIOD, pdTRUE, 0, MacTmrCallback );
if( ( macTmrHandle == 0 ) || ( xTimerStart( macTmrHandle, 0 ) != pdPASS ) )
{
netUpFail = 8;
break;
}
/* spawn the PIC32 MAC task function */
/* and wait for its event signal */
macObjStatus = SYS_STATUS_BUSY;
if( xTaskCreate( MacHandlerTask, PIC32_MAC_TASK_NAME, PIC32_MAC_TASK_STACK_SIZE, xTaskGetCurrentTaskHandle(), PIC32_MAC_TASK_PRI, &macTaskHandle ) != pdPASS )
{ /* failed */
netUpFail = 9;
break;
}
xTaskNotifyWait( PIC32_MAC_EVENT_INIT_DONE, PIC32_MAC_EVENT_INIT_DONE, &evBits, PIC32_MAC_INIT_TIMEOUT );
if( ( evBits & PIC32_MAC_EVENT_INIT_DONE ) == 0 )
{ /* timed out */
netUpFail = 10;
break;
}
if( macObjStatus != SYS_STATUS_READY )
{ /* failed somehow ??? */
netUpFail = 11;
break;
}
netUpFail = 0;
break;
}
if( netUpFail == 0 )
{
PIC32_MAC_DbgPrint( " MAC Init success!\r\n" );
#if ( PIC32_MAC_DEBUG_COMMANDS != 0 )
/* create command group */
if( !SYS_CMD_ADDGRP( macCmdTbl, sizeof( macCmdTbl ) / sizeof( *macCmdTbl ), "mac", ": mac commands" ) )
{
PIC32_MAC_DbgPrint( "Failed to create MAC Commands\r\n" );
}
#endif /* (PIC32_MAC_DEBUG_COMMANDS != 0) */
return true;
}
else
{
StartInitCleanup();
PIC32_MAC_DbgPrint( "MAC Init failed: %d!\r\n", netUpFail );
return false;
}
}
/*-----------------------------------------------------------*/
static void StartInitCleanup( void )
{
if( macHeapHandle != 0 )
{
TCPIP_HEAP_Delete( macHeapHandle );
macHeapHandle = 0;
}
if( macObjHandle != 0 )
{
( macObject->TCPIP_MAC_Deinitialize )( macObjHandle );
macObjHandle = 0;
}
if( macTmrHandle != 0 )
{
xTimerDelete( macTmrHandle, portMAX_DELAY );
macTmrHandle = 0;
}
if( macTaskHandle != 0 )
{
vTaskDelete( macTaskHandle );
macTaskHandle = 0;
}
}
/*-----------------------------------------------------------*/
static void SetMacCtrl( TCPIP_MAC_MODULE_CTRL * pMacCtrl )
{
TCPIP_MAC_ADDR macAdd;
uint8_t unsetMACAddr[ 6 ] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; /* not set MAC address */
pMacCtrl->nIfs = 1;
pMacCtrl->mallocF = TCPIP_HEAP_MallocOutline;
pMacCtrl->callocF = TCPIP_HEAP_CallocOutline;
pMacCtrl->freeF = TCPIP_HEAP_FreeOutline;
pMacCtrl->memH = macHeapHandle;
pMacCtrl->pktAllocF = PIC32_MacPacketAllocate;
pMacCtrl->pktFreeF = ( TCPIP_MAC_PKT_FreeF ) _TCPIP_PKT_FREE_FNC;
pMacCtrl->pktAckF = ( TCPIP_MAC_PKT_AckF ) _TCPIP_PKT_ACK_FNC;
pMacCtrl->synchF = MacSyncFunction;
pMacCtrl->eventF = MAC_EventFunction;
pMacCtrl->eventParam = 0;
pMacCtrl->moduleId = TCPIP_MODULE_MAC_PIC32INT;
pMacCtrl->netIx = 0;
pMacCtrl->macAction = TCPIP_MAC_ACTION_INIT;
pMacCtrl->powerMode = TCPIP_MAC_POWER_FULL;
macAdd.v[ 0 ] = configMAC_ADDR0;
macAdd.v[ 1 ] = configMAC_ADDR1;
macAdd.v[ 2 ] = configMAC_ADDR2;
macAdd.v[ 3 ] = configMAC_ADDR3;
macAdd.v[ 4 ] = configMAC_ADDR4;
macAdd.v[ 5 ] = configMAC_ADDR5;
if( memcmp( macAdd.v, unsetMACAddr, sizeof( unsetMACAddr ) ) == 0 )
{ /* if unspecified we use the factory pre-programmed address */
PIC32_GetMACAddress( pMacCtrl->ifPhyAddress.v );
}
else
{ /* use the config suggested one */
memcpy( pMacCtrl->ifPhyAddress.v, macAdd.v, sizeof( macAdd ) );
}
}
/*-----------------------------------------------------------*/
static bool MacSyncFunction( void * synchHandle,
TCPIP_MAC_SYNCH_REQUEST req )
{
switch( req )
{
case TCPIP_MAC_SYNCH_REQUEST_OBJ_CREATE:
vSemaphoreCreateBinary( *( SemaphoreHandle_t * ) synchHandle );
return ( *( SemaphoreHandle_t * ) synchHandle == NULL ) ? false : true;
case TCPIP_MAC_SYNCH_REQUEST_OBJ_DELETE:
vSemaphoreDelete( *( SemaphoreHandle_t * ) synchHandle );
*( SemaphoreHandle_t * ) synchHandle = NULL;
return true;
case TCPIP_MAC_SYNCH_REQUEST_OBJ_LOCK:
return ( xSemaphoreTake( *( SemaphoreHandle_t * ) synchHandle, portMAX_DELAY ) == pdTRUE ) ? true : false;
case TCPIP_MAC_SYNCH_REQUEST_OBJ_UNLOCK:
return ( xSemaphoreGive( *( SemaphoreHandle_t * ) synchHandle ) == pdTRUE ) ? true : false;
case TCPIP_MAC_SYNCH_REQUEST_CRIT_ENTER:
vTaskSuspendAll();
return true;
case TCPIP_MAC_SYNCH_REQUEST_CRIT_LEAVE:
xTaskResumeAll();
return true;
default:
return false;
}
}
/*-----------------------------------------------------------*/
static void MacHandlerTask( void * params )
{
EventBits_t evBits;
/* perform the MAC initialization */
while( macObjStatus == SYS_STATUS_BUSY )
{
/* process the underlying MAC module tasks */
( macObject->TCPIP_MAC_Tasks )( macObjHandle );
SYS_STATUS macStatus = ( macObject->TCPIP_MAC_Status )( macObjHandle );
if( macStatus == SYS_STATUS_BUSY )
{ /* still pending */
vTaskDelay( PIC32_MAC_TASK_INIT_PENDING_DELAY );
}
else
{ /* completed ...somehow */
macObjStatus = macStatus;
xTaskNotify( ( TaskHandle_t ) params, PIC32_MAC_EVENT_INIT_DONE, eSetBits );
if( macStatus != SYS_STATUS_READY )
{ /* failed miserably */
vTaskDelete( 0 );
}
/* done, up and running */
}
}
while( true )
{
xTaskNotifyWait( PIC32_MAC_EVENT_TIMEOUT | PIC32_MAC_EVENT_IF_PENDING, PIC32_MAC_EVENT_TIMEOUT | PIC32_MAC_EVENT_IF_PENDING, &evBits, portMAX_DELAY );
if( ( evBits & PIC32_MAC_EVENT_TIMEOUT ) != 0 )
{ /* timeout occurred... */
( macObject->TCPIP_MAC_Tasks )( macObjHandle );
bool linkCurr = ( macObject->TCPIP_MAC_LinkCheck )( macCliHandle ); /* check link status */
if( macLinkStatus != linkCurr )
{ /* link status changed; some event could ve fired here if needed */
PIC32_MAC_DbgPrint( " MAC link: %s!\r\n", linkCurr ? "ON" : "OFF" );
macLinkStatus = linkCurr;
}
}
if( ( evBits & PIC32_MAC_EVENT_IF_PENDING ) != 0 )
{ /* IF events signal */
TCPIP_MAC_EVENT activeEvents = ( macObject->TCPIP_MAC_EventPendingGet )( macCliHandle );
if( activeEvents != TCPIP_MAC_EV_NONE )
{
/* acknowledge the events */
( macObject->TCPIP_MAC_EventAcknowledge )( macCliHandle, activeEvents );
/* check for RX */
if( ( activeEvents & ( TCPIP_MAC_EV_RX_DONE | TCPIP_MAC_EV_RX_OVFLOW | TCPIP_MAC_EV_RX_BUFNA ) ) != 0 )
{ /* RX packets available */
MacRxPackets();
}
/* call the driver process function; */
/* PIC32 driver requests it through TCPIP_MAC_ParametersGet() which is bypassed here! */
( macObject->TCPIP_MAC_Process )( macCliHandle );
}
}
/* do what you have to do and then wait for another event... */
}
}
/*-----------------------------------------------------------*/
static void MacTmrCallback( TimerHandle_t xTimer )
{
xTaskNotify( macTaskHandle, PIC32_MAC_EVENT_TIMEOUT, eSetBits );
}
/* MAC interrupt event function */
/* MAC signals an event, probably from within ISR */
/* we care just for RX related events */
static void MAC_EventFunction( TCPIP_MAC_EVENT event,
const void * eventParam )
{
BaseType_t xHigherPriorityTaskWoken;
if( ( event & ( TCPIP_MAC_EV_RX_DONE | TCPIP_MAC_EV_TX_DONE | TCPIP_MAC_EV_RXTX_ERRORS ) ) != 0 )
{
xHigherPriorityTaskWoken = pdFALSE;
xTaskNotifyFromISR( macTaskHandle, PIC32_MAC_EVENT_IF_PENDING, eSetBits, &xHigherPriorityTaskWoken );
if( xHigherPriorityTaskWoken )
{
portEND_SWITCHING_ISR( xHigherPriorityTaskWoken );
}
}
}
/*-----------------------------------------------------------*/
BaseType_t xGetPhyLinkStatus( void )
{
return macLinkStatus == true ? pdPASS : pdFAIL;
}
/* receive packets from the MAC driver */
static void MacRxPackets( void )
{
TCPIP_MAC_PACKET * pRxPkt;
/* get all the new MAC packets */
while( ( pRxPkt = ( macObject->TCPIP_MAC_PacketRx )( macCliHandle, 0, 0 ) ) != 0 )
{
MacProcessRxPacket( pRxPkt );
}
}
/*-----------------------------------------------------------*/
static void MacProcessRxPacket( TCPIP_MAC_PACKET * pRxPkt )
{
bool pktSuccess, pktLost;
size_t pktLength;
TCPIP_MAC_DATA_SEGMENT * pSeg;
uint8_t * pPktBuff;
NetworkBufferDescriptor_t * pxBufferDescriptor;
IPStackEvent_t xRxEvent;
pxBufferDescriptor = 0;
pktSuccess = pktLost = false;
while( true )
{
pktLength = 0;
int nSegs = 0;
pSeg = pRxPkt->pDSeg;
pPktBuff = pSeg->segLoad;
/* calculate the packet size */
do
{
pktLength += pSeg->segLen;
pSeg = pSeg->next;
nSegs++;
} while( pSeg != 0 );
if( nSegs > 1 )
{ /* no support in FreeRTOS for multi segment packets! */
break;
}
/* sizeof(TCPIP_MAC_ETHERNET_HEADER) is subtracted by the driver */
/* but FreeRTOS needs the whole frame! */
pktLength += sizeof( TCPIP_MAC_ETHERNET_HEADER );
if( eConsiderFrameForProcessing( pPktBuff ) != eProcessBuffer )
{
break;
}
/* get the network descriptor (no data buffer) to hold this packet */
pxBufferDescriptor = pxGetNetworkBufferWithDescriptor( 0, 0 );
if( pxBufferDescriptor == 0 )
{
pktLost = true;
break;
}
PIC32_MacAssociate( pRxPkt, pxBufferDescriptor, pktLength );
xRxEvent.eEventType = eNetworkRxEvent;
xRxEvent.pvData = ( void * ) pxBufferDescriptor;
/* Send the data to the TCP/IP stack */
if( xSendEventStructToIPTask( &xRxEvent, 0 ) == pdFALSE )
{ /* failed */
pktLost = true;
}
else
{ /* success */
pktSuccess = true;
iptraceNETWORK_INTERFACE_RECEIVE();
}
break;
}
if( !pktSuccess )
{ /* smth went wrong; nothing sent to the */
if( pxBufferDescriptor != 0 )
{
pxBufferDescriptor->pucEthernetBuffer = 0;
vReleaseNetworkBufferAndDescriptor( pxBufferDescriptor );
}
if( pktLost )
{
iptraceETHERNET_RX_EVENT_LOST();
}
/* acknowledge the packet to the MAC driver */
if( pRxPkt->ackFunc )
{
( *pRxPkt->ackFunc )( pRxPkt, pRxPkt->ackParam );
}
else
{
PIC32_MacPacketOrphan( pRxPkt );
}
}
}
#if ( PIC32_MAC_DEBUG_COMMANDS != 0 )
/* */
static int _Command_MacInfo( SYS_CMD_DEVICE_NODE * pCmdIO,
int argc,
char ** argv )
{
TCPIP_MAC_RES macRes;
TCPIP_MAC_RX_STATISTICS rxStatistics;
TCPIP_MAC_TX_STATISTICS txStatistics;
TCPIP_MAC_STATISTICS_REG_ENTRY regEntries[ 8 ];
TCPIP_MAC_STATISTICS_REG_ENTRY * pRegEntry;
int jx, hwEntries;
char entryName[ sizeof( pRegEntry->registerName ) + 1 ];
const void * cmdIoParam = pCmdIO->cmdIoParam;
if( argc != 1 )
{
( *pCmdIO->pCmdApi->msg )( cmdIoParam, "Usage: macinfo \r\n" );
( *pCmdIO->pCmdApi->msg )( cmdIoParam, "Ex: macinfo \r\n" );
return false;
}
( *pCmdIO->pCmdApi->print )( cmdIoParam, "Interface: %s driver statistics\r\n", macObject->macName );
macRes = ( macObject->TCPIP_MAC_StatisticsGet )( macCliHandle, &rxStatistics, &txStatistics );
if( macRes == TCPIP_MAC_RES_OK )
{
( *pCmdIO->pCmdApi->print )( cmdIoParam, "\tnRxOkPackets: %d, nRxPendBuffers: %d, nRxSchedBuffers: %d, ",
rxStatistics.nRxOkPackets, rxStatistics.nRxPendBuffers, rxStatistics.nRxSchedBuffers );
( *pCmdIO->pCmdApi->print )( cmdIoParam, "nRxErrorPackets: %d, nRxFragmentErrors: %d\r\n", rxStatistics.nRxErrorPackets, rxStatistics.nRxFragmentErrors );
( *pCmdIO->pCmdApi->print )( cmdIoParam, "\tnTxOkPackets: %d, nTxPendBuffers: %d, nTxErrorPackets: %d, nTxQueueFull: %d\r\n",
txStatistics.nTxOkPackets, txStatistics.nTxPendBuffers, txStatistics.nTxErrorPackets, txStatistics.nTxQueueFull );
}
else
{
( *pCmdIO->pCmdApi->msg )( cmdIoParam, "\tnot supported\r\n" );
}
( *pCmdIO->pCmdApi->print )( cmdIoParam, "Interface: %s hardware statistics\r\n", macObject->macName );
macRes = ( macObject->TCPIP_MAC_RegisterStatisticsGet )( macCliHandle, regEntries, sizeof( regEntries ) / sizeof( *regEntries ), &hwEntries );
if( macRes == TCPIP_MAC_RES_OK )
{
entryName[ sizeof( entryName ) - 1 ] = 0;
for( jx = 0, pRegEntry = regEntries; jx < hwEntries && jx < sizeof( regEntries ) / sizeof( *regEntries ); jx++, pRegEntry++ )
{
strncpy( entryName, pRegEntry->registerName, sizeof( entryName ) - 1 );
( *pCmdIO->pCmdApi->print )( cmdIoParam, "\t%s: 0x%8x\r\n", entryName, pRegEntry->registerValue );
}
}
else
{
( *pCmdIO->pCmdApi->msg )( cmdIoParam, "\tnot supported\r\n" );
}
return true;
}
/*-----------------------------------------------------------*/
static int _Command_NetInfo( SYS_CMD_DEVICE_NODE * pCmdIO,
int argc,
char ** argv )
{
const void * cmdIoParam = pCmdIO->cmdIoParam;
union
{
uint32_t ul;
uint8_t b[ 4 ];
}
sUl;
sUl.ul = FreeRTOS_GetIPAddress();
bool linkUp = FreeRTOS_IsNetworkUp() == pdTRUE;
( *pCmdIO->pCmdApi->print )( cmdIoParam, "IP address: %d.%d.%d.%d\r\n", sUl.b[ 0 ], sUl.b[ 1 ], sUl.b[ 2 ], sUl.b[ 3 ] );
( *pCmdIO->pCmdApi->print )( cmdIoParam, "Link is: %s\r\n", linkUp ? "Up" : "Down" );
return true;
}
#include "aws_application_version.h"
static int _Command_Version(SYS_CMD_DEVICE_NODE* pCmdIO, int argc, char** argv)
{
configPRINTF( ( "App version - maj: %d, min: %d, build: %d\r\n", xAppFirmwareVersion.u.x.ucMajor, xAppFirmwareVersion.u.x.ucMinor, xAppFirmwareVersion.u.x.usBuild) );
return 0;
}
#endif /* (PIC32_MAC_DEBUG_COMMANDS != 0) */
#endif /* #ifdef PIC32_USE_ETHERNET */
|
cimeq/amazon-freertos
|
lib/defender/test/unit_tests/test_aws_defender_report.c
|
/*
* Amazon FreeRTOS Device Defender Agent V1.0.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "aws_cbor_print.h"
#include "aws_defender_internals.h"
#include "unity_fixture.h"
TEST_GROUP( aws_defender_report );
TEST_SETUP( aws_defender_report )
{
DefenderMetric_t metrics_list[] = {};
( void ) DEFENDER_MetricsInit( metrics_list );
}
TEST_TEAR_DOWN( aws_defender_report )
{
}
TEST_GROUP_RUNNER( aws_defender_report )
{
RUN_TEST_CASE( aws_defender_report, CreateReport_creates_report_with_header );
RUN_TEST_CASE(
aws_defender_report, CreateReport_includes_tcp_connections_from_list );
RUN_TEST_CASE(
aws_defender_report, CreateReport_excludes_uptime_when_not_in_list );
}
TEST( aws_defender_report, CreateReport_creates_report_with_header )
{
cbor_handle_t report = DEFENDER_CreateReport();
char * rep_str = CBOR_AsString( report );
cbor_handle_t header = CBOR_FromKeyReadMap( report, DEFENDER_header_tag );
CBOR_Delete( &report );
/* Header will have version key */
bool is_header = CBOR_FindKey( header, DEFENDER_version_tag );
CBOR_Delete( &header );
TEST_ASSERT_TRUE_MESSAGE( is_header, rep_str );
free( rep_str );
}
TEST( aws_defender_report, CreateReport_includes_tcp_connections_from_list )
{
DefenderMetric_t metrics_list[] = { pxDEFENDER_tcp_connections };
( void ) DEFENDER_MetricsInit( metrics_list );
cbor_handle_t report = DEFENDER_CreateReport();
char * rep_str = CBOR_AsString( report );
cbor_handle_t metrics = CBOR_FromKeyReadMap( report, DEFENDER_metrics_tag );
CBOR_Delete( &report );
bool has_tcp_conn = CBOR_FindKey( metrics, DEFENDER_tcp_conn_tag );
CBOR_Delete( &metrics );
TEST_ASSERT_TRUE_MESSAGE( has_tcp_conn, rep_str );
free( rep_str );
}
TEST( aws_defender_report, CreateReport_excludes_uptime_when_not_in_list )
{
cbor_handle_t report = DEFENDER_CreateReport();
bool has_uptime = CBOR_FindKey( report, "ut" );
CBOR_Delete( &report );
TEST_ASSERT_FALSE( has_uptime );
}
|
cimeq/amazon-freertos
|
lib/cbor/test/test_aws_cbor_acc.c
|
/*
* Amazon FreeRTOS CBOR Library V1.0.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "aws_cbor.h"
#include "aws_cbor_alloc.h"
#include "unity_fixture.h"
#include <string.h>
TEST_GROUP( aws_cbor_acceptance );
TEST_SETUP( aws_cbor_acceptance )
{
}
TEST_TEAR_DOWN( aws_cbor_acceptance )
{
}
TEST_GROUP_RUNNER( aws_cbor_acceptance )
{
RUN_TEST_CASE( aws_cbor_acceptance, assign_and_read_supported_types );
RUN_TEST_CASE( aws_cbor_acceptance, append_and_read_supported_types );
RUN_TEST_CASE(
aws_cbor_acceptance, public_functions_set_err_when_given_null_pointers );
}
TEST( aws_cbor_acceptance, assign_and_read_supported_types )
{
/* Write and then read a the following key value pairs: */
/* { */
/* "hello":"world", */
/* "model":"of the modern major general", */
/* "answer":42, */
/* "prime":1033, */
/* "map":{ */
/* "direction":"north", */
/* "miles":2000 */
/* }, */
/* "lorem": "Lorem ipsum..." */
/* } */
/* Write the key value pairs using Assign functions */
cbor_handle_t cbor_data = CBOR_New( 0 );
CBOR_AssignKeyWithString( cbor_data, "hello", "world" );
char * model = "of the modern major general";
CBOR_AssignKeyWithString( cbor_data, "model", model );
CBOR_AssignKeyWithInt( cbor_data, "answer", 42 );
cbor_int_t prime = 1033;
CBOR_AssignKeyWithInt( cbor_data, "prime", prime );
cbor_handle_t map = CBOR_New( 0 );
char * direction = "north";
CBOR_AssignKeyWithString( map, "direction", direction );
CBOR_AssignKeyWithInt( map, "miles", 2000 );
CBOR_AssignKeyWithMap( cbor_data, "map", map );
CBOR_Delete( &map );
char * lorem =
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do "
"eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim "
"ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut "
"aliquip ex ea commodo consequat. Duis aute irure dolor in "
"reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla "
"pariatur. Excepteur sint occaecat cupidatat non proident, sunt in "
"culpa qui officia deserunt mollit anim id est laborum.";
CBOR_AssignKeyWithString( cbor_data, "lorem", lorem );
/* Read the values from the key value pairs */
char * read_lorem = CBOR_FromKeyReadString( cbor_data, "lorem" );
TEST_ASSERT_EQUAL_STRING( lorem, read_lorem );
pxCBOR_free( read_lorem );
char * read_hello = CBOR_FromKeyReadString( cbor_data, "hello" );
TEST_ASSERT_EQUAL_STRING( "world", read_hello );
pxCBOR_free( read_hello );
char * read_model = CBOR_FromKeyReadString( cbor_data, "model" );
TEST_ASSERT_EQUAL_STRING( model, read_model );
pxCBOR_free( read_model );
cbor_int_t read_answer = CBOR_FromKeyReadInt( cbor_data, "answer" );
TEST_ASSERT_EQUAL( 42, read_answer );
cbor_int_t read_prime = CBOR_FromKeyReadInt( cbor_data, "prime" );
TEST_ASSERT_EQUAL( prime, read_prime );
cbor_handle_t read_map = CBOR_FromKeyReadMap( cbor_data, "map" );
char * read_direction = CBOR_FromKeyReadString( read_map, "direction" );
TEST_ASSERT_EQUAL_STRING( direction, read_direction );
pxCBOR_free( read_direction );
cbor_int_t read_miles = CBOR_FromKeyReadInt( read_map, "miles" );
TEST_ASSERT_EQUAL( 2000, read_miles );
CBOR_Delete( &read_map );
CBOR_Delete( &cbor_data );
}
TEST( aws_cbor_acceptance, append_and_read_supported_types )
{
/* Write and then read a the following key value pairs: */
/* { */
/* "hello":"world", */
/* "model":"of the modern major general", */
/* "answer":42, */
/* "prime":1033, */
/* "map":{ */
/* "direction":"north", */
/* "miles":2000 */
/* }, */
/* "lorem": "Lorem ipsum..." */
/* } */
/* Write the key value pairs using Assign functions */
cbor_handle_t cbor_data = CBOR_New( 0 );
CBOR_AppendKeyWithString( cbor_data, "hello", "world" );
char * model = "of the modern major general";
CBOR_AppendKeyWithString( cbor_data, "model", model );
CBOR_AppendKeyWithInt( cbor_data, "answer", 42 );
cbor_int_t prime = 1033;
CBOR_AppendKeyWithInt( cbor_data, "prime", prime );
cbor_handle_t map = CBOR_New( 0 );
char * direction = "north";
CBOR_AppendKeyWithString( map, "direction", direction );
CBOR_AppendKeyWithInt( map, "miles", 2000 );
CBOR_AppendKeyWithMap( cbor_data, "map", map );
CBOR_Delete( &map );
char * lorem =
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do "
"eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim "
"ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut "
"aliquip ex ea commodo consequat. Duis aute irure dolor in "
"reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla "
"pariatur. Excepteur sint occaecat cupidatat non proident, sunt in "
"culpa qui officia deserunt mollit anim id est laborum.";
CBOR_AppendKeyWithString( cbor_data, "lorem", lorem );
/* Read the values from the key value pairs */
char * read_lorem = CBOR_FromKeyReadString( cbor_data, "lorem" );
TEST_ASSERT_EQUAL_STRING( lorem, read_lorem );
pxCBOR_free( read_lorem );
char * read_hello = CBOR_FromKeyReadString( cbor_data, "hello" );
TEST_ASSERT_EQUAL_STRING( "world", read_hello );
pxCBOR_free( read_hello );
char * read_model = CBOR_FromKeyReadString( cbor_data, "model" );
TEST_ASSERT_EQUAL_STRING( model, read_model );
pxCBOR_free( read_model );
cbor_int_t read_answer = CBOR_FromKeyReadInt( cbor_data, "answer" );
TEST_ASSERT_EQUAL( 42, read_answer );
cbor_int_t read_prime = CBOR_FromKeyReadInt( cbor_data, "prime" );
TEST_ASSERT_EQUAL( prime, read_prime );
cbor_handle_t read_map = CBOR_FromKeyReadMap( cbor_data, "map" );
char * read_direction = CBOR_FromKeyReadString( read_map, "direction" );
TEST_ASSERT_EQUAL_STRING( direction, read_direction );
pxCBOR_free( read_direction );
cbor_int_t read_miles = CBOR_FromKeyReadInt( read_map, "miles" );
TEST_ASSERT_EQUAL( 2000, read_miles );
CBOR_Delete( &read_map );
CBOR_Delete( &cbor_data );
}
TEST( aws_cbor_acceptance, public_functions_set_err_when_given_null_pointers )
{
/* All public functions that take pointers should set the appropriate error */
/* when an invalid (e.g. NULL pointer) is passed in. */
cbor_handle_t cbor_data = CBOR_New( 0 );
TEST_ASSERT_EQUAL( eCBOR_ERR_NULL_HANDLE, CBOR_CheckError( NULL ) );
CBOR_ClearError( NULL );
CBOR_Delete( NULL );
cbor_handle_t null_cbor_object = NULL;
CBOR_Delete( &null_cbor_object );
TEST_ASSERT_FALSE( CBOR_FindKey( NULL, "key" ) );
TEST_ASSERT_FALSE( CBOR_FindKey( cbor_data, NULL ) );
TEST_ASSERT_EQUAL( eCBOR_ERR_NULL_KEY, CBOR_CheckError( cbor_data ) );
CBOR_AssignKeyWithString( NULL, "key", "value" );
CBOR_AssignKeyWithString( cbor_data, NULL, "value" );
TEST_ASSERT_EQUAL( eCBOR_ERR_NULL_KEY, CBOR_CheckError( cbor_data ) );
CBOR_AssignKeyWithString( cbor_data, "key", NULL );
TEST_ASSERT_EQUAL( eCBOR_ERR_NULL_VALUE, CBOR_CheckError( cbor_data ) );
CBOR_AppendKeyWithString( NULL, "key", "value" );
CBOR_AppendKeyWithString( cbor_data, NULL, "value" );
TEST_ASSERT_EQUAL( eCBOR_ERR_NULL_KEY, CBOR_CheckError( cbor_data ) );
CBOR_AppendKeyWithString( cbor_data, "key", NULL );
TEST_ASSERT_EQUAL( eCBOR_ERR_NULL_VALUE, CBOR_CheckError( cbor_data ) );
( void ) CBOR_FromKeyReadString( NULL, "key" );
( void ) CBOR_FromKeyReadString( cbor_data, NULL );
TEST_ASSERT_EQUAL( eCBOR_ERR_NULL_KEY, CBOR_CheckError( cbor_data ) );
CBOR_AssignKeyWithInt( NULL, "key", 123 );
CBOR_AssignKeyWithInt( cbor_data, NULL, 123 );
TEST_ASSERT_EQUAL( eCBOR_ERR_NULL_KEY, CBOR_CheckError( cbor_data ) );
CBOR_AppendKeyWithInt( NULL, "key", 123 );
CBOR_AppendKeyWithInt( cbor_data, NULL, 123 );
TEST_ASSERT_EQUAL( eCBOR_ERR_NULL_KEY, CBOR_CheckError( cbor_data ) );
( void ) CBOR_FromKeyReadInt( NULL, "key" );
( void ) CBOR_FromKeyReadInt( cbor_data, NULL );
TEST_ASSERT_EQUAL( eCBOR_ERR_NULL_KEY, CBOR_CheckError( cbor_data ) );
cbor_handle_t map = CBOR_New( 0 );
CBOR_AssignKeyWithMap( NULL, "key", map );
CBOR_AssignKeyWithMap( cbor_data, NULL, map );
TEST_ASSERT_EQUAL( eCBOR_ERR_NULL_KEY, CBOR_CheckError( cbor_data ) );
CBOR_AssignKeyWithMap( cbor_data, "key", NULL );
TEST_ASSERT_EQUAL( eCBOR_ERR_NULL_VALUE, CBOR_CheckError( cbor_data ) );
CBOR_AppendKeyWithMap( NULL, "key", map );
CBOR_AppendKeyWithMap( cbor_data, NULL, map );
TEST_ASSERT_EQUAL( eCBOR_ERR_NULL_KEY, CBOR_CheckError( cbor_data ) );
CBOR_AppendKeyWithMap( cbor_data, "key", NULL );
TEST_ASSERT_EQUAL( eCBOR_ERR_NULL_VALUE, CBOR_CheckError( cbor_data ) );
( void ) CBOR_FromKeyReadMap( NULL, "key" );
( void ) CBOR_FromKeyReadMap( cbor_data, NULL );
TEST_ASSERT_EQUAL( eCBOR_ERR_NULL_KEY, CBOR_CheckError( cbor_data ) );
CBOR_Delete( &map );
CBOR_Delete( &cbor_data );
}
|
cimeq/amazon-freertos
|
lib/defender/test/unit_tests/test_aws_defender_report_uptime.c
|
<reponame>cimeq/amazon-freertos
/*
* Amazon FreeRTOS Device Defender Agent V1.0.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "aws_defender_report_uptime.h"
#include "aws_defender_uptime.h"
#include "unity_fixture.h"
#include <stdbool.h>
extern int DEFENDER_current_uptime;
TEST_GROUP( aws_defender_report_uptime );
TEST_SETUP( aws_defender_report_uptime )
{
}
TEST_TEAR_DOWN( aws_defender_report_uptime )
{
}
TEST_GROUP_RUNNER( aws_defender_report_uptime )
{
RUN_TEST_CASE(
aws_defender_report_uptime, UptimeGet_has_cpu_with_integer_result );
RUN_TEST_CASE( aws_defender_report_uptime,
UptimeReportGet_returns_result_from_uptime_get );
RUN_TEST_CASE(
aws_defender_report_uptime, UptimeReportGet_updates_when_stats_update );
RUN_TEST_CASE( aws_defender_report_uptime,
UptimeReportGet_remains_unchanged_unless_refreshed );
}
TEST( aws_defender_report_uptime, UptimeGet_has_cpu_with_integer_result )
{
cbor_handle_t uptime_metric = DEFENDER_UptimeReportGet();
( void ) CBOR_FromKeyReadInt( uptime_metric, "ut" );
eCBOR_ERR_t err = CBOR_CheckError( uptime_metric );
CBOR_Delete( &uptime_metric );
TEST_ASSERT_EQUAL( eCBOR_ERR_NO_ERROR, err );
}
TEST( aws_defender_report_uptime, UptimeReportGet_returns_result_from_uptime_get )
{
cbor_handle_t uptime_metric = DEFENDER_UptimeReportGet();
cbor_int_t actual = CBOR_FromKeyReadInt( uptime_metric, "ut" );
int expected = DEFENDER_UptimeSecondsGet();
CBOR_Delete( &uptime_metric );
TEST_ASSERT_EQUAL( expected, actual );
}
TEST( aws_defender_report_uptime, UptimeReportGet_updates_when_stats_update )
{
DEFENDER_current_uptime++;
DEFENDER_UptimeRefresh();
int expected = DEFENDER_current_uptime;
cbor_handle_t uptime_metric = DEFENDER_UptimeReportGet();
cbor_int_t actual = CBOR_FromKeyReadInt( uptime_metric, "ut" );
CBOR_Delete( &uptime_metric );
TEST_ASSERT_EQUAL( expected, actual );
}
TEST( aws_defender_report_uptime,
UptimeReportGet_remains_unchanged_unless_refreshed )
{
int expected = DEFENDER_current_uptime;
DEFENDER_current_uptime++;
cbor_handle_t uptime_metric = DEFENDER_UptimeReportGet();
cbor_int_t actual = CBOR_FromKeyReadInt( uptime_metric, "ut" );
CBOR_Delete( &uptime_metric );
TEST_ASSERT_EQUAL( expected, actual );
}
|
cimeq/amazon-freertos
|
lib/cbor/test/test_aws_cbor_map.c
|
/*
* Amazon FreeRTOS CBOR Library V1.0.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "assert_override.h"
#include "aws_cbor_internals.h"
#include "unity_fixture.h"
#include <assert.h>
#include <string.h>
cbor_handle_t cbor_data;
TEST_GROUP( aws_cbor_map );
TEST_SETUP( aws_cbor_map )
{
cbor_data = CBOR_New( 0 );
}
TEST_TEAR_DOWN( aws_cbor_map )
{
CBOR_Delete( &cbor_data );
}
TEST_GROUP_RUNNER( aws_cbor_map )
{
RUN_TEST_CASE( aws_cbor_map, AssignKey_writes_byte_to_key );
RUN_TEST_CASE( aws_cbor_map, AssignKey_update_key_with_larger_int );
RUN_TEST_CASE( aws_cbor_map, AssignKey_update_key_with_smaller_int );
RUN_TEST_CASE( aws_cbor_map, AssignKey_will_return_err_if_not_map_or_empty );
RUN_TEST_CASE( aws_cbor_map, AssignKey_with_string );
RUN_TEST_CASE( aws_cbor_map, AssignKey_with_map );
RUN_TEST_CASE( aws_cbor_map, FindKey_read_string_at_1_char_key );
RUN_TEST_CASE( aws_cbor_map, FindKey_read_int_at_longer_key );
RUN_TEST_CASE( aws_cbor_map, FindKey_returns_true_when_key_is_found );
RUN_TEST_CASE( aws_cbor_map, FindKey_returns_false_when_key_not_found );
RUN_TEST_CASE( aws_cbor_map, WriteMap );
RUN_TEST_CASE( aws_cbor_map, ReadMap_returns_cbor_object_with_map_at_cursor );
RUN_TEST_CASE( aws_cbor_map, ReadMap_returned_map_has_correct_map_end );
RUN_TEST_CASE( aws_cbor_map, ReadMap_sets_err_when_wrong_type );
RUN_TEST_CASE( aws_cbor_map, ReadMap_sets_err_when_new_fails );
RUN_TEST_CASE( aws_cbor_map, AppendKey );
RUN_TEST_CASE( aws_cbor_map, null_checks );
}
TEST( aws_cbor_map, AssignKey_writes_byte_to_key )
{
cbor_byte_t expected[] =
{
0xBF, /* 0 Open Map */
0x66, /* 1 Key of length 6 */
'a', /* 2 */
'n', /* 3 */
's', /* 4 */
'w', /* 5 */
'e', /* 6 */
'r', /* 7 */
0x18, /* 8 Start 8-bit int */
42, /* 9 */
0xFF, /* 10 End of map */
};
cbor_int_t my_answer = 42;
CBOR_AssignKey( cbor_data, "answer", CBOR_WriteInt, &my_answer );
TEST_ASSERT_EQUAL( eCBOR_ERR_NO_ERROR, cbor_data->err );
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected, cbor_data->buffer_start, sizeof( expected ) );
}
TEST( aws_cbor_map, AssignKey_update_key_with_larger_int )
{
CBOR_AssignKey( cbor_data, "1", CBOR_WriteInt, &( cbor_int_t ) { 0x23 } );
TEST_ASSERT_EQUAL( eCBOR_ERR_NO_ERROR, cbor_data->err );
CBOR_AssignKey( cbor_data, "2", CBOR_WriteInt, &( cbor_int_t ) { 0x7392 } );
TEST_ASSERT_EQUAL( eCBOR_ERR_NO_ERROR, cbor_data->err );
/* Note, this test assert is here for documentation. It demonstrates the
* state of the CBOR buffer before re-writing the value for key '1'. */
cbor_byte_t expected[] =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 6 */
0x31, /* 2 '1' */
0x18, /* 3 Start 8-bit int */
0x23, /* 4 */
0x61, /* 5 Key of length 6 */
0x32, /* 6 '2' */
0x19, /* 7 Start 16-bit int */
0x73, /* 8 */
0x92, /* 9 */
0xFF, /* 10 End of map */
};
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected, cbor_data->buffer_start, sizeof( expected ) );
CBOR_AssignKey( cbor_data, "1", CBOR_WriteInt, &( cbor_int_t ) { 0x1234 } );
TEST_ASSERT_EQUAL( eCBOR_ERR_NO_ERROR, cbor_data->err );
cbor_byte_t expected_rewrite[] =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 6 */
0x31, /* 2 '1' */
0x19, /* 3 Start 16-bit int */
0x12, /* 4 */
0x34, /* 5 */
0x61, /* 6 Key of length 6 */
0x32, /* 7 '2' */
0x19, /* 8 Start 16-bit int */
0x73, /* 9 */
0x92, /* 10 */
0xFF, /* 11 End of map */
};
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected_rewrite, cbor_data->buffer_start, sizeof( expected_rewrite ) );
}
TEST( aws_cbor_map, AssignKey_update_key_with_smaller_int )
{
CBOR_AssignKey( cbor_data, "1", CBOR_WriteInt, &( cbor_int_t ) { 0x5CA1AB1E } );
TEST_ASSERT_EQUAL( eCBOR_ERR_NO_ERROR, cbor_data->err );
CBOR_AssignKey( cbor_data, "2", CBOR_WriteInt, &( cbor_int_t ) { 0xCAFE } );
TEST_ASSERT_EQUAL( eCBOR_ERR_NO_ERROR, cbor_data->err );
CBOR_AssignKey( cbor_data, "1", CBOR_WriteInt, &( cbor_int_t ) { 0xED } );
TEST_ASSERT_EQUAL( eCBOR_ERR_NO_ERROR, cbor_data->err );
cbor_byte_t expected_rewrite[] =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 6 */
0x31, /* 2 '1' */
0x18, /* 3 Start 8-bit int */
0xED, /* 4 */
0x61, /* 5 Key of length 6 */
0x32, /* 6 '2' */
0x19, /* 7 Start 16-bit int */
0xCA, /* 8 */
0xFE, /* 9 */
0xFF, /* 10 End of map */
};
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected_rewrite, cbor_data->buffer_start, sizeof( expected_rewrite ) );
}
TEST( aws_cbor_map, AssignKey_will_return_err_if_not_map_or_empty )
{
*( cbor_data->buffer_start ) = 2;
CBOR_AssignKey( cbor_data, "1", CBOR_WriteInt, &( cbor_int_t ) { 0x5CA1AB1E } );
TEST_ASSERT_EQUAL( eCBOR_ERR_UNSUPPORTED_READ_OPERATION, cbor_data->err );
}
TEST( aws_cbor_map, AssignKey_with_string )
{
CBOR_AssignKey( cbor_data, "1", CBOR_WriteString, "Hi" );
cbor_byte_t expected_rewrite[] =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
0x31, /* 2 '1' */
0x62, /* 3 String of length 2 */
'H', /* 4 */
'i', /* 5 */
0xFF, /* 6 End of map */
};
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected_rewrite, cbor_data->buffer_start, sizeof( expected_rewrite ) );
}
TEST( aws_cbor_map, AssignKey_with_map )
{
cbor_byte_t map_buffer[] =
{
0xBF, /* 0 Open Map */
0x63, /* 1 Key of length 3 */
'k', /* 2 */
'e', /* 3 */
'y', /* 4 */
0x18, /* 5 1 byte int */
78, /* 6 */
0xFF, /* 7 End of map */
};
cbor_handle_t map = CBOR_New( 0 );
CBOR_MemCopy( map, map_buffer, sizeof( map_buffer ) );
CBOR_AssignKey( cbor_data, "1", CBOR_WriteMap, map );
CBOR_Delete( &map );
cbor_byte_t expected_rewrite[] =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
0x31, /* 2' 1' */
0xBF, /* 3 Open Map */
0x63, /* 4 Key of length 3 */
'k', /* 5 */
'e', /* 6 */
'y', /* 7 */
0x18, /* 8 1 byte int */
78, /* 9 */
0xFF, /* 10 End of map */
0xFF, /* 11 End of map */
};
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected_rewrite, cbor_data->buffer_start, sizeof( expected_rewrite ) );
}
TEST( aws_cbor_map, FindKey_read_string_at_1_char_key )
{
cbor_byte_t buffer[] =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'1', /* 2 */
0x62, /* 3 String of length 2 */
'H', /* 4 */
'i', /* 5 */
0xFF, /* 6 End of map */
};
CBOR_SetCursor( cbor_data, 0 );
CBOR_MemCopy( cbor_data, buffer, sizeof( buffer ) );
CBOR_FindKey( cbor_data, "1" );
char * str = CBOR_ReadString( cbor_data );
TEST_ASSERT_EQUAL_STRING( "Hi", str );
free( str );
}
TEST( aws_cbor_map, FindKey_read_int_at_longer_key )
{
cbor_byte_t buffer[] =
{
0xBF, /* 0 Open Map */
0x63, /* 1 Key of length 3 */
'k', /* 2 */
'e', /* 3 */
'y', /* 4 */
0x18, /* 5 1 byte int */
78, /* 6 */
0xFF, /* 7 End of map */
};
CBOR_SetCursor( cbor_data, 0 );
CBOR_MemCopy( cbor_data, buffer, sizeof( buffer ) );
CBOR_FindKey( cbor_data, "key" );
cbor_int_t result = CBOR_ReadInt( cbor_data );
TEST_ASSERT_EQUAL_INT( 78, result );
}
TEST( aws_cbor_map, FindKey_returns_true_when_key_is_found )
{
cbor_byte_t buffer[] =
{
0xBF, /* 0 Open Map */
0x63, /* 1 Key of length 3 */
'k', /* 2 */
'e', /* 3 */
'y', /* 4 */
0x18, /* 5 1 byte int */
78, /* 6 */
0xFF, /* 7 End of map */
};
CBOR_SetCursor( cbor_data, 0 );
CBOR_MemCopy( cbor_data, buffer, sizeof( buffer ) );
bool result = CBOR_FindKey( cbor_data, "key" );
TEST_ASSERT_TRUE( result );
}
TEST( aws_cbor_map, FindKey_returns_false_when_key_not_found )
{
cbor_byte_t buffer[] =
{
0xBF, /* 0 Open Map */
0x63, /* 1 Key of length 3 */
'k', /* 2 */
'e', /* 3 */
'y', /* 4 */
0x18, /* 5 1 byte int */
78, /* 6 */
0xFF, /* 7 End of map */
};
CBOR_SetCursor( cbor_data, 0 );
CBOR_MemCopy( cbor_data, buffer, sizeof( buffer ) );
cbor_data->map_end = cbor_data->cursor - 1;
bool result = CBOR_FindKey( cbor_data, "lock" );
TEST_ASSERT_FALSE( result );
}
TEST( aws_cbor_map, WriteMap )
{
cbor_byte_t map_buffer[] =
{
0xBF, /* 0 Open Map */
0x63, /* 1 Key of length 3 */
'k', /* 2 */
'e', /* 3 */
'y', /* 4 */
0x18, /* 5 1 byte int */
78, /* 6 */
0xFF, /* 7 End of map */
};
cbor_handle_t map = CBOR_New( 0 );
CBOR_MemCopy( map, map_buffer, sizeof( map_buffer ) );
CBOR_WriteMap( cbor_data, map );
CBOR_Delete( &map );
TEST_ASSERT_EQUAL_HEX8_ARRAY(
map_buffer, cbor_data->buffer_start, sizeof( map_buffer ) );
}
TEST( aws_cbor_map, ReadMap_returns_cbor_object_with_map_at_cursor )
{
cbor_byte_t full_buffer[] =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'z', /* 2 */
0xBF, /* 3 Open Map */
0x61, /* 4 Key of length 1 */
'z', /* 5 */
0x18, /* 6 1 byte int */
87, /* 7 */
0xFF, /* 8 End of map */
0x18, /* 9 1 byte int */
78, /* 10 */
0xFF, /* 11 End of map */
};
CBOR_MemCopy( cbor_data, full_buffer, sizeof( full_buffer ) );
cbor_data->map_end = cbor_data->buffer_start + sizeof( full_buffer );
CBOR_FindKey( cbor_data, "z" );
cbor_handle_t map = CBOR_ReadMap( cbor_data );
CBOR_FindKey( map, "z" );
cbor_int_t result = CBOR_ReadInt( map );
TEST_ASSERT_EQUAL( 87, result );
CBOR_Delete( &map );
}
TEST( aws_cbor_map, ReadMap_returned_map_has_correct_map_end )
{
cbor_byte_t full_buffer[] =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'z', /* 2 */
0xBF, /* 3 Open Map */
0x61, /* 4 Key of length 1 */
'y', /* 5 */
22, /* 6 small int (22) */
0xFF, /* 7 End of map */
0x18, /* 8 1 byte int */
78, /* 9 */
0xFF, /* 10 End of map */
};
CBOR_MemCopy( cbor_data, full_buffer, sizeof( full_buffer ) );
cbor_data->map_end = cbor_data->buffer_start + sizeof( full_buffer );
CBOR_FindKey( cbor_data, "z" );
cbor_handle_t map = CBOR_ReadMap( cbor_data );
cbor_int_t expected = 4;
cbor_int_t actual = map->map_end - map->buffer_start;
TEST_ASSERT_EQUAL( expected, actual );
CBOR_Delete( &map );
}
TEST( aws_cbor_map, ReadMap_sets_err_when_wrong_type )
{
CBOR_AssignKeyWithInt( cbor_data, "1", 834 );
CBOR_FindKey( cbor_data, "1" );
( void ) CBOR_ReadMap( cbor_data );
TEST_ASSERT_EQUAL( eCBOR_ERR_READ_TYPE_MISMATCH, cbor_data->err );
}
TEST( aws_cbor_map, ReadMap_sets_err_when_new_fails )
{
cbor_byte_t full_buffer[] =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'z', /* 2 */
0xBF, /* 3 Open Map */
0x61, /* 4 Key of length 1 */
'z', /* 5 */
0x18, /* 6 1 byte int */
87, /* 7 */
0xFF, /* 8 End of map */
0x18, /* 9 1 byte int */
78, /* 10 */
0xFF, /* 11 End of map */
};
CBOR_MemCopy( cbor_data, full_buffer, sizeof( full_buffer ) );
cbor_data->map_end = cbor_data->buffer_start + sizeof( full_buffer );
UnityMalloc_MakeMallocFailAfterCount( 0 );
CBOR_FindKey( cbor_data, "z" );
cbor_handle_t map = CBOR_ReadMap( cbor_data );
TEST_ASSERT_NULL( map );
TEST_ASSERT_EQUAL( eCBOR_ERR_INSUFFICENT_SPACE, cbor_data->err );
}
TEST( aws_cbor_map, AppendKey )
{
cbor_byte_t init[] =
{
0xBF, /* 0 Open Map */
0x63, /* 1 Key of length 3 */
'k', /* 2 */
'e', /* 3 */
'y', /* 4 */
0x18, /* 5 1 byte int */
78, /* 6 */
0xFF, /* 7 End of map */
};
CBOR_MemCopy( cbor_data, init, sizeof( init ) );
CBOR_SetCursor( cbor_data, 7 );
cbor_data->map_end = cbor_data->cursor;
CBOR_AppendKey( cbor_data, "lock", CBOR_WriteInt, &( cbor_int_t ) { 0x0347 } );
cbor_byte_t expected[] =
{
0xBF, /* 0 Open Map */
0x63, /* 1 Key of length 3 */
'k', /* 2 */
'e', /* 3 */
'y', /* 4 */
0x18, /* 5 1 byte int */
78, /* 6 */
0x64, /* 7 Key of length 4 */
'l', /* 8 */
'o', /* 9 */
'c', /* 10 */
'k', /* 11 */
0x19, /* 12 2 byte int follows */
0x03, /* 13 */
0x47, /* 14 */
0xFF, /* 15 End of map */
};
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected, cbor_data->buffer_start, sizeof( expected ) );
}
TEST( aws_cbor_map, null_checks )
{
TEST_EXPECT_ASSERT( CBOR_OpenMap( NULL ) );
TEST_EXPECT_ASSERT( CBOR_CloseMap( NULL ) );
TEST_EXPECT_ASSERT( CBOR_KeyIsMatch( NULL, "key" ) );
TEST_EXPECT_ASSERT( CBOR_KeyIsMatch( cbor_data, NULL ) );
TEST_EXPECT_ASSERT( CBOR_SearchForKey( NULL, "key" ) );
TEST_EXPECT_ASSERT( CBOR_SearchForKey( cbor_data, NULL ) );
TEST_EXPECT_ASSERT( CBOR_AppendKey( NULL, "1", CBOR_WriteString, "a" ) );
TEST_EXPECT_ASSERT( CBOR_AppendKey( cbor_data, NULL, CBOR_WriteString, "a" ) );
TEST_EXPECT_ASSERT( CBOR_AppendKey( cbor_data, "1", NULL, "a" ) );
TEST_EXPECT_ASSERT( CBOR_AppendKey( cbor_data, "1", CBOR_WriteString, NULL ) );
TEST_EXPECT_ASSERT( CBOR_AssignKey( NULL, "1", CBOR_WriteString, "a" ) );
TEST_EXPECT_ASSERT( CBOR_AssignKey( cbor_data, NULL, CBOR_WriteString, "a" ) );
TEST_EXPECT_ASSERT( CBOR_AssignKey( cbor_data, "1", NULL, "a" ) );
TEST_EXPECT_ASSERT( CBOR_AssignKey( cbor_data, "1", CBOR_WriteString, NULL ) );
TEST_EXPECT_ASSERT( CBOR_MapSize( NULL ) );
TEST_EXPECT_ASSERT( CBOR_WriteMap( NULL, cbor_data ) );
TEST_EXPECT_ASSERT( CBOR_WriteMap( cbor_data, NULL ) );
TEST_EXPECT_ASSERT( CBOR_ReadMap( NULL ) );
}
|
cimeq/amazon-freertos
|
lib/cbor/test/test_aws_cbor_string.c
|
<filename>lib/cbor/test/test_aws_cbor_string.c
/*
* Amazon FreeRTOS CBOR Library V1.0.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "assert_override.h"
#include "aws_cbor_internals.h"
#include "unity_fixture.h"
#include <assert.h>
#include <string.h>
extern cbor_int_t TEST_assert_fails;
cbor_handle_t cbor_data;
TEST_GROUP( aws_cbor_string );
TEST_SETUP( aws_cbor_string )
{
TEST_assert_fails = 0;
cbor_data = CBOR_New( 0 );
char empty_map[ 20 ] = { '{', '}' };
CBOR_MemCopy( cbor_data, empty_map, 20 );
CBOR_SetCursor( cbor_data, 0 );
}
TEST_TEAR_DOWN( aws_cbor_string )
{
TEST_ASSERT_EQUAL( eCBOR_ERR_NO_ERROR, cbor_data->err );
TEST_ASSERT_EQUAL( 0, TEST_assert_fails );
CBOR_Delete( &cbor_data );
}
TEST_GROUP_RUNNER( aws_cbor_string )
{
RUN_TEST_CASE( aws_cbor_string, WriteString_small_string );
RUN_TEST_CASE(
aws_cbor_string, WriteString_cursor_points_to_next_space_after_string );
RUN_TEST_CASE( aws_cbor_string, WriteString_int8_sized_string );
RUN_TEST_CASE( aws_cbor_string, WriteString_int16_sized_string );
RUN_TEST_CASE( aws_cbor_string, WriteString_larger_than_supported_string );
RUN_TEST_CASE( aws_cbor_string, WriteString_will_resize_data );
RUN_TEST_CASE( aws_cbor_string, ReadString_read_short_string );
RUN_TEST_CASE( aws_cbor_string, ReadString_read_int8_sized_string );
RUN_TEST_CASE( aws_cbor_string, ReadString_read_int16_sized_string );
RUN_TEST_CASE( aws_cbor_string, StringLength_Gets_string_length );
RUN_TEST_CASE(
aws_cbor_string, ReadString_gets_same_result_when_called_repeatedly );
RUN_TEST_CASE(
aws_cbor_string, StringLength_gets_same_result_when_called_repeatedly );
RUN_TEST_CASE( aws_cbor_string, StringCompare_returns_0_when_strings_match );
RUN_TEST_CASE( aws_cbor_string,
StringCompare_matches_strcmp_when_first_string_is_greater );
RUN_TEST_CASE( aws_cbor_string,
StringCompare_matches_strcmp_when_first_string_is_less );
RUN_TEST_CASE( aws_cbor_string, StringCompare_both_strings_empty );
RUN_TEST_CASE( aws_cbor_string,
StringCompare_matches_strcmp_when_second_string_is_empty );
RUN_TEST_CASE( aws_cbor_string, StringCompare_first_string_is_shorter );
RUN_TEST_CASE( aws_cbor_string, StringCompare_second_string_is_shorter );
RUN_TEST_CASE( aws_cbor_string, null_checks );
}
TEST( aws_cbor_string, WriteString_small_string )
{
cbor_byte_t expected[] =
{
0x6A, /* 0 String, length 10 */
'h', /* 1 */
'i', /* 2 */
',', /* 3 */
' ', /* 4 */
'w', /* 5 */
'3', /* 6 */
'r', /* 7 */
'l', /* 8 */
'd', /* 9 */
'!', /* 10 */
};
CBOR_WriteString( cbor_data, "hi, w3rld!" );
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected, cbor_data->buffer_start, sizeof( expected ) );
}
TEST( aws_cbor_string, WriteString_cursor_points_to_next_space_after_string )
{
CBOR_WriteString( cbor_data, "a" );
TEST_ASSERT_EQUAL_PTR( &( cbor_data->buffer_start )[ 2 ], cbor_data->cursor );
}
TEST( aws_cbor_string, WriteString_int8_sized_string )
{
char * test_string = "I need this string to be more than 23 characters, but "
"less than 256 characters. This will result in "
"having a single byte store the length of the string.";
cbor_int_t test_length = strlen( test_string );
cbor_byte_t expected[ test_length + 2 ];
expected[ 0 ] = 0x78; /* String with the length given in the next 1 byte */
expected[ 1 ] = 153; /* Length of the string*/
memcpy( &expected[ 2 ], test_string, test_length );
CBOR_WriteString( cbor_data, test_string );
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected, cbor_data->buffer_start, sizeof( expected ) );
}
TEST( aws_cbor_string, WriteString_int16_sized_string )
{
char * test_string =
"For this test, I need a string that is greater than 256 characters. "
"This will require the length to be stored in 2 bytes. This will also "
"enable the storage of strings up to 64KB (~65kB) in length. Lorem "
"ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod "
"tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim "
"veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex "
"ea commodo consequat.";
cbor_int_t test_length = strlen( test_string );
cbor_byte_t expected[ test_length + 3 ];
expected[ 0 ] = 0x79; /* String with the length given in the next 2 bytes */
/* Length of string is 431, or 0x01AF */
expected[ 1 ] = 1;
expected[ 2 ] = 0xAF;
memcpy( &expected[ 3 ], test_string, test_length );
CBOR_WriteString( cbor_data, test_string );
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected, cbor_data->buffer_start, sizeof( expected ) );
}
TEST( aws_cbor_string, WriteString_larger_than_supported_string )
{
cbor_ssize_t string_length = 1U << 16U;
cbor_ssize_t buffer_length = string_length + 1;
char str[ buffer_length ];
for( cbor_int_t i = 0; i < string_length; i++ )
{
str[ i ] = 'a';
}
str[ string_length ] = 0;
CBOR_WriteString( cbor_data, str );
TEST_ASSERT_EQUAL( eCBOR_ERR_UNSUPPORTED_WRITE_OPERATION, cbor_data->err );
cbor_data->err = 0;
}
TEST( aws_cbor_string, WriteString_will_resize_data )
{
cbor_data->map_end = cbor_data->buffer_start + 10;
CBOR_WriteString( cbor_data, "hi" );
CBOR_WriteString( cbor_data, "world" );
cbor_data->cursor = cbor_data->buffer_start;
CBOR_WriteString( cbor_data, "hello" );
cbor_byte_t expected[] =
{
0x65, /* 0 String, length 5 */
'h', /* 1 */
'e', /* 2 */
'l', /* 3 */
'l', /* 4 */
'o', /* 5 */
0x65, /* 6 String, length 5 */
'w', /* 7 */
'o', /* 8 */
'r', /* 9 */
'l', /* 10 */
'd', /* 11 */
};
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected, cbor_data->buffer_start, sizeof( expected ) );
}
TEST( aws_cbor_string, ReadString_read_short_string )
{
char expected[] = "A short string";
CBOR_WriteString( cbor_data, expected );
cbor_data->cursor = cbor_data->buffer_start;
char * str = CBOR_ReadString( cbor_data );
TEST_ASSERT_EQUAL_STRING( expected, str );
free( str );
}
TEST( aws_cbor_string, ReadString_read_int8_sized_string )
{
char expected[] = "Lorem ipsum dolor sit amet, consectetur adipisicing "
"elit, sed do eiusmod tempor incididunt ut labore et "
"dolore magna aliqua.";
CBOR_WriteString( cbor_data, expected );
cbor_data->cursor = cbor_data->buffer_start;
char * str = CBOR_ReadString( cbor_data );
TEST_ASSERT_EQUAL_STRING( expected, str );
free( str );
}
TEST( aws_cbor_string, ReadString_read_int16_sized_string )
{
char expected[] =
"Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris "
"nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in "
"reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla "
"pariatur. Excepteur sint occaecat cupidatat non proident, sunt in "
"culpa qui officia deserunt mollit anim id est laborum.";
CBOR_WriteString( cbor_data, expected );
cbor_data->cursor = cbor_data->buffer_start;
char * str = CBOR_ReadString( cbor_data );
TEST_ASSERT_EQUAL_STRING( expected, str );
free( str );
}
TEST( aws_cbor_string, ReadString_gets_same_result_when_called_repeatedly )
{
char str[] = "Duis aute irure dolor in reprehenderit in voluptate velit "
"esse cillum dolore eu fugiat nulla pariatur. Excepteur sint "
"occaecat cupidatat non proident, sunt in culpa qui officia "
"deserunt mollit anim id est laborum.";
CBOR_WriteString( cbor_data, str );
cbor_data->cursor = cbor_data->buffer_start;
char * expected = CBOR_ReadString( cbor_data );
char * result = CBOR_ReadString( cbor_data );
TEST_ASSERT_EQUAL_STRING( expected, result );
free( expected );
free( result );
}
TEST( aws_cbor_string, StringLength_Gets_string_length )
{
char str[] = "This string is 28 chars long";
cbor_ssize_t expected = strlen( str );
CBOR_WriteString( cbor_data, str );
cbor_data->cursor = cbor_data->buffer_start;
cbor_ssize_t result = CBOR_StringLength( cbor_data );
TEST_ASSERT_EQUAL_INT( expected, result );
}
TEST( aws_cbor_string, StringLength_gets_same_result_when_called_repeatedly )
{
char str[] = "This string is 29 chars long.";
CBOR_WriteString( cbor_data, str );
cbor_data->cursor = cbor_data->buffer_start;
cbor_ssize_t expected = CBOR_StringLength( cbor_data );
cbor_ssize_t result = CBOR_StringLength( cbor_data );
TEST_ASSERT_EQUAL_INT( expected, result );
}
TEST( aws_cbor_string, StringCompare_returns_0_when_strings_match )
{
char * str1 = "Matching Strings";
char * str2 = "Matching Strings";
CBOR_WriteString( cbor_data, str1 );
cbor_data->cursor = cbor_data->buffer_start;
TEST_ASSERT_EQUAL_INT( 0, CBOR_StringCompare( cbor_data, str2 ) );
}
TEST( aws_cbor_string, StringCompare_matches_strcmp_when_first_string_is_greater )
{
char * str1 = "Mismatching Strings B <-- that's different";
char * str2 = "Mismatching Strings a <-- that's different";
CBOR_WriteString( cbor_data, str1 );
cbor_data->cursor = cbor_data->buffer_start;
cbor_ssize_t actual = CBOR_StringCompare( cbor_data, str2 );
TEST_ASSERT_LESS_THAN( 0, actual );
}
TEST( aws_cbor_string, StringCompare_matches_strcmp_when_first_string_is_less )
{
char * str1 = "Mismatching Strings a <-- that's different";
char * str2 = "Mismatching Strings B <-- that's different";
CBOR_WriteString( cbor_data, str1 );
cbor_data->cursor = cbor_data->buffer_start;
cbor_ssize_t actual = CBOR_StringCompare( cbor_data, str2 );
TEST_ASSERT_GREATER_THAN( 0, actual );
}
TEST( aws_cbor_string, StringCompare_both_strings_empty )
{
char * str1 = "";
char * str2 = "";
CBOR_WriteString( cbor_data, str1 );
cbor_data->cursor = cbor_data->buffer_start;
cbor_ssize_t actual = CBOR_StringCompare( cbor_data, str2 );
TEST_ASSERT_EQUAL_INT( 0, actual );
}
TEST( aws_cbor_string, StringCompare_matches_strcmp_when_second_string_is_empty )
{
char * str1 = "str1 is not empty";
char * str2 = "";
CBOR_WriteString( cbor_data, str1 );
cbor_data->cursor = cbor_data->buffer_start;
cbor_ssize_t actual = CBOR_StringCompare( cbor_data, str2 );
TEST_ASSERT_GREATER_THAN( 0, actual );
}
TEST( aws_cbor_string, StringCompare_first_string_is_shorter )
{
char * str1 = "str1 is shorter";
char * str2 = "str1 is shorter, and str2 is longer";
CBOR_WriteString( cbor_data, str1 );
cbor_data->cursor = cbor_data->buffer_start;
cbor_ssize_t actual = CBOR_StringCompare( cbor_data, str2 );
TEST_ASSERT_LESS_THAN( 0, actual );
}
TEST( aws_cbor_string, StringCompare_second_string_is_shorter )
{
char * str1 = "str2 is shorter, and str1 is longer";
char * str2 = "str2 is shorter";
CBOR_WriteString( cbor_data, str1 );
cbor_data->cursor = cbor_data->buffer_start;
cbor_ssize_t actual = CBOR_StringCompare( cbor_data, str2 );
TEST_ASSERT_GREATER_THAN( 0, actual );
}
TEST( aws_cbor_string, null_checks )
{
TEST_EXPECT_ASSERT( CBOR_WriteString( NULL, "hello" ) );
TEST_EXPECT_ASSERT( CBOR_WriteString( cbor_data, NULL ) );
TEST_EXPECT_ASSERT( CBOR_ReadString( NULL ) );
TEST_EXPECT_ASSERT( CBOR_StringSize( NULL ) );
TEST_EXPECT_ASSERT( CBOR_StringLength( NULL ) );
TEST_EXPECT_ASSERT( CBOR_StringCompare( NULL, "hello" ) );
TEST_EXPECT_ASSERT( CBOR_StringCompare( cbor_data, NULL ) );
}
|
cimeq/amazon-freertos
|
lib/FreeRTOS/portable/ThirdParty/GCC/Xtensa_ESP32/port.c
|
<reponame>cimeq/amazon-freertos<filename>lib/FreeRTOS/portable/ThirdParty/GCC/Xtensa_ESP32/port.c
/*
FreeRTOS V8.2.0 - Copyright (C) 2015 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License (version 2) as published by the
Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.
***************************************************************************
>>! NOTE: The modification to the GPL is included to allow you to !<<
>>! distribute a combined work that includes FreeRTOS without being !<<
>>! obliged to provide the source code for proprietary components !<<
>>! outside of the FreeRTOS kernel. !<<
***************************************************************************
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. Full license text is available on the following
link: http://www.freertos.org/a00114.html
***************************************************************************
* *
* FreeRTOS provides completely free yet professionally developed, *
* robust, strictly quality controlled, supported, and cross *
* platform software that is more than just the market leader, it *
* is the industry's de facto standard. *
* *
* Help yourself get started quickly while simultaneously helping *
* to support the FreeRTOS project by purchasing a FreeRTOS *
* tutorial book, reference manual, or both: *
* http://www.FreeRTOS.org/Documentation *
* *
***************************************************************************
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
the FAQ page "My application does not run, what could be wrong?". Have you
defined configASSERT()?
http://www.FreeRTOS.org/support - In return for receiving this top quality
embedded software for free we request you assist our global community by
participating in the support forum.
http://www.FreeRTOS.org/training - Investing in training allows your team to
be as productive as possible as early as possible. Now you can receive
FreeRTOS training directly from <NAME>, CEO of Real Time Engineers
Ltd, and the world's leading authority on the world's leading RTOS.
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
compatible FAT file system, and our tiny thread aware UDP/IP stack.
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
licenses offer ticketed support, indemnification and commercial middleware.
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
engineered and independently SIL3 certified version for use in safety and
mission critical applications that require provable dependability.
1 tab == 4 spaces!
*/
/*******************************************************************************
// Copyright (c) 2003-2015 Cadence Design Systems, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
*/
#include <stdlib.h>
#include <xtensa/config/core.h>
#include "xtensa_rtos.h"
#include "rom/ets_sys.h"
#include "soc/cpu.h"
#include "FreeRTOS.h"
#include "task.h"
#include "esp_panic.h"
#include "esp_heap_caps.h"
#include "esp_crosscore_int.h"
#include "esp_intr_alloc.h"
/* Defined in portasm.h */
extern void _frxt_tick_timer_init(void);
/* Defined in xtensa_context.S */
extern void _xt_coproc_init(void);
#if CONFIG_FREERTOS_CORETIMER_0
#define SYSTICK_INTR_ID (ETS_INTERNAL_TIMER0_INTR_SOURCE+ETS_INTERNAL_INTR_SOURCE_OFF)
#endif
#if CONFIG_FREERTOS_CORETIMER_1
#define SYSTICK_INTR_ID (ETS_INTERNAL_TIMER1_INTR_SOURCE+ETS_INTERNAL_INTR_SOURCE_OFF)
#endif
/*-----------------------------------------------------------*/
unsigned port_xSchedulerRunning[portNUM_PROCESSORS] = {0}; // Duplicate of inaccessible xSchedulerRunning; needed at startup to avoid counting nesting
unsigned port_interruptNesting[portNUM_PROCESSORS] = {0}; // Interrupt nesting level. Increased/decreased in portasm.c, _frxt_int_enter/_frxt_int_exit
/*-----------------------------------------------------------*/
// User exception dispatcher when exiting
void _xt_user_exit(void);
/*
* Stack initialization
*/
#if portUSING_MPU_WRAPPERS
StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters, BaseType_t xRunPrivileged )
#else
StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
#endif
{
StackType_t *sp, *tp;
XtExcFrame *frame;
#if XCHAL_CP_NUM > 0
uint32_t *p;
#endif
/* Create interrupt stack frame aligned to 16 byte boundary */
sp = (StackType_t *) (((UBaseType_t)(pxTopOfStack + 1) - XT_CP_SIZE - XT_STK_FRMSZ) & ~0xf);
/* Clear the entire frame (do not use memset() because we don't depend on C library) */
for (tp = sp; tp <= pxTopOfStack; ++tp)
*tp = 0;
frame = (XtExcFrame *) sp;
/* Explicitly initialize certain saved registers */
frame->pc = (UBaseType_t) pxCode; /* task entrypoint */
frame->a0 = 0; /* to terminate GDB backtrace */
frame->a1 = (UBaseType_t) sp + XT_STK_FRMSZ; /* physical top of stack frame */
frame->exit = (UBaseType_t) _xt_user_exit; /* user exception exit dispatcher */
/* Set initial PS to int level 0, EXCM disabled ('rfe' will enable), user mode. */
/* Also set entry point argument parameter. */
#ifdef __XTENSA_CALL0_ABI__
frame->a2 = (UBaseType_t) pvParameters;
frame->ps = PS_UM | PS_EXCM;
#else
/* + for windowed ABI also set WOE and CALLINC (pretend task was 'call4'd). */
frame->a6 = (UBaseType_t) pvParameters;
frame->ps = PS_UM | PS_EXCM | PS_WOE | PS_CALLINC(1);
#endif
#ifdef XT_USE_SWPRI
/* Set the initial virtual priority mask value to all 1's. */
frame->vpri = 0xFFFFFFFF;
#endif
#if XCHAL_CP_NUM > 0
/* Init the coprocessor save area (see xtensa_context.h) */
/* No access to TCB here, so derive indirectly. Stack growth is top to bottom.
* //p = (uint32_t *) xMPUSettings->coproc_area;
*/
p = (uint32_t *)(((uint32_t) pxTopOfStack - XT_CP_SIZE) & ~0xf);
p[0] = 0;
p[1] = 0;
p[2] = (((uint32_t) p) + 12 + XCHAL_TOTAL_SA_ALIGN - 1) & -XCHAL_TOTAL_SA_ALIGN;
#endif
return sp;
}
/*-----------------------------------------------------------*/
void vPortEndScheduler( void )
{
/* It is unlikely that the Xtensa port will get stopped. If required simply
disable the tick interrupt here. */
}
/*-----------------------------------------------------------*/
BaseType_t xPortStartScheduler( void )
{
// Interrupts are disabled at this point and stack contains PS with enabled interrupts when task context is restored
#if XCHAL_CP_NUM > 0
/* Initialize co-processor management for tasks. Leave CPENABLE alone. */
_xt_coproc_init();
#endif
/* Init the tick divisor value */
_xt_tick_divisor_init();
/* Setup the hardware to generate the tick. */
_frxt_tick_timer_init();
port_xSchedulerRunning[xPortGetCoreID()] = 1;
// Cannot be directly called from C; never returns
__asm__ volatile ("call0 _frxt_dispatch\n");
/* Should not get here. */
return pdTRUE;
}
/*-----------------------------------------------------------*/
BaseType_t xPortSysTickHandler( void )
{
BaseType_t ret;
portbenchmarkIntLatency();
traceISR_ENTER(SYSTICK_INTR_ID);
ret = xTaskIncrementTick();
if( ret != pdFALSE )
{
portYIELD_FROM_ISR();
} else {
traceISR_EXIT();
}
return ret;
}
void vPortYieldOtherCore( BaseType_t coreid ) {
esp_crosscore_int_send_yield( coreid );
}
/*-----------------------------------------------------------*/
/*
* Used to set coprocessor area in stack. Current hack is to reuse MPU pointer for coprocessor area.
*/
#if portUSING_MPU_WRAPPERS
void vPortStoreTaskMPUSettings( xMPU_SETTINGS *xMPUSettings, const struct xMEMORY_REGION * const xRegions, StackType_t *pxBottomOfStack, uint32_t usStackDepth )
{
#if XCHAL_CP_NUM > 0
xMPUSettings->coproc_area = (StackType_t*)((((uint32_t)(pxBottomOfStack + usStackDepth - 1)) - XT_CP_SIZE ) & ~0xf);
/* NOTE: we cannot initialize the coprocessor save area here because FreeRTOS is going to
* clear the stack area after we return. This is done in pxPortInitialiseStack().
*/
#endif
}
void vPortReleaseTaskMPUSettings( xMPU_SETTINGS *xMPUSettings )
{
/* If task has live floating point registers somewhere, release them */
_xt_coproc_release( xMPUSettings->coproc_area );
}
#endif
/*
* Returns true if the current core is in ISR context; low prio ISR, med prio ISR or timer tick ISR. High prio ISRs
* aren't detected here, but they normally cannot call C code, so that should not be an issue anyway.
*/
BaseType_t xPortInIsrContext()
{
unsigned int irqStatus;
BaseType_t ret;
irqStatus=portENTER_CRITICAL_NESTED();
ret=(port_interruptNesting[xPortGetCoreID()] != 0);
portEXIT_CRITICAL_NESTED(irqStatus);
return ret;
}
/*
* This function will be called in High prio ISRs. Returns true if the current core was in ISR context
* before calling into high prio ISR context.
*/
BaseType_t IRAM_ATTR xPortInterruptedFromISRContext()
{
return (port_interruptNesting[xPortGetCoreID()] != 0);
}
void vPortAssertIfInISR()
{
if (xPortInIsrContext()) {
ets_printf("core=%d port_interruptNesting=%d\n\n", xPortGetCoreID(), port_interruptNesting[xPortGetCoreID()]);
}
configASSERT(!xPortInIsrContext());
}
/*
* For kernel use: Initialize a per-CPU mux. Mux will be initialized unlocked.
*/
void vPortCPUInitializeMutex(portMUX_TYPE *mux) {
#if defined(CONFIG_SPIRAM_SUPPORT)
// Check if mux belongs to internal memory (DRAM), prerequisite for atomic operations
configASSERT(esp_ptr_internal((const void *) mux));
#endif
#ifdef CONFIG_FREERTOS_PORTMUX_DEBUG
ets_printf("Initializing mux %p\n", mux);
mux->lastLockedFn="(never locked)";
mux->lastLockedLine=-1;
#endif
mux->owner=portMUX_FREE_VAL;
mux->count=0;
}
#include "portmux_impl.h"
/*
* For kernel use: Acquire a per-CPU mux. Spinlocks, so don't hold on to these muxes for too long.
*/
#ifdef CONFIG_FREERTOS_PORTMUX_DEBUG
void vPortCPUAcquireMutex(portMUX_TYPE *mux, const char *fnName, int line) {
unsigned int irqStatus = portENTER_CRITICAL_NESTED();
vPortCPUAcquireMutexIntsDisabled(mux, portMUX_NO_TIMEOUT, fnName, line);
portEXIT_CRITICAL_NESTED(irqStatus);
}
bool vPortCPUAcquireMutexTimeout(portMUX_TYPE *mux, int timeout_cycles, const char *fnName, int line) {
unsigned int irqStatus = portENTER_CRITICAL_NESTED();
bool result = vPortCPUAcquireMutexIntsDisabled(mux, timeout_cycles, fnName, line);
portEXIT_CRITICAL_NESTED(irqStatus);
return result;
}
#else
void vPortCPUAcquireMutex(portMUX_TYPE *mux) {
unsigned int irqStatus = portENTER_CRITICAL_NESTED();
vPortCPUAcquireMutexIntsDisabled(mux, portMUX_NO_TIMEOUT);
portEXIT_CRITICAL_NESTED(irqStatus);
}
bool vPortCPUAcquireMutexTimeout(portMUX_TYPE *mux, int timeout_cycles) {
unsigned int irqStatus = portENTER_CRITICAL_NESTED();
bool result = vPortCPUAcquireMutexIntsDisabled(mux, timeout_cycles);
portEXIT_CRITICAL_NESTED(irqStatus);
return result;
}
#endif
/*
* For kernel use: Release a per-CPU mux
*
* Mux must be already locked by this core
*/
#ifdef CONFIG_FREERTOS_PORTMUX_DEBUG
void vPortCPUReleaseMutex(portMUX_TYPE *mux, const char *fnName, int line) {
unsigned int irqStatus = portENTER_CRITICAL_NESTED();
vPortCPUReleaseMutexIntsDisabled(mux, fnName, line);
portEXIT_CRITICAL_NESTED(irqStatus);
}
#else
void vPortCPUReleaseMutex(portMUX_TYPE *mux) {
unsigned int irqStatus = portENTER_CRITICAL_NESTED();
vPortCPUReleaseMutexIntsDisabled(mux);
portEXIT_CRITICAL_NESTED(irqStatus);
}
#endif
void vPortSetStackWatchpoint( void* pxStackStart ) {
//Set watchpoint 1 to watch the last 32 bytes of the stack.
//Unfortunately, the Xtensa watchpoints can't set a watchpoint on a random [base - base+n] region because
//the size works by masking off the lowest address bits. For that reason, we futz a bit and watch the lowest 32
//bytes of the stack we can actually watch. In general, this can cause the watchpoint to be triggered at most
//28 bytes early. The value 32 is chosen because it's larger than the stack canary, which in FreeRTOS is 20 bytes.
//This way, we make sure we trigger before/when the stack canary is corrupted, not after.
int addr=(int)pxStackStart;
addr=(addr+31)&(~31);
esp_set_watchpoint(1, (char*)addr, 32, ESP_WATCHPOINT_STORE);
}
uint32_t xPortGetTickRateHz(void) {
return (uint32_t)configTICK_RATE_HZ;
}
|
cimeq/amazon-freertos
|
lib/cbor/src/aws_cbor_int.c
|
<gh_stars>0
/*
* Amazon FreeRTOS CBOR Library V1.0.1
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "aws_cbor_internals.h"
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
/**
* @brief reads the specified byte from the number
*
* Reads the byte specified by the index from the number, with 1 being the most
* significant and n being the least significant (where n is the number of
* bytes in the integer).
*
* @param number Number to extract byte from
* @param index Byte to extract (1 being most significant)
* @return The extracted byte
*/
#define CBOR_ReadByte( number, index ) \
number >> ( CBOR_BYTE_WIDTH * ( sizeof( number ) - ( index ) ) )
void CBOR_WriteInt( cbor_handle_t pxCbor_data,
const void * pxInput )
{
assert( NULL != pxCbor_data );
assert( NULL != pxInput );
cbor_int_t xNum = *( cbor_int_t * ) pxInput;
if( CBOR_IsSmallInt( xNum ) )
{
CBOR_ValueResize( pxCbor_data, CBOR_SMALL_INT_SIZE );
CBOR_WriteSmallInt( pxCbor_data, xNum );
}
else if( CBOR_Is8BitInt( xNum ) )
{
CBOR_ValueResize( pxCbor_data, CBOR_INT8_SIZE );
CBOR_WriteInt8( pxCbor_data, ( cbor_byte_t ) xNum );
}
else if( CBOR_Is16BitInt( xNum ) )
{
CBOR_ValueResize( pxCbor_data, CBOR_INT16_SIZE );
CBOR_WriteInt16( pxCbor_data, ( uint16_t ) xNum );
}
else if( CBOR_Is32BitInt( xNum ) )
{
CBOR_ValueResize( pxCbor_data, CBOR_INT32_SIZE );
CBOR_WriteInt32( pxCbor_data, ( uint32_t ) xNum );
}
}
cbor_ssize_t CBOR_IntSize( const cbor_byte_t * pxPtr )
{
assert( NULL != pxPtr );
cbor_byte_t xData_head = *( pxPtr );
cbor_byte_t xMajor_type = xData_head & CBOR_MAJOR_TYPE_MASK;
assert( xMajor_type == CBOR_POS_INT || xMajor_type == CBOR_NEG_INT );
cbor_byte_t xAdditional_detail = xData_head & CBOR_ADDITIONAL_DATA_MASK;
cbor_ssize_t xSize = 0;
if( CBOR_IsSmallInt( xAdditional_detail ) )
{
xSize = CBOR_SMALL_INT_SIZE;
}
else if( CBOR_INT8_FOLLOWS == xAdditional_detail )
{
xSize = CBOR_INT8_SIZE;
}
else if( CBOR_INT16_FOLLOWS == xAdditional_detail )
{
xSize = CBOR_INT16_SIZE;
}
else if( CBOR_INT32_FOLLOWS == xAdditional_detail )
{
xSize = CBOR_INT32_SIZE;
}
return xSize;
}
void CBOR_WriteInt32( cbor_handle_t pxCbor_data,
uint32_t ulNum )
{
assert( NULL != pxCbor_data );
CBOR_AssignAndIncrementCursor( pxCbor_data, CBOR_INT32_FOLLOWS );
for( cbor_int_t xI = 1; xI <= sizeof( ulNum ); xI++ )
{
cbor_byte_t xByte = CBOR_ReadByte( ulNum, xI );
CBOR_AssignAndIncrementCursor( pxCbor_data, xByte );
}
}
void CBOR_WriteInt16( cbor_handle_t pxCbor_data,
uint16_t usNum )
{
assert( NULL != pxCbor_data );
CBOR_AssignAndIncrementCursor( pxCbor_data, CBOR_INT16_FOLLOWS );
for( cbor_int_t xI = 1; xI <= sizeof( usNum ); xI++ )
{
cbor_byte_t xByte = CBOR_ReadByte( usNum, xI );
CBOR_AssignAndIncrementCursor( pxCbor_data, xByte );
}
}
void CBOR_WriteInt8( cbor_handle_t pxCbor_data,
cbor_byte_t xNum )
{
assert( NULL != pxCbor_data );
CBOR_AssignAndIncrementCursor( pxCbor_data, CBOR_INT8_FOLLOWS );
CBOR_AssignAndIncrementCursor( pxCbor_data, xNum );
}
void CBOR_WriteSmallInt( cbor_handle_t pxCbor_data,
cbor_byte_t xNum )
{
assert( NULL != pxCbor_data );
CBOR_AssignAndIncrementCursor( pxCbor_data, xNum );
}
cbor_int_t CBOR_ReadInt( cbor_handle_t pxCbor_data )
{
assert( NULL != pxCbor_data );
cbor_byte_t xData_head = *( pxCbor_data->cursor );
cbor_byte_t xMajor_type = xData_head & CBOR_MAJOR_TYPE_MASK;
if( CBOR_POS_INT != xMajor_type )
{
pxCbor_data->err = eCBOR_ERR_READ_TYPE_MISMATCH;
}
cbor_int_t xNum = 0;
cbor_byte_t xAdditional_detail = xData_head & CBOR_ADDITIONAL_DATA_MASK;
switch( xAdditional_detail )
{
case CBOR_INT32_FOLLOWS:
xNum = CBOR_ReadPositiveInt32( pxCbor_data );
break;
case CBOR_INT16_FOLLOWS:
xNum = CBOR_ReadPositiveInt16( pxCbor_data );
break;
case CBOR_INT8_FOLLOWS:
xNum = CBOR_ReadPositiveInt8( pxCbor_data );
break;
default:
xNum = xAdditional_detail;
break;
}
return xNum;
}
uint32_t CBOR_ReadPositiveInt32( cbor_handle_t pxCbor_data )
{
assert( NULL != pxCbor_data );
uint32_t ulNum = 0;
cbor_byte_t * pxPtr = pxCbor_data->cursor + 1;
/* Scan byte by byte and reassemble the integer */
for( cbor_int_t xI = 0; xI < sizeof( ulNum ); xI++ )
{
cbor_byte_t xByte = *( pxPtr )++;
ulNum <<= CBOR_BYTE_WIDTH;
ulNum += xByte;
}
return ulNum;
}
uint16_t CBOR_ReadPositiveInt16( cbor_handle_t pxCbor_data )
{
assert( NULL != pxCbor_data );
uint16_t usNum = 0;
cbor_byte_t * pxPtr = pxCbor_data->cursor + 1;
/* Scan byte by byte and reassemble the integer */
for( cbor_int_t xI = 0; xI < sizeof( usNum ); xI++ )
{
cbor_byte_t xByte = *( pxPtr )++;
usNum <<= CBOR_BYTE_WIDTH;
usNum += xByte;
}
return usNum;
}
cbor_byte_t CBOR_ReadPositiveInt8( cbor_handle_t pxCbor_data )
{
assert( NULL != pxCbor_data );
return pxCbor_data->cursor[ 1 ];
}
cbor_byte_t CBOR_ReadSmallPositiveInt( cbor_handle_t pxCbor_data )
{
assert( NULL != pxCbor_data );
return *pxCbor_data->cursor;
}
|
cimeq/amazon-freertos
|
demos/common/ota/bootloader/include/aws_boot_log.h
|
/*
* Amazon FreeRTOS Demo Bootloader V1.4.1
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
/**
* @file aws_boot_log.h
* @brief Boot logging utilities header.
*/
#ifndef _AWS_BOOT_LOG_H_
#define _AWS_BOOT_LOG_H_
/* Standard includes.*/
#include "stddef.h"
/*
* Max characters per line.
*/
#define BOOT_LOG_PRINT_BUFFER_SIZE ( 120U )
/*
* Debug log level setting.
*/
#define BOOT_LOG_DEBUG_LEVEL ( 2U )
/*
* Debug print function.
*/
#define BOOT_LOG_CONSOLE BOOT_LOG_Printf
/*
* Boot debug print definitions.
*/
#if BOOT_LOG_DEBUG_LEVEL >= 1
#define DEFINE_BOOT_METHOD_NAME( name ) static const char BOOT_METHOD_NAME[] = name;
#define BOOT_LOG_L1 BOOT_LOG_CONSOLE
#else
#define BOOT_LOG_L1( ... )
#endif
#if BOOT_LOG_DEBUG_LEVEL >= 2
#define BOOT_LOG_L2 BOOT_LOG_CONSOLE
#else
#define BOOT_LOG_L2( ... )
#endif
#if BOOT_LOG_DEBUG_LEVEL >= 3
#define BOOT_LOG_L3 BOOT_LOG_CONSOLE
#else
#define BOOT_LOG_L3( ... )
#endif
/**
* @brief BOOT_LOG_UART_Write
* This is a platform specific uart write function.
*/
size_t BOOT_LOG_UART_Write( const char * pcBuf,
size_t xNumBytes );
#endif /*_AWS_BOOT_LOG_H_*/
|
cimeq/amazon-freertos
|
lib/cbor/test/test_aws_cbor_mem.c
|
/*
* Amazon FreeRTOS CBOR Library V1.0.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "assert_override.h"
#include "aws_cbor_internals.h"
#include "unity_fixture.h"
#include <string.h>
typedef struct test_size_s
{
cbor_byte_t buffer[ 32 ];
cbor_ssize_t cursor_index;
cbor_ssize_t expected_size;
char * message;
} test_size_t;
static cbor_handle_t cbor_data;
TEST_GROUP( aws_cbor_mem );
TEST_SETUP( aws_cbor_mem )
{
cbor_data = CBOR_New( 0 );
}
TEST_TEAR_DOWN( aws_cbor_mem )
{
TEST_ASSERT_EQUAL( eCBOR_ERR_NO_ERROR, cbor_data->err );
CBOR_Delete( &cbor_data );
}
TEST_GROUP_RUNNER( aws_cbor_mem )
{
RUN_TEST_CASE( aws_cbor_mem, test_setup );
RUN_TEST_CASE( aws_cbor_mem, AssignAndIncrement );
RUN_TEST_CASE(
aws_cbor_mem, AssignAndIncrement_reallocates_when_buffer_is_full );
RUN_TEST_CASE(
aws_cbor_mem, AssignAndIncrement_returns_err_when_out_of_memory );
RUN_TEST_CASE( aws_cbor_mem,
AssignAndIncrement_asserts_when_cursor_before_start_of_buffer );
RUN_TEST_CASE( aws_cbor_mem, AssignAndDecrement );
RUN_TEST_CASE( aws_cbor_mem,
AssignAndDecrement_asserts_when_cursor_before_start_of_buffer );
RUN_TEST_CASE(
aws_cbor_mem, AssignAndDecrement_returns_err_when_past_end_of_buffer );
RUN_TEST_CASE( aws_cbor_mem, MemCopy_will_forward_copy_overlapping_strings );
RUN_TEST_CASE( aws_cbor_mem, MemCopy_will_reverse_copy_overlapping_strings );
RUN_TEST_CASE( aws_cbor_mem, MemCopy_will_do_nothing_if_src_matches_dest );
RUN_TEST_CASE( aws_cbor_mem, MemCopy_returns_err_when_out_of_memory );
RUN_TEST_CASE( aws_cbor_mem, GetValueSize );
RUN_TEST_CASE( aws_cbor_mem, ValueResize_will_shrink_value );
RUN_TEST_CASE( aws_cbor_mem, ValueResize_will_grow_value );
RUN_TEST_CASE(
aws_cbor_mem, ValueResize_makes_no_change_if_data_size_unknown );
RUN_TEST_CASE( aws_cbor_mem, ValueResize_asserts_on_map_end_errors );
RUN_TEST_CASE( aws_cbor_mem, null_checks );
}
TEST( aws_cbor_mem, test_setup )
{
/* Test to ensure tests are setup correctly */
TEST_ASSERT_NOT_NULL( cbor_data );
}
TEST( aws_cbor_mem, AssignAndIncrement )
{
CBOR_AssignAndIncrementCursor( cbor_data, 0x42 );
CBOR_AssignAndIncrementCursor( cbor_data, 0x24 );
TEST_ASSERT_EQUAL_HEX8( 0x42, ( cbor_data->buffer_start )[ 0 ] );
TEST_ASSERT_EQUAL_HEX8( 0x24, ( cbor_data->buffer_start )[ 1 ] );
}
TEST( aws_cbor_mem, AssignAndIncrement_reallocates_when_buffer_is_full )
{
cbor_int_t initial_buffer_size =
cbor_data->buffer_end - cbor_data->buffer_start + 1;
cbor_data->cursor = cbor_data->buffer_end;
CBOR_AssignAndIncrementCursor( cbor_data, 0xF0 );
CBOR_AssignAndIncrementCursor( cbor_data, 0x01 );
cbor_int_t final_buffer_size =
cbor_data->buffer_end - cbor_data->buffer_start + 1;
TEST_ASSERT_GREATER_THAN( initial_buffer_size, final_buffer_size );
}
TEST( aws_cbor_mem, AssignAndIncrement_returns_err_when_out_of_memory )
{
cbor_data->cursor = cbor_data->buffer_end;
UnityMalloc_MakeMallocFailAfterCount( 0 );
CBOR_AssignAndIncrementCursor( cbor_data, 0xDE );
CBOR_AssignAndIncrementCursor( cbor_data, 0xAD );
TEST_ASSERT_EQUAL( eCBOR_ERR_INSUFFICENT_SPACE, cbor_data->err );
cbor_data->err = eCBOR_ERR_NO_ERROR;
}
TEST(
aws_cbor_mem, AssignAndIncrement_asserts_when_cursor_before_start_of_buffer )
{
cbor_data->cursor = cbor_data->buffer_start - 1;
TEST_EXPECT_ASSERT( CBOR_AssignAndIncrementCursor( cbor_data, 0xBC ) );
}
TEST( aws_cbor_mem, AssignAndDecrement )
{
cbor_data->cursor = &( cbor_data->buffer_start )[ 1 ];
CBOR_AssignAndDecrementCursor( cbor_data, 0x73 );
CBOR_AssignAndDecrementCursor( cbor_data, 0x24 );
TEST_ASSERT_EQUAL_HEX8( 0x73, ( cbor_data->buffer_start )[ 1 ] );
TEST_ASSERT_EQUAL_HEX8( 0x24, ( cbor_data->buffer_start )[ 0 ] );
}
TEST(
aws_cbor_mem, AssignAndDecrement_asserts_when_cursor_before_start_of_buffer )
{
CBOR_AssignAndDecrementCursor( cbor_data, 0xEF );
TEST_EXPECT_ASSERT( CBOR_AssignAndDecrementCursor( cbor_data, 0xBE ) );
}
TEST( aws_cbor_mem, AssignAndDecrement_returns_err_when_past_end_of_buffer )
{
cbor_data->cursor = cbor_data->buffer_end + 1;
UnityMalloc_MakeMallocFailAfterCount( 0 );
CBOR_AssignAndDecrementCursor( cbor_data, 0xCE );
TEST_ASSERT_EQUAL( eCBOR_ERR_INSUFFICENT_SPACE, cbor_data->err );
cbor_data->err = eCBOR_ERR_NO_ERROR;
}
TEST( aws_cbor_mem, MemCopy_will_forward_copy_overlapping_strings )
{
char pcInit[] = "Helllo, World!";
char pcExpected[] = "Hello, World!";
/* Copy the string into the CBOR buffer. */
memcpy( ( cbor_data->buffer_start ), pcInit, strlen( pcInit ) + 1 );
/* Point the cursor to the third l. */
/* This is where the data will be copied to. */
cbor_data->cursor = &( cbor_data->buffer_start )[ 4 ];
/* Starting from the 'o', copy back to the cursor. */
CBOR_MemCopy( cbor_data, &( cbor_data->buffer_start )[ 5 ], 10 );
TEST_ASSERT_EQUAL_STRING( pcExpected, ( cbor_data->buffer_start ) );
/* Cursor will now be pointing to the position after the null terminator for */
/* the string "Hello, World!" */
cbor_byte_t * expected_cursor_position =
&( cbor_data->buffer_start )[ strlen( pcExpected ) + 1 ];
TEST_ASSERT_EQUAL_PTR( expected_cursor_position, cbor_data->cursor );
}
TEST( aws_cbor_mem, MemCopy_will_reverse_copy_overlapping_strings )
{
char pcInit[] = "Helo, World!";
char pcExpected[] = "Hello, World!";
/* Copy the string into the CBOR buffer. */
memcpy( ( cbor_data->buffer_start ), pcInit, strlen( pcInit ) + 1 );
/* Point the cursor at the 'o' */
cbor_data->cursor = &( cbor_data->buffer_start )[ 3 ];
/* Starting from the 'l' in "Helo", copy to the cursor */
CBOR_MemCopy( cbor_data, &( cbor_data->buffer_start )[ 2 ], 11 );
TEST_ASSERT_EQUAL_STRING( pcExpected, ( cbor_data->buffer_start ) );
/* Cursor will now be pointing to the position after the null terminator for */
/* the string "Hello, World!" */
cbor_byte_t * expected_cursor_position =
&( cbor_data->buffer_start )[ strlen( pcExpected ) + 1 ];
TEST_ASSERT_EQUAL_PTR( expected_cursor_position, cbor_data->cursor );
}
TEST( aws_cbor_mem, MemCopy_will_do_nothing_if_src_matches_dest )
{
char pcInit[] = "Hello, World!";
char pcExpected[] = "Hello, World!";
/* Copy the string into the CBOR buffer. */
memcpy( ( cbor_data->buffer_start ), pcInit, sizeof( pcInit ) );
/* Point the cursor to the start of the buffer */
cbor_data->cursor = ( cbor_data->buffer_start );
/* From the start of the buffer, copy to the cursor */
/* (Which is at the same position (the start of the buffer)). */
CBOR_MemCopy( cbor_data, ( cbor_data->buffer_start ), sizeof( pcInit ) );
TEST_ASSERT_EQUAL_STRING( pcExpected, ( cbor_data->buffer_start ) );
/* Cursor will now be pointing to the position after the null terminator for */
/* the string "Hello, World!" */
cbor_byte_t * expected_cursor_position =
&( cbor_data->buffer_start )[ strlen( pcExpected ) + 1 ];
TEST_ASSERT_EQUAL( 0, expected_cursor_position - cbor_data->cursor );
}
TEST( aws_cbor_mem, MemCopy_returns_err_when_out_of_memory )
{
char lorem[] =
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do "
"eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim "
"ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut "
"aliquip ex ea commodo consequat. Duis aute irure dolor in "
"reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla "
"pariatur. Excepteur sint occaecat cupidatat non proident, sunt in "
"culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum "
"dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor "
"incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, "
"quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea "
"commodo consequat. Duis aute irure dolor in reprehenderit in "
"voluptate velit esse cillum dolore eu fugiat nulla pariatur. "
"Excepteur sint occaecat cupidatat non proident, sunt in culpa qui "
"officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit "
"amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt "
"ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis "
"nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo "
"consequat. Duis aute irure dolor in reprehenderit in voluptate velit "
"esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat "
"cupidatat non proident, sunt in culpa qui officia deserunt mollit "
"anim id est laborum.";
UnityMalloc_MakeMallocFailAfterCount( 0 );
CBOR_MemCopy( cbor_data, lorem, sizeof( lorem ) );
TEST_ASSERT_EQUAL( eCBOR_ERR_INSUFFICENT_SPACE, cbor_data->err );
cbor_data->err = eCBOR_ERR_NO_ERROR;
}
const test_size_t * test_case;
const test_size_t size_test_cases[] =
{
{
.message = "smallest integer in additional data",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x00, /* 3 0 */
0xFF, /* 4 End of map */
},
.cursor_index = 3,
.expected_size = 1,
},
{
.message = "largest integer in additional data",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x17, /* 3 23 */
0xFF, /* 4 End of map */
},
.cursor_index = 3,
.expected_size = 1,
},
{
.message = "integer in 1 following byte",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x18, /* 3 cbor_int_t follows in 1 byte */
24, /* 4 */
0xFF, /* 5 End of map */
},
.cursor_index = 3,
.expected_size = 2,
},
{
.message = "integer in 2 following bytes",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x19, /* 3 cbor_int_t follows in 2 byte */
0xDE, /* 4 */
0xAD, /* 5 */
0xFF, /* 6 End of map */
},
.cursor_index = 3,
.expected_size = 3,
},
{
.message = "integer in 4 following bytes",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x1A, /* 3 cbor_int_t follows in 4 byte */
0xDE, /* 4 */
0xAD, /* 5 */
0xBE, /* 6 */
0xEF, /* 7 */
0xFF, /* 8 End of map */
},
.cursor_index = 3,
.expected_size = 5,
},
{
.message = "zero length string",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x60, /* 3 zero length string */
},
.cursor_index = 3,
.expected_size = 1,
},
{
.message = "23 char string",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x77, /* 3 23 char string */
},
.cursor_index = 3,
.expected_size = 24,
},
{
.message = "24 char string",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x78, /* 3 string size follows in 1 byte */
24, /* 4 24 char string */
},
.cursor_index = 3,
.expected_size = 24 + 2,
},
{
.message = "256 char string",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x79, /* 3 string size follows in 2 byte */
0x01, /* 4 256 char string */
0x00, /* 5 */
},
.cursor_index = 3,
.expected_size = 256 + 3,
},
{
.message = "empty map",
.buffer =
{
0xBF, /* 0 Open Map */
0xFF, /* 1 End of map */
},
.cursor_index = 0,
.expected_size = 2,
},
{
.message = "simple map",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x00, /* 3 0 */
0xFF, /* 4 End of map */
},
.cursor_index = 0,
.expected_size = 5,
},
{
.message = "map inside of map",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'm', /* 2 */
0xBF, /* 3 Open Map */
0x61, /* 4 Key, length 1 */
'1', /* 5 */
0x19, /* 6 cbor_int_t follows in 2 bytes */
0xDE, /* 7 */
0xAD, /* 8 */
0xFF, /* 9 End of map */
0x61, /* 10 Key, length 1 */
'a', /* 11 */
0x10, /* 12 16 */
0xFF, /* 13 End of map */
},
.cursor_index = 3,
.expected_size = 7,
},
{
.message = "map containing a map",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'm', /* 2 */
0xBF, /* 3 Open Map */
0x61, /* 4 Key, length 1 */
'1', /* 5 */
0x19, /* 6 cbor_int_t follows in 2 bytes */
0xDE, /* 7 */
0xAD, /* 8 */
0xFF, /* 9 End of map */
0x61, /* 10 Key, length 1 */
'a', /* 11 */
0x10, /* 12 16 */
0xFF, /* 13 End of map */
},
.cursor_index = 0,
.expected_size = 14,
},
};
void test_GetSize( void )
{
CBOR_SetCursor( cbor_data, 0 );
CBOR_MemCopy( cbor_data, test_case->buffer, sizeof( test_case->buffer ) );
CBOR_SetCursor( cbor_data, test_case->cursor_index );
cbor_ssize_t actual_size = CBOR_DataItemSize( cbor_data );
TEST_ASSERT_EQUAL_MESSAGE(
test_case->expected_size, actual_size, test_case->message );
}
TEST( aws_cbor_mem, GetValueSize )
{
cbor_int_t test_case_count =
sizeof( size_test_cases ) / sizeof( size_test_cases[ 0 ] );
for( cbor_int_t i = 0; i < test_case_count; i++ )
{
test_case = &size_test_cases[ i ];
RUN_TEST( test_GetSize );
}
}
TEST( aws_cbor_mem, ValueResize_will_shrink_value )
{
cbor_byte_t initial[] =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
0x31, /* 2 '1' */
0x1A, /* 3 Start 32-bit cbor_int_t */
0x5C, /* 4 */
0xA1, /* 5 */
0xAB, /* 6 */
0x1E, /* 7 */
0x61, /* 8 Key of length 1 */
0x32, /* 9 '2' */
0x19, /* 10 Start 16-bit cbor_int_t */
0x73, /* 11 */
0x92, /* 12 */
0xFF, /* 13 End of map */
};
cbor_byte_t expected[] =
{
0xBF, /* 0 */
0x61, /* 1 */
0x31, /* 2 */
0x1A, /* 3 */
0x5C, /* 4 */
0x61, /* 5 */
0x32, /* 6 */
0x19, /* 7 */
0x73, /* 8 */
0x92, /* 9 */
0xFF, /* 10 */
};
memcpy( ( cbor_data->buffer_start ), initial, sizeof( initial ) );
cbor_data->cursor = &( cbor_data->buffer_start )[ 3 ];
cbor_data->map_end = &( cbor_data->buffer_start )[ 13 ];
cbor_ssize_t new_size = 2;
CBOR_ValueResize( cbor_data, new_size );
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected, ( cbor_data->buffer_start ), sizeof( expected ) );
}
TEST( aws_cbor_mem, ValueResize_will_grow_value )
{
cbor_byte_t initial[] =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
0x31, /* 2 '1' */
0x18, /* 3 Start 8-bit cbor_int_t */
0x23, /* 4 */
0x61, /* 5 Key of length 1 */
0x32, /* 6 '2' */
0x19, /* 7 Start 16-bit cbor_int_t */
0x73, /* 8 */
0x92, /* 9 */
0xFF, /* 10 End of map */
};
cbor_byte_t expected[] =
{
0xBF, /* 0 */
0x61, /* 1 */
0x31, /* 2 */
0x18, /* 3 */
0x23, /* 4 */
0x61, /* 5 */
0x61, /* 6 */
0x32, /* 7 */
0x19, /* 8 */
0x73, /* 9 */
0x92, /* 10 */
0xFF, /* 11 */
};
memcpy( ( cbor_data->buffer_start ), initial, sizeof( initial ) );
cbor_data->cursor = &( cbor_data->buffer_start )[ 3 ];
cbor_data->map_end = &( cbor_data->buffer_start )[ 10 ];
cbor_ssize_t new_size = 3;
CBOR_ValueResize( cbor_data, new_size );
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected, ( cbor_data->buffer_start ), sizeof( expected ) );
}
TEST( aws_cbor_mem, ValueResize_makes_no_change_if_data_size_unknown )
{
cbor_byte_t expected[] =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
0x31, /* 2 '1' */
0x20, /* 3 unkown data type */
0x23, /* 4 */
0x61, /* 5 Key of length 1 */
0x32, /* 6 '2' */
0x19, /* 7 Start 16-bit cbor_int_t */
0x73, /* 8 */
0x92, /* 9 */
0xFF, /* 10 End of map */
};
memcpy( ( cbor_data->buffer_start ), expected, sizeof( expected ) );
CBOR_SetCursor( cbor_data, 3 );
cbor_data->map_end = cbor_data->buffer_start + 10;
cbor_ssize_t new_size = 2;
CBOR_ValueResize( cbor_data, new_size );
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected, ( cbor_data->buffer_start ), sizeof( expected ) );
}
TEST( aws_cbor_mem, ValueResize_asserts_on_map_end_errors )
{
cbor_byte_t initial[] =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
0x31, /* 2 '1' */
0x1A, /* 3 32-bit cbor_int_t */
0x23, /* 4 */
0x23, /* 5 */
0x23, /* 6 */
0x23, /* 7 */
0xFF, /* 8 End of map */
};
memcpy( ( cbor_data->buffer_start ), initial, sizeof( initial ) );
cbor_data->cursor = &( cbor_data->buffer_start )[ 3 ];
/* point map_end to a spot before the end of the map */
cbor_data->map_end = &( cbor_data->buffer_start )[ 4 ];
cbor_ssize_t new_size = 1;
TEST_EXPECT_ASSERT( CBOR_ValueResize( cbor_data, new_size ) );
}
TEST( aws_cbor_mem, null_checks )
{
TEST_EXPECT_ASSERT( CBOR_AssignAndIncrementCursor( NULL, 0 ) );
TEST_EXPECT_ASSERT( CBOR_AssignAndDecrementCursor( NULL, 0 ) );
TEST_EXPECT_ASSERT( CBOR_MemCopy( NULL, "hello", 0 ) );
TEST_EXPECT_ASSERT( CBOR_MemCopy( cbor_data, NULL, 0 ) );
TEST_EXPECT_ASSERT( CBOR_DataItemSize( NULL ) );
TEST_EXPECT_ASSERT( CBOR_DataItemSizePtr( NULL ) );
TEST_EXPECT_ASSERT( CBOR_ValueResize( NULL, 0 ) );
}
|
cimeq/amazon-freertos
|
lib/FreeRTOS/portable/GCC/ARM_CM4F_MPU/port.c
|
<reponame>cimeq/amazon-freertos
/**
* @file port.c
* @brief FreeRTOS Cortex M4F core
* @author Dr. <NAME> <EMAIL>
* @mainpage
* <b>MPU plus FPU port for the ARM Cortex M4F Microcontroller</b>
*
* - MPU and FPU used
* - FPU context saved and restored on demand when switching to and from tasks using the FPU.
* - FPU context NOT saved on entry of ISR. No overhead on entry of interrupt service routines.
*
* @attention Tasks that run in privileged mode need to set <b>portPRIVILEGE_BIT</b> in the tasks priority field.
*
*/
/*
FreeRTOS V7.5.3 - Copyright (C) 2013 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
***************************************************************************
* *
* FreeRTOS provides completely free yet professionally developed, *
* robust, strictly quality controlled, supported, and cross *
* platform software that has become a de facto standard. *
* *
* Help yourself get started quickly and support the FreeRTOS *
* project by purchasing a FreeRTOS tutorial book, reference *
* manual, or both from: http://www.FreeRTOS.org/Documentation *
* *
* Thank you! *
* *
***************************************************************************
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License (version 2) as published by the
Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.
>>! NOTE: The modification to the GPL is included to allow you to distribute
>>! a combined work that includes FreeRTOS without being obliged to provide
>>! the source code for proprietary components outside of the FreeRTOS
>>! kernel.
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. Full license text is available from the following
link: http://www.freertos.org/a00114.html
1 tab == 4 spaces!
***************************************************************************
* *
* Having a problem? Start by reading the FAQ "My application does *
* not run, what could be wrong?" *
* *
* http://www.FreeRTOS.org/FAQHelp.html *
* *
***************************************************************************
http://www.FreeRTOS.org - Documentation, books, training, latest versions,
license and Real Time Engineers Ltd. contact details.
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
compatible FAT file system, and our tiny thread aware UDP/IP stack.
http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High
Integrity Systems to sell under the OpenRTOS brand. Low cost OpenRTOS
licenses offer ticketed support, indemnification and middleware.
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
engineered and independently SIL3 certified version for use in safety and
mission critical applications that require provable dependability.
1 tab == 4 spaces!
*/
/*-----------------------------------------------------------
* Implementation of functions defined in portable.h for the ARM CM3 port.
*----------------------------------------------------------*/
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
all the API functions to use the MPU wrappers. That should only be done when
task.h is included from an application file. */
#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE
/* Scheduler includes. */
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "event_groups.h"
#undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE
//#undef prvRaisePrivilege
//#undef portRESET_PRIVILEGE
/*
* Checks to see if being called from the context of an unprivileged task, and
* if so raises the privilege level and returns false - otherwise does nothing
* other than return true.
*/
BaseType_t xPortRaisePrivilege( void ) __attribute__(( naked ));
/* Set the privilege level to user mode if xRunningPrivileged is false. */
//#define portRESET_PRIVILEGE( xRunningPrivileged ) if( xRunningPrivileged != pdTRUE ) __asm volatile ( " mrs r0, control \n orr r0, #1 \n msr control, r0" :::"r0" )
/* Constants required to access and manipulate the FPU. */
#define portSCB_CPACR ( ( volatile unsigned long * ) 0xe000ed88 )
#define portFPU_FPCCR ( ( volatile unsigned long * ) 0xe000ef34 )
/* Constants required to access and manipulate the SysTick. */
#define portNVIC_SYSTICK_CLK ( 0x00000004UL )
#define portNVIC_SYSTICK_INT ( 0x00000002UL )
#define portNVIC_SYSTICK_ENABLE ( 0x00000001UL )
#define portNVIC_PENDSV_PRI ( ( ( uint32_t ) configKERNEL_INTERRUPT_PRIORITY ) << 16UL )
#define portNVIC_SYSTICK_PRI ( ( ( uint32_t ) configKERNEL_INTERRUPT_PRIORITY ) << 24UL )
//#define portNVIC_SVC_PRI ( ( ( uint32_t ) configKERNEL_INTERRUPT_PRIORITY ) << 24UL )
#define portNVIC_SVC_PRI ( ( ( uint32_t ) configMAX_SYSCALL_INTERRUPT_PRIORITY - 0x10 ) << 24UL )
/* Constants required to set up the initial stack. */
#define portINITIAL_XPSR ( 0x01000000 )
#define portINITIAL_CONTROL_IF_UNPRIVILEGED ( 0x03 )
#define portINITIAL_CONTROL_IF_PRIVILEGED ( 0x02 )
/* Constants required to set up the initial stack. */
#define portINITIAL_XPSR ( 0x01000000 )
#define portINITIAL_EXEC_RETURN ( 0xfffffffd )
/* Offsets in the stack to the parameters when inside the SVC handler. */
#define portOFFSET_TO_PC ( 6 )
/* Each task maintains its own interrupt status in the critical nesting
variable. Note this is not saved as part of the task context as context
switches can only occur when uxCriticalNesting is zero. */
static UBaseType_t uxCriticalNesting = 0xaaaaaaaa;
/*
* Setup the timer to generate the tick interrupts.
*/
static void prvSetupTimerInterrupt( void ) PRIVILEGED_FUNCTION;
/*
* Configure the FPU: FPU enable and automatic FPU context pushing disabled.
*/
static void prvSetupFPU( void ) PRIVILEGED_FUNCTION;
/*
* Configure a number of standard MPU regions that are used by all tasks.
*/
static void prvSetupMPU( void ) PRIVILEGED_FUNCTION;
/*
* Return the smallest MPU region size that a given number of bytes will fit
* into. The region size is returned as the value that should be programmed
* into the region attribute register for that region.
*/
static uint32_t prvGetMPURegionSizeSetting( uint32_t ulActualSizeInBytes ) PRIVILEGED_FUNCTION;
/* Constants required to manipulate the VFP. */
#define portFPCCR ( ( volatile uint32_t * ) 0xe000ef34 ) /* Floating point context control register. */
#define portASPEN_AND_LSPEN_BITS ( 0x3UL << 30UL )
/*
* Standard FreeRTOS exception handlers.
*/
void xPortPendSVHandler( void ) __attribute__ (( naked )) PRIVILEGED_FUNCTION;
void xPortSysTickHandler( void ) __attribute__ ((optimize("3"))) PRIVILEGED_FUNCTION;
void vPortSVCHandler( void ) __attribute__ (( naked )) PRIVILEGED_FUNCTION;
/*
* Starts the scheduler by restoring the context of the first task to run.
*/
static void prvRestoreContextOfFirstTask( void ) __attribute__(( naked )) PRIVILEGED_FUNCTION;
/*
* C portion of the SVC handler. The SVC handler is split between an asm entry
* and a C wrapper for simplicity of coding and maintenance.
*/
static void prvSVCHandler( uint32_t *pulRegisters ) __attribute__(( noinline )) PRIVILEGED_FUNCTION;
/*
* Prototypes for all the MPU wrappers.
*/
#if 0
BaseType_t MPU_xTaskGenericCreate( TaskFunction_t pvTaskCode, const char * const pcName, uint16_t usStackDepth, void *pvParameters, UBaseType_t uxPriority, TaskHandle_t *pxCreatedTask, StackType_t *puxStackBuffer, const MemoryRegion_t * const xRegions );
void MPU_vTaskAllocateMPURegions( TaskHandle_t xTask, const MemoryRegion_t * const xRegions );
void MPU_vTaskDelete( TaskHandle_t pxTaskToDelete );
void MPU_vTaskDelayUntil( TickType_t * const pxPreviousWakeTime, TickType_t xTimeIncrement );
void MPU_vTaskDelay( TickType_t xTicksToDelay );
UBaseType_t MPU_uxTaskPriorityGet( TaskHandle_t pxTask );
void MPU_vTaskPrioritySet( TaskHandle_t pxTask, UBaseType_t uxNewPriority );
eTaskState MPU_eTaskGetState( TaskHandle_t pxTask );
void MPU_vTaskSuspend( TaskHandle_t pxTaskToSuspend );
void MPU_vTaskResume( TaskHandle_t pxTaskToResume );
void MPU_vTaskSuspendAll( void );
BaseType_t MPU_xTaskResumeAll( void );
TickType_t MPU_xTaskGetTickCount( void );
UBaseType_t MPU_uxTaskGetNumberOfTasks( void );
void MPU_vTaskList( char *pcWriteBuffer );
void MPU_vTaskGetRunTimeStats( char *pcWriteBuffer );
void MPU_vTaskSetApplicationTaskTag( TaskHandle_t xTask, TaskHookFunction_t pxTagValue );
TaskHookFunction_t MPU_xTaskGetApplicationTaskTag( TaskHandle_t xTask );
BaseType_t MPU_xTaskCallApplicationTaskHook( TaskHandle_t xTask, void *pvParameter );
UBaseType_t MPU_uxTaskGetStackHighWaterMark( TaskHandle_t xTask );
TaskHandle_t MPU_xTaskGetCurrentTaskHandle( void );
BaseType_t MPU_xTaskGetSchedulerState( void );
TaskHandle_t MPU_xTaskGetIdleTaskHandle( void );
UBaseType_t MPU_uxTaskGetSystemState( TaskStatus_t *pxTaskStatusArray, UBaseType_t uxArraySize, uint32_t *pulTotalRunTime );
QueueHandle_t MPU_xQueueGenericCreate( UBaseType_t uxQueueLength, UBaseType_t uxItemSize, uint8_t ucQueueType );
BaseType_t MPU_xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, BaseType_t xCopyPosition );
BaseType_t MPU_xQueueGenericReset( QueueHandle_t pxQueue, BaseType_t xNewQueue );
UBaseType_t MPU_uxQueueMessagesWaiting( const QueueHandle_t pxQueue );
BaseType_t MPU_xQueueGenericReceive( QueueHandle_t pxQueue, void * const pvBuffer, TickType_t xTicksToWait, BaseType_t xJustPeeking );
QueueHandle_t MPU_xQueueCreateMutex( void );
QueueHandle_t MPU_xQueueCreateCountingSemaphore( UBaseType_t uxCountValue, UBaseType_t uxInitialCount );
BaseType_t MPU_xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xBlockTime );
BaseType_t MPU_xQueueGiveMutexRecursive( QueueHandle_t xMutex );
BaseType_t MPU_xQueueAltGenericSend( QueueHandle_t pxQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, BaseType_t xCopyPosition );
BaseType_t MPU_xQueueAltGenericReceive( QueueHandle_t pxQueue, void * const pvBuffer, TickType_t xTicksToWait, BaseType_t xJustPeeking );
void MPU_vQueueAddToRegistry( QueueHandle_t xQueue, char *pcName );
void MPU_vQueueDelete( QueueHandle_t xQueue );
void *MPU_pvPortMalloc( size_t xSize );
void *MPU_pvPortMemalign( size_t bondary, size_t xSize );
void MPU_vPortFree( void *pv );
void MPU_vPortInitialiseBlocks( void );
size_t MPU_xPortGetFreeHeapSize( void );
QueueSetHandle_t MPU_xQueueCreateSet( UBaseType_t uxEventQueueLength );
QueueSetMemberHandle_t MPU_xQueueSelectFromSet( QueueSetHandle_t xQueueSet, TickType_t xBlockTimeTicks );
BaseType_t MPU_xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet );
BaseType_t MPU_xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet );
BaseType_t MPU_xQueuePeekFromISR( QueueHandle_t xQueue, void * const pvBuffer );
void* MPU_xQueueGetMutexHolder( QueueHandle_t xSemaphore );
//Event
EventGroupHandle_t MPU_xEventGroupCreate( void );
EventBits_t MPU_xEventGroupWaitBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait );
EventBits_t MPU_xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear );
EventBits_t MPU_xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet );
EventBits_t MPU_xEventGroupSync( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait );
void MPU_vEventGroupDelete( EventGroupHandle_t xEventGroup );
#endif
/*-----------------------------------------------------------*/
/*
* See header file for description.
*/
StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters, BaseType_t xRunPrivileged ) PRIVILEGED_FUNCTION;
StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters, BaseType_t xRunPrivileged )
{
/* Simulate the stack frame as it would be created by a context switch
interrupt. */
pxTopOfStack--; /* Offset added to account for the way the MCU uses the stack on entry/exit of interrupts. */
*pxTopOfStack = portINITIAL_XPSR; /* xPSR */
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) pxCode; /* PC */
pxTopOfStack--;
*pxTopOfStack = 0xDEEDBEEF; /* LR */
pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
*pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
/* A save method is being used that requires each task to maintain its
own exec return value. */
pxTopOfStack--;
*pxTopOfStack = portINITIAL_EXEC_RETURN;
pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5, R4 */
pxTopOfStack--; // privileged data
if( xRunPrivileged == pdTRUE )
{
*pxTopOfStack = portINITIAL_CONTROL_IF_PRIVILEGED;
}
else
{
*pxTopOfStack = portINITIAL_CONTROL_IF_UNPRIVILEGED;
}
pxTopOfStack++;
return pxTopOfStack;
}
/*-----------------------------------------------------------*/
void vPortSVCHandler( void )
{
/* Assumes psp was in use. */
__asm volatile
(
#ifndef USE_PROCESS_STACK /* Code should not be required if a main() is using the process stack. */
" tst lr, #4 \n"
" ite eq \n"
" mrseq r0, msp \n"
" mrsne r0, psp \n"
#else
" mrs r0, psp \n"
#endif
" b %0 \n"
::"i"(prvSVCHandler):"r0"
);
}
/*-----------------------------------------------------------*/
static void prvSVCHandler( uint32_t *pulParam )
{
uint8_t ucSVCNumber;
/* The stack contains: r0, r1, r2, r3, r12, r14, the return address and
xPSR. The first argument (r0) is pulParam[ 0 ]. */
ucSVCNumber = ( ( uint8_t * ) pulParam[ portOFFSET_TO_PC ] )[ -2 ];
switch( ucSVCNumber )
{
case portSVC_START_SCHEDULER : *(portNVIC_SYSPRI1) |= portNVIC_SVC_PRI;
//traceTASK_FIRST_SWITCHED_IN();
prvRestoreContextOfFirstTask();
break;
case portSVC_YIELD : *(portNVIC_INT_CTRL) = portNVIC_PENDSVSET;
/* Barriers are normally not required
but do ensure the code is completely
within the specified behaviour for the
architecture. */
__asm volatile( "dsb" );
__asm volatile( "isb" );
break;
case portSVC_RAISE_PRIVILEGE : __asm volatile
(
" mrs r1, control \n" /* Obtain current control value. */
" bic r1, #1 \n" /* Set privilege bit. */
" msr control, r1 \n" /* Write back new control value. */
:::"r1"
);
break;
default : /* Unknown SVC call. */
break;
}
}
/*-----------------------------------------------------------*/
static void prvRestoreContextOfFirstTask( void )
{
__asm volatile
(
" ldr r0, =0xE000ED08 \n" /* Use the NVIC offset register to locate the stack. */
" ldr r0, [r0] \n"
" ldr r0, [r0] \n"
" msr msp, r0 \n" /* Set the msp back to the start of the stack. */
" ldr r3, pxCurrentTCBConst2 \n" /* Restore the context. */
" ldr r1, [r3] \n" /* Use pxCurrentTCBConst to get the pxCurrentTCB address. */
" ldr r0, [r1] \n" /* The first item in pxCurrentTCB is the task top of stack. */
" ldr r3 , [r0, #-4] \n" /* restore the privilege mode */
" msr control, r3 \n" /* set the privilege mode depending of what was initialised */
" ldmia r0!, {r4-r11, r14} \n" /* Pop the registers that are not automatically saved on exception entry and the critical nesting count. */
/* MPU configuration */
" ldr r3, pxCurrentTCBConst2 \n" /* Get the pxCurrentTCP pointer. */
" ldr r1, [r3] \n" /* The first item in pxCurrentTCB is the task top of stack. */
" add r1, r1, #68 \n" /* Move onto the second item in the TCB... */
" ldr r2, =0xe000ed9c \n" /* Region Base Address register. */
" ldmia r1!, {r4-r7} \n" /* Read 2 sets of MPU registers. */
" stmia r2!, {r4-r7} \n" /* Write 2 sets of MPU registers. */
/* END of MPU configuration */
" msr psp, r0 \n" /* Restore the task stack pointer. */
" isb \n"
" mov r0, #0 \n"
" msr basepri, r0 \n"
" bx r14 \n"
" \n"
" .align 2 \n"
"pxCurrentTCBConst2: .word pxCurrentTCB \n"
);
}
/*-----------------------------------------------------------*/
/*
* See header file for description.
*/
BaseType_t xPortStartScheduler( void )
{
/* configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to 0. See
http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */
configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) );
/* Make PendSV and SysTick the same priority as the kernel. */
*(portNVIC_SYSPRI2) |= portNVIC_PENDSV_PRI;
*(portNVIC_SYSPRI2) |= portNVIC_SYSTICK_PRI;
/* Configure the FPU. */
prvSetupFPU();
/* Lazy save always. */
*( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;
/* Start the timer that generates the tick ISR. Interrupts are disabled
here already. */
prvSetupTimerInterrupt();
/* Initialise the critical nesting count ready for the first task. */
uxCriticalNesting = 0;
/* Start the first task. */
/* Configure the regions in the MPU that are common to all tasks. */
prvSetupMPU();
__asm volatile( " svc %0 \n"
:: "i" (portSVC_START_SCHEDULER) );
/* Should not get here! */
return 0;
}
/*-----------------------------------------------------------*/
void vPortEndScheduler( void )
{
/* Not implemented in ports where there is nothing to return to.
Artificially force an assert. */
configASSERT( uxCriticalNesting == 1000UL );
}
/*-----------------------------------------------------------*/
void vPortEnterCritical( void )
{
BaseType_t xRunningPrivileged = xPortRaisePrivilege();
portDISABLE_INTERRUPTS();
uxCriticalNesting++;
vPortResetPrivilege( xRunningPrivileged );
}
/*-----------------------------------------------------------*/
void vPortExitCritical( void )
{
BaseType_t xRunningPrivileged = xPortRaisePrivilege();
configASSERT( uxCriticalNesting );
uxCriticalNesting--;
if( uxCriticalNesting == 0 )
{
portENABLE_INTERRUPTS();
}
vPortResetPrivilege( xRunningPrivileged );
}
/*-----------------------------------------------------------*/
UBaseType_t vPortIsCritical ( void )
{
return uxCriticalNesting;
}
void xPortPendSVHandler( void )
{
/* This is a naked function. */
__asm volatile
(
" mrs r0, psp \n"
" isb \n"
" \n"
" ldr r3, pxCurrentTCBConst \n" /* Get the location of the current TCB. */
" ldr r2, [r3] \n"
" tst lr, #0x10 \n" /* Is the task using the FPU context? If so, push high vfp registers. */
" it eq \n"
" vstmdbeq r0!, {s16-s31} \n"
" stmdb r0!, {r4-r11, r14} \n" /* Save the core registers. */
" str r0, [r2] \n" /* Save the new top of stack into the first member of the TCB. */
" \n"
" mrs r1, control \n" /* get the currect execution mode (privilege or user) */
" stmdb r0!, {r1} \n" /* push the privilege mode to the stack frame*/
" \n"
" stmdb sp!, {r3} \n"
" mov r0, %0 \n"
" msr basepri, r0 \n"
" dsb \n"
" isb \n"
" bl vTaskSwitchContext \n"
" mov r0, #0 \n"
" msr basepri, r0 \n"
" ldmia sp!, {r3} \n"
/* MPU configuration */
" ldr r3, pxCurrentTCBConst \n" /* Get the pxCurrentTCP pointer. */
" ldr r1, [r3] \n" /* The first item in pxCurrentTCB is the task top of stack. */
" add r1, r1, #68 \n" /* Move onto the second item in the TCB... */
" ldr r2, =0xe000ed9c \n" /* Region Base Address register. */
" ldmia r1!, {r4-r7} \n" /* Read 2 sets of MPU registers. */
" stmia r2!, {r4-r7} \n" /* Write 2 sets of MPU registers. */
/* END of MPU configuration */
" ldr r1, [r3] \n" /* The first item in pxCurrentTCB is the task top of stack. */
" ldr r0, [r1] \n"
" \n"
" ldr r3 , [r0, #-4] \n"
" msr control, r3 \n"
" \n"
" ldmia r0!, {r4-r11, r14} \n" /* Pop the core registers. */
" tst r14, #0x10 \n" /* Is the task using the FPU context? If so, pop the high vfp registers too. */
" it eq \n"
" vldmiaeq r0!, {s16-s31} \n"
" \n"
" msr psp, r0 \n"
" isb \n"
" \n"
#ifdef WORKAROUND_PMU_CM001 /* XMC4000 specific errata workaround. */
#if WORKAROUND_PMU_CM001 == 1
" push { r14 } \n"
" pop { pc } \n"
#endif
#endif
" \n"
" bx r14 \n"
" \n"
" .align 2 \n"
"pxCurrentTCBConst: .word pxCurrentTCB \n"
::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
);
}
/*-----------------------------------------------------------*/
void xPortSysTickHandler( void )
{
uint32_t ulDummy;
ulDummy = portSET_INTERRUPT_MASK_FROM_ISR();
{
/* Increment the RTOS tick. */
if( xTaskIncrementTick() != pdFALSE )
{
/* Pend a context switch. */
*(portNVIC_INT_CTRL) = portNVIC_PENDSVSET;
}
}
portCLEAR_INTERRUPT_MASK_FROM_ISR( ulDummy );
}
/*-----------------------------------------------------------*/
/*
* Setup the systick timer to generate the tick interrupts at the required
* frequency.
*/
static void prvSetupTimerInterrupt( void )
{
/* Configure SysTick to interrupt at the requested rate. */
*(portNVIC_SYSTICK_LOAD) = ( configCPU_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
*(portNVIC_SYSTICK_CTRL) = portNVIC_SYSTICK_CLK | portNVIC_SYSTICK_INT | portNVIC_SYSTICK_ENABLE;
}
/*-----------------------------------------------------------*/
static void prvSetupFPU( void )
{
/* set CP10 and CP11 Full Access */
*portSCB_CPACR |= ((3UL << 10*2)|(3UL << 11*2));
/* switch off FPU auto context save mechanism */
*portFPU_FPCCR &= ~(0xc0000000);
}
static void prvSetupMPU( void )
{
/* Check the expected MPU is present. */
if( *portMPU_TYPE == portEXPECTED_MPU_TYPE_VALUE )
{
// First setup the entire flash, ccm and sram for unprivileged read write access.
// The sub region 0, 3, 5, 6 and 7 are disabled. This reenable the privilege mode for reserved region and null pointer.
*portMPU_REGION_BASE_ADDRESS = ( (unsigned long )0x00000000 ) | /* Base address. */
( portMPU_REGION_VALID ) |
( portMPU_REGION_0 );
*portMPU_REGION_ATTRIBUTE = ( portMPU_AP_REGION_P_RW_U_RW ) |
( portMPU_AS_REGION_BUFFERABLE | portMPU_AS_REGION_CACHEABLE | portMPU_AS_REGION_SHAREABLE) |
( prvGetMPURegionSizeSetting( 0x3FFFFFFF ) )|
( portMPU_AS_REGION_ZONE_DISABLE_0 | portMPU_AS_REGION_ZONE_DISABLE_5 | portMPU_AS_REGION_ZONE_DISABLE_6 | portMPU_AS_REGION_ZONE_DISABLE_7 ) |
( portMPU_REGION_ENABLE );
// Enable the IO memory in privileged and unprivileged read write.
*portMPU_REGION_BASE_ADDRESS = ( (unsigned long )0x40000000 ) | /* Base address. */
( portMPU_REGION_VALID ) |
( portMPU_REGION_1 );
*portMPU_REGION_ATTRIBUTE = ( portMPU_AP_REGION_P_RW_U_RW ) |
( portMPU_AS_REGION_BUFFERABLE | portMPU_AS_REGION_CACHEABLE | portMPU_AS_REGION_SHAREABLE) |
( prvGetMPURegionSizeSetting( 0x1FFFFFFF ) )|
( portMPU_REGION_ENABLE );
// Enable the BBRAM memory in privileged read write and unprivileged to read only.
*portMPU_REGION_BASE_ADDRESS = ( (unsigned long )0x40024000 ) | /* Base address. */
( portMPU_REGION_VALID ) |
( portMPU_REGION_2 );
*portMPU_REGION_ATTRIBUTE = ( portMPU_AP_REGION_P_RW_U_RO ) |
( portMPU_AS_REGION_BUFFERABLE | portMPU_AS_REGION_CACHEABLE | portMPU_AS_REGION_SHAREABLE) |
( prvGetMPURegionSizeSetting( 4096 ) )|
( portMPU_REGION_ENABLE );
/* Enable the memory fault exception. */
*portNVIC_SYS_CTRL_STATE |= portNVIC_MEM_FAULT_ENABLE;
/* Enable the MPU with the background region configured. */
*portMPU_CTRL |= ( portMPU_ENABLE | portMPU_BACKGROUND_ENABLE );
}
}
/*-----------------------------------------------------------*/
static uint32_t prvGetMPURegionSizeSetting( uint32_t ulActualSizeInBytes )
{
uint32_t ulRegionSize, ulReturnValue = 4;
/* 32 is the smallest region size, 31 is the largest valid value for
ulReturnValue. */
for( ulRegionSize = 32UL; ulReturnValue < 31UL; ( ulRegionSize <<= 1UL ) )
{
if( ulActualSizeInBytes <= ulRegionSize )
{
break;
}
else
{
ulReturnValue++;
}
}
/* Shift the code by one before returning so it can be written directly
into the the correct bit position of the attribute register. */
return ( ulReturnValue << 1UL );
}
/*-----------------------------------------------------------*/
BaseType_t xPortRaisePrivilege( void )
{
__asm volatile
(
" mrs r0, control \n"
" tst r0, #1 \n" /* Is the task running privileged? */
" itte ne \n"
" movne r0, #0 \n" /* CONTROL[0]!=0, return false. */
" svcne %0 \n" /* Switch to privileged. */
" moveq r0, #1 \n" /* CONTROL[0]==0, return true. */
" bx lr \n"
:: "i" (portSVC_RAISE_PRIVILEGE) : "r0", "memory"
);
return 0;
}
/*-----------------------------------------------------------*/
void setTaskMPU(xMPU_SETTINGS *xMPUSettings, StackType_t *pxBottomOfStack, uint32_t usStackDepth);
void vPortStoreTaskMPUSettings( xMPU_SETTINGS *xMPUSettings, const struct xMEMORY_REGION * const xRegions, StackType_t *pxBottomOfStack, uint32_t usStackDepth )
{
(void )xRegions;
setTaskMPU(xMPUSettings, pxBottomOfStack, usStackDepth); //-1 here return the TCB (task handle). This is a hack.
}
/*-----------------------------------------------------------*/
#if 0
BaseType_t MPU_xTaskGenericCreate( TaskFunction_t pvTaskCode, const char * const pcName, uint16_t usStackDepth, void *pvParameters, UBaseType_t uxPriority, TaskHandle_t *pxCreatedTask, StackType_t *puxStackBuffer, const MemoryRegion_t * const xRegions )
{
BaseType_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
//disable the MPU because the task create will write 0xA5 in the stack of the task.
__asm volatile ("dmb");
uint32_t currentMPUConfiguration = *portMPU_CTRL;
//disable the MPU if enabled
*portMPU_CTRL &= ~0x01;
xReturn = xTaskGenericCreate( pvTaskCode, pcName, usStackDepth, pvParameters, uxPriority, pxCreatedTask, puxStackBuffer, xRegions );
*portMPU_CTRL = currentMPUConfiguration;
__asm volatile ("dsb");
__asm volatile ("isb");
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
/*-----------------------------------------------------------*/
void MPU_vTaskAllocateMPURegions( TaskHandle_t xTask, const MemoryRegion_t * const xRegions )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vTaskAllocateMPURegions( xTask, xRegions );
portYIELD_WITHIN_API();
portRESET_PRIVILEGE( xRunningPrivileged );
}
/*-----------------------------------------------------------*/
#if ( INCLUDE_vTaskDelete == 1 )
void MPU_vTaskDelete( TaskHandle_t pxTaskToDelete )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vTaskDelete( pxTaskToDelete );
portRESET_PRIVILEGE( xRunningPrivileged );
}
#endif
/*-----------------------------------------------------------*/
#if ( INCLUDE_vTaskDelayUntil == 1 )
void MPU_vTaskDelayUntil( TickType_t * const pxPreviousWakeTime, TickType_t xTimeIncrement )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vTaskDelayUntil( pxPreviousWakeTime, xTimeIncrement );
portRESET_PRIVILEGE( xRunningPrivileged );
}
#endif
/*-----------------------------------------------------------*/
#if ( INCLUDE_vTaskDelay == 1 )
void MPU_vTaskDelay( TickType_t xTicksToDelay )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vTaskDelay( xTicksToDelay );
portRESET_PRIVILEGE( xRunningPrivileged );
}
#endif
/*-----------------------------------------------------------*/
#if ( INCLUDE_uxTaskPriorityGet == 1 )
UBaseType_t MPU_uxTaskPriorityGet( TaskHandle_t pxTask )
{
UBaseType_t uxReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
uxReturn = uxTaskPriorityGet( pxTask );
portRESET_PRIVILEGE( xRunningPrivileged );
return uxReturn;
}
#endif
/*-----------------------------------------------------------*/
#if ( INCLUDE_vTaskPrioritySet == 1 )
void MPU_vTaskPrioritySet( TaskHandle_t pxTask, UBaseType_t uxNewPriority )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vTaskPrioritySet( pxTask, uxNewPriority );
portRESET_PRIVILEGE( xRunningPrivileged );
}
#endif
/*-----------------------------------------------------------*/
#if ( INCLUDE_eTaskGetState == 1 )
eTaskState MPU_eTaskGetState( TaskHandle_t pxTask )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
eTaskState eReturn;
eReturn = eTaskGetState( pxTask );
portRESET_PRIVILEGE( xRunningPrivileged );
return eReturn;
}
#endif
/*-----------------------------------------------------------*/
#if ( INCLUDE_xTaskGetIdleTaskHandle == 1 )
TaskHandle_t MPU_xTaskGetIdleTaskHandle( void )
{
TaskHandle_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xTaskGetIdleTaskHandle();
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
#endif
/*-----------------------------------------------------------*/
#if ( INCLUDE_vTaskSuspend == 1 )
void MPU_vTaskSuspend( TaskHandle_t pxTaskToSuspend )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vTaskSuspend( pxTaskToSuspend );
portRESET_PRIVILEGE( xRunningPrivileged );
}
#endif
/*-----------------------------------------------------------*/
#if ( INCLUDE_vTaskSuspend == 1 )
void MPU_vTaskResume( TaskHandle_t pxTaskToResume )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vTaskResume( pxTaskToResume );
portRESET_PRIVILEGE( xRunningPrivileged );
}
#endif
/*-----------------------------------------------------------*/
void MPU_vTaskSuspendAll( void )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vTaskSuspendAll();
portRESET_PRIVILEGE( xRunningPrivileged );
}
/*-----------------------------------------------------------*/
BaseType_t MPU_xTaskResumeAll( void )
{
BaseType_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xTaskResumeAll();
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
/*-----------------------------------------------------------*/
TickType_t MPU_xTaskGetTickCount( void )
{
TickType_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xTaskGetTickCount();
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
/*-----------------------------------------------------------*/
UBaseType_t MPU_uxTaskGetNumberOfTasks( void )
{
UBaseType_t uxReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
uxReturn = uxTaskGetNumberOfTasks();
portRESET_PRIVILEGE( xRunningPrivileged );
return uxReturn;
}
/*-----------------------------------------------------------*/
#if ( configUSE_TRACE_FACILITY == 1 )
void MPU_vTaskList( char *pcWriteBuffer )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vTaskList( pcWriteBuffer );
portRESET_PRIVILEGE( xRunningPrivileged );
}
#endif
/*-----------------------------------------------------------*/
#if ( configGENERATE_RUN_TIME_STATS == 1 )
void MPU_vTaskGetRunTimeStats( char *pcWriteBuffer )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vTaskGetRunTimeStats( pcWriteBuffer );
portRESET_PRIVILEGE( xRunningPrivileged );
}
#endif
/*-----------------------------------------------------------*/
#if ( configUSE_APPLICATION_TASK_TAG == 1 )
void MPU_vTaskSetApplicationTaskTag( TaskHandle_t xTask, TaskHookFunction_t pxTagValue )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vTaskSetApplicationTaskTag( xTask, pxTagValue );
portRESET_PRIVILEGE( xRunningPrivileged );
}
#endif
/*-----------------------------------------------------------*/
#if ( configUSE_APPLICATION_TASK_TAG == 1 )
TaskHookFunction_t MPU_xTaskGetApplicationTaskTag( TaskHandle_t xTask )
{
TaskHookFunction_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xTaskGetApplicationTaskTag( xTask );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
#endif
/*-----------------------------------------------------------*/
#if ( configUSE_APPLICATION_TASK_TAG == 1 )
BaseType_t MPU_xTaskCallApplicationTaskHook( TaskHandle_t xTask, void *pvParameter )
{
BaseType_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xTaskCallApplicationTaskHook( xTask, pvParameter );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
#endif
/*-----------------------------------------------------------*/
#if ( configUSE_TRACE_FACILITY == 1 )
UBaseType_t MPU_uxTaskGetSystemState( TaskStatus_t *pxTaskStatusArray, UBaseType_t uxArraySize, uint32_t *pulTotalRunTime )
{
UBaseType_t uxReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
uxReturn = uxTaskGetSystemState( pxTaskStatusArray, uxArraySize, pulTotalRunTime );
portRESET_PRIVILEGE( xRunningPrivileged );
return uxReturn;
}
#endif
/*-----------------------------------------------------------*/
#if ( INCLUDE_uxTaskGetStackHighWaterMark == 1 )
UBaseType_t MPU_uxTaskGetStackHighWaterMark( TaskHandle_t xTask )
{
UBaseType_t uxReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
uxReturn = uxTaskGetStackHighWaterMark( xTask );
portRESET_PRIVILEGE( xRunningPrivileged );
return uxReturn;
}
#endif
/*-----------------------------------------------------------*/
#if ( INCLUDE_xTaskGetCurrentTaskHandle == 1 )
TaskHandle_t MPU_xTaskGetCurrentTaskHandle( void )
{
TaskHandle_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xTaskGetCurrentTaskHandle();
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
#endif
/*-----------------------------------------------------------*/
#if ( INCLUDE_xTaskGetSchedulerState == 1 )
BaseType_t MPU_xTaskGetSchedulerState( void )
{
BaseType_t xReturn;
//BaseType_t xRunningPrivileged = prvRaisePrivilege(); //no Need to be in privilege mode to read the internal var.
xReturn = xTaskGetSchedulerState();
// portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
#endif
/*-----------------------------------------------------------*/
QueueHandle_t MPU_xQueueGenericCreate( UBaseType_t uxQueueLength, UBaseType_t uxItemSize, uint8_t ucQueueType )
{
QueueHandle_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xQueueGenericCreate( uxQueueLength, uxItemSize, ucQueueType );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
/*-----------------------------------------------------------*/
BaseType_t MPU_xQueueGenericReset( QueueHandle_t pxQueue, BaseType_t xNewQueue )
{
BaseType_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xQueueGenericReset( pxQueue, xNewQueue );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
/*-----------------------------------------------------------*/
BaseType_t MPU_xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, BaseType_t xCopyPosition )
{
BaseType_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xQueueGenericSend( xQueue, pvItemToQueue, xTicksToWait, xCopyPosition );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
/*-----------------------------------------------------------*/
UBaseType_t MPU_uxQueueMessagesWaiting( const QueueHandle_t pxQueue )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
UBaseType_t uxReturn;
uxReturn = uxQueueMessagesWaiting( pxQueue );
portRESET_PRIVILEGE( xRunningPrivileged );
return uxReturn;
}
/*-----------------------------------------------------------*/
BaseType_t MPU_xQueueGenericReceive( QueueHandle_t pxQueue, void * const pvBuffer, TickType_t xTicksToWait, BaseType_t xJustPeeking )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
BaseType_t xReturn;
xReturn = xQueueGenericReceive( pxQueue, pvBuffer, xTicksToWait, xJustPeeking );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
/*-----------------------------------------------------------*/
BaseType_t MPU_xQueuePeekFromISR( QueueHandle_t pxQueue, void * const pvBuffer )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
BaseType_t xReturn;
xReturn = xQueuePeekFromISR( pxQueue, pvBuffer );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
/*-----------------------------------------------------------*/
void* MPU_xQueueGetMutexHolder( QueueHandle_t xSemaphore )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
void * xReturn;
xReturn = ( void * ) xQueueGetMutexHolder( xSemaphore );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
/*-----------------------------------------------------------*/
#if ( configUSE_MUTEXES == 1 )
QueueHandle_t MPU_xQueueCreateMutex( void )
{
QueueHandle_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xQueueCreateMutex( queueQUEUE_TYPE_MUTEX );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
#endif
/*-----------------------------------------------------------*/
#if configUSE_COUNTING_SEMAPHORES == 1
QueueHandle_t MPU_xQueueCreateCountingSemaphore( UBaseType_t uxCountValue, UBaseType_t uxInitialCount )
{
QueueHandle_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xQueueCreateCountingSemaphore( uxCountValue, uxInitialCount );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
#endif
/*-----------------------------------------------------------*/
#if ( configUSE_MUTEXES == 1 )
BaseType_t MPU_xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xBlockTime )
{
BaseType_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xQueueTakeMutexRecursive( xMutex, xBlockTime );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
#endif
/*-----------------------------------------------------------*/
#if ( configUSE_MUTEXES == 1 )
BaseType_t MPU_xQueueGiveMutexRecursive( QueueHandle_t xMutex )
{
BaseType_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xQueueGiveMutexRecursive( xMutex );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
#endif
/*-----------------------------------------------------------*/
#if ( configUSE_QUEUE_SETS == 1 )
QueueSetHandle_t MPU_xQueueCreateSet( UBaseType_t uxEventQueueLength )
{
QueueSetHandle_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xQueueCreateSet( uxEventQueueLength );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
#endif
/*-----------------------------------------------------------*/
#if ( configUSE_QUEUE_SETS == 1 )
QueueSetMemberHandle_t MPU_xQueueSelectFromSet( QueueSetHandle_t xQueueSet, TickType_t xBlockTimeTicks )
{
QueueSetMemberHandle_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xQueueSelectFromSet( xQueueSet, xBlockTimeTicks );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
#endif
/*-----------------------------------------------------------*/
#if ( configUSE_QUEUE_SETS == 1 )
BaseType_t MPU_xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet )
{
BaseType_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xQueueAddToSet( xQueueOrSemaphore, xQueueSet );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
#endif
/*-----------------------------------------------------------*/
#if ( configUSE_QUEUE_SETS == 1 )
BaseType_t MPU_xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet )
{
BaseType_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xQueueRemoveFromSet( xQueueOrSemaphore, xQueueSet );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
#endif
/*-----------------------------------------------------------*/
#if configUSE_ALTERNATIVE_API == 1
BaseType_t MPU_xQueueAltGenericSend( QueueHandle_t pxQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, BaseType_t xCopyPosition )
{
BaseType_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = BaseType_t xQueueAltGenericSend( pxQueue, pvItemToQueue, xTicksToWait, xCopyPosition );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
#endif
/*-----------------------------------------------------------*/
#if configUSE_ALTERNATIVE_API == 1
BaseType_t MPU_xQueueAltGenericReceive( QueueHandle_t pxQueue, void * const pvBuffer, TickType_t xTicksToWait, BaseType_t xJustPeeking )
{
BaseType_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xQueueAltGenericReceive( pxQueue, pvBuffer, xTicksToWait, xJustPeeking );
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
#endif
/*-----------------------------------------------------------*/
#if configQUEUE_REGISTRY_SIZE > 0
void MPU_vQueueAddToRegistry( QueueHandle_t xQueue, char *pcName )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vQueueAddToRegistry( xQueue, pcName );
portRESET_PRIVILEGE( xRunningPrivileged );
}
#endif
/*-----------------------------------------------------------*/
void MPU_vQueueDelete( QueueHandle_t xQueue )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vQueueDelete( xQueue );
portRESET_PRIVILEGE( xRunningPrivileged );
}
/*-----------------------------------------------------------*/
void *MPU_pvPortMalloc( size_t xSize )
{
void *pvReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
pvReturn = pvPortMalloc( xSize );
portRESET_PRIVILEGE( xRunningPrivileged );
return pvReturn;
}
/*-----------------------------------------------------------*/
void *MPU_pvPortMemalign( size_t bondary, size_t xSize )
{
void *pvReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
pvReturn = pvPortMemalign(bondary, xSize );
portRESET_PRIVILEGE( xRunningPrivileged );
return pvReturn;
}
/*-----------------------------------------------------------*/
void MPU_vPortFree( void *pv )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vPortFree( pv );
portRESET_PRIVILEGE( xRunningPrivileged );
}
/*-----------------------------------------------------------*/
void *MPU_pvPortRealloc( void *p, size_t xWantedSize )
{
void *pvReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
pvReturn = pvPortRealloc( p, xWantedSize );
portRESET_PRIVILEGE( xRunningPrivileged );
return pvReturn;
}
/*-----------------------------------------------------------*/
void MPU_vPortInitialiseBlocks( void )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vPortInitialiseBlocks();
portRESET_PRIVILEGE( xRunningPrivileged );
}
/*-----------------------------------------------------------*/
size_t MPU_xPortGetFreeHeapSize( void )
{
size_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xPortGetFreeHeapSize();
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
EventGroupHandle_t MPU_xEventGroupCreate( void )
{
EventGroupHandle_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xEventGroupCreate();
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
EventBits_t MPU_xEventGroupWaitBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait )
{
EventBits_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xEventGroupWaitBits(xEventGroup,uxBitsToWaitFor,xClearOnExit,xWaitForAllBits,xTicksToWait);
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
EventBits_t MPU_xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear )
{
EventBits_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xEventGroupClearBits(xEventGroup,uxBitsToClear);
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
EventBits_t MPU_xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet )
{
EventBits_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xEventGroupSetBits(xEventGroup,uxBitsToSet);
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
EventBits_t MPU_xEventGroupSync( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait )
{
EventBits_t xReturn;
BaseType_t xRunningPrivileged = prvRaisePrivilege();
xReturn = xEventGroupSync(xEventGroup,uxBitsToSet, uxBitsToWaitFor, xTicksToWait);
portRESET_PRIVILEGE( xRunningPrivileged );
return xReturn;
}
void MPU_vEventGroupDelete( EventGroupHandle_t xEventGroup )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
vEventGroupDelete(xEventGroup);
portRESET_PRIVILEGE( xRunningPrivileged );
}
/* Functions that the application writer wants to execute in privileged mode
can be defined in application_defined_privileged_functions.h. The functions
must take the same format as those above whereby the privilege state on exit
equals the privilege state on entry. For example:
void MPU_FunctionName( [parameters ] )
{
BaseType_t xRunningPrivileged = prvRaisePrivilege();
FunctionName( [parameters ] );
portRESET_PRIVILEGE( xRunningPrivileged );
}
*/
#if configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS == 1
#include "application_defined_privileged_functions.h"
#endif
#endif
|
cimeq/amazon-freertos
|
lib/cbor/src/aws_cbor.c
|
<reponame>cimeq/amazon-freertos
/*
* Amazon FreeRTOS CBOR Library V1.0.1
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "aws_cbor_internals.h"
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
/** Minimum size (in bytes) that the CBOR buffer shall start with */
#define CBOR_MIN_BUFFER_SIZE ( 32 )
cbor_handle_t CBOR_New( cbor_ssize_t xSize )
{
cbor_handle_t pxNew_cbor_data = pxCBOR_malloc( sizeof( struct CborData_s ) );
if( NULL == pxNew_cbor_data )
{
return NULL;
}
xSize = xSize < CBOR_MIN_BUFFER_SIZE ? CBOR_MIN_BUFFER_SIZE : xSize;
cbor_byte_t * pxNew_buffer = pxCBOR_malloc( xSize );
if( NULL == pxNew_buffer )
{
pxCBOR_free( pxNew_cbor_data );
return NULL;
}
cbor_byte_t xEmpty_map[ 2 ] = { CBOR_MAP_OPEN, CBOR_BREAK };
memcpy( pxNew_buffer, xEmpty_map, 2 );
pxNew_cbor_data->buffer_start = pxNew_buffer;
pxNew_cbor_data->cursor = pxNew_buffer;
pxNew_cbor_data->buffer_end = &pxNew_buffer[ xSize - 1 ];
pxNew_cbor_data->map_end = &pxNew_buffer[ 1 ];
return pxNew_cbor_data;
}
void CBOR_Delete( cbor_handle_t * ppxHandle )
{
if( NULL == ppxHandle )
{
return;
}
if( NULL == *ppxHandle )
{
return;
}
pxCBOR_free( ( *ppxHandle )->buffer_start );
pxCBOR_free( *ppxHandle );
*ppxHandle = NULL;
}
cbor_byte_t const * const CBOR_GetRawBuffer( cbor_handle_t pxHandle )
{
return pxHandle->buffer_start;
}
cbor_ssize_t const CBOR_GetBufferSize( cbor_handle_t pxHandle )
{
return pxHandle->map_end - pxHandle->buffer_start + 1;
}
bool CBOR_FindKey( cbor_handle_t pxCbor_data,
cbor_const_key_t pcKey )
{
if( NULL == pxCbor_data )
{
return false;
}
if( NULL == pcKey )
{
pxCbor_data->err = eCBOR_ERR_NULL_KEY;
return false;
}
( pxCbor_data->cursor ) = ( pxCbor_data->buffer_start );
CBOR_OpenMap( pxCbor_data );
CBOR_SearchForKey( pxCbor_data, pcKey );
bool xFound = false;
if( CBOR_KeyIsMatch( pxCbor_data, pcKey ) )
{
xFound = true;
CBOR_Next( pxCbor_data );
}
return xFound;
}
void CBOR_AssignKeyWithString( cbor_handle_t pxCbor_data,
const char * pcKey,
const char * pcValue )
{
if( NULL == pxCbor_data )
{
return;
}
if( NULL == pcKey )
{
pxCbor_data->err = eCBOR_ERR_NULL_KEY;
return;
}
if( NULL == pcValue )
{
pxCbor_data->err = eCBOR_ERR_NULL_VALUE;
return;
}
CBOR_AssignKey( pxCbor_data, pcKey, CBOR_WriteString, pcValue );
}
void CBOR_AppendKeyWithString( cbor_handle_t pxCbor_data,
const char * pcKey,
const char * pcValue )
{
if( NULL == pxCbor_data )
{
return;
}
if( NULL == pcKey )
{
pxCbor_data->err = eCBOR_ERR_NULL_KEY;
return;
}
if( NULL == pcValue )
{
pxCbor_data->err = eCBOR_ERR_NULL_VALUE;
return;
}
CBOR_AppendKey( pxCbor_data, pcKey, CBOR_WriteString, pcValue );
}
char * CBOR_FromKeyReadString( cbor_handle_t pxCbor_data,
const char * pcKey )
{
if( NULL == pxCbor_data )
{
return NULL;
}
if( NULL == pcKey )
{
pxCbor_data->err = eCBOR_ERR_NULL_KEY;
return NULL;
}
CBOR_FindKey( pxCbor_data, pcKey );
char * pcStr = CBOR_ReadString( pxCbor_data );
return pcStr;
}
void CBOR_AssignKeyWithInt( cbor_handle_t pxCbor_data,
const char * pcKey,
cbor_int_t xValue )
{
if( NULL == pxCbor_data )
{
return;
}
if( NULL == pcKey )
{
pxCbor_data->err = eCBOR_ERR_NULL_KEY;
return;
}
CBOR_AssignKey( pxCbor_data, pcKey, CBOR_WriteInt, &xValue );
}
void CBOR_AppendKeyWithInt( cbor_handle_t pxCbor_data,
const char * pcKey,
cbor_int_t xValue )
{
if( NULL == pxCbor_data )
{
return;
}
if( NULL == pcKey )
{
pxCbor_data->err = eCBOR_ERR_NULL_KEY;
return;
}
CBOR_AppendKey( pxCbor_data, pcKey, CBOR_WriteInt, &xValue );
}
cbor_int_t CBOR_FromKeyReadInt( cbor_handle_t pxCbor_data,
const char * pcKey )
{
if( NULL == pxCbor_data )
{
return 0;
}
if( NULL == pcKey )
{
pxCbor_data->err = eCBOR_ERR_NULL_KEY;
return 0;
}
CBOR_FindKey( pxCbor_data, pcKey );
cbor_int_t xValue = CBOR_ReadInt( pxCbor_data );
return xValue;
}
void CBOR_AssignKeyWithMap( cbor_handle_t pxCbor_data,
const char * pcKey,
cbor_handle_t pxValue )
{
if( NULL == pxCbor_data )
{
return;
}
if( NULL == pcKey )
{
pxCbor_data->err = eCBOR_ERR_NULL_KEY;
return;
}
if( NULL == pxValue )
{
pxCbor_data->err = eCBOR_ERR_NULL_VALUE;
return;
}
CBOR_AssignKey( pxCbor_data, pcKey, CBOR_WriteMap, pxValue );
}
void CBOR_AppendKeyWithMap( cbor_handle_t pxCbor_data,
const char * pcKey,
cbor_handle_t pxValue )
{
if( NULL == pxCbor_data )
{
return;
}
if( NULL == pcKey )
{
pxCbor_data->err = eCBOR_ERR_NULL_KEY;
return;
}
if( NULL == pxValue )
{
pxCbor_data->err = eCBOR_ERR_NULL_VALUE;
return;
}
CBOR_AppendKey( pxCbor_data, pcKey, CBOR_WriteMap, pxValue );
}
cbor_handle_t CBOR_FromKeyReadMap( cbor_handle_t pxCbor_data,
const char * pcKey )
{
if( NULL == pxCbor_data )
{
return NULL;
}
if( NULL == pcKey )
{
pxCbor_data->err = eCBOR_ERR_NULL_KEY;
return NULL;
}
CBOR_FindKey( pxCbor_data, pcKey );
cbor_handle_t pxMap = CBOR_ReadMap( pxCbor_data );
return pxMap;
}
void CBOR_AppendMap( cbor_handle_t pxDest,
cbor_handle_t pxSrc )
{
pxSrc->cursor = pxSrc->buffer_start + 1;
cbor_ssize_t xLength = pxSrc->buffer_end - pxSrc->cursor;
pxDest->cursor = pxDest->map_end;
CBOR_MemCopy( pxDest, pxSrc->cursor, xLength );
pxDest->map_end = pxDest->cursor - 1;
}
cbor_err_t CBOR_CheckError( cbor_handle_t pxCbor_data )
{
if( NULL == pxCbor_data )
{
return eCBOR_ERR_NULL_HANDLE;
}
return pxCbor_data->err;
}
void CBOR_ClearError( cbor_handle_t pxCbor_data )
{
if( NULL == pxCbor_data )
{
return;
}
pxCbor_data->err = eCBOR_ERR_NO_ERROR;
}
/*
* End of File
*/
|
cimeq/amazon-freertos
|
lib/cbor/test/test_aws_cbor.c
|
/*
* Amazon FreeRTOS CBOR Library V1.0.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "aws_cbor_internals.h"
#include "unity_fixture.h"
#include <assert.h>
#include <string.h>
cbor_handle_t cbor_data;
TEST_GROUP( aws_cbor );
TEST_SETUP( aws_cbor )
{
cbor_data = CBOR_New( 0 );
}
TEST_TEAR_DOWN( aws_cbor )
{
CBOR_Delete( &cbor_data );
}
TEST_GROUP_RUNNER( aws_cbor )
{
RUN_TEST_CASE( aws_cbor, New_returns_not_null );
RUN_TEST_CASE( aws_cbor, New_returns_null_when_malloc_fails_for_struct );
RUN_TEST_CASE( aws_cbor, New_returns_null_when_malloc_fails_for_buffer );
RUN_TEST_CASE( aws_cbor, New_allocates_minimum_space_for_cbor_buffer );
RUN_TEST_CASE( aws_cbor, New_allocates_specified_space_for_cbor_buffer );
RUN_TEST_CASE( aws_cbor, New_initializes_buffer_with_empty_map );
RUN_TEST_CASE( aws_cbor, Delete_frees_all_allocated_space );
RUN_TEST_CASE( aws_cbor, GetRawBuffer_returns_pointer_to_cbor_buffer );
RUN_TEST_CASE( aws_cbor, GetBufferSize_returns_size_of_empty_map_in_bytes );
RUN_TEST_CASE( aws_cbor, GetBuffer_returns_size_of_map_in_bytes );
RUN_TEST_CASE( aws_cbor, ClearError_sets_err_to_CBOR_ERR_NO_ERROR );
RUN_TEST_CASE( aws_cbor, AppendMap );
}
TEST( aws_cbor, New_returns_not_null )
{
cbor_handle_t test_data = CBOR_New( 0 );
TEST_ASSERT_NOT_NULL( test_data );
CBOR_Delete( &test_data );
}
TEST( aws_cbor, New_returns_null_when_malloc_fails_for_struct )
{
UnityMalloc_MakeMallocFailAfterCount( 0 );
cbor_handle_t null_buffer = CBOR_New( 0 );
TEST_ASSERT_NULL( null_buffer );
}
TEST( aws_cbor, New_returns_null_when_malloc_fails_for_buffer )
{
UnityMalloc_MakeMallocFailAfterCount( 1 );
cbor_handle_t null_buffer = CBOR_New( 0 );
TEST_ASSERT_NULL( null_buffer );
}
TEST( aws_cbor, New_allocates_minimum_space_for_cbor_buffer )
{
cbor_handle_t test_data = CBOR_New( 0 );
TEST_ASSERT_NOT_NULL( test_data->buffer_start );
cbor_ssize_t size = test_data->buffer_end - test_data->buffer_start + 1;
TEST_ASSERT_EQUAL( 32, size );
CBOR_Delete( &test_data );
}
TEST( aws_cbor, New_allocates_specified_space_for_cbor_buffer )
{
cbor_handle_t test_data = CBOR_New( 3845 );
TEST_ASSERT_NOT_NULL( test_data->buffer_start );
cbor_ssize_t size = test_data->buffer_end - test_data->buffer_start + 1;
TEST_ASSERT_EQUAL( 3845, size );
CBOR_Delete( &test_data );
}
TEST( aws_cbor, New_initializes_buffer_with_empty_map )
{
cbor_handle_t test_data = CBOR_New( 0 );
cbor_byte_t empty_map[] = { CBOR_MAP_OPEN, CBOR_BREAK };
TEST_ASSERT_EQUAL_HEX8_ARRAY(
empty_map, test_data->buffer_start, sizeof( empty_map ) );
CBOR_Delete( &test_data );
}
TEST( aws_cbor, Delete_frees_all_allocated_space )
{
cbor_handle_t test_data = CBOR_New( 0 );
CBOR_Delete( &test_data );
TEST_ASSERT_NULL( test_data );
}
TEST( aws_cbor, GetRawBuffer_returns_pointer_to_cbor_buffer )
{
cbor_byte_t const * const actual_ptr = CBOR_GetRawBuffer( cbor_data );
cbor_byte_t * expected_ptr = cbor_data->buffer_start;
TEST_ASSERT_EQUAL_PTR( expected_ptr, actual_ptr );
}
TEST( aws_cbor, GetBufferSize_returns_size_of_empty_map_in_bytes )
{
cbor_ssize_t expected_size = 2;
cbor_ssize_t actual_size = CBOR_GetBufferSize( cbor_data );
TEST_ASSERT_EQUAL( expected_size, actual_size );
}
TEST( aws_cbor, GetBuffer_returns_size_of_map_in_bytes )
{
CBOR_AppendKeyWithInt( cbor_data, "answer", 42 );
cbor_ssize_t expected_size = 11;
cbor_ssize_t actual_size = CBOR_GetBufferSize( cbor_data );
TEST_ASSERT_EQUAL( expected_size, actual_size );
}
TEST( aws_cbor, ClearError_sets_err_to_CBOR_ERR_NO_ERROR )
{
cbor_data->err = eCBOR_ERR_DEFAULT_ERROR;
CBOR_ClearError( cbor_data );
TEST_ASSERT_EQUAL( eCBOR_ERR_NO_ERROR, cbor_data->err );
}
TEST( aws_cbor, AppendMap )
{
CBOR_AppendKeyWithInt( cbor_data, "answer", 42 );
cbor_handle_t src_data = CBOR_New( 0 );
CBOR_AppendKeyWithString( src_data, "question", "unknown" );
CBOR_AppendMap( cbor_data, src_data );
CBOR_Delete( &src_data );
bool answer_found = CBOR_FindKey( cbor_data, "answer" );
bool question_found = CBOR_FindKey( cbor_data, "question" );
/* Both keys should be in the first map */
TEST_ASSERT_TRUE( answer_found );
TEST_ASSERT_TRUE( question_found );
}
|
cimeq/amazon-freertos
|
lib/cbor/test/test_aws_cbor_iter.c
|
/*
* Amazon FreeRTOS CBOR Library V1.0.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "assert_override.h"
#include "aws_cbor_internals.h"
#include "unity_fixture.h"
#include <assert.h>
#include <string.h>
typedef struct test_next_s
{
cbor_byte_t buffer[ 32 ];
cbor_int_t initial_index;
cbor_int_t expected_index;
char * message;
} test_next_t;
cbor_handle_t cbor_data;
const test_next_t * test_case;
TEST_GROUP( aws_cbor_iter );
TEST_SETUP( aws_cbor_iter )
{
cbor_data = CBOR_New( 0 );
test_case = NULL;
}
TEST_TEAR_DOWN( aws_cbor_iter )
{
CBOR_Delete( &cbor_data );
test_case = NULL;
}
TEST_GROUP_RUNNER( aws_cbor_iter )
{
RUN_TEST_CASE( aws_cbor_iter, Next );
RUN_TEST_CASE( aws_cbor_iter, Next_asserts_default_case );
RUN_TEST_CASE( aws_cbor_iter, NextKey );
RUN_TEST_CASE( aws_cbor_iter, SetCursor );
RUN_TEST_CASE( aws_cbor_iter, null_checks );
}
#define NEXT_TEST_CASE_COUNT ( 12 )
const test_next_t next_test_cases[ NEXT_TEST_CASE_COUNT ] =
{
{
.message = "next from open map goes to first key",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x00, /* 3 0 */
0xFF, /* 4 End of map */
},
.initial_index = 0,
.expected_index = 1,
},
{
.message = "next from key goes to its value",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x00, /* 3 0 */
0xFF, /* 4 End of map */
},
.initial_index = 1,
.expected_index = 3,
},
{
.message = "next from value goes to next key",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x00, /* 3 0 */
0x61, /* 4 Key of length 1 */
'b', /* 5 */
0x00, /* 6 0 */
0xFF, /* 7 End of map */
},
.initial_index = 3,
.expected_index = 4,
},
{
.message = "next from last value goes to break",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x02, /* 3 0 */
0x61, /* 4 Key of length 1 */
'b', /* 5 */
0x17, /* 6 0x17, 23 */
0xFF, /* 7 End of map */
},
.initial_index = 6,
.expected_index = 7,
},
{
.message = "1 byte cbor_int_t jump",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x18, /* 3 1-byte uint */
0x41, /* 4 */
0x61, /* 5 Key of length 1 */
'b', /* 6 */
0x00, /* 7 0 */
0xFF, /* 8 End of map */
},
.initial_index = 3,
.expected_index = 5,
},
{
.message = "2 byte cbor_int_t jump",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x19, /* 3 2-byte uint */
0xDE, /* 4 */
0xA1, /* 5 */
0x61, /* 6 Key of length 1 */
'b', /* 7 */
0x00, /* 8 0 */
0xFF, /* 9 End of map */
},
.initial_index = 3,
.expected_index = 6,
},
{
.message = "4 byte cbor_int_t jump",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x1A, /* 3 4-byte uint */
0xDE, /* 4 */
0xAD, /* 5 */
0xBE, /* 6 */
0xEF, /* 7 */
0x61, /* 8 Key of length 1 */
'b', /* 9 */
0x00, /* 10 0 */
0xFF, /* 11 End of map */
},
.initial_index = 3,
.expected_index = 8,
},
{
.message = "small negative integer",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x24, /* 3 -5 */
0xFF, /* 4 End of map */
},
.initial_index = 1,
.expected_index = 3,
},
{
.message = "key of size 3",
.buffer =
{
0xBF, /* 0 Open Map */
0x63, /* 1 Key of length 3 */
'f', /* 2 */
'o', /* 3 */
'o', /* 4 */
0x24, /* 5 -5 */
0xFF, /* 6 End of map */
},
.initial_index = 1,
.expected_index = 5,
},
{
.message = "Iterate into map",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0xBF, /* 3 Open Map */
0x61, /* 4 Key of length 1 */
'b', /* 5 */
0x24, /* 6 -5 */
0xFF, /* 7 End of map */
0x61, /* 8 Key of length 1 */
'b', /* 9 */
0x25, /* 10 -6 */
0xFF, /* 11 End of map */
},
.initial_index = 1,
.expected_index = 3,
},
{
.message = "Iterate into map part 2",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0xBF, /* 3 Open Map */
0x61, /* 4 Key of length 1 */
'b', /* 5 */
0x24, /* 6 -5 */
0xFF, /* 7 End of map */
0x61, /* 8 Key of length 1 */
'b', /* 9 */
0x25, /* 10 -6 */
0xFF, /* 11 End of map */
},
.initial_index = 3,
.expected_index = 4,
},
{
.message = "Iterate into map part 3",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0xBF, /* 3 Open Map */
0x61, /* 4 Key of length 1 */
'b', /* 5 */
0x24, /* 6 -5 */
0xFF, /* 7 End of map */
0x61, /* 8 Key of length 1 */
'b', /* 9 */
0x25, /* 10 -6 */
0xFF, /* 11 End of map */
},
.initial_index = 7,
.expected_index = 8,
},
};
void test_Next( void )
{
CBOR_SetCursor( cbor_data, 0 );
CBOR_MemCopy( cbor_data, test_case->buffer, sizeof( test_case->buffer ) );
CBOR_SetCursor( cbor_data, test_case->initial_index );
CBOR_Next( cbor_data );
cbor_ssize_t actual_index = cbor_data->cursor - cbor_data->buffer_start;
TEST_ASSERT_EQUAL_MESSAGE(
test_case->expected_index, actual_index, test_case->message );
}
TEST( aws_cbor_iter, Next )
{
for( cbor_int_t i = 0; i < NEXT_TEST_CASE_COUNT; i++ )
{
test_case = &next_test_cases[ i ];
RUN_TEST( test_Next );
}
}
TEST( aws_cbor_iter, Next_asserts_default_case )
{
CBOR_SetCursor( cbor_data, 0 );
*cbor_data->cursor = CBOR_TAG;
TEST_EXPECT_ASSERT( CBOR_Next( cbor_data ) );
}
#define NEXT_KEY_TEST_CASE_COUNT ( 7 )
const test_next_t next_key_test_cases[ NEXT_KEY_TEST_CASE_COUNT ] =
{
{
.message = "next from open map goes to first key",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x00, /* 3 0 */
0x61, /* 4 Key of length 1 */
'b', /* 5 */
0x00, /* 6 0 */
0xFF, /* 7 End of map */
},
.initial_index = 0,
.expected_index = 1,
},
{
.message = "next key first key goes to second key",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x00, /* 3 0 */
0x61, /* 4 Key of length 1 */
'b', /* 5 */
0x00, /* 6 0 */
0xFF, /* 7 End of map */
},
.initial_index = 1,
.expected_index = 4,
},
{
.message = "Next key after map",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0xBF, /* 3 Open Map */
0x61, /* 4 Key of length 1 */
'b', /* 5 */
0x24, /* 6 -5 */
0xFF, /* 7 End of map */
0x61, /* 8 Key of length 1 */
'b', /* 9 */
0x25, /* 10 -6 */
0xFF, /* 11 End of map */
},
.initial_index = 1,
.expected_index = 8,
},
{
.message = "Next key after string",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x61, /* 3 String of length 1 */
'f', /* 4 */
0x61, /* 5 Key of length 1 */
'b', /* 6 */
0x25, /* 7 -6 */
0xFF, /* 8 End of map */
},
.initial_index = 1,
.expected_index = 5,
},
{
.message = "Next key after byte string",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x41, /* 3 Byte String of length 1 */
0x10, /* 4 */
0x61, /* 5 Key of length 1 */
'b', /* 6 */
0x25, /* 7 -6 */
0xFF, /* 8 End of map */
},
.initial_index = 1,
.expected_index = 5,
},
{
.message = "Next key after last key",
.buffer =
{
0xBF, /* 0 Open Map */
0x61, /* 1 Key of length 1 */
'a', /* 2 */
0x41, /* 3 Byte String of length 1 */
0x10, /* 4 */
0x61, /* 5 Key of length 1 */
'b', /* 6 */
0x25, /* 7 -6 */
0xFF, /* 8 End of map */
},
.initial_index = 5,
.expected_index = 8,
},
{
.message = "Next key after nested map",
.buffer =
{
0xBF, /* 0 Open Map 1 */
0x61, /* 1 Key of length 1 */
'm', /* 2 */
0xBF, /* 3 Open Map 2 */
0x61, /* 4 Key of length 1 */
'n', /* 5 */
0xBF, /* 6 Open Map 3 */
0xFF, /* 7 End of map 3 */
0xFF, /* 8 End of map 2 */
0x61, /* 9 Key of length 1 */
'b', /* 10 */
0x25, /* 11 -6 */
0xFF, /* 12 End of map 1 */
},
.initial_index = 1,
.expected_index = 9,
},
};
void test_NextKey( void )
{
CBOR_SetCursor( cbor_data, 0 );
CBOR_MemCopy( cbor_data, test_case->buffer, sizeof( test_case->buffer ) );
cbor_data->map_end = cbor_data->cursor - 1;
CBOR_SetCursor( cbor_data, test_case->initial_index );
CBOR_NextKey( cbor_data );
cbor_ssize_t actual_index = cbor_data->cursor - cbor_data->buffer_start;
TEST_ASSERT_EQUAL_MESSAGE(
test_case->expected_index, actual_index, test_case->message );
}
TEST( aws_cbor_iter, NextKey )
{
for( cbor_int_t i = 0; i < NEXT_KEY_TEST_CASE_COUNT; i++ )
{
test_case = &next_key_test_cases[ i ];
RUN_TEST( test_NextKey );
}
}
TEST( aws_cbor_iter, SetCursor )
{
cbor_int_t expected_position = 0;
CBOR_SetCursor( cbor_data, expected_position );
TEST_ASSERT_EQUAL_PTR(
&( cbor_data->buffer_start[ expected_position ] ), cbor_data->cursor );
expected_position = 3;
CBOR_SetCursor( cbor_data, expected_position );
TEST_ASSERT_EQUAL_PTR(
&( cbor_data->buffer_start[ expected_position ] ), cbor_data->cursor );
}
TEST( aws_cbor_iter, null_checks )
{
TEST_EXPECT_ASSERT( CBOR_NextPtr( NULL ) );
TEST_EXPECT_ASSERT( CBOR_Next( NULL ) );
TEST_EXPECT_ASSERT( CBOR_NextKeyPtr( NULL ) );
TEST_EXPECT_ASSERT( CBOR_NextKey( NULL ) );
TEST_EXPECT_ASSERT( CBOR_SetCursor( NULL, 0 ) );
}
|
cimeq/amazon-freertos
|
lib/cbor/src/aws_cbor_map.h
|
/*
* Amazon FreeRTOS
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#ifndef AWS_CBOR_MAP_H
#define AWS_CBOR_MAP_H
/**
* @file
* @brief Map type functions
*/
#include "aws_cbor.h"
#include <stdint.h>
/**
* @brief Writes the opening sequence for a CBOR map
* @param cbor_handle_t Handle for the CBOR data struct.
*/
void CBOR_OpenMap( cbor_handle_t /*cbor_data*/ );
/**
* @brief Writes the closing sequence for a CBOR map
* @param cbor_handle_t Handle for the CBOR data struct.
*/
void CBOR_CloseMap( cbor_handle_t /*cbor_data*/ );
/**
* @brief Checks if key matches the provided string
* @param cbor_handle_t Handle for the CBOR data struct with the cursor pointing
* at a key string
* @param "const char *" String to check against the cbor data struct
*/
bool CBOR_KeyIsMatch( cbor_handle_t /*cbor_data*/, const char * /*key*/ );
/**
* @brief Searches for a key in a CBOR map
* @param cbor_handle_t Handle for the CBOR data struct with the cursor pointing
* at a key string
* @param "const char *" String to check against the cbor data struct
*/
void CBOR_SearchForKey( cbor_handle_t /*cbor_data*/, const char * /*key*/ );
/**
* @brief Appends a key-value pair to a map
* @warning CBOR_AppendKey() does not check for duplication
*/
void CBOR_AppendKey( cbor_handle_t /*cbor_data*/, const char * /*key*/,
write_function_t /*write_function*/, const void * /*value*/ );
/**
* @brief Assigns a value to a key in a CBOR map
*/
void CBOR_AssignKey( cbor_handle_t /*cbor_data*/, const char * /*key*/,
write_function_t /*write_function*/, const void * /*value*/ );
/**
* @brief Gets the size (in bytes) of a map data item
* @param "const cbor_byte_t *" pointer to the head of the data item
* @return cbor_ssize_t size (in bytes) of the map
*/
cbor_ssize_t CBOR_MapSize( const cbor_byte_t * /*ptr*/ );
/**
* @brief Writes a map into the CBOR buffer
*
* Writes the contents of a CBOR buffer (map) into another CBOR buffer.
*
* @param cbor_handle_t Handle for the CBOR destination data struct.
* @param "const void *" Handle for the CBOR source data struct.
*
*/
void CBOR_WriteMap( cbor_handle_t /*cbor_data*/, const void * /*input*/ );
/**
* @brief Reads a map (as a CBOR buffer) from another CBOR buffer
* @param cbor_handle_t Handle for the CBOR data struct.
* @return Handle to a new CBOR data struct.
*/
cbor_handle_t CBOR_ReadMap( cbor_handle_t /*cbor_data*/ );
#endif /* end of include guard: AWS_CBOR_MAP_H */
|
cimeq/amazon-freertos
|
lib/include/FreeRTOS_POSIX/time.h
|
<filename>lib/include/FreeRTOS_POSIX/time.h
/*
* Amazon FreeRTOS POSIX V1.0.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
/**
* @file time.h
* @brief Time types.
*
* http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html
*/
#ifndef _FREERTOS_POSIX_TIME_H_
#define _FREERTOS_POSIX_TIME_H_
/* FreeRTOS+POSIX includes. */
#include "FreeRTOS_POSIX/sys/types.h"
#include "FreeRTOS_POSIX/signal.h"
/**
* @defgroup Unit conversion constants.
*/
/**@{ */
#define MICROSECONDS_PER_SECOND ( 1000000LL ) /**< Microseconds per second. */
#define NANOSECONDS_PER_SECOND ( 1000000000LL ) /**< Nanoseconds per second. */
#define NANOSECONDS_PER_TICK ( NANOSECONDS_PER_SECOND / configTICK_RATE_HZ ) /**< Nanoseconds per FreeRTOS tick. */
/**@} */
/**
* @defgroup Clock identifiers.
*/
/**@{ */
#define CLOCK_REALTIME 0 /**< The identifier of the system-wide clock measuring real time. */
#define CLOCK_MONOTONIC 1 /**< The identifier for the system-wide monotonic clock.*/
/**@} */
/**
* @brief A number used to convert the value returned by the clock() function into seconds.
*/
#define CLOCKS_PER_SEC ( ( clock_t ) configTICK_RATE_HZ )
/**
* @brief Flag indicating time is absolute.
*
* For functions taking timer objects, this refers to the clock associated with the timer.
*/
#define TIMER_ABSTIME 0x01
#if !defined( posixconfigENABLE_TIMESPEC ) || ( posixconfigENABLE_TIMESPEC == 1 )
struct timespec
{
time_t tv_sec; /* Seconds. */
long tv_nsec; /* Nanoseconds. */
};
#endif
#if !defined( posixconfigENABLE_ITIMERSPEC ) || ( posixconfigENABLE_ITIMERSPEC == 1 )
struct itimerspec
{
struct timespec it_interval; /* Timer period. */
struct timespec it_value; /* Timer expiration. */
};
#endif
/**
* @brief Report CPU time used.
*
* http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock.html
*
* @note This function reports the number of FreeRTOS ticks since the scheduler
* was started minus the ticks spent in the idle task. It does NOT report the
* number of ticks spent by the calling thread.
*/
clock_t clock( void );
/**
* @brief Access a process CPU-time clock.
*
* http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_getcpuclockid.html
*
* @note This function is currently unsupported. It will always return -1 and
* set errno to EPERM.
*/
int clock_getcpuclockid( pid_t pid,
clockid_t * clock_id );
/**
* @brief Returns the resolution of a clock.
*
* http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_getres.html
*
* @note clock_id is ignored; this function returns the resolution of the FreeRTOS
* tick count.
*/
int clock_getres( clockid_t clock_id,
struct timespec * res );
/**
* @brief Returns the current value for the specified clock, clock_id.
*
* http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_gettime.html
*
* @note clock_id is ignored; this function returns the FreeRTOS tick count.
*/
int clock_gettime( clockid_t clock_id,
struct timespec * tp );
/**
* @brief High resolution sleep with specifiable clock.
*
* http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep.html
*
* @note clock_id is ignored; this function uses the FreeRTOS tick count as its
* clock. rmtp is also ignored, as signals are not implemented. flags is ignored
* if INCLUDE_vTaskDelayUntil is 0, i.e. the FreeRTOS function vTaskDelayUntil
* isn't available.
*/
int clock_nanosleep( clockid_t clock_id,
int flags,
const struct timespec * rqtp,
struct timespec * rmtp );
/**
* @brief Sets the time for the specified clock.
*
* http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_settime.html
*
* @note This function is currently unsupported, as FreeRTOS does not provide
* a function to modify the tick count. It will always return -1 and set errno
* to EPERM.
*/
int clock_settime( clockid_t clock_id,
const struct timespec * tp );
/**
* @brief High resolution sleep.
*
* http://pubs.opengroup.org/onlinepubs/9699919799/functions/nanosleep.html
*
* @note rmtp is ignored, as signals are not implemented.
*/
int nanosleep( const struct timespec * rqtp,
struct timespec * rmtp );
/**
* @brief Create a per-process timer.
*
* http://pubs.opengroup.org/onlinepubs/9699919799/functions/timer_create.html
*
* @note clock_id is ignored; this function used the FreeRTOS tick count as its
* clock. Because signals are currently unimplemented, evp.sigev_notify must be
* set to SIGEV_THREAD.
*/
int timer_create( clockid_t clockid,
struct sigevent * evp,
timer_t * timerid );
/**
* @brief Delete a per-process timer.
*
* http://pubs.opengroup.org/onlinepubs/9699919799/functions/timer_delete.html
*/
int timer_delete( timer_t timerid );
/**
* @brief Get the timer overrun count.
*
* http://pubs.opengroup.org/onlinepubs/9699919799/functions/timer_getoverrun.html
*
* Signals are not implemented, so this function will always return 0.
*/
int timer_getoverrun( timer_t timerid );
/**
* @brief Get the amount of time until the timer expires.
*
* http://pubs.opengroup.org/onlinepubs/9699919799/functions/timer_gettime.html
*/
int timer_gettime( timer_t timerid,
struct itimerspec * value );
/**
* @brief Set the time until the next expiration of the timer.
*
* http://pubs.opengroup.org/onlinepubs/9699919799/functions/timer_settime.html
*/
int timer_settime( timer_t timerid,
int flags,
const struct itimerspec * value,
struct itimerspec * ovalue );
#endif /* ifndef _FREERTOS_POSIX_TIME_H_ */
|
cimeq/amazon-freertos
|
lib/defender/test/unit_tests/test_aws_defender_report_cpu.c
|
<reponame>cimeq/amazon-freertos
/*
* Amazon FreeRTOS Device Defender Agent V1.0.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "aws_cbor.h"
#include "aws_defender_cpu.h"
#include "aws_defender_report_cpu.h"
#include "unity_fixture.h"
extern int DEFENDER_current_load;
TEST_GROUP( aws_defender_report_cpu );
TEST_SETUP( aws_defender_report_cpu )
{
}
TEST_TEAR_DOWN( aws_defender_report_cpu )
{
}
TEST_GROUP_RUNNER( aws_defender_report_cpu )
{
RUN_TEST_CASE( aws_defender_report_cpu, CpuGet_has_cpu_with_integer_result );
RUN_TEST_CASE( aws_defender_report_cpu, CpuGet_returns_result_from_LoadGet );
RUN_TEST_CASE(
aws_defender_report_cpu, CpuGet_updates_when_cpu_stat_refreshes );
RUN_TEST_CASE(
aws_defender_report_cpu, CpuGet_remains_unchanged_unless_refreshed );
}
TEST( aws_defender_report_cpu, CpuGet_has_cpu_with_integer_result )
{
cbor_handle_t cpu_metric = DEFENDER_CpuReportGet();
( void ) CBOR_FromKeyReadInt( cpu_metric, "cpu" );
eCBOR_ERR_t err = CBOR_CheckError( cpu_metric );
CBOR_Delete( &cpu_metric );
TEST_ASSERT_EQUAL( eCBOR_ERR_NO_ERROR, err );
}
TEST( aws_defender_report_cpu, CpuGet_returns_result_from_LoadGet )
{
cbor_handle_t cpu_metric = DEFENDER_CpuReportGet();
cbor_int_t actual = CBOR_FromKeyReadInt( cpu_metric, "cpu" );
int expected = DEFENDER_CpuLoadGet();
CBOR_Delete( &cpu_metric );
TEST_ASSERT_EQUAL( expected, actual );
}
TEST( aws_defender_report_cpu, CpuGet_updates_when_cpu_stat_refreshes )
{
DEFENDER_current_load++;
DEFENDER_CpuLoadRefresh();
int expected = DEFENDER_current_load;
cbor_handle_t cpu_metric = DEFENDER_CpuReportGet();
cbor_int_t actual = CBOR_FromKeyReadInt( cpu_metric, "cpu" );
CBOR_Delete( &cpu_metric );
TEST_ASSERT_EQUAL( expected, actual );
}
TEST( aws_defender_report_cpu, CpuGet_remains_unchanged_unless_refreshed )
{
int expected = DEFENDER_current_load;
DEFENDER_current_load++;
cbor_handle_t cpu_metric = DEFENDER_CpuReportGet();
cbor_int_t actual = CBOR_FromKeyReadInt( cpu_metric, "cpu" );
CBOR_Delete( &cpu_metric );
TEST_ASSERT_EQUAL( expected, actual );
}
|
cimeq/amazon-freertos
|
lib/defender/src/aws_defender.c
|
/*
* Amazon FreeRTOS Device Defender Agent V1.0.1
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "aws_cbor.h"
#include "aws_cbor_alloc.h"
#include "aws_cbor_print.h"
#include "aws_defender_internals.h"
#include "FreeRTOS.h"
#include "aws_clientcredential.h"
#include "aws_mqtt_agent.h"
#include "task.h"
static TickType_t xDEFENDER_mqtt_timeout_period = pdMS_TO_TICKS( 10U * 1000U );
static int32_t xDEFENDER_delay_period_sec = 300;
static DefenderReportStatus_t DEFENDER_report_status;
static defender_state_t DEFENDER_state;
static void DEFENDER_AgentLoop();
static void DEFENDER_AgentSleep( int /*sleep_seconds*/ );
static TaskHandle_t pxDEFENDER_task_handle = NULL;
static bool xDEFENDER_kill;
static char const * const pcDEFENDER_mqtt_endpoint =
clientcredentialMQTT_BROKER_ENDPOINT;
static defender_state_t (* DEFENDER_States[ eDEFENDER_STATE_COUNT ])( void ) = { 0 };
static defender_state_t DEFENDER_StateInit( void );
static defender_state_t DEFENDER_StateNewMQTT( void );
static defender_state_t DEFENDER_StateConnectMqtt( void );
static defender_state_t DEFENDER_StateDisconnectMqtt( void );
static defender_state_t DEFENDER_StateSubscribe( void );
static defender_state_t DEFENDER_StateCreateReport( void );
static defender_state_t DEFENDER_StateDeleteMqtt( void );
static defender_state_t DEFENDER_StateSleep( void );
defender_state_t DEFENDER_StateGet( void )
{
return DEFENDER_state;
}
static void DEFENDER_StateFunctionSet( void )
{
/* clang-format off */
DEFENDER_States[ eDEFENDER_STATE_INIT ] = DEFENDER_StateInit;
DEFENDER_States[ eDEFENDER_STATE_STARTED ] = DEFENDER_StateNewMQTT;
DEFENDER_States[ eDEFENDER_STATE_NEW_MQTT_FAILED ] = DEFENDER_StateSleep;
DEFENDER_States[ eDEFENDER_STATE_NEW_MQTT_SUCCESS ] = DEFENDER_StateConnectMqtt;
DEFENDER_States[ eDEFENDER_STATE_CONNECT_MQTT_FAILED ] = DEFENDER_StateDeleteMqtt;
DEFENDER_States[ eDEFENDER_STATE_CONNECT_MQTT_SUCCESS ] = DEFENDER_StateSubscribe;
DEFENDER_States[ eDEFENDER_STATE_SUBSCRIBE_MQTT_FAILED ] = DEFENDER_StateDisconnectMqtt;
DEFENDER_States[ eDEFENDER_STATE_SUBSCRIBE_MQTT_SUCCESS ] = DEFENDER_StateCreateReport;
DEFENDER_States[ eDEFENDER_STATE_SUBMIT_REPORT_FAILED ] = DEFENDER_StateDisconnectMqtt;
DEFENDER_States[ eDEFENDER_STATE_SUBMIT_REPORT_SUCCESS ] = DEFENDER_StateDisconnectMqtt;
DEFENDER_States[ eDEFENDER_STATE_DISCONNECT_FAILED ] = DEFENDER_StateDisconnectMqtt;
DEFENDER_States[ eDEFENDER_STATE_DISCONNECTED ] = DEFENDER_StateDeleteMqtt;
DEFENDER_States[ eDEFENDER_STATE_DELETE_FAILED ] = DEFENDER_StateDeleteMqtt;
DEFENDER_States[ eDEFENDER_STATE_SLEEP ] = DEFENDER_StateSleep;
/* clang-format on */
}
static defender_state_t DEFENDER_StateInit( void )
{
return eDEFENDER_STATE_STARTED;
}
static MQTTAgentHandle_t pxDEFENDER_mqtt_agent;
static defender_state_t DEFENDER_StateNewMQTT( void )
{
MQTTAgentReturnCode_t create_result =
MQTT_AGENT_Create( &pxDEFENDER_mqtt_agent );
if( eMQTTAgentSuccess != create_result )
{
return eDEFENDER_STATE_NEW_MQTT_FAILED;
}
return eDEFENDER_STATE_NEW_MQTT_SUCCESS;
}
static defender_state_t DEFENDER_StateConnectMqtt( void )
{
MQTTAgentConnectParams_t xDefender_con_params =
{
.pcURL = pcDEFENDER_mqtt_endpoint,
.xFlags = mqttagentREQUIRE_TLS,
.xURLIsIPAddress = pdFALSE,
.usPort = clientcredentialMQTT_BROKER_PORT,
.pucClientId = ( const uint8_t * ) clientcredentialIOT_THING_NAME,
.usClientIdLength = strlen( clientcredentialIOT_THING_NAME ),
.xSecuredConnection = pdTRUE,
.pvUserData = NULL,
.pxCallback = NULL,
.pcCertificate = NULL,
.ulCertificateSize = 0,
};
MQTTAgentReturnCode_t connect_result =
MQTT_AGENT_Connect( pxDEFENDER_mqtt_agent, &xDefender_con_params,
xDEFENDER_mqtt_timeout_period );
if( eMQTTAgentSuccess != connect_result )
{
return eDEFENDER_STATE_CONNECT_MQTT_FAILED;
}
return eDEFENDER_STATE_CONNECT_MQTT_SUCCESS;
}
static bool SubscribeToAcceptCbor( void );
static bool SubscribeToRejectCbor( void );
static defender_state_t DEFENDER_StateSubscribe( void )
{
bool xErr = false;
xErr |= SubscribeToAcceptCbor();
xErr |= SubscribeToRejectCbor();
if( xErr )
{
return eDEFENDER_STATE_SUBSCRIBE_MQTT_FAILED;
}
return eDEFENDER_STATE_SUBSCRIBE_MQTT_SUCCESS;
}
static MQTTBool_t accept_callback( void * pxPvPublishCallbackContext,
MQTTPublishData_t const * pxPublishData );
static bool SubscribeToAcceptCbor( void )
{
uint8_t * pucTopic = "$aws/things/" clientcredentialIOT_THING_NAME
"/defender/metrics/cbor/accepted";
MQTTAgentSubscribeParams_t xSub_params =
{
.pucTopic = pucTopic,
.usTopicLength = strlen( pucTopic ),
.xQoS = eMQTTQoS0,
.pvPublishCallbackContext = NULL,
.pxPublishCallback = accept_callback,
};
MQTTAgentReturnCode_t sub_result = MQTT_AGENT_Subscribe(
pxDEFENDER_mqtt_agent, &xSub_params, xDEFENDER_mqtt_timeout_period );
bool xErr = eMQTTAgentSuccess != sub_result;
return xErr;
}
static MQTTBool_t accept_callback( void * pxPvPublishCallbackContext,
MQTTPublishData_t const * pxPublishData )
{
DEFENDER_report_status = eDefenderRepSuccess;
return eMQTTFalse;
}
static MQTTBool_t reject_callback( void * pxPvPublishCallbackContext,
MQTTPublishData_t const * pxPublishData );
static bool SubscribeToRejectCbor( void )
{
uint8_t * pucTopic = "$aws/things/" clientcredentialIOT_THING_NAME
"/defender/metrics/cbor/rejected";
MQTTAgentSubscribeParams_t xSub_params =
{
.pucTopic = pucTopic,
.usTopicLength = strlen( pucTopic ),
.xQoS = eMQTTQoS0,
.pvPublishCallbackContext = NULL,
.pxPublishCallback = reject_callback,
};
MQTTAgentReturnCode_t sub_result = MQTT_AGENT_Subscribe(
pxDEFENDER_mqtt_agent, &xSub_params, xDEFENDER_mqtt_timeout_period );
bool xErr = eMQTTAgentSuccess != sub_result;
return xErr;
}
static MQTTBool_t reject_callback( void * pxPvPublishCallbackContext,
MQTTPublishData_t const * pxPublishData )
{
DEFENDER_report_status = eDefenderRepRejected;
return eMQTTFalse;
}
static bool PublishCborToDevDef( cbor_handle_t );
static defender_state_t DEFENDER_StateCreateReport( void )
{
cbor_handle_t pxReport;
pxReport = DEFENDER_CreateReport();
if( NULL == pxReport )
{
return eDEFENDER_STATE_SUBMIT_REPORT_FAILED;
}
bool xErr = PublishCborToDevDef( pxReport );
CBOR_Delete( &pxReport );
/* Wait for ack from service */
vTaskDelay( pdMS_TO_TICKS( 10000 ) );
if( true == xErr )
{
return eDEFENDER_STATE_SUBMIT_REPORT_FAILED;
}
return eDEFENDER_STATE_SUBMIT_REPORT_SUCCESS;
}
static bool PublishCborToDevDef( cbor_handle_t pxReport )
{
uint8_t * pucTopic =
"$aws/things/" clientcredentialIOT_THING_NAME "/defender/metrics/cbor";
uint8_t const * pucBuffer = CBOR_GetRawBuffer( pxReport );
int xBuf_len = CBOR_GetBufferSize( pxReport );
MQTTAgentPublishParams_t xPub_rec_params =
{
.pucTopic = pucTopic,
.usTopicLength = strlen( pucTopic ),
.xQoS = eMQTTQoS0,
.pvData = pucBuffer,
.ulDataLength = xBuf_len,
};
MQTTAgentReturnCode_t publish_result = MQTT_AGENT_Publish(
pxDEFENDER_mqtt_agent, &xPub_rec_params, xDEFENDER_mqtt_timeout_period );
if( eMQTTAgentSuccess != publish_result )
{
DEFENDER_report_status = eDefenderRepNotSent;
return true;
}
DEFENDER_report_status = eDefenderRepNoAck;
return false;
}
static defender_state_t DEFENDER_StateDisconnectMqtt( void )
{
if( eMQTTAgentSuccess
!= MQTT_AGENT_Disconnect(
pxDEFENDER_mqtt_agent, xDEFENDER_mqtt_timeout_period ) )
{
return eDEFENDER_STATE_DISCONNECT_FAILED;
}
return eDEFENDER_STATE_DISCONNECTED;
}
static defender_state_t DEFENDER_StateDeleteMqtt( void )
{
if( eMQTTAgentSuccess != MQTT_AGENT_Delete( pxDEFENDER_mqtt_agent ) )
{
return eDEFENDER_STATE_DELETE_FAILED;
}
return eDEFENDER_STATE_SLEEP;
}
static defender_state_t DEFENDER_StateSleep( void )
{
static TickType_t xWake_tick;
TickType_t const current_tick = xTaskGetTickCount();
TickType_t const active_period = ( current_tick - xWake_tick );
int const xPeriod_ms = ( xDEFENDER_delay_period_sec * 1000 );
TickType_t const period_ticks = pdMS_TO_TICKS( xPeriod_ms );
TickType_t sleep_period = ( period_ticks - active_period );
if( sleep_period > xDEFENDER_delay_period_sec )
{
sleep_period = 1;
}
vTaskDelay( sleep_period );
xWake_tick = xTaskGetTickCount();
return eDEFENDER_STATE_STARTED;
}
static defender_state_t DEFENDER_StateFunction( defender_state_t current_state )
{
if( current_state == eDEFENDER_STATE_INIT )
{
DEFENDER_StateFunctionSet();
}
defender_state_t next_state = DEFENDER_States[ current_state ]();
return next_state;
}
DefenderErr_t DEFENDER_ReportPeriodSet( int32_t xPeriod_sec )
{
xDEFENDER_delay_period_sec = xPeriod_sec;
return eDefenderErrSuccess;
}
DefenderReportStatus_t DEFENDER_ReportStatusGet( void )
{
DefenderReportStatus_t report_status;
do
{
report_status = DEFENDER_report_status;
} while( report_status != DEFENDER_report_status );
return report_status;
}
DefenderErr_t DEFENDER_Start( void )
{
if( NULL != pxDEFENDER_task_handle )
{
return eDefenderErrAlreadyStarted;
}
xDEFENDER_kill = false;
/* Returns pdTrue (1) on success. */
BaseType_t success =
xTaskCreate( DEFENDER_AgentLoop, "DD_Agent", configMINIMAL_STACK_SIZE,
NULL, tskIDLE_PRIORITY, &pxDEFENDER_task_handle );
if( 1 != success )
{
return eDefenderErrFailedToCreateTask;
}
return eDefenderErrSuccess;
}
DefenderErr_t DEFENDER_Stop( void )
{
if( NULL == pxDEFENDER_task_handle )
{
return eDefenderErrNotStarted;
}
xDEFENDER_kill = true;
return eDefenderErrSuccess;
}
static void DEFENDER_AgentLoop()
{
for( ; ; )
{
/* Check if a kill was requested before the report was started */
if( xDEFENDER_kill )
{
break;
/* TODO: Appropriately clean up resources on kill request */
}
DEFENDER_state = DEFENDER_StateFunction( DEFENDER_state );
int xState_period_ms = 5;
vTaskDelay( pdMS_TO_TICKS( xState_period_ms ) );
}
TaskHandle_t pxTask_handle = pxDEFENDER_task_handle;
pxDEFENDER_task_handle = NULL;
vTaskDelete( pxTask_handle );
}
|
cimeq/amazon-freertos
|
lib/defender/src/report/aws_defender_report.c
|
<filename>lib/defender/src/report/aws_defender_report.c
/*
* Amazon FreeRTOS Device Defender Agent V1.0.1
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "aws_defender_internals.h"
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
static DefenderMetric_t xDEFENDER_metrics_list[ DEFENDER_MAX_METRICS_COUNT ];
static int32_t xDEFENDER_metrics_count;
DefenderErr_t DEFENDER_MetricsInitFunc( DefenderMetric_t * ppxMetrics,
int32_t xMetric_count )
{
int32_t lI;
if( DEFENDER_MAX_METRICS_COUNT < xMetric_count )
{
return eDefenderErrTooManyMetrics;
}
xDEFENDER_metrics_count = xMetric_count;
for( lI = 0; lI < xMetric_count; ++lI )
{
xDEFENDER_metrics_list[ lI ] = ppxMetrics[ lI ];
}
return 0;
}
cbor_handle_t DEFENDER_CreateReport( void )
{
cbor_handle_t pxReport = CBOR_New( 0 );
cbor_handle_t pxHeader = DEFENDER_GetHeader();
CBOR_AppendKeyWithMap( pxReport, DEFENDER_header_tag, pxHeader );
CBOR_Delete( &pxHeader );
cbor_handle_t pxMetrics = CBOR_New( 0 );
for( int xI = 0; xI < xDEFENDER_metrics_count; ++xI )
{
xDEFENDER_metrics_list[ xI ]->UpdateMetric();
cbor_handle_t pxMetric = xDEFENDER_metrics_list[ xI ]->ReportMetric();
CBOR_AppendMap( pxMetrics, pxMetric );
CBOR_Delete( &pxMetric );
}
CBOR_AppendKeyWithMap( pxReport, DEFENDER_metrics_tag, pxMetrics );
CBOR_Delete( &pxMetrics );
if( eCBOR_ERR_NO_ERROR != CBOR_CheckError( pxReport ) )
{
CBOR_Delete( &pxReport );
}
return pxReport;
}
|
cimeq/amazon-freertos
|
lib/cbor/src/aws_cbor_mem.h
|
/*
* Amazon FreeRTOS
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#ifndef AWS_CBOR_MEM_H /* Guards against multiple inclusion */
#define AWS_CBOR_MEM_H
/**
* @file
* @brief Low level memory management and navigations interface
*/
#include "aws_cbor.h"
#include <stddef.h>
#include <stdint.h>
/**
* @brief Assigns writes to the cursor's location and increments the cursor.
* @param Handle for the CBOR data struct.
* @param Byte to write to cursor location.
*/
void CBOR_AssignAndIncrementCursor(
cbor_handle_t /*cbor_data*/, cbor_byte_t /*input*/ );
/**
* @brief Assigns writes to the cursor's location and decrements the cursor.
* @param Handle for the CBOR data struct.
* @param Byte to write to cursor location.
*/
void CBOR_AssignAndDecrementCursor(
cbor_handle_t /*cbor_data*/, cbor_byte_t /*input*/ );
/**
* @brief Copies data to the read/write cursor.
*
* Copies data from the pointer provided to the read/write cursor. As this is a
* write function, the cursor will point to the next position after the write
* location. The user of this function can provide a pointer to a location in
* the CBOR buffer, to include overlapping buffers.
*
* @param cbor_handle_t Handle for the CBOR data struct.
* @param "const void *" Pointer to a memory buffer.
* @param cbor_ssize_t Length (in bytes) of the memory buffer.
*/
void CBOR_MemCopy( cbor_handle_t /*cbor_data*/, const void * /*input*/,
cbor_ssize_t /*length*/ );
/**
* @brief Gets size of the CBOR data item that the cursor points to.
*
* @param cbor_handle_t Handle for the CBOR data struct.
* @return cbor_ssize_t Size of the CBOR data item
*/
cbor_ssize_t CBOR_DataItemSize( cbor_handle_t /*cbor_data*/ );
/**
* @brief Gets size of the CBOR data item at the pointer
*
* @param "const cbor_byte_t *" Pointer - Points to the head of a CBOR data
* item.
* @return cbor_ssize_t Size of the CBOR data item
*/
cbor_ssize_t CBOR_DataItemSizePtr( const cbor_byte_t * /*ptr*/ );
/**
* @brief Resizes a value to allow writing a larger or smaller value in place.
*
* Resizes a value in a CBOR buffer by copying the data to the left (higher
* indexes) left to grow the value, or to the right to shrink the value. If the
* new size is the same as the old size, nothing happens.
*
* @note This can become expensive in large CBOR buffers
*
* @param Handle for the CBOR data struct.
* @param The new size for the value.
*/
void CBOR_ValueResize( cbor_handle_t /*cbor_data*/, cbor_ssize_t /*new_size*/ );
#endif /* ifndef AWS_CBOR_MEM_H */
|
cimeq/amazon-freertos
|
lib/wifi/portable/microchip/curiosity_pic32mzef/aws_wifi.c
|
/*******************************************************************************
* Network Interface file
*
* Summary:
* Network Interface file for FreeRTOS-Plus-TCP stack
*
* Description:
* - Interfaces PIC32 to the FreeRTOS TCP/IP stack
*******************************************************************************/
/*******************************************************************************
* File Name: pic32_NetworkInterface.c
* Copyright 2017 Microchip Technology Incorporated and its subsidiaries.
*
* Amazon FreeRTOS Wi-Fi for Curiosity PIC32MZEF V1.0.4
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do
* so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE
*******************************************************************************/
#ifndef PIC32_USE_ETHERNET
#include <sys/kmem.h>
#include "FreeRTOS.h"
#include "semphr.h"
#include "event_groups.h"
#include "FreeRTOS_IP.h"
#include "FreeRTOS_IP_Private.h"
#include "NetworkInterface.h"
#include "NetworkBufferManagement.h"
#include "aws_wifi.h"
#include "aws_secure_sockets.h"
#include "peripheral/eth/plib_eth.h"
#include "system_config.h"
#include "system/console/sys_console.h"
#include "system/debug/sys_debug.h"
#include "system/command/sys_command.h"
#include "driver/ethmac/drv_ethmac.h"
#include "driver/miim/drv_miim.h"
#include "tcpip/tcpip.h"
#include "tcpip/src/tcpip_private.h"
#include "tcpip/src/link_list.h"
#include "wilc1000_task.h"
#include "wdrv_wilc1000_main.h"
#include "wdrv_wilc1000_common.h"
#include "wdrv_wilc1000_scan_helper.h"
#include "driver/flash/drv_flash.h"
/* initialization done timeout. */
#define WIFI_MAC_INIT_TIMEOUT ( pdMS_TO_TICKS( 5000 ) )
#define WIFI_MAC_CONNECT_TIMEOUT ( pdMS_TO_TICKS( 10000 ) )
#define WIFI_MAC_DISCONNECT_TIMEOUT_SECONDS 10
/*Ping block for a free buffer timeout (ms) */
#define WIFI_PING_WAIT_FOR_BUFF_TIMEOUT ( 10000 / portTICK_PERIOD_MS )
/*Ping packet size (bytes) */
#define WIFI_PING_PKT_SIZE 256
#define WIFI_MAX_PSK_LEN 65
/*!< Maximum size for the WPA PSK including the NULL termination.
*/
bool isLinkUp();
WDRV_HOOKS WILC1000_hooks;
extern void WDRV_WILC1000_Default_Hook_Initialize( WDRV_HOOKS * ehooks );
extern uint32_t SOCKETS_GetHostByName( const char * pcHostName );
void xNetworkFrameReceived( uint32_t len,
uint8_t const * const frame );
typedef enum
{
WDRV_MAC_EVENT_INIT_NONE = 0x000, /* no event/invalid */
WDRV_MAC_EVENT_INIT_DONE = 0x001, /* initialization done event */
WDRV_MAC_EVENT_TIMEOUT = 0x002, /* periodic timeout event */
WDRV_MAC_EVENT_IF_PENDING = 0x004, /* an interface event signal: RX, TX, errors. etc. */
WDRV_MAC_EVENT_CONNECT_DONE = 0x005, /* Connection done event */
WDRV_MAC_EVENT_CONNECT_TIMEOUT = 0x006, /* Connection timeout event */
} WDRV_MAC_EVENT_TYPE;
/*Flash driver handle*/
#define WDRV_FLASH_HANDLE 0
/*Netork parameters section base address in Curiosity flash; it's*/
/*the page just before the latest one which is used by pkcs11 module*/
#define WIFI_NETWORK_PARAM_SECTION_START_ADDRESS ( 0x9d200000 - 0x8000 )
/*Netork parameters section size in Curiosity flash*/
#define WIFI_NETWORK_PARAM_SECTION_SIZE ( DRV_FLASH_PAGE_SIZE )
/*Network parameters entry size; should be the same as */
#define WIFI_NETWORK_PARAM_ENTRY_SIZE sizeof( WIFINetworkProfile_t )
/*Max number of networks to be saved*/
#define WIFI_MAX_NETWORK_PROFILES 64
/* Network parameters section in curiosity flash
*
* Point p_network_param to the network parameter storage area by direct address since
* the XC32 compiler will create a single byte initializer at that address if assigning
* it to a const section. That, in turn, will cause the binary image to be too large,
* about 2MB in size, since the address is at the end of program memory. */
const uint8_t * p_network_param = ( const uint8_t * ) WIFI_NETWORK_PARAM_SECTION_START_ADDRESS;
/*Bitmap to mark busy and free entries in network parameters section*/
uint64_t g_network_param_bitmap = 0;
/*buffer used for read and write network parameters to flash*/
uint8_t g_network_param_copy[ WIFI_NETWORK_PARAM_SECTION_SIZE ] = { 0 };
/*ping reply queue*/
QueueHandle_t xPingReplyQueue;
typedef struct
{
uint8_t ucSSIDLength; /*SSID length*/
char pcSSID[ WDRV_MAX_SSID_LENGTH ]; /*SSID of the WiFi network*/
uint8_t ucPasswordLength; /**<SSID length. */
char pcPassword[ WDRV_MAX_WPA_PASS_PHRASE_LENGTH ]; /*Password needed to connect*/
WIFISecurity_t xSecurity; /*WiFi Security. @see WIFISecurity_t*/
int8_t cChannel; /*Channel number*/
uint8_t __PAD24__[ 5 ]; /*Padding to make struct quad word aligned*/
} WIFI_NetworkParams_t;
/************************************* Section: worker code ************************************************** */
/* */
void WIFI_SecuritySet( WIFISecurity_t securityMode,
const char * pcKey,
uint8_t u8KeyLength )
{
uint8_t au8PSK[ WIFI_MAX_PSK_LEN ];
if( securityMode != eWiFiSecurityOpen )
{
memcpy( au8PSK, pcKey, u8KeyLength );
}
switch( securityMode )
{
case eWiFiSecurityOpen:
WDRV_EXT_CmdSecNoneSet();
break;
case eWiFiSecurityWEP:
if( ( u8KeyLength == 5 ) || ( u8KeyLength == 13 ) )
{
int i;
uint8_t buf[ 26 ] = { 0 };
uint8_t c_value;
for( i = 0; i < u8KeyLength * 2; i++ )
{
c_value = ( i % 2 == 0 ) ? ( au8PSK[ i / 2 ] >> 4 ) : ( au8PSK[ i / 2 ] & 0x0F );
buf[ i ] = ( c_value > 9 ) ? ( 'A' + c_value - 0x0A ) : ( '0' + c_value - 0x00 );
}
u8KeyLength *= 2;
memcpy( au8PSK, buf, u8KeyLength );
au8PSK[ u8KeyLength ] = 0x00;
}
WDRV_EXT_CmdSecWEPSet( au8PSK, u8KeyLength );
break;
case eWiFiSecurityWPA:
case eWiFiSecurityWPA2:
WDRV_EXT_CmdSecWPASet( au8PSK, u8KeyLength );
break;
default:
WDRV_ASSERT( pdFALSE, "Undefined security mode" );
break;
}
}
/**
* @brief Sets Wi-Fi mode.
*
* @param[in] xDeviceMode - Mode of the device Station / Access Point /P2P.
*
* @return eWiFiSuccess if everything succeeds, failure code otherwise.
*/
WIFIReturnCode_t WIFI_SetMode( WIFIDeviceMode_t xDeviceMode )
{
WIFIReturnCode_t ret = eWiFiNotSupported;
switch( xDeviceMode )
{
case eWiFiModeStation:
WDRV_EXT_CmdNetModeBSSSet();
gp_wdrv_cfg->networkType = WDRV_NETWORK_TYPE_INFRASTRUCTURE;
ret = eWiFiSuccess;
break;
case eWiFiModeAP:
WDRV_EXT_CmdNetModeAPSet();
gp_wdrv_cfg->networkType = WDRV_NETWORK_TYPE_SOFT_AP;
ret = eWiFiSuccess;
break;
case eWiFiModeP2P:
/* WDRV_ASSERT drops execution into a while(1) loop. It is better to exit this
* function. */
/* WDRV_ASSERT( pdFALSE, "P2P mode will be supported in a future drop\n" ); */
configPRINTF( ( "P2P mode will be supported in a future drop\r\n" ) );
ret = eWiFiNotSupported;
break;
default:
/* WDRV_ASSERT drops execution into a while(1) loop. It is better to exit this
* function. */
/* WDRV_ASSERT( pdFALSE, "Undefined network type" ); */
configPRINTF( ( "Undefined network type\r\n" ) );
ret = eWiFiNotSupported;
break;
}
return ret;
}
/**
* @brief Gets Wi-Fi mode.
*
* @param[in] pxDeviceMode - return mode Station / Access Point /P2P
*
* @return eWiFiSuccess if everything succeeds, failure code otherwise..
*/
WIFIReturnCode_t WIFI_GetMode( WIFIDeviceMode_t * pxDeviceMode )
{
configASSERT( pxDeviceMode != NULL );
*pxDeviceMode = WDRV_EXT_CmdNetModeGet();
return eWiFiSuccess;
}
TaskHandle_t waiting_task;
/*-----------------------------------------------------------*/
static void AWS_MCHP_ConnectEvent( bool connected,
bool isServer,
uint8_t const * const client )
{
if( ( connected ) ) /*hseth && (client[0] == 0)) */
{
xTaskNotify( waiting_task, WDRV_MAC_EVENT_CONNECT_DONE, eSetBits );
}
}
/*-----------------------------------------------------------*/
static void AWS_MCHP_InitDoneCB( void )
{
xTaskNotify( waiting_task, WDRV_MAC_EVENT_INIT_DONE, eSetBits );
}
/**
* @brief Initializes the Wi-Fi module.
*
* This function must be called exactly once before any other
* Wi-Fi functions (including socket functions) can be used.
*
* @return eWiFiSuccess if everything succeeds, eWiFiFailure otherwise.
*/
WIFIReturnCode_t WIFI_On( void )
{
EventBits_t evBits;
/* Make sure the Wi-Fi is off before turning on. */
WDRV_EXT_Deinitialize();
waiting_task = xTaskGetCurrentTaskHandle();
WDRV_WILC1000_Default_Hook_Initialize( &WILC1000_hooks );
WILC1000_hooks.frame_received = xNetworkFrameReceived;
WILC1000_hooks.wdrvIndications.connectEvent = AWS_MCHP_ConnectEvent;
WILC1000_hooks.wdrvIndications.initCompleted = AWS_MCHP_InitDoneCB;
WILC1000_hooks.isEthMode = true;
WILC1000_hooks.RFReady = NULL;
WILC1000_hooks.ScanDone = NULL;
WILC1000_hooks.get_rx_buf = NULL;
WILC1000_hooks.WPSDone = NULL;
/*Initialize WiFi Driver Radio and Firmware .*/
WDRV_EXT_Initialize( &WILC1000_hooks, true );
/* Wait for Wi-Fi initialization to complete. */
xTaskNotifyWait( WDRV_MAC_EVENT_INIT_DONE, WDRV_MAC_EVENT_INIT_DONE, &evBits, WIFI_MAC_INIT_TIMEOUT );
if( ( evBits & WDRV_MAC_EVENT_INIT_DONE ) == 0 )
{
/* Timed out. */
return eWiFiTimeout;
}
/*Check if init was successful. */
if( isWdrvExtReady() != pdTRUE )
{
/* Init failed. */
return eWiFiFailure;
}
return eWiFiSuccess;
}
/**
* @brief Turns off the Wi-Fi module.
*
* This function turns off Wi-Fi module.
*
* @return eWiFiSuccess if everything succeeds, failure code otherwise.
*/
WIFIReturnCode_t WIFI_Off( void )
{
WDRV_EXT_Deinitialize();
return eWiFiSuccess;
}
/**
* @brief Connects to Access Point.
*
* @param[in] pxNetworkParams Configuration to join AP.
*
* @return eWiFiSuccess if connection is successful, failure code otherwise.
*/
WIFIReturnCode_t WIFI_ConnectAP( const WIFINetworkParams_t * const pxNetworkParams )
{
EventBits_t evBits;
uint8_t ucMACAddress[ ipMAC_ADDRESS_LENGTH_BYTES ];
configASSERT( pxNetworkParams != NULL );
configASSERT( pxNetworkParams->pcSSID != NULL );
if( pxNetworkParams->xSecurity != eWiFiSecurityOpen )
{
configASSERT( pxNetworkParams->pcPassword != NULL );
}
/* Set mode to station mode. */
WIFI_SetMode( eWiFiModeStation );
waiting_task = xTaskGetCurrentTaskHandle();
/* Set the AP channel. */
/* Setting the AP channel is optional to connect to an AP. The router automatically
* sets a channel for the connection. */
/* WDRV_EXT_CmdChannelSet( pxNetworkParams->cChannel ); */
/*Set the AP SSID. */
if( pxNetworkParams->ucSSIDLength > wificonfigMAX_SSID_LEN )
{
return eWiFiFailure;
}
WDRV_EXT_CmdSSIDSet( ( uint8_t * ) pxNetworkParams->pcSSID, pxNetworkParams->ucSSIDLength );
/*Set the AP security. */
if( pxNetworkParams->ucPasswordLength > wificonfigMAX_PASSPHRASE_LEN )
{
return eWiFiFailure;
}
WIFI_SecuritySet( pxNetworkParams->xSecurity, pxNetworkParams->pcPassword, pxNetworkParams->ucPasswordLength );
/*Set driver state. */
WDRV_IsDisconnectRequestedSet( pdFALSE );
WDRV_ConnectionStateSet( WDRV_CONNECTION_STATE_IN_PROGRESS );
WDRV_DBG_INFORM_MESSAGE( ( "Start Wi-Fi Connection...\r\n" ) );
/* Read MAC address from the chip and set it in FreeRTOS network stack. */
WDRV_EXT_CmdMacAddressGet( ucMACAddress );
FreeRTOS_UpdateMACAddress( ucMACAddress );
if( WDRV_EXT_CmdConnect() != WDRV_SUCCESS )
{
/* Connection failed miserably. */
return eWiFiFailure;
}
/* Wait for Wi-Fi connection to complete. */
xTaskNotifyWait( WDRV_MAC_EVENT_CONNECT_DONE, WDRV_MAC_EVENT_CONNECT_DONE, &evBits, WIFI_MAC_CONNECT_TIMEOUT );
if( ( evBits & WDRV_MAC_EVENT_CONNECT_DONE ) == 0 )
{
/* Timed out. */
WDRV_DBG_INFORM_MESSAGE( ( "Connection timeout\r\n" ) );
return eWiFiTimeout;
}
if( isLinkUp() )
{
return eWiFiSuccess;
}
else
{
return eWiFiFailure;
}
}
/**
* @brief Disconnects from Access Point.
*
* @param[in] None.
*
* @return eWiFiSuccess if disconnected, failure code otherwise.
*/
WIFIReturnCode_t WIFI_Disconnect( void )
{
uint32_t ulSecondsCount = 0;
if( WDRV_EXT_CmdDisconnect() != WDRV_SUCCESS )
{
/* Failed miserably. */
return eWiFiFailure;
}
/* Check if the connection is still up, then give the driver time
* to disconnect. */
while( isLinkUp() )
{
/* Timeout disconnection after 10 seconds. */
if( ulSecondsCount == WIFI_MAC_DISCONNECT_TIMEOUT_SECONDS )
{
return eWiFiTimeout;
}
vTaskDelay( pdMS_TO_TICKS( 1000 ) );
ulSecondsCount++;
}
return eWiFiSuccess;
}
/**
* @brief Resets the WiFi Module.
*
* @param[in] None.
*
* @return eWiFiSuccess if disconnected, failure code otherwise.
*/
WIFIReturnCode_t WIFI_Reset( void )
{
WIFIReturnCode_t ret = eWiFiSuccess;
ret = WIFI_Off();
if( ret != eWiFiSuccess )
{
WDRV_DBG_ERROR_MESSAGE( ( "Failed to turn off WiFi module\n" ) );
return ret;
}
ret = WIFI_On();
if( ret != eWiFiSuccess )
{
WDRV_DBG_ERROR_MESSAGE( ( "Failed to turn on WiFi module\n" ) );
return ret;
}
return ret;
}
/**
* @brief Retrieves host IP address from URL using DNS
*
* @param[in] pcHost - Host URL.
* @param[in] pucIPAddr - IP Address buffer.
*
* @return eWiFiSuccess if everything succeeds, failure code otherwise.
*
*/
WIFIReturnCode_t WIFI_GetHostIP( char * pcHost,
uint8_t * pucIPAddr )
{
WIFIReturnCode_t xStatus = eWiFiFailure;
configASSERT( pcHost != NULL );
configASSERT( pucIPAddr != NULL );
*( ( uint32_t * ) pucIPAddr ) = SOCKETS_GetHostByName( pcHost );
if( *( ( uint32_t * ) pucIPAddr ) != 0 )
{
xStatus = eWiFiSuccess;
}
return xStatus;
}
/**
* @brief Retrieves the Wi-Fi interface's IP address.
*
* @param[in] pucIPAddr - IP Address buffer.
* unsigned long ulIPAddress = 0;
* WIFI_GetIP(&ulIPAddress);
*
* @return eWiFiSuccess if disconnected, eWiFiFailure otherwise.
*/
WIFIReturnCode_t WIFI_GetIP( uint8_t * pucIPAddr )
{
configASSERT( pucIPAddr != NULL );
*( ( uint32_t * ) pucIPAddr ) = FreeRTOS_GetIPAddress();
return eWiFiSuccess;
}
/**
* @brief Configure SoftAP
*
* @param[in] pxNetworkParams - Network params to configure and start soft AP.
*
* @return eWiFiSuccess if everything succeeds, failure code otherwise.
*/
WIFIReturnCode_t WIFI_ConfigureAP( const WIFINetworkParams_t * const pxNetworkParams )
{
configASSERT( pxNetworkParams != NULL );
configASSERT( pxNetworkParams->pcSSID != NULL );
if( pxNetworkParams->xSecurity != eWiFiSecurityOpen )
{
configASSERT( pxNetworkParams->pcPassword != NULL );
}
/* Set mode to station mode. */
WIFI_SetMode( eWiFiModeAP );
/* Set the AP channel. */
WDRV_EXT_CmdChannelSet( pxNetworkParams->cChannel );
/*Set the AP SSID. */
if( pxNetworkParams->ucSSIDLength > wificonfigMAX_SSID_LEN )
{
return eWiFiFailure;
}
WDRV_EXT_CmdSSIDSet( ( uint8_t * ) pxNetworkParams->pcSSID, pxNetworkParams->ucSSIDLength );
/*Set the AP security. */
if( pxNetworkParams->ucPasswordLength > wificonfigMAX_PASSPHRASE_LEN )
{
return eWiFiFailure;
}
WIFI_SecuritySet( pxNetworkParams->xSecurity, pxNetworkParams->pcPassword, pxNetworkParams->ucPasswordLength );
/*Set driver state. */
WDRV_IsDisconnectRequestedSet( pdFALSE );
WDRV_ConnectionStateSet( WDRV_CONNECTION_STATE_IN_PROGRESS );
return eWiFiSuccess;
}
/**
* @brief Stop SoftAP operation.
*
* @param[in] None
*
* @return eWiFiSuccess if everything succeeds, failure code otherwise.
*/
WIFIReturnCode_t WIFI_StartAP( void )
{
EventBits_t evBits;
if( WDRV_EXT_CmdConnect() != WDRV_SUCCESS )
{
/* Connection failed miserably. */
return eWiFiFailure;
}
/* Wait for Wi-Fi connection to complete. */
xTaskNotifyWait( WDRV_MAC_EVENT_CONNECT_DONE, WDRV_MAC_EVENT_CONNECT_DONE, &evBits, WIFI_MAC_CONNECT_TIMEOUT );
if( ( evBits & WDRV_MAC_EVENT_CONNECT_DONE ) == 0 )
{
/* Timed out. */
return eWiFiTimeout;
}
if( isLinkUp() )
{
return eWiFiSuccess;
}
else
{
return eWiFiFailure;
}
}
/**
* @brief Stop SoftAP operation.
*
* @param[in] None
*
* @return eWiFiSuccess if disconnected, failure code otherwise.
*/
WIFIReturnCode_t WIFI_StopAP( void )
{
return WIFI_Disconnect();
}
/**
* @brief Set power management mode
*
* @param[in] usPMModeType - Low power mode type.
*
* @param[in] pvOptionValue - A buffer containing the value of the option to set
* depends on the mode type
* ex - beacon interval in sec
*
* @return eWiFiSuccess if everything succeeds, failure code otherwise.
*/
WIFIReturnCode_t WIFI_SetPMMode( WIFIPMMode_t xPMModeType,
const void * pvOptionValue )
{
return eWiFiNotSupported;
}
/**
* @brief Get power management mode
*
* @param[out] xPMModeType - pointer to get current power mode set.
*
* @param[out] pvOptionValue - optional value
*
* @return eWiFiSuccess if everything succeeds, failure code otherwise.
*/
WIFIReturnCode_t WIFI_GetPMMode( WIFIPMMode_t * pxPMModeType,
void * pvOptionValue )
{
return eWiFiNotSupported;
}
/**
* @brief Retrieves the Wi-Fi interface's MAC address.
*
* @param[out] MAC Address buffer.
*
* @return eWiFiSuccess if disconnected, eWiFiFailure otherwise.
*/
WIFIReturnCode_t WIFI_GetMAC( uint8_t * pucMac )
{
WIFIReturnCode_t xReturnStatus = eWiFiFailure;
configASSERT( pucMac != NULL );
if( WDRV_EXT_CmdMacAddressGet( pucMac ) == WDRV_SUCCESS )
{
xReturnStatus = eWiFiSuccess;
}
return xReturnStatus;
}
/**
* @brief Perform WiF Scan
*
* @param[in] pxBuffer - Buffer for scan results.
* @param[in] uxNumNetworks - Number of networks in scan result.
*
* @return eWiFiSuccess if disconnected, eWiFiFailure otherwise.
*/
WIFIReturnCode_t WIFI_Scan( WIFIScanResult_t * pxBuffer,
uint8_t ucNumNetworks )
{
uint32_t ret;
uint8_t idx = 0;
uint16_t num_scan_results = 0;
WDRV_SCAN_RESULT scanResult;
/*Check input parameters*/
if( ( pxBuffer == NULL ) || ( ucNumNetworks == 0 ) )
{
WDRV_DBG_ERROR_MESSAGE( ( "\r\nInvalid scan parameters\r\n" ) );
return eWiFiFailure;
}
/*Check if scan already in progress*/
if( WDRV_EXT_ScanIsInProgress() )
{
WDRV_DBG_ERROR_MESSAGE( ( "\r\nScan already in progress\r\n" ) );
return eWiFiFailure;
}
/*Set scan in progress flag*/
WDRV_EXT_ScanInProgressSet();
/*Trigger scan start command and wait for scan done*/
ret = WDRV_EXT_CmdScanStart();
if( ret != WDRV_SUCCESS )
{
WDRV_DBG_ERROR_MESSAGE( ( "\r\nFailed to start scan\r\n" ) );
return eWiFiFailure;
}
/*Get number of scan results*/
WDRV_EXT_CmdScanGet( &num_scan_results );
if( num_scan_results == 0 )
{
WDRV_DBG_ERROR_MESSAGE( ( "\r\nNo scan result!\r\n" ) );
return eWiFiFailure;
}
do
{
/*Get scan result*/
WDRV_EXT_ScanResultGet( idx, &scanResult );
/*Fill in scan result buffer*/
m2m_memcpy( ( uint8_t * ) pxBuffer[ idx ].cSSID, scanResult.ssid, scanResult.ssidLen );
if( scanResult.ssidLen < wificonfigMAX_SSID_LEN )
{
pxBuffer[ idx ].cSSID[ scanResult.ssidLen ] = '\0';
}
m2m_memcpy( pxBuffer[ idx ].ucBSSID, scanResult.bssid, wificonfigMAX_BSSID_LEN );
pxBuffer[ idx ].xSecurity = scanResult.apConfig;
pxBuffer[ idx ].cRSSI = scanResult.rssi;
pxBuffer[ idx ].cChannel = ( int8_t ) scanResult.channel;
pxBuffer[ idx ].ucHidden = 0;
} while( ++idx < ucNumNetworks );
return eWiFiSuccess;
}
/**
* @brief Check if the Wi-Fi is connected.
*
* @return pdTRUE if the link is up, pdFalse otherwise.
*/
BaseType_t WIFI_IsConnected( void )
{
BaseType_t xIsConnected = pdFALSE;
if( isLinkUp() )
{
xIsConnected = pdTRUE;
}
return xIsConnected;
}
/*-----------------------------------------------------------*/
void vApplicationPingReplyHook( ePingReplyStatus_t eStatus,
uint16_t usIdentifier )
{
/*handle ping reply. */
switch( eStatus )
{
case eSuccess:
/* A valid ping reply has been received. */
xQueueSend( xPingReplyQueue, &usIdentifier, pdMS_TO_TICKS( 10 ) );
break;
case eInvalidChecksum:
case eInvalidData:
/* A reply was received but it was not valid. */
break;
}
}
/**
* @brief Ping an IP address in the network.
*
* @param[in] IP Address to ping.
* @param[in] Number of times to ping
* @param[in] Interval in mili seconds for ping operation
*
* @return eWiFiSuccess if disconnected, failure code otherwise.
*/
WIFIReturnCode_t WIFI_Ping( uint8_t * pucIPAddr,
uint16_t usCount,
uint32_t ulIntervalMS )
{
uint32_t ulIPAddress = 0;
uint16_t usPingSeqNum = pdFAIL;
uint16_t usPingReplySeqNum = pdFAIL;
uint32_t ulIndex = 0;
if( ( NULL == pucIPAddr ) || ( 0 == usCount ) )
{
return eWiFiFailure;
}
waiting_task = xTaskGetCurrentTaskHandle();
/*If link is not up, return failure */
if( isLinkUp() )
{
ulIPAddress = FreeRTOS_inet_addr( ( const char * ) pucIPAddr );
for( ulIndex = 0; ulIndex < usCount; ulIndex++ )
{
usPingSeqNum = FreeRTOS_SendPingRequest( ulIPAddress, WIFI_PING_PKT_SIZE, pdMS_TO_TICKS( ulIntervalMS ) );
WDRV_DBG_ERROR_MESSAGE( ( "\r\nSending Ping request %d\r\n", usPingSeqNum ) );
if( usPingSeqNum == pdFAIL )
{
/* ping failed */
WDRV_DBG_ERROR_MESSAGE( ( "\r\nSending Ping request failed\r\n" ) );
return eWiFiFailure;
}
else
{
/* The ping was sent. Wait for a reply. */
if( xQueueReceive( xPingReplyQueue,
&usPingReplySeqNum,
pdMS_TO_TICKS( ulIntervalMS ) ) == pdPASS )
{
/* A ping reply was received. Was it a reply to the ping just sent? */
if( usPingSeqNum == usPingReplySeqNum )
{
/* This was a reply to the request just sent. */
WDRV_DBG_INFORM_MESSAGE( ( "Ping Reply [%d] out of [%d] received\r\n", ulIndex, usCount ) );
}
}
}
}
/* all ping were sent*/
return eWiFiSuccess;
}
WDRV_DBG_ERROR_MESSAGE( ( "\r\nLink is not yet ready; cannot send ping request\r\n" ) );
return eWiFiFailure;
}
/*Get network parameters flash section bitmap*/
uint64_t network_param_get_bitmap()
{
return g_network_param_bitmap;
}
/*Set network parameters flash section bitmap*/
void network_param_set_bitmap( uint64_t val )
{
g_network_param_bitmap = val;
}
/*Get network parameters flash section nearest free entry*/
uint8_t network_param_get_free_index()
{
uint8_t idx;
uint64_t bitmap = g_network_param_bitmap;
for( idx = 0; idx < WIFI_MAX_NETWORK_PROFILES; idx++ )
{
if( ( bitmap & ( uint64_t ) 0x1 ) == 0 )
{
break;
}
bitmap = bitmap >> 1;
}
return idx;
}
/*Set network parameters flash section entry as free*/
void network_param_set_free_index( uint8_t u8Idx )
{
if( u8Idx < WIFI_MAX_NETWORK_PROFILES )
{
g_network_param_bitmap &= ~( ( uint64_t ) 0x1 << u8Idx );
}
}
/*Set network parameters flash section entry as busy*/
void network_param_set_busy_index( uint8_t u8Idx )
{
if( u8Idx < WIFI_MAX_NETWORK_PROFILES )
{
g_network_param_bitmap |= ( uint64_t ) 0x1 << u8Idx;
}
}
/*Get network parameters flash section entry as busy*/
uint8_t network_param_get_busy_index( uint8_t u8Idx )
{
if( ( g_network_param_bitmap & ( ( uint64_t ) 0x1 << u8Idx ) ) == 0x1 )
{
return 1;
}
else
{
return 0;
}
}
/**
* @brief Wi-Fi Add Network profile.
*
* Adds Wi-Fi network to network list in non-volatile memory
*
* @param[in] pxNetworkProfile - network profile parameters
* @param[out] pusIndex - network profile index
*
* @return Profile stored index on success, or negative error code on failure.
*/
WIFIReturnCode_t WIFI_NetworkAdd( const WIFINetworkProfile_t * const pxNetworkProfile,
uint16_t * pusIndex )
{
#ifdef ENABLE_NETWORK_STORAGE
uint8_t * pSrcBuf = pxNetworkProfile;
uint8_t * pDestBuf;
uint16_t u8Idx = 0;
uint16_t u8NumOfWrites = 0;
uint8_t u8NetworkIdx = 0;
/*Check input parameters*/
if( ( pxNetworkProfile == NULL ) || ( pusIndex == NULL ) )
{
WDRV_DBG_ERROR_MESSAGE( ( "\r\nSave network to flash failed\r\n" ) );
return eWiFiFailure;
}
/*Get network index*/
u8NetworkIdx = network_param_get_free_index();
if( u8NetworkIdx == WIFI_MAX_NETWORK_PROFILES )
{
WDRV_DBG_ERROR_MESSAGE( ( "\r\nNo more space for new network %d\r\n", WIFI_MAX_NETWORK_PROFILES ) );
return eWiFiFailure;
}
/*Get copy from network parameters flash section*/
memcpy( g_network_param_copy, p_network_param, WIFI_NETWORK_PARAM_SECTION_SIZE );
/*Erase network parameters flash section*/
taskENTER_CRITICAL();
DRV_FLASH_ErasePage( WDRV_FLASH_HANDLE, ( uint32_t ) p_network_param );
while( !DRV_FLASH_IsBusy( WDRV_FLASH_HANDLE ) )
{
}
taskEXIT_CRITICAL();
/*Prepare write buffer*/
pDestBuf = g_network_param_copy + ( u8NetworkIdx * WIFI_NETWORK_PARAM_ENTRY_SIZE );
memcpy( pDestBuf, pSrcBuf, WIFI_NETWORK_PARAM_ENTRY_SIZE );
/*Write network parameters entire section (page)*/
pDestBuf = ( uint8_t * ) p_network_param;
pSrcBuf = g_network_param_copy;
u8NumOfWrites = WIFI_NETWORK_PARAM_SECTION_SIZE / 16;
WDRV_DBG_INFORM_MESSAGE( ( "\r\nWriting network parameters - index %d\r\n", u8NetworkIdx ) );
for( u8Idx = 0; u8Idx < u8NumOfWrites; u8Idx++ )
{
taskENTER_CRITICAL();
DRV_FLASH_WriteQuadWord( WDRV_FLASH_HANDLE, ( uint32_t ) pDestBuf, ( uint32_t * ) pSrcBuf );
while( DRV_FLASH_IsBusy( WDRV_FLASH_HANDLE ) )
{
}
taskEXIT_CRITICAL();
pDestBuf += 16;
pSrcBuf += 16;
}
/*verify write operation*/
pDestBuf = ( uint8_t * ) p_network_param;
pSrcBuf = g_network_param_copy;
if( memcmp( pDestBuf, pSrcBuf, WIFI_NETWORK_PARAM_SECTION_SIZE ) == 0 )
{
WDRV_DBG_INFORM_MESSAGE( ( "\r\nWrite network parameters done\r\n" ) );
/*Network write success; update network parameters bitmap*/
network_param_set_busy_index( u8NetworkIdx );
*pusIndex = ( int16_t ) u8NetworkIdx;
return eWiFiSuccess;
}
WDRV_DBG_ERROR_MESSAGE( ( "\r\nWrite network parameters failed\r\n" ) );
return eWiFiFailure;
#else /* ifdef ENABLE_NETWORK_STORAGE */
return eWiFiNotSupported;
#endif /* ifdef ENABLE_NETWORK_STORAGE */
}
/**
* @brief Wi-Fi Get Network profile .
*
* Gets Wi-Fi network parameters at given index from network list in Non volatile memory
*
* @param[out] pxNetworkProfile - pointer to return network profile parameters
* @param[in] usIndex - Index of the network profile,
* must be between 0 to wificonfigMAX_NETWORK_PROFILES
*
* @return eWiFiSuccess if everything succeeds, failure code otherwise.
*/
WIFIReturnCode_t WIFI_NetworkGet( WIFINetworkProfile_t * pxNetworkProfile,
uint16_t usIndex )
{
#ifdef ENABLE_NETWORK_STORAGE
/*Check input parameters*/
if( ( usIndex >= WIFI_MAX_NETWORK_PROFILES ) ||
( pxNetworkProfile == NULL ) ||
( network_param_get_busy_index( usIndex ) == NULL ) )
{
WDRV_DBG_ERROR_MESSAGE( ( "\r\nGet network from flash failed\r\n" ) );
return eWiFiFailure;
}
/*Check if address is in range*/
uint8_t * pSrcBuf = ( uint8_t * ) p_network_param + ( usIndex * WIFI_NETWORK_PARAM_ENTRY_SIZE );
if( pSrcBuf >
( p_network_param + WIFI_NETWORK_PARAM_SECTION_SIZE - WIFI_NETWORK_PARAM_ENTRY_SIZE ) )
{
WDRV_DBG_ERROR_MESSAGE( ( "\r\nAddress is out of network parameters section range\r\n" ) );
return eWiFiFailure;
}
/*Copy network parameters buffer*/
memcpy( ( uint8_t * ) pxNetworkProfile, pSrcBuf, WIFI_NETWORK_PARAM_ENTRY_SIZE );
return eWiFiSuccess;
#else /* ifdef ENABLE_NETWORK_STORAGE */
return eWiFiNotSupported;
#endif /* ifdef ENABLE_NETWORK_STORAGE */
}
/**
* @brief Wi-Fi Delete Network profile .
*
* Deletes Wi-Fi network from network list at given index in Non volatile memory
*
* @param[in] usIndex - Index of the network profile, must be between 0 to wificonfigMAX_NETWORK_PROFILES
* wificonfigMAX_NETWORK_PROFILES as index will delete all network profiles
*
* @return eWiFiSuccess if everything succeeds, failure code otherwise.
*/
WIFIReturnCode_t WIFI_NetworkDelete( uint16_t usIndex )
{
#ifdef ENABLE_NETWORK_STORAGE
/*Check input parameters*/
if( usIndex > WIFI_MAX_NETWORK_PROFILES )
{
WDRV_DBG_ERROR_MESSAGE( ( "\r\nOut of range index\r\n" ) );
return eWiFiFailure;
}
/*Update network parameters bitmap*/
if( usIndex == WIFI_MAX_NETWORK_PROFILES )
{
network_param_set_bitmap( 0 );
}
else
{
network_param_set_free_index( usIndex );
}
return eWiFiSuccess;
#else /* ifdef ENABLE_NETWORK_STORAGE */
return eWiFiNotSupported;
#endif /* ifdef ENABLE_NETWORK_STORAGE */
}
#endif /*PIC32_USE_ETHERNET*/
|
cimeq/amazon-freertos
|
lib/cbor/test/test_aws_cbor_int.c
|
<filename>lib/cbor/test/test_aws_cbor_int.c
/*
* Amazon FreeRTOS CBOR Library V1.0.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "assert_override.h"
#include "aws_cbor_internals.h"
#include "unity_fixture.h"
#include <string.h>
static cbor_handle_t cbor_data;
extern cbor_int_t TEST_assert_fails;
TEST_GROUP( aws_cbor_int );
TEST_SETUP( aws_cbor_int )
{
TEST_assert_fails = 0;
cbor_data = CBOR_New( 0 );
cbor_byte_t init[ 32 ] = { 0 };
CBOR_MemCopy( cbor_data, init, sizeof( init ) );
CBOR_SetCursor( cbor_data, 0 );
}
TEST_TEAR_DOWN( aws_cbor_int )
{
TEST_ASSERT_EQUAL( eCBOR_ERR_NO_ERROR, cbor_data->err );
TEST_ASSERT_EQUAL( 0, TEST_assert_fails );
CBOR_Delete( &cbor_data );
}
TEST_GROUP_RUNNER( aws_cbor_int )
{
RUN_TEST_CASE( aws_cbor_int, IntSize_SmallInt );
RUN_TEST_CASE( aws_cbor_int, IntSize_Int8 );
RUN_TEST_CASE( aws_cbor_int, IntSize_Int16 );
RUN_TEST_CASE( aws_cbor_int, IntSize_Int32 );
RUN_TEST_CASE( aws_cbor_int, WriteSmallInt );
RUN_TEST_CASE( aws_cbor_int, WriteInt8 );
RUN_TEST_CASE( aws_cbor_int, WriteInt16 );
RUN_TEST_CASE( aws_cbor_int, WriteInt32 );
RUN_TEST_CASE( aws_cbor_int, ReadSmallPositiveInt );
RUN_TEST_CASE( aws_cbor_int, ReadPositiveInt8 );
RUN_TEST_CASE( aws_cbor_int, ReadPositiveInt16 );
RUN_TEST_CASE( aws_cbor_int, ReadPositiveInt32 );
RUN_TEST_CASE( aws_cbor_int, WriteInt );
RUN_TEST_CASE( aws_cbor_int, ReadInt );
RUN_TEST_CASE( aws_cbor_int, ReadInt_sets_error_if_wrong_type );
RUN_TEST_CASE( aws_cbor_int, null_checks );
}
TEST( aws_cbor_int, IntSize_SmallInt )
{
int num = 12;
CBOR_WriteInt( cbor_data, &num );
CBOR_SetCursor( cbor_data, 0 );
int result = CBOR_IntSize( cbor_data->cursor );
TEST_ASSERT_EQUAL( 1, result );
}
TEST( aws_cbor_int, IntSize_Int8 )
{
int num = 42;
CBOR_WriteInt( cbor_data, &num );
CBOR_SetCursor( cbor_data, 0 );
int result = CBOR_IntSize( cbor_data->cursor );
TEST_ASSERT_EQUAL( 2, result );
}
TEST( aws_cbor_int, IntSize_Int16 )
{
int num = 1234;
CBOR_WriteInt( cbor_data, &num );
CBOR_SetCursor( cbor_data, 0 );
int result = CBOR_IntSize( cbor_data->cursor );
TEST_ASSERT_EQUAL( 3, result );
}
TEST( aws_cbor_int, IntSize_Int32 )
{
int num = INT32_MAX;
CBOR_WriteInt( cbor_data, &num );
CBOR_SetCursor( cbor_data, 0 );
int result = CBOR_IntSize( cbor_data->cursor );
TEST_ASSERT_EQUAL( 5, result );
}
TEST( aws_cbor_int, WriteSmallInt )
{
cbor_int_t expected = 23;
CBOR_WriteSmallInt( cbor_data, expected );
TEST_ASSERT_EQUAL_INT8( expected, *cbor_data->buffer_start );
}
TEST( aws_cbor_int, WriteInt8 )
{
CBOR_WriteInt8( cbor_data, 0x21 );
cbor_byte_t expected[] = { CBOR_INT8_FOLLOWS, 0x21 };
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected, cbor_data->buffer_start, sizeof( expected ) );
}
TEST( aws_cbor_int, WriteInt16 )
{
CBOR_WriteInt16( cbor_data, 0x1221 );
cbor_byte_t expected[] = { CBOR_INT16_FOLLOWS, 0x12, 0x21 };
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected, cbor_data->buffer_start, sizeof( expected ) );
}
TEST( aws_cbor_int, WriteInt32 )
{
CBOR_WriteInt32( cbor_data, 0xBA5EBA11 );
cbor_byte_t expected[] = { CBOR_INT32_FOLLOWS, 0xBA, 0x5E, 0xBA, 0x11 };
TEST_ASSERT_EQUAL_HEX8_ARRAY(
expected, cbor_data->buffer_start, sizeof( expected ) );
}
TEST( aws_cbor_int, ReadSmallPositiveInt )
{
cbor_byte_t init[] =
{
19,
};
CBOR_MemCopy( cbor_data, init, sizeof( init ) );
CBOR_SetCursor( cbor_data, 0 );
cbor_int_t result = CBOR_ReadSmallPositiveInt( cbor_data );
cbor_int_t expected = 19;
TEST_ASSERT_EQUAL( expected, result );
}
TEST( aws_cbor_int, ReadPositiveInt8 )
{
cbor_byte_t init[] =
{
CBOR_INT8_FOLLOWS,
42,
};
CBOR_MemCopy( cbor_data, init, sizeof( init ) );
CBOR_SetCursor( cbor_data, 0 );
cbor_int_t result = CBOR_ReadPositiveInt8( cbor_data );
cbor_int_t expected = 42;
TEST_ASSERT_EQUAL( expected, result );
}
TEST( aws_cbor_int, ReadPositiveInt16 )
{
cbor_byte_t init[] =
{
CBOR_INT16_FOLLOWS,
0x01,
0x02,
};
CBOR_MemCopy( cbor_data, init, sizeof( init ) );
CBOR_SetCursor( cbor_data, 0 );
cbor_int_t result = CBOR_ReadPositiveInt16( cbor_data );
cbor_int_t expected = 258;
TEST_ASSERT_EQUAL( expected, result );
}
TEST( aws_cbor_int, ReadPositiveInt32 )
{
cbor_byte_t init[] =
{
CBOR_INT16_FOLLOWS,
0x01,
0x02,
0x03,
0x04,
};
CBOR_MemCopy( cbor_data, init, sizeof( init ) );
CBOR_SetCursor( cbor_data, 0 );
cbor_int_t result = CBOR_ReadPositiveInt32( cbor_data );
cbor_int_t expected = 16909060;
TEST_ASSERT_EQUAL( expected, result );
}
typedef struct write_test_s
{
char * message;
cbor_int_t input;
cbor_byte_t expected[ 32 ];
} write_test_t;
write_test_t write_tests[] =
{
{
.message = "write small cbor_int_t",
.input = 8,
.expected ={ 8 },
},
{
.message = "write 8 bit cbor_int_t",
.input = 56,
.expected ={ CBOR_INT8_FOLLOWS, 56 },
},
{
.message = "write 16 bit cbor_int_t",
.input = 0x11FE,
.expected ={ CBOR_INT16_FOLLOWS, 0x11, 0xFE },
},
{
.message = "write 32 bit cbor_int_t",
.input = 0x1337C0DE,
.expected ={ CBOR_INT32_FOLLOWS, 0x13, 0x37, 0xC0, 0xDE },
},
{
.message = "write largest small positive cbor_int_t",
.input = 23,
.expected ={ 23 },
},
{
.message = "write smallest 8-bit cbor_int_t",
.input = 24,
.expected ={ CBOR_INT8_FOLLOWS, 24 },
},
{
.message = "write largest 8-bit cbor_int_t",
.input = 255,
.expected ={ CBOR_INT8_FOLLOWS, 255 },
},
{
.message = "write smallest 16-bit cbor_int_t",
.input = 256,
.expected ={ CBOR_INT16_FOLLOWS, 0x01, 0x00 },
},
{
.message = "write largest 16-bit cbor_int_t",
.input = 0xFFFF,
.expected ={ CBOR_INT16_FOLLOWS, 0xFF, 0xFF },
},
{
.message = "write smallest 32-bit cbor_int_t",
.input = 0x010000,
.expected =
{
CBOR_INT32_FOLLOWS,
0x00,
0x01,
0x00,
0x00,
},
},
{
.message = "write largest positive signed 32-bit cbor_int_t",
.input = INT32_MAX,
.expected =
{
CBOR_INT32_FOLLOWS,
0x7F,
0xFF,
0xFF,
0xFF,
},
},
};
cbor_int_t write_test_count = ( sizeof( write_tests ) / sizeof( write_tests[ 0 ] ) );
write_test_t * write_test;
void test_WriteInt( void )
{
CBOR_SetCursor( cbor_data, 0 );
cbor_byte_t init[ 32 ] = { 0 };
CBOR_MemCopy( cbor_data, init, sizeof( init ) );
CBOR_SetCursor( cbor_data, 0 );
CBOR_WriteInt( cbor_data, &write_test->input );
TEST_ASSERT_EQUAL_HEX8_ARRAY_MESSAGE(
write_test->expected, cbor_data->buffer_start, 32, write_test->message );
}
TEST( aws_cbor_int, WriteInt )
{
for( cbor_int_t i = 0; i < write_test_count; i++ )
{
write_test = &write_tests[ i ];
RUN_TEST( test_WriteInt );
}
}
typedef struct read_test_s
{
char * message;
cbor_byte_t buffer[ 32 ];
cbor_int_t expected;
} read_test_t;
read_test_t read_tests[] =
{
{
.message = "read small cbor_int_t",
.buffer ={ 13 },
.expected = 13,
},
{
.message = "read 8-bit cbor_int_t",
.buffer ={ CBOR_INT8_FOLLOWS, 78 },
.expected = 78,
},
{
.message = "read 16-bit cbor_int_t",
.buffer ={ CBOR_INT16_FOLLOWS, 0x12, 0x34 },
.expected = 0x1234,
},
{
.message = "read 32-bit cbor_int_t",
.buffer ={ CBOR_INT32_FOLLOWS, 0x09, 0x87, 0x65, 0x43 },
.expected = 0x09876543,
},
{
.message = "read largest small positive cbor_int_t",
.expected = 23,
.buffer ={ 23 },
},
{
.message = "read smallest 8-bit cbor_int_t",
.expected = 24,
.buffer ={ CBOR_INT8_FOLLOWS, 24 },
},
{
.message = "read largest 8-bit cbor_int_t",
.expected = 255,
.buffer ={ CBOR_INT8_FOLLOWS, 255 },
},
{
.message = "read smallest 16-bit cbor_int_t",
.expected = 256,
.buffer ={ CBOR_INT16_FOLLOWS, 0x01, 0x00 },
},
{
.message = "read largest 16-bit cbor_int_t",
.expected = 0xFFFF,
.buffer ={ CBOR_INT16_FOLLOWS, 0xFF, 0xFF },
},
{
.message = "read smallest 32-bit cbor_int_t",
.expected = 0x010000,
.buffer =
{
CBOR_INT32_FOLLOWS,
0x00,
0x01,
0x00,
0x00,
},
},
{
.message = "read largest positive signed 32-bit cbor_int_t",
.expected = INT32_MAX,
.buffer =
{
CBOR_INT32_FOLLOWS,
0x7F,
0xFF,
0xFF,
0xFF,
},
},
};
cbor_int_t read_test_count = ( sizeof( read_tests ) / sizeof( read_tests[ 0 ] ) );
read_test_t * read_test;
void test_ReadInt( void )
{
CBOR_SetCursor( cbor_data, 0 );
CBOR_MemCopy( cbor_data, read_test->buffer, sizeof( read_test->buffer ) );
CBOR_SetCursor( cbor_data, 0 );
cbor_int_t result = CBOR_ReadInt( cbor_data );
TEST_ASSERT_EQUAL_MESSAGE( read_test->expected, result, read_test->message );
}
TEST( aws_cbor_int, ReadInt )
{
for( cbor_int_t i = 0; i < read_test_count; i++ )
{
read_test = &read_tests[ i ];
RUN_TEST( test_ReadInt );
}
}
TEST( aws_cbor_int, ReadInt_sets_error_if_wrong_type )
{
CBOR_AssignAndIncrementCursor( cbor_data, 0xFF );
CBOR_SetCursor( cbor_data, 0 );
( void ) CBOR_ReadInt( cbor_data );
TEST_ASSERT_EQUAL( eCBOR_ERR_READ_TYPE_MISMATCH, cbor_data->err );
cbor_data->err = eCBOR_ERR_NO_ERROR;
}
TEST( aws_cbor_int, null_checks )
{
uint8_t foo[] = { CBOR_INT8_FOLLOWS, 42 };
TEST_EXPECT_ASSERT( CBOR_IntSize( NULL ) );
TEST_EXPECT_ASSERT( CBOR_WriteInt( NULL, foo ) );
TEST_EXPECT_ASSERT( CBOR_WriteInt( cbor_data, NULL ) );
TEST_EXPECT_ASSERT( CBOR_WriteInt32( NULL, 0 ) );
TEST_EXPECT_ASSERT( CBOR_WriteInt16( NULL, 0 ) );
TEST_EXPECT_ASSERT( CBOR_WriteInt8( NULL, 0 ) );
TEST_EXPECT_ASSERT( CBOR_WriteSmallInt( NULL, 0 ) );
TEST_EXPECT_ASSERT( CBOR_ReadInt( NULL ) );
TEST_EXPECT_ASSERT( CBOR_ReadPositiveInt32( NULL ) );
TEST_EXPECT_ASSERT( CBOR_ReadPositiveInt16( NULL ) );
TEST_EXPECT_ASSERT( CBOR_ReadPositiveInt8( NULL ) );
TEST_EXPECT_ASSERT( CBOR_ReadSmallPositiveInt( NULL ) );
}
|
cimeq/amazon-freertos
|
lib/cbor/test/test_aws_cbor_print.c
|
<gh_stars>0
/*
* Amazon FreeRTOS CBOR Library V1.0.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "aws_cbor_internals.h"
#include "unity_fixture.h"
cbor_handle_t cbor_data;
TEST_GROUP( aws_cbor_print );
TEST_SETUP( aws_cbor_print )
{
cbor_data = CBOR_New( 0 );
}
TEST_TEAR_DOWN( aws_cbor_print )
{
CBOR_Delete( &cbor_data );
}
TEST_GROUP_RUNNER( aws_cbor_print )
{
RUN_TEST_CASE( aws_cbor_print, AsString_prints_empty_map );
RUN_TEST_CASE( aws_cbor_print, AsString_prints_key_followed_by_int_value );
RUN_TEST_CASE( aws_cbor_print, AsString_prints_key_followed_by_string_value );
RUN_TEST_CASE( aws_cbor_print, AsString_prints_key_followed_by_map_value );
RUN_TEST_CASE(
aws_cbor_print, AsString_prints_commas_between_key_value_pairs );
}
TEST( aws_cbor_print, AsString_prints_empty_map )
{
char * expected = "{}";
char * result = CBOR_AsString( cbor_data );
TEST_ASSERT_EQUAL_STRING( expected, result );
free( result );
}
TEST( aws_cbor_print, AsString_prints_key_followed_by_int_value )
{
char * expected = "{\"answer\":42}";
CBOR_AppendKeyWithInt( cbor_data, "answer", 42 );
char * result = CBOR_AsString( cbor_data );
TEST_ASSERT_EQUAL_STRING( expected, result );
free( result );
}
TEST( aws_cbor_print, AsString_prints_key_followed_by_string_value )
{
char * expected = "{\"hello\":\"world\"}";
CBOR_AppendKeyWithString( cbor_data, "hello", "world" );
char * result = CBOR_AsString( cbor_data );
TEST_ASSERT_EQUAL_STRING( expected, result );
free( result );
}
TEST( aws_cbor_print, AsString_prints_key_followed_by_map_value )
{
char * expected = "{\"a map\":{\"key\":\"value\"}}";
cbor_handle_t inner_map = CBOR_New( 0 );
CBOR_AppendKeyWithString( inner_map, "key", "value" );
CBOR_AppendKeyWithMap( cbor_data, "a map", inner_map );
CBOR_Delete( &inner_map );
char * result = CBOR_AsString( cbor_data );
TEST_ASSERT_EQUAL_STRING( expected, result );
free( result );
}
TEST( aws_cbor_print, AsString_prints_commas_between_key_value_pairs )
{
char * expected = "{\"a\":1,\"b\":2}";
CBOR_AppendKeyWithInt( cbor_data, "a", 1 );
CBOR_AppendKeyWithInt( cbor_data, "b", 2 );
char * result = CBOR_AsString( cbor_data );
TEST_ASSERT_EQUAL_STRING( expected, result );
free( result );
}
|
cimeq/amazon-freertos
|
demos/common/ota/bootloader/crypto/tinycrypt/aws_boot_crypto.c
|
/*
* Amazon FreeRTOS Demo Bootloader V1.4.1
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
/**
* @file aws_boot_crypto.c
* @brief Boot crypto implementation.
*/
/* Standard includes.*/
#include "string.h"
/* Bootloader includes.*/
#include "aws_boot_types.h"
#include "aws_boot_crypto.h"
#include "aws_boot_codesigner_public_key.h"
/* Crypto includes.*/
#include "tinycrypt/sha256.h"
#include "tinycrypt/ecc.h"
#include "tinycrypt/constants.h"
/* ASN.1 parser include.*/
#include "asn1.h"
#include "asn1utility.h"
/*-----------------------------------------------------------*/
BaseType_t BOOT_CRYPTO_Init( void )
{
/*
* Bootloader crypto module initializations here.
*/
/*
* No initialization for tinycrypt library.
*/
return pdTRUE;
}
/*-----------------------------------------------------------*/
BaseType_t BOOT_CRYPTO_Verify( const uint8_t * pucData,
uint32_t ulSize,
const uint8_t * pucSignature,
uint32_t ulSignatureSize )
{
BaseType_t xResult = pdFALSE;
int32_t lReturn;
uint32_t ulBitStringPos = 0;
uint8_t pucHash[ TC_SHA256_DIGEST_SIZE ];
/* ASN.1 encodes signature.*/
uint8_t pucSignatureEncoded[ BOOT_ECC_SIGNATURE_SIZE_MAX ];
/* Decoded signature containing required elements on the curve.*/
uint8_t pucSignatureDecoded[ ECC_NUM_SIG_COMPONENTS * ECC_NUM_BYTES_PER_SIG_COMPONENT ];
/*
* Hashing context.
*/
struct tc_sha256_state_struct xCtx;
/*
* Initialize the context.
*/
if( TC_CRYPTO_SUCCESS == tc_sha256_init( &xCtx ) )
{
/*
* Update with data and size.
*/
if( TC_CRYPTO_SUCCESS == tc_sha256_update( &xCtx,
pucData,
ulSize ) )
{
/*
* Finalize the hash.
*/
if( TC_CRYPTO_SUCCESS == tc_sha256_final( pucHash, &xCtx ) )
{
xResult = pdTRUE;
}
else
{
xResult = pdFALSE;
}
}
else
{
xResult = pdFALSE;
}
}
else
{
xResult = pdFALSE;
}
/*
* Copy signature in coded form to local buffer.
*/
if( ( xResult == pdTRUE ) && ( ulSignatureSize <= BOOT_ECC_SIGNATURE_SIZE_MAX ) )
{
memcpy( pucSignatureEncoded, pucSignature, ulSignatureSize );
}
else
{
xResult = pdFALSE;
}
/*
* Decode ASN.1 signature.
*/
if( xResult == pdTRUE )
{
xResult = asn1_decodeSignature( pucSignatureDecoded,
pucSignatureEncoded,
pucSignatureEncoded + ulSignatureSize ) ;
}
/*
* Verify crypto signature.
*/
if( xResult == pdTRUE )
{
/* Skip the ASN.1 tags to get public key */
ulBitStringPos = ulCodeSignPublickeyLength - ECC_PUBKEY_BIT_STRING_SIZE ;
lReturn = uECC_verify( pucCodeSignPublicKey + ulBitStringPos,
pucHash,
TC_SHA256_DIGEST_SIZE ,
pucSignatureDecoded,
uECC_secp256r1() );
if( lReturn == 1 )
{
xResult = pdTRUE;
}
else
{
xResult = pdFALSE;
}
}
return xResult;
}
|
cimeq/amazon-freertos
|
lib/cbor/src/aws_cbor_print.c
|
<reponame>cimeq/amazon-freertos<filename>lib/cbor/src/aws_cbor_print.c<gh_stars>0
/*
* Amazon FreeRTOS CBOR Library V1.0.1
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* http://aws.amazon.com/freertos
* http://www.FreeRTOS.org
*/
#include "aws_cbor_internals.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/**
* @brief Appends a key value pair to to the destination string
*
* @note str will get reallocated if there is insufficient space for the key.
*
* Reads the key value pair from the CBOR data and appends them to the end of
* the string
*
* @param str Destination string
* @param cbor_data CBOR handle with cursor pointed at key to append
* @param buf_len Pointer to length of the str buf
* @return New pointer to str
*/
static char * CBOR_CatKeyValue( char * pcStr,
cbor_handle_t pxCbor_data,
cbor_ssize_t * pxBuf_len );
/**
* @brief Append key from cbor data to destination string
*
* @note str will get reallocated if there is insufficient space for the key.
*
* Reads the key from the CBOR structure and concatonates it to the str. It
* will also append a ":".
*
* @param str Destination string
* @param cbor_data CBOR handle with cursor pointed at key to append
* @param buf_len Pointer to length of the str buf
* @return New pointer to str
*/
static char * CBOR_CatKey( char * pcStr,
cbor_handle_t pxCbor_data,
cbor_ssize_t * pxBuf_len );
/**
* @brief Append value from cbor data to destination string
*
* @note str will get reallocated if there is insufficient space for the value.
*
* @param str Destination string
* @param cbor_data CBOR handle with cursor pointed at value to append
* @param buf_len Pointer to length of the str buf
* @return New pointer to str
*/
static char * CBOR_CatValue( char * pcStr,
cbor_handle_t pxCbor_data,
cbor_ssize_t * pxBuf_len );
/**
* @brief Return string representation of integer at cursor location
*
* @note allocates data memory for string return
*
* @param cbor_data handle for cbor object
* @return String representation of integer
*/
static char * CBOR_IntAsString( cbor_handle_t pxCbor_data );
/**
* @brief concatenates two strings together
*
* @note allocates data memory for string return
*
* Concatenates two strings together (dest + src). If there is insufficient
* space in the destination, the destination is reallocated with sufficient
* space.
*
* @param dest Pointer to destination string.
* @note The dest pointer may be eallocated, so the user must use the returned
* pointer
* @param src [description]
* @param len [description]
* @return [description]
*/
static char * CBOR_StrCat( char * pcDest,
char const * pcSrc,
cbor_ssize_t * pxLen );
char * CBOR_AsString( cbor_handle_t pxCbor_data )
{
CBOR_SetCursor( pxCbor_data, 0 );
cbor_ssize_t xBuf_len = 16;
char * pcStr = pxCBOR_malloc( xBuf_len );
pcStr[ 0 ] = '{';
pcStr[ 1 ] = 0;
CBOR_NextKey( pxCbor_data );
while( !( CBOR_BREAK == *( pxCbor_data->cursor ) ) )
{
pcStr = CBOR_CatKeyValue( pcStr, pxCbor_data, &xBuf_len );
CBOR_NextKey( pxCbor_data );
if( !( CBOR_BREAK == *( pxCbor_data->cursor ) ) )
{
pcStr = CBOR_StrCat( pcStr, ",", &xBuf_len );
}
}
pcStr = CBOR_StrCat( pcStr, "}", &xBuf_len );
return pcStr;
}
static char * CBOR_CatKeyValue( char * pcStr,
cbor_handle_t pxCbor_data,
cbor_ssize_t * pxBuf_len )
{
pcStr = CBOR_CatKey( pcStr, pxCbor_data, pxBuf_len );
pcStr = CBOR_CatValue( pcStr, pxCbor_data, pxBuf_len );
return pcStr;
}
static char * CBOR_CatKey( char * pcStr,
cbor_handle_t pxCbor_data,
cbor_ssize_t * pxBuf_len )
{
pcStr = CBOR_StrCat( pcStr, "\"", pxBuf_len );
char * pcKey = CBOR_ReadString( pxCbor_data );
pcStr = CBOR_StrCat( pcStr, pcKey, pxBuf_len );
pxCBOR_free( pcKey );
pcStr = CBOR_StrCat( pcStr, "\":", pxBuf_len );
return pcStr;
}
static char * CBOR_CatValue( char * pcStr,
cbor_handle_t pxCbor_data,
cbor_ssize_t * pxBuf_len )
{
cbor_byte_t * pxKey_pos = pxCbor_data->cursor;
CBOR_Next( pxCbor_data );
cbor_byte_t xJump_type = *pxCbor_data->cursor;
cbor_byte_t xMajor_type = ( CBOR_MAJOR_TYPE_MASK & xJump_type );
switch( xMajor_type )
{
case CBOR_POS_INT:
case CBOR_NEG_INT:
{
char * pcVal = CBOR_IntAsString( pxCbor_data );
pcStr = CBOR_StrCat( pcStr, pcVal, pxBuf_len );
pxCBOR_free( pcVal );
break;
}
case CBOR_BYTE_STRING:
case CBOR_STRING:
{
pcStr = CBOR_StrCat( pcStr, "\"", pxBuf_len );
char * pcVal = CBOR_ReadString( pxCbor_data );
pcStr = CBOR_StrCat( pcStr, pcVal, pxBuf_len );
pxCBOR_free( pcVal );
pcStr = CBOR_StrCat( pcStr, "\"", pxBuf_len );
break;
}
case CBOR_MAP:
{
cbor_handle_t pxInner_map = CBOR_ReadMap( pxCbor_data );
char * pcVal = CBOR_AsString( pxInner_map );
CBOR_Delete( &pxInner_map );
pcStr = CBOR_StrCat( pcStr, pcVal, pxBuf_len );
pxCBOR_free( pcVal );
break;
}
}
pxCbor_data->cursor = pxKey_pos;
return pcStr;
}
static char * CBOR_IntAsString( cbor_handle_t pxCbor_data )
{
int xVal = CBOR_ReadInt( pxCbor_data );
int xLen = snprintf( NULL, 0, "%d", xVal ) + 1;
char * pcStr = pxCBOR_malloc( xLen );
( void ) snprintf( pcStr, xLen, "%d", xVal );
return pcStr;
}
static char * CBOR_StrCat( char * pcDest,
char const * pcSrc,
cbor_ssize_t * pxLen )
{
cbor_ssize_t xDest_len = strlen( pcDest );
cbor_ssize_t xSrc_len = strlen( pcSrc );
if( *pxLen <= xDest_len + xSrc_len )
{
do
{
*pxLen *= 3;
*pxLen /= 2;
/* Inefficient, but necessary to reallocate in each loop, since some
* embedded platforms (e.g. FreeRTOS) do not implement realloc. */
pcDest = pxCBOR_realloc( pcDest, *pxLen );
} while( *pxLen <= xDest_len + xSrc_len );
}
strncat( pcDest, pcSrc, ( *pxLen - xDest_len ) );
return pcDest;
}
|
EnderXenocide/DailyWork
|
src/main.h
|
/*********************************************************************
* Name: main.h
* Purpose: Declares simple wxWidgets application with GUI
* created using wxFormBuilder.
* Author:
* Created:
* Copyright:
* License: wxWidgets license (www.wxwidgets.org)
*
* Notes: Note that all GUI creation code is declared in
* gui.h source file which is generated by wxFormBuilder.
*********************************************************************/
#ifndef __main__
#define __main__
#include "dailyworkparser.h"
#include "currentdates.h"
#include "gui2.h"
// main wxWidgets header file
//#include <wx/wx.h>
#include <wx/string.h>
#include <wx/treectrl.h>
#include <wx/msgdlg.h>
#include <wx/cmdline.h>
#if wxUSE_HELP
#include <wx/cshelp.h>
#endif
#if USE_RICH_EDIT
#include <wx/richtext/richtextctrl.h>
#include <wx/richtext/richtextstyles.h>
#include <wx/richtext/richtextxml.h>
#include <wx/richtext/richtexthtml.h>
#include <wx/richtext/richtextformatdlg.h>
#include <wx/richtext/richtextsymboldlg.h>
#include <wx/richtext/richtextstyledlg.h>
#include <wx/richtext/richtextprint.h>
#endif
////////////////////////////////////////////////////////////////////////////////
// application class declaration
////////////////////////////////////////////////////////////////////////////////
class MainApp : public wxApp
{
public:
MainFrame* frame;
MainApp() { m_language = wxLANGUAGE_UNKNOWN; };
virtual bool OnInit();
virtual int OnExit();
void CreateStyles();
void InitDailyWorkParser();
void LoadFavoritesInComboBox();
void LoadDailyWorkInTree();
MainApp& SetHierarchicalTree(bool hierarchy) {this->hierarchicalTree = hierarchy; return *this; }
bool IsHierarchicalTree() const{ return hierarchicalTree; }
#if USE_RICH_EDIT
wxRichTextStyleSheet* GetStyleSheet() const { return m_styleSheet; }
#endif
int AddDateToTree(const wxDateTime& date, bool selectItem = false); // todo wxTreeCtrl& tree instead
wxTreeItemId AddItem(wxTreeItemId parent, wxString text, wxDateTime date, bool setDataEmpty);
void SetCurrentDate(const wxDateTime date, wxWindow *sender);
void SetCurrentDateFromTreeDatesSelection();
void SetCurrentDateFromTreeSearchSelection();
void SetPrevDateAsCurrentDate();
void SetNextDateAsCurrentDate();
void AddTomorrowToTree();
void AddYesterdayToTree();
wxDateTime GetDateFromTreeDatesSelection();
wxString GetCurrentDateWork();
void DeleteDateSelected();
bool DeleteItemData(wxTreeItemId itemId);
bool IsModified() const { return dwparser.IsModified(); }
int Save() ;
int SaveAs(wxString filename) ;
int AddToFavorites(wxString text);
int DeleteSelectedFavorite();
void UpdateCurrentWork(wxString text);
int CountDates();
int SearchInDates(wxString text);
bool SelectFirstTreeDatesItem();
ExcludedDays GetExcludedDays();
void SetExcludedDays(ExcludedDays ed);
void OnInitCmdLine(wxCmdLineParser& parser);
bool OnCmdLineParsed(wxCmdLineParser& parser);
private:
wxDateTime GetDateFromTreeSelection(wxTreeCtrl* tree);
wxDateTime GetDateFromItem(wxTreeCtrl* tree, wxTreeItemId itemId);
//void DeleteDate(wxDateTime date);
CurrentDates currentDates;
bool hierarchicalTree;
wxLanguage m_language; // language specified by user
wxLocale* m_locale; // locale we'll be using
DailyWorkParser dwparser;
ExcludedDays excludedDays;
void InitLanguageSupport();
//wxLanguage GetUsersFavoriteLanguageOrDefault();
wxTreeItemId AddItemData(wxTreeItemId itemId, wxDateTime date, bool setDataEmpty);
void SelectDateInTree(const wxDateTime date);
wxTreeItemId SelectDateInChild(wxTreeItemId parent, const wxDateTime date);
wxTreeItemId AddBranchHierarchy(wxTreeItemId rootId, const wxDateTime date);
wxTreeItemId AddBranchSimple(wxTreeItemId rootId, const wxDateTime date);
void GetWorkDatesAround(const wxDateTime date, wxDateTime &prevDate, wxDateTime &nextDate);
void SetButtonsState();
void SetEmptyWorkSpace();
#if USE_RICH_EDIT
wxRichTextStyleSheet* m_styleSheet;
void InitRichText();
#endif
};
static const wxCmdLineEntryDesc g_cmdLineDesc [] =
{
{ wxCMD_LINE_SWITCH, "h", "help", "displays help on the command line parameters1",
wxCMD_LINE_VAL_NONE, wxCMD_LINE_OPTION_HELP },
{ wxCMD_LINE_OPTION, "l", "lang", "Users Favorite Language"},
{ wxCMD_LINE_OPTION, "d", "data", "specify data filename to use"},
{ wxCMD_LINE_NONE }
};
// declare global static function wxGetApp()
DECLARE_APP(MainApp)
#endif //__main__
|
EnderXenocide/DailyWork
|
src/gui2.h
|
#ifndef __GUI_H__
#define __GUI_H__
#define USE_RICH_EDIT TRUE
//#define HOTKEYS_ADD_TOMORROW = "\tCtrl++"
//#define HOTKEYS_ADD_YESTERDAY = "\tCtrl+-"
//#define HOTKEYS_GO_NEXT_AVAILABLE = "\tCtrl+Up"
//#define HOTKEYS_GO_PREV_AVAILABLE = "\tCtrl+Down"
#include <wx/filedlg.h>
#include <wx/statbox.h>
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
#include <wx/string.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/menu.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
//#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/treectrl.h>
#include <wx/calctrl.h>
#include <wx/sizer.h>
#include <wx/toolbar.h>
#include <wx/statusbr.h>
#include <wx/frame.h>
#include <wx/app.h>
#include <wx/combobox.h>
#include <wx/sysopt.h>
#include <wx/splitter.h>
#include <wx/checklst.h>
//#include <wx/srchctrl.h>
#include <wx/stattext.h>
#include "easylogging++.h"
#include "excludeddays.h"
#if USE_RICH_EDIT
#include <wx/richtext/richtextctrl.h>
#include "wx/richtext/richtextstyles.h"
#include "wx/richtext/richtextxml.h"
#include "wx/richtext/richtexthtml.h"
#include "wx/richtext/richtextformatdlg.h"
#include "wx/richtext/richtextsymboldlg.h"
#include "wx/richtext/richtextstyledlg.h"
#include "wx/richtext/richtextimagedlg.h"
#include "wx/richtext/richtextprint.h"
#include "myrichtext.h"
#else
#include "mystyledtext.h"
#endif // USE_RICH_EDIT
#ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm"
#endif
#if USE_RICH_EDIT
#include "bitmaps/smiley.xpm"
// #include "bitmaps/idea.xpm"
#include "bitmaps/zebra.xpm"
#endif // USE_RICH_EDIT
#include "bitmaps/reload.xpm"
#include "bitmaps/delete.xpm"
#include "bitmaps/search.xpm"
#include "bitmaps/open.xpm"
#include "bitmaps/save.xpm"
#include "bitmaps/copy.xpm"
#include "bitmaps/cut.xpm"
#include "bitmaps/paste.xpm"
#include "bitmaps/undo.xpm"
#include "bitmaps/redo.xpm"
#include "bitmaps/bold.xpm"
#include "bitmaps/italic.xpm"
#include "bitmaps/underline.xpm"
#include "bitmaps/alignleft.xpm"
#include "bitmaps/alignright.xpm"
#include "bitmaps/centre.xpm"
#include "bitmaps/font.xpm"
#include "bitmaps/indentless.xpm"
#include "bitmaps/indentmore.xpm"
#include "bitmaps/bookadd.xpm"
#include "bitmaps/bookdelete.xpm"
#include "bitmaps/bookedit.xpm"
#include "bitmaps/bookgo.xpm"
///////////////////////////////////////////////////////////////////////////
/// Class MainFrame
///////////////////////////////////////////////////////////////////////////////
class MainFrame : public wxFrame
{
public:
wxMenuBar* m_menuBar;
wxTreeCtrl* m_treeDates;
wxCalendarCtrl* m_calendar;
wxStatusBar* m_statusBar;
wxToolBar* m_mainToolBar;
wxComboBox* m_comboBoxFavorite;
wxMenu* m_editMenu;
wxSplitterWindow *m_splitterEditorSearch;
wxPanel *m_panelSearch, *m_panelEditor;
wxStaticText* m_textCurDate;
wxButton* m_buttonAddTomorrow;
wxButton* m_buttonAddYesterday;
wxButton* m_buttonGoNextAvailable;
wxButton* m_buttonGoPrevAvailable;
wxMenuItem* m_menuAddTomorrow;
wxMenuItem* m_menuAddYesterday;
wxMenuItem* m_menuGoNextAvailable;
wxMenuItem* m_menuGoPrevAvailable;
wxTextCtrl* m_textSearch; //wxSearchCtrl ? pb icon too big
wxTreeCtrl* m_treeSearch;
wxStaticText* m_textSearchStat;
#if USE_RICH_EDIT
MyRichTextCtrl* m_editor;
#else
MyStyledTextCtrl* m_editor;
#endif
MainFrame(const wxString& title, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE);
// MainFrame(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 699,413 ), long style = wxCLOSE_BOX|wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL);
~MainFrame();
void OnStatusBarMessage(wxString msg);
void OnDialogMessage(wxString msg);
void EnableShowHirerarchicalTree(bool hiearchy);
void SetText(wxString texte, bool focusEditor = false);
void UpdateText();
void ConnectSelectionEvents();
void DisconnectSelectionEvents();
protected:
// event handlers (these functions should _not_ be virtual)
void OnCloseFrame(wxCloseEvent& event);
void OnTreeSelChanging(wxTreeEvent& event);
void OnTreeSelChanged(wxTreeEvent& event);
void OnTreeRightClick(wxTreeEvent& event);
void OnCalendarSelChanged(wxCalendarEvent& event);
void OnCalendarDblClick(wxCalendarEvent& event);
void OnCalendarSetFocus(wxFocusEvent& event);
void OnCalendarKillFocus(wxFocusEvent& event);
void OnFocusComboFavorite(wxCommandEvent& event);
//void OnComboFavoriteTextEnter(wxCommandEvent& event);
//void OnComboFavoriteUpdate(wxCommandEvent& event);
void OnShowHirerarchicalTree(wxCommandEvent& event);
void OnDeleteDate(wxCommandEvent& event);
void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
void OnStayOnTop(wxCommandEvent& event);
void OnAddFavorite(wxCommandEvent& event);
void OnGoFavorite(wxCommandEvent& event);
void OnDeleteFavorite(wxCommandEvent& event);
void OnManageFavorite(wxCommandEvent& event);
void OnUpdateAddFavorite(wxUpdateUIEvent& event);
void OnUpdateGoFavorite(wxUpdateUIEvent& event);
void OnUpdateDeleteFavorite(wxUpdateUIEvent& event);
void OnGoNextAvailableClick(wxCommandEvent& event);
void OnGoPrevAvailableClick(wxCommandEvent& event);
void OnAddTomorrowClick(wxCommandEvent& event);
void OnAddYesterdayClick(wxCommandEvent& event);
void OnOpen(wxCommandEvent& event);
void OnSave(wxCommandEvent& event);
void OnSaveAs(wxCommandEvent& event);
void OnOptions(wxCommandEvent& event);
void OnReload(wxCommandEvent& event);
void OnTextSearchEnter(wxCommandEvent& event);
void OnTreeSearchSelChanged(wxTreeEvent& event);
void OnShowPanelSearch(wxCommandEvent& event);
void OnHidePanelSearch(wxSplitterEvent& event);
void OnUpdateShowPanelSearch(wxUpdateUIEvent& event);
#if USE_RICH_EDIT
void OnBold(wxCommandEvent& event);
void OnItalic(wxCommandEvent& event);
void OnUnderline(wxCommandEvent& event);
void OnStrikethrough(wxCommandEvent& event);
void OnSuperscript(wxCommandEvent& event);
void OnSubscript(wxCommandEvent& event);
void OnUpdateBold(wxUpdateUIEvent& event);
void OnUpdateItalic(wxUpdateUIEvent& event);
void OnUpdateUnderline(wxUpdateUIEvent& event);
void OnUpdateStrikethrough(wxUpdateUIEvent& event);
void OnUpdateSuperscript(wxUpdateUIEvent& event);
void OnUpdateSubscript(wxUpdateUIEvent& event);
void OnAlignLeft(wxCommandEvent& event);
void OnAlignCentre(wxCommandEvent& event);
void OnAlignRight(wxCommandEvent& event);
void OnUpdateAlignLeft(wxUpdateUIEvent& event);
void OnUpdateAlignCentre(wxUpdateUIEvent& event);
void OnUpdateAlignRight(wxUpdateUIEvent& event);
void OnIndentMore(wxCommandEvent& event);
void OnIndentLess(wxCommandEvent& event);
void OnFont(wxCommandEvent& event);
void OnImage(wxCommandEvent& event);
void OnUpdateImage(wxUpdateUIEvent& event);
void OnParagraph(wxCommandEvent& event);
void OnFormat(wxCommandEvent& event);
void OnUpdateFormat(wxUpdateUIEvent& event);
void OnInsertSymbol(wxCommandEvent& event);
void OnLineSpacingHalf(wxCommandEvent& event);
void OnLineSpacingDouble(wxCommandEvent& event);
void OnLineSpacingSingle(wxCommandEvent& event);
void OnParagraphSpacingMore(wxCommandEvent& event);
void OnParagraphSpacingLess(wxCommandEvent& event);
void OnNumberList(wxCommandEvent& event);
void OnBulletsAndNumbering(wxCommandEvent& event);
void OnItemizeList(wxCommandEvent& event);
void OnRenumberList(wxCommandEvent& event);
void OnPromoteList(wxCommandEvent& event);
void OnDemoteList(wxCommandEvent& event);
void OnClearList(wxCommandEvent& event);
void OnTableAddColumn(wxCommandEvent& event);
void OnTableAddRow(wxCommandEvent& event);
void OnTableDeleteColumn(wxCommandEvent& event);
void OnTableDeleteRow(wxCommandEvent& event);
void OnTableFocusedUpdateUI(wxUpdateUIEvent& event);
void OnTableHasCellsUpdateUI(wxUpdateUIEvent& event);
void OnViewHTML(wxCommandEvent& event);
void OnSwitchStyleSheets(wxCommandEvent& event);
void OnManageStyles(wxCommandEvent& event);
void OnInsertURL(wxCommandEvent& event);
void OnURL(wxTextUrlEvent& event);
void OnStyleSheetReplacing(wxRichTextEvent& event);
void OnSetFontScale(wxCommandEvent& event);
void OnSetDimensionScale(wxCommandEvent& event);
#else
void OnUpdateUndo(wxUpdateUIEvent& event);
void OnUpdateRedo(wxUpdateUIEvent& event);
#endif
private:
const int sashPositionSearchEditor = -225; //todo save position before hide ?
// Write text
#if USE_RICH_EDIT
void WriteInitialText(); // ce n'est pas utile
#endif
void ConnectEvents();
void CreateEditor(wxWindow *parent);
void CreateMenu();
void CreateMainToolBar();
};
///////////////////////////////////////////////////////////////////////////////
/// Class DlgOptions
///////////////////////////////////////////////////////////////////////////////
class DlgOptions : public wxDialog
{
private:
protected:
wxCheckListBox* m_checkListExcludeDays;
wxButton* m_sdbSizerOK;
wxButton* m_sdbSizerCancel;
public:
DlgOptions( wxWindow* parent, ExcludedDays ed);
//DlgOptions( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Préférences"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 420,309 ), long style = wxDEFAULT_DIALOG_STYLE
~DlgOptions();
ExcludedDays GetExcludedDays();
void ExcludedDaysToIHM(ExcludedDays excludedDays);
};
#endif //__GUI_H__
|
EnderXenocide/DailyWork
|
src/dailyworkparser.h
|
#ifndef DAILYWORKPARSER_H
#define DAILYWORKPARSER_H
#include <string>
#include <functional>
#include <set>
#include <rapidjson/document.h>
#include <rapidjson/filewritestream.h>
#include <rapidjson/writer.h>
#include <wx/treectrl.h>
#include "dwitemdata.h"
#include "results.h"
#include "excludeddays.h"
#define JSON_VERSION_SCHEMA 4
#define JSON_FILE "dailywork.json"
#define JSON_DATE_FORMAT_EXT "%Y-%m-%d" // strptime()-like format string
#define JSON_DATE_FORMAT "%4d-%02d-%02d"
#define TREE_DATE_FORMAT "%02d/%02d/%4d" //todo format en/fr ?
#define JSON_ITEMS "dailyworks"
#define JSON_WORK "work"
#define JSON_DATE "date"
#define JSON_WORK_FORMAT "format"
#define JSON_VERSION "version"
#define JSON_FAVORITES "favorites"
#define JSON_EXCLUDED_DAYS "excluded days"
#define JSON_WORK_FORMAT_TEXT "text"
#define JSON_WORK_FORMAT_HTML "html"
using namespace rapidjson;
typedef std::function<void(wxString)> CallbackMessageInfo;
// typedef std::function<int(int)> CallbackFunction;
typedef std::multiset<Result, ResultComp> MapFind;
class DailyWorkParser
{
public:
DailyWorkParser();
~DailyWorkParser();
void SetJsonFile(wxString fileName) { jsonFile = fileName;};
void StatusBarMessageCallback(CallbackMessageInfo cb);
void DialogMessageCallback(CallbackMessageInfo cb);
int Parse();
void New();
int UpdateWork(const wxDateTime& date, wxString work, wxString format=JSON_WORK_FORMAT_TEXT);
wxDateTime GetDateFromItem(int itemIndex);
wxString ToDWDate(const wxDateTime& date) const;
wxString ToTreeDate(const wxDateTime& date) const;
wxDateTime DWToDate(const wxString DWDate) const;
int GetVersion() const { return version; }
bool IsModified() const { return modified; }
int SaveAs(wxString filename);
int Save();
void AddItem(const wxDateTime& date, wxString work="", wxString format=JSON_WORK_FORMAT_TEXT);
SizeType CountItems();
int DeleteItem(wxDateTime date);
wxString GetWorkFromDate(const wxDateTime& date);
bool AddToFavorites(wxString text);
SizeType CountFavorites();
int DeleteFavorite(wxString text);
wxString GetFavorite(int itemIndex);
bool IsInFavorites(wxString text);
int GetExcludedDays(ExcludedDays &ed);
int SetExcludedDays(ExcludedDays ed);
int SearchInDates(const wxString text, MapFind &results);
std::string GetLine(const std::string &str, std::size_t idx) const;
std::size_t findStringIC(const std::string &strHaystack, const std::string &strNeedle) const;
private:
int SetWorkFromItem(Value& item, wxString work, wxString format);
wxString GetWorkFromItem(const Value& item);
void TestAndUpdate();
// The callback provided by the client via ConnectCallback().
CallbackMessageInfo m_cbMessageInfo;
CallbackMessageInfo m_cbDialog;
Document document;
wxString jsonFile;
int version;
bool modified; // set if document was modified or not
};
#endif // DAILYWORKPARSER_H
|
EnderXenocide/DailyWork
|
src/dwitemdata.h
|
#ifndef DWITEMDATA_H
#define DWITEMDATA_H
#include <wx/treectrl.h>
#include <rapidjson/document.h>
class DWItemData : public wxTreeItemData
{
public:
DWItemData (const wxDateTime& date, bool empty) : wxTreeItemData()
{
m_date = date;
m_empty = empty;
};
~DWItemData() {};
wxDateTime GetDate() const { return m_date; };
bool IsEmpty() const { return m_empty; };
private:
wxDateTime m_date;
bool m_empty;
};
#endif // DWITEMDATA_H
|
EnderXenocide/DailyWork
|
src/excludeddays.h
|
#ifndef EXCLUDEDDAYS_H
#define EXCLUDEDDAYS_H
#include <wx/string.h>
#include <wx/datetime.h>
//enum WeekDays {monday,tuesday,wednesday,thursday,friday, saturday,sunday};
class ExcludedDays
{
public:
bool monday,tuesday,wednesday,thursday,friday, saturday,sunday;
ExcludedDays();
ExcludedDays(const ExcludedDays& ed);
~ExcludedDays();
bool operator != (const ExcludedDays& ed) const;
void Clear();
wxDateTime NextDay(wxDateTime date);
wxDateTime PreviousDay(wxDateTime date);
bool IsWeekDayValid(wxDateTime day);
bool IsValid();
void DefaultValidate();
void AutoValid();
protected:
};
#endif // EXCLUDEDDAYS_H
|
EnderXenocide/DailyWork
|
src/gui.h
|
<reponame>EnderXenocide/DailyWork
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jun 17 2015)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __GUI_H__
#define __GUI_H__
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
#include <wx/string.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/menu.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/calctrl.h>
#include <wx/treectrl.h>
#include <wx/sizer.h>
#include <wx/button.h>
#include <wx/stattext.h>
#include <wx/richtext/richtextctrl.h>
#include <wx/statusbr.h>
#include <wx/toolbar.h>
#include <wx/frame.h>
#include <wx/checklst.h>
#include <wx/statbox.h>
#include <wx/dialog.h>
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/// Class MainFrameBase
///////////////////////////////////////////////////////////////////////////////
class MainFrameBase : public wxFrame
{
private:
protected:
wxMenuBar* m_menuBar;
wxMenu* m_menuFile;
wxCalendarCtrl* m_calendar;
wxTreeCtrl* m_treeDates;
wxButton* m_buttonGoNextAvailable;
wxButton* m_buttonGoTomorrow;
wxStaticText* m_staticTextCurDate;
wxRichTextCtrl* m_editor;
wxButton* m_buttonYesterday;
wxButton* m_buttonGoPrevAvailable;
wxStatusBar* m_statusBar;
wxToolBar* m_mainToolBar;
// Virtual event handlers, overide them in your derived class
virtual void OnCloseFrame( wxCloseEvent& event ) { event.Skip(); }
virtual void OnExitClick( wxCommandEvent& event ) { event.Skip(); }
virtual void OnCalendarDblClick( wxCalendarEvent& event ) { event.Skip(); }
virtual void OnCalendarKillFocus( wxFocusEvent& event ) { event.Skip(); }
virtual void OnCalendarSetFocus( wxFocusEvent& event ) { event.Skip(); }
virtual void OnTreeSelChanged( wxTreeEvent& event ) { event.Skip(); }
virtual void OnButtonGoNextAvailableClick( wxCommandEvent& event ) { event.Skip(); }
public:
MainFrameBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 699,413 ), long style = wxCLOSE_BOX|wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
~MainFrameBase();
};
///////////////////////////////////////////////////////////////////////////////
/// Class DlgPreference
///////////////////////////////////////////////////////////////////////////////
class DlgPreference : public wxDialog
{
private:
protected:
wxCheckListBox* m_checkListExcludeDays;
wxStaticText* m_staticText2;
wxStdDialogButtonSizer* m_sdbSizer1;
wxButton* m_sdbSizer1OK;
wxButton* m_sdbSizer1Cancel;
public:
DlgPreference( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Preferences"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 420,309 ), long style = wxDEFAULT_DIALOG_STYLE );
~DlgPreference();
};
#endif //__GUI_H__
|
EnderXenocide/DailyWork
|
src/CurrentDates.h
|
<gh_stars>0
#ifndef CURRENTDATES_H
#define CURRENTDATES_H
#include <wx/string.h>
#include <set>
#include <algorithm>
class CurrentDates
{
public :
CurrentDates()
{
Init();
}
~CurrentDates()
{
}
std::set<wxDateTime> dates; // stock les dates de la plus vieille à la plus recente (l'inverse du tree)
wxDateTime today;
wxDateTime yesterday;
wxDateTime tomorrow;
wxDateTime prevAvailable;
wxDateTime nextAvailable;
wxString TodayToString() { return ToString(today); };
wxString TomorrowToString() { return ToString(tomorrow); };
wxString YesterdayToString() { return ToString(yesterday); };
wxString PrevAvailableToString() { return ToString(prevAvailable); };
wxString NextAvailableToString() { return ToString(nextAvailable); };
void Init() { today = (time_t)-1; yesterday = today; tomorrow = today; prevAvailable = today; nextAvailable = today;};
void Clear() { Init(); dates.clear(); };
private :
wxString ToString(wxDateTime date)
{
if (date.IsValid())
return date.Format(_("%A, %B %d %Y"));
else
return _("unknow");
};
};
#endif // CURRENTDATES_H
|
EnderXenocide/DailyWork
|
src/results.h
|
<gh_stars>0
#ifndef RESULTS_H
#define RESULTS_H
struct Result
{
wxDateTime date;
wxString text;
Result( wxDateTime d, wxString t) : date( d ), text( t ) {};
};
struct ResultComp
{
bool operator()(const Result& lhs, const Result& rhs) {
return lhs.date > rhs.date; //de la plus recente à la plus vielle
}
};
#endif // RESULTS_H
|
EnderXenocide/DailyWork
|
src/myrichtext.h
|
<filename>src/myrichtext.h
/////////////////////////////////////////////////////////////////////////////
// Name: richtext/richtext.h
// Purpose: wxWidgets rich text editor sample
// Author: <NAME>
// Modified by:
// Created: 2005-10-02
// Copyright: (c) <NAME>
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
// declarations
// ============================================================================
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// for all others, include the necessary headers (this file is usually all you
// need because it includes almost all "standard" wxWidgets headers)
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include "wx/fontdlg.h"
#include "wx/splitter.h"
#include "wx/sstream.h"
#include "wx/html/htmlwin.h"
#include "wx/stopwatch.h"
#include "wx/sysopt.h"
#if wxUSE_FILESYSTEM
#include "wx/filesys.h"
#include "wx/fs_mem.h"
#endif
#include "wx/richtext/richtextctrl.h"
#include "wx/richtext/richtextstyles.h"
#include "wx/richtext/richtextxml.h"
#include "wx/richtext/richtexthtml.h"
#include "wx/richtext/richtextformatdlg.h"
#include "wx/richtext/richtextsymboldlg.h"
#include "wx/richtext/richtextstyledlg.h"
#include "wx/richtext/richtextprint.h"
// A custom field type
class wxRichTextFieldTypePropertiesTest: public wxRichTextFieldTypeStandard
{
public:
wxRichTextFieldTypePropertiesTest(const wxString& name, const wxString& label, int displayStyle = wxRICHTEXT_FIELD_STYLE_RECTANGLE):
wxRichTextFieldTypeStandard(name, label, displayStyle)
{
}
wxRichTextFieldTypePropertiesTest(const wxString& name, const wxBitmap& bitmap, int displayStyle = wxRICHTEXT_FIELD_STYLE_RECTANGLE):
wxRichTextFieldTypeStandard(name, bitmap, displayStyle)
{
}
virtual bool CanEditProperties(wxRichTextField* WXUNUSED(obj)) const { return true; }
virtual bool EditProperties(wxRichTextField* WXUNUSED(obj), wxWindow* WXUNUSED(parent), wxRichTextBuffer* WXUNUSED(buffer))
{
wxString label = GetLabel();
wxMessageBox(wxString::Format(wxT("Editing %s"), label.c_str()));
return true;
}
virtual wxString GetPropertiesMenuLabel(wxRichTextField* WXUNUSED(obj)) const
{
return GetLabel();
}
};
// A custom composite field type
class wxRichTextFieldTypeCompositeTest: public wxRichTextFieldTypePropertiesTest
{
public:
wxRichTextFieldTypeCompositeTest(const wxString& name, const wxString& label):
wxRichTextFieldTypePropertiesTest(name, label, wxRICHTEXT_FIELD_STYLE_COMPOSITE)
{
}
virtual bool UpdateField(wxRichTextBuffer* buffer, wxRichTextField* obj)
{
if (buffer)
{
wxRichTextAttr attr(buffer->GetAttributes());
attr.GetTextBoxAttr().Reset();
attr.SetParagraphSpacingAfter(0);
attr.SetLineSpacing(10);
obj->SetAttributes(attr);
}
obj->GetChildren().Clear();
wxRichTextParagraph* para = new wxRichTextParagraph;
wxRichTextPlainText* text = new wxRichTextPlainText(GetLabel());
para->AppendChild(text);
obj->AppendChild(para);
return true;
}
};
// ----------------------------------------------------------------------------
// resources
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// private classes
// ----------------------------------------------------------------------------
// Define a new application type, each program should derive a class from wxApp
class MyRichTextCtrl: public wxRichTextCtrl
{
public:
MyRichTextCtrl( wxWindow* parent, wxWindowID id = -1, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
long style = wxRE_MULTILINE, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxTextCtrlNameStr):
wxRichTextCtrl(parent, id, value, pos, size, style, validator, name)
{
m_lockId = 0;
m_locked = false;
}
bool ProcessEvent(wxEvent& event);
void SetLockId(long id) { m_lockId = id; }
long GetLockId() const { return m_lockId; }
void BeginLock() { m_lockId ++; m_locked = true; }
void EndLock() { m_locked = false; }
bool IsLocked() const { return m_locked; }
static void SetEnhancedDrawingHandler();
/**
Prepares the content just before insertion (or after buffer reset). Called by the same function in wxRichTextBuffer.
Currently is only called if undo mode is on.
*/
virtual void PrepareContent(wxRichTextParagraphLayoutBox& container);
/**
Can we delete this range?
Sends an event to the control.
*/
virtual bool CanDeleteRange(wxRichTextParagraphLayoutBox& container, const wxRichTextRange& range) const;
/**
Can we insert content at this position?
Sends an event to the control.
*/
virtual bool CanInsertContent(wxRichTextParagraphLayoutBox& container, long pos) const;
/**
Finds a table, either selected or near the cursor
*/
wxRichTextTable* FindTable() const;
/**
Helper for FindTable()
*/
wxRichTextObject* FindCurrentPosition() const;
long m_lockId;
bool m_locked;
};
|
koshkin-sergey/ukernel
|
examples/basic/arch/cortex-m/eval_aducm320/src/include/system_ADuCM320.h
|
/**
@file system_ADUCM320.h
@brief: CMSIS Cortex-M3 Device Peripheral Access Layer Header File
for the ADuCM320
@version v0.1
@date February 18th 2013
@section disclaimer Disclaimer
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES INC. ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE
DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES INC. BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
YOU ASSUME ANY AND ALL RISK FROM THE USE OF THIS CODE OR SUPPORT FILE.
IT IS THE RESPONSIBILITY OF THE PERSON INTEGRATING THIS CODE INTO AN APPLICATION
TO ENSURE THAT THE RESULTING APPLICATION PERFORMS AS REQUIRED AND IS SAFE.
**/
/** @addtogroup CMSIS
* @{
*/
/** @addtogroup aducM320_system
* @{
*/
#ifndef __SYSTEM_ADUCM320_H__
#define __SYSTEM_ADUCM320_H__
#ifdef __cplusplus
extern "C" {
#endif
extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
/**
* @brief Initialize the system
*
* @param none
* @return none
*
* Setup the microcontroller system.
* Initialize the System and update the SystemCoreClock variable.
*/
extern void SystemInit (void);
/**
* @brief Update internal SystemCoreClock variable
*
* @param none
* @return none
*
* Updates the internal SystemCoreClock with current core
* Clock retrieved from cpu registers.
*/
extern void SystemCoreClockUpdate (void);
/**
* @brief Sets the system external clock frequency
*
* @param ExtClkFreq External clock frequency in Hz
* @return none
*
* Sets the clock frequency of the source connected to Px.x clock input source
*/
extern void SetSystemExtClkFreq (uint32_t ExtClkFreq);
/**
* @brief Gets the system external clock frequency
*
* @return External Clock frequency
*
* Gets the clock frequency of the source connected to Px.x clock input source
*/
extern uint32_t GetSystemExtClkFreq (void);
#ifdef __cplusplus
}
#endif
#endif /* __SYSTEM_ADUCM320_H__ */
/**
* @}
*/
/**
* @}
*/
|
koshkin-sergey/ukernel
|
src/include/os_lib.h
|
<gh_stars>0
/*
* Copyright (C) 2017-2019 <NAME> <<EMAIL>>
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Project: uKernel real-time kernel
*/
#ifndef _KNL_LIB_H_
#define _KNL_LIB_H_
/*******************************************************************************
* includes
******************************************************************************/
#include "arch.h"
#include "ukernel.h"
/*******************************************************************************
* defines and macros (scope: module-local)
******************************************************************************/
/// Kernel Information
#define osVersionAPI 20010003 ///< API version (2.1.3)
#define osVersionKernel 10000000 ///< Kernel version (1.0.0)
#define osKernelId "uKernel V1.0.0" ///< Kernel identification string
/* Object Identifier definitions */
#define ID_INVALID 0x00
#define ID_THREAD 0x47
#define ID_SEMAPHORE 0x6F
#define ID_EVENT_FLAGS 0x5E
#define ID_MEMORYPOOL 0x26
#define ID_MUTEX 0x17
#define ID_TIMER 0x7A
#define ID_MESSAGE_QUEUE 0x1C
#define ID_MESSAGE 0x1D
#define ID_DATA_QUEUE 0x1E
/* Thread State definitions */
#define ThreadStateInactive ((uint8_t)osThreadInactive)
#define ThreadStateReady ((uint8_t)osThreadReady)
#define ThreadStateRunning ((uint8_t)osThreadRunning)
#define ThreadStateBlocked ((uint8_t)osThreadBlocked)
#define ThreadStateTerminated ((uint8_t)osThreadTerminated)
#define container_of(ptr, type, member) ((type *)((uint8_t *)(ptr) - offsetof(type, member)))
#define GetThreadByQueue(que) container_of(que, osThread_t, thread_que)
#define GetThreadByDelayQueue(que) container_of(que, osThread_t, delay_que)
#define GetMutexByQueque(que) container_of(que, osMutex_t, mutex_que)
#define GetTimerByQueue(que) container_of(que, osTimer_t, timer_que)
#define GetMessageByQueue(que) container_of(que, osMessage_t, msg_que)
#define NUM_PRIORITY (32U)
#define osThreadWait (-16)
/* OS Configuration flags */
#define osConfigPrivilegedMode (1UL<<0) ///< Threads in Privileged mode
#define osConfigStackCheck (1UL<<1) ///< Stack overrun checking
#define osConfigStackWatermark (1UL<<2) ///< Stack usage Watermark
/*******************************************************************************
* typedefs and structures (scope: module-local)
******************************************************************************/
/* OS Runtime Information structure */
typedef struct osInfo_s {
struct {
struct {
osThread_t *curr; /// Task that is running now
osThread_t *next; /// Task to be run after switch context
} run;
osThreadId_t idle;
osThreadId_t timer;
} thread;
struct {
osKernelState_t state; ///< State
uint32_t tick;
} kernel;
uint32_t base_priority;
uint32_t ready_to_run_bmp;
queue_t ready_list[NUM_PRIORITY]; ///< all ready to run(RUNNABLE) tasks
queue_t timer_queue;
queue_t delay_queue;
osSemaphoreId_t timer_semaphore;
} osInfo_t;
/* OS Configuration structure */
typedef struct osConfig_s {
uint32_t flags; ///< OS Configuration Flags
uint32_t tick_freq; ///< Kernel Tick Frequency
uint32_t robin_timeout; ///< Round Robin Timeout Tick
uint32_t max_api_interrupt_priority;
const
osThreadAttr_t *idle_thread_attr; ///< Idle Thread Attributes
const
osThreadAttr_t *timer_thread_attr; ///< Timer Thread Attributes
const
osSemaphoreAttr_t *timer_semaphore_attr; ///< Timer Semaphore Attributes
} osConfig_t;
typedef enum {
DISPATCH_NO = 0,
DISPATCH_YES = 1,
} dispatch_t;
/*******************************************************************************
* exported variables
******************************************************************************/
extern osInfo_t osInfo; ///< OS Runtime Information
extern const osConfig_t osConfig; ///< OS Configuration
/*******************************************************************************
* exported function prototypes
******************************************************************************/
/* Thread */
/**
* @brief Thread startup (Idle and Timer Thread).
* @return true - success, false - failure.
*/
bool libThreadStartup(void);
/**
* @brief Exit Thread wait state.
* @param[out] thread thread object.
* @param[in] ret_val return value.
*/
void libThreadWaitExit(osThread_t *thread, uint32_t ret_val, dispatch_t dispatch);
/**
* @brief Enter Thread wait state.
* @param[out] thread thread object.
* @param[out] wait_que Pointer to wait queue.
* @param[in] timeout Timeout
*/
bool libThreadWaitEnter(osThread_t *thread, queue_t *wait_que, uint32_t timeout);
/**
* @brief
* @param wait_que
*/
void libThreadWaitDelete(queue_t *que);
/**
* @brief Process Thread Delay Tick (executed each System Tick).
*/
bool libThreadDelayTick(void);
/**
* @brief Change priority of a thread.
* @param[in] thread thread object.
* @param[in] priority new priority value for the thread.
*/
void libThreadSetPriority(osThread_t *thread, int8_t priority);
osThread_t *libThreadHighestPrioGet(void);
void libThreadSwitch(osThread_t *thread);
/**
* @brief Dispatch specified Thread or Ready Thread with Highest Priority.
* @param[in] thread thread object or NULL.
*/
void libThreadDispatch(osThread_t *thread);
__STATIC_FORCEINLINE
osThread_t *ThreadGetRunning(void)
{
return osInfo.thread.run.curr;
}
/* Queue */
__STATIC_FORCEINLINE
void QueueReset(queue_t *que)
{
que->prev = que->next = que;
}
__STATIC_FORCEINLINE
bool isQueueEmpty(queue_t *que)
{
return ((que->next == que) ? true : false);
}
/**
* @fn void QueueAppend(queue_t *que, queue_t *entry)
* @brief Appends an entry at the tail of the queue.
* @param[out] que Pointer to the queue
* @param[out] entry Pointer to an entry
*/
__STATIC_FORCEINLINE
void QueueAppend(queue_t *que, queue_t *entry)
{
entry->next = que;
entry->prev = que->prev;
entry->prev->next = entry;
que->prev = entry;
}
/**
* @fn queue_t* QueueExtract(queue_t *que)
* @brief Removes and return an entry at the head of the queue.
* @param[out] que Pointer to the queue
* @return Returns a pointer to an entry at the head of the queue
*/
__STATIC_FORCEINLINE
queue_t* QueueExtract(queue_t *que)
{
queue_t *entry = que->next;
entry->next->prev = que;
que->next = entry->next;
QueueReset(entry);
return (entry);
}
/**
* @fn void QueueRemoveEntry(queue_t *entry)
* @brief Removes an entry from the queue.
* @param[out] entry Pointer to an entry of the queue
*/
__STATIC_FORCEINLINE
void QueueRemoveEntry(queue_t *entry)
{
if (!isQueueEmpty(entry)) {
entry->prev->next = entry->next;
entry->next->prev = entry->prev;
QueueReset(entry);
}
}
/* Timer */
void libTimerInsert(osTimer_t *timer, uint32_t time);
void libTimerRemove(osTimer_t *timer);
void libTimerThread(void *argument);
/**
* @brief Release Mutexes when owner Task terminates.
* @param[in] que Queue of mutexes
*/
void libMutexOwnerRelease(queue_t *que);
/**
* @brief Initialize Memory Pool.
* @param[in] block_count maximum number of memory blocks in memory pool.
* @param[in] block_size size of a memory block in bytes.
* @param[in] block_mem pointer to memory for block storage.
* @param[in] mp_info memory pool info.
*/
void libMemoryPoolInit(uint32_t block_count, uint32_t block_size, void *block_mem, osMemoryPoolInfo_t *mp_info);
/**
* @brief Reset Memory Pool.
* @param[in] mp_info memory pool info.
*/
void libMemoryPoolReset(osMemoryPoolInfo_t *mp_info);
/**
* @brief Allocate a memory block from a Memory Pool.
* @param[in] mp_info memory pool info.
* @return address of the allocated memory block or NULL in case of no memory is available.
*/
void *libMemoryPoolAlloc(osMemoryPoolInfo_t *mp_info);
/**
* @brief Return an allocated memory block back to a Memory Pool.
* @param[in] mp_info memory pool info.
* @param[in] block address of the allocated memory block to be returned to the memory pool.
* @return status code that indicates the execution status of the function.
*/
osStatus_t libMemoryPoolFree(osMemoryPoolInfo_t *mp_info, void *block);
/*******************************************************************************
* System Library functions
******************************************************************************/
extern void osTick_Handler(void);
#endif /* _KNL_LIB_H_ */
|
koshkin-sergey/ukernel
|
src/kernel/delay.c
|
/*
* Copyright (C) 2019 <NAME> <<EMAIL>>
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Project: uKernel real-time kernel
*/
/**
* @file
*
* Kernel system routines.
*
*/
/*******************************************************************************
* includes
******************************************************************************/
#include "os_lib.h"
/*******************************************************************************
* external declarations
******************************************************************************/
/*******************************************************************************
* defines and macros (scope: module-local)
******************************************************************************/
/*******************************************************************************
* typedefs and structures (scope: module-local)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-exported)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-local)
******************************************************************************/
/*******************************************************************************
* function prototypes (scope: module-local)
******************************************************************************/
/*******************************************************************************
* function implementations (scope: module-local)
******************************************************************************/
static osStatus_t Delay(uint32_t ticks)
{
if (ticks != 0U) {
BEGIN_CRITICAL_SECTION
libThreadWaitEnter(ThreadGetRunning(), NULL, ticks);
END_CRITICAL_SECTION
}
return osOK;
}
static osStatus_t DelayUntil(uint32_t ticks)
{
ticks -= osInfo.kernel.tick;
if ((ticks == 0U) || (ticks > 0x7FFFFFFFU)) {
return osErrorParameter;
}
if (ticks != 0U) {
BEGIN_CRITICAL_SECTION
libThreadWaitEnter(ThreadGetRunning(), NULL, ticks);
END_CRITICAL_SECTION
}
return osOK;
}
/*******************************************************************************
* function implementations (scope: module-exported)
******************************************************************************/
/**
* @fn osStatus_t osDelay(uint32_t ticks)
* @brief Wait for Timeout (Time Delay).
* @param[in] ticks \ref CMSIS_RTOS_TimeOutValue "time ticks" value
* @return status code that indicates the execution status of the function.
*/
osStatus_t osDelay(uint32_t ticks)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_1(ticks, (uint32_t)Delay);
}
return status;
}
/**
* @fn osStatus_t osDelayUntil(uint32_t ticks)
* @brief Wait until specified time.
* @param[in] ticks absolute time in ticks
* @return status code that indicates the execution status of the function.
*/
osStatus_t osDelayUntil(uint32_t ticks)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_1(ticks, (uint32_t)DelayUntil);
}
return status;
}
/*------------------------------ End of file ---------------------------------*/
|
koshkin-sergey/ukernel
|
src/include/ukernel.h
|
<gh_stars>0
/*
* Copyright (C) 2017-2019 <NAME> <<EMAIL>>
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Project: uKernel real-time kernel
*/
#ifndef _UKERNEL_H_
#define _UKERNEL_H_
/*******************************************************************************
* includes
******************************************************************************/
#include <cmsis_compiler.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C"
{
#endif
/*******************************************************************************
* defines and macros (scope: module-local)
******************************************************************************/
/* ------- Start of section using anonymous unions and disabling warnings ------- */
#if defined (__CC_ARM)
#pragma push
#pragma anon_unions
#elif defined (__ICCARM__)
#pragma language=extended
#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc11-extensions"
#pragma clang diagnostic ignored "-Wreserved-id-macro"
#elif defined (__GNUC__)
/* anonymous unions are enabled by default */
#elif defined (__TMS470__)
/* anonymous unions are enabled by default */
#elif defined (__TASKING__)
#pragma warning 586
#elif defined (__CSMC__)
/* anonymous unions are enabled by default */
#else
#warning Not supported compiler type
#endif
/* Flags options (\ref osEventFlagsWait) */
#define osFlagsWaitAny 0x00000000U ///< Wait for any flag (default).
#define osFlagsWaitAll 0x00000001U ///< Wait for all flags.
#define osFlagsNoClear 0x00000002U ///< Do not clear flags which have been specified to wait for.
/* Thread attributes (attr_bits in \ref osThreadAttr_t) */
#define osThreadDetached 0x00000000U ///< Thread created in detached mode (default)
#define osThreadJoinable 0x00000001U ///< Thread created in joinable mode
/* Mutex attributes */
#define osMutexPrioInherit (1UL<<0) ///< Priority inherit protocol.
#define osMutexRecursive (1UL<<1) ///< Recursive mutex.
#define osMutexRobust (1UL<<2) ///< Robust mutex.
/* Timeout value */
#define osWaitForever (0xFFFFFFFF)
#define time_after(a,b) ((int32_t)(b) - (int32_t)(a) < 0)
#define time_before(a,b) time_after(b,a)
#define time_after_eq(a,b) ((int32_t)(a) - (int32_t)(b) >= 0)
#define time_before_eq(a,b) time_after_eq(b,a)
/* Control Block sizes */
#define osThreadCbSize sizeof(osThread_t)
#define osTimerCbSize sizeof(osTimer_t)
#define osEventFlagsCbSize sizeof(osEventFlags_t)
#define osMutexCbSize sizeof(osMutex_t)
#define osSemaphoreCbSize sizeof(osSemaphore_t)
#define osMemoryPoolCbSize sizeof(osMemoryPool_t)
#define osMessageQueueCbSize sizeof(osMessageQueue_t)
/// Memory size in bytes for Memory Pool storage.
/// \param block_count maximum number of memory blocks in memory pool.
/// \param block_size memory block size in bytes.
#define osMemoryPoolMemSize(block_count, block_size) \
(4*(block_count)*(((block_size)+3)/4))
/// Memory size in bytes for Message Queue storage.
/// \param msg_count maximum number of messages in queue.
/// \param msg_size maximum message size in bytes.
#define osMessageQueueMemSize(msg_count, msg_size) \
(4*(msg_count)*(3+(((msg_size)+3)/4)))
/*******************************************************************************
* typedefs and structures (scope: module-local)
******************************************************************************/
/// Version information.
typedef struct {
uint32_t api; ///< API version (major.minor.rev: mmnnnrrrr dec).
uint32_t kernel; ///< Kernel version (major.minor.rev: mmnnnrrrr dec).
} osVersion_t;
/// Kernel state.
typedef enum {
osKernelInactive = 0, ///< Inactive.
osKernelReady = 1, ///< Ready.
osKernelRunning = 2, ///< Running.
osKernelLocked = 3, ///< Locked.
osKernelSuspended = 4, ///< Suspended.
osKernelError = -1, ///< Error.
osKernelReserved = 0x7FFFFFFFU ///< Prevents enum down-size compiler optimization.
} osKernelState_t;
/// Status code values returned by CMSIS-RTOS functions.
typedef enum {
osOK = 0, ///< Operation completed successfully.
osError = -1, ///< Unspecified RTOS error: run-time error but no other error message fits.
osErrorTimeout = -2, ///< Operation not completed within the timeout period.
osErrorResource = -3, ///< Resource not available.
osErrorParameter = -4, ///< Parameter error.
osErrorNoMemory = -5, ///< System is out of memory: it was impossible to allocate or reserve memory for the operation.
osErrorISR = -6, ///< Not allowed in ISR context: the function cannot be called from interrupt service routines.
osStatusReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization.
} osStatus_t;
/// Priority values.
typedef enum {
osPriorityNone = 0, ///< No priority (not initialized).
osPriorityIdle = 1, ///< Reserved for Idle thread.
osPriorityLow = 2, ///< Priority: low
osPriorityLow1 = 2+1, ///< Priority: low + 1
osPriorityLow2 = 2+2, ///< Priority: low + 2
osPriorityLow3 = 2+3, ///< Priority: low + 3
osPriorityLow4 = 2+4, ///< Priority: low + 4
osPriorityBelowNormal = 7, ///< Priority: below normal
osPriorityBelowNormal1 = 7+1, ///< Priority: below normal + 1
osPriorityBelowNormal2 = 7+2, ///< Priority: below normal + 2
osPriorityBelowNormal3 = 7+3, ///< Priority: below normal + 3
osPriorityBelowNormal4 = 7+4, ///< Priority: below normal + 4
osPriorityNormal = 12, ///< Priority: normal
osPriorityNormal1 = 12+1, ///< Priority: normal + 1
osPriorityNormal2 = 12+2, ///< Priority: normal + 2
osPriorityNormal3 = 12+3, ///< Priority: normal + 3
osPriorityNormal4 = 12+4, ///< Priority: normal + 4
osPriorityAboveNormal = 17, ///< Priority: above normal
osPriorityAboveNormal1 = 17+1, ///< Priority: above normal + 1
osPriorityAboveNormal2 = 17+2, ///< Priority: above normal + 2
osPriorityAboveNormal3 = 17+3, ///< Priority: above normal + 3
osPriorityAboveNormal4 = 17+4, ///< Priority: above normal + 4
osPriorityHigh = 22, ///< Priority: high
osPriorityHigh1 = 22+1, ///< Priority: high + 1
osPriorityHigh2 = 22+2, ///< Priority: high + 2
osPriorityHigh3 = 22+3, ///< Priority: high + 3
osPriorityHigh4 = 22+4, ///< Priority: high + 4
osPriorityRealtime = 27, ///< Priority: realtime
osPriorityRealtime1 = 27+1, ///< Priority: realtime + 1
osPriorityRealtime2 = 27+2, ///< Priority: realtime + 2
osPriorityRealtime3 = 27+3, ///< Priority: realtime + 3
osPriorityRealtime4 = 27+4, ///< Priority: realtime + 4
osPriorityISR = 32, ///< Reserved for ISR deferred thread.
osPriorityError = -1, ///< System cannot determine priority or illegal priority.
osPriorityReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization.
} osPriority_t;
/// Thread state.
typedef enum {
osThreadInactive = 0, ///< Inactive.
osThreadReady = 1, ///< Ready.
osThreadRunning = 2, ///< Running.
osThreadBlocked = 3, ///< Blocked.
osThreadTerminated = 4, ///< Terminated.
osThreadError = -1, ///< Error.
osThreadReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization.
} osThreadState_t;
/// Timer type.
typedef enum {
osTimerOnce = 0, ///< One-shot timer.
osTimerPeriodic = 1 ///< Repeating timer.
} osTimerType_t;
/// Entry point of a thread.
typedef void (*osThreadFunc_t)(void *argument);
/// Timer callback function.
typedef void (*osTimerFunc_t)(void *argument);
/* Circular double-linked list queue */
typedef struct queue_s {
struct queue_s *next;
struct queue_s *prev;
} queue_t;
/* Timer Function Information */
typedef struct osTimerFinfo_s {
osTimerFunc_t func; ///< Function Pointer
void *arg; ///< Function Argument
} osTimerFinfo_t;
typedef struct winfo_msgque_s {
uint32_t msg;
uint32_t msg_prio;
} winfo_msgque_t;
typedef struct winfo_dataque_s {
uint32_t data_ptr;
} winfo_dataque_t;
typedef struct winfo_event_s {
uint32_t flags;
uint32_t options;
} winfo_event_t;
/*
* Definition of wait information in thread control block
*/
typedef struct winfo_s {
union {
winfo_msgque_t msgque;
winfo_dataque_t dataque;
winfo_event_t event;
};
uint32_t ret_val;
} winfo_t;
/// @details Thread ID identifies the thread.
typedef void *osThreadId_t;
/// \details Timer ID identifies the timer.
typedef void *osTimerId_t;
/// @details Event Flags ID identifies the event flags.
typedef void *osEventFlagsId_t;
/// \details Semaphore ID identifies the semaphore.
typedef void *osSemaphoreId_t;
/// \details Mutex ID identifies the mutex.
typedef void *osMutexId_t;
/// \details Message Queue ID identifies the message queue.
typedef void *osMessageQueueId_t;
/// \details Data Queue ID identifies the data queue.
typedef void *osDataQueueId_t;
/// \details Memory Pool ID identifies the memory pool.
typedef void *osMemoryPoolId_t;
/* Thread Control Block */
typedef struct osThread_s {
uint32_t stk; ///< Address of thread's top of stack
queue_t thread_que; ///< Queue is used to include thread in ready/wait lists
queue_t mutex_que; ///< List of all mutexes that tack locked
void *stk_mem; ///< Base address of thread's stack space
uint32_t stk_size; ///< Task's stack size (in bytes)
int8_t base_priority; ///< Task base priority
int8_t priority; ///< Task current priority
uint8_t id; ///< ID for verification(is it a thread or another object?)
uint8_t state; ///< Task state
const char *name; ///< Object Name
winfo_t winfo; ///< Wait information
queue_t delay_que; ///< Queue is used to include thread id delay list
uint32_t delay; ///< Delay Time
} osThread_t;
/* Semaphore Control Block */
typedef struct osSemaphore_s {
uint8_t id; ///< Object Identifier
uint8_t reserved_state; ///< Object State (not used)
uint8_t flags; ///< Object Flags
uint8_t reserved;
const char *name; ///< Object Name
queue_t wait_queue; ///< Waiting Threads queue
uint16_t count; ///< Current number of tokens
uint16_t max_count; ///< Maximum number of tokens
} osSemaphore_t;
/* Event Flags Control Block */
typedef struct osEventFlags_s {
uint8_t id; ///< Object Identifier
uint8_t reserved_state; ///< Object State (not used)
uint8_t flags; ///< Object Flags
uint8_t reserved;
const char *name; ///< Object Name
queue_t wait_queue; ///< Waiting Threads queue
uint32_t event_flags; ///< Initial value of the eventflag bit pattern
} osEventFlags_t;
/* - Memory Pool definitions -----------------------------------------------*/
/* Memory Pool Information */
typedef struct osMemoryPoolInfo_s {
uint32_t max_blocks; ///< Maximum number of Blocks
uint32_t used_blocks; ///< Number of used Blocks
uint32_t block_size; ///< Block Size
void *block_base; ///< Block Memory Base Address
void *block_lim; ///< Block Memory Limit Address
void *block_free; ///< First free Block Address
} osMemoryPoolInfo_t;
/* Memory Pool Control Block */
typedef struct osMemoryPool_s {
uint8_t id; ///< Object Identifier
uint8_t reserved_state; ///< Object State (not used)
uint8_t flags; ///< Object Flags
uint8_t reserved;
const char *name; ///< Object Name
queue_t wait_queue; ///< Waiting Threads queue
osMemoryPoolInfo_t info; ///< Memory Pool Info
} osMemoryPool_t;
/* - Message Queue definitions -----------------------------------------------*/
/* Message Control Block */
typedef struct osMessage_s {
uint8_t id; ///< Object Identifier
uint8_t reserved_state; ///< Object State (not used)
uint8_t flags; ///< Object Flags
uint8_t priority; ///< Message Priority
queue_t msg_que; ///< Entry is used to include message in the list
} osMessage_t;
/* Message Queue Control Block */
typedef struct osMessageQueue_s {
uint8_t id; ///< Object Identifier
uint8_t reserved_state; ///< Object State (not used)
uint8_t flags; ///< Object Flags
uint8_t reserved;
const char *name; ///< Object Name
queue_t wait_put_queue; ///< Queue of threads waiting to send a message
queue_t wait_get_queue; ///< Queue of threads waiting to receive a message
osMemoryPoolInfo_t mp_info; ///< Memory Pool Info
uint32_t msg_size; ///< Message size in bytes
uint32_t msg_count; ///< Number of queued Messages
queue_t msg_queue; ///< List of all queued Messages
} osMessageQueue_t;
/* Data Queue Control Block */
typedef struct osDataQueue_s {
uint8_t id; ///< Object Identifier
uint8_t reserved_state; ///< Object State (not used)
uint8_t flags; ///< Object Flags
uint8_t reserved;
const char *name; ///< Object Name
queue_t wait_put_queue; ///< Queue of threads waiting to send a data
queue_t wait_get_queue; ///< Queue of threads waiting to receive a data
uint32_t max_data_count; ///< Maximum number of Data
uint32_t data_size; ///< Data size in bytes
uint32_t data_count; ///< Number of queued Data
uint32_t data_limit; ///< Data Limit
uint32_t head;
uint32_t tail;
uint8_t *dq_mem; ///< Data Memory Address
} osDataQueue_t;
/* Mutex Control Block */
typedef struct osMutex_s {
uint8_t id; ///< Object Identifier
uint8_t reserved_state; ///< Object State (not used)
uint8_t flags; ///< Object Flags
uint8_t attr; ///< Object Attributes
const char *name; ///< Object Name
queue_t wait_que; ///< List of tasks that wait a mutex
queue_t mutex_que; ///< To include in thread's locked mutexes list (if any)
osThread_t *holder; ///< Current mutex owner(thread that locked mutex)
uint32_t cnt; ///< Lock counter
} osMutex_t;
/* Timer Control Block */
typedef struct osTimer_s {
uint8_t id; ///< Object Identifier
uint8_t state; ///< Object State
uint8_t flags; ///< Object Flags
uint8_t type; ///< Timer Type (Periodic/One-shot)
const char *name; ///< Object Name
uint32_t load; ///< Timer Load value
uint32_t time; ///< Event time
queue_t timer_que; ///< Timer event queue
osTimerFinfo_t finfo; ///< Timer Function Info
} osTimer_t;
#ifndef TZ_MODULEID_T
#define TZ_MODULEID_T
/// \details Data type that identifies secure software modules called by a process.
typedef uint32_t TZ_ModuleId_t;
#endif
/// Attributes structure for thread.
typedef struct {
const char *name; ///< name of the thread
uint32_t attr_bits; ///< attribute bits
void *cb_mem; ///< memory for control block
uint32_t cb_size; ///< size of provided memory for control block
void *stack_mem; ///< memory for stack
uint32_t stack_size; ///< size of stack
osPriority_t priority; ///< initial thread priority (default: osPriorityNormal)
TZ_ModuleId_t tz_module; ///< TrustZone module identifier
uint32_t reserved; ///< reserved (must be 0)
} osThreadAttr_t;
/// Attributes structure for timer.
typedef struct {
const char *name; ///< name of the timer
uint32_t attr_bits; ///< attribute bits
void *cb_mem; ///< memory for control block
uint32_t cb_size; ///< size of provided memory for control block
} osTimerAttr_t;
/// Attributes structure for event flags.
typedef struct {
const char *name; ///< name of the event flags
uint32_t attr_bits; ///< attribute bits
void *cb_mem; ///< memory for control block
uint32_t cb_size; ///< size of provided memory for control block
} osEventFlagsAttr_t;
/// Attributes structure for semaphore.
typedef struct {
const char *name; ///< name of the semaphore
uint32_t attr_bits; ///< attribute bits
void *cb_mem; ///< memory for control block
uint32_t cb_size; ///< size of provided memory for control block
} osSemaphoreAttr_t;
/// Attributes structure for mutex.
typedef struct {
const char *name; ///< name of the mutex
uint32_t attr_bits; ///< attribute bits
void *cb_mem; ///< memory for control block
uint32_t cb_size; ///< size of provided memory for control block
} osMutexAttr_t;
/// Attributes structure for message queue.
typedef struct {
const char *name; ///< name of the message queue
uint32_t attr_bits; ///< attribute bits
void *cb_mem; ///< memory for control block
uint32_t cb_size; ///< size of provided memory for control block
void *mq_mem; ///< memory for data storage
uint32_t mq_size; ///< size of provided memory for data storage
} osMessageQueueAttr_t;
/// Attributes structure for data queue.
typedef struct osDataQueueAttr_s {
const char *name; ///< name of the data queue
uint32_t attr_bits; ///< attribute bits
void *cb_mem; ///< memory for control block
uint32_t cb_size; ///< size of provided memory for control block
void *dq_mem; ///< memory for data storage
uint32_t dq_size; ///< size of provided memory for data storage
} osDataQueueAttr_t;
/// Attributes structure for memory pool.
typedef struct {
const char *name; ///< name of the memory pool
uint32_t attr_bits; ///< attribute bits
void *cb_mem; ///< memory for control block
uint32_t cb_size; ///< size of provided memory for control block
void *mp_mem; ///< memory for data storage
uint32_t mp_size; ///< size of provided memory for data storage
} osMemoryPoolAttr_t;
/*******************************************************************************
* exported variables
******************************************************************************/
/*******************************************************************************
* OS External Functions
******************************************************************************/
/* OS Idle Thread */
extern void osIdleThread(void *argument);
/* SysTick timer initialization */
extern void osSysTickInit(uint32_t hz);
/*******************************************************************************
* Kernel Information and Control
******************************************************************************/
/**
* @fn osStatus_t osKernelInitialize(void)
* @brief Initialize the RTOS Kernel.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osKernelInitialize(void);
/**
* @fn osStatus_t osKernelGetInfo(osVersion_t *version, char *id_buf, uint32_t id_size)
* @brief Get RTOS Kernel Information.
* @param[out] version pointer to buffer for retrieving version information.
* @param[out] id_buf pointer to buffer for retrieving kernel identification string.
* @param[in] id_size size of buffer for kernel identification string.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osKernelGetInfo(osVersion_t *version, char *id_buf, uint32_t id_size);
/**
* @fn osKernelState_t osKernelGetState(void)
* @brief Get the current RTOS Kernel state.
* @return current RTOS Kernel state.
*/
osKernelState_t osKernelGetState(void);
/**
* @fn osStatus_t osKernelStart(void)
* @brief Start the RTOS Kernel scheduler.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osKernelStart(void);
/**
* @fn int32_t osKernelLock(void)
* @brief Lock the RTOS Kernel scheduler.
* @return previous lock state (1 - locked, 0 - not locked, error code if negative).
*/
int32_t osKernelLock(void);
/**
* @fn int32_t osKernelUnlock(void)
* @brief Unlock the RTOS Kernel scheduler.
* @return previous lock state (1 - locked, 0 - not locked, error code if negative).
*/
int32_t osKernelUnlock(void);
/**
* @fn int32_t osKernelRestoreLock(int32_t lock)
* @brief Restore the RTOS Kernel scheduler lock state.
* @param[in] lock lock state obtained by \ref osKernelLock or \ref osKernelUnlock.
* @return new lock state (1 - locked, 0 - not locked, error code if negative).
*/
int32_t osKernelRestoreLock(int32_t lock);
/**
* @fn uint32_t osKernelGetTickCount(void)
* @brief Get the RTOS kernel tick count.
* @return RTOS kernel current tick count.
*/
uint32_t osKernelGetTickCount(void);
/**
* @fn uint32_t osKernelGetTickFreq(void)
* @brief Get the RTOS kernel tick frequency.
* @return frequency of the kernel tick in hertz, i.e. kernel ticks per second.
*/
uint32_t osKernelGetTickFreq(void);
/*******************************************************************************
* Timer Management
******************************************************************************/
/**
* @fn osTimerId_t osTimerNew(osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr)
* @brief Create and Initialize a timer.
* @param[in] func function pointer to callback function.
* @param[in] type \ref osTimerOnce for one-shot or \ref osTimerPeriodic for periodic behavior.
* @param[in] argument argument to the timer callback function.
* @param[in] attr timer attributes; NULL: default values.
* @return timer ID for reference by other functions or NULL in case of error.
*/
osTimerId_t osTimerNew(osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr);
/**
* @fn const char *osTimerGetName(osTimerId_t timer_id)
* @brief Get name of a timer.
* @param[in] timer_id timer ID obtained by \ref osTimerNew.
* @return name as null-terminated string or NULL in case of an error.
*/
const char *osTimerGetName(osTimerId_t timer_id);
/**
* @fn osStatus_t osTimerStart(osTimerId_t timer_id, uint32_t ticks)
* @brief Start or restart a timer.
* @param[in] timer_id timer ID obtained by \ref osTimerNew.
* @param[in] ticks \ref CMSIS_RTOS_TimeOutValue "time ticks" value of the timer.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osTimerStart(osTimerId_t timer_id, uint32_t ticks);
/**
* @fn osStatus_t osTimerStop(osTimerId_t timer_id)
* @brief Stop a timer.
* @param[in] timer_id timer ID obtained by \ref osTimerNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osTimerStop(osTimerId_t timer_id);
/**
* @fn uint32_t osTimerIsRunning(osTimerId_t timer_id)
* @brief Check if a timer is running.
* @param[in] timer_id timer ID obtained by \ref osTimerNew.
* @return 0 not running or an error occurred, 1 running.
*/
uint32_t osTimerIsRunning(osTimerId_t timer_id);
/**
* @fn osStatus_t osTimerDelete(osTimerId_t timer_id)
* @brief Delete a timer.
* @param[in] timer_id timer ID obtained by \ref osTimerNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osTimerDelete(osTimerId_t timer_id);
/*******************************************************************************
* Thread Management
******************************************************************************/
/**
* @fn osThreadId_t osThreadNew(osThreadFunc_t func, void *argument, const osThreadAttr_t *attr)
* @brief Create a thread and add it to Active Threads.
* @param[in] func thread function.
* @param[in] argument pointer that is passed to the thread function as start argument.
* @param[in] attr thread attributes.
* @return thread ID for reference by other functions or NULL in case of error.
*/
osThreadId_t osThreadNew(osThreadFunc_t func, void *argument, const osThreadAttr_t *attr);
/**
* @fn const char *osThreadGetName(osThreadId_t thread_id)
* @brief Get name of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return name as null-terminated string.
*/
const char *osThreadGetName(osThreadId_t thread_id);
/**
* @fn osThreadId_t osThreadGetId(void)
* @brief Return the thread ID of the current running thread.
* @return thread ID for reference by other functions or NULL in case of error.
*/
osThreadId_t osThreadGetId(void);
/**
* @fn osThreadState_t osThreadGetState(osThreadId_t thread_id)
* @brief Get current thread state of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return current thread state of the specified thread.
*/
osThreadState_t osThreadGetState(osThreadId_t thread_id);
/**
* @fn uint32_t osThreadGetStackSize(osThreadId_t thread_id)
* @brief Get stack size of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return stack size in bytes.
*/
uint32_t osThreadGetStackSize(osThreadId_t thread_id);
/**
* @fn uint32_t osThreadGetStackSpace(osThreadId_t thread_id)
* @brief Get available stack space of a thread based on stack watermark recording during execution.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return remaining stack space in bytes.
*/
uint32_t osThreadGetStackSpace(osThreadId_t thread_id);
/**
* @fn osStatus_t osThreadSetPriority(osThreadId_t thread_id, osPriority_t priority)
* @brief Change priority of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @param[in] priority new priority value for the thread function.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osThreadSetPriority(osThreadId_t thread_id, osPriority_t priority);
/**
* @fn osPriority_t osThreadGetPriority(osThreadId_t thread_id)
* @brief Get current priority of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return current priority value of the specified thread.
*/
osPriority_t osThreadGetPriority(osThreadId_t thread_id);
/**
* @fn osStatus_t osThreadYield(void)
* @brief Pass control to next thread that is in state READY.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osThreadYield(void);
/**
* @fn osStatus_t osThreadSuspend(osThreadId_t thread_id)
* @brief Suspend execution of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osThreadSuspend(osThreadId_t thread_id);
/**
* @fn osStatus_t osThreadResume(osThreadId_t thread_id)
* @brief Resume execution of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osThreadResume(osThreadId_t thread_id);
/**
* @fn void osThreadExit(void)
* @brief Terminate execution of current running thread.
*/
__NO_RETURN void osThreadExit(void);
/**
* @fn osStatus_t osThreadTerminate(osThreadId_t thread_id)
* @brief Terminate execution of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osThreadTerminate(osThreadId_t thread_id);
/**
* @fn uint32_t osThreadGetCount(void)
* @brief Get number of active threads.
* @return number of active threads or 0 in case of an error.
*/
uint32_t osThreadGetCount(void);
/**
* @fn uint32_t osThreadEnumerate(osThreadId_t *thread_array, uint32_t array_items)
* @brief Enumerate active threads.
* @param[out] thread_array pointer to array for retrieving thread IDs.
* @param[in] array_items maximum number of items in array for retrieving thread IDs.
* @return number of enumerated threads or 0 in case of an error.
*/
uint32_t osThreadEnumerate(osThreadId_t *thread_array, uint32_t array_items);
/*******************************************************************************
* Generic Wait Functions
******************************************************************************/
/**
* @fn osStatus_t osDelay(uint32_t ticks)
* @brief Wait for Timeout (Time Delay).
* @param[in] ticks \ref CMSIS_RTOS_TimeOutValue "time ticks" value
* @return status code that indicates the execution status of the function.
*/
osStatus_t osDelay(uint32_t ticks);
/**
* @fn osStatus_t osDelayUntil(uint32_t ticks)
* @brief Wait until specified time.
* @param[in] ticks absolute time in ticks
* @return status code that indicates the execution status of the function.
*/
osStatus_t osDelayUntil(uint32_t ticks);
/*******************************************************************************
* Semaphores
******************************************************************************/
/**
* @fn osSemaphoreId_t osSemaphoreNew(uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t *attr)
* @brief Create and Initialize a Semaphore object.
* @param[in] max_count maximum number of available tokens.
* @param[in] initial_count initial number of available tokens.
* @param[in] attr semaphore attributes.
* @return semaphore ID for reference by other functions or NULL in case of error.
*/
osSemaphoreId_t osSemaphoreNew(uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t *attr);
/**
* @fn const char *osSemaphoreGetName(osSemaphoreId_t semaphore_id)
* @brief Get name of a Semaphore object.
* @param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew.
* @return name as null-terminated string or NULL in case of an error.
*/
const char *osSemaphoreGetName(osSemaphoreId_t semaphore_id);
/**
* @fn osStatus_t osSemaphoreAcquire(osSemaphoreId_t semaphore_id, uint32_t timeout)
* @brief Acquire a Semaphore token or timeout if no tokens are available.
* @param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew.
* @param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osSemaphoreAcquire(osSemaphoreId_t semaphore_id, uint32_t timeout);
/**
* @fn osStatus_t osSemaphoreRelease(osSemaphoreId_t semaphore_id)
* @brief Release a Semaphore token that was acquired by osSemaphoreAcquire.
* @param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osSemaphoreRelease(osSemaphoreId_t semaphore_id);
/**
* @fn uint32_t osSemaphoreGetCount(osSemaphoreId_t semaphore_id)
* @brief Get current Semaphore token count.
* @param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew.
* @return number of tokens available or 0 in case of an error.
*/
uint32_t osSemaphoreGetCount(osSemaphoreId_t semaphore_id);
/**
* @fn osStatus_t osSemaphoreDelete(osSemaphoreId_t semaphore_id)
* @brief Delete a Semaphore object.
* @param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osSemaphoreDelete(osSemaphoreId_t semaphore_id);
/*******************************************************************************
* Message Queue
******************************************************************************/
/**
* @fn osMessageQueueId_t osMessageQueueNew(uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr)
* @brief Create and Initialize a Message Queue object.
* @param[in] msg_count maximum number of messages in queue.
* @param[in] msg_size maximum message size in bytes.
* @param[in] attr message queue attributes.
* @return message queue ID for reference by other functions or NULL in case of error.
*/
osMessageQueueId_t osMessageQueueNew(uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr);
/**
* @fn const char *osMessageQueueGetName(osMessageQueueId_t mq_id)
* @brief Get name of a Message Queue object.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @return name as null-terminated string or NULL in case of an error.
*/
const char *osMessageQueueGetName(osMessageQueueId_t mq_id);
/**
* @fn osStatus_t osMessageQueuePut(osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout)
* @brief Put a Message into a Queue or timeout if Queue is full.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @param[in] msg_ptr pointer to buffer with message to put into a queue.
* @param[in] msg_prio message priority.
* @param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osMessageQueuePut(osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout);
/**
* @fn osStatus_t osMessageQueueGet(osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout)
* @brief Get a Message from a Queue or timeout if Queue is empty.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @param[out] msg_ptr pointer to buffer for message to get from a queue.
* @param[out] msg_prio pointer to buffer for message priority or NULL.
* @param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osMessageQueueGet(osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout);
/**
* @fn uint32_t osMessageQueueGetCapacity(osMessageQueueId_t mq_id)
* @brief Get maximum number of messages in a Message Queue.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @return maximum number of messages or 0 in case of an error.
*/
uint32_t osMessageQueueGetCapacity(osMessageQueueId_t mq_id);
/**
* @fn uint32_t osMessageQueueGetMsgSize(osMessageQueueId_t mq_id)
* @brief Get maximum message size in bytes.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @return maximum message size in bytes or 0 in case of an error.
*/
uint32_t osMessageQueueGetMsgSize(osMessageQueueId_t mq_id);
/**
* @fn uint32_t osMessageQueueGetCount(osMessageQueueId_t mq_id)
* @brief Get number of queued messages in a Message Queue.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @return number of queued messages or 0 in case of an error.
*/
uint32_t osMessageQueueGetCount(osMessageQueueId_t mq_id);
/**
* @fn uint32_t osMessageQueueGetSpace(osMessageQueueId_t mq_id)
* @brief Get number of available slots for messages in a Message Queue.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @return number of available slots for messages or 0 in case of an error.
*/
uint32_t osMessageQueueGetSpace(osMessageQueueId_t mq_id);
/**
* @fn osStatus_t osMessageQueueReset(osMessageQueueId_t mq_id)
* @brief Reset a Message Queue to initial empty state.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osMessageQueueReset(osMessageQueueId_t mq_id);
/**
* @fn osStatus_t osMessageQueueDelete(osMessageQueueId_t mq_id)
* @brief Delete a Message Queue object.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osMessageQueueDelete(osMessageQueueId_t mq_id);
/*******************************************************************************
* Data Queue
******************************************************************************/
/**
* @fn osDataQueueId_t osDataQueueNew(uint32_t data_count, uint32_t data_size, const osDataQueueAttr_t *attr)
* @brief Create and Initialize a Data Queue object.
* @param[in] data_count maximum number of data in queue.
* @param[in] data_size maximum data size in bytes.
* @param[in] attr data queue attributes.
* @return data queue ID for reference by other functions or NULL in case of error.
*/
osDataQueueId_t osDataQueueNew(uint32_t data_count, uint32_t data_size, const osDataQueueAttr_t *attr);
/**
* @fn const char *osDataQueueGetName(osDataQueueId_t dq_id)
* @brief Get name of a Data Queue object.
* @param[in] dq_id data queue ID obtained by \ref osDataQueueNew.
* @return name as null-terminated string or NULL in case of an error.
*/
const char *osDataQueueGetName(osDataQueueId_t dq_id);
/**
* @fn osStatus_t osDataQueuePut(osDataQueueId_t dq_id, const void *data_ptr, uint32_t timeout)
* @brief Put a Data into a Queue or timeout if Queue is full.
* @param[in] dq_id data queue ID obtained by \ref osDataQueueNew.
* @param[in] data_ptr pointer to buffer with data to put into a queue.
* @param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osDataQueuePut(osDataQueueId_t dq_id, const void *data_ptr, uint32_t timeout);
/**
* @fn osStatus_t osDataQueueGet(osDataQueueId_t dq_id, void *data_ptr, uint32_t timeout)
* @brief Get a Data from a Queue or timeout if Queue is empty.
* @param[in] dq_id data queue ID obtained by \ref osDataQueueNew.
* @param[out] data_ptr pointer to buffer for data to get from a queue.
* @param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osDataQueueGet(osDataQueueId_t dq_id, void *data_ptr, uint32_t timeout);
/**
* @fn uint32_t osDataQueueGetCapacity(osDataQueueId_t dq_id)
* @brief Get maximum number of data in a Data Queue.
* @param[in] dq_id data queue ID obtained by \ref osDataQueueNew.
* @return maximum number of data or 0 in case of an error.
*/
uint32_t osDataQueueGetCapacity(osDataQueueId_t dq_id);
/**
* @fn uint32_t osDataQueueGetDataSize(osDataQueueId_t dq_id)
* @brief Get maximum data size in bytes.
* @param[in] dq_id data queue ID obtained by \ref osDataQueueNew.
* @return maximum data size in bytes or 0 in case of an error.
*/
uint32_t osDataQueueGetDataSize(osDataQueueId_t dq_id);
/**
* @fn uint32_t osDataQueueGetCount(osDataQueueId_t dq_id)
* @brief Get number of queued data in a Data Queue.
* @param[in] dq_id data queue ID obtained by \ref osDataQueueNew.
* @return number of queued data or 0 in case of an error.
*/
uint32_t osDataQueueGetCount(osDataQueueId_t dq_id);
/**
* @fn uint32_t osDataQueueGetSpace(osDataQueueId_t dq_id)
* @brief Get number of available slots for data in a Data Queue.
* @param[in] dq_id data queue ID obtained by \ref osDataQueueNew.
* @return number of available slots for data or 0 in case of an error.
*/
uint32_t osDataQueueGetSpace(osDataQueueId_t dq_id);
/**
* @fn osStatus_t osDataQueueReset(osDataQueueId_t dq_id)
* @brief Reset a Data Queue to initial empty state.
* @param[in] dq_id data queue ID obtained by \ref osDataQueueNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osDataQueueReset(osDataQueueId_t dq_id);
/**
* @fn osStatus_t osDataQueueDelete(osDataQueueId_t dq_id)
* @brief Delete a Data Queue object.
* @param[in] dq_id data queue ID obtained by \ref osDataQueueNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osDataQueueDelete(osDataQueueId_t dq_id);
/*******************************************************************************
* Event Flags
******************************************************************************/
/**
* @fn osEventFlagsId_t osEventFlagsNew(const osEventFlagsAttr_t *attr)
* @brief Create and Initialize an Event Flags object.
* @param[in] attr event flags attributes.
* @return event flags ID for reference by other functions or NULL in case of error.
*/
osEventFlagsId_t osEventFlagsNew(const osEventFlagsAttr_t *attr);
/**
* @fn const char *osEventFlagsGetName(osEventFlagsId_t ef_id)
* @brief Get name of an Event Flags object.
* @param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
* @return name as null-terminated string or NULL in case of an error.
*/
const char *osEventFlagsGetName(osEventFlagsId_t ef_id);
/**
* @fn uint32_t osEventFlagsSet(osEventFlagsId_t ef_id, uint32_t flags)
* @brief Set the specified Event Flags.
* @param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
* @param[in] flags specifies the flags that shall be set.
* @return event flags after setting or error code if highest bit set.
*/
uint32_t osEventFlagsSet(osEventFlagsId_t ef_id, uint32_t flags);
/**
* @fn uint32_t osEventFlagsClear(osEventFlagsId_t ef_id, uint32_t flags)
* @brief Clear the specified Event Flags.
* @param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
* @param[in] flags specifies the flags that shall be cleared.
* @return event flags before clearing or error code if highest bit set.
*/
uint32_t osEventFlagsClear(osEventFlagsId_t ef_id, uint32_t flags);
/**
* @fn uint32_t osEventFlagsGet(osEventFlagsId_t ef_id)
* @brief Get the current Event Flags.
* @param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
* @return current event flags or 0 in case of an error.
*/
uint32_t osEventFlagsGet(osEventFlagsId_t ef_id);
/**
* @fn uint32_t osEventFlagsWait(osEventFlagsId_t ef_id, uint32_t flags, uint32_t options, uint32_t timeout)
* @brief Wait for one or more Event Flags to become signaled.
* @param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
* @param[in] flags specifies the flags to wait for.
* @param[in] options specifies flags options (osFlagsXxxx).
* @param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
* @return event flags before clearing or error code if highest bit set.
*/
uint32_t osEventFlagsWait(osEventFlagsId_t ef_id, uint32_t flags, uint32_t options, uint32_t timeout);
/**
* @fn osStatus_t osEventFlagsDelete(osEventFlagsId_t ef_id)
* @brief Delete an Event Flags object.
* @param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osEventFlagsDelete(osEventFlagsId_t ef_id);
/*******************************************************************************
* Memory Pool
******************************************************************************/
/**
* @fn osMemoryPoolId_t osMemoryPoolNew(uint32_t block_count, uint32_t block_size, const osMemoryPoolAttr_t *attr)
* @brief Create and Initialize a Memory Pool object.
* @param[in] block_count maximum number of memory blocks in memory pool.
* @param[in] block_size memory block size in bytes.
* @param[in] attr memory pool attributes.
* @return memory pool ID for reference by other functions or NULL in case of error.
*/
osMemoryPoolId_t osMemoryPoolNew(uint32_t block_count, uint32_t block_size, const osMemoryPoolAttr_t *attr);
/**
* @fn const char *osMemoryPoolGetName(osMemoryPoolId_t mp_id)
* @brief Get name of a Memory Pool object.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @return name as null-terminated string or NULL in case of an error.
*/
const char *osMemoryPoolGetName(osMemoryPoolId_t mp_id);
/**
* @fn void *osMemoryPoolAlloc(osMemoryPoolId_t mp_id, uint32_t timeout)
* @brief Allocate a memory block from a Memory Pool.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
* @return address of the allocated memory block or NULL in case of no memory is available.
*/
void *osMemoryPoolAlloc(osMemoryPoolId_t mp_id, uint32_t timeout);
/**
* @fn osStatus_t osMemoryPoolFree(osMemoryPoolId_t mp_id, void *block)
* @brief Return an allocated memory block back to a Memory Pool.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @param[in] block address of the allocated memory block to be returned to the memory pool.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osMemoryPoolFree(osMemoryPoolId_t mp_id, void *block);
/**
* @fn uint32_t osMemoryPoolGetCapacity(osMemoryPoolId_t mp_id)
* @brief Get maximum number of memory blocks in a Memory Pool.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @return maximum number of memory blocks or 0 in case of an error.
*/
uint32_t osMemoryPoolGetCapacity(osMemoryPoolId_t mp_id);
/**
* @fn uint32_t osMemoryPoolGetBlockSize(osMemoryPoolId_t mp_id)
* @brief Get memory block size in a Memory Pool.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @return memory block size in bytes or 0 in case of an error.
*/
uint32_t osMemoryPoolGetBlockSize(osMemoryPoolId_t mp_id);
/**
* @fn uint32_t osMemoryPoolGetCount(osMemoryPoolId_t mp_id)
* @brief Get number of memory blocks used in a Memory Pool.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @return number of memory blocks used or 0 in case of an error.
*/
uint32_t osMemoryPoolGetCount(osMemoryPoolId_t mp_id);
/**
* @fn uint32_t osMemoryPoolGetSpace(osMemoryPoolId_t mp_id)
* @brief Get number of memory blocks available in a Memory Pool.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @return number of memory blocks available or 0 in case of an error.
*/
uint32_t osMemoryPoolGetSpace(osMemoryPoolId_t mp_id);
/**
* @fn osStatus_t osMemoryPoolDelete(osMemoryPoolId_t mp_id)
* @brief Delete a Memory Pool object.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osMemoryPoolDelete(osMemoryPoolId_t mp_id);
/*******************************************************************************
* Mutex Management
******************************************************************************/
/**
* @fn osMutexId_t osMutexNew(const osMutexAttr_t *attr)
* @brief Create and Initialize a Mutex object.
* @param[in] attr mutex attributes.
* @return mutex ID for reference by other functions or NULL in case of error.
*/
osMutexId_t osMutexNew(const osMutexAttr_t *attr);
/**
* @fn const char *osMutexGetName(osMutexId_t mutex_id)
* @brief Get name of a Mutex object.
* @param[in] mutex_id mutex ID obtained by \ref osMutexNew.
* @return name as null-terminated string or NULL in case of an error.
*/
const char *osMutexGetName(osMutexId_t mutex_id);
/**
* @fn osStatus_t osMutexAcquire(osMutexId_t mutex_id, uint32_t timeout)
* @brief Acquire a Mutex or timeout if it is locked.
* @param[in] mutex_id mutex ID obtained by \ref osMutexNew.
* @param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osMutexAcquire(osMutexId_t mutex_id, uint32_t timeout);
/**
* @fn osStatus_t osMutexRelease(osMutexId_t mutex_id)
* @brief Release a Mutex that was acquired by \ref osMutexAcquire.
* @param[in] mutex_id mutex ID obtained by \ref osMutexNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osMutexRelease(osMutexId_t mutex_id);
/**
* @fn osThreadId_t osMutexGetOwner(osMutexId_t mutex_id)
* @brief Get Thread which owns a Mutex object.
* @param[in] mutex_id mutex ID obtained by \ref osMutexNew.
* @return thread ID of owner thread or NULL when mutex was not acquired.
*/
osThreadId_t osMutexGetOwner(osMutexId_t mutex_id);
/**
* @fn osStatus_t osMutexDelete(osMutexId_t mutex_id)
* @brief Delete a Mutex object.
* @param[in] mutex_id mutex ID obtained by \ref osMutexNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osMutexDelete(osMutexId_t mutex_id);
/* -------- End of section using anonymous unions and disabling warnings -------- */
#if defined (__CC_ARM)
#pragma pop
#elif defined (__ICCARM__)
/* leave anonymous unions enabled */
#elif (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
#pragma clang diagnostic pop
#elif defined (__GNUC__)
/* anonymous unions are enabled by default */
#elif defined (__TMS470__)
/* anonymous unions are enabled by default */
#elif defined (__TASKING__)
#pragma warning restore
#elif defined (__CSMC__)
/* anonymous unions are enabled by default */
#else
#warning Not supported compiler type
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif // _UKERNEL_H_
/*------------------------------ End of file ---------------------------------*/
|
koshkin-sergey/ukernel
|
src/kernel/kernel.c
|
<filename>src/kernel/kernel.c
/*
* Copyright (C) 2017-2019 <NAME> <<EMAIL>>
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Project: uKernel real-time kernel
*/
/**
* @file
*
* Kernel system routines.
*
*/
/*******************************************************************************
* includes
******************************************************************************/
#include "string.h"
#include "os_lib.h"
/*******************************************************************************
* external declarations
******************************************************************************/
/*******************************************************************************
* defines and macros (scope: module-local)
******************************************************************************/
/*******************************************************************************
* typedefs and structures (scope: module-local)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-exported)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-local)
******************************************************************************/
/*******************************************************************************
* function prototypes (scope: module-local)
******************************************************************************/
/*******************************************************************************
* function implementations (scope: module-local)
******************************************************************************/
void osTick_Handler(void)
{
osTimer_t *timer;
queue_t *timer_queue;
++osInfo.kernel.tick;
/* Process Timers */
if (osInfo.timer_semaphore != NULL) {
timer_queue = &osInfo.timer_queue;
if (!isQueueEmpty(timer_queue)) {
timer = GetTimerByQueue(timer_queue->next);
if (time_before_eq(timer->time, osInfo.kernel.tick)) {
osSemaphoreRelease(osInfo.timer_semaphore);
}
}
}
BEGIN_CRITICAL_SECTION
/* Process Thread Delays */
if (libThreadDelayTick() == true) {
libThreadDispatch(NULL);
}
END_CRITICAL_SECTION
}
static osStatus_t KernelInitialize(void)
{
if (osInfo.kernel.state == osKernelReady) {
return osOK;
}
if (osInfo.kernel.state != osKernelInactive) {
return osError;
}
/* Initialize osInfo */
memset(&osInfo, 0, sizeof(osInfo));
for (uint32_t i = 0U; i < NUM_PRIORITY; i++) {
QueueReset(&osInfo.ready_list[i]);
}
QueueReset(&osInfo.timer_queue);
QueueReset(&osInfo.delay_queue);
osInfo.kernel.state = osKernelReady;
return (osOK);
}
static osStatus_t KernelGetInfo(osVersion_t *version, char *id_buf, uint32_t id_size)
{
if (version != NULL) {
version->api = osVersionAPI;
version->kernel = osVersionKernel;
}
if ((id_buf != NULL) && (id_size != 0U)) {
if (id_size > sizeof(osKernelId)) {
id_size = sizeof(osKernelId);
}
memcpy(id_buf, osKernelId, id_size);
}
return (osOK);
}
static osKernelState_t KernelGetState(void)
{
return (osInfo.kernel.state);
}
static osStatus_t KernelStart(void)
{
osThread_t *thread;
uint32_t sh;
if (osInfo.kernel.state != osKernelReady) {
return osError;
}
/* Thread startup (Idle and Timer Thread) */
if (!libThreadStartup()) {
return osError;
}
/* Setup SVC and PendSV System Service Calls */
sh = SystemIsrInit();
osInfo.base_priority = (osConfig.max_api_interrupt_priority << sh) & 0x000000FFU;
/* Setup RTOS Tick */
osSysTickInit(osConfig.tick_freq);
/* Switch to Ready Thread with highest Priority */
thread = libThreadHighestPrioGet();
if (thread == NULL) {
return osError;
}
libThreadSwitch(thread);
if ((osConfig.flags & osConfigPrivilegedMode) != 0U) {
// Privileged Thread mode & PSP
__set_CONTROL(0x02U);
} else {
// Unprivileged Thread mode & PSP
__set_CONTROL(0x03U);
}
osInfo.kernel.state = osKernelRunning;
return (osOK);
}
static int32_t KernelLock(void)
{
int32_t lock;
switch (osInfo.kernel.state) {
case osKernelRunning:
osInfo.kernel.state = osKernelLocked;
lock = 0;
break;
case osKernelLocked:
lock = 1;
break;
default:
lock = (int32_t)osError;
break;
}
return (lock);
}
static int32_t KernelUnlock(void)
{
int32_t lock;
switch (osInfo.kernel.state) {
case osKernelRunning:
lock = 0;
break;
case osKernelLocked:
osInfo.kernel.state = osKernelRunning;
lock = 1;
break;
default:
lock = (int32_t)osError;
break;
}
return (lock);
}
static int32_t KernelRestoreLock(int32_t lock)
{
int32_t lock_new;
switch (osInfo.kernel.state) {
case osKernelRunning:
case osKernelLocked:
switch (lock) {
case 0:
osInfo.kernel.state = osKernelRunning;
lock_new = 0;
break;
case 1:
osInfo.kernel.state = osKernelLocked;
lock_new = 1;
break;
default:
lock_new = (int32_t)osError;
break;
}
break;
default:
lock_new = (int32_t)osError;
break;
}
return (lock_new);
}
static uint32_t KernelGetTickCount(void)
{
return (osInfo.kernel.tick);
}
static uint32_t KernelGetTickFreq(void)
{
return (osConfig.tick_freq);
}
/*******************************************************************************
* function implementations (scope: module-exported)
******************************************************************************/
/**
* @fn osStatus_t osKernelInitialize(void)
* @brief Initialize the RTOS Kernel.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osKernelInitialize(void)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_0((uint32_t)KernelInitialize);
}
return (status);
}
/**
* @fn osStatus_t osKernelGetInfo(osVersion_t *version, char *id_buf, uint32_t id_size)
* @brief Get RTOS Kernel Information.
* @param[out] version pointer to buffer for retrieving version information.
* @param[out] id_buf pointer to buffer for retrieving kernel identification string.
* @param[in] id_size size of buffer for kernel identification string.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osKernelGetInfo(osVersion_t *version, char *id_buf, uint32_t id_size)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = KernelGetInfo(version, id_buf, id_size);
}
else {
status = (osStatus_t)svc_3((uint32_t)version, (uint32_t)id_buf, id_size, (uint32_t)KernelGetInfo);
}
return (status);
}
/**
* @fn osKernelState_t osKernelGetState(void)
* @brief Get the current RTOS Kernel state.
* @return current RTOS Kernel state.
*/
osKernelState_t osKernelGetState(void)
{
osKernelState_t state;
if (IsIrqMode() || IsIrqMasked()) {
state = KernelGetState();
}
else {
state = (osKernelState_t)svc_0((uint32_t)KernelGetState);
}
return (state);
}
/**
* @fn osStatus_t osKernelStart(void)
* @brief Start the RTOS Kernel scheduler.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osKernelStart(void)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_0((uint32_t)KernelStart);
}
return (status);
}
/**
* @fn int32_t osKernelLock(void)
* @brief Lock the RTOS Kernel scheduler.
* @return previous lock state (1 - locked, 0 - not locked, error code if negative).
*/
int32_t osKernelLock(void)
{
int32_t lock;
if (IsIrqMode() || IsIrqMasked()) {
lock = (int32_t)osErrorISR;
}
else {
lock = svc_0((uint32_t)KernelLock);
}
return (lock);
}
/**
* @fn int32_t osKernelUnlock(void)
* @brief Unlock the RTOS Kernel scheduler.
* @return previous lock state (1 - locked, 0 - not locked, error code if negative).
*/
int32_t osKernelUnlock(void)
{
int32_t lock;
if (IsIrqMode() || IsIrqMasked()) {
lock = (int32_t)osErrorISR;
}
else {
lock = svc_0((uint32_t)KernelUnlock);
}
return (lock);
}
/**
* @fn int32_t osKernelRestoreLock(int32_t lock)
* @brief Restore the RTOS Kernel scheduler lock state.
* @param[in] lock lock state obtained by \ref osKernelLock or \ref osKernelUnlock.
* @return new lock state (1 - locked, 0 - not locked, error code if negative).
*/
int32_t osKernelRestoreLock(int32_t lock)
{
int32_t lock_new;
if (IsIrqMode() || IsIrqMasked()) {
lock_new = (int32_t)osErrorISR;
}
else {
lock_new = svc_1((uint32_t)lock, (uint32_t)KernelRestoreLock);
}
return (lock_new);
}
/**
* @fn uint32_t osKernelGetTickCount(void)
* @brief Get the RTOS kernel tick count.
* @return RTOS kernel current tick count.
*/
uint32_t osKernelGetTickCount(void)
{
uint32_t count;
if (IsIrqMode() || IsIrqMasked()) {
count = KernelGetTickCount();
}
else {
count = svc_0((uint32_t)KernelGetTickCount);
}
return (count);
}
/**
* @fn uint32_t osKernelGetTickFreq(void)
* @brief Get the RTOS kernel tick frequency.
* @return frequency of the kernel tick in hertz, i.e. kernel ticks per second.
*/
uint32_t osKernelGetTickFreq(void)
{
uint32_t freq;
if (IsIrqMode() || IsIrqMasked()) {
freq = KernelGetTickFreq();
}
else {
freq = svc_0((uint32_t)KernelGetTickFreq);
}
return (freq);
}
/*------------------------------ End of file ---------------------------------*/
|
koshkin-sergey/ukernel
|
src/kernel/semaphore.c
|
/*
* Copyright (C) 2017-2019 <NAME> <<EMAIL>>
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Project: uKernel real-time kernel
*/
/**
* @file
*
* Kernel system routines.
*
*/
/*******************************************************************************
* includes
******************************************************************************/
#include "os_lib.h"
/*******************************************************************************
* external declarations
******************************************************************************/
/*******************************************************************************
* defines and macros (scope: module-local)
******************************************************************************/
#define SemaphoreTokenLimit 65535U ///< maximum number of tokens per semaphore
/*******************************************************************************
* typedefs and structures (scope: module-local)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-exported)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-local)
******************************************************************************/
/*******************************************************************************
* function prototypes (scope: module-local)
******************************************************************************/
/*******************************************************************************
* function implementations (scope: module-local)
******************************************************************************/
static osSemaphoreId_t SemaphoreNew(uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t *attr)
{
osSemaphore_t *sem;
/* Check parameters */
if ((attr == NULL) ||
(attr->cb_mem == NULL) ||
(((uint32_t)attr->cb_mem & 3U) != 0U) ||
(attr->cb_size < sizeof(osSemaphore_t)) ||
(max_count == 0U) ||
(max_count > SemaphoreTokenLimit) ||
(initial_count > max_count))
{
return (NULL);
}
sem = attr->cb_mem;
/* Initialize control block */
sem->id = ID_SEMAPHORE;
sem->flags = 0U;
sem->name = attr->name;
sem->count = initial_count;
sem->max_count = max_count;
QueueReset(&sem->wait_queue);
return (sem);
}
static const char *SemaphoreGetName(osSemaphoreId_t semaphore_id)
{
osSemaphore_t *sem = semaphore_id;
/* Check parameters */
if ((sem == NULL) || (sem->id != ID_SEMAPHORE)) {
return NULL;
}
return (sem->name);
}
static osStatus_t SemaphoreAcquire(osSemaphoreId_t semaphore_id, uint32_t timeout)
{
osSemaphore_t *sem = semaphore_id;
osStatus_t status;
osThread_t *thread;
/* Check parameters */
if ((sem == NULL) || (sem->id != ID_SEMAPHORE)) {
return osErrorParameter;
}
BEGIN_CRITICAL_SECTION
/* Try to acquire token */
if (sem->count > 0U) {
sem->count--;
status = osOK;
}
else {
/* No token available */
if (timeout != 0U) {
thread = ThreadGetRunning();
if (libThreadWaitEnter(thread, &sem->wait_queue, timeout)) {
status = (osStatus_t)osThreadWait;
}
else {
status = osErrorTimeout;
}
}
else {
status = osErrorResource;
}
}
END_CRITICAL_SECTION
return (status);
}
static osStatus_t SemaphoreRelease(osSemaphoreId_t semaphore_id)
{
osSemaphore_t *sem = semaphore_id;
osStatus_t status;
/* Check parameters */
if ((sem == NULL) || (sem->id != ID_SEMAPHORE)) {
return osErrorParameter;
}
BEGIN_CRITICAL_SECTION
/* Check if Thread is waiting for a token */
if (!isQueueEmpty(&sem->wait_queue)) {
/* Wakeup waiting Thread with highest Priority */
libThreadWaitExit(GetThreadByQueue(sem->wait_queue.next), (uint32_t)osOK, DISPATCH_YES);
status = osOK;
}
else {
/* Try to release token */
if (sem->count < sem->max_count) {
sem->count++;
status = osOK;
}
else {
status = osErrorResource;
}
}
END_CRITICAL_SECTION
return (status);
}
static uint32_t SemaphoreGetCount(osSemaphoreId_t semaphore_id)
{
osSemaphore_t *sem = semaphore_id;
/* Check parameters */
if ((sem == NULL) || (sem->id != ID_SEMAPHORE)) {
return 0U;
}
return (sem->count);
}
static osStatus_t SemaphoreDelete(osSemaphoreId_t semaphore_id)
{
osSemaphore_t *sem = semaphore_id;
/* Check parameters */
if ((sem == NULL) || (sem->id != ID_SEMAPHORE)) {
return osErrorParameter;
}
/* Unblock waiting threads */
libThreadWaitDelete(&sem->wait_queue);
/* Mark object as invalid */
sem->id = ID_INVALID;
return (osOK);
}
/*******************************************************************************
* Public API
******************************************************************************/
/**
* @fn osSemaphoreId_t osSemaphoreNew(uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t *attr)
* @brief Create and Initialize a Semaphore object.
* @param[in] max_count maximum number of available tokens.
* @param[in] initial_count initial number of available tokens.
* @param[in] attr semaphore attributes.
* @return semaphore ID for reference by other functions or NULL in case of error.
*/
osSemaphoreId_t osSemaphoreNew(uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t *attr)
{
osSemaphoreId_t semaphore_id;
if (IsIrqMode() || IsIrqMasked()) {
semaphore_id = NULL;
}
else {
semaphore_id = (osSemaphoreId_t)svc_3(max_count, initial_count, (uint32_t)attr, (uint32_t)SemaphoreNew);
}
return (semaphore_id);
}
/**
* @fn const char *osSemaphoreGetName(osSemaphoreId_t semaphore_id)
* @brief Get name of a Semaphore object.
* @param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew.
* @return name as null-terminated string or NULL in case of an error.
*/
const char *osSemaphoreGetName(osSemaphoreId_t semaphore_id)
{
const char *name;
if (IsIrqMode() || IsIrqMasked()) {
name = NULL;
}
else {
name = (const char *)svc_1((uint32_t)semaphore_id, (uint32_t)SemaphoreGetName);
}
return (name);
}
/**
* @fn osStatus_t osSemaphoreAcquire(osSemaphoreId_t semaphore_id, uint32_t timeout)
* @brief Acquire a Semaphore token or timeout if no tokens are available.
* @param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew.
* @param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osSemaphoreAcquire(osSemaphoreId_t semaphore_id, uint32_t timeout)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
if (timeout != 0U) {
status = osErrorParameter;
}
else {
status = SemaphoreAcquire(semaphore_id, timeout);
}
}
else {
status = (osStatus_t)svc_2((uint32_t)semaphore_id, timeout, (uint32_t)SemaphoreAcquire);
if (status == osThreadWait) {
status = (osStatus_t)ThreadGetRunning()->winfo.ret_val;
}
}
return (status);
}
/**
* @fn osStatus_t osSemaphoreRelease(osSemaphoreId_t semaphore_id)
* @brief Release a Semaphore token that was acquired by osSemaphoreAcquire.
* @param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osSemaphoreRelease(osSemaphoreId_t semaphore_id)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = SemaphoreRelease(semaphore_id);
}
else {
status = (osStatus_t)svc_1((uint32_t)semaphore_id, (uint32_t)SemaphoreRelease);
}
return (status);
}
/**
* @fn uint32_t osSemaphoreGetCount(osSemaphoreId_t semaphore_id)
* @brief Get current Semaphore token count.
* @param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew.
* @return number of tokens available or 0 in case of an error.
*/
uint32_t osSemaphoreGetCount(osSemaphoreId_t semaphore_id)
{
uint32_t count;
if (IsIrqMode() || IsIrqMasked()) {
count = SemaphoreGetCount(semaphore_id);
}
else {
count = svc_1((uint32_t)semaphore_id, (uint32_t)SemaphoreGetCount);
}
return (count);
}
/**
* @fn osStatus_t osSemaphoreDelete(osSemaphoreId_t semaphore_id)
* @brief Delete a Semaphore object.
* @param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osSemaphoreDelete(osSemaphoreId_t semaphore_id)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_1((uint32_t)semaphore_id, (uint32_t)SemaphoreDelete);
}
return (status);
}
/*------------------------------ End of file ---------------------------------*/
|
koshkin-sergey/ukernel
|
src/Config/RTOS_Config.c
|
<reponame>koshkin-sergey/ukernel<gh_stars>0
/*
* Copyright (C) 2019 <NAME> <<EMAIL>>
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Project: uKernel real-time kernel
* Title: uKernel Configuration
*/
#include "ukernel.h"
/* OS Idle Thread */
__WEAK __NO_RETURN
void osIdleThread(void *argument)
{
(void) argument;
for (;;) {
;
}
}
/* SysTick timer initialization */
__WEAK
void osSysTickInit(uint32_t hz)
{
(void) hz;
}
/* ----------------------------- End of file ---------------------------------*/
|
koshkin-sergey/ukernel
|
examples/basic/arch/cortex-m/eval_aducm320/src/tn_eval_aducm320_example_blink.c
|
/*
* Copyright (C) 2016 <NAME> <<EMAIL>>
* All rights reserved
*
* File Name : tn_eval_aducm320_example_blink.c
* Description: tn_eval_aducm320_blink
*/
/*******************************************************************************
* includes
******************************************************************************/
#include "tn.h"
#include "ADuCM320.h"
/*******************************************************************************
* external declarations
******************************************************************************/
/*******************************************************************************
* defines and macros (scope: module-local)
******************************************************************************/
#define SYSTICK_FREQ 1000
#define TASK_A_STK_SIZE 64
#define TASK_A_PRIORITY 1
#define LED_PIN ((uint8_t)1 << 4)
/*******************************************************************************
* typedefs and structures (scope: module-local)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-exported)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-local)
******************************************************************************/
static TN_TCB task_A;
tn_stack_t task_A_stack[TASK_A_STK_SIZE];
/*******************************************************************************
* function prototypes (scope: module-local)
******************************************************************************/
/*******************************************************************************
* function implementations (scope: module-local)
******************************************************************************/
/**
* @brief
* @param
* @return
*/
__attribute__((noreturn)) void task_A_func(void *param)
{
pADI_GP2->GPOE |= LED_PIN;
for (int i = 0; i < 50; ++i) {
pADI_GP2->GPTGL = LED_PIN;
tn_task_sleep(20);
}
for (;;) {
pADI_GP2->GPTGL = LED_PIN;
tn_task_sleep(500);
}
}
/**
* @brief
* @param
* @return
*/
void rtos_init(void)
{
tn_task_create(&task_A, task_A_func, TASK_A_PRIORITY,
&(task_A_stack[TASK_A_STK_SIZE-1]), TASK_A_STK_SIZE,
NULL, TN_TASK_START_ON_CREATION);
}
/*******************************************************************************
* function implementations (scope: module-exported)
******************************************************************************/
/**
* @brief
* @param
* @return
*/
int32_t main(void)
{
TN_OPTIONS tn_opt = {
.app_init = rtos_init,
.freq_timer = SYSTICK_FREQ
};
/* Disable interrupt in core Cortex-M3 */
tn_disable_irq();
/* Start RTOS */
tn_start_system(&tn_opt);
return -1;
}
/**
* @brief
* @param
* @return
*/
void tn_systick_init(uint32_t hz)
{
SystemCoreClockUpdate();
SysTick_Config(SystemCoreClock/hz);
}
/**
* @brief
* @param
* @return
*/
void tn_idle_task_func(void *param)
{
for (;;) {
/* Reset WDT */
pADI_WDT->T3CLRI = 0xCCCC;
/* Wait for interrupt */
__WFI();
}
}
/**
* @brief
* @param
* @return
*/
void SysTick_Handler(void)
{
tn_timer();
}
/* ----------------------------- End of file ---------------------------------*/
|
koshkin-sergey/ukernel
|
src/kernel/event.c
|
<reponame>koshkin-sergey/ukernel<gh_stars>0
/*
* Copyright (C) 2017-2019 <NAME> <<EMAIL>>
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Project: uKernel real-time kernel
*/
/**
* @file
*
* Kernel system routines.
*
*/
/*******************************************************************************
* includes
******************************************************************************/
#include "os_lib.h"
/*******************************************************************************
* external declarations
******************************************************************************/
/*******************************************************************************
* defines and macros (scope: module-local)
******************************************************************************/
#define osEventFlagsLimit 31U ///< number of Event Flags available per object
/*******************************************************************************
* typedefs and structures (scope: module-local)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-exported)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-local)
******************************************************************************/
/*******************************************************************************
* function prototypes (scope: module-local)
******************************************************************************/
/*******************************************************************************
* function implementations (scope: module-local)
******************************************************************************/
static
uint32_t FlagsSet(osEventFlags_t *evf, uint32_t flags)
{
uint32_t event_flags;
evf->event_flags |= flags;
event_flags = evf->event_flags;
return event_flags;
}
static
uint32_t FlagsCheck (osEventFlags_t *evf, uint32_t flags, uint32_t options)
{
uint32_t pattern;
if ((options & osFlagsNoClear) == 0U) {
pattern = evf->event_flags;
if ((((options & osFlagsWaitAll) != 0U) && ((pattern & flags) != flags)) ||
(((options & osFlagsWaitAll) == 0U) && ((pattern & flags) == 0U)))
{
pattern = 0U;
}
else {
evf->event_flags &= ~flags;
}
}
else {
pattern = evf->event_flags;
if ((((options & osFlagsWaitAll) != 0U) && ((pattern & flags) != flags)) ||
(((options & osFlagsWaitAll) == 0U) && ((pattern & flags) == 0U)))
{
pattern = 0U;
}
}
return pattern;
}
static osEventFlagsId_t EventFlagsNew(const osEventFlagsAttr_t *attr)
{
osEventFlags_t *evf;
/* Check parameters */
if ((attr == NULL) ||
(attr->cb_mem == NULL) ||
(((uint32_t)attr->cb_mem & 3U) != 0U) ||
(attr->cb_size < sizeof(osEventFlags_t)))
{
return (NULL);
}
evf = attr->cb_mem;
/* Initialize control block */
evf->id = ID_EVENT_FLAGS;
evf->flags = 0U;
evf->name = attr->name;
evf->event_flags = 0U;
QueueReset(&evf->wait_queue);
return (evf);
}
static const char *EventFlagsGetName(osEventFlagsId_t ef_id)
{
osEventFlags_t *evf = (osEventFlags_t *)ef_id;
/* Check parameters */
if ((evf == NULL) || (evf->id != ID_EVENT_FLAGS)) {
return (NULL);
}
return (evf->name);
}
static uint32_t EventFlagsSet(osEventFlagsId_t ef_id, uint32_t flags)
{
osEventFlags_t *evf = (osEventFlags_t *)ef_id;
uint32_t event_flags, pattern;
queue_t *que;
osThread_t *thread;
/* Check parameters */
if ((evf == NULL) || (evf->id != ID_EVENT_FLAGS) ||
(flags == 0U) || ((flags & (1UL << osEventFlagsLimit)) != 0U))
{
return ((uint32_t)osErrorParameter);
}
BEGIN_CRITICAL_SECTION
/* Set Event Flags */
event_flags = FlagsSet(evf, flags);
que = evf->wait_queue.next;
while (que != &evf->wait_queue) {
thread = GetThreadByQueue(que);
que = que->next;
pattern = FlagsCheck(evf, thread->winfo.event.flags, thread->winfo.event.options);
if (pattern) {
if (!(thread->winfo.event.options & osFlagsNoClear)) {
event_flags = pattern & ~thread->winfo.event.flags;
}
else {
event_flags = pattern;
}
libThreadWaitExit(thread, pattern, DISPATCH_NO);
}
}
libThreadDispatch(NULL);
END_CRITICAL_SECTION
return (event_flags);
}
static uint32_t EventFlagsClear(osEventFlagsId_t ef_id, uint32_t flags)
{
osEventFlags_t *evf = (osEventFlags_t *)ef_id;
uint32_t event_flags;
/* Check parameters */
if ((evf == NULL) || (evf->id != ID_EVENT_FLAGS) ||
(flags == 0U) || ((flags & (1UL << osEventFlagsLimit)) != 0U))
{
return ((uint32_t)osErrorParameter);
}
BEGIN_CRITICAL_SECTION
event_flags = evf->event_flags;
evf->event_flags &= ~flags;
END_CRITICAL_SECTION
return (event_flags);
}
static uint32_t EventFlagsGet(osEventFlagsId_t ef_id)
{
osEventFlags_t *evf = (osEventFlags_t *)ef_id;
/* Check parameters */
if ((evf == NULL) || (evf->id != ID_EVENT_FLAGS)) {
return (0U);
}
return (evf->event_flags);
}
static uint32_t EventFlagsWait(osEventFlagsId_t ef_id, uint32_t flags, uint32_t options, uint32_t timeout)
{
osEventFlags_t *evf = (osEventFlags_t *)ef_id;
osThread_t *thread;
winfo_event_t *winfo;
uint32_t event_flags;
/* Check parameters */
if ((evf == NULL) || (evf->id != ID_EVENT_FLAGS) ||
(flags == 0U) || ((flags & (1UL << osEventFlagsLimit)) != 0U))
{
return ((uint32_t)osErrorParameter);
}
BEGIN_CRITICAL_SECTION
event_flags = FlagsCheck(evf, flags, options);
if (event_flags == 0U) {
if (timeout != 0U) {
thread = ThreadGetRunning();
if (libThreadWaitEnter(thread, &evf->wait_queue, timeout)) {
winfo = &thread->winfo.event;
winfo->options = options;
winfo->flags = flags;
event_flags = (uint32_t)osThreadWait;
}
else {
event_flags = (uint32_t)osErrorTimeout;
}
}
else {
event_flags = (uint32_t)osErrorResource;
}
}
END_CRITICAL_SECTION
return (event_flags);
}
static osStatus_t EventFlagsDelete(osEventFlagsId_t ef_id)
{
osEventFlags_t *evf = (osEventFlags_t *)ef_id;
/* Check parameters */
if ((evf == NULL) || (evf->id != ID_EVENT_FLAGS)) {
return (osErrorParameter);
}
/* Unblock waiting threads */
libThreadWaitDelete(&evf->wait_queue);
/* Mark object as invalid */
evf->id = ID_INVALID;
return (osOK);
}
/*******************************************************************************
* Public API
******************************************************************************/
/**
* @fn osEventFlagsId_t osEventFlagsNew(const osEventFlagsAttr_t *attr)
* @brief Create and Initialize an Event Flags object.
* @param[in] attr event flags attributes.
* @return event flags ID for reference by other functions or NULL in case of error.
*/
osEventFlagsId_t osEventFlagsNew(const osEventFlagsAttr_t *attr)
{
osEventFlagsId_t ef_id;
if (IsIrqMode() || IsIrqMasked()) {
ef_id = NULL;
}
else {
ef_id = (osEventFlagsId_t)svc_1((uint32_t)attr, (uint32_t)EventFlagsNew);
}
return ef_id;
}
/**
* @fn const char *osEventFlagsGetName(osEventFlagsId_t ef_id)
* @brief Get name of an Event Flags object.
* @param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
* @return name as null-terminated string or NULL in case of an error.
*/
const char *osEventFlagsGetName(osEventFlagsId_t ef_id)
{
const char *name;
if (IsIrqMode() || IsIrqMasked()) {
name = NULL;
}
else {
name = (const char *)svc_1((uint32_t)ef_id, (uint32_t)EventFlagsGetName);
}
return (name);
}
/**
* @fn uint32_t osEventFlagsSet(osEventFlagsId_t ef_id, uint32_t flags)
* @brief Set the specified Event Flags.
* @param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
* @param[in] flags specifies the flags that shall be set.
* @return event flags after setting or error code if highest bit set.
*/
uint32_t osEventFlagsSet(osEventFlagsId_t ef_id, uint32_t flags)
{
uint32_t event_flags;
if (IsIrqMode() || IsIrqMasked()) {
event_flags = EventFlagsSet(ef_id, flags);
}
else {
event_flags = svc_2((uint32_t)ef_id, flags, (uint32_t)EventFlagsSet);
}
return (event_flags);
}
/**
* @fn uint32_t osEventFlagsClear(osEventFlagsId_t ef_id, uint32_t flags)
* @brief Clear the specified Event Flags.
* @param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
* @param[in] flags specifies the flags that shall be cleared.
* @return event flags before clearing or error code if highest bit set.
*/
uint32_t osEventFlagsClear(osEventFlagsId_t ef_id, uint32_t flags)
{
uint32_t event_flags;
if (IsIrqMode() || IsIrqMasked()) {
event_flags = EventFlagsClear(ef_id, flags);
}
else {
event_flags = svc_2((uint32_t)ef_id, flags, (uint32_t)EventFlagsClear);
}
return (event_flags);
}
/**
* @fn uint32_t osEventFlagsGet(osEventFlagsId_t ef_id)
* @brief Get the current Event Flags.
* @param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
* @return current event flags or 0 in case of an error.
*/
uint32_t osEventFlagsGet(osEventFlagsId_t ef_id)
{
uint32_t event_flags;
if (IsIrqMode() || IsIrqMasked()) {
event_flags = EventFlagsGet(ef_id);
}
else {
event_flags = svc_1((uint32_t)ef_id, (uint32_t)EventFlagsGet);
}
return (event_flags);
}
/**
* @fn uint32_t osEventFlagsWait(osEventFlagsId_t ef_id, uint32_t flags, uint32_t options, uint32_t timeout)
* @brief Wait for one or more Event Flags to become signaled.
* @param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
* @param[in] flags specifies the flags to wait for.
* @param[in] options specifies flags options (osFlagsXxxx).
* @param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
* @return event flags before clearing or error code if highest bit set.
*/
uint32_t osEventFlagsWait(osEventFlagsId_t ef_id, uint32_t flags, uint32_t options, uint32_t timeout)
{
uint32_t event_flags;
if (IsIrqMode() || IsIrqMasked()) {
if (timeout != 0U) {
event_flags = (uint32_t)osErrorParameter;
}
else {
event_flags = EventFlagsWait(ef_id, flags, options, timeout);
}
}
else {
event_flags = svc_4((uint32_t)ef_id, flags, options, timeout, (uint32_t)EventFlagsWait);
if ((int32_t)event_flags == osThreadWait) {
event_flags = ThreadGetRunning()->winfo.ret_val;
}
}
return (event_flags);
}
/**
* @fn osStatus_t osEventFlagsDelete(osEventFlagsId_t ef_id)
* @brief Delete an Event Flags object.
* @param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osEventFlagsDelete(osEventFlagsId_t ef_id)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_1((uint32_t)ef_id, (uint32_t)EventFlagsDelete);
}
return (status);
}
/* ----------------------------- End of file ---------------------------------*/
|
koshkin-sergey/ukernel
|
examples/basic/arch/cortex-m/eval_aducm320/src/include/ADuCM320.h
|
/****************************************************************************************************//**
* @file ADUCM320.h
*
* @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File for
* default ADUCM320 Device Series
*
* @version v1.1
* @date Monday September 22 2014 14:22
*
*******************************************************************************************************/
/** @addtogroup Analog Devices Inc.
* @{
*/
/** @addtogroup ADUCM320
* @{
*/
#ifndef __ADUCM320_H__
#define __ADUCM320_H__
#ifndef __NO_MMR_STRUCTS__
// The new style CMSIS structure definitions for MMRs clash with
// the old style defs. If the old style are required for compilation
// then set __NO_MMR_STRUCTS__ to 0x1
#define __NO_MMR_STRUCTS__ 0x0
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* ------------------------- Interrupt Number Definition ------------------------ */
typedef enum {
/* ------------------- Cortex-M3 Processor Exceptions Numbers ------------------- */
Reset_IRQn = -15, /*!< 1 Reset Vector, invoked on Power up and warm reset */
NonMaskableInt_IRQn = -14, /*!< 2 Non maskable Interrupt, cannot be stopped or preempted */
HardFault_IRQn = -13, /*!< 3 Hard Fault, all classes of Fault */
MemoryManagement_IRQn = -12, /*!< 4 Memory Management, MPU mismatch, including Access Violation and No Match */
BusFault_IRQn = -11, /*!< 5 Bus Fault, Pre-Fetch-, Memory Access Fault, other address/memory related Fault */
UsageFault_IRQn = -10, /*!< 6 Usage Fault, i.e. Undef Instruction, Illegal State Transition */
SVCall_IRQn = -5, /*!< 11 System Service Call via SVC instruction */
DebugMonitor_IRQn = -4, /*!< 12 Debug Monitor */
PendSV_IRQn = -2, /*!< 14 Pendable request for system service */
SysTick_IRQn = -1, /*!< 15 System Tick Timer */
// -------------------------- ADUCM320 Specific Interrupt Numbers ------------------------------
WUT_IRQn = 0, /*!< 0 WUT */
EINT0_IRQn = 1, /*!< 1 EINT0 */
EINT1_IRQn = 2, /*!< 2 EINT1 */
EINT2_IRQn = 3, /*!< 3 EINT2 */
EINT3_IRQn = 4, /*!< 4 EINT3 */
EINT4_IRQn = 5, /*!< 5 EINT4 */
EINT5_IRQn = 6, /*!< 6 EINT5 */
EINT6_IRQn = 7, /*!< 7 EINT6 */
EINT7_IRQn = 8, /*!< 8 EINT7 */
EINT8_IRQn = 9, /*!< 9 EINT8 */
WDT_IRQn = 10, /*!< 10 WDT */
LVD0_IRQn = 13, /*!< 13 LVD0 */
MDIO_IRQn = 14, /*!< 14 MDIO */
TIMER0_IRQn = 15, /*!< 15 TIMER0 */
TIMER1_IRQn = 16, /*!< 16 TIMER1 */
FLASH_IRQn = 17, /*!< 17 FLASH */
UART_IRQn = 18, /*!< 18 UART */
SPI0_IRQn = 19, /*!< 19 SPI0 */
SPI1_IRQn = 20, /*!< 20 SPI1 */
I2C0S_IRQn = 21, /*!< 21 I2C0S */
I2C0M_IRQn = 22, /*!< 22 I2C0M */
PLA0_IRQn = 23, /*!< 23 PLA0 */
PLA1_IRQn = 24, /*!< 24 PLA1 */
DMA_ERR_IRQn = 25, /*!< 25 DMA_ERR */
DMA_SPI0_TX_IRQn = 26, /*!< 26 DMA_SPI0_TX */
DMA_SPI0_RX_IRQn = 27, /*!< 27 DMA_SPI0_RX */
DMA_SPI1_TX_IRQn = 28, /*!< 28 DMA_SPI1_TX */
DMA_SPI1_RX_IRQn = 29, /*!< 29 DMA_SPI1_RX */
DMA_UART_TX_IRQn = 30, /*!< 30 DMA_UART_TX */
DMA_UART_RX_IRQn = 31, /*!< 31 DMA_UART_RX */
DMA_I2C0S_TX_IRQn = 32, /*!< 32 DMA_I2C0S_TX */
DMA_I2C0S_RX_IRQn = 33, /*!< 33 DMA_I2C0S_RX */
DMA_I2C0M_IRQn = 34, /*!< 34 DMA_I2C0M */
DMA_I2C1S_TX_IRQn = 35, /*!< 35 DMA_I2C1S_TX */
DMA_I2C1S_RX_IRQn = 36, /*!< 36 DMA_I2C1S_RX */
DMA_I2C1M_IRQn = 37, /*!< 37 DMA_I2C1M */
DMA_ADC_IRQn = 38, /*!< 38 DMA_ADC */
DMA_FLASH_IRQn = 39, /*!< 39 DMA_FLASH */
I2C1S_IRQn = 44, /*!< 44 I2C1S */
I2C1M_IRQn = 45, /*!< 45 I2C1M */
PLA2_IRQn = 46, /*!< 46 PLA2 */
PLA3_IRQn = 47, /*!< 47 PLA3 */
TIMER2_IRQn = 48, /*!< 48 TIMER2 */
LVD1_IRQn = 49, /*!< 49 LVD1 */
PWM_TRIP_IRQn = 50, /*!< 50 PWM_TRIP */
PWM_PAIR0_IRQn = 51, /*!< 51 PWM_PAIR0 */
PWM_PAIR1_IRQn = 52, /*!< 52 PWM_PAIR1 */
PWM_PAIR2_IRQn = 53, /*!< 53 PWM_PAIR2 */
PWM_PAIR3_IRQn = 54 /*!< 54 PWM_PAIR3 */
} IRQn_Type;
/** @addtogroup Configuration_of_CMSIS
* @{
*/
/* ================================================================================ */
/* ================ Processor and Core Peripheral Section ================ */
/* ================================================================================ */
/* ----------------Configuration of the cm3 Processor and Core Peripherals---------------- */
#define __CM3_REV 0x0200 /*!< Cortex-M3 Core Revision */
#define __MPU_PRESENT 0 /*!< MPU present or not */
#define __NVIC_PRIO_BITS 3 /*!< Number of Bits used for Priority Levels */
#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
/** @} */ /* End of group Configuration_of_CMSIS */
#include "core_cm3.h" /*!< Cortex-M3 processor and core peripherals */
#include "system_ADUCM320.h" /*!< ADUCM320 System */
/* ================================================================================ */
/* ================ Device Specific Peripheral Section ================ */
/* ================================================================================ */
/** @addtogroup Device_Peripheral_Registers
* @{
*/
/* ------------------- Start of section using anonymous unions ------------------ */
#if defined(__CC_ARM)
#pragma push
#pragma anon_unions
#elif defined(__ICCARM__)
#pragma language=extended
#elif defined(__GNUC__)
/* anonymous unions are enabled by default */
#elif defined(__TMS470__)
/* anonymous unions are enabled by default */
#elif defined(__TASKING__)
#pragma warning 586
#else
#warning Not supported compiler type
#endif
/* TLD[LOAD] - Load value */
#define TLD_LOAD_MSK (0xFFFF << 0 )
/* TVAL[VAL] - Current count */
#define TVAL_VAL_MSK (0xFFFF << 0 )
/* TCON[EVENTEN] - Event select */
#define TCON_EVENTEN_MSK (0x1 << 12 )
#define TCON_EVENTEN (0x1 << 12 )
#define TCON_EVENTEN_DIS (0x0 << 12 ) /* Events will not be captured */
#define TCON_EVENTEN_EN (0x1 << 12 ) /* Events will be captured */
/* TCON[EVENT] - Event select range */
#define TCON_EVENT_MSK (0xF << 8 )
/* TCON[RLD] - Reload control */
#define TCON_RLD_MSK (0x1 << 7 )
#define TCON_RLD (0x1 << 7 )
#define TCON_RLD_EN (0x1 << 7 ) /* Resets the up/down counter when TCLRI[0] is set */
#define TCON_RLD_DIS (0x0 << 7 ) /* Up/Down counter is only reset on a timeout event */
/* TCON[CLK] - Clock select */
#define TCON_CLK_MSK (0x3 << 5 )
#define TCON_CLK_PCLK (0x0 << 5 ) /* PCLK. */
#define TCON_CLK_HCLK (0x1 << 5 ) /* HCLK. */
#define TCON_CLK_LFOSC (0x2 << 5 ) /* LFOSC. 32 KHz OSC */
#define TCON_CLK_HFXTAL (0x3 << 5 ) /* HFXTAL. 16 MHz OSC or XTAL (Dependent on CLKCON0.11) */
/* TCON[ENABLE] - Timer enable */
#define TCON_ENABLE_MSK (0x1 << 4 )
#define TCON_ENABLE (0x1 << 4 )
#define TCON_ENABLE_DIS (0x0 << 4 ) /* DIS. Timer is disabled (default) */
#define TCON_ENABLE_EN (0x1 << 4 ) /* EN. Timer is enabled */
/* TCON[MOD] - Timer mode */
#define TCON_MOD_MSK (0x1 << 3 )
#define TCON_MOD (0x1 << 3 )
#define TCON_MOD_FREERUN (0x0 << 3 ) /* FREERUN.Timer runs in free running mode */
#define TCON_MOD_PERIODIC (0x1 << 3 ) /* PERIODIC. Timer runs in periodic mode (default) */
/* TCON[UP] - Count up */
#define TCON_UP_MSK (0x1 << 2 )
#define TCON_UP (0x1 << 2 )
#define TCON_UP_DIS (0x0 << 2 ) /* DIS. Timer is set to count down (default) */
#define TCON_UP_EN (0x1 << 2 ) /* EN. Timer is set to count up */
/* TCON[PRE] - Prescaler */
#define TCON_PRE_MSK (0x3 << 0 )
#define TCON_PRE_DIV1 (0x0 << 0 ) /* source_clock / [1 or 4] */
#define TCON_PRE_DIV16 (0x1 << 0 ) /* source_clock / 16 */
#define TCON_PRE_DIV256 (0x2 << 0 ) /* source_clock / 256 */
#define TCON_PRE_DIV32768 (0x3 << 0 ) /* source_clock / 32,768 */
/* TCLRI[CAP] - Clear captured event interrupt */
#define TCLRI_CAP_MSK (0x1 << 1 )
#define TCLRI_CAP (0x1 << 1 )
#define TCLRI_CAP_CLR (0x1 << 1 ) /* Clear the capture event interrupt */
/* TCLRI[TMOUT] - Clear timeout interrupt */
#define TCLRI_TMOUT_MSK (0x1 << 0 )
#define TCLRI_TMOUT (0x1 << 0 )
#define TCLRI_TMOUT_CLR (0x1 << 0 ) /* Clears the timeout interrupt */
/* TCAP[CAP] - 16-bit captured value */
#define TCAP_CAP_MSK (0xFFFF << 0 )
/* TSTA[PDOK] - TCLRI synchronization */
#define TSTA_PDOK_MSK (0x1 << 7 )
#define TSTA_PDOK (0x1 << 7 )
#define TSTA_PDOK_CLR (0x0 << 7 ) /* CLR. The interrupt is cleared in the timer clock domain */
#define TSTA_PDOK_SET (0x1 << 7 ) /* SET. TCLRI[0] is being updated in the timer clock domain */
/* TSTA[BUSY] - Timer Busy */
#define TSTA_BUSY_MSK (0x1 << 6 )
#define TSTA_BUSY (0x1 << 6 )
#define TSTA_BUSY_CLR (0x0 << 6 ) /* CLR. Timer ready to receive commands to TCON */
#define TSTA_BUSY_SET (0x1 << 6 ) /* SET. Timer not ready to receive commands to TCON */
/* TSTA[CAP] - Capture event pending */
#define TSTA_CAP_MSK (0x1 << 1 )
#define TSTA_CAP (0x1 << 1 )
#define TSTA_CAP_CLR (0x0 << 1 ) /* CLR. No capture event is pending */
#define TSTA_CAP_SET (0x1 << 1 ) /* SET. A capture event is pending */
/* TSTA[TMOUT] - Timeout event occurred */
#define TSTA_TMOUT_MSK (0x1 << 0 )
#define TSTA_TMOUT (0x1 << 0 )
#define TSTA_TMOUT_CLR (0x0 << 0 ) /* CLR. No timeout event has occurred */
#define TSTA_TMOUT_SET (0x1 << 0 ) /* SET. A timeout event has occurred */
/* SPISTA[CSRSG] - Detected a rising edge on CS, in CONT mode */
#define SPISTA_CSRSG_MSK (0x1 << 14 )
#define SPISTA_CSRSG (0x1 << 14 )
#define SPISTA_CSRSG_CLR (0x0 << 14 ) /* Cleared to 0 when the Status register is read. */
#define SPISTA_CSRSG_SET (0x1 << 14 ) /* Set to 1 when there was a rising edge in CS line, when the device was in master mode, continuous transfer, High Frequency mode and CSIRQ_EN was asserted. */
/* SPISTA[CSFLG] - Detected a falling edge on CS, in CONT mode */
#define SPISTA_CSFLG_MSK (0x1 << 13 )
#define SPISTA_CSFLG (0x1 << 13 )
#define SPISTA_CSFLG_CLR (0x0 << 13 ) /* Cleared to 0 when the Status register is read. */
#define SPISTA_CSFLG_SET (0x1 << 13 ) /* Set to 1 when there was a falling edge in CS line, when the device was in master mode, continuous transfer, High Frequency mode and CSIRQ_EN was asserted */
/* SPISTA[CSERR] - Detected a CS error condition */
#define SPISTA_CSERR_MSK (0x1 << 12 )
#define SPISTA_CSERR (0x1 << 12 )
#define SPISTA_CSERR_CLR (0x0 << 12 ) /* Cleared to 0 when the Status register is read. */
#define SPISTA_CSERR_SET (0x1 << 12 ) /* Set to 1 when the CS line was de-asserted abruptly, even before the full-byte of data was transmitted completely. This bit will cause an interrupt. */
/* SPISTA[RXS] - SPI Rx FIFO excess bytes present */
#define SPISTA_RXS_MSK (0x1 << 11 )
#define SPISTA_RXS (0x1 << 11 )
#define SPISTA_RXS_CLR (0x0 << 11 ) /* This bit is cleared when the number of bytes in the FIFO is equal or less than the number in SPI0CON[15:14]. */
#define SPISTA_RXS_SET (0x1 << 11 ) /* This bit is set when there are more bytes in the Rx FIFO than indicated in the MOD bits in SPI0CON. */
/* SPISTA[RXFSTA] - SPI Rx FIFO status */
#define SPISTA_RXFSTA_MSK (0x7 << 8 )
#define SPISTA_RXFSTA_EMPTY (0x0 << 8 ) /* Rx FIFO empty */
#define SPISTA_RXFSTA_ONEBYTE (0x1 << 8 ) /* 1 valid byte in FIFO */
#define SPISTA_RXFSTA_TWOBYTES (0x2 << 8 ) /* 2 valid bytes in the FIFO */
#define SPISTA_RXFSTA_THREEBYTES (0x3 << 8 ) /* 3 valid bytes in the FIFO */
#define SPISTA_RXFSTA_FOURBYTES (0x4 << 8 ) /* 4 valid bytes in the FIFO */
/* SPISTA[RXOF] - SPI Rx FIFO overflow */
#define SPISTA_RXOF_MSK (0x1 << 7 )
#define SPISTA_RXOF (0x1 << 7 )
#define SPISTA_RXOF_CLR (0x0 << 7 ) /* Cleared when the SPISTA register is read. */
#define SPISTA_RXOF_SET (0x1 << 7 ) /* Set when the Rx FIFO was already full when new data was loaded to the FIFO. This bit generates an interrupt except when RFLUSH is set in SPI0CON. */
/* SPISTA[RX] - SPI Rx IRQ */
#define SPISTA_RX_MSK (0x1 << 6 )
#define SPISTA_RX (0x1 << 6 )
#define SPISTA_RX_CLR (0x0 << 6 ) /* Cleared when the SPI0STA register is read. */
#define SPISTA_RX_SET (0x1 << 6 ) /* Set when a receive interrupt occurs. This bit is set when TIM in SPI0CON is cleared and the required number of bytes have been received. */
/* SPISTA[TX] - SPI Tx IRQ */
#define SPISTA_TX_MSK (0x1 << 5 )
#define SPISTA_TX (0x1 << 5 )
#define SPISTA_TX_CLR (0x0 << 5 ) /* CLR. Cleared to 0 when the SPI0STA register is read. */
#define SPISTA_TX_SET (0x1 << 5 ) /* SET. Set to 1 when a transmit interrupt occurs. This bit is set when TIM in SPI0CON is set and the required number of bytes have been transmitted. */
/* SPISTA[TXUR] - SPI Tx FIFO underflow */
#define SPISTA_TXUR_MSK (0x1 << 4 )
#define SPISTA_TXUR (0x1 << 4 )
#define SPISTA_TXUR_CLR (0x0 << 4 ) /* Cleared to 0 when the SPI0STA register is read. */
#define SPISTA_TXUR_SET (0x1 << 4 ) /* Set to 1 when a transmit is initiated without any valid data in the Tx FIFO. This bit generates an interrupt except when TFLUSH is set in SPI0CON. */
/* SPISTA[TXFSTA] - SPI Tx FIFO status */
#define SPISTA_TXFSTA_MSK (0x7 << 1 )
#define SPISTA_TXFSTA_EMPTY (0x0 << 1 ) /* Tx FIFO empty */
#define SPISTA_TXFSTA_ONEBYTE (0x1 << 1 ) /* 1 valid byte in FIFO */
#define SPISTA_TXFSTA_TWOBYTES (0x2 << 1 ) /* 2 valid bytes in FIFO */
#define SPISTA_TXFSTA_THREEBYTES (0x3 << 1 ) /* 3 valid bytes in FIFO */
#define SPISTA_TXFSTA_FOURBYTES (0x4 << 1 ) /* 4 valid bytes in FIFO */
/* SPISTA[IRQ] - SPI Interrupt status */
#define SPISTA_IRQ_MSK (0x1 << 0 )
#define SPISTA_IRQ (0x1 << 0 )
#define SPISTA_IRQ_CLR (0x0 << 0 ) /* Cleared to 0 after reading SPI0STA. */
#define SPISTA_IRQ_SET (0x1 << 0 ) /* Set to 1 when an SPI based interrupt occurs. */
/* SPIRX[DMA_DATA_BYTE_2] - 8-bit receive buffer */
#define SPIRX_DMA_DATA_BYTE_2_MSK (0xFF << 8 )
/* SPIRX[DATA_BYTE_1] - 8-bit receive buffer */
#define SPIRX_DATA_BYTE_1_MSK (0xFF << 0 )
/* SPITX[DMA_DATA_BYTE_2] - 8-bit transmit buffer */
#define SPITX_DMA_DATA_BYTE_2_MSK (0xFF << 8 )
/* SPITX[DATA_BYTE_1] - 8-bit transmit buffer */
#define SPITX_DATA_BYTE_1_MSK (0xFF << 0 )
/* SPIDIV[CSIRQ_EN] - Enable interrupt on every CS edge in CONT mode */
#define SPIDIV_CSIRQ_EN_MSK (0x1 << 8 )
#define SPIDIV_CSIRQ_EN (0x1 << 8 )
#define SPIDIV_CSIRQ_EN_DIS (0x0 << 8 )
#define SPIDIV_CSIRQ_EN_EN (0x1 << 8 )
/* SPIDIV[BCRST] - Reset Mode for CSERR */
#define SPIDIV_BCRST_MSK (0x1 << 7 )
#define SPIDIV_BCRST (0x1 << 7 )
#define SPIDIV_BCRST_DIS (0x0 << 7 )
#define SPIDIV_BCRST_EN (0x1 << 7 )
/* SPIDIV[HFM] - High Frequency Mode */
#define SPIDIV_HFM_MSK (0x1 << 6 )
#define SPIDIV_HFM (0x1 << 6 )
#define SPIDIV_HFM_DIS (0x0 << 6 )
#define SPIDIV_HFM_EN (0x1 << 6 )
/* SPIDIV[DIV] - SPI clock divider */
#define SPIDIV_DIV_MSK (0x3F << 0 )
/* SPICON[MOD] - SPI IRQ mode bits */
#define SPICON_MOD_MSK (0x3 << 14 )
#define SPICON_MOD_TX1RX1 (0x0 << 14 ) /* Tx interrupt occurs when 1 byte has been transferred. Rx interrupt occurs when 1 or more bytes have been received into the FIFO. */
#define SPICON_MOD_TX2RX2 (0x1 << 14 ) /* Tx interrupt occurs when 2 bytes has been transferred. Rx interrupt occurs when 2 or more bytes have been received into the FIFO. */
#define SPICON_MOD_TX3RX3 (0x2 << 14 ) /* Tx interrupt occurs when 3 bytes has been transferred. Rx interrupt occurs when 3 or more bytes have been received into the FIFO. */
#define SPICON_MOD_TX4RX4 (0x3 << 14 ) /* Tx interrupt occurs when 4 bytes has been transferred. Rx interrupt occurs when the Rx FIFO is full, or 4 bytes present. */
/* SPICON[TFLUSH] - SPI Tx FIFO Flush enable */
#define SPICON_TFLUSH_MSK (0x1 << 13 )
#define SPICON_TFLUSH (0x1 << 13 )
#define SPICON_TFLUSH_DIS (0x0 << 13 ) /* Clear this bit to disable Tx FIFO flushing. */
#define SPICON_TFLUSH_EN (0x1 << 13 ) /* Set this bit to flush the Tx FIFO. This bit does not clear itself and should be toggled if a single flush is required. If this bit is left high, then either the last transmitted value or "0x00" is transmitted depending on the ZEN bit. Any writes to the Tx FIFO are ignored while this bit is set. */
/* SPICON[RFLUSH] - SPI Rx FIFO Flush enable */
#define SPICON_RFLUSH_MSK (0x1 << 12 )
#define SPICON_RFLUSH (0x1 << 12 )
#define SPICON_RFLUSH_DIS (0x0 << 12 ) /* Clear this bit to disable Rx FIFO flushing. */
#define SPICON_RFLUSH_EN (0x1 << 12 ) /* Set this bit to flush the Rx FIFO. This bit does not clear itself and should be toggled if a single flush is required. If this bit is set all incoming data is ignored and no interrupts are generated. If set and TIM = 0, a read of the Rx FIFO will initiate a transfer. */
/* SPICON[CON] - Continuous transfer enable */
#define SPICON_CON_MSK (0x1 << 11 )
#define SPICON_CON (0x1 << 11 )
#define SPICON_CON_DIS (0x0 << 11 ) /* DIS. Cleared by user to disable continuous transfer. Each transfer consists of a single 8-bit serial transfer. If valid data exists in the SPI0TX register, then a new transfer is initiated after a stall period of 1 serial clock cycle. */
#define SPICON_CON_EN (0x1 << 11 ) /* EN. Set by user to enable continuous transfer. In master mode, the transfer continues until no valid data is available in the Tx register. CS is asserted and remains asserted for the duration of each 8-bit serial transfer until Tx is empty. */
/* SPICON[LOOPBACK] - Loopback enable */
#define SPICON_LOOPBACK_MSK (0x1 << 10 )
#define SPICON_LOOPBACK (0x1 << 10 )
#define SPICON_LOOPBACK_DIS (0x0 << 10 ) /* Cleared by user to be in normal mode. */
#define SPICON_LOOPBACK_EN (0x1 << 10 ) /* Set by user to connect MISO to MOSI and test software. */
/* SPICON[OEN] - Slave MISO output enable */
#define SPICON_OEN_MSK (0x1 << 9 )
#define SPICON_OEN (0x1 << 9 )
#define SPICON_OEN_DIS (0x0 << 9 ) /* Clear this bit to disable the output driver on the MISO pin. The MISO pin will be Open-Circuit when this bit is clear. */
#define SPICON_OEN_EN (0x1 << 9 ) /* Set this bit for MISO to operate as normal. */
/* SPICON[RXOF] - SPIRX overflow overwrite enable */
#define SPICON_RXOF_MSK (0x1 << 8 )
#define SPICON_RXOF (0x1 << 8 )
#define SPICON_RXOF_DIS (0x0 << 8 ) /* Cleared by user, the new serial byte received is discarded. */
#define SPICON_RXOF_EN (0x1 << 8 ) /* Set by user, the valid data in the Rx register is overwritten by the new serial byte received. */
/* SPICON[ZEN] - Transmit zeros enable */
#define SPICON_ZEN_MSK (0x1 << 7 )
#define SPICON_ZEN (0x1 << 7 )
#define SPICON_ZEN_DIS (0x0 << 7 ) /* Clear this bit to transmit the last transmitted value when there is no valid data in the Tx FIFO. */
#define SPICON_ZEN_EN (0x1 << 7 ) /* Set this bit to transmit "0x00" when there is no valid data in the Tx FIFO. */
/* SPICON[TIM] - SPI transfer and interrupt mode */
#define SPICON_TIM_MSK (0x1 << 6 )
#define SPICON_TIM (0x1 << 6 )
#define SPICON_TIM_RXRD (0x0 << 6 ) /* Cleared by user to initiate transfer with a read of the SPI0RX register. Interrupt only occurs when Rx is full. */
#define SPICON_TIM_TXWR (0x1 << 6 ) /* Set by user to initiate transfer with a write to the SPI0TX register. Interrupt only occurs when Tx is empty. */
/* SPICON[LSB] - LSB first transfer enable */
#define SPICON_LSB_MSK (0x1 << 5 )
#define SPICON_LSB (0x1 << 5 )
#define SPICON_LSB_DIS (0x0 << 5 ) /* MSB transmitted first */
#define SPICON_LSB_EN (0x1 << 5 ) /* LSB transmitted first */
/* SPICON[WOM] - SPI Wired Or mode */
#define SPICON_WOM_MSK (0x1 << 4 )
#define SPICON_WOM (0x1 << 4 )
#define SPICON_WOM_EN (0x1 << 4 ) /* Enables open circuit data output enable. External pull-ups required on data out pins */
#define SPICON_WOM_DIS (0x0 << 4 ) /* Normal output levels */
/* SPICON[CPOL] - Serial Clock Polarity */
#define SPICON_CPOL_MSK (0x1 << 3 )
#define SPICON_CPOL (0x1 << 3 )
#define SPICON_CPOL_LOW (0x0 << 3 ) /* Serial clock idles low */
#define SPICON_CPOL_HIGH (0x1 << 3 ) /* Serial clock idles high */
/* SPICON[CPHA] - Serial clock phase mode */
#define SPICON_CPHA_MSK (0x1 << 2 )
#define SPICON_CPHA (0x1 << 2 )
#define SPICON_CPHA_SAMPLETRAILING (0x1 << 2 ) /* Serial clock pulses at the beginning of each serial bit transfer */
#define SPICON_CPHA_SAMPLELEADING (0x0 << 2 ) /* Serial clock pulses at the end of each serial bit transfer */
/* SPICON[MASEN] - Master mode enable */
#define SPICON_MASEN_MSK (0x1 << 1 )
#define SPICON_MASEN (0x1 << 1 )
#define SPICON_MASEN_DIS (0x0 << 1 ) /* Enable slave mode */
#define SPICON_MASEN_EN (0x1 << 1 ) /* Enable master mode */
/* SPICON[ENABLE] - SPI enable */
#define SPICON_ENABLE_MSK (0x1 << 0 )
#define SPICON_ENABLE (0x1 << 0 )
#define SPICON_ENABLE_DIS (0x0 << 0 ) /* Disable the SPI */
#define SPICON_ENABLE_EN (0x1 << 0 ) /* Enable the SPI */
/* SPIDMA[IENRXDMA] - Enable receive DMA request */
#define SPIDMA_IENRXDMA_MSK (0x1 << 2 )
#define SPIDMA_IENRXDMA (0x1 << 2 )
#define SPIDMA_IENRXDMA_DIS (0x0 << 2 ) /* Disable RX DMA Interrupt */
#define SPIDMA_IENRXDMA_EN (0x1 << 2 ) /* Enable RX DMA Interrupt */
/* SPIDMA[IENTXDMA] - Enable transmit DMA request */
#define SPIDMA_IENTXDMA_MSK (0x1 << 1 )
#define SPIDMA_IENTXDMA (0x1 << 1 )
#define SPIDMA_IENTXDMA_DIS (0x0 << 1 ) /* Disable TX DMA Interrupt */
#define SPIDMA_IENTXDMA_EN (0x1 << 1 ) /* Enable TX DMA Interrupt */
/* SPIDMA[ENABLE] - Enable DMA for data transfer */
#define SPIDMA_ENABLE_MSK (0x1 << 0 )
#define SPIDMA_ENABLE (0x1 << 0 )
#define SPIDMA_ENABLE_DIS (0x0 << 0 )
#define SPIDMA_ENABLE_EN (0x1 << 0 )
/* SPICNT[COUNT] - Transfer byte count */
#define SPICNT_COUNT_MSK (0xFF << 0 )
/* I2CMCON[PRESTOP_BUS_CLR] - Prestop Bus-Clear */
#define I2CMCON_PRESTOP_BUS_CLR_MSK (0x1 << 13 )
#define I2CMCON_PRESTOP_BUS_CLR (0x1 << 13 )
#define I2CMCON_PRESTOP_BUS_CLR_DIS (0x0 << 13 )
#define I2CMCON_PRESTOP_BUS_CLR_EN (0x1 << 13 )
/* I2CMCON[BUS_CLR_EN] - Bus-Clear Enable */
#define I2CMCON_BUS_CLR_EN_MSK (0x1 << 12 )
#define I2CMCON_BUS_CLR_EN (0x1 << 12 )
#define I2CMCON_BUS_CLR_EN_DIS (0x0 << 12 )
#define I2CMCON_BUS_CLR_EN_EN (0x1 << 12 )
/* I2CMCON[MTXDMA] - Enable master Tx DMA request */
#define I2CMCON_MTXDMA_MSK (0x1 << 11 )
#define I2CMCON_MTXDMA (0x1 << 11 )
#define I2CMCON_MTXDMA_DIS (0x0 << 11 ) /* Disable DMA mode */
#define I2CMCON_MTXDMA_EN (0x1 << 11 ) /* Enable I2C master DMA Tx requests. */
/* I2CMCON[MRXDMA] - Enable master Rx DMA request */
#define I2CMCON_MRXDMA_MSK (0x1 << 10 )
#define I2CMCON_MRXDMA (0x1 << 10 )
#define I2CMCON_MRXDMA_DIS (0x0 << 10 ) /* Disable DMA mode */
#define I2CMCON_MRXDMA_EN (0x1 << 10 ) /* Enable I2C master DMA Rx requests. */
/* I2CMCON[MXMITDEC] - Decrement master TX FIFO status when a byte has been transmitted */
#define I2CMCON_MXMITDEC_MSK (0x1 << 9 )
#define I2CMCON_MXMITDEC (0x1 << 9 )
#define I2CMCON_MXMITDEC_DIS (0x0 << 9 )
#define I2CMCON_MXMITDEC_EN (0x1 << 9 )
/* I2CMCON[IENCMP] - Transaction completed (or stop detected) interrupt enable */
#define I2CMCON_IENCMP_MSK (0x1 << 8 )
#define I2CMCON_IENCMP (0x1 << 8 )
#define I2CMCON_IENCMP_DIS (0x0 << 8 ) /* An interrupt is not generated when a STOP is detected. */
#define I2CMCON_IENCMP_EN (0x1 << 8 ) /* An interrupt is generated when a STOP is detected. */
/* I2CMCON[IENACK] - ACK not received interrupt enable */
#define I2CMCON_IENACK_MSK (0x1 << 7 )
#define I2CMCON_IENACK (0x1 << 7 )
#define I2CMCON_IENACK_DIS (0x0 << 7 ) /* ACK not received interrupt disable */
#define I2CMCON_IENACK_EN (0x1 << 7 ) /* ACK not received interrupt enable */
/* I2CMCON[IENALOST] - Arbitration lost interrupt enable */
#define I2CMCON_IENALOST_MSK (0x1 << 6 )
#define I2CMCON_IENALOST (0x1 << 6 )
#define I2CMCON_IENALOST_DIS (0x0 << 6 ) /* Arbitration lost interrupt disable */
#define I2CMCON_IENALOST_EN (0x1 << 6 ) /* Arbitration lost interrupt enable */
/* I2CMCON[IENMTX] - Transmit request interrupt enable */
#define I2CMCON_IENMTX_MSK (0x1 << 5 )
#define I2CMCON_IENMTX (0x1 << 5 )
#define I2CMCON_IENMTX_DIS (0x0 << 5 ) /* Transmit request interrupt disable */
#define I2CMCON_IENMTX_EN (0x1 << 5 ) /* Transmit request interrupt enable */
/* I2CMCON[IENMRX] - Receive request interrupt enable */
#define I2CMCON_IENMRX_MSK (0x1 << 4 )
#define I2CMCON_IENMRX (0x1 << 4 )
#define I2CMCON_IENMRX_DIS (0x0 << 4 ) /* Receive request interrupt disable */
#define I2CMCON_IENMRX_EN (0x1 << 4 ) /* Receive request interrupt enable */
/* I2CMCON[STRETCH] - Stretch SCL enable */
#define I2CMCON_STRETCH_MSK (0x1 << 3 )
#define I2CMCON_STRETCH (0x1 << 3 )
#define I2CMCON_STRETCH_DIS (0x0 << 3 ) /* Disable Clock stretching */
#define I2CMCON_STRETCH_EN (0x1 << 3 ) /* Setting this bit tells the device if SCL is 0 hold it at 0;. Or if SCL is 1 then when it next goes to 0 hold it at 0. */
/* I2CMCON[LOOPBACK] - Internal loopback enable */
#define I2CMCON_LOOPBACK_MSK (0x1 << 2 )
#define I2CMCON_LOOPBACK (0x1 << 2 )
#define I2CMCON_LOOPBACK_DIS (0x0 << 2 ) /* SCL and SDA out of the device are not muxed onto their corresponding inputs. */
#define I2CMCON_LOOPBACK_EN (0x1 << 2 ) /* SCL and SDA out of the device are muxed onto their corresponding inputs. */
/* I2CMCON[COMPETE] - Start back-off disable */
#define I2CMCON_COMPETE_MSK (0x1 << 1 )
#define I2CMCON_COMPETE (0x1 << 1 )
#define I2CMCON_COMPETE_DIS (0x0 << 1 )
#define I2CMCON_COMPETE_EN (0x1 << 1 )
/* I2CMCON[MASEN] - Master enable */
#define I2CMCON_MASEN_MSK (0x1 << 0 )
#define I2CMCON_MASEN (0x1 << 0 )
#define I2CMCON_MASEN_DIS (0x0 << 0 ) /* Master is disabled */
#define I2CMCON_MASEN_EN (0x1 << 0 ) /* Master is enabled */
/* I2CMSTA[SCL_FILTERED] - State of SCL Line */
#define I2CMSTA_SCL_FILTERED_MSK (0x1 << 14 )
#define I2CMSTA_SCL_FILTERED (0x1 << 14 )
#define I2CMSTA_SCL_FILTERED_CLR (0x0 << 14 )
#define I2CMSTA_SCL_FILTERED_SET (0x1 << 14 )
/* I2CMSTA[SDA_FILTERED] - State of SDA Line */
#define I2CMSTA_SDA_FILTERED_MSK (0x1 << 13 )
#define I2CMSTA_SDA_FILTERED (0x1 << 13 )
#define I2CMSTA_SDA_FILTERED_CLR (0x0 << 13 )
#define I2CMSTA_SDA_FILTERED_SET (0x1 << 13 )
/* I2CMSTA[MTXUFLOW] - Master Transmit Underflow */
#define I2CMSTA_MTXUFLOW_MSK (0x1 << 12 )
#define I2CMSTA_MTXUFLOW (0x1 << 12 )
#define I2CMSTA_MTXUFLOW_CLR (0x0 << 12 )
#define I2CMSTA_MTXUFLOW_SET (0x1 << 12 )
/* I2CMSTA[MSTOP] - STOP driven by this I2C Master */
#define I2CMSTA_MSTOP_MSK (0x1 << 11 )
#define I2CMSTA_MSTOP (0x1 << 11 )
#define I2CMSTA_MSTOP_CLR (0x0 << 11 )
#define I2CMSTA_MSTOP_SET (0x1 << 11 )
/* I2CMSTA[LINEBUSY] - Line is busy */
#define I2CMSTA_LINEBUSY_MSK (0x1 << 10 )
#define I2CMSTA_LINEBUSY (0x1 << 10 )
#define I2CMSTA_LINEBUSY_CLR (0x0 << 10 )
#define I2CMSTA_LINEBUSY_SET (0x1 << 10 )
/* I2CMSTA[MRXOF] - Master Receive FIFO overflow */
#define I2CMSTA_MRXOF_MSK (0x1 << 9 )
#define I2CMSTA_MRXOF (0x1 << 9 )
#define I2CMSTA_MRXOF_CLR (0x0 << 9 )
#define I2CMSTA_MRXOF_SET (0x1 << 9 )
/* I2CMSTA[TCOMP] - Transaction complete or stop detected */
#define I2CMSTA_TCOMP_MSK (0x1 << 8 )
#define I2CMSTA_TCOMP (0x1 << 8 )
#define I2CMSTA_TCOMP_CLR (0x0 << 8 )
#define I2CMSTA_TCOMP_SET (0x1 << 8 )
/* I2CMSTA[NACKDATA] - ACK not received in response to data write */
#define I2CMSTA_NACKDATA_MSK (0x1 << 7 )
#define I2CMSTA_NACKDATA (0x1 << 7 )
#define I2CMSTA_NACKDATA_CLR (0x0 << 7 )
#define I2CMSTA_NACKDATA_SET (0x1 << 7 )
/* I2CMSTA[MBUSY] - Master busy */
#define I2CMSTA_MBUSY_MSK (0x1 << 6 )
#define I2CMSTA_MBUSY (0x1 << 6 )
#define I2CMSTA_MBUSY_CLR (0x0 << 6 )
#define I2CMSTA_MBUSY_SET (0x1 << 6 )
/* I2CMSTA[ALOST] - Arbitration lost */
#define I2CMSTA_ALOST_MSK (0x1 << 5 )
#define I2CMSTA_ALOST (0x1 << 5 )
#define I2CMSTA_ALOST_CLR (0x0 << 5 )
#define I2CMSTA_ALOST_SET (0x1 << 5 )
/* I2CMSTA[NACKADDR] - ACK not received in response to an address */
#define I2CMSTA_NACKADDR_MSK (0x1 << 4 )
#define I2CMSTA_NACKADDR (0x1 << 4 )
#define I2CMSTA_NACKADDR_CLR (0x0 << 4 )
#define I2CMSTA_NACKADDR_SET (0x1 << 4 )
/* I2CMSTA[MRXREQ] - Master Receive request */
#define I2CMSTA_MRXREQ_MSK (0x1 << 3 )
#define I2CMSTA_MRXREQ (0x1 << 3 )
#define I2CMSTA_MRXREQ_CLR (0x0 << 3 )
#define I2CMSTA_MRXREQ_SET (0x1 << 3 )
/* I2CMSTA[MTXREQ] - Master Transmit request */
#define I2CMSTA_MTXREQ_MSK (0x1 << 2 )
#define I2CMSTA_MTXREQ (0x1 << 2 )
#define I2CMSTA_MTXREQ_CLR (0x0 << 2 )
#define I2CMSTA_MTXREQ_SET (0x1 << 2 )
/* I2CMSTA[MTXFSTA] - Master Transmit FIFO status */
#define I2CMSTA_MTXFSTA_MSK (0x3 << 0 )
/* I2CMRX[ICMRX] - Master receive register */
#define I2CMRX_ICMRX_MSK (0xFF << 0 )
/* I2CMTX[I2CMTX] - Master transmit register */
#define I2CMTX_I2CMTX_MSK (0xFF << 0 )
/* I2CMRXCNT[EXTEND] - Extended read */
#define I2CMRXCNT_EXTEND_MSK (0x1 << 8 )
#define I2CMRXCNT_EXTEND (0x1 << 8 )
#define I2CMRXCNT_EXTEND_DIS (0x0 << 8 )
#define I2CMRXCNT_EXTEND_EN (0x1 << 8 )
/* I2CMRXCNT[COUNT] - Receive count */
#define I2CMRXCNT_COUNT_MSK (0xFF << 0 )
/* I2CMCRXCNT[COUNT] - Current receive count */
#define I2CMCRXCNT_COUNT_MSK (0xFF << 0 )
/* I2CADR0[ADR0] - Address byte 0 */
#define I2CADR0_ADR0_MSK (0xFF << 0 )
/* I2CADR1[ADR1] - Address byte 1 */
#define I2CADR1_ADR1_MSK (0xFF << 0 )
/* I2CDIV[HIGH] - Serial clock high time */
#define I2CDIV_HIGH_MSK (0xFF << 8 )
/* I2CDIV[LOW] - Serial clock low time */
#define I2CDIV_LOW_MSK (0xFF << 0 )
/* I2CSCON[STXDMA] - Enable slave Tx DMA request */
#define I2CSCON_STXDMA_MSK (0x1 << 14 )
#define I2CSCON_STXDMA (0x1 << 14 )
#define I2CSCON_STXDMA_DIS (0x0 << 14 )
#define I2CSCON_STXDMA_EN (0x1 << 14 )
/* I2CSCON[SRXDMA] - Enable slave Rx DMA request */
#define I2CSCON_SRXDMA_MSK (0x1 << 13 )
#define I2CSCON_SRXDMA (0x1 << 13 )
#define I2CSCON_SRXDMA_DIS (0x0 << 13 )
#define I2CSCON_SRXDMA_EN (0x1 << 13 )
/* I2CSCON[IENREPST] - Repeated start interrupt enable */
#define I2CSCON_IENREPST_MSK (0x1 << 12 )
#define I2CSCON_IENREPST (0x1 << 12 )
#define I2CSCON_IENREPST_DIS (0x0 << 12 )
#define I2CSCON_IENREPST_EN (0x1 << 12 )
/* I2CSCON[SXMITDEC] - Decrement Slave Tx FIFO status when a byte has been transmitted */
#define I2CSCON_SXMITDEC_MSK (0x1 << 11 )
#define I2CSCON_SXMITDEC (0x1 << 11 )
#define I2CSCON_SXMITDEC_DIS (0x0 << 11 )
#define I2CSCON_SXMITDEC_EN (0x1 << 11 )
/* I2CSCON[IENSTX] - Slave Transmit request interrupt enable */
#define I2CSCON_IENSTX_MSK (0x1 << 10 )
#define I2CSCON_IENSTX (0x1 << 10 )
#define I2CSCON_IENSTX_DIS (0x0 << 10 )
#define I2CSCON_IENSTX_EN (0x1 << 10 )
/* I2CSCON[IENSRX] - Slave Receive request interrupt enable */
#define I2CSCON_IENSRX_MSK (0x1 << 9 )
#define I2CSCON_IENSRX (0x1 << 9 )
#define I2CSCON_IENSRX_DIS (0x0 << 9 )
#define I2CSCON_IENSRX_EN (0x1 << 9 )
/* I2CSCON[IENSTOP] - Stop condition detected interrupt enable */
#define I2CSCON_IENSTOP_MSK (0x1 << 8 )
#define I2CSCON_IENSTOP (0x1 << 8 )
#define I2CSCON_IENSTOP_DIS (0x0 << 8 )
#define I2CSCON_IENSTOP_EN (0x1 << 8 )
/* I2CSCON[NACK] - NACK next communication */
#define I2CSCON_NACK_MSK (0x1 << 7 )
#define I2CSCON_NACK (0x1 << 7 )
#define I2CSCON_NACK_DIS (0x0 << 7 )
#define I2CSCON_NACK_EN (0x1 << 7 )
/* I2CSCON[STRETCHSCL] - Stretch SCL enable */
#define I2CSCON_STRETCHSCL_MSK (0x1 << 6 )
#define I2CSCON_STRETCHSCL (0x1 << 6 )
#define I2CSCON_STRETCHSCL_DIS (0x0 << 6 )
#define I2CSCON_STRETCHSCL_EN (0x1 << 6 )
/* I2CSCON[EARLYTXR] - Early transmit request mode */
#define I2CSCON_EARLYTXR_MSK (0x1 << 5 )
#define I2CSCON_EARLYTXR (0x1 << 5 )
#define I2CSCON_EARLYTXR_DIS (0x0 << 5 )
#define I2CSCON_EARLYTXR_EN (0x1 << 5 )
/* I2CSCON[GCSBCLR] - General call status bit clear */
#define I2CSCON_GCSBCLR_MSK (0x1 << 4 )
#define I2CSCON_GCSBCLR (0x1 << 4 )
#define I2CSCON_GCSBCLR_DIS (0x0 << 4 )
#define I2CSCON_GCSBCLR_EN (0x1 << 4 )
/* I2CSCON[HGCEN] - Hardware general call enable */
#define I2CSCON_HGCEN_MSK (0x1 << 3 )
#define I2CSCON_HGCEN (0x1 << 3 )
#define I2CSCON_HGCEN_DIS (0x0 << 3 )
#define I2CSCON_HGCEN_EN (0x1 << 3 )
/* I2CSCON[GCEN] - General call enable */
#define I2CSCON_GCEN_MSK (0x1 << 2 )
#define I2CSCON_GCEN (0x1 << 2 )
#define I2CSCON_GCEN_DIS (0x0 << 2 )
#define I2CSCON_GCEN_EN (0x1 << 2 )
/* I2CSCON[ADR10EN] - Enabled 10-bit addressing */
#define I2CSCON_ADR10EN_MSK (0x1 << 1 )
#define I2CSCON_ADR10EN (0x1 << 1 )
#define I2CSCON_ADR10EN_DIS (0x0 << 1 )
#define I2CSCON_ADR10EN_EN (0x1 << 1 )
/* I2CSCON[SLVEN] - Slave enable */
#define I2CSCON_SLVEN_MSK (0x1 << 0 )
#define I2CSCON_SLVEN (0x1 << 0 )
#define I2CSCON_SLVEN_DIS (0x0 << 0 )
#define I2CSCON_SLVEN_EN (0x1 << 0 )
/* I2CSSTA[START] - Start and matching address */
#define I2CSSTA_START_MSK (0x1 << 14 )
#define I2CSSTA_START (0x1 << 14 )
#define I2CSSTA_START_CLR (0x0 << 14 )
#define I2CSSTA_START_SET (0x1 << 14 )
/* I2CSSTA[REPSTART] - Repeated start and matching address */
#define I2CSSTA_REPSTART_MSK (0x1 << 13 )
#define I2CSSTA_REPSTART (0x1 << 13 )
#define I2CSSTA_REPSTART_CLR (0x0 << 13 )
#define I2CSSTA_REPSTART_SET (0x1 << 13 )
/* I2CSSTA[IDMAT] - Device ID matched */
#define I2CSSTA_IDMAT_MSK (0x3 << 11 )
/* I2CSSTA[STOP] - Stop after start and matching address */
#define I2CSSTA_STOP_MSK (0x1 << 10 )
#define I2CSSTA_STOP (0x1 << 10 )
#define I2CSSTA_STOP_CLR (0x0 << 10 )
#define I2CSSTA_STOP_SET (0x1 << 10 )
/* I2CSSTA[GCID] - General ID */
#define I2CSSTA_GCID_MSK (0x3 << 8 )
/* I2CSSTA[GCINT] - General call interrupt */
#define I2CSSTA_GCINT_MSK (0x1 << 7 )
#define I2CSSTA_GCINT (0x1 << 7 )
#define I2CSSTA_GCINT_CLR (0x0 << 7 )
#define I2CSSTA_GCINT_SET (0x1 << 7 )
/* I2CSSTA[SBUSY] - Slave busy */
#define I2CSSTA_SBUSY_MSK (0x1 << 6 )
#define I2CSSTA_SBUSY (0x1 << 6 )
#define I2CSSTA_SBUSY_CLR (0x0 << 6 )
#define I2CSSTA_SBUSY_SET (0x1 << 6 )
/* I2CSSTA[NOACK] - Ack not generated by the slave */
#define I2CSSTA_NOACK_MSK (0x1 << 5 )
#define I2CSSTA_NOACK (0x1 << 5 )
#define I2CSSTA_NOACK_CLR (0x0 << 5 )
#define I2CSSTA_NOACK_SET (0x1 << 5 )
/* I2CSSTA[SRXOF] - Slave Receive FIFO overflow */
#define I2CSSTA_SRXOF_MSK (0x1 << 4 )
#define I2CSSTA_SRXOF (0x1 << 4 )
#define I2CSSTA_SRXOF_CLR (0x0 << 4 )
#define I2CSSTA_SRXOF_SET (0x1 << 4 )
/* I2CSSTA[SRXREQ] - Slave Receive request */
#define I2CSSTA_SRXREQ_MSK (0x1 << 3 )
#define I2CSSTA_SRXREQ (0x1 << 3 )
#define I2CSSTA_SRXREQ_CLR (0x0 << 3 )
#define I2CSSTA_SRXREQ_SET (0x1 << 3 )
/* I2CSSTA[STXREQ] - Slave Transmit request */
#define I2CSSTA_STXREQ_MSK (0x1 << 2 )
#define I2CSSTA_STXREQ (0x1 << 2 )
#define I2CSSTA_STXREQ_CLR (0x0 << 2 )
#define I2CSSTA_STXREQ_SET (0x1 << 2 )
/* I2CSSTA[STXUR] - Slave Transmit FIFO underflow */
#define I2CSSTA_STXUR_MSK (0x1 << 1 )
#define I2CSSTA_STXUR (0x1 << 1 )
#define I2CSSTA_STXUR_CLR (0x0 << 1 )
#define I2CSSTA_STXUR_SET (0x1 << 1 )
/* I2CSSTA[STXFSEREQ] - Slave Tx FIFO Status or early request */
#define I2CSSTA_STXFSEREQ_MSK (0x1 << 0 )
#define I2CSSTA_STXFSEREQ (0x1 << 0 )
#define I2CSSTA_STXFSEREQ_CLR (0x0 << 0 )
#define I2CSSTA_STXFSEREQ_SET (0x1 << 0 )
/* I2CSRX[I2CSRX] - Slave receive register */
#define I2CSRX_I2CSRX_MSK (0xFF << 0 )
/* I2CSTX[I2CSTX] - Slave transmit register */
#define I2CSTX_I2CSTX_MSK (0xFF << 0 )
/* I2CALT[ALT] - Slave Alt */
#define I2CALT_ALT_MSK (0xFF << 0 )
/* I2CID0[ID0] - Slave device ID 0 */
#define I2CID0_ID0_MSK (0xFF << 0 )
/* I2CID1[ID1] - Slave device ID 1 */
#define I2CID1_ID1_MSK (0xFF << 0 )
/* I2CID2[ID2] - Slave device ID 2 */
#define I2CID2_ID2_MSK (0xFF << 0 )
/* I2CID3[ID3] - Slave device ID 3 */
#define I2CID3_ID3_MSK (0xFF << 0 )
/* I2CFSTA[MFLUSH] - Flush the master transmit FIFO */
#define I2CFSTA_MFLUSH_MSK (0x1 << 9 )
#define I2CFSTA_MFLUSH (0x1 << 9 )
#define I2CFSTA_MFLUSH_DIS (0x0 << 9 ) /* Clearing to 0 has no effect. */
#define I2CFSTA_MFLUSH_EN (0x1 << 9 ) /* Set to 1 to flush the master transmit FIFO. The master transmit FIFO will have to flushed if arbitration is lost or a slave responds with a NACK. */
/* I2CFSTA[SFLUSH] - Flush the slave transmit FIFO */
#define I2CFSTA_SFLUSH_MSK (0x1 << 8 )
#define I2CFSTA_SFLUSH (0x1 << 8 )
#define I2CFSTA_SFLUSH_DIS (0x0 << 8 ) /* Clearing to 0 has no effect. */
#define I2CFSTA_SFLUSH_EN (0x1 << 8 ) /* Set to 1 to flush the slave transmit FIFO. */
/* I2CFSTA[MRXFSTA] - Master receive FIFO status */
#define I2CFSTA_MRXFSTA_MSK (0x3 << 6 )
#define I2CFSTA_MRXFSTA_EMPTY (0x0 << 6 ) /* FIFO empty */
#define I2CFSTA_MRXFSTA_ONEBYTE (0x1 << 6 ) /* 1 bytes in the FIFO */
#define I2CFSTA_MRXFSTA_TWOBYTES (0x2 << 6 ) /* 2 bytes in the FIFO */
/* I2CFSTA[MTXFSTA] - Master transmit FIFO status */
#define I2CFSTA_MTXFSTA_MSK (0x3 << 4 )
#define I2CFSTA_MTXFSTA_EMPTY (0x0 << 4 ) /* FIFO empty */
#define I2CFSTA_MTXFSTA_ONEBYTE (0x1 << 4 ) /* 1 bytes in the FIFO */
#define I2CFSTA_MTXFSTA_TWOBYTES (0x2 << 4 ) /* 2 bytes in the FIFO */
/* I2CFSTA[SRXFSTA] - Slave receive FIFO status */
#define I2CFSTA_SRXFSTA_MSK (0x3 << 2 )
#define I2CFSTA_SRXFSTA_EMPTY (0x0 << 2 ) /* FIFO empty */
#define I2CFSTA_SRXFSTA_ONEBYTE (0x1 << 2 ) /* 1 bytes in the FIFO */
#define I2CFSTA_SRXFSTA_TWOBYTES (0x2 << 2 ) /* 2 bytes in the FIFO */
/* I2CFSTA[STXFSTA] - Slave transmit FIFO status */
#define I2CFSTA_STXFSTA_MSK (0x3 << 0 )
#define I2CFSTA_STXFSTA_EMPTY (0x0 << 0 ) /* FIFO empty */
#define I2CFSTA_STXFSTA_ONEBYTE (0x1 << 0 ) /* 1 bytes in the FIFO */
#define I2CFSTA_STXFSTA_TWOBYTES (0x2 << 0 ) /* 2 bytes in the FIFO */
/* I2CSHCON[RESET] - Reset START STOP detect circuit */
#define I2CSHCON_RESET_MSK (0x1 << 0 )
#define I2CSHCON_RESET (0x1 << 0 )
#define I2CSHCON_RESET_DIS (0x0 << 0 )
#define I2CSHCON_RESET_EN (0x1 << 0 )
/* GPCON[CON7] - p0.7 configuration bits */
#define GPCON_CON7_MSK (0x3 << 14 )
/* GPCON[CON6] - p0.6 configuration bits */
#define GPCON_CON6_MSK (0x3 << 12 )
/* GPCON[CON5] - p0.5 configuration bits */
#define GPCON_CON5_MSK (0x3 << 10 )
/* GPCON[CON4] - p0.4 configuration bits */
#define GPCON_CON4_MSK (0x3 << 8 )
/* GPCON[CON3] - p0.3 configuration bits */
#define GPCON_CON3_MSK (0x3 << 6 )
/* GPCON[CON2] - p0.2 configuration bits */
#define GPCON_CON2_MSK (0x3 << 4 )
/* GPCON[CON1] - p0.1 configuration bits */
#define GPCON_CON1_MSK (0x3 << 2 )
/* GPCON[CON0] - p0.0 configuration bits */
#define GPCON_CON0_MSK (0x3 << 0 )
/* GPOE[OE7] - Pin output drive enable */
#define GPOE_OE7_MSK (0x1 << 7 )
#define GPOE_OE7 (0x1 << 7 )
#define GPOE_OE7_DIS (0x0 << 7 )
#define GPOE_OE7_EN (0x1 << 7 )
/* GPOE[OE6] - Pin output drive enable */
#define GPOE_OE6_MSK (0x1 << 6 )
#define GPOE_OE6 (0x1 << 6 )
#define GPOE_OE6_DIS (0x0 << 6 )
#define GPOE_OE6_EN (0x1 << 6 )
/* GPOE[OE5] - Pin output drive enable */
#define GPOE_OE5_MSK (0x1 << 5 )
#define GPOE_OE5 (0x1 << 5 )
#define GPOE_OE5_DIS (0x0 << 5 )
#define GPOE_OE5_EN (0x1 << 5 )
/* GPOE[OE4] - Pin output drive enable */
#define GPOE_OE4_MSK (0x1 << 4 )
#define GPOE_OE4 (0x1 << 4 )
#define GPOE_OE4_DIS (0x0 << 4 )
#define GPOE_OE4_EN (0x1 << 4 )
/* GPOE[OE3] - Pin output drive enable */
#define GPOE_OE3_MSK (0x1 << 3 )
#define GPOE_OE3 (0x1 << 3 )
#define GPOE_OE3_DIS (0x0 << 3 )
#define GPOE_OE3_EN (0x1 << 3 )
/* GPOE[OE2] - Pin output drive enable */
#define GPOE_OE2_MSK (0x1 << 2 )
#define GPOE_OE2 (0x1 << 2 )
#define GPOE_OE2_DIS (0x0 << 2 )
#define GPOE_OE2_EN (0x1 << 2 )
/* GPOE[OE1] - Pin output drive enable */
#define GPOE_OE1_MSK (0x1 << 1 )
#define GPOE_OE1 (0x1 << 1 )
#define GPOE_OE1_DIS (0x0 << 1 )
#define GPOE_OE1_EN (0x1 << 1 )
/* GPOE[OE0] - Pin output drive enable */
#define GPOE_OE0_MSK (0x1 << 0 )
#define GPOE_OE0 (0x1 << 0 )
#define GPOE_OE0_DIS (0x0 << 0 )
#define GPOE_OE0_EN (0x1 << 0 )
/* GPPUL[PUL7] - Pin Pull up enable */
#define GPPUL_PUL7_MSK (0x1 << 7 )
#define GPPUL_PUL7 (0x1 << 7 )
#define GPPUL_PUL7_DIS (0x0 << 7 )
#define GPPUL_PUL7_EN (0x1 << 7 )
/* GPPUL[PUL6] - Pin Pull up enable */
#define GPPUL_PUL6_MSK (0x1 << 6 )
#define GPPUL_PUL6 (0x1 << 6 )
#define GPPUL_PUL6_DIS (0x0 << 6 )
#define GPPUL_PUL6_EN (0x1 << 6 )
/* GPPUL[PUL5] - Pin Pull up enable */
#define GPPUL_PUL5_MSK (0x1 << 5 )
#define GPPUL_PUL5 (0x1 << 5 )
#define GPPUL_PUL5_DIS (0x0 << 5 )
#define GPPUL_PUL5_EN (0x1 << 5 )
/* GPPUL[PUL4] - Pin Pull up enable */
#define GPPUL_PUL4_MSK (0x1 << 4 )
#define GPPUL_PUL4 (0x1 << 4 )
#define GPPUL_PUL4_DIS (0x0 << 4 )
#define GPPUL_PUL4_EN (0x1 << 4 )
/* GPPUL[PUL3] - Pin Pull up enable */
#define GPPUL_PUL3_MSK (0x1 << 3 )
#define GPPUL_PUL3 (0x1 << 3 )
#define GPPUL_PUL3_DIS (0x0 << 3 )
#define GPPUL_PUL3_EN (0x1 << 3 )
/* GPPUL[PUL2] - Pin Pull up enable */
#define GPPUL_PUL2_MSK (0x1 << 2 )
#define GPPUL_PUL2 (0x1 << 2 )
#define GPPUL_PUL2_DIS (0x0 << 2 )
#define GPPUL_PUL2_EN (0x1 << 2 )
/* GPPUL[PUL1] - Pin Pull up enable */
#define GPPUL_PUL1_MSK (0x1 << 1 )
#define GPPUL_PUL1 (0x1 << 1 )
#define GPPUL_PUL1_DIS (0x0 << 1 )
#define GPPUL_PUL1_EN (0x1 << 1 )
/* GPPUL[PUL0] - Pin Pull up enable */
#define GPPUL_PUL0_MSK (0x1 << 0 )
#define GPPUL_PUL0 (0x1 << 0 )
#define GPPUL_PUL0_DIS (0x0 << 0 )
#define GPPUL_PUL0_EN (0x1 << 0 )
/* GPIN[IN7] - Registered data input */
#define GPIN_IN7_MSK (0x1 << 7 )
#define GPIN_IN7 (0x1 << 7 )
#define GPIN_IN7_LOW (0x0 << 7 )
#define GPIN_IN7_HIGH (0x1 << 7 )
/* GPIN[IN6] - Registered data input */
#define GPIN_IN6_MSK (0x1 << 6 )
#define GPIN_IN6 (0x1 << 6 )
#define GPIN_IN6_LOW (0x0 << 6 )
#define GPIN_IN6_HIGH (0x1 << 6 )
/* GPIN[IN5] - Registered data input */
#define GPIN_IN5_MSK (0x1 << 5 )
#define GPIN_IN5 (0x1 << 5 )
#define GPIN_IN5_LOW (0x0 << 5 )
#define GPIN_IN5_HIGH (0x1 << 5 )
/* GPIN[IN4] - Registered data input */
#define GPIN_IN4_MSK (0x1 << 4 )
#define GPIN_IN4 (0x1 << 4 )
#define GPIN_IN4_LOW (0x0 << 4 )
#define GPIN_IN4_HIGH (0x1 << 4 )
/* GPIN[IN3] - Registered data input */
#define GPIN_IN3_MSK (0x1 << 3 )
#define GPIN_IN3 (0x1 << 3 )
#define GPIN_IN3_LOW (0x0 << 3 )
#define GPIN_IN3_HIGH (0x1 << 3 )
/* GPIN[IN2] - Registered data input */
#define GPIN_IN2_MSK (0x1 << 2 )
#define GPIN_IN2 (0x1 << 2 )
#define GPIN_IN2_LOW (0x0 << 2 )
#define GPIN_IN2_HIGH (0x1 << 2 )
/* GPIN[IN1] - Registered data input */
#define GPIN_IN1_MSK (0x1 << 1 )
#define GPIN_IN1 (0x1 << 1 )
#define GPIN_IN1_LOW (0x0 << 1 )
#define GPIN_IN1_HIGH (0x1 << 1 )
/* GPIN[IN0] - Registered data input */
#define GPIN_IN0_MSK (0x1 << 0 )
#define GPIN_IN0 (0x1 << 0 )
#define GPIN_IN0_LOW (0x0 << 0 )
#define GPIN_IN0_HIGH (0x1 << 0 )
/* GPOUT[OUT7] - Data out */
#define GPOUT_OUT7_MSK (0x1 << 7 )
#define GPOUT_OUT7 (0x1 << 7 )
#define GPOUT_OUT7_LOW (0x0 << 7 )
#define GPOUT_OUT7_HIGH (0x1 << 7 )
/* GPOUT[OUT6] - Data out */
#define GPOUT_OUT6_MSK (0x1 << 6 )
#define GPOUT_OUT6 (0x1 << 6 )
#define GPOUT_OUT6_LOW (0x0 << 6 )
#define GPOUT_OUT6_HIGH (0x1 << 6 )
/* GPOUT[OUT5] - Data out */
#define GPOUT_OUT5_MSK (0x1 << 5 )
#define GPOUT_OUT5 (0x1 << 5 )
#define GPOUT_OUT5_LOW (0x0 << 5 )
#define GPOUT_OUT5_HIGH (0x1 << 5 )
/* GPOUT[OUT4] - Data out */
#define GPOUT_OUT4_MSK (0x1 << 4 )
#define GPOUT_OUT4 (0x1 << 4 )
#define GPOUT_OUT4_LOW (0x0 << 4 )
#define GPOUT_OUT4_HIGH (0x1 << 4 )
/* GPOUT[OUT3] - Data out */
#define GPOUT_OUT3_MSK (0x1 << 3 )
#define GPOUT_OUT3 (0x1 << 3 )
#define GPOUT_OUT3_LOW (0x0 << 3 )
#define GPOUT_OUT3_HIGH (0x1 << 3 )
/* GPOUT[OUT2] - Data out */
#define GPOUT_OUT2_MSK (0x1 << 2 )
#define GPOUT_OUT2 (0x1 << 2 )
#define GPOUT_OUT2_LOW (0x0 << 2 )
#define GPOUT_OUT2_HIGH (0x1 << 2 )
/* GPOUT[OUT1] - Data out */
#define GPOUT_OUT1_MSK (0x1 << 1 )
#define GPOUT_OUT1 (0x1 << 1 )
#define GPOUT_OUT1_LOW (0x0 << 1 )
#define GPOUT_OUT1_HIGH (0x1 << 1 )
/* GPOUT[OUT0] - Data out */
#define GPOUT_OUT0_MSK (0x1 << 0 )
#define GPOUT_OUT0 (0x1 << 0 )
#define GPOUT_OUT0_LOW (0x0 << 0 )
#define GPOUT_OUT0_HIGH (0x1 << 0 )
/* GPSET[SET7] - Set the output high. */
#define GPSET_SET7_MSK (0x1 << 7 )
#define GPSET_SET7 (0x1 << 7 )
#define GPSET_SET7_SET (0x1 << 7 )
/* GPSET[SET6] - Set the output high. */
#define GPSET_SET6_MSK (0x1 << 6 )
#define GPSET_SET6 (0x1 << 6 )
#define GPSET_SET6_SET (0x1 << 6 )
/* GPSET[SET5] - Set the output high. */
#define GPSET_SET5_MSK (0x1 << 5 )
#define GPSET_SET5 (0x1 << 5 )
#define GPSET_SET5_SET (0x1 << 5 )
/* GPSET[SET4] - Set the output high. */
#define GPSET_SET4_MSK (0x1 << 4 )
#define GPSET_SET4 (0x1 << 4 )
#define GPSET_SET4_SET (0x1 << 4 )
/* GPSET[SET3] - Set the output high. */
#define GPSET_SET3_MSK (0x1 << 3 )
#define GPSET_SET3 (0x1 << 3 )
#define GPSET_SET3_SET (0x1 << 3 )
/* GPSET[SET2] - Set the output high. */
#define GPSET_SET2_MSK (0x1 << 2 )
#define GPSET_SET2 (0x1 << 2 )
#define GPSET_SET2_SET (0x1 << 2 )
/* GPSET[SET1] - Set the output high. */
#define GPSET_SET1_MSK (0x1 << 1 )
#define GPSET_SET1 (0x1 << 1 )
#define GPSET_SET1_SET (0x1 << 1 )
/* GPSET[SET0] - Set the output high. */
#define GPSET_SET0_MSK (0x1 << 0 )
#define GPSET_SET0 (0x1 << 0 )
#define GPSET_SET0_SET (0x1 << 0 )
/* GPCLR[CLR7] - Set the output low. */
#define GPCLR_CLR7_MSK (0x1 << 7 )
#define GPCLR_CLR7 (0x1 << 7 )
#define GPCLR_CLR7_CLR (0x1 << 7 )
/* GPCLR[CLR6] - Set the output low. */
#define GPCLR_CLR6_MSK (0x1 << 6 )
#define GPCLR_CLR6 (0x1 << 6 )
#define GPCLR_CLR6_CLR (0x1 << 6 )
/* GPCLR[CLR5] - Set the output low. */
#define GPCLR_CLR5_MSK (0x1 << 5 )
#define GPCLR_CLR5 (0x1 << 5 )
#define GPCLR_CLR5_CLR (0x1 << 5 )
/* GPCLR[CLR4] - Set the output low. */
#define GPCLR_CLR4_MSK (0x1 << 4 )
#define GPCLR_CLR4 (0x1 << 4 )
#define GPCLR_CLR4_CLR (0x1 << 4 )
/* GPCLR[CLR3] - Set the output low. */
#define GPCLR_CLR3_MSK (0x1 << 3 )
#define GPCLR_CLR3 (0x1 << 3 )
#define GPCLR_CLR3_CLR (0x1 << 3 )
/* GPCLR[CLR2] - Set the output low. */
#define GPCLR_CLR2_MSK (0x1 << 2 )
#define GPCLR_CLR2 (0x1 << 2 )
#define GPCLR_CLR2_CLR (0x1 << 2 )
/* GPCLR[CLR1] - Set the output low. */
#define GPCLR_CLR1_MSK (0x1 << 1 )
#define GPCLR_CLR1 (0x1 << 1 )
#define GPCLR_CLR1_CLR (0x1 << 1 )
/* GPCLR[CLR0] - Set the output low. */
#define GPCLR_CLR0_MSK (0x1 << 0 )
#define GPCLR_CLR0 (0x1 << 0 )
#define GPCLR_CLR0_CLR (0x1 << 0 )
/* GPTGL[TGL7] - Toggle the output of the port pin */
#define GPTGL_TGL7_MSK (0x1 << 7 )
#define GPTGL_TGL7 (0x1 << 7 )
#define GPTGL_TGL7_TGL (0x1 << 7 )
/* GPTGL[TGL6] - Toggle the output of the port pin */
#define GPTGL_TGL6_MSK (0x1 << 6 )
#define GPTGL_TGL6 (0x1 << 6 )
#define GPTGL_TGL6_TGL (0x1 << 6 )
/* GPTGL[TGL5] - Toggle the output of the port pin */
#define GPTGL_TGL5_MSK (0x1 << 5 )
#define GPTGL_TGL5 (0x1 << 5 )
#define GPTGL_TGL5_TGL (0x1 << 5 )
/* GPTGL[TGL4] - Toggle the output of the port pin */
#define GPTGL_TGL4_MSK (0x1 << 4 )
#define GPTGL_TGL4 (0x1 << 4 )
#define GPTGL_TGL4_TGL (0x1 << 4 )
/* GPTGL[TGL3] - Toggle the output of the port pin */
#define GPTGL_TGL3_MSK (0x1 << 3 )
#define GPTGL_TGL3 (0x1 << 3 )
#define GPTGL_TGL3_TGL (0x1 << 3 )
/* GPTGL[TGL2] - Toggle the output of the port pin */
#define GPTGL_TGL2_MSK (0x1 << 2 )
#define GPTGL_TGL2 (0x1 << 2 )
#define GPTGL_TGL2_TGL (0x1 << 2 )
/* GPTGL[TGL1] - Toggle the output of the port pin */
#define GPTGL_TGL1_MSK (0x1 << 1 )
#define GPTGL_TGL1 (0x1 << 1 )
#define GPTGL_TGL1_TGL (0x1 << 1 )
/* GPTGL[TGL0] - Toggle the output of the port pin */
#define GPTGL_TGL0_MSK (0x1 << 0 )
#define GPTGL_TGL0 (0x1 << 0 )
#define GPTGL_TGL0_TGL (0x1 << 0 )
/* DACCON[PD] - DAC0 power down */
#define DACCON_PD_MSK (0x1 << 8 )
#define DACCON_PD (0x1 << 8 )
/* DACCON[EN] - DAC0 enable */
#define DACCON_EN_MSK (0x1 << 4 )
#define DACCON_EN (0x1 << 4 )
/* DACCON[RN] - DAC0 reference selection */
#define DACCON_RN_MSK (0x3 << 0 )
/* DACDAT[DAT] - DAC0 data */
#define DACDAT_DAT_MSK (0xFFF << 16 )
/* IDACCON[CLRB] - IDAC0 Clear bit */
#define IDACCON_CLRB_MSK (0x1 << 7 )
#define IDACCON_CLRB (0x1 << 7 )
/* IDACCON[SHT_EN] - IDAC0 shutdown enable */
#define IDACCON_SHT_EN_MSK (0x1 << 6 )
#define IDACCON_SHT_EN (0x1 << 6 )
/* IDACCON[BW] - IDAC0 bandwidth */
#define IDACCON_BW_MSK (0xF << 2 )
/* IDACCON[PUL] - IDAC0 pull down */
#define IDACCON_PUL_MSK (0x1 << 1 )
#define IDACCON_PUL (0x1 << 1 )
/* IDACCON[PD] - IDAC0 power down */
#define IDACCON_PD_MSK (0x1 << 0 )
#define IDACCON_PD (0x1 << 0 )
#define IDACCON_PD_ON (0x0 << 0 ) /* Powers IDAC0 up */
#define IDACCON_PD_OFF (0x1 << 0 ) /* Powers IDAC0 down */
/* IDACDAT[DATH] - IDAC0 high data */
#define IDACDAT_DATH_MSK (0x7FF << 17 )
/* IDACDAT[DATL] - IDAC0 low data */
#define IDACDAT_DATL_MSK (0x1F << 12 )
/* IDACDAT[SYNC] - IDAC0 sync bits */
#define IDACDAT_SYNC_MSK (0x3F << 0 )
// ------------------------------------------------------------------------------------------------
// ----- TIMER -----
// ------------------------------------------------------------------------------------------------
/**
* @brief tmr0 (pADI_TMR0)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_TMR0 Structure */
__IO uint16_t TLD; /*!< 16-bit load value register */
__I uint16_t RESERVED0;
__IO uint16_t TVAL; /*!< 16-bit timer value register */
__I uint16_t RESERVED1;
__IO uint16_t TCON; /*!< Control register */
__I uint16_t RESERVED2;
__IO uint16_t TCLRI; /*!< Clear interrupt register */
__I uint16_t RESERVED3;
__IO uint16_t TCAP; /*!< Capture register */
__I uint16_t RESERVED4[5];
__IO uint16_t TSTA; /*!< Status register */
} ADI_TIMER_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define T0LD (*(volatile unsigned short int *) 0x40000000)
#define T0VAL (*(volatile unsigned short int *) 0x40000004)
#define T0CON (*(volatile unsigned short int *) 0x40000008)
#define T0CLRI (*(volatile unsigned short int *) 0x4000000C)
#define T0CAP (*(volatile unsigned short int *) 0x40000010)
#define T0STA (*(volatile unsigned short int *) 0x4000001C)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for T0LD*/
#define T0LD_RVAL 0x0
/* T0LD[LOAD] - Load value */
#define T0LD_LOAD_MSK (0xFFFF << 0 )
/* Reset Value for T0VAL*/
#define T0VAL_RVAL 0x0
/* T0VAL[VAL] - Current count */
#define T0VAL_VAL_MSK (0xFFFF << 0 )
/* Reset Value for T0CON*/
#define T0CON_RVAL 0xA
/* T0CON[EVENTEN] - Event select */
#define T0CON_EVENTEN_BBA (*(volatile unsigned long *) 0x42000130)
#define T0CON_EVENTEN_MSK (0x1 << 12 )
#define T0CON_EVENTEN (0x1 << 12 )
#define T0CON_EVENTEN_DIS (0x0 << 12 ) /* Events will not be captured */
#define T0CON_EVENTEN_EN (0x1 << 12 ) /* Events will be captured */
/* T0CON[EVENT] - Event select range */
#define T0CON_EVENT_MSK (0xF << 8 )
/* T0CON[RLD] - Reload control */
#define T0CON_RLD_BBA (*(volatile unsigned long *) 0x4200011C)
#define T0CON_RLD_MSK (0x1 << 7 )
#define T0CON_RLD (0x1 << 7 )
#define T0CON_RLD_EN (0x1 << 7 ) /* Resets the up/down counter when TCLRI[0] is set */
#define T0CON_RLD_DIS (0x0 << 7 ) /* Up/Down counter is only reset on a timeout event */
/* T0CON[CLK] - Clock select */
#define T0CON_CLK_MSK (0x3 << 5 )
#define T0CON_CLK_PCLK (0x0 << 5 ) /* PCLK. */
#define T0CON_CLK_HCLK (0x1 << 5 ) /* HCLK. */
#define T0CON_CLK_LFOSC (0x2 << 5 ) /* LFOSC. 32 KHz OSC */
#define T0CON_CLK_HFXTAL (0x3 << 5 ) /* HFXTAL. 16 MHz OSC or XTAL (Dependent on CLKCON0.11) */
/* T0CON[ENABLE] - Timer enable */
#define T0CON_ENABLE_BBA (*(volatile unsigned long *) 0x42000110)
#define T0CON_ENABLE_MSK (0x1 << 4 )
#define T0CON_ENABLE (0x1 << 4 )
#define T0CON_ENABLE_DIS (0x0 << 4 ) /* DIS. Timer is disabled (default) */
#define T0CON_ENABLE_EN (0x1 << 4 ) /* EN. Timer is enabled */
/* T0CON[MOD] - Timer mode */
#define T0CON_MOD_BBA (*(volatile unsigned long *) 0x4200010C)
#define T0CON_MOD_MSK (0x1 << 3 )
#define T0CON_MOD (0x1 << 3 )
#define T0CON_MOD_FREERUN (0x0 << 3 ) /* FREERUN.Timer runs in free running mode */
#define T0CON_MOD_PERIODIC (0x1 << 3 ) /* PERIODIC. Timer runs in periodic mode (default) */
/* T0CON[UP] - Count up */
#define T0CON_UP_BBA (*(volatile unsigned long *) 0x42000108)
#define T0CON_UP_MSK (0x1 << 2 )
#define T0CON_UP (0x1 << 2 )
#define T0CON_UP_DIS (0x0 << 2 ) /* DIS. Timer is set to count down (default) */
#define T0CON_UP_EN (0x1 << 2 ) /* EN. Timer is set to count up */
/* T0CON[PRE] - Prescaler */
#define T0CON_PRE_MSK (0x3 << 0 )
#define T0CON_PRE_DIV1 (0x0 << 0 ) /* source_clock / [1 or 4] */
#define T0CON_PRE_DIV16 (0x1 << 0 ) /* source_clock / 16 */
#define T0CON_PRE_DIV256 (0x2 << 0 ) /* source_clock / 256 */
#define T0CON_PRE_DIV32768 (0x3 << 0 ) /* source_clock / 32,768 */
/* Reset Value for T0CLRI*/
#define T0CLRI_RVAL 0x0
/* T0CLRI[CAP] - Clear captured event interrupt */
#define T0CLRI_CAP_BBA (*(volatile unsigned long *) 0x42000184)
#define T0CLRI_CAP_MSK (0x1 << 1 )
#define T0CLRI_CAP (0x1 << 1 )
#define T0CLRI_CAP_CLR (0x1 << 1 ) /* Clear the capture event interrupt */
/* T0CLRI[TMOUT] - Clear timeout interrupt */
#define T0CLRI_TMOUT_BBA (*(volatile unsigned long *) 0x42000180)
#define T0CLRI_TMOUT_MSK (0x1 << 0 )
#define T0CLRI_TMOUT (0x1 << 0 )
#define T0CLRI_TMOUT_CLR (0x1 << 0 ) /* Clears the timeout interrupt */
/* Reset Value for T0CAP*/
#define T0CAP_RVAL 0x0
/* T0CAP[CAP] - 16-bit captured value */
#define T0CAP_CAP_MSK (0xFFFF << 0 )
/* Reset Value for T0STA*/
#define T0STA_RVAL 0x0
/* T0STA[PDOK] - TCLRI synchronization */
#define T0STA_PDOK_BBA (*(volatile unsigned long *) 0x4200039C)
#define T0STA_PDOK_MSK (0x1 << 7 )
#define T0STA_PDOK (0x1 << 7 )
#define T0STA_PDOK_CLR (0x0 << 7 ) /* CLR. The interrupt is cleared in the timer clock domain */
#define T0STA_PDOK_SET (0x1 << 7 ) /* SET. TCLRI[0] is being updated in the timer clock domain */
/* T0STA[BUSY] - Timer Busy */
#define T0STA_BUSY_BBA (*(volatile unsigned long *) 0x42000398)
#define T0STA_BUSY_MSK (0x1 << 6 )
#define T0STA_BUSY (0x1 << 6 )
#define T0STA_BUSY_CLR (0x0 << 6 ) /* CLR. Timer ready to receive commands to TCON */
#define T0STA_BUSY_SET (0x1 << 6 ) /* SET. Timer not ready to receive commands to TCON */
/* T0STA[CAP] - Capture event pending */
#define T0STA_CAP_BBA (*(volatile unsigned long *) 0x42000384)
#define T0STA_CAP_MSK (0x1 << 1 )
#define T0STA_CAP (0x1 << 1 )
#define T0STA_CAP_CLR (0x0 << 1 ) /* CLR. No capture event is pending */
#define T0STA_CAP_SET (0x1 << 1 ) /* SET. A capture event is pending */
/* T0STA[TMOUT] - Timeout event occurred */
#define T0STA_TMOUT_BBA (*(volatile unsigned long *) 0x42000380)
#define T0STA_TMOUT_MSK (0x1 << 0 )
#define T0STA_TMOUT (0x1 << 0 )
#define T0STA_TMOUT_CLR (0x0 << 0 ) /* CLR. No timeout event has occurred */
#define T0STA_TMOUT_SET (0x1 << 0 ) /* SET. A timeout event has occurred */
#if (__NO_MMR_STRUCTS__==1)
#define T1LD (*(volatile unsigned short int *) 0x40000400)
#define T1VAL (*(volatile unsigned short int *) 0x40000404)
#define T1CON (*(volatile unsigned short int *) 0x40000408)
#define T1CLRI (*(volatile unsigned short int *) 0x4000040C)
#define T1CAP (*(volatile unsigned short int *) 0x40000410)
#define T1STA (*(volatile unsigned short int *) 0x4000041C)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for T1LD*/
#define T1LD_RVAL 0x0
/* T1LD[LOAD] - Load value */
#define T1LD_LOAD_MSK (0xFFFF << 0 )
/* Reset Value for T1VAL*/
#define T1VAL_RVAL 0x0
/* T1VAL[VAL] - Current count */
#define T1VAL_VAL_MSK (0xFFFF << 0 )
/* Reset Value for T1CON*/
#define T1CON_RVAL 0xA
/* T1CON[EVENTEN] - Event select */
#define T1CON_EVENTEN_BBA (*(volatile unsigned long *) 0x42008130)
#define T1CON_EVENTEN_MSK (0x1 << 12 )
#define T1CON_EVENTEN (0x1 << 12 )
#define T1CON_EVENTEN_DIS (0x0 << 12 ) /* Events will not be captured */
#define T1CON_EVENTEN_EN (0x1 << 12 ) /* Events will be captured */
/* T1CON[EVENT] - Event select range */
#define T1CON_EVENT_MSK (0xF << 8 )
/* T1CON[RLD] - Reload control */
#define T1CON_RLD_BBA (*(volatile unsigned long *) 0x4200811C)
#define T1CON_RLD_MSK (0x1 << 7 )
#define T1CON_RLD (0x1 << 7 )
#define T1CON_RLD_EN (0x1 << 7 ) /* Resets the up/down counter when TCLRI[0] is set */
#define T1CON_RLD_DIS (0x0 << 7 ) /* Up/Down counter is only reset on a timeout event */
/* T1CON[CLK] - Clock select */
#define T1CON_CLK_MSK (0x3 << 5 )
#define T1CON_CLK_PCLK (0x0 << 5 ) /* PCLK. */
#define T1CON_CLK_HCLK (0x1 << 5 ) /* HCLK. */
#define T1CON_CLK_LFOSC (0x2 << 5 ) /* LFOSC. 32 KHz OSC */
#define T1CON_CLK_HFXTAL (0x3 << 5 ) /* HFXTAL. 16 MHz OSC or XTAL (Dependent on CLKCON0.11) */
/* T1CON[ENABLE] - Timer enable */
#define T1CON_ENABLE_BBA (*(volatile unsigned long *) 0x42008110)
#define T1CON_ENABLE_MSK (0x1 << 4 )
#define T1CON_ENABLE (0x1 << 4 )
#define T1CON_ENABLE_DIS (0x0 << 4 ) /* DIS. Timer is disabled (default) */
#define T1CON_ENABLE_EN (0x1 << 4 ) /* EN. Timer is enabled */
/* T1CON[MOD] - Timer mode */
#define T1CON_MOD_BBA (*(volatile unsigned long *) 0x4200810C)
#define T1CON_MOD_MSK (0x1 << 3 )
#define T1CON_MOD (0x1 << 3 )
#define T1CON_MOD_FREERUN (0x0 << 3 ) /* FREERUN. Timer runs in free running mode */
#define T1CON_MOD_PERIODIC (0x1 << 3 ) /* PERIODIC. Timer runs in periodic mode (default) */
/* T1CON[UP] - Count up */
#define T1CON_UP_BBA (*(volatile unsigned long *) 0x42008108)
#define T1CON_UP_MSK (0x1 << 2 )
#define T1CON_UP (0x1 << 2 )
#define T1CON_UP_DIS (0x0 << 2 ) /* DIS. Timer is set to count down (default) */
#define T1CON_UP_EN (0x1 << 2 ) /* EN. Timer is set to count up */
/* T1CON[PRE] - Prescaler */
#define T1CON_PRE_MSK (0x3 << 0 )
#define T1CON_PRE_DIV1 (0x0 << 0 ) /* source_clock / [1 or 4] */
#define T1CON_PRE_DIV16 (0x1 << 0 ) /* source_clock / 16 */
#define T1CON_PRE_DIV256 (0x2 << 0 ) /* source_clock / 256 */
#define T1CON_PRE_DIV32768 (0x3 << 0 ) /* source_clock / 32,768 */
/* Reset Value for T1CLRI*/
#define T1CLRI_RVAL 0x0
/* T1CLRI[CAP] - Clear captured event interrupt */
#define T1CLRI_CAP_BBA (*(volatile unsigned long *) 0x42008184)
#define T1CLRI_CAP_MSK (0x1 << 1 )
#define T1CLRI_CAP (0x1 << 1 )
#define T1CLRI_CAP_CLR (0x1 << 1 ) /* Clear the capture event interrupt */
/* T1CLRI[TMOUT] - Clear timeout interrupt */
#define T1CLRI_TMOUT_BBA (*(volatile unsigned long *) 0x42008180)
#define T1CLRI_TMOUT_MSK (0x1 << 0 )
#define T1CLRI_TMOUT (0x1 << 0 )
#define T1CLRI_TMOUT_CLR (0x1 << 0 ) /* Clears the timeout interrupt */
/* Reset Value for T1CAP*/
#define T1CAP_RVAL 0x0
/* T1CAP[CAP] - 16-bit captured value */
#define T1CAP_CAP_MSK (0xFFFF << 0 )
/* Reset Value for T1STA*/
#define T1STA_RVAL 0x0
/* T1STA[PDOK] - TCLRI synchronization */
#define T1STA_PDOK_BBA (*(volatile unsigned long *) 0x4200839C)
#define T1STA_PDOK_MSK (0x1 << 7 )
#define T1STA_PDOK (0x1 << 7 )
#define T1STA_PDOK_CLR (0x0 << 7 ) /* CLR. The interrupt is cleared in the timer clock domain */
#define T1STA_PDOK_SET (0x1 << 7 ) /* SET. TCLRI[0] is being updated in the timer clock domain */
/* T1STA[BUSY] - Timer Busy */
#define T1STA_BUSY_BBA (*(volatile unsigned long *) 0x42008398)
#define T1STA_BUSY_MSK (0x1 << 6 )
#define T1STA_BUSY (0x1 << 6 )
#define T1STA_BUSY_CLR (0x0 << 6 ) /* CLR. Timer ready to receive commands to TCON */
#define T1STA_BUSY_SET (0x1 << 6 ) /* SET. Timer not ready to receive commands to TCON */
/* T1STA[CAP] - Capture event pending */
#define T1STA_CAP_BBA (*(volatile unsigned long *) 0x42008384)
#define T1STA_CAP_MSK (0x1 << 1 )
#define T1STA_CAP (0x1 << 1 )
#define T1STA_CAP_CLR (0x0 << 1 ) /* CLR. No capture event is pending */
#define T1STA_CAP_SET (0x1 << 1 ) /* SET. A capture event is pending */
/* T1STA[TMOUT] - Timeout event occurred */
#define T1STA_TMOUT_BBA (*(volatile unsigned long *) 0x42008380)
#define T1STA_TMOUT_MSK (0x1 << 0 )
#define T1STA_TMOUT (0x1 << 0 )
#define T1STA_TMOUT_CLR (0x0 << 0 ) /* CLR. No timeout event has occurred */
#define T1STA_TMOUT_SET (0x1 << 0 ) /* SET. A timeout event has occurred */
#if (__NO_MMR_STRUCTS__==1)
#define T2LD (*(volatile unsigned short int *) 0x40000800)
#define T2VAL (*(volatile unsigned short int *) 0x40000804)
#define T2CON (*(volatile unsigned short int *) 0x40000808)
#define T2CLRI (*(volatile unsigned short int *) 0x4000080C)
#define T2CAP (*(volatile unsigned short int *) 0x40000810)
#define T2STA (*(volatile unsigned short int *) 0x4000081C)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for T2LD*/
#define T2LD_RVAL 0x0
/* T2LD[LOAD] - Load value */
#define T2LD_LOAD_MSK (0xFFFF << 0 )
/* Reset Value for T2VAL*/
#define T2VAL_RVAL 0x0
/* T2VAL[VAL] - Current count */
#define T2VAL_VAL_MSK (0xFFFF << 0 )
/* Reset Value for T2CON*/
#define T2CON_RVAL 0xA
/* T2CON[EVENTEN] - Event select */
#define T2CON_EVENTEN_BBA (*(volatile unsigned long *) 0x42010130)
#define T2CON_EVENTEN_MSK (0x1 << 12 )
#define T2CON_EVENTEN (0x1 << 12 )
#define T2CON_EVENTEN_DIS (0x0 << 12 ) /* Events will not be captured */
#define T2CON_EVENTEN_EN (0x1 << 12 ) /* Events will be captured */
/* T2CON[EVENT] - Event select range */
#define T2CON_EVENT_MSK (0xF << 8 )
/* T2CON[RLD] - Reload control */
#define T2CON_RLD_BBA (*(volatile unsigned long *) 0x4201011C)
#define T2CON_RLD_MSK (0x1 << 7 )
#define T2CON_RLD (0x1 << 7 )
#define T2CON_RLD_EN (0x1 << 7 ) /* Resets the up/down counter when TCLRI[0] is set */
#define T2CON_RLD_DIS (0x0 << 7 ) /* Up/Down counter is only reset on a timeout event */
/* T2CON[CLK] - Clock select */
#define T2CON_CLK_MSK (0x3 << 5 )
#define T2CON_CLK_PCLK (0x0 << 5 ) /* PCLK */
#define T2CON_CLK_HCLK (0x1 << 5 ) /* HCLK */
#define T2CON_CLK_LFOSC (0x2 << 5 ) /* LFOSC. 32 KHz OSC */
#define T2CON_CLK_HFXTAL (0x3 << 5 ) /* HFXTAL. 16 MHz OSC or XTAL (Dependent on CLKCON0.11) */
/* T2CON[ENABLE] - Timer enable */
#define T2CON_ENABLE_BBA (*(volatile unsigned long *) 0x42010110)
#define T2CON_ENABLE_MSK (0x1 << 4 )
#define T2CON_ENABLE (0x1 << 4 )
#define T2CON_ENABLE_DIS (0x0 << 4 ) /* DIS. Timer is disabled (default) */
#define T2CON_ENABLE_EN (0x1 << 4 ) /* EN. Timer is enabled */
/* T2CON[MOD] - Timer mode */
#define T2CON_MOD_BBA (*(volatile unsigned long *) 0x4201010C)
#define T2CON_MOD_MSK (0x1 << 3 )
#define T2CON_MOD (0x1 << 3 )
#define T2CON_MOD_FREERUN (0x0 << 3 ) /* FREERUN. Timer runs in free running mode */
#define T2CON_MOD_PERIODIC (0x1 << 3 ) /* PERIODIC. Timer runs in periodic mode (default) */
/* T2CON[UP] - Count up */
#define T2CON_UP_BBA (*(volatile unsigned long *) 0x42010108)
#define T2CON_UP_MSK (0x1 << 2 )
#define T2CON_UP (0x1 << 2 )
#define T2CON_UP_DIS (0x0 << 2 ) /* DIS. Timer is set to count down (default) */
#define T2CON_UP_EN (0x1 << 2 ) /* EN. Timer is set to count up */
/* T2CON[PRE] - Prescaler */
#define T2CON_PRE_MSK (0x3 << 0 )
#define T2CON_PRE_DIV1 (0x0 << 0 ) /* source_clock / [1 or 4] */
#define T2CON_PRE_DIV16 (0x1 << 0 ) /* source_clock / 16 */
#define T2CON_PRE_DIV256 (0x2 << 0 ) /* source_clock / 256 */
#define T2CON_PRE_DIV32768 (0x3 << 0 ) /* source_clock / 32,768 */
/* Reset Value for T2CLRI*/
#define T2CLRI_RVAL 0x0
/* T2CLRI[CAP] - Clear captured event interrupt */
#define T2CLRI_CAP_BBA (*(volatile unsigned long *) 0x42010184)
#define T2CLRI_CAP_MSK (0x1 << 1 )
#define T2CLRI_CAP (0x1 << 1 )
#define T2CLRI_CAP_CLR (0x1 << 1 ) /* Clear the capture event interrupt */
/* T2CLRI[TMOUT] - Clear timeout interrupt */
#define T2CLRI_TMOUT_BBA (*(volatile unsigned long *) 0x42010180)
#define T2CLRI_TMOUT_MSK (0x1 << 0 )
#define T2CLRI_TMOUT (0x1 << 0 )
#define T2CLRI_TMOUT_CLR (0x1 << 0 ) /* Clears the timeout interrupt */
/* Reset Value for T2CAP*/
#define T2CAP_RVAL 0x0
/* T2CAP[CAP] - 16-bit captured value */
#define T2CAP_CAP_MSK (0xFFFF << 0 )
/* Reset Value for T2STA*/
#define T2STA_RVAL 0x0
/* T2STA[PDOK] - TCLRI synchronization */
#define T2STA_PDOK_BBA (*(volatile unsigned long *) 0x4201039C)
#define T2STA_PDOK_MSK (0x1 << 7 )
#define T2STA_PDOK (0x1 << 7 )
#define T2STA_PDOK_CLR (0x0 << 7 ) /* CLR. The interrupt is cleared in the timer clock domain */
#define T2STA_PDOK_SET (0x1 << 7 ) /* SET. TCLRI[0] is being updated in the timer clock domain */
/* T2STA[BUSY] - Timer Busy */
#define T2STA_BUSY_BBA (*(volatile unsigned long *) 0x42010398)
#define T2STA_BUSY_MSK (0x1 << 6 )
#define T2STA_BUSY (0x1 << 6 )
#define T2STA_BUSY_CLR (0x0 << 6 ) /* CLR. Timer ready to receive commands to TCON */
#define T2STA_BUSY_SET (0x1 << 6 ) /* SET. Timer not ready to receive commands to TCON */
/* T2STA[CAP] - Capture event pending */
#define T2STA_CAP_BBA (*(volatile unsigned long *) 0x42010384)
#define T2STA_CAP_MSK (0x1 << 1 )
#define T2STA_CAP (0x1 << 1 )
#define T2STA_CAP_CLR (0x0 << 1 ) /* CLR. No capture event is pending */
#define T2STA_CAP_SET (0x1 << 1 ) /* SET. A capture event is pending */
/* T2STA[TMOUT] - Timeout event occurred */
#define T2STA_TMOUT_BBA (*(volatile unsigned long *) 0x42010380)
#define T2STA_TMOUT_MSK (0x1 << 0 )
#define T2STA_TMOUT (0x1 << 0 )
#define T2STA_TMOUT_CLR (0x0 << 0 ) /* CLR. No timeout event has occurred */
#define T2STA_TMOUT_SET (0x1 << 0 ) /* SET. A timeout event has occurred */
// ------------------------------------------------------------------------------------------------
// ----- ID -----
// ------------------------------------------------------------------------------------------------
/**
* @brief misc16 (pADI_ID)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_ID Structure */
__IO uint16_t CHIPID; /*!< Digital die ID */
} ADI_ID_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define CHIPID (*(volatile unsigned short int *) 0x40002024)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for CHIPID*/
#define CHIPID_RVAL 0x561
/* CHIPID[PARTID] - Part Identifier */
#define CHIPID_PARTID_MSK (0xFFF << 4 )
/* CHIPID[REV] - Silicon Revision Number */
#define CHIPID_REV_MSK (0xF << 0 )
// ------------------------------------------------------------------------------------------------
// ----- PWRCTL -----
// ------------------------------------------------------------------------------------------------
/**
* @brief always_on (pADI_PWRCTL)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_PWRCTL Structure */
__IO uint16_t PWRMOD; /*!< Power modes */
__I uint16_t RESERVED0;
__IO uint16_t PWRKEY; /*!< Key protection for PWRMOD */
} ADI_PWRCTL_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define PWRMOD (*(volatile unsigned short int *) 0x40002400)
#define PWRKEY (*(volatile unsigned short int *) 0x40002404)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for PWRMOD*/
#define PWRMOD_RVAL 0x0
/* PWRMOD[WICENACK] - WIC Acknowledgment for SLEEPDEEP */
#define PWRMOD_WICENACK_BBA (*(volatile unsigned long *) 0x4204800C)
#define PWRMOD_WICENACK_MSK (0x1 << 3 )
#define PWRMOD_WICENACK (0x1 << 3 )
#define PWRMOD_WICENACK_DIS (0x0 << 3 )
#define PWRMOD_WICENACK_EN (0x1 << 3 )
/* PWRMOD[PWRMOD] - Power modes control bits */
#define PWRMOD_PWRMOD_MSK (0x3 << 0 )
#define PWRMOD_PWRMOD_FULLACTIVE (0x0 << 0 ) /* Active Mode */
#define PWRMOD_PWRMOD_CORESLEEP (0x1 << 0 ) /* CORE_SLEEP Mode */
#define PWRMOD_PWRMOD_SYSSLEEP (0x2 << 0 ) /* SYS_SLEEP Mode */
#define PWRMOD_PWRMOD_HIBERNATE (0x3 << 0 ) /* Hibernate Mode */
/* Reset Value for PWRKEY*/
#define PWRKEY_RVAL 0x0
/* PWRKEY[PWRKEY] - Power control key register */
#define PWRKEY_PWRKEY_MSK (0xFFFF << 0 )
// ------------------------------------------------------------------------------------------------
// ----- RESET -----
// ------------------------------------------------------------------------------------------------
/**
* @brief always_on (pADI_RESET)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_RESET Structure */
__IO uint16_t RSTCFG; /*!< Reset configuration */
__I uint16_t RESERVED0;
__IO uint16_t RSTKEY; /*!< Key protection for RSTCFG */
__I uint16_t RESERVED1[25];
__IO uint16_t RSTSTA; /*!< Reset status */
} ADI_RESET_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define RSTCFG (*(volatile unsigned short int *) 0x40002408)
#define RSTKEY (*(volatile unsigned short int *) 0x4000240C)
#define RSTSTA (*(volatile unsigned short int *) 0x40002440)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for RSTCFG*/
#define RSTCFG_RVAL 0x0
/* RSTCFG[GPIO_PLA_RETAIN] - GPIO/PLA retain their status after WDT and software reset */
#define RSTCFG_GPIO_PLA_RETAIN_BBA (*(volatile unsigned long *) 0x42048100)
#define RSTCFG_GPIO_PLA_RETAIN_MSK (0x1 << 0 )
#define RSTCFG_GPIO_PLA_RETAIN (0x1 << 0 )
#define RSTCFG_GPIO_PLA_RETAIN_DIS (0x1 << 0 ) /* GPIO/PLA don't retain status after watchdog or software reset. */
#define RSTCFG_GPIO_PLA_RETAIN_EN (0x0 << 0 ) /* GPIO/PLA retain status after watchdog or software reset */
/* Reset Value for RSTKEY*/
#define RSTKEY_RVAL 0x0
/* RSTKEY[RSTKEY] - Reset configuration key register */
#define RSTKEY_RSTKEY_MSK (0xFFFF << 0 )
/* Reset Value for RSTSTA*/
#define RSTSTA_RVAL 0x0
/* RSTSTA[SWRST] - Software reset */
#define RSTSTA_SWRST_BBA (*(volatile unsigned long *) 0x4204880C)
#define RSTSTA_SWRST_MSK (0x1 << 3 )
#define RSTSTA_SWRST (0x1 << 3 )
#define RSTSTA_SWRST_DIS (0x0 << 3 )
#define RSTSTA_SWRST_EN (0x1 << 3 )
/* RSTSTA[WDRST] - Watchdog timeout */
#define RSTSTA_WDRST_BBA (*(volatile unsigned long *) 0x42048808)
#define RSTSTA_WDRST_MSK (0x1 << 2 )
#define RSTSTA_WDRST (0x1 << 2 )
#define RSTSTA_WDRST_DIS (0x0 << 2 )
#define RSTSTA_WDRST_EN (0x1 << 2 )
/* RSTSTA[EXTRST] - External reset */
#define RSTSTA_EXTRST_BBA (*(volatile unsigned long *) 0x42048804)
#define RSTSTA_EXTRST_MSK (0x1 << 1 )
#define RSTSTA_EXTRST (0x1 << 1 )
#define RSTSTA_EXTRST_DIS (0x0 << 1 )
#define RSTSTA_EXTRST_EN (0x1 << 1 )
/* RSTSTA[POR] - Power-on reset */
#define RSTSTA_POR_BBA (*(volatile unsigned long *) 0x42048800)
#define RSTSTA_POR_MSK (0x1 << 0 )
#define RSTSTA_POR (0x1 << 0 )
#define RSTSTA_POR_DIS (0x0 << 0 )
#define RSTSTA_POR_EN (0x1 << 0 )
// ------------------------------------------------------------------------------------------------
// ----- INTERRUPT -----
// ------------------------------------------------------------------------------------------------
/**
* @brief always_on (pADI_INTERRUPT)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_INTERRUPT Structure */
__IO uint16_t EI0CFG; /*!< External Interrupt configuration 0 */
__I uint16_t RESERVED0;
__IO uint16_t EI1CFG; /*!< External Interrupt configuration 1 */
__I uint16_t RESERVED1;
__IO uint16_t EI2CFG; /*!< External Interrupt configuration 2 */
__I uint16_t RESERVED2[3];
__IO uint16_t EICLR; /*!< External Interrupt clear */
} ADI_INTERRUPT_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define EI0CFG (*(volatile unsigned short int *) 0x40002420)
#define EI1CFG (*(volatile unsigned short int *) 0x40002424)
#define EI2CFG (*(volatile unsigned short int *) 0x40002428)
#define EICLR (*(volatile unsigned short int *) 0x40002430)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for EI0CFG*/
#define EI0CFG_RVAL 0x0
/* EI0CFG[IRQ3EN] - External Interrupt 3 enable bit */
#define EI0CFG_IRQ3EN_BBA (*(volatile unsigned long *) 0x4204843C)
#define EI0CFG_IRQ3EN_MSK (0x1 << 15 )
#define EI0CFG_IRQ3EN (0x1 << 15 )
#define EI0CFG_IRQ3EN_DIS (0x0 << 15 ) /* External Interrupt 3 disabled */
#define EI0CFG_IRQ3EN_EN (0x1 << 15 ) /* External Interrupt 3 enabled */
/* EI0CFG[IRQ3MDE] - External Interrupt 3 Mode registers */
#define EI0CFG_IRQ3MDE_MSK (0x7 << 12 )
#define EI0CFG_IRQ3MDE_RISE (0x0 << 12 ) /* Rising edge */
#define EI0CFG_IRQ3MDE_FALL (0x1 << 12 ) /* Falling edge */
#define EI0CFG_IRQ3MDE_RISEORFALL (0x2 << 12 ) /* Rising or falling edge */
#define EI0CFG_IRQ3MDE_HIGHLEVEL (0x3 << 12 ) /* High level */
#define EI0CFG_IRQ3MDE_LOWLEVEL (0x4 << 12 ) /* Low level */
/* EI0CFG[IRQ2EN] - External Interrupt 2 Enable bit */
#define EI0CFG_IRQ2EN_BBA (*(volatile unsigned long *) 0x4204842C)
#define EI0CFG_IRQ2EN_MSK (0x1 << 11 )
#define EI0CFG_IRQ2EN (0x1 << 11 )
#define EI0CFG_IRQ2EN_DIS (0x0 << 11 ) /* External Interrupt 2 disabled */
#define EI0CFG_IRQ2EN_EN (0x1 << 11 ) /* External Interrupt 2 enabled */
/* EI0CFG[IRQ2MDE] - External Interrupt 2 Mode registers */
#define EI0CFG_IRQ2MDE_MSK (0x7 << 8 )
#define EI0CFG_IRQ2MDE_RISE (0x0 << 8 ) /* Rising edge */
#define EI0CFG_IRQ2MDE_FALL (0x1 << 8 ) /* Falling edge */
#define EI0CFG_IRQ2MDE_RISEORFALL (0x2 << 8 ) /* Rising or falling edge */
#define EI0CFG_IRQ2MDE_HIGHLEVEL (0x3 << 8 ) /* High level */
#define EI0CFG_IRQ2MDE_LOWLEVEL (0x4 << 8 ) /* Low level */
/* EI0CFG[IRQ1EN] - External Interrupt 1 Enable bit */
#define EI0CFG_IRQ1EN_BBA (*(volatile unsigned long *) 0x4204841C)
#define EI0CFG_IRQ1EN_MSK (0x1 << 7 )
#define EI0CFG_IRQ1EN (0x1 << 7 )
#define EI0CFG_IRQ1EN_DIS (0x0 << 7 ) /* External Interrupt 0 disabled */
#define EI0CFG_IRQ1EN_EN (0x1 << 7 ) /* External Interrupt 0 enabled */
/* EI0CFG[IRQ1MDE] - External Interrupt 1 Mode registers */
#define EI0CFG_IRQ1MDE_MSK (0x7 << 4 )
#define EI0CFG_IRQ1MDE_RISE (0x0 << 4 ) /* Rising edge */
#define EI0CFG_IRQ1MDE_FALL (0x1 << 4 ) /* Falling edge */
#define EI0CFG_IRQ1MDE_RISEORFALL (0x2 << 4 ) /* Rising or falling edge */
#define EI0CFG_IRQ1MDE_HIGHLEVEL (0x3 << 4 ) /* High level */
#define EI0CFG_IRQ1MDE_LOWLEVEL (0x4 << 4 ) /* Low level */
/* EI0CFG[IRQ0EN] - External Interrupt 0 Enable bit */
#define EI0CFG_IRQ0EN_BBA (*(volatile unsigned long *) 0x4204840C)
#define EI0CFG_IRQ0EN_MSK (0x1 << 3 )
#define EI0CFG_IRQ0EN (0x1 << 3 )
#define EI0CFG_IRQ0EN_DIS (0x0 << 3 ) /* External Interrupt 0 disabled */
#define EI0CFG_IRQ0EN_EN (0x1 << 3 ) /* External Interrupt 0 enabled */
/* EI0CFG[IRQ0MDE] - External Interrupt 0 Mode registers */
#define EI0CFG_IRQ0MDE_MSK (0x7 << 0 )
#define EI0CFG_IRQ0MDE_RISE (0x0 << 0 ) /* Rising edge */
#define EI0CFG_IRQ0MDE_FALL (0x1 << 0 ) /* Falling edge */
#define EI0CFG_IRQ0MDE_RISEORFALL (0x2 << 0 ) /* Rising or falling edge */
#define EI0CFG_IRQ0MDE_HIGHLEVEL (0x3 << 0 ) /* High level */
#define EI0CFG_IRQ0MDE_LOWLEVEL (0x4 << 0 ) /* Low level */
/* Reset Value for EI1CFG*/
#define EI1CFG_RVAL 0x0
/* EI1CFG[IRQ7EN] - External Interrupt 7 enable bit */
#define EI1CFG_IRQ7EN_BBA (*(volatile unsigned long *) 0x420484BC)
#define EI1CFG_IRQ7EN_MSK (0x1 << 15 )
#define EI1CFG_IRQ7EN (0x1 << 15 )
#define EI1CFG_IRQ7EN_DIS (0x0 << 15 ) /* External Interrupt 7 disabled */
#define EI1CFG_IRQ7EN_EN (0x1 << 15 ) /* External Interrupt 7 enabled */
/* EI1CFG[IRQ7MDE] - External Interrupt 7 Mode registers */
#define EI1CFG_IRQ7MDE_MSK (0x7 << 12 )
#define EI1CFG_IRQ7MDE_RISE (0x0 << 12 ) /* Rising edge */
#define EI1CFG_IRQ7MDE_FALL (0x1 << 12 ) /* Falling edge */
#define EI1CFG_IRQ7MDE_RISEORFALL (0x2 << 12 ) /* Rising or falling edge */
#define EI1CFG_IRQ7MDE_HIGHLEVEL (0x3 << 12 ) /* High level */
#define EI1CFG_IRQ7MDE_LOWLEVEL (0x4 << 12 ) /* Low level */
/* EI1CFG[IRQ6EN] - External Interrupt 6 Enable bit */
#define EI1CFG_IRQ6EN_BBA (*(volatile unsigned long *) 0x420484AC)
#define EI1CFG_IRQ6EN_MSK (0x1 << 11 )
#define EI1CFG_IRQ6EN (0x1 << 11 )
#define EI1CFG_IRQ6EN_DIS (0x0 << 11 ) /* External Interrupt 6 disabled */
#define EI1CFG_IRQ6EN_EN (0x1 << 11 ) /* External Interrupt 6 enabled */
/* EI1CFG[IRQ6MDE] - External Interrupt 6 Mode registers */
#define EI1CFG_IRQ6MDE_MSK (0x7 << 8 )
#define EI1CFG_IRQ6MDE_RISE (0x0 << 8 ) /* Rising edge */
#define EI1CFG_IRQ6MDE_FALL (0x1 << 8 ) /* Falling edge */
#define EI1CFG_IRQ6MDE_RISEORFALL (0x2 << 8 ) /* Rising or falling edge */
#define EI1CFG_IRQ6MDE_HIGHLEVEL (0x3 << 8 ) /* High level */
#define EI1CFG_IRQ6MDE_LOWLEVEL (0x4 << 8 ) /* Low level */
/* EI1CFG[IRQ5EN] - External Interrupt 5 Enable bit */
#define EI1CFG_IRQ5EN_BBA (*(volatile unsigned long *) 0x4204849C)
#define EI1CFG_IRQ5EN_MSK (0x1 << 7 )
#define EI1CFG_IRQ5EN (0x1 << 7 )
#define EI1CFG_IRQ5EN_DIS (0x0 << 7 ) /* External Interrupt 5 disabled */
#define EI1CFG_IRQ5EN_EN (0x1 << 7 ) /* External Interrupt 5 enabled */
/* EI1CFG[IRQ5MDE] - External Interrupt 5 Mode registers */
#define EI1CFG_IRQ5MDE_MSK (0x7 << 4 )
#define EI1CFG_IRQ5MDE_RISING (0x0 << 4 ) /* Rising edge */
#define EI1CFG_IRQ5MDE_FALLING (0x1 << 4 ) /* Falling edge */
#define EI1CFG_IRQ5MDE_RISEORFALL (0x2 << 4 ) /* Rising or falling edge */
#define EI1CFG_IRQ5MDE_HIGHLEVEL (0x3 << 4 ) /* High level */
#define EI1CFG_IRQ5MDE_LOWLEVEL (0x4 << 4 ) /* Low level */
/* EI1CFG[IRQ4EN] - External Interrupt 4 Enable bit */
#define EI1CFG_IRQ4EN_BBA (*(volatile unsigned long *) 0x4204848C)
#define EI1CFG_IRQ4EN_MSK (0x1 << 3 )
#define EI1CFG_IRQ4EN (0x1 << 3 )
#define EI1CFG_IRQ4EN_DIS (0x0 << 3 ) /* External Interrupt 4 disabled */
#define EI1CFG_IRQ4EN_EN (0x1 << 3 ) /* External Interrupt 4 enabled */
/* EI1CFG[IRQ4MDE] - External Interrupt 4 Mode registers */
#define EI1CFG_IRQ4MDE_MSK (0x7 << 0 )
#define EI1CFG_IRQ4MDE_RISE (0x0 << 0 ) /* Rising edge */
#define EI1CFG_IRQ4MDE_FALL (0x1 << 0 ) /* Falling edge */
#define EI1CFG_IRQ4MDE_RISEORFALL (0x2 << 0 ) /* Rising or falling edge */
#define EI1CFG_IRQ4MDE_HIGHLEVEL (0x3 << 0 ) /* High level */
#define EI1CFG_IRQ4MDE_LOWLEVEL (0x4 << 0 ) /* Low level */
/* Reset Value for EI2CFG*/
#define EI2CFG_RVAL 0x0
/* EI2CFG[IRQ8EN] - External Interrupt 8 Enable bit */
#define EI2CFG_IRQ8EN_BBA (*(volatile unsigned long *) 0x4204850C)
#define EI2CFG_IRQ8EN_MSK (0x1 << 3 )
#define EI2CFG_IRQ8EN (0x1 << 3 )
#define EI2CFG_IRQ8EN_DIS (0x0 << 3 ) /* External Interrupt 8 disabled */
#define EI2CFG_IRQ8EN_EN (0x1 << 3 ) /* External Interrupt 8 enabled */
/* EI2CFG[IRQ8MDE] - External Interrupt 8 Mode registers */
#define EI2CFG_IRQ8MDE_MSK (0x7 << 0 )
#define EI2CFG_IRQ8MDE_RISE (0x0 << 0 ) /* Rising edge */
#define EI2CFG_IRQ8MDE_FALL (0x1 << 0 ) /* Falling edge */
#define EI2CFG_IRQ8MDE_RISEORFALL (0x2 << 0 ) /* Rising or falling edge */
#define EI2CFG_IRQ8MDE_HIGHLEVEL (0x3 << 0 ) /* High level */
#define EI2CFG_IRQ8MDE_LOWLEVEL (0x4 << 0 ) /* Low level */
/* Reset Value for EICLR*/
#define EICLR_RVAL 0x0
/* EICLR[IRQ8] - External interrupt 8 */
#define EICLR_IRQ8_BBA (*(volatile unsigned long *) 0x42048620)
#define EICLR_IRQ8_MSK (0x1 << 8 )
#define EICLR_IRQ8 (0x1 << 8 )
#define EICLR_IRQ8_DIS (0x0 << 8 )
#define EICLR_IRQ8_EN (0x1 << 8 )
/* EICLR[IRQ7] - External interrupt 7 */
#define EICLR_IRQ7_BBA (*(volatile unsigned long *) 0x4204861C)
#define EICLR_IRQ7_MSK (0x1 << 7 )
#define EICLR_IRQ7 (0x1 << 7 )
#define EICLR_IRQ7_DIS (0x0 << 7 )
#define EICLR_IRQ7_EN (0x1 << 7 )
/* EICLR[IRQ6] - External interrupt 6 */
#define EICLR_IRQ6_BBA (*(volatile unsigned long *) 0x42048618)
#define EICLR_IRQ6_MSK (0x1 << 6 )
#define EICLR_IRQ6 (0x1 << 6 )
#define EICLR_IRQ6_DIS (0x0 << 6 )
#define EICLR_IRQ6_EN (0x1 << 6 )
/* EICLR[IRQ5] - External interrupt 5 */
#define EICLR_IRQ5_BBA (*(volatile unsigned long *) 0x42048614)
#define EICLR_IRQ5_MSK (0x1 << 5 )
#define EICLR_IRQ5 (0x1 << 5 )
#define EICLR_IRQ5_DIS (0x0 << 5 )
#define EICLR_IRQ5_EN (0x1 << 5 )
/* EICLR[IRQ4] - External interrupt 4 */
#define EICLR_IRQ4_BBA (*(volatile unsigned long *) 0x42048610)
#define EICLR_IRQ4_MSK (0x1 << 4 )
#define EICLR_IRQ4 (0x1 << 4 )
#define EICLR_IRQ4_DIS (0x0 << 4 )
#define EICLR_IRQ4_EN (0x1 << 4 )
/* EICLR[IRQ3] - External interrupt 3 */
#define EICLR_IRQ3_BBA (*(volatile unsigned long *) 0x4204860C)
#define EICLR_IRQ3_MSK (0x1 << 3 )
#define EICLR_IRQ3 (0x1 << 3 )
#define EICLR_IRQ3_DIS (0x0 << 3 )
#define EICLR_IRQ3_EN (0x1 << 3 )
/* EICLR[IRQ2] - External interrupt 2 */
#define EICLR_IRQ2_BBA (*(volatile unsigned long *) 0x42048608)
#define EICLR_IRQ2_MSK (0x1 << 2 )
#define EICLR_IRQ2 (0x1 << 2 )
#define EICLR_IRQ2_DIS (0x0 << 2 )
#define EICLR_IRQ2_EN (0x1 << 2 )
/* EICLR[IRQ1] - External interrupt 1 */
#define EICLR_IRQ1_BBA (*(volatile unsigned long *) 0x42048604)
#define EICLR_IRQ1_MSK (0x1 << 1 )
#define EICLR_IRQ1 (0x1 << 1 )
#define EICLR_IRQ1_DIS (0x0 << 1 )
#define EICLR_IRQ1_EN (0x1 << 1 )
/* EICLR[IRQ0] - External interrupt 0 */
#define EICLR_IRQ0_BBA (*(volatile unsigned long *) 0x42048600)
#define EICLR_IRQ0_MSK (0x1 << 0 )
#define EICLR_IRQ0 (0x1 << 0 )
#define EICLR_IRQ0_DIS (0x0 << 0 )
#define EICLR_IRQ0_EN (0x1 << 0 )
// ------------------------------------------------------------------------------------------------
// ----- wdt -----
// ------------------------------------------------------------------------------------------------
/**
* @brief wdt (pADI_WDT)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_WDT Structure */
__IO uint16_t T3LD; /*!< Load value register */
__I uint16_t RESERVED0;
__IO uint16_t T3VAL; /*!< Current count value register */
__I uint16_t RESERVED1;
__IO uint16_t T3CON; /*!< Control register */
__I uint16_t RESERVED2;
__IO uint16_t T3CLRI; /*!< Clear interrupt register */
__I uint16_t RESERVED3[5];
__IO uint16_t T3STA; /*!< Status register */
} ADI_WDT_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define T3LD (*(volatile unsigned short int *) 0x40002580)
#define T3VAL (*(volatile unsigned short int *) 0x40002584)
#define T3CON (*(volatile unsigned short int *) 0x40002588)
#define T3CLRI (*(volatile unsigned short int *) 0x4000258C)
#define T3STA (*(volatile unsigned short int *) 0x40002598)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for T3LD*/
#define T3LD_RVAL 0x1000
/* T3LD[LOAD] - Load value */
#define T3LD_LOAD_MSK (0xFFFF << 0 )
/* Reset Value for T3VAL*/
#define T3VAL_RVAL 0x1000
/* T3VAL[CCOUNT] - Current count value */
#define T3VAL_CCOUNT_MSK (0xFFFF << 0 )
/* Reset Value for T3CON*/
#define T3CON_RVAL 0xE9
/* T3CON[MOD] - Timer mode */
#define T3CON_MOD_BBA (*(volatile unsigned long *) 0x4204B118)
#define T3CON_MOD_MSK (0x1 << 6 )
#define T3CON_MOD (0x1 << 6 )
#define T3CON_MOD_FREERUN (0x0 << 6 ) /* FREERUN. Cleared by user to operate in free running mode. */
#define T3CON_MOD_PERIODIC (0x1 << 6 ) /* PERIODIC. Set by user to operate in periodic mode (default). */
/* T3CON[ENABLE] - Timer enable */
#define T3CON_ENABLE_BBA (*(volatile unsigned long *) 0x4204B114)
#define T3CON_ENABLE_MSK (0x1 << 5 )
#define T3CON_ENABLE (0x1 << 5 )
#define T3CON_ENABLE_DIS (0x0 << 5 ) /* DIS. Cleared by user to disable the timer. */
#define T3CON_ENABLE_EN (0x1 << 5 ) /* EN. Set by user to enable the timer (default). */
/* T3CON[PRE] - Prescaler */
#define T3CON_PRE_MSK (0x3 << 2 )
#define T3CON_PRE_DIV1 (0x0 << 2 ) /* DIV1.Source clock/1. */
#define T3CON_PRE_DIV16 (0x1 << 2 ) /* DIV16. Source clock/16. */
#define T3CON_PRE_DIV256 (0x2 << 2 ) /* DIV256. Source clock/256 (default). */
#define T3CON_PRE_DIV4096 (0x3 << 2 ) /* DIV4096. Source clock/4096 */
/* T3CON[IRQ] - Timer interrupt */
#define T3CON_IRQ_BBA (*(volatile unsigned long *) 0x4204B104)
#define T3CON_IRQ_MSK (0x1 << 1 )
#define T3CON_IRQ (0x1 << 1 )
#define T3CON_IRQ_DIS (0x0 << 1 ) /* DIS.Cleared by user to generate a reset on a time out (default). */
#define T3CON_IRQ_EN (0x1 << 1 ) /* EN.Set by user to generate an interrupt when the timer times out. This feature is provided for debug purposes and is only available in ACTIVE mode. */
/* T3CON[PMD] - Power Mode Disable */
#define T3CON_PMD_BBA (*(volatile unsigned long *) 0x4204B100)
#define T3CON_PMD_MSK (0x1 << 0 )
#define T3CON_PMD (0x1 << 0 )
#define T3CON_PMD_DIS (0x0 << 0 ) /* DIS. The watchdog timer will continue its count down while in hibernate mode. */
#define T3CON_PMD_EN (0x1 << 0 ) /* EN. When hibernate mode is entered, the watchdog counter will suspend its count down. As hibernate mode is exited, the count down will resume from its current count value (the count will not be reset). */
/* Reset Value for T3CLRI*/
#define T3CLRI_RVAL 0x0
/* T3CLRI[CLRWDG] - Clear watchdog */
#define T3CLRI_CLRWDG_MSK (0xFFFF << 0 )
/* Reset Value for T3STA*/
#define T3STA_RVAL 0x0
/* T3STA[LOCK] - Lock status bit */
#define T3STA_LOCK_BBA (*(volatile unsigned long *) 0x4204B310)
#define T3STA_LOCK_MSK (0x1 << 4 )
#define T3STA_LOCK (0x1 << 4 )
#define T3STA_LOCK_CLR (0x0 << 4 )
#define T3STA_LOCK_SET (0x1 << 4 )
/* T3STA[CON] - T3CON write sync in progress */
#define T3STA_CON_BBA (*(volatile unsigned long *) 0x4204B30C)
#define T3STA_CON_MSK (0x1 << 3 )
#define T3STA_CON (0x1 << 3 )
#define T3STA_CON_CLR (0x0 << 3 ) /* APB and T3 clock domains T3CON configuration values match */
#define T3STA_CON_SET (0x1 << 3 ) /* APB T3CON register values are being synchronized to T3 clock domain */
/* T3STA[LD] - T3LD write sync in progress */
#define T3STA_LD_BBA (*(volatile unsigned long *) 0x4204B308)
#define T3STA_LD_MSK (0x1 << 2 )
#define T3STA_LD (0x1 << 2 )
#define T3STA_LD_CLR (0x0 << 2 ) /* APB and T3 clock domains T3LD values match */
#define T3STA_LD_SET (0x1 << 2 ) /* APB T3LD value is being synchronized to T3 clock domain */
/* T3STA[CLRI] - T3CLRI write sync in progress */
#define T3STA_CLRI_BBA (*(volatile unsigned long *) 0x4204B304)
#define T3STA_CLRI_MSK (0x1 << 1 )
#define T3STA_CLRI (0x1 << 1 )
#define T3STA_CLRI_CLR (0x0 << 1 ) /* APB T3CLRI write sync not done/ */
#define T3STA_CLRI_SET (0x1 << 1 ) /* APB T3CLRI write is being synced to T3 clock domain. T3 will be restarted (if 0xCCCC was written) once sync is complete */
// ------------------------------------------------------------------------------------------------
// ----- wut -----
// ------------------------------------------------------------------------------------------------
/**
* @brief wut (pADI_WUT)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_WUT Structure */
__IO uint16_t T4VAL0; /*!< Current count value - LS 16 bits */
__I uint16_t RESERVED0;
__IO uint16_t T4VAL1; /*!< Current count value - MS 16 bits */
__I uint16_t RESERVED1;
__IO uint16_t T4CON; /*!< Control register */
__I uint16_t RESERVED2;
__IO uint16_t T4INC; /*!< 12-bit interval for wakeup field A */
__I uint16_t RESERVED3;
__IO uint16_t T4WUFB0; /*!< Wakeup field B - LS 16 bits */
__I uint16_t RESERVED4;
__IO uint16_t T4WUFB1; /*!< Wakeup field B - MS 16 bits */
__I uint16_t RESERVED5;
__IO uint16_t T4WUFC0; /*!< Wakeup field C - LS 16 bits */
__I uint16_t RESERVED6;
__IO uint16_t T4WUFC1; /*!< Wakeup field C - MS 16 bits */
__I uint16_t RESERVED7;
__IO uint16_t T4WUFD0; /*!< Wakeup field D - LS 16 bits */
__I uint16_t RESERVED8;
__IO uint16_t T4WUFD1; /*!< Wakeup field D - MS 16 bits */
__I uint16_t RESERVED9;
__IO uint16_t T4IEN; /*!< Interrupt enable register */
__I uint16_t RESERVED10;
__IO uint16_t T4STA; /*!< Status register */
__I uint16_t RESERVED11;
__IO uint16_t T4CLRI; /*!< Clear interrupt register */
__I uint16_t RESERVED12[5];
__IO uint16_t T4WUFA0; /*!< Wakeup field A - LS 16 bits */
__I uint16_t RESERVED13;
__IO uint16_t T4WUFA1; /*!< Wakeup field A - MS 16 bits */
} ADI_WUT_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define T4VAL0 (*(volatile unsigned short int *) 0x40002500)
#define T4VAL1 (*(volatile unsigned short int *) 0x40002504)
#define T4CON (*(volatile unsigned short int *) 0x40002508)
#define T4INC (*(volatile unsigned short int *) 0x4000250C)
#define T4WUFB0 (*(volatile unsigned short int *) 0x40002510)
#define T4WUFB1 (*(volatile unsigned short int *) 0x40002514)
#define T4WUFC0 (*(volatile unsigned short int *) 0x40002518)
#define T4WUFC1 (*(volatile unsigned short int *) 0x4000251C)
#define T4WUFD0 (*(volatile unsigned short int *) 0x40002520)
#define T4WUFD1 (*(volatile unsigned short int *) 0x40002524)
#define T4IEN (*(volatile unsigned short int *) 0x40002528)
#define T4STA (*(volatile unsigned short int *) 0x4000252C)
#define T4CLRI (*(volatile unsigned short int *) 0x40002530)
#define T4WUFA0 (*(volatile unsigned short int *) 0x4000253C)
#define T4WUFA1 (*(volatile unsigned short int *) 0x40002540)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for T4VAL0*/
#define T4VAL0_RVAL 0x0
/* T4VAL0[T4VALL] - Current count Low */
#define T4VAL0_T4VALL_MSK (0xFFFF << 0 )
/* Reset Value for T4VAL1*/
#define T4VAL1_RVAL 0x0
/* T4VAL1[T4VALH] - Current count high */
#define T4VAL1_T4VALH_MSK (0xFFFF << 0 )
/* Reset Value for T4CON*/
#define T4CON_RVAL 0x40
/* T4CON[STOP_WUFA] - Disables updating field A register T4WUFA */
#define T4CON_STOP_WUFA_BBA (*(volatile unsigned long *) 0x4204A12C)
#define T4CON_STOP_WUFA_MSK (0x1 << 11 )
#define T4CON_STOP_WUFA (0x1 << 11 )
#define T4CON_STOP_WUFA_DIS (0x0 << 11 )
#define T4CON_STOP_WUFA_EN (0x1 << 11 )
/* T4CON[CLK] - Clock select */
#define T4CON_CLK_MSK (0x3 << 9 )
#define T4CON_CLK_PCLK (0x0 << 9 ) /* PCLK: PCLK (default) */
#define T4CON_CLK_LFOSC (0x1 << 9 ) /* LFOSC: 32 kHz internal oscillator */
#define T4CON_CLK_ECLKIN (0x3 << 9 ) /* ECLKIN: External clock from P1.0 */
/* T4CON[WUEN] - Wakeup enable */
#define T4CON_WUEN_BBA (*(volatile unsigned long *) 0x4204A120)
#define T4CON_WUEN_MSK (0x1 << 8 )
#define T4CON_WUEN (0x1 << 8 )
#define T4CON_WUEN_DIS (0x0 << 8 ) /* DIS: Cleared by user to disable the wake up timer when the core clock is off */
#define T4CON_WUEN_EN (0x1 << 8 ) /* EN: Set by user to enable the wake up timer even when the core clock is off. */
/* T4CON[ENABLE] - Timer enable */
#define T4CON_ENABLE_BBA (*(volatile unsigned long *) 0x4204A11C)
#define T4CON_ENABLE_MSK (0x1 << 7 )
#define T4CON_ENABLE (0x1 << 7 )
#define T4CON_ENABLE_DIS (0x0 << 7 ) /* DIS: Disable the timer (default). */
#define T4CON_ENABLE_EN (0x1 << 7 ) /* EN: Enable the timer. */
/* T4CON[MOD] - Timer mode */
#define T4CON_MOD_BBA (*(volatile unsigned long *) 0x4204A118)
#define T4CON_MOD_MSK (0x1 << 6 )
#define T4CON_MOD (0x1 << 6 )
#define T4CON_MOD_PERIODIC (0x0 << 6 ) /* PERIODIC: Cleared by user to operate in periodic mode. In this mode, the timer counts up to T4WUFD */
#define T4CON_MOD_FREERUN (0x1 << 6 ) /* FREERUN: Set by user to operate in free running mode (default). */
/* T4CON[FREEZE] - Freeze enable */
#define T4CON_FREEZE_BBA (*(volatile unsigned long *) 0x4204A10C)
#define T4CON_FREEZE_MSK (0x1 << 3 )
#define T4CON_FREEZE (0x1 << 3 )
#define T4CON_FREEZE_DIS (0x0 << 3 ) /* DIS: Cleared by user to disable this feature (default). */
#define T4CON_FREEZE_EN (0x1 << 3 ) /* EN: Set by user to enable the freeze of the high 16-bits after the lower bits have been read from T4VAL0. This ensures that the software will read an atomic shot of the timer. T4VAL1 unfreezes after it has been read. */
/* T4CON[PRE] - Prescaler */
#define T4CON_PRE_MSK (0x3 << 0 )
#define T4CON_PRE_PREDIV1 (0x0 << 0 ) /* PREDIV1: source clock/1 (default). If the selected clock source is PCLK, then this setting results in a prescaler of 4. */
#define T4CON_PRE_PREDIV16 (0x1 << 0 ) /* PREDIV16: source clock/16 */
#define T4CON_PRE_PREDIV256 (0x2 << 0 ) /* PREDIV256: source clock/256 */
#define T4CON_PRE_PREDIV32768 (0x3 << 0 ) /* PREDIV32768: source clock/32,768 */
/* Reset Value for T4INC*/
#define T4INC_RVAL 0xC8
/* T4INC[INTERVAL] - Interval for wakeup field A */
#define T4INC_INTERVAL_MSK (0xFFF << 0 )
/* Reset Value for T4WUFB0*/
#define T4WUFB0_RVAL 0x1FFF
/* T4WUFB0[T4WUFBL] - Wakeup field B low */
#define T4WUFB0_T4WUFBL_MSK (0xFFFF << 0 )
/* Reset Value for T4WUFB1*/
#define T4WUFB1_RVAL 0x0
/* T4WUFB1[T4WUFBH] - Wakeup field B High */
#define T4WUFB1_T4WUFBH_MSK (0xFFFF << 0 )
/* Reset Value for T4WUFC0*/
#define T4WUFC0_RVAL 0x2FFF
/* T4WUFC0[T4WUFCL] - Wakeup field C Low */
#define T4WUFC0_T4WUFCL_MSK (0xFFFF << 0 )
/* Reset Value for T4WUFC1*/
#define T4WUFC1_RVAL 0x0
/* T4WUFC1[T4WUFCH] - Wakeup field C High */
#define T4WUFC1_T4WUFCH_MSK (0xFFFF << 0 )
/* Reset Value for T4WUFD0*/
#define T4WUFD0_RVAL 0x3FFF
/* T4WUFD0[T4WUFD0] - Wakeup field D Low */
#define T4WUFD0_T4WUFD0_MSK (0xFFFF << 0 )
/* Reset Value for T4WUFD1*/
#define T4WUFD1_RVAL 0x0
/* T4WUFD1[T4WUFDH] - Wakeup field D high */
#define T4WUFD1_T4WUFDH_MSK (0xFFFF << 0 )
/* Reset Value for T4IEN*/
#define T4IEN_RVAL 0x0
/* T4IEN[ROLL] - Rollover interrupt enable */
#define T4IEN_ROLL_BBA (*(volatile unsigned long *) 0x4204A510)
#define T4IEN_ROLL_MSK (0x1 << 4 )
#define T4IEN_ROLL (0x1 << 4 )
#define T4IEN_ROLL_DIS (0x0 << 4 )
#define T4IEN_ROLL_EN (0x1 << 4 )
/* T4IEN[WUFD] - T4WUFD interrupt enable */
#define T4IEN_WUFD_BBA (*(volatile unsigned long *) 0x4204A50C)
#define T4IEN_WUFD_MSK (0x1 << 3 )
#define T4IEN_WUFD (0x1 << 3 )
#define T4IEN_WUFD_DIS (0x0 << 3 )
#define T4IEN_WUFD_EN (0x1 << 3 )
/* T4IEN[WUFC] - T4WUFC interrupt enable */
#define T4IEN_WUFC_BBA (*(volatile unsigned long *) 0x4204A508)
#define T4IEN_WUFC_MSK (0x1 << 2 )
#define T4IEN_WUFC (0x1 << 2 )
#define T4IEN_WUFC_DIS (0x0 << 2 )
#define T4IEN_WUFC_EN (0x1 << 2 )
/* T4IEN[WUFB] - T4WUFB interrupt enable */
#define T4IEN_WUFB_BBA (*(volatile unsigned long *) 0x4204A504)
#define T4IEN_WUFB_MSK (0x1 << 1 )
#define T4IEN_WUFB (0x1 << 1 )
#define T4IEN_WUFB_DIS (0x0 << 1 )
#define T4IEN_WUFB_EN (0x1 << 1 )
/* T4IEN[WUFA] - T4WUFA interrupt enable */
#define T4IEN_WUFA_BBA (*(volatile unsigned long *) 0x4204A500)
#define T4IEN_WUFA_MSK (0x1 << 0 )
#define T4IEN_WUFA (0x1 << 0 )
#define T4IEN_WUFA_DIS (0x0 << 0 )
#define T4IEN_WUFA_EN (0x1 << 0 )
/* Reset Value for T4STA*/
#define T4STA_RVAL 0x0
/* T4STA[PDOK] - Enable bit synchronized */
#define T4STA_PDOK_BBA (*(volatile unsigned long *) 0x4204A5A0)
#define T4STA_PDOK_MSK (0x1 << 8 )
#define T4STA_PDOK (0x1 << 8 )
#define T4STA_PDOK_CLR (0x0 << 8 )
#define T4STA_PDOK_SET (0x1 << 8 )
/* T4STA[FREEZE] - Timer value freeze */
#define T4STA_FREEZE_BBA (*(volatile unsigned long *) 0x4204A59C)
#define T4STA_FREEZE_MSK (0x1 << 7 )
#define T4STA_FREEZE (0x1 << 7 )
#define T4STA_FREEZE_CLR (0x0 << 7 )
#define T4STA_FREEZE_SET (0x1 << 7 )
/* T4STA[IRQCRY] - Wakeup status to powerdown */
#define T4STA_IRQCRY_BBA (*(volatile unsigned long *) 0x4204A598)
#define T4STA_IRQCRY_MSK (0x1 << 6 )
#define T4STA_IRQCRY (0x1 << 6 )
#define T4STA_IRQCRY_CLR (0x0 << 6 )
#define T4STA_IRQCRY_SET (0x1 << 6 )
/* T4STA[ROLL] - Rollover interrupt flag */
#define T4STA_ROLL_BBA (*(volatile unsigned long *) 0x4204A590)
#define T4STA_ROLL_MSK (0x1 << 4 )
#define T4STA_ROLL (0x1 << 4 )
#define T4STA_ROLL_CLR (0x0 << 4 )
#define T4STA_ROLL_SET (0x1 << 4 )
/* T4STA[WUFD] - T4WUFD interrupt flag */
#define T4STA_WUFD_BBA (*(volatile unsigned long *) 0x4204A58C)
#define T4STA_WUFD_MSK (0x1 << 3 )
#define T4STA_WUFD (0x1 << 3 )
#define T4STA_WUFD_CLR (0x0 << 3 )
#define T4STA_WUFD_SET (0x1 << 3 )
/* T4STA[WUFC] - T4WUFC interrupt flag */
#define T4STA_WUFC_BBA (*(volatile unsigned long *) 0x4204A588)
#define T4STA_WUFC_MSK (0x1 << 2 )
#define T4STA_WUFC (0x1 << 2 )
#define T4STA_WUFC_CLR (0x0 << 2 )
#define T4STA_WUFC_SET (0x1 << 2 )
/* T4STA[WUFB] - T4WUFB interrupt flag */
#define T4STA_WUFB_BBA (*(volatile unsigned long *) 0x4204A584)
#define T4STA_WUFB_MSK (0x1 << 1 )
#define T4STA_WUFB (0x1 << 1 )
#define T4STA_WUFB_CLR (0x0 << 1 )
#define T4STA_WUFB_SET (0x1 << 1 )
/* T4STA[WUFA] - T4WUFA interrupt flag */
#define T4STA_WUFA_BBA (*(volatile unsigned long *) 0x4204A580)
#define T4STA_WUFA_MSK (0x1 << 0 )
#define T4STA_WUFA (0x1 << 0 )
#define T4STA_WUFA_CLR (0x0 << 0 )
#define T4STA_WUFA_SET (0x1 << 0 )
/* Reset Value for T4CLRI*/
#define T4CLRI_RVAL 0x0
/* T4CLRI[ROLL] - Rollover interrupt clear */
#define T4CLRI_ROLL_BBA (*(volatile unsigned long *) 0x4204A610)
#define T4CLRI_ROLL_MSK (0x1 << 4 )
#define T4CLRI_ROLL (0x1 << 4 )
#define T4CLRI_ROLL_DIS (0x0 << 4 )
#define T4CLRI_ROLL_EN (0x1 << 4 )
/* T4CLRI[WUFD] - T4WUFD interrupt clear */
#define T4CLRI_WUFD_BBA (*(volatile unsigned long *) 0x4204A60C)
#define T4CLRI_WUFD_MSK (0x1 << 3 )
#define T4CLRI_WUFD (0x1 << 3 )
#define T4CLRI_WUFD_DIS (0x0 << 3 )
#define T4CLRI_WUFD_EN (0x1 << 3 )
/* T4CLRI[WUFC] - T4WUFC interrupt clear */
#define T4CLRI_WUFC_BBA (*(volatile unsigned long *) 0x4204A608)
#define T4CLRI_WUFC_MSK (0x1 << 2 )
#define T4CLRI_WUFC (0x1 << 2 )
#define T4CLRI_WUFC_DIS (0x0 << 2 )
#define T4CLRI_WUFC_EN (0x1 << 2 )
/* T4CLRI[WUFB] - T4WUFB interrupt clear */
#define T4CLRI_WUFB_BBA (*(volatile unsigned long *) 0x4204A604)
#define T4CLRI_WUFB_MSK (0x1 << 1 )
#define T4CLRI_WUFB (0x1 << 1 )
#define T4CLRI_WUFB_DIS (0x0 << 1 )
#define T4CLRI_WUFB_EN (0x1 << 1 )
/* T4CLRI[WUFA] - T4WUFA interrupt clear */
#define T4CLRI_WUFA_BBA (*(volatile unsigned long *) 0x4204A600)
#define T4CLRI_WUFA_MSK (0x1 << 0 )
#define T4CLRI_WUFA (0x1 << 0 )
#define T4CLRI_WUFA_DIS (0x0 << 0 )
#define T4CLRI_WUFA_EN (0x1 << 0 )
/* Reset Value for T4WUFA0*/
#define T4WUFA0_RVAL 0x1900
/* T4WUFA0[T4WUFAL] - Wakeup field A Low */
#define T4WUFA0_T4WUFAL_MSK (0xFFFF << 0 )
/* Reset Value for T4WUFA1*/
#define T4WUFA1_RVAL 0x0
/* T4WUFA1[T4WUFAH] - Wakeup field A High */
#define T4WUFA1_T4WUFAH_MSK (0xFFFF << 0 )
// ------------------------------------------------------------------------------------------------
// ----- I2C -----
// ------------------------------------------------------------------------------------------------
/**
* @brief i2cms (pADI_I2C0)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_I2C0 Structure */
__IO uint16_t I2CMCON; /*!< Master control register */
__I uint16_t RESERVED0;
__IO uint16_t I2CMSTA; /*!< Master status register */
__I uint16_t RESERVED1;
__IO uint16_t I2CMRX; /*!< Master receive data register */
__I uint16_t RESERVED2;
__IO uint16_t I2CMTX; /*!< Master transmit data register */
__I uint16_t RESERVED3;
__IO uint16_t I2CMRXCNT; /*!< Master receive data count register */
__I uint16_t RESERVED4;
__IO uint16_t I2CMCRXCNT; /*!< Master current receive data count register */
__I uint16_t RESERVED5;
__IO uint16_t I2CADR0; /*!< 1st master address byte register */
__I uint16_t RESERVED6;
__IO uint16_t I2CADR1; /*!< 2nd master address byte register */
__I uint16_t RESERVED7[3];
__IO uint16_t I2CDIV; /*!< Serial clock period divisor register */
__I uint16_t RESERVED8;
__IO uint16_t I2CSCON; /*!< Slave control register */
__I uint16_t RESERVED9;
__IO uint16_t I2CSSTA; /*!< Slave I2C Status/Error/IRQ register */
__I uint16_t RESERVED10;
__IO uint16_t I2CSRX; /*!< Slave receive register */
__I uint16_t RESERVED11;
__IO uint16_t I2CSTX; /*!< Slave transmit register */
__I uint16_t RESERVED12;
__IO uint16_t I2CALT; /*!< Hardware general call ID register */
__I uint16_t RESERVED13;
__IO uint16_t I2CID0; /*!< 1st slave address device ID register */
__I uint16_t RESERVED14;
__IO uint16_t I2CID1; /*!< 2nd slave address device ID register */
__I uint16_t RESERVED15;
__IO uint16_t I2CID2; /*!< 3rd slave address device ID register */
__I uint16_t RESERVED16;
__IO uint16_t I2CID3; /*!< 4th slave address device ID register */
__I uint16_t RESERVED17;
__IO uint16_t I2CFSTA; /*!< Master and slave FIFO status register */
__I uint16_t RESERVED18;
__IO uint16_t I2CSHCON; /*!< Shared control register */
} ADI_I2C_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define I2C0MCON (*(volatile unsigned short int *) 0x40003000)
#define I2C0MSTA (*(volatile unsigned short int *) 0x40003004)
#define I2C0MRX (*(volatile unsigned short int *) 0x40003008)
#define I2C0MTX (*(volatile unsigned short int *) 0x4000300C)
#define I2C0MRXCNT (*(volatile unsigned short int *) 0x40003010)
#define I2C0MCRXCNT (*(volatile unsigned short int *) 0x40003014)
#define I2C0ADR0 (*(volatile unsigned short int *) 0x40003018)
#define I2C0ADR1 (*(volatile unsigned short int *) 0x4000301C)
#define I2C0DIV (*(volatile unsigned short int *) 0x40003024)
#define I2C0SCON (*(volatile unsigned short int *) 0x40003028)
#define I2C0SSTA (*(volatile unsigned short int *) 0x4000302C)
#define I2C0SRX (*(volatile unsigned short int *) 0x40003030)
#define I2C0STX (*(volatile unsigned short int *) 0x40003034)
#define I2C0ALT (*(volatile unsigned short int *) 0x40003038)
#define I2C0ID0 (*(volatile unsigned short int *) 0x4000303C)
#define I2C0ID1 (*(volatile unsigned short int *) 0x40003040)
#define I2C0ID2 (*(volatile unsigned short int *) 0x40003044)
#define I2C0ID3 (*(volatile unsigned short int *) 0x40003048)
#define I2C0FSTA (*(volatile unsigned short int *) 0x4000304C)
#define I2C0SHCON (*(volatile unsigned short int *) 0x40003050)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for I2C0MCON*/
#define I2C0MCON_RVAL 0x0
/* I2C0MCON[PRESTOP_BUS_CLR] - Prestop Bus-Clear */
#define I2C0MCON_PRESTOP_BUS_CLR_BBA (*(volatile unsigned long *) 0x42060034)
#define I2C0MCON_PRESTOP_BUS_CLR_MSK (0x1 << 13 )
#define I2C0MCON_PRESTOP_BUS_CLR (0x1 << 13 )
#define I2C0MCON_PRESTOP_BUS_CLR_DIS (0x0 << 13 )
#define I2C0MCON_PRESTOP_BUS_CLR_EN (0x1 << 13 )
/* I2C0MCON[BUS_CLR_EN] - Bus-Clear Enable */
#define I2C0MCON_BUS_CLR_EN_BBA (*(volatile unsigned long *) 0x42060030)
#define I2C0MCON_BUS_CLR_EN_MSK (0x1 << 12 )
#define I2C0MCON_BUS_CLR_EN (0x1 << 12 )
#define I2C0MCON_BUS_CLR_EN_DIS (0x0 << 12 )
#define I2C0MCON_BUS_CLR_EN_EN (0x1 << 12 )
/* I2C0MCON[MTXDMA] - Enable master Tx DMA request */
#define I2C0MCON_MTXDMA_BBA (*(volatile unsigned long *) 0x4206002C)
#define I2C0MCON_MTXDMA_MSK (0x1 << 11 )
#define I2C0MCON_MTXDMA (0x1 << 11 )
#define I2C0MCON_MTXDMA_DIS (0x0 << 11 ) /* Disable DMA mode */
#define I2C0MCON_MTXDMA_EN (0x1 << 11 ) /* Enable I2C master DMA Tx requests. */
/* I2C0MCON[MRXDMA] - Enable master Rx DMA request */
#define I2C0MCON_MRXDMA_BBA (*(volatile unsigned long *) 0x42060028)
#define I2C0MCON_MRXDMA_MSK (0x1 << 10 )
#define I2C0MCON_MRXDMA (0x1 << 10 )
#define I2C0MCON_MRXDMA_DIS (0x0 << 10 ) /* Disable DMA mode */
#define I2C0MCON_MRXDMA_EN (0x1 << 10 ) /* Enable I2C master DMA Rx requests. */
/* I2C0MCON[MXMITDEC] - Decrement master TX FIFO status when a byte has been transmitted */
#define I2C0MCON_MXMITDEC_BBA (*(volatile unsigned long *) 0x42060024)
#define I2C0MCON_MXMITDEC_MSK (0x1 << 9 )
#define I2C0MCON_MXMITDEC (0x1 << 9 )
#define I2C0MCON_MXMITDEC_DIS (0x0 << 9 )
#define I2C0MCON_MXMITDEC_EN (0x1 << 9 )
/* I2C0MCON[IENCMP] - Transaction completed (or stop detected) interrupt enable */
#define I2C0MCON_IENCMP_BBA (*(volatile unsigned long *) 0x42060020)
#define I2C0MCON_IENCMP_MSK (0x1 << 8 )
#define I2C0MCON_IENCMP (0x1 << 8 )
#define I2C0MCON_IENCMP_DIS (0x0 << 8 ) /* An interrupt is not generated when a STOP is detected. */
#define I2C0MCON_IENCMP_EN (0x1 << 8 ) /* An interrupt is generated when a STOP is detected. */
/* I2C0MCON[IENACK] - ACK not received interrupt enable */
#define I2C0MCON_IENACK_BBA (*(volatile unsigned long *) 0x4206001C)
#define I2C0MCON_IENACK_MSK (0x1 << 7 )
#define I2C0MCON_IENACK (0x1 << 7 )
#define I2C0MCON_IENACK_DIS (0x0 << 7 ) /* ACK not received interrupt disable */
#define I2C0MCON_IENACK_EN (0x1 << 7 ) /* ACK not received interrupt enable */
/* I2C0MCON[IENALOST] - Arbitration lost interrupt enable */
#define I2C0MCON_IENALOST_BBA (*(volatile unsigned long *) 0x42060018)
#define I2C0MCON_IENALOST_MSK (0x1 << 6 )
#define I2C0MCON_IENALOST (0x1 << 6 )
#define I2C0MCON_IENALOST_DIS (0x0 << 6 ) /* Arbitration lost interrupt disable */
#define I2C0MCON_IENALOST_EN (0x1 << 6 ) /* Arbitration lost interrupt enable */
/* I2C0MCON[IENMTX] - Transmit request interrupt enable */
#define I2C0MCON_IENMTX_BBA (*(volatile unsigned long *) 0x42060014)
#define I2C0MCON_IENMTX_MSK (0x1 << 5 )
#define I2C0MCON_IENMTX (0x1 << 5 )
#define I2C0MCON_IENMTX_DIS (0x0 << 5 ) /* Transmit request interrupt disable */
#define I2C0MCON_IENMTX_EN (0x1 << 5 ) /* Transmit request interrupt enable */
/* I2C0MCON[IENMRX] - Receive request interrupt enable */
#define I2C0MCON_IENMRX_BBA (*(volatile unsigned long *) 0x42060010)
#define I2C0MCON_IENMRX_MSK (0x1 << 4 )
#define I2C0MCON_IENMRX (0x1 << 4 )
#define I2C0MCON_IENMRX_DIS (0x0 << 4 ) /* Receive request interrupt disable */
#define I2C0MCON_IENMRX_EN (0x1 << 4 ) /* Receive request interrupt enable */
/* I2C0MCON[STRETCH] - Stretch SCL enable */
#define I2C0MCON_STRETCH_BBA (*(volatile unsigned long *) 0x4206000C)
#define I2C0MCON_STRETCH_MSK (0x1 << 3 )
#define I2C0MCON_STRETCH (0x1 << 3 )
#define I2C0MCON_STRETCH_DIS (0x0 << 3 ) /* Disable Clock stretching */
#define I2C0MCON_STRETCH_EN (0x1 << 3 ) /* Setting this bit tells the device if SCL is 0 hold it at 0;. Or if SCL is 1 then when it next goes to 0 hold it at 0. */
/* I2C0MCON[LOOPBACK] - Internal loopback enable */
#define I2C0MCON_LOOPBACK_BBA (*(volatile unsigned long *) 0x42060008)
#define I2C0MCON_LOOPBACK_MSK (0x1 << 2 )
#define I2C0MCON_LOOPBACK (0x1 << 2 )
#define I2C0MCON_LOOPBACK_DIS (0x0 << 2 ) /* SCL and SDA out of the device are not muxed onto their corresponding inputs. */
#define I2C0MCON_LOOPBACK_EN (0x1 << 2 ) /* SCL and SDA out of the device are muxed onto their corresponding inputs. */
/* I2C0MCON[COMPETE] - Start back-off disable */
#define I2C0MCON_COMPETE_BBA (*(volatile unsigned long *) 0x42060004)
#define I2C0MCON_COMPETE_MSK (0x1 << 1 )
#define I2C0MCON_COMPETE (0x1 << 1 )
#define I2C0MCON_COMPETE_DIS (0x0 << 1 )
#define I2C0MCON_COMPETE_EN (0x1 << 1 )
/* I2C0MCON[MASEN] - Master enable */
#define I2C0MCON_MASEN_BBA (*(volatile unsigned long *) 0x42060000)
#define I2C0MCON_MASEN_MSK (0x1 << 0 )
#define I2C0MCON_MASEN (0x1 << 0 )
#define I2C0MCON_MASEN_DIS (0x0 << 0 ) /* Master is disabled */
#define I2C0MCON_MASEN_EN (0x1 << 0 ) /* Master is enabled */
/* Reset Value for I2C0MSTA*/
#define I2C0MSTA_RVAL 0x6000
/* I2C0MSTA[SCL_FILTERED] - State of SCL Line */
#define I2C0MSTA_SCL_FILTERED_BBA (*(volatile unsigned long *) 0x420600B8)
#define I2C0MSTA_SCL_FILTERED_MSK (0x1 << 14 )
#define I2C0MSTA_SCL_FILTERED (0x1 << 14 )
#define I2C0MSTA_SCL_FILTERED_CLR (0x0 << 14 )
#define I2C0MSTA_SCL_FILTERED_SET (0x1 << 14 )
/* I2C0MSTA[SDA_FILTERED] - State of SDA Line */
#define I2C0MSTA_SDA_FILTERED_BBA (*(volatile unsigned long *) 0x420600B4)
#define I2C0MSTA_SDA_FILTERED_MSK (0x1 << 13 )
#define I2C0MSTA_SDA_FILTERED (0x1 << 13 )
#define I2C0MSTA_SDA_FILTERED_CLR (0x0 << 13 )
#define I2C0MSTA_SDA_FILTERED_SET (0x1 << 13 )
/* I2C0MSTA[MTXUFLOW] - Master Transmit Underflow */
#define I2C0MSTA_MTXUFLOW_BBA (*(volatile unsigned long *) 0x420600B0)
#define I2C0MSTA_MTXUFLOW_MSK (0x1 << 12 )
#define I2C0MSTA_MTXUFLOW (0x1 << 12 )
#define I2C0MSTA_MTXUFLOW_CLR (0x0 << 12 )
#define I2C0MSTA_MTXUFLOW_SET (0x1 << 12 )
/* I2C0MSTA[MSTOP] - STOP driven by this I2C Master */
#define I2C0MSTA_MSTOP_BBA (*(volatile unsigned long *) 0x420600AC)
#define I2C0MSTA_MSTOP_MSK (0x1 << 11 )
#define I2C0MSTA_MSTOP (0x1 << 11 )
#define I2C0MSTA_MSTOP_CLR (0x0 << 11 )
#define I2C0MSTA_MSTOP_SET (0x1 << 11 )
/* I2C0MSTA[LINEBUSY] - Line is busy */
#define I2C0MSTA_LINEBUSY_BBA (*(volatile unsigned long *) 0x420600A8)
#define I2C0MSTA_LINEBUSY_MSK (0x1 << 10 )
#define I2C0MSTA_LINEBUSY (0x1 << 10 )
#define I2C0MSTA_LINEBUSY_CLR (0x0 << 10 )
#define I2C0MSTA_LINEBUSY_SET (0x1 << 10 )
/* I2C0MSTA[MRXOF] - Master Receive FIFO overflow */
#define I2C0MSTA_MRXOF_BBA (*(volatile unsigned long *) 0x420600A4)
#define I2C0MSTA_MRXOF_MSK (0x1 << 9 )
#define I2C0MSTA_MRXOF (0x1 << 9 )
#define I2C0MSTA_MRXOF_CLR (0x0 << 9 )
#define I2C0MSTA_MRXOF_SET (0x1 << 9 )
/* I2C0MSTA[TCOMP] - Transaction complete or stop detected */
#define I2C0MSTA_TCOMP_BBA (*(volatile unsigned long *) 0x420600A0)
#define I2C0MSTA_TCOMP_MSK (0x1 << 8 )
#define I2C0MSTA_TCOMP (0x1 << 8 )
#define I2C0MSTA_TCOMP_CLR (0x0 << 8 )
#define I2C0MSTA_TCOMP_SET (0x1 << 8 )
/* I2C0MSTA[NACKDATA] - ACK not received in response to data write */
#define I2C0MSTA_NACKDATA_BBA (*(volatile unsigned long *) 0x4206009C)
#define I2C0MSTA_NACKDATA_MSK (0x1 << 7 )
#define I2C0MSTA_NACKDATA (0x1 << 7 )
#define I2C0MSTA_NACKDATA_CLR (0x0 << 7 )
#define I2C0MSTA_NACKDATA_SET (0x1 << 7 )
/* I2C0MSTA[MBUSY] - Master busy */
#define I2C0MSTA_MBUSY_BBA (*(volatile unsigned long *) 0x42060098)
#define I2C0MSTA_MBUSY_MSK (0x1 << 6 )
#define I2C0MSTA_MBUSY (0x1 << 6 )
#define I2C0MSTA_MBUSY_CLR (0x0 << 6 )
#define I2C0MSTA_MBUSY_SET (0x1 << 6 )
/* I2C0MSTA[ALOST] - Arbitration lost */
#define I2C0MSTA_ALOST_BBA (*(volatile unsigned long *) 0x42060094)
#define I2C0MSTA_ALOST_MSK (0x1 << 5 )
#define I2C0MSTA_ALOST (0x1 << 5 )
#define I2C0MSTA_ALOST_CLR (0x0 << 5 )
#define I2C0MSTA_ALOST_SET (0x1 << 5 )
/* I2C0MSTA[NACKADDR] - ACK not received in response to an address */
#define I2C0MSTA_NACKADDR_BBA (*(volatile unsigned long *) 0x42060090)
#define I2C0MSTA_NACKADDR_MSK (0x1 << 4 )
#define I2C0MSTA_NACKADDR (0x1 << 4 )
#define I2C0MSTA_NACKADDR_CLR (0x0 << 4 )
#define I2C0MSTA_NACKADDR_SET (0x1 << 4 )
/* I2C0MSTA[MRXREQ] - Master Receive request */
#define I2C0MSTA_MRXREQ_BBA (*(volatile unsigned long *) 0x4206008C)
#define I2C0MSTA_MRXREQ_MSK (0x1 << 3 )
#define I2C0MSTA_MRXREQ (0x1 << 3 )
#define I2C0MSTA_MRXREQ_CLR (0x0 << 3 )
#define I2C0MSTA_MRXREQ_SET (0x1 << 3 )
/* I2C0MSTA[MTXREQ] - Master Transmit request */
#define I2C0MSTA_MTXREQ_BBA (*(volatile unsigned long *) 0x42060088)
#define I2C0MSTA_MTXREQ_MSK (0x1 << 2 )
#define I2C0MSTA_MTXREQ (0x1 << 2 )
#define I2C0MSTA_MTXREQ_CLR (0x0 << 2 )
#define I2C0MSTA_MTXREQ_SET (0x1 << 2 )
/* I2C0MSTA[MTXFSTA] - Master Transmit FIFO status */
#define I2C0MSTA_MTXFSTA_MSK (0x3 << 0 )
/* Reset Value for I2C0MRX*/
#define I2C0MRX_RVAL 0x0
/* I2C0MRX[ICMRX] - Master receive register */
#define I2C0MRX_ICMRX_MSK (0xFF << 0 )
/* Reset Value for I2C0MTX*/
#define I2C0MTX_RVAL 0x0
/* I2C0MTX[I2CMTX] - Master transmit register */
#define I2C0MTX_I2CMTX_MSK (0xFF << 0 )
/* Reset Value for I2C0MRXCNT*/
#define I2C0MRXCNT_RVAL 0x0
/* I2C0MRXCNT[EXTEND] - Extended read */
#define I2C0MRXCNT_EXTEND_BBA (*(volatile unsigned long *) 0x42060220)
#define I2C0MRXCNT_EXTEND_MSK (0x1 << 8 )
#define I2C0MRXCNT_EXTEND (0x1 << 8 )
#define I2C0MRXCNT_EXTEND_DIS (0x0 << 8 )
#define I2C0MRXCNT_EXTEND_EN (0x1 << 8 )
/* I2C0MRXCNT[COUNT] - Receive count */
#define I2C0MRXCNT_COUNT_MSK (0xFF << 0 )
/* Reset Value for I2C0MCRXCNT*/
#define I2C0MCRXCNT_RVAL 0x0
/* I2C0MCRXCNT[COUNT] - Current receive count */
#define I2C0MCRXCNT_COUNT_MSK (0xFF << 0 )
/* Reset Value for I2C0ADR0*/
#define I2C0ADR0_RVAL 0x0
/* I2C0ADR0[ADR0] - Address byte 0 */
#define I2C0ADR0_ADR0_MSK (0xFF << 0 )
/* Reset Value for I2C0ADR1*/
#define I2C0ADR1_RVAL 0x0
/* I2C0ADR1[ADR1] - Address byte 1 */
#define I2C0ADR1_ADR1_MSK (0xFF << 0 )
/* Reset Value for I2C0DIV*/
#define I2C0DIV_RVAL 0x1F1F
/* I2C0DIV[HIGH] - Serial clock high time */
#define I2C0DIV_HIGH_MSK (0xFF << 8 )
/* I2C0DIV[LOW] - Serial clock low time */
#define I2C0DIV_LOW_MSK (0xFF << 0 )
/* Reset Value for I2C0SCON*/
#define I2C0SCON_RVAL 0x0
/* I2C0SCON[STXDMA] - Enable slave Tx DMA request */
#define I2C0SCON_STXDMA_BBA (*(volatile unsigned long *) 0x42060538)
#define I2C0SCON_STXDMA_MSK (0x1 << 14 )
#define I2C0SCON_STXDMA (0x1 << 14 )
#define I2C0SCON_STXDMA_DIS (0x0 << 14 )
#define I2C0SCON_STXDMA_EN (0x1 << 14 )
/* I2C0SCON[SRXDMA] - Enable slave Rx DMA request */
#define I2C0SCON_SRXDMA_BBA (*(volatile unsigned long *) 0x42060534)
#define I2C0SCON_SRXDMA_MSK (0x1 << 13 )
#define I2C0SCON_SRXDMA (0x1 << 13 )
#define I2C0SCON_SRXDMA_DIS (0x0 << 13 )
#define I2C0SCON_SRXDMA_EN (0x1 << 13 )
/* I2C0SCON[IENREPST] - Repeated start interrupt enable */
#define I2C0SCON_IENREPST_BBA (*(volatile unsigned long *) 0x42060530)
#define I2C0SCON_IENREPST_MSK (0x1 << 12 )
#define I2C0SCON_IENREPST (0x1 << 12 )
#define I2C0SCON_IENREPST_DIS (0x0 << 12 )
#define I2C0SCON_IENREPST_EN (0x1 << 12 )
/* I2C0SCON[SXMITDEC] - Decrement Slave Tx FIFO status when a byte has been transmitted */
#define I2C0SCON_SXMITDEC_BBA (*(volatile unsigned long *) 0x4206052C)
#define I2C0SCON_SXMITDEC_MSK (0x1 << 11 )
#define I2C0SCON_SXMITDEC (0x1 << 11 )
#define I2C0SCON_SXMITDEC_DIS (0x0 << 11 )
#define I2C0SCON_SXMITDEC_EN (0x1 << 11 )
/* I2C0SCON[IENSTX] - Slave Transmit request interrupt enable */
#define I2C0SCON_IENSTX_BBA (*(volatile unsigned long *) 0x42060528)
#define I2C0SCON_IENSTX_MSK (0x1 << 10 )
#define I2C0SCON_IENSTX (0x1 << 10 )
#define I2C0SCON_IENSTX_DIS (0x0 << 10 )
#define I2C0SCON_IENSTX_EN (0x1 << 10 )
/* I2C0SCON[IENSRX] - Slave Receive request interrupt enable */
#define I2C0SCON_IENSRX_BBA (*(volatile unsigned long *) 0x42060524)
#define I2C0SCON_IENSRX_MSK (0x1 << 9 )
#define I2C0SCON_IENSRX (0x1 << 9 )
#define I2C0SCON_IENSRX_DIS (0x0 << 9 )
#define I2C0SCON_IENSRX_EN (0x1 << 9 )
/* I2C0SCON[IENSTOP] - Stop condition detected interrupt enable */
#define I2C0SCON_IENSTOP_BBA (*(volatile unsigned long *) 0x42060520)
#define I2C0SCON_IENSTOP_MSK (0x1 << 8 )
#define I2C0SCON_IENSTOP (0x1 << 8 )
#define I2C0SCON_IENSTOP_DIS (0x0 << 8 )
#define I2C0SCON_IENSTOP_EN (0x1 << 8 )
/* I2C0SCON[NACK] - NACK next communication */
#define I2C0SCON_NACK_BBA (*(volatile unsigned long *) 0x4206051C)
#define I2C0SCON_NACK_MSK (0x1 << 7 )
#define I2C0SCON_NACK (0x1 << 7 )
#define I2C0SCON_NACK_DIS (0x0 << 7 )
#define I2C0SCON_NACK_EN (0x1 << 7 )
/* I2C0SCON[STRETCHSCL] - Stretch SCL enable */
#define I2C0SCON_STRETCHSCL_BBA (*(volatile unsigned long *) 0x42060518)
#define I2C0SCON_STRETCHSCL_MSK (0x1 << 6 )
#define I2C0SCON_STRETCHSCL (0x1 << 6 )
#define I2C0SCON_STRETCHSCL_DIS (0x0 << 6 )
#define I2C0SCON_STRETCHSCL_EN (0x1 << 6 )
/* I2C0SCON[EARLYTXR] - Early transmit request mode */
#define I2C0SCON_EARLYTXR_BBA (*(volatile unsigned long *) 0x42060514)
#define I2C0SCON_EARLYTXR_MSK (0x1 << 5 )
#define I2C0SCON_EARLYTXR (0x1 << 5 )
#define I2C0SCON_EARLYTXR_DIS (0x0 << 5 )
#define I2C0SCON_EARLYTXR_EN (0x1 << 5 )
/* I2C0SCON[GCSBCLR] - General call status bit clear */
#define I2C0SCON_GCSBCLR_BBA (*(volatile unsigned long *) 0x42060510)
#define I2C0SCON_GCSBCLR_MSK (0x1 << 4 )
#define I2C0SCON_GCSBCLR (0x1 << 4 )
#define I2C0SCON_GCSBCLR_DIS (0x0 << 4 )
#define I2C0SCON_GCSBCLR_EN (0x1 << 4 )
/* I2C0SCON[HGCEN] - Hardware general call enable */
#define I2C0SCON_HGCEN_BBA (*(volatile unsigned long *) 0x4206050C)
#define I2C0SCON_HGCEN_MSK (0x1 << 3 )
#define I2C0SCON_HGCEN (0x1 << 3 )
#define I2C0SCON_HGCEN_DIS (0x0 << 3 )
#define I2C0SCON_HGCEN_EN (0x1 << 3 )
/* I2C0SCON[GCEN] - General call enable */
#define I2C0SCON_GCEN_BBA (*(volatile unsigned long *) 0x42060508)
#define I2C0SCON_GCEN_MSK (0x1 << 2 )
#define I2C0SCON_GCEN (0x1 << 2 )
#define I2C0SCON_GCEN_DIS (0x0 << 2 )
#define I2C0SCON_GCEN_EN (0x1 << 2 )
/* I2C0SCON[ADR10EN] - Enabled 10-bit addressing */
#define I2C0SCON_ADR10EN_BBA (*(volatile unsigned long *) 0x42060504)
#define I2C0SCON_ADR10EN_MSK (0x1 << 1 )
#define I2C0SCON_ADR10EN (0x1 << 1 )
#define I2C0SCON_ADR10EN_DIS (0x0 << 1 )
#define I2C0SCON_ADR10EN_EN (0x1 << 1 )
/* I2C0SCON[SLVEN] - Slave enable */
#define I2C0SCON_SLVEN_BBA (*(volatile unsigned long *) 0x42060500)
#define I2C0SCON_SLVEN_MSK (0x1 << 0 )
#define I2C0SCON_SLVEN (0x1 << 0 )
#define I2C0SCON_SLVEN_DIS (0x0 << 0 )
#define I2C0SCON_SLVEN_EN (0x1 << 0 )
/* Reset Value for I2C0SSTA*/
#define I2C0SSTA_RVAL 0x1
/* I2C0SSTA[START] - Start and matching address */
#define I2C0SSTA_START_BBA (*(volatile unsigned long *) 0x420605B8)
#define I2C0SSTA_START_MSK (0x1 << 14 )
#define I2C0SSTA_START (0x1 << 14 )
#define I2C0SSTA_START_CLR (0x0 << 14 )
#define I2C0SSTA_START_SET (0x1 << 14 )
/* I2C0SSTA[REPSTART] - Repeated start and matching address */
#define I2C0SSTA_REPSTART_BBA (*(volatile unsigned long *) 0x420605B4)
#define I2C0SSTA_REPSTART_MSK (0x1 << 13 )
#define I2C0SSTA_REPSTART (0x1 << 13 )
#define I2C0SSTA_REPSTART_CLR (0x0 << 13 )
#define I2C0SSTA_REPSTART_SET (0x1 << 13 )
/* I2C0SSTA[IDMAT] - Device ID matched */
#define I2C0SSTA_IDMAT_MSK (0x3 << 11 )
/* I2C0SSTA[STOP] - Stop after start and matching address */
#define I2C0SSTA_STOP_BBA (*(volatile unsigned long *) 0x420605A8)
#define I2C0SSTA_STOP_MSK (0x1 << 10 )
#define I2C0SSTA_STOP (0x1 << 10 )
#define I2C0SSTA_STOP_CLR (0x0 << 10 )
#define I2C0SSTA_STOP_SET (0x1 << 10 )
/* I2C0SSTA[GCID] - General ID */
#define I2C0SSTA_GCID_MSK (0x3 << 8 )
/* I2C0SSTA[GCINT] - General call interrupt */
#define I2C0SSTA_GCINT_BBA (*(volatile unsigned long *) 0x4206059C)
#define I2C0SSTA_GCINT_MSK (0x1 << 7 )
#define I2C0SSTA_GCINT (0x1 << 7 )
#define I2C0SSTA_GCINT_CLR (0x0 << 7 )
#define I2C0SSTA_GCINT_SET (0x1 << 7 )
/* I2C0SSTA[SBUSY] - Slave busy */
#define I2C0SSTA_SBUSY_BBA (*(volatile unsigned long *) 0x42060598)
#define I2C0SSTA_SBUSY_MSK (0x1 << 6 )
#define I2C0SSTA_SBUSY (0x1 << 6 )
#define I2C0SSTA_SBUSY_CLR (0x0 << 6 )
#define I2C0SSTA_SBUSY_SET (0x1 << 6 )
/* I2C0SSTA[NOACK] - Ack not generated by the slave */
#define I2C0SSTA_NOACK_BBA (*(volatile unsigned long *) 0x42060594)
#define I2C0SSTA_NOACK_MSK (0x1 << 5 )
#define I2C0SSTA_NOACK (0x1 << 5 )
#define I2C0SSTA_NOACK_CLR (0x0 << 5 )
#define I2C0SSTA_NOACK_SET (0x1 << 5 )
/* I2C0SSTA[SRXOF] - Slave Receive FIFO overflow */
#define I2C0SSTA_SRXOF_BBA (*(volatile unsigned long *) 0x42060590)
#define I2C0SSTA_SRXOF_MSK (0x1 << 4 )
#define I2C0SSTA_SRXOF (0x1 << 4 )
#define I2C0SSTA_SRXOF_CLR (0x0 << 4 )
#define I2C0SSTA_SRXOF_SET (0x1 << 4 )
/* I2C0SSTA[SRXREQ] - Slave Receive request */
#define I2C0SSTA_SRXREQ_BBA (*(volatile unsigned long *) 0x4206058C)
#define I2C0SSTA_SRXREQ_MSK (0x1 << 3 )
#define I2C0SSTA_SRXREQ (0x1 << 3 )
#define I2C0SSTA_SRXREQ_CLR (0x0 << 3 )
#define I2C0SSTA_SRXREQ_SET (0x1 << 3 )
/* I2C0SSTA[STXREQ] - Slave Transmit request */
#define I2C0SSTA_STXREQ_BBA (*(volatile unsigned long *) 0x42060588)
#define I2C0SSTA_STXREQ_MSK (0x1 << 2 )
#define I2C0SSTA_STXREQ (0x1 << 2 )
#define I2C0SSTA_STXREQ_CLR (0x0 << 2 )
#define I2C0SSTA_STXREQ_SET (0x1 << 2 )
/* I2C0SSTA[STXUR] - Slave Transmit FIFO underflow */
#define I2C0SSTA_STXUR_BBA (*(volatile unsigned long *) 0x42060584)
#define I2C0SSTA_STXUR_MSK (0x1 << 1 )
#define I2C0SSTA_STXUR (0x1 << 1 )
#define I2C0SSTA_STXUR_CLR (0x0 << 1 )
#define I2C0SSTA_STXUR_SET (0x1 << 1 )
/* I2C0SSTA[STXFSEREQ] - Slave Tx FIFO Status or early request */
#define I2C0SSTA_STXFSEREQ_BBA (*(volatile unsigned long *) 0x42060580)
#define I2C0SSTA_STXFSEREQ_MSK (0x1 << 0 )
#define I2C0SSTA_STXFSEREQ (0x1 << 0 )
#define I2C0SSTA_STXFSEREQ_CLR (0x0 << 0 )
#define I2C0SSTA_STXFSEREQ_SET (0x1 << 0 )
/* Reset Value for I2C0SRX*/
#define I2C0SRX_RVAL 0x0
/* I2C0SRX[I2CSRX] - Slave receive register */
#define I2C0SRX_I2CSRX_MSK (0xFF << 0 )
/* Reset Value for I2C0STX*/
#define I2C0STX_RVAL 0x0
/* I2C0STX[I2CSTX] - Slave transmit register */
#define I2C0STX_I2CSTX_MSK (0xFF << 0 )
/* Reset Value for I2C0ALT*/
#define I2C0ALT_RVAL 0x0
/* I2C0ALT[ALT] - Slave Alt */
#define I2C0ALT_ALT_MSK (0xFF << 0 )
/* Reset Value for I2C0ID0*/
#define I2C0ID0_RVAL 0x0
/* I2C0ID0[ID0] - Slave device ID 0 */
#define I2C0ID0_ID0_MSK (0xFF << 0 )
/* Reset Value for I2C0ID1*/
#define I2C0ID1_RVAL 0x0
/* I2C0ID1[ID1] - Slave device ID 1 */
#define I2C0ID1_ID1_MSK (0xFF << 0 )
/* Reset Value for I2C0ID2*/
#define I2C0ID2_RVAL 0x0
/* I2C0ID2[ID2] - Slave device ID 2 */
#define I2C0ID2_ID2_MSK (0xFF << 0 )
/* Reset Value for I2C0ID3*/
#define I2C0ID3_RVAL 0x0
/* I2C0ID3[ID3] - Slave device ID 3 */
#define I2C0ID3_ID3_MSK (0xFF << 0 )
/* Reset Value for I2C0FSTA*/
#define I2C0FSTA_RVAL 0x0
/* I2C0FSTA[MFLUSH] - Flush the master transmit FIFO */
#define I2C0FSTA_MFLUSH_BBA (*(volatile unsigned long *) 0x420609A4)
#define I2C0FSTA_MFLUSH_MSK (0x1 << 9 )
#define I2C0FSTA_MFLUSH (0x1 << 9 )
#define I2C0FSTA_MFLUSH_DIS (0x0 << 9 ) /* Clearing to 0 has no effect. */
#define I2C0FSTA_MFLUSH_EN (0x1 << 9 ) /* Set to 1 to flush the master transmit FIFO. The master transmit FIFO will have to flushed if arbitration is lost or a slave responds with a NACK. */
/* I2C0FSTA[SFLUSH] - Flush the slave transmit FIFO */
#define I2C0FSTA_SFLUSH_BBA (*(volatile unsigned long *) 0x420609A0)
#define I2C0FSTA_SFLUSH_MSK (0x1 << 8 )
#define I2C0FSTA_SFLUSH (0x1 << 8 )
#define I2C0FSTA_SFLUSH_DIS (0x0 << 8 ) /* Clearing to 0 has no effect. */
#define I2C0FSTA_SFLUSH_EN (0x1 << 8 ) /* Set to 1 to flush the slave transmit FIFO. */
/* I2C0FSTA[MRXFSTA] - Master receive FIFO status */
#define I2C0FSTA_MRXFSTA_MSK (0x3 << 6 )
#define I2C0FSTA_MRXFSTA_EMPTY (0x0 << 6 ) /* FIFO empty */
#define I2C0FSTA_MRXFSTA_ONEBYTE (0x1 << 6 ) /* 1 bytes in the FIFO */
#define I2C0FSTA_MRXFSTA_TWOBYTES (0x2 << 6 ) /* 2 bytes in the FIFO */
/* I2C0FSTA[MTXFSTA] - Master transmit FIFO status */
#define I2C0FSTA_MTXFSTA_MSK (0x3 << 4 )
#define I2C0FSTA_MTXFSTA_EMPTY (0x0 << 4 ) /* FIFO empty */
#define I2C0FSTA_MTXFSTA_ONEBYTE (0x1 << 4 ) /* 1 bytes in the FIFO */
#define I2C0FSTA_MTXFSTA_TWOBYTES (0x2 << 4 ) /* 2 bytes in the FIFO */
/* I2C0FSTA[SRXFSTA] - Slave receive FIFO status */
#define I2C0FSTA_SRXFSTA_MSK (0x3 << 2 )
#define I2C0FSTA_SRXFSTA_EMPTY (0x0 << 2 ) /* FIFO empty */
#define I2C0FSTA_SRXFSTA_ONEBYTE (0x1 << 2 ) /* 1 bytes in the FIFO */
#define I2C0FSTA_SRXFSTA_TWOBYTES (0x2 << 2 ) /* 2 bytes in the FIFO */
/* I2C0FSTA[STXFSTA] - Slave transmit FIFO status */
#define I2C0FSTA_STXFSTA_MSK (0x3 << 0 )
#define I2C0FSTA_STXFSTA_EMPTY (0x0 << 0 ) /* FIFO empty */
#define I2C0FSTA_STXFSTA_ONEBYTE (0x1 << 0 ) /* 1 bytes in the FIFO */
#define I2C0FSTA_STXFSTA_TWOBYTES (0x2 << 0 ) /* 2 bytes in the FIFO */
/* Reset Value for I2C0SHCON*/
#define I2C0SHCON_RVAL 0x0
/* I2C0SHCON[RESET] - Reset START STOP detect circuit */
#define I2C0SHCON_RESET_BBA (*(volatile unsigned long *) 0x42060A00)
#define I2C0SHCON_RESET_MSK (0x1 << 0 )
#define I2C0SHCON_RESET (0x1 << 0 )
#define I2C0SHCON_RESET_DIS (0x0 << 0 )
#define I2C0SHCON_RESET_EN (0x1 << 0 )
#if (__NO_MMR_STRUCTS__==1)
#define I2C1MCON (*(volatile unsigned short int *) 0x40003400)
#define I2C1MSTA (*(volatile unsigned short int *) 0x40003404)
#define I2C1MRX (*(volatile unsigned short int *) 0x40003408)
#define I2C1MTX (*(volatile unsigned short int *) 0x4000340C)
#define I2C1MRXCNT (*(volatile unsigned short int *) 0x40003410)
#define I2C1MCRXCNT (*(volatile unsigned short int *) 0x40003414)
#define I2C1ADR0 (*(volatile unsigned short int *) 0x40003418)
#define I2C1ADR1 (*(volatile unsigned short int *) 0x4000341C)
#define I2C1DIV (*(volatile unsigned short int *) 0x40003424)
#define I2C1SCON (*(volatile unsigned short int *) 0x40003428)
#define I2C1SSTA (*(volatile unsigned short int *) 0x4000342C)
#define I2C1SRX (*(volatile unsigned short int *) 0x40003430)
#define I2C1STX (*(volatile unsigned short int *) 0x40003434)
#define I2C1ALT (*(volatile unsigned short int *) 0x40003438)
#define I2C1ID0 (*(volatile unsigned short int *) 0x4000343C)
#define I2C1ID1 (*(volatile unsigned short int *) 0x40003440)
#define I2C1ID2 (*(volatile unsigned short int *) 0x40003444)
#define I2C1ID3 (*(volatile unsigned short int *) 0x40003448)
#define I2C1FSTA (*(volatile unsigned short int *) 0x4000344C)
#define I2C1SHCON (*(volatile unsigned short int *) 0x40003450)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for I2C1MCON*/
#define I2C1MCON_RVAL 0x0
/* I2C1MCON[PRESTOP_BUS_CLR] - Prestop Bus-Clear */
#define I2C1MCON_PRESTOP_BUS_CLR_BBA (*(volatile unsigned long *) 0x42068034)
#define I2C1MCON_PRESTOP_BUS_CLR_MSK (0x1 << 13 )
#define I2C1MCON_PRESTOP_BUS_CLR (0x1 << 13 )
#define I2C1MCON_PRESTOP_BUS_CLR_DIS (0x0 << 13 )
#define I2C1MCON_PRESTOP_BUS_CLR_EN (0x1 << 13 )
/* I2C1MCON[BUS_CLR_EN] - Bus-Clear Enable */
#define I2C1MCON_BUS_CLR_EN_BBA (*(volatile unsigned long *) 0x42068030)
#define I2C1MCON_BUS_CLR_EN_MSK (0x1 << 12 )
#define I2C1MCON_BUS_CLR_EN (0x1 << 12 )
#define I2C1MCON_BUS_CLR_EN_DIS (0x0 << 12 )
#define I2C1MCON_BUS_CLR_EN_EN (0x1 << 12 )
/* I2C1MCON[MTXDMA] - Enable master Tx DMA request */
#define I2C1MCON_MTXDMA_BBA (*(volatile unsigned long *) 0x4206802C)
#define I2C1MCON_MTXDMA_MSK (0x1 << 11 )
#define I2C1MCON_MTXDMA (0x1 << 11 )
#define I2C1MCON_MTXDMA_DIS (0x0 << 11 ) /* Disable DMA mode */
#define I2C1MCON_MTXDMA_EN (0x1 << 11 ) /* Enable I2C master DMA Tx requests. */
/* I2C1MCON[MRXDMA] - Enable master Rx DMA request */
#define I2C1MCON_MRXDMA_BBA (*(volatile unsigned long *) 0x42068028)
#define I2C1MCON_MRXDMA_MSK (0x1 << 10 )
#define I2C1MCON_MRXDMA (0x1 << 10 )
#define I2C1MCON_MRXDMA_DIS (0x0 << 10 ) /* Disable DMA mode */
#define I2C1MCON_MRXDMA_EN (0x1 << 10 ) /* Enable I2C master DMA Rx requests. */
/* I2C1MCON[MXMITDEC] - Decrement master TX FIFO status when a byte has been transmitted */
#define I2C1MCON_MXMITDEC_BBA (*(volatile unsigned long *) 0x42068024)
#define I2C1MCON_MXMITDEC_MSK (0x1 << 9 )
#define I2C1MCON_MXMITDEC (0x1 << 9 )
#define I2C1MCON_MXMITDEC_DIS (0x0 << 9 )
#define I2C1MCON_MXMITDEC_EN (0x1 << 9 )
/* I2C1MCON[IENCMP] - Transaction completed (or stop detected) interrupt enable */
#define I2C1MCON_IENCMP_BBA (*(volatile unsigned long *) 0x42068020)
#define I2C1MCON_IENCMP_MSK (0x1 << 8 )
#define I2C1MCON_IENCMP (0x1 << 8 )
#define I2C1MCON_IENCMP_DIS (0x0 << 8 ) /* An interrupt is not generated when a STOP is detected. */
#define I2C1MCON_IENCMP_EN (0x1 << 8 ) /* An interrupt is generated when a STOP is detected. */
/* I2C1MCON[IENACK] - ACK not received interrupt enable */
#define I2C1MCON_IENACK_BBA (*(volatile unsigned long *) 0x4206801C)
#define I2C1MCON_IENACK_MSK (0x1 << 7 )
#define I2C1MCON_IENACK (0x1 << 7 )
#define I2C1MCON_IENACK_DIS (0x0 << 7 ) /* ACK not received interrupt disable */
#define I2C1MCON_IENACK_EN (0x1 << 7 ) /* ACK not received interrupt enable */
/* I2C1MCON[IENALOST] - Arbitration lost interrupt enable */
#define I2C1MCON_IENALOST_BBA (*(volatile unsigned long *) 0x42068018)
#define I2C1MCON_IENALOST_MSK (0x1 << 6 )
#define I2C1MCON_IENALOST (0x1 << 6 )
#define I2C1MCON_IENALOST_DIS (0x0 << 6 ) /* Arbitration lost interrupt disable */
#define I2C1MCON_IENALOST_EN (0x1 << 6 ) /* Arbitration lost interrupt enable */
/* I2C1MCON[IENMTX] - Transmit request interrupt enable. */
#define I2C1MCON_IENMTX_BBA (*(volatile unsigned long *) 0x42068014)
#define I2C1MCON_IENMTX_MSK (0x1 << 5 )
#define I2C1MCON_IENMTX (0x1 << 5 )
#define I2C1MCON_IENMTX_DIS (0x0 << 5 ) /* Transmit request interrupt disable */
#define I2C1MCON_IENMTX_EN (0x1 << 5 ) /* Transmit request interrupt enable */
/* I2C1MCON[IENMRX] - Receive request interrupt enable */
#define I2C1MCON_IENMRX_BBA (*(volatile unsigned long *) 0x42068010)
#define I2C1MCON_IENMRX_MSK (0x1 << 4 )
#define I2C1MCON_IENMRX (0x1 << 4 )
#define I2C1MCON_IENMRX_DIS (0x0 << 4 ) /* Receive request interrupt disable */
#define I2C1MCON_IENMRX_EN (0x1 << 4 ) /* Receive request interrupt enable */
/* I2C1MCON[STRETCH] - Stretch SCL enable */
#define I2C1MCON_STRETCH_BBA (*(volatile unsigned long *) 0x4206800C)
#define I2C1MCON_STRETCH_MSK (0x1 << 3 )
#define I2C1MCON_STRETCH (0x1 << 3 )
#define I2C1MCON_STRETCH_DIS (0x0 << 3 ) /* Disable Clock stretching */
#define I2C1MCON_STRETCH_EN (0x1 << 3 ) /* Setting this bit tells the device if SCL is 0 hold it at 0;. Or if SCL is 1 then when it next goes to 0 hold it at 0. */
/* I2C1MCON[LOOPBACK] - Internal loopback enable */
#define I2C1MCON_LOOPBACK_BBA (*(volatile unsigned long *) 0x42068008)
#define I2C1MCON_LOOPBACK_MSK (0x1 << 2 )
#define I2C1MCON_LOOPBACK (0x1 << 2 )
#define I2C1MCON_LOOPBACK_DIS (0x0 << 2 ) /* SCL and SDA out of the device are not muxed onto their corresponding inputs. */
#define I2C1MCON_LOOPBACK_EN (0x1 << 2 ) /* SCL and SDA out of the device are muxed onto their corresponding inputs. */
/* I2C1MCON[COMPETE] - Start back-off disable */
#define I2C1MCON_COMPETE_BBA (*(volatile unsigned long *) 0x42068004)
#define I2C1MCON_COMPETE_MSK (0x1 << 1 )
#define I2C1MCON_COMPETE (0x1 << 1 )
#define I2C1MCON_COMPETE_DIS (0x0 << 1 )
#define I2C1MCON_COMPETE_EN (0x1 << 1 )
/* I2C1MCON[MASEN] - Master enable */
#define I2C1MCON_MASEN_BBA (*(volatile unsigned long *) 0x42068000)
#define I2C1MCON_MASEN_MSK (0x1 << 0 )
#define I2C1MCON_MASEN (0x1 << 0 )
#define I2C1MCON_MASEN_DIS (0x0 << 0 ) /* Master is disabled */
#define I2C1MCON_MASEN_EN (0x1 << 0 ) /* Master is enabled */
/* Reset Value for I2C1MSTA*/
#define I2C1MSTA_RVAL 0x6000
/* I2C1MSTA[SCL_FILTERED] - State of SCL Line */
#define I2C1MSTA_SCL_FILTERED_BBA (*(volatile unsigned long *) 0x420680B8)
#define I2C1MSTA_SCL_FILTERED_MSK (0x1 << 14 )
#define I2C1MSTA_SCL_FILTERED (0x1 << 14 )
#define I2C1MSTA_SCL_FILTERED_CLR (0x0 << 14 )
#define I2C1MSTA_SCL_FILTERED_SET (0x1 << 14 )
/* I2C1MSTA[SDA_FILTERED] - State of SDA Line */
#define I2C1MSTA_SDA_FILTERED_BBA (*(volatile unsigned long *) 0x420680B4)
#define I2C1MSTA_SDA_FILTERED_MSK (0x1 << 13 )
#define I2C1MSTA_SDA_FILTERED (0x1 << 13 )
#define I2C1MSTA_SDA_FILTERED_CLR (0x0 << 13 )
#define I2C1MSTA_SDA_FILTERED_SET (0x1 << 13 )
/* I2C1MSTA[MTXUFLOW] - Master Transmit Underflow */
#define I2C1MSTA_MTXUFLOW_BBA (*(volatile unsigned long *) 0x420680B0)
#define I2C1MSTA_MTXUFLOW_MSK (0x1 << 12 )
#define I2C1MSTA_MTXUFLOW (0x1 << 12 )
#define I2C1MSTA_MTXUFLOW_CLR (0x0 << 12 )
#define I2C1MSTA_MTXUFLOW_SET (0x1 << 12 )
/* I2C1MSTA[MSTOP] - STOP driven by this I2C Master */
#define I2C1MSTA_MSTOP_BBA (*(volatile unsigned long *) 0x420680AC)
#define I2C1MSTA_MSTOP_MSK (0x1 << 11 )
#define I2C1MSTA_MSTOP (0x1 << 11 )
#define I2C1MSTA_MSTOP_CLR (0x0 << 11 )
#define I2C1MSTA_MSTOP_SET (0x1 << 11 )
/* I2C1MSTA[LINEBUSY] - Line is busy */
#define I2C1MSTA_LINEBUSY_BBA (*(volatile unsigned long *) 0x420680A8)
#define I2C1MSTA_LINEBUSY_MSK (0x1 << 10 )
#define I2C1MSTA_LINEBUSY (0x1 << 10 )
#define I2C1MSTA_LINEBUSY_CLR (0x0 << 10 )
#define I2C1MSTA_LINEBUSY_SET (0x1 << 10 )
/* I2C1MSTA[MRXOF] - Master Receive FIFO overflow */
#define I2C1MSTA_MRXOF_BBA (*(volatile unsigned long *) 0x420680A4)
#define I2C1MSTA_MRXOF_MSK (0x1 << 9 )
#define I2C1MSTA_MRXOF (0x1 << 9 )
#define I2C1MSTA_MRXOF_CLR (0x0 << 9 )
#define I2C1MSTA_MRXOF_SET (0x1 << 9 )
/* I2C1MSTA[TCOMP] - Transaction complete or stop detected */
#define I2C1MSTA_TCOMP_BBA (*(volatile unsigned long *) 0x420680A0)
#define I2C1MSTA_TCOMP_MSK (0x1 << 8 )
#define I2C1MSTA_TCOMP (0x1 << 8 )
#define I2C1MSTA_TCOMP_CLR (0x0 << 8 )
#define I2C1MSTA_TCOMP_SET (0x1 << 8 )
/* I2C1MSTA[NACKDATA] - ACK not received in response to data write */
#define I2C1MSTA_NACKDATA_BBA (*(volatile unsigned long *) 0x4206809C)
#define I2C1MSTA_NACKDATA_MSK (0x1 << 7 )
#define I2C1MSTA_NACKDATA (0x1 << 7 )
#define I2C1MSTA_NACKDATA_CLR (0x0 << 7 )
#define I2C1MSTA_NACKDATA_SET (0x1 << 7 )
/* I2C1MSTA[MBUSY] - Master busy */
#define I2C1MSTA_MBUSY_BBA (*(volatile unsigned long *) 0x42068098)
#define I2C1MSTA_MBUSY_MSK (0x1 << 6 )
#define I2C1MSTA_MBUSY (0x1 << 6 )
#define I2C1MSTA_MBUSY_CLR (0x0 << 6 )
#define I2C1MSTA_MBUSY_SET (0x1 << 6 )
/* I2C1MSTA[ALOST] - Arbitration lost */
#define I2C1MSTA_ALOST_BBA (*(volatile unsigned long *) 0x42068094)
#define I2C1MSTA_ALOST_MSK (0x1 << 5 )
#define I2C1MSTA_ALOST (0x1 << 5 )
#define I2C1MSTA_ALOST_CLR (0x0 << 5 )
#define I2C1MSTA_ALOST_SET (0x1 << 5 )
/* I2C1MSTA[NACKADDR] - ACK not received in response to an address */
#define I2C1MSTA_NACKADDR_BBA (*(volatile unsigned long *) 0x42068090)
#define I2C1MSTA_NACKADDR_MSK (0x1 << 4 )
#define I2C1MSTA_NACKADDR (0x1 << 4 )
#define I2C1MSTA_NACKADDR_CLR (0x0 << 4 )
#define I2C1MSTA_NACKADDR_SET (0x1 << 4 )
/* I2C1MSTA[MRXREQ] - Master Receive request */
#define I2C1MSTA_MRXREQ_BBA (*(volatile unsigned long *) 0x4206808C)
#define I2C1MSTA_MRXREQ_MSK (0x1 << 3 )
#define I2C1MSTA_MRXREQ (0x1 << 3 )
#define I2C1MSTA_MRXREQ_CLR (0x0 << 3 )
#define I2C1MSTA_MRXREQ_SET (0x1 << 3 )
/* I2C1MSTA[MTXREQ] - Master Transmit request */
#define I2C1MSTA_MTXREQ_BBA (*(volatile unsigned long *) 0x42068088)
#define I2C1MSTA_MTXREQ_MSK (0x1 << 2 )
#define I2C1MSTA_MTXREQ (0x1 << 2 )
#define I2C1MSTA_MTXREQ_CLR (0x0 << 2 )
#define I2C1MSTA_MTXREQ_SET (0x1 << 2 )
/* I2C1MSTA[MTXFSTA] - Master Transmit FIFO status */
#define I2C1MSTA_MTXFSTA_MSK (0x3 << 0 )
/* Reset Value for I2C1MRX*/
#define I2C1MRX_RVAL 0x0
/* I2C1MRX[ICMRX] - Master receive register */
#define I2C1MRX_ICMRX_MSK (0xFF << 0 )
/* Reset Value for I2C1MTX*/
#define I2C1MTX_RVAL 0x0
/* I2C1MTX[I2CMTX] - Master transmit register */
#define I2C1MTX_I2CMTX_MSK (0xFF << 0 )
/* Reset Value for I2C1MRXCNT*/
#define I2C1MRXCNT_RVAL 0x0
/* I2C1MRXCNT[EXTEND] - Extended read */
#define I2C1MRXCNT_EXTEND_BBA (*(volatile unsigned long *) 0x42068220)
#define I2C1MRXCNT_EXTEND_MSK (0x1 << 8 )
#define I2C1MRXCNT_EXTEND (0x1 << 8 )
#define I2C1MRXCNT_EXTEND_DIS (0x0 << 8 )
#define I2C1MRXCNT_EXTEND_EN (0x1 << 8 )
/* I2C1MRXCNT[COUNT] - Receive count */
#define I2C1MRXCNT_COUNT_MSK (0xFF << 0 )
/* Reset Value for I2C1MCRXCNT*/
#define I2C1MCRXCNT_RVAL 0x0
/* I2C1MCRXCNT[COUNT] - Current receive count */
#define I2C1MCRXCNT_COUNT_MSK (0xFF << 0 )
/* Reset Value for I2C1ADR0*/
#define I2C1ADR0_RVAL 0x0
/* I2C1ADR0[ADR0] - Address byte 0 */
#define I2C1ADR0_ADR0_MSK (0xFF << 0 )
/* Reset Value for I2C1ADR1*/
#define I2C1ADR1_RVAL 0x0
/* I2C1ADR1[ADR1] - Address byte 1 */
#define I2C1ADR1_ADR1_MSK (0xFF << 0 )
/* Reset Value for I2C1DIV*/
#define I2C1DIV_RVAL 0x1F1F
/* I2C1DIV[HIGH] - Serial clock high time */
#define I2C1DIV_HIGH_MSK (0xFF << 8 )
/* I2C1DIV[LOW] - Serial clock low time */
#define I2C1DIV_LOW_MSK (0xFF << 0 )
/* Reset Value for I2C1SCON*/
#define I2C1SCON_RVAL 0x0
/* I2C1SCON[STXDMA] - Enable slave Tx DMA request */
#define I2C1SCON_STXDMA_BBA (*(volatile unsigned long *) 0x42068538)
#define I2C1SCON_STXDMA_MSK (0x1 << 14 )
#define I2C1SCON_STXDMA (0x1 << 14 )
#define I2C1SCON_STXDMA_DIS (0x0 << 14 )
#define I2C1SCON_STXDMA_EN (0x1 << 14 )
/* I2C1SCON[SRXDMA] - Enable slave Rx DMA request */
#define I2C1SCON_SRXDMA_BBA (*(volatile unsigned long *) 0x42068534)
#define I2C1SCON_SRXDMA_MSK (0x1 << 13 )
#define I2C1SCON_SRXDMA (0x1 << 13 )
#define I2C1SCON_SRXDMA_DIS (0x0 << 13 )
#define I2C1SCON_SRXDMA_EN (0x1 << 13 )
/* I2C1SCON[IENREPST] - Repeated start interrupt enable */
#define I2C1SCON_IENREPST_BBA (*(volatile unsigned long *) 0x42068530)
#define I2C1SCON_IENREPST_MSK (0x1 << 12 )
#define I2C1SCON_IENREPST (0x1 << 12 )
#define I2C1SCON_IENREPST_DIS (0x0 << 12 )
#define I2C1SCON_IENREPST_EN (0x1 << 12 )
/* I2C1SCON[SXMITDEC] - Decrement Slave Tx FIFO status when a byte has been transmitted */
#define I2C1SCON_SXMITDEC_BBA (*(volatile unsigned long *) 0x4206852C)
#define I2C1SCON_SXMITDEC_MSK (0x1 << 11 )
#define I2C1SCON_SXMITDEC (0x1 << 11 )
#define I2C1SCON_SXMITDEC_DIS (0x0 << 11 )
#define I2C1SCON_SXMITDEC_EN (0x1 << 11 )
/* I2C1SCON[IENSTX] - Slave Transmit request interrupt enable */
#define I2C1SCON_IENSTX_BBA (*(volatile unsigned long *) 0x42068528)
#define I2C1SCON_IENSTX_MSK (0x1 << 10 )
#define I2C1SCON_IENSTX (0x1 << 10 )
#define I2C1SCON_IENSTX_DIS (0x0 << 10 )
#define I2C1SCON_IENSTX_EN (0x1 << 10 )
/* I2C1SCON[IENSRX] - Slave Receive request interrupt enable */
#define I2C1SCON_IENSRX_BBA (*(volatile unsigned long *) 0x42068524)
#define I2C1SCON_IENSRX_MSK (0x1 << 9 )
#define I2C1SCON_IENSRX (0x1 << 9 )
#define I2C1SCON_IENSRX_DIS (0x0 << 9 )
#define I2C1SCON_IENSRX_EN (0x1 << 9 )
/* I2C1SCON[IENSTOP] - Stop condition detected interrupt enable */
#define I2C1SCON_IENSTOP_BBA (*(volatile unsigned long *) 0x42068520)
#define I2C1SCON_IENSTOP_MSK (0x1 << 8 )
#define I2C1SCON_IENSTOP (0x1 << 8 )
#define I2C1SCON_IENSTOP_DIS (0x0 << 8 )
#define I2C1SCON_IENSTOP_EN (0x1 << 8 )
/* I2C1SCON[NACK] - NACK next communication */
#define I2C1SCON_NACK_BBA (*(volatile unsigned long *) 0x4206851C)
#define I2C1SCON_NACK_MSK (0x1 << 7 )
#define I2C1SCON_NACK (0x1 << 7 )
#define I2C1SCON_NACK_DIS (0x0 << 7 )
#define I2C1SCON_NACK_EN (0x1 << 7 )
/* I2C1SCON[STRETCHSCL] - Stretch SCL enable */
#define I2C1SCON_STRETCHSCL_BBA (*(volatile unsigned long *) 0x42068518)
#define I2C1SCON_STRETCHSCL_MSK (0x1 << 6 )
#define I2C1SCON_STRETCHSCL (0x1 << 6 )
#define I2C1SCON_STRETCHSCL_DIS (0x0 << 6 )
#define I2C1SCON_STRETCHSCL_EN (0x1 << 6 )
/* I2C1SCON[EARLYTXR] - Early transmit request mode */
#define I2C1SCON_EARLYTXR_BBA (*(volatile unsigned long *) 0x42068514)
#define I2C1SCON_EARLYTXR_MSK (0x1 << 5 )
#define I2C1SCON_EARLYTXR (0x1 << 5 )
#define I2C1SCON_EARLYTXR_DIS (0x0 << 5 )
#define I2C1SCON_EARLYTXR_EN (0x1 << 5 )
/* I2C1SCON[GCSBCLR] - General call status bit clear */
#define I2C1SCON_GCSBCLR_BBA (*(volatile unsigned long *) 0x42068510)
#define I2C1SCON_GCSBCLR_MSK (0x1 << 4 )
#define I2C1SCON_GCSBCLR (0x1 << 4 )
#define I2C1SCON_GCSBCLR_DIS (0x0 << 4 )
#define I2C1SCON_GCSBCLR_EN (0x1 << 4 )
/* I2C1SCON[HGCEN] - Hardware general call enable */
#define I2C1SCON_HGCEN_BBA (*(volatile unsigned long *) 0x4206850C)
#define I2C1SCON_HGCEN_MSK (0x1 << 3 )
#define I2C1SCON_HGCEN (0x1 << 3 )
#define I2C1SCON_HGCEN_DIS (0x0 << 3 )
#define I2C1SCON_HGCEN_EN (0x1 << 3 )
/* I2C1SCON[GCEN] - General call enable */
#define I2C1SCON_GCEN_BBA (*(volatile unsigned long *) 0x42068508)
#define I2C1SCON_GCEN_MSK (0x1 << 2 )
#define I2C1SCON_GCEN (0x1 << 2 )
#define I2C1SCON_GCEN_DIS (0x0 << 2 )
#define I2C1SCON_GCEN_EN (0x1 << 2 )
/* I2C1SCON[ADR10EN] - Enabled 10-bit addressing */
#define I2C1SCON_ADR10EN_BBA (*(volatile unsigned long *) 0x42068504)
#define I2C1SCON_ADR10EN_MSK (0x1 << 1 )
#define I2C1SCON_ADR10EN (0x1 << 1 )
#define I2C1SCON_ADR10EN_DIS (0x0 << 1 )
#define I2C1SCON_ADR10EN_EN (0x1 << 1 )
/* I2C1SCON[SLVEN] - Slave enable */
#define I2C1SCON_SLVEN_BBA (*(volatile unsigned long *) 0x42068500)
#define I2C1SCON_SLVEN_MSK (0x1 << 0 )
#define I2C1SCON_SLVEN (0x1 << 0 )
#define I2C1SCON_SLVEN_DIS (0x0 << 0 )
#define I2C1SCON_SLVEN_EN (0x1 << 0 )
/* Reset Value for I2C1SSTA*/
#define I2C1SSTA_RVAL 0x1
/* I2C1SSTA[START] - Start and matching address */
#define I2C1SSTA_START_BBA (*(volatile unsigned long *) 0x420685B8)
#define I2C1SSTA_START_MSK (0x1 << 14 )
#define I2C1SSTA_START (0x1 << 14 )
#define I2C1SSTA_START_CLR (0x0 << 14 )
#define I2C1SSTA_START_SET (0x1 << 14 )
/* I2C1SSTA[REPSTART] - Repeated start and matching address */
#define I2C1SSTA_REPSTART_BBA (*(volatile unsigned long *) 0x420685B4)
#define I2C1SSTA_REPSTART_MSK (0x1 << 13 )
#define I2C1SSTA_REPSTART (0x1 << 13 )
#define I2C1SSTA_REPSTART_CLR (0x0 << 13 )
#define I2C1SSTA_REPSTART_SET (0x1 << 13 )
/* I2C1SSTA[IDMAT] - Device ID matched */
#define I2C1SSTA_IDMAT_MSK (0x3 << 11 )
/* I2C1SSTA[STOP] - Stop after start and matching address */
#define I2C1SSTA_STOP_BBA (*(volatile unsigned long *) 0x420685A8)
#define I2C1SSTA_STOP_MSK (0x1 << 10 )
#define I2C1SSTA_STOP (0x1 << 10 )
#define I2C1SSTA_STOP_CLR (0x0 << 10 )
#define I2C1SSTA_STOP_SET (0x1 << 10 )
/* I2C1SSTA[GCID] - General ID */
#define I2C1SSTA_GCID_MSK (0x3 << 8 )
/* I2C1SSTA[GCINT] - General call interrupt */
#define I2C1SSTA_GCINT_BBA (*(volatile unsigned long *) 0x4206859C)
#define I2C1SSTA_GCINT_MSK (0x1 << 7 )
#define I2C1SSTA_GCINT (0x1 << 7 )
#define I2C1SSTA_GCINT_CLR (0x0 << 7 )
#define I2C1SSTA_GCINT_SET (0x1 << 7 )
/* I2C1SSTA[SBUSY] - Slave busy */
#define I2C1SSTA_SBUSY_BBA (*(volatile unsigned long *) 0x42068598)
#define I2C1SSTA_SBUSY_MSK (0x1 << 6 )
#define I2C1SSTA_SBUSY (0x1 << 6 )
#define I2C1SSTA_SBUSY_CLR (0x0 << 6 )
#define I2C1SSTA_SBUSY_SET (0x1 << 6 )
/* I2C1SSTA[NOACK] - Ack not generated by the slave */
#define I2C1SSTA_NOACK_BBA (*(volatile unsigned long *) 0x42068594)
#define I2C1SSTA_NOACK_MSK (0x1 << 5 )
#define I2C1SSTA_NOACK (0x1 << 5 )
#define I2C1SSTA_NOACK_CLR (0x0 << 5 )
#define I2C1SSTA_NOACK_SET (0x1 << 5 )
/* I2C1SSTA[SRXOF] - Slave Receive FIFO overflow */
#define I2C1SSTA_SRXOF_BBA (*(volatile unsigned long *) 0x42068590)
#define I2C1SSTA_SRXOF_MSK (0x1 << 4 )
#define I2C1SSTA_SRXOF (0x1 << 4 )
#define I2C1SSTA_SRXOF_CLR (0x0 << 4 )
#define I2C1SSTA_SRXOF_SET (0x1 << 4 )
/* I2C1SSTA[SRXREQ] - Slave Receive request */
#define I2C1SSTA_SRXREQ_BBA (*(volatile unsigned long *) 0x4206858C)
#define I2C1SSTA_SRXREQ_MSK (0x1 << 3 )
#define I2C1SSTA_SRXREQ (0x1 << 3 )
#define I2C1SSTA_SRXREQ_CLR (0x0 << 3 )
#define I2C1SSTA_SRXREQ_SET (0x1 << 3 )
/* I2C1SSTA[STXREQ] - Slave Transmit request */
#define I2C1SSTA_STXREQ_BBA (*(volatile unsigned long *) 0x42068588)
#define I2C1SSTA_STXREQ_MSK (0x1 << 2 )
#define I2C1SSTA_STXREQ (0x1 << 2 )
#define I2C1SSTA_STXREQ_CLR (0x0 << 2 )
#define I2C1SSTA_STXREQ_SET (0x1 << 2 )
/* I2C1SSTA[STXUR] - Slave Transmit FIFO underflow */
#define I2C1SSTA_STXUR_BBA (*(volatile unsigned long *) 0x42068584)
#define I2C1SSTA_STXUR_MSK (0x1 << 1 )
#define I2C1SSTA_STXUR (0x1 << 1 )
#define I2C1SSTA_STXUR_CLR (0x0 << 1 )
#define I2C1SSTA_STXUR_SET (0x1 << 1 )
/* I2C1SSTA[STXFSEREQ] - Slave Tx FIFO Status or early request */
#define I2C1SSTA_STXFSEREQ_BBA (*(volatile unsigned long *) 0x42068580)
#define I2C1SSTA_STXFSEREQ_MSK (0x1 << 0 )
#define I2C1SSTA_STXFSEREQ (0x1 << 0 )
#define I2C1SSTA_STXFSEREQ_CLR (0x0 << 0 )
#define I2C1SSTA_STXFSEREQ_SET (0x1 << 0 )
/* Reset Value for I2C1SRX*/
#define I2C1SRX_RVAL 0x0
/* I2C1SRX[I2CSRX] - Slave receive register */
#define I2C1SRX_I2CSRX_MSK (0xFF << 0 )
/* Reset Value for I2C1STX*/
#define I2C1STX_RVAL 0x0
/* I2C1STX[I2CSTX] - Slave transmit register */
#define I2C1STX_I2CSTX_MSK (0xFF << 0 )
/* Reset Value for I2C1ALT*/
#define I2C1ALT_RVAL 0x0
/* I2C1ALT[ALT] - Slave Alt */
#define I2C1ALT_ALT_MSK (0xFF << 0 )
/* Reset Value for I2C1ID0*/
#define I2C1ID0_RVAL 0x0
/* I2C1ID0[ID0] - Slave device ID 0 */
#define I2C1ID0_ID0_MSK (0xFF << 0 )
/* Reset Value for I2C1ID1*/
#define I2C1ID1_RVAL 0x0
/* I2C1ID1[ID1] - Slave device ID 1 */
#define I2C1ID1_ID1_MSK (0xFF << 0 )
/* Reset Value for I2C1ID2*/
#define I2C1ID2_RVAL 0x0
/* I2C1ID2[ID2] - Slave device ID 2 */
#define I2C1ID2_ID2_MSK (0xFF << 0 )
/* Reset Value for I2C1ID3*/
#define I2C1ID3_RVAL 0x0
/* I2C1ID3[ID3] - Slave device ID 3 */
#define I2C1ID3_ID3_MSK (0xFF << 0 )
/* Reset Value for I2C1FSTA*/
#define I2C1FSTA_RVAL 0x0
/* I2C1FSTA[MFLUSH] - Flush the master transmit FIFO */
#define I2C1FSTA_MFLUSH_BBA (*(volatile unsigned long *) 0x420689A4)
#define I2C1FSTA_MFLUSH_MSK (0x1 << 9 )
#define I2C1FSTA_MFLUSH (0x1 << 9 )
#define I2C1FSTA_MFLUSH_DIS (0x0 << 9 ) /* Clearing to 0 has no effect. */
#define I2C1FSTA_MFLUSH_EN (0x1 << 9 ) /* Set to 1 to flush the master transmit FIFO. The master transmit FIFO will have to flushed if arbitration is lost or a slave responds with a NACK. */
/* I2C1FSTA[SFLUSH] - Flush the slave transmit FIFO */
#define I2C1FSTA_SFLUSH_BBA (*(volatile unsigned long *) 0x420689A0)
#define I2C1FSTA_SFLUSH_MSK (0x1 << 8 )
#define I2C1FSTA_SFLUSH (0x1 << 8 )
#define I2C1FSTA_SFLUSH_DIS (0x0 << 8 ) /* Clearing to 0 has no effect. */
#define I2C1FSTA_SFLUSH_EN (0x1 << 8 ) /* Set to 1 to flush the slave transmit FIFO. */
/* I2C1FSTA[MRXFSTA] - Master receive FIFO status */
#define I2C1FSTA_MRXFSTA_MSK (0x3 << 6 )
#define I2C1FSTA_MRXFSTA_EMPTY (0x0 << 6 ) /* FIFO empty */
#define I2C1FSTA_MRXFSTA_ONEBYTE (0x1 << 6 ) /* 1 bytes in the FIFO */
#define I2C1FSTA_MRXFSTA_TWOBYTES (0x2 << 6 ) /* 2 bytes in the FIFO */
/* I2C1FSTA[MTXFSTA] - Master transmit FIFO status */
#define I2C1FSTA_MTXFSTA_MSK (0x3 << 4 )
#define I2C1FSTA_MTXFSTA_EMPTY (0x0 << 4 ) /* FIFO empty */
#define I2C1FSTA_MTXFSTA_ONEBYTE (0x1 << 4 ) /* 1 bytes in the FIFO */
#define I2C1FSTA_MTXFSTA_TWOBYTES (0x2 << 4 ) /* 2 bytes in the FIFO */
/* I2C1FSTA[SRXFSTA] - Slave receive FIFO status */
#define I2C1FSTA_SRXFSTA_MSK (0x3 << 2 )
#define I2C1FSTA_SRXFSTA_EMPTY (0x0 << 2 ) /* FIFO empty */
#define I2C1FSTA_SRXFSTA_ONEBYTE (0x1 << 2 ) /* 1 bytes in the FIFO */
#define I2C1FSTA_SRXFSTA_TWOBYTES (0x2 << 2 ) /* 2 bytes in the FIFO */
/* I2C1FSTA[STXFSTA] - Slave transmit FIFO status */
#define I2C1FSTA_STXFSTA_MSK (0x3 << 0 )
#define I2C1FSTA_STXFSTA_EMPTY (0x0 << 0 ) /* FIFO empty */
#define I2C1FSTA_STXFSTA_ONEBYTE (0x1 << 0 ) /* 1 bytes in the FIFO */
#define I2C1FSTA_STXFSTA_TWOBYTES (0x2 << 0 ) /* 2 bytes in the FIFO */
/* Reset Value for I2C1SHCON*/
#define I2C1SHCON_RVAL 0x0
/* I2C1SHCON[RESET] - Reset START STOP detect circuit */
#define I2C1SHCON_RESET_BBA (*(volatile unsigned long *) 0x42068A00)
#define I2C1SHCON_RESET_MSK (0x1 << 0 )
#define I2C1SHCON_RESET (0x1 << 0 )
#define I2C1SHCON_RESET_DIS (0x0 << 0 )
#define I2C1SHCON_RESET_EN (0x1 << 0 )
// ------------------------------------------------------------------------------------------------
// ----- uart0 -----
// ------------------------------------------------------------------------------------------------
/**
* @brief uart0 (pADI_UART)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_UART Structure */
union {
__IO uint16_t COMTX; /*!< Transmit holding register */
__IO uint16_t COMRX; /*!< Receive buffer register */
} ;
__I uint16_t RESERVED0;
__IO uint16_t COMIEN; /*!< Interrupt enable register */
__I uint16_t RESERVED1;
__IO uint16_t COMIIR; /*!< Interrupt identification register */
__I uint16_t RESERVED2;
__IO uint16_t COMLCR; /*!< Line control register */
__I uint16_t RESERVED3;
__IO uint16_t COMMCR; /*!< Modem control register */
__I uint16_t RESERVED4;
__IO uint16_t COMLSR; /*!< Line status register */
__I uint16_t RESERVED5;
__IO uint16_t COMMSR; /*!< Modem status register */
__I uint16_t RESERVED6;
__IO uint16_t COMSCR; /*!< Scratch buffer register */
__I uint16_t RESERVED7[3];
__IO uint16_t COMFBR; /*!< Fractional baud rate register */
__I uint16_t RESERVED8;
__IO uint16_t COMDIV; /*!< Baud rate divider register */
} ADI_UART_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define COMTX (*(volatile unsigned short int *) 0x40005000)
#define COMRX (*(volatile unsigned short int *) 0x40005000)
#define COMIEN (*(volatile unsigned short int *) 0x40005004)
#define COMIIR (*(volatile unsigned short int *) 0x40005008)
#define COMLCR (*(volatile unsigned short int *) 0x4000500C)
#define COMMCR (*(volatile unsigned short int *) 0x40005010)
#define COMLSR (*(volatile unsigned short int *) 0x40005014)
#define COMMSR (*(volatile unsigned short int *) 0x40005018)
#define COMSCR (*(volatile unsigned short int *) 0x4000501C)
#define COMFBR (*(volatile unsigned short int *) 0x40005024)
#define COMDIV (*(volatile unsigned short int *) 0x40005028)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for COMTX*/
#define COMTX_RVAL 0x0
/* COMTX[THR] - Transmit Holding Register */
#define COMTX_THR_MSK (0xFF << 0 )
/* Reset Value for COMRX*/
#define COMRX_RVAL 0x0
/* COMRX[RBR] - Receive Buffer Register */
#define COMRX_RBR_MSK (0xFF << 0 )
/* Reset Value for COMIEN*/
#define COMIEN_RVAL 0x0
/* COMIEN[EDMAR] - DMA requests in receive mode */
#define COMIEN_EDMAR_BBA (*(volatile unsigned long *) 0x420A0094)
#define COMIEN_EDMAR_MSK (0x1 << 5 )
#define COMIEN_EDMAR (0x1 << 5 )
#define COMIEN_EDMAR_DIS (0x0 << 5 ) /* DMA requests disabled */
#define COMIEN_EDMAR_EN (0x1 << 5 ) /* DMA requests enabled */
/* COMIEN[EDMAT] - DMA requests in transmit mode */
#define COMIEN_EDMAT_BBA (*(volatile unsigned long *) 0x420A0090)
#define COMIEN_EDMAT_MSK (0x1 << 4 )
#define COMIEN_EDMAT (0x1 << 4 )
#define COMIEN_EDMAT_DIS (0x0 << 4 ) /* DMA requests are disabled */
#define COMIEN_EDMAT_EN (0x1 << 4 ) /* DMA requests are enabled */
/* COMIEN[EDSSI] - Modem status interrupt */
#define COMIEN_EDSSI_BBA (*(volatile unsigned long *) 0x420A008C)
#define COMIEN_EDSSI_MSK (0x1 << 3 )
#define COMIEN_EDSSI (0x1 << 3 )
#define COMIEN_EDSSI_DIS (0x0 << 3 ) /* Interrupt disabled */
#define COMIEN_EDSSI_EN (0x1 << 3 ) /* Interrupt enabled */
/* COMIEN[ELSI] - Rx status interrupt */
#define COMIEN_ELSI_BBA (*(volatile unsigned long *) 0x420A0088)
#define COMIEN_ELSI_MSK (0x1 << 2 )
#define COMIEN_ELSI (0x1 << 2 )
#define COMIEN_ELSI_DIS (0x0 << 2 ) /* Interrupt disabled */
#define COMIEN_ELSI_EN (0x1 << 2 ) /* Interrupt enabled */
/* COMIEN[ETBEI] - Transmit buffer empty interrupt */
#define COMIEN_ETBEI_BBA (*(volatile unsigned long *) 0x420A0084)
#define COMIEN_ETBEI_MSK (0x1 << 1 )
#define COMIEN_ETBEI (0x1 << 1 )
#define COMIEN_ETBEI_DIS (0x0 << 1 ) /* Interrupt disabled */
#define COMIEN_ETBEI_EN (0x1 << 1 ) /* Interrupt enabled */
/* COMIEN[ERBFI] - Receive buffer full interrupt */
#define COMIEN_ERBFI_BBA (*(volatile unsigned long *) 0x420A0080)
#define COMIEN_ERBFI_MSK (0x1 << 0 )
#define COMIEN_ERBFI (0x1 << 0 )
#define COMIEN_ERBFI_DIS (0x0 << 0 ) /* Interrupt disabled */
#define COMIEN_ERBFI_EN (0x1 << 0 ) /* Interrupt enabled */
/* Reset Value for COMIIR*/
#define COMIIR_RVAL 0x1
/* COMIIR[STA] - Interrupt status */
#define COMIIR_STA_MSK (0x3 << 1 )
#define COMIIR_STA_MODEMSTATUS (0x0 << 1 ) /* Modem status interrupt (Read COMMSR to clear) */
#define COMIIR_STA_TXBUFEMPTY (0x1 << 1 ) /* Transmit buffer empty interrupt (Write to COMTX or read COMIIR to clear) */
#define COMIIR_STA_RXBUFFULL (0x2 << 1 ) /* Receive buffer full interrupt (Read COMRX to clear) */
#define COMIIR_STA_RXLINESTATUS (0x3 << 1 ) /* Receive line status interrupt (Read COMLSR to clear) */
/* COMIIR[NIRQ] - Interrupt flag */
#define COMIIR_NIRQ_BBA (*(volatile unsigned long *) 0x420A0100)
#define COMIIR_NIRQ_MSK (0x1 << 0 )
#define COMIIR_NIRQ (0x1 << 0 )
#define COMIIR_NIRQ_CLR (0x0 << 0 ) /* Interrupt occurred. Source of interrupt indicated in the STA bits. */
#define COMIIR_NIRQ_SET (0x1 << 0 ) /* No interrupt occurred. */
/* Reset Value for COMLCR*/
#define COMLCR_RVAL 0x0
/* COMLCR[BRK] - Set Break */
#define COMLCR_BRK_BBA (*(volatile unsigned long *) 0x420A0198)
#define COMLCR_BRK_MSK (0x1 << 6 )
#define COMLCR_BRK (0x1 << 6 )
#define COMLCR_BRK_DIS (0x0 << 6 ) /* Force TxD to 0 */
#define COMLCR_BRK_EN (0x1 << 6 ) /* Normal TxD operation */
/* COMLCR[SP] - Stick Parity */
#define COMLCR_SP_BBA (*(volatile unsigned long *) 0x420A0194)
#define COMLCR_SP_MSK (0x1 << 5 )
#define COMLCR_SP (0x1 << 5 )
#define COMLCR_SP_DIS (0x0 << 5 ) /* Parity will not be forced based on EPS and PEN */
#define COMLCR_SP_EN (0x1 << 5 ) /* Parity forced based on EPS and PEN */
/* COMLCR[EPS] - Parity Select */
#define COMLCR_EPS_BBA (*(volatile unsigned long *) 0x420A0190)
#define COMLCR_EPS_MSK (0x1 << 4 )
#define COMLCR_EPS (0x1 << 4 )
#define COMLCR_EPS_ODD (0x0 << 4 ) /* Odd parity will be transmitted and checked */
#define COMLCR_EPS_EVEN (0x1 << 4 ) /* Even parity will be transmitted and checked */
/* COMLCR[PEN] - Parity Enable */
#define COMLCR_PEN_BBA (*(volatile unsigned long *) 0x420A018C)
#define COMLCR_PEN_MSK (0x1 << 3 )
#define COMLCR_PEN (0x1 << 3 )
#define COMLCR_PEN_DIS (0x0 << 3 ) /* Parity will not be transmitted or checked */
#define COMLCR_PEN_EN (0x1 << 3 ) /* Parity will be transmitted and checked */
/* COMLCR[STOP] - Stop Bit */
#define COMLCR_STOP_BBA (*(volatile unsigned long *) 0x420A0188)
#define COMLCR_STOP_MSK (0x1 << 2 )
#define COMLCR_STOP (0x1 << 2 )
#define COMLCR_STOP_DIS (0x0 << 2 ) /* Send 1 stop bit regardless of the word length (WLS). */
#define COMLCR_STOP_EN (0x1 << 2 ) /* Send a number of stop bits based on the word length. Transmit 1.5 stop bits if the word length is 5 bits (WLS = 00), or 2 stop bits if the word length is 6 (WLS = 01), 7 (WLS = 10), or 8 bits (WLS = 11). */
/* COMLCR[WLS] - Word Length Select */
#define COMLCR_WLS_MSK (0x3 << 0 )
#define COMLCR_WLS_FIVEBITS (0x0 << 0 ) /* 5 bits */
#define COMLCR_WLS_SIXBITS (0x1 << 0 ) /* 6 bits */
#define COMLCR_WLS_SEVENBITS (0x2 << 0 ) /* 7 bits */
#define COMLCR_WLS_EIGHTBITS (0x3 << 0 ) /* 8 bits */
/* Reset Value for COMMCR*/
#define COMMCR_RVAL 0x0
/* COMMCR[LOOPBACK] - Loopback mode */
#define COMMCR_LOOPBACK_BBA (*(volatile unsigned long *) 0x420A0210)
#define COMMCR_LOOPBACK_MSK (0x1 << 4 )
#define COMMCR_LOOPBACK (0x1 << 4 )
#define COMMCR_LOOPBACK_DIS (0x0 << 4 ) /* Normal operation - loopback disabled */
#define COMMCR_LOOPBACK_EN (0x1 << 4 ) /* Loopback enabled */
/* COMMCR[OUT2] - Output 2 */
#define COMMCR_OUT2_BBA (*(volatile unsigned long *) 0x420A020C)
#define COMMCR_OUT2_MSK (0x1 << 3 )
#define COMMCR_OUT2 (0x1 << 3 )
#define COMMCR_OUT2_HIGH (0x0 << 3 ) /* Force OUT2 to a logic 1 */
#define COMMCR_OUT2_LOW (0x1 << 3 ) /* Force OUT2 to a logic 0 */
/* COMMCR[OUT1] - Output 1 */
#define COMMCR_OUT1_BBA (*(volatile unsigned long *) 0x420A0208)
#define COMMCR_OUT1_MSK (0x1 << 2 )
#define COMMCR_OUT1 (0x1 << 2 )
#define COMMCR_OUT1_HIGH (0x0 << 2 ) /* Force OUT1 to a logic 1 */
#define COMMCR_OUT1_LOW (0x1 << 2 ) /* Force OUT1 to a logic 0 */
/* COMMCR[RTS] - Request to send */
#define COMMCR_RTS_BBA (*(volatile unsigned long *) 0x420A0204)
#define COMMCR_RTS_MSK (0x1 << 1 )
#define COMMCR_RTS (0x1 << 1 )
#define COMMCR_RTS_HIGH (0x0 << 1 ) /* Force RTS to a logic 1 */
#define COMMCR_RTS_LOW (0x1 << 1 ) /* Force RTS to a logic 0 */
/* COMMCR[DTR] - Data Terminal Ready */
#define COMMCR_DTR_BBA (*(volatile unsigned long *) 0x420A0200)
#define COMMCR_DTR_MSK (0x1 << 0 )
#define COMMCR_DTR (0x1 << 0 )
#define COMMCR_DTR_HIGH (0x0 << 0 ) /* Force DTR to a logic 1 */
#define COMMCR_DTR_LOW (0x1 << 0 ) /* Force DTR to a logic 0 */
/* Reset Value for COMLSR*/
#define COMLSR_RVAL 0x60
/* COMLSR[TEMT] - COMTX and shift register empty status */
#define COMLSR_TEMT_BBA (*(volatile unsigned long *) 0x420A0298)
#define COMLSR_TEMT_MSK (0x1 << 6 )
#define COMLSR_TEMT (0x1 << 6 )
#define COMLSR_TEMT_CLR (0x0 << 6 ) /* COMTX has been written to and contains data to be transmitted. Care should be taken not to overwrite its value. */
#define COMLSR_TEMT_SET (0x1 << 6 ) /* COMTX and the transmit shift register are empty and it is safe to write new data to COMTX. Data has been transmitted. */
/* COMLSR[THRE] - COMTX empty */
#define COMLSR_THRE_BBA (*(volatile unsigned long *) 0x420A0294)
#define COMLSR_THRE_MSK (0x1 << 5 )
#define COMLSR_THRE (0x1 << 5 )
#define COMLSR_THRE_CLR (0x0 << 5 ) /* COMTX has been written to and contains data to be transmitted. Care should be taken not to overwrite its value. */
#define COMLSR_THRE_SET (0x1 << 5 ) /* COMTX is empty and it is safe to write new data to COMTX. The previous data may not have been transmitted yet and can still be present in the shift register. */
/* COMLSR[BI] - Break indicator */
#define COMLSR_BI_BBA (*(volatile unsigned long *) 0x420A0290)
#define COMLSR_BI_MSK (0x1 << 4 )
#define COMLSR_BI (0x1 << 4 )
#define COMLSR_BI_CLR (0x0 << 4 ) /* SIN was not detected to be longer than the maximum word length. */
#define COMLSR_BI_SET (0x1 << 4 ) /* SIN was held low for more than the maximum word length. */
/* COMLSR[FE] - Framing error */
#define COMLSR_FE_BBA (*(volatile unsigned long *) 0x420A028C)
#define COMLSR_FE_MSK (0x1 << 3 )
#define COMLSR_FE (0x1 << 3 )
#define COMLSR_FE_CLR (0x0 << 3 ) /* No invalid Stop bit was detected. */
#define COMLSR_FE_SET (0x1 << 3 ) /* An invalid Stop bit was detected on a received word. */
/* COMLSR[PE] - Parity error */
#define COMLSR_PE_BBA (*(volatile unsigned long *) 0x420A0288)
#define COMLSR_PE_MSK (0x1 << 2 )
#define COMLSR_PE (0x1 << 2 )
#define COMLSR_PE_CLR (0x0 << 2 ) /* No parity error was detected */
#define COMLSR_PE_SET (0x1 << 2 ) /* A parity error occurred on a received word. */
/* COMLSR[OE] - Overrun error */
#define COMLSR_OE_BBA (*(volatile unsigned long *) 0x420A0284)
#define COMLSR_OE_MSK (0x1 << 1 )
#define COMLSR_OE (0x1 << 1 )
#define COMLSR_OE_CLR (0x0 << 1 ) /* Receive data has not been overwritten */
#define COMLSR_OE_SET (0x1 << 1 ) /* Receive data was overwritten by new data before COMRX was read. */
/* COMLSR[DR] - Data ready */
#define COMLSR_DR_BBA (*(volatile unsigned long *) 0x420A0280)
#define COMLSR_DR_MSK (0x1 << 0 )
#define COMLSR_DR (0x1 << 0 )
#define COMLSR_DR_CLR (0x0 << 0 ) /* COMRX does not contain new receive data. */
#define COMLSR_DR_SET (0x1 << 0 ) /* COMRX contains receive data that should be read. */
/* Reset Value for COMMSR*/
#define COMMSR_RVAL 0x0
/* COMMSR[DCD] - Data Carrier Detect */
#define COMMSR_DCD_BBA (*(volatile unsigned long *) 0x420A031C)
#define COMMSR_DCD_MSK (0x1 << 7 )
#define COMMSR_DCD (0x1 << 7 )
#define COMMSR_DCD_DIS (0x0 << 7 ) /* DCD is currently logic high */
#define COMMSR_DCD_EN (0x1 << 7 ) /* DCD is currently logic low */
/* COMMSR[RI] - Ring Indicator */
#define COMMSR_RI_BBA (*(volatile unsigned long *) 0x420A0318)
#define COMMSR_RI_MSK (0x1 << 6 )
#define COMMSR_RI (0x1 << 6 )
#define COMMSR_RI_DIS (0x0 << 6 ) /* RI is currently logic high */
#define COMMSR_RI_EN (0x1 << 6 ) /* RI is currently logic low */
/* COMMSR[DSR] - Data Set Ready */
#define COMMSR_DSR_BBA (*(volatile unsigned long *) 0x420A0314)
#define COMMSR_DSR_MSK (0x1 << 5 )
#define COMMSR_DSR (0x1 << 5 )
#define COMMSR_DSR_DIS (0x0 << 5 ) /* DSR is currently logic high */
#define COMMSR_DSR_EN (0x1 << 5 ) /* DSR is currently logic low */
/* COMMSR[CTS] - Clear To Send */
#define COMMSR_CTS_BBA (*(volatile unsigned long *) 0x420A0310)
#define COMMSR_CTS_MSK (0x1 << 4 )
#define COMMSR_CTS (0x1 << 4 )
#define COMMSR_CTS_DIS (0x0 << 4 ) /* CTS is currently logic high */
#define COMMSR_CTS_EN (0x1 << 4 ) /* CTS is currently logic low */
/* COMMSR[DDCD] - Delta DCD */
#define COMMSR_DDCD_BBA (*(volatile unsigned long *) 0x420A030C)
#define COMMSR_DDCD_MSK (0x1 << 3 )
#define COMMSR_DDCD (0x1 << 3 )
#define COMMSR_DDCD_DIS (0x0 << 3 ) /* DCD has not changed state since COMMSR was last read */
#define COMMSR_DDCD_EN (0x1 << 3 ) /* DCD changed state since COMMSR last read */
/* COMMSR[TERI] - Trailing Edge RI */
#define COMMSR_TERI_BBA (*(volatile unsigned long *) 0x420A0308)
#define COMMSR_TERI_MSK (0x1 << 2 )
#define COMMSR_TERI (0x1 << 2 )
#define COMMSR_TERI_DIS (0x0 << 2 ) /* RI has not changed from 0 to 1 since COMMSR last read */
#define COMMSR_TERI_EN (0x1 << 2 ) /* RI changed from 0 to 1 since COMMSR last read */
/* COMMSR[DDSR] - Delta DSR */
#define COMMSR_DDSR_BBA (*(volatile unsigned long *) 0x420A0304)
#define COMMSR_DDSR_MSK (0x1 << 1 )
#define COMMSR_DDSR (0x1 << 1 )
#define COMMSR_DDSR_DIS (0x0 << 1 ) /* DSR has not changed state since COMMSR was last read */
#define COMMSR_DDSR_EN (0x1 << 1 ) /* DSR changed state since COMMSR last read */
/* COMMSR[DCTS] - Delta CTS */
#define COMMSR_DCTS_BBA (*(volatile unsigned long *) 0x420A0300)
#define COMMSR_DCTS_MSK (0x1 << 0 )
#define COMMSR_DCTS (0x1 << 0 )
#define COMMSR_DCTS_DIS (0x0 << 0 ) /* CTS has not changed state since COMMSR was last read */
#define COMMSR_DCTS_EN (0x1 << 0 ) /* CTS changed state since COMMSR last read */
/* Reset Value for COMSCR*/
#define COMSCR_RVAL 0x0
/* COMSCR[SCR] - Scratch */
#define COMSCR_SCR_MSK (0xFF << 0 )
/* Reset Value for COMFBR*/
#define COMFBR_RVAL 0x0
/* COMFBR[FBEN] - Fractional baud rate generator enable */
#define COMFBR_FBEN_BBA (*(volatile unsigned long *) 0x420A04BC)
#define COMFBR_FBEN_MSK (0x1 << 15 )
#define COMFBR_FBEN (0x1 << 15 )
#define COMFBR_FBEN_DIS (0x0 << 15 )
#define COMFBR_FBEN_EN (0x1 << 15 )
/* COMFBR[DIVM] - Fractional baud rate M divide bits 1 to 3 */
#define COMFBR_DIVM_MSK (0x3 << 11 )
/* COMFBR[DIVN] - Fractional baud rate N divide bits 0 to 2047. */
#define COMFBR_DIVN_MSK (0x7FF << 0 )
/* Reset Value for COMDIV*/
#define COMDIV_RVAL 0x1
/* COMDIV[DIV] - Baud rate divider */
#define COMDIV_DIV_MSK (0xFFFF << 0 )
// ------------------------------------------------------------------------------------------------
// ----- MDIO -----
// ------------------------------------------------------------------------------------------------
/**
* @brief MDIO (pADI_MDIO)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_MDIO Structure */
__IO uint16_t MDCON; /*!< MDIO block control */
__I uint16_t RESERVED0;
__IO uint16_t MDFRM; /*!< MDIO received frame control information */
__I uint16_t RESERVED1;
__IO uint16_t MDRXD; /*!< MDIO received data */
__I uint16_t RESERVED2;
__IO uint16_t MDADR; /*!< MDIO received address */
__I uint16_t RESERVED3;
__IO uint16_t MDTXD; /*!< MDIO data for transmission */
__I uint16_t RESERVED4;
__IO uint16_t MDPHY; /*!< MDIO PHYADDR software values and selection and DEVADD */
__I uint16_t RESERVED5;
__IO uint16_t MDSTA; /*!< MDIO progress signaling through frame */
__I uint16_t RESERVED6;
__IO uint16_t MDIEN; /*!< MDIO interrupt enables */
__I uint16_t RESERVED7;
__IO uint16_t MDPIN; /*!< MDIO read PHYADDR pins */
} ADI_MDIO_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define MDCON (*(volatile unsigned short int *) 0x40005C00)
#define MDFRM (*(volatile unsigned short int *) 0x40005C04)
#define MDRXD (*(volatile unsigned short int *) 0x40005C08)
#define MDADR (*(volatile unsigned short int *) 0x40005C0C)
#define MDTXD (*(volatile unsigned short int *) 0x40005C10)
#define MDPHY (*(volatile unsigned short int *) 0x40005C14)
#define MDSTA (*(volatile unsigned short int *) 0x40005C18)
#define MDIEN (*(volatile unsigned short int *) 0x40005C1C)
#define MDPIN (*(volatile unsigned short int *) 0x40005C20)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for MDCON*/
#define MDCON_RVAL 0x0
/* MDCON[MD_DRV] - */
#define MDCON_MD_DRV_BBA (*(volatile unsigned long *) 0x420B8008)
#define MDCON_MD_DRV_MSK (0x1 << 2 )
#define MDCON_MD_DRV (0x1 << 2 )
#define MDCON_MD_DRV_MD_DRV_OD (0x0 << 2 ) /* MDIO drive open drain. */
#define MDCON_MD_DRV_MD_DRV_PP (0x1 << 2 ) /* MDIO drive push-pull. */
/* MDCON[MD_PHM] - */
#define MDCON_MD_PHM_BBA (*(volatile unsigned long *) 0x420B8004)
#define MDCON_MD_PHM_MSK (0x1 << 1 )
#define MDCON_MD_PHM (0x1 << 1 )
/* MDCON[MD_RST] - */
#define MDCON_MD_RST_BBA (*(volatile unsigned long *) 0x420B8000)
#define MDCON_MD_RST_MSK (0x1 << 0 )
#define MDCON_MD_RST (0x1 << 0 )
#define MDCON_MD_RST_DIS (0x0 << 0 )
#define MDCON_MD_RST_EN (0x1 << 0 )
/* Reset Value for MDFRM*/
#define MDFRM_RVAL 0x0
/* MDFRM[MD_DEV] - */
#define MDFRM_MD_DEV_MSK (0x1F << 7 )
/* MDFRM[MD_PHY] - */
#define MDFRM_MD_PHY_MSK (0x1F << 2 )
/* MDFRM[MD_OP] - */
#define MDFRM_MD_OP_MSK (0x3 << 0 )
#define MDFRM_MD_OP_MD_OP_ADF (0x0 << 0 ) /* Address frame. */
#define MDFRM_MD_OP_MD_OP_WRF (0x1 << 0 ) /* Write frame. */
#define MDFRM_MD_OP_MD_OP_INCF (0x2 << 0 ) /* PostReadIncAdd frame. */
#define MDFRM_MD_OP_MD_OP_RDF (0x3 << 0 ) /* Read frame. */
/* Reset Value for MDRXD*/
#define MDRXD_RVAL 0x0
/* MDRXD[MD_RXD] - */
#define MDRXD_MD_RXD_MSK (0xFFFF << 0 )
/* Reset Value for MDADR*/
#define MDADR_RVAL 0x0
/* MDADR[MD_ADR] - */
#define MDADR_MD_ADR_MSK (0xFFFF << 0 )
/* Reset Value for MDTXD*/
#define MDTXD_RVAL 0x0
/* MDTXD[MD_TXD] - */
#define MDTXD_MD_TXD_MSK (0xFFFF << 0 )
/* Reset Value for MDPHY*/
#define MDPHY_RVAL 0x400
/* MDPHY[MD_DEVADD] - */
#define MDPHY_MD_DEVADD_MSK (0x1F << 10 )
/* MDPHY[MD_PHYSEL] - */
#define MDPHY_MD_PHYSEL_MSK (0x1F << 5 )
/* MDPHY[MD_PHYSW] - */
#define MDPHY_MD_PHYSW_MSK (0x1F << 0 )
/* Reset Value for MDSTA*/
#define MDSTA_RVAL 0x0
/* MDSTA[MD_PHYN] - */
#define MDSTA_MD_PHYN_BBA (*(volatile unsigned long *) 0x420B831C)
#define MDSTA_MD_PHYN_MSK (0x1 << 7 )
#define MDSTA_MD_PHYN (0x1 << 7 )
#define MDSTA_MD_PHYN_DIS (0x0 << 7 )
#define MDSTA_MD_PHYN_EN (0x1 << 7 )
/* MDSTA[MD_PHYM] - */
#define MDSTA_MD_PHYM_BBA (*(volatile unsigned long *) 0x420B8318)
#define MDSTA_MD_PHYM_MSK (0x1 << 6 )
#define MDSTA_MD_PHYM (0x1 << 6 )
#define MDSTA_MD_PHYM_DIS (0x0 << 6 )
#define MDSTA_MD_PHYM_EN (0x1 << 6 )
/* MDSTA[MD_DEVN] - */
#define MDSTA_MD_DEVN_BBA (*(volatile unsigned long *) 0x420B8314)
#define MDSTA_MD_DEVN_MSK (0x1 << 5 )
#define MDSTA_MD_DEVN (0x1 << 5 )
#define MDSTA_MD_DEVN_DIS (0x0 << 5 )
#define MDSTA_MD_DEVN_EN (0x1 << 5 )
/* MDSTA[MD_DEVM] - */
#define MDSTA_MD_DEVM_BBA (*(volatile unsigned long *) 0x420B8310)
#define MDSTA_MD_DEVM_MSK (0x1 << 4 )
#define MDSTA_MD_DEVM (0x1 << 4 )
#define MDSTA_MD_DEVM_DIS (0x0 << 4 )
#define MDSTA_MD_DEVM_EN (0x1 << 4 )
/* MDSTA[MD_RDF] - */
#define MDSTA_MD_RDF_BBA (*(volatile unsigned long *) 0x420B830C)
#define MDSTA_MD_RDF_MSK (0x1 << 3 )
#define MDSTA_MD_RDF (0x1 << 3 )
#define MDSTA_MD_RDF_DIS (0x0 << 3 )
#define MDSTA_MD_RDF_EN (0x1 << 3 )
/* MDSTA[MD_INCF] - */
#define MDSTA_MD_INCF_BBA (*(volatile unsigned long *) 0x420B8308)
#define MDSTA_MD_INCF_MSK (0x1 << 2 )
#define MDSTA_MD_INCF (0x1 << 2 )
#define MDSTA_MD_INCF_DIS (0x0 << 2 )
#define MDSTA_MD_INCF_EN (0x1 << 2 )
/* MDSTA[MD_ADRF] - */
#define MDSTA_MD_ADRF_BBA (*(volatile unsigned long *) 0x420B8304)
#define MDSTA_MD_ADRF_MSK (0x1 << 1 )
#define MDSTA_MD_ADRF (0x1 << 1 )
#define MDSTA_MD_ADRF_DIS (0x0 << 1 )
#define MDSTA_MD_ADRF_EN (0x1 << 1 )
/* MDSTA[MD_WRF] - */
#define MDSTA_MD_WRF_BBA (*(volatile unsigned long *) 0x420B8300)
#define MDSTA_MD_WRF_MSK (0x1 << 0 )
#define MDSTA_MD_WRF (0x1 << 0 )
#define MDSTA_MD_WRF_DIS (0x0 << 0 )
#define MDSTA_MD_WRF_EN (0x1 << 0 )
/* Reset Value for MDIEN*/
#define MDIEN_RVAL 0x0
/* MDIEN[MD_PHYNI] - */
#define MDIEN_MD_PHYNI_BBA (*(volatile unsigned long *) 0x420B839C)
#define MDIEN_MD_PHYNI_MSK (0x1 << 7 )
#define MDIEN_MD_PHYNI (0x1 << 7 )
#define MDIEN_MD_PHYNI_DIS (0x0 << 7 )
#define MDIEN_MD_PHYNI_EN (0x1 << 7 )
/* MDIEN[MD_PHYMI] - */
#define MDIEN_MD_PHYMI_BBA (*(volatile unsigned long *) 0x420B8398)
#define MDIEN_MD_PHYMI_MSK (0x1 << 6 )
#define MDIEN_MD_PHYMI (0x1 << 6 )
#define MDIEN_MD_PHYMI_DIS (0x0 << 6 )
#define MDIEN_MD_PHYMI_EN (0x1 << 6 )
/* MDIEN[MD_DEVNI] - */
#define MDIEN_MD_DEVNI_BBA (*(volatile unsigned long *) 0x420B8394)
#define MDIEN_MD_DEVNI_MSK (0x1 << 5 )
#define MDIEN_MD_DEVNI (0x1 << 5 )
#define MDIEN_MD_DEVNI_DIS (0x0 << 5 )
#define MDIEN_MD_DEVNI_EN (0x1 << 5 )
/* MDIEN[MD_DEVMI] - */
#define MDIEN_MD_DEVMI_BBA (*(volatile unsigned long *) 0x420B8390)
#define MDIEN_MD_DEVMI_MSK (0x1 << 4 )
#define MDIEN_MD_DEVMI (0x1 << 4 )
#define MDIEN_MD_DEVMI_DIS (0x0 << 4 )
#define MDIEN_MD_DEVMI_EN (0x1 << 4 )
/* MDIEN[MD_RDFI] - */
#define MDIEN_MD_RDFI_BBA (*(volatile unsigned long *) 0x420B838C)
#define MDIEN_MD_RDFI_MSK (0x1 << 3 )
#define MDIEN_MD_RDFI (0x1 << 3 )
#define MDIEN_MD_RDFI_DIS (0x0 << 3 )
#define MDIEN_MD_RDFI_EN (0x1 << 3 )
/* MDIEN[MD_INCFI] - */
#define MDIEN_MD_INCFI_BBA (*(volatile unsigned long *) 0x420B8388)
#define MDIEN_MD_INCFI_MSK (0x1 << 2 )
#define MDIEN_MD_INCFI (0x1 << 2 )
#define MDIEN_MD_INCFI_DIS (0x0 << 2 )
#define MDIEN_MD_INCFI_EN (0x1 << 2 )
/* MDIEN[MD_ADRI] - */
#define MDIEN_MD_ADRI_BBA (*(volatile unsigned long *) 0x420B8384)
#define MDIEN_MD_ADRI_MSK (0x1 << 1 )
#define MDIEN_MD_ADRI (0x1 << 1 )
#define MDIEN_MD_ADRI_DIS (0x0 << 1 )
#define MDIEN_MD_ADRI_EN (0x1 << 1 )
/* MDIEN[MD_WRFI] - */
#define MDIEN_MD_WRFI_BBA (*(volatile unsigned long *) 0x420B8380)
#define MDIEN_MD_WRFI_MSK (0x1 << 0 )
#define MDIEN_MD_WRFI (0x1 << 0 )
#define MDIEN_MD_WRFI_DIS (0x0 << 0 )
#define MDIEN_MD_WRFI_EN (0x1 << 0 )
/* Reset Value for MDPIN*/
#define MDPIN_RVAL 0x0
/* MDPIN[MD_PIN] - */
#define MDPIN_MD_PIN_MSK (0x1F << 0 )
// ------------------------------------------------------------------------------------------------
// ----- PLA -----
// ------------------------------------------------------------------------------------------------
/**
* @brief PLA (pADI_PLA)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_PLA Structure */
__IO uint32_t PLA_ELEM[32]; /*!< ELEMx Configuration Register */
__IO uint16_t PLA_CLK; /*!< PLA Clock Select */
__I uint16_t RESERVED0;
__IO uint16_t PLA_IRQ0; /*!< Interrupt Register for Block 0 and 1 */
__I uint16_t RESERVED1;
__IO uint16_t PLA_IRQ1; /*!< Interrupt Register for Block 2 and 3 */
__I uint16_t RESERVED2;
__IO uint16_t PLA_ADC; /*!< ADC Configuration Register */
__I uint16_t RESERVED3;
__IO uint16_t PLA_DIN0; /*!< AMBA Bus Data Input for Block 0 and 1 */
__I uint16_t RESERVED4[3];
__IO uint16_t PLA_DOUT0; /*!< AMBA Bus Data Output for Block 0 and 1 */
__I uint16_t RESERVED5;
__IO uint16_t PLA_DOUT1; /*!< AMBA Bus Data Output for Block 2 and 3 */
__I uint16_t RESERVED6;
__IO uint16_t PLA_LCK; /*!< Write lock Register. Can only be set once every reset */
} ADI_PLA_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define PLA_ELEM0 (*(volatile unsigned short int *) 0x40005800)
#define PLA_ELEM1 (*(volatile unsigned short int *) 0x40005804)
#define PLA_ELEM2 (*(volatile unsigned short int *) 0x40005808)
#define PLA_ELEM3 (*(volatile unsigned short int *) 0x4000580C)
#define PLA_ELEM4 (*(volatile unsigned short int *) 0x40005810)
#define PLA_ELEM5 (*(volatile unsigned short int *) 0x40005814)
#define PLA_ELEM6 (*(volatile unsigned short int *) 0x40005818)
#define PLA_ELEM7 (*(volatile unsigned short int *) 0x4000581C)
#define PLA_ELEM8 (*(volatile unsigned short int *) 0x40005820)
#define PLA_ELEM9 (*(volatile unsigned short int *) 0x40005824)
#define PLA_ELEM10 (*(volatile unsigned short int *) 0x40005828)
#define PLA_ELEM11 (*(volatile unsigned short int *) 0x4000582C)
#define PLA_ELEM12 (*(volatile unsigned short int *) 0x40005830)
#define PLA_ELEM13 (*(volatile unsigned short int *) 0x40005834)
#define PLA_ELEM14 (*(volatile unsigned short int *) 0x40005838)
#define PLA_ELEM15 (*(volatile unsigned short int *) 0x4000583C)
#define PLA_ELEM16 (*(volatile unsigned short int *) 0x40005840)
#define PLA_ELEM17 (*(volatile unsigned short int *) 0x40005844)
#define PLA_ELEM18 (*(volatile unsigned short int *) 0x40005848)
#define PLA_ELEM19 (*(volatile unsigned short int *) 0x4000584C)
#define PLA_ELEM20 (*(volatile unsigned short int *) 0x40005850)
#define PLA_ELEM21 (*(volatile unsigned short int *) 0x40005854)
#define PLA_ELEM22 (*(volatile unsigned short int *) 0x40005858)
#define PLA_ELEM23 (*(volatile unsigned short int *) 0x4000585C)
#define PLA_ELEM24 (*(volatile unsigned short int *) 0x40005860)
#define PLA_ELEM25 (*(volatile unsigned short int *) 0x40005864)
#define PLA_ELEM26 (*(volatile unsigned short int *) 0x40005868)
#define PLA_ELEM27 (*(volatile unsigned short int *) 0x4000586C)
#define PLA_ELEM28 (*(volatile unsigned short int *) 0x40005870)
#define PLA_ELEM29 (*(volatile unsigned short int *) 0x40005874)
#define PLA_ELEM30 (*(volatile unsigned short int *) 0x40005878)
#define PLA_ELEM31 (*(volatile unsigned short int *) 0x4000587C)
#define PLA_CLK (*(volatile unsigned short int *) 0x40005880)
#define PLA_IRQ0 (*(volatile unsigned short int *) 0x40005884)
#define PLA_IRQ1 (*(volatile unsigned short int *) 0x40005888)
#define PLA_ADC (*(volatile unsigned short int *) 0x4000588C)
#define PLA_DIN0 (*(volatile unsigned short int *) 0x40005890)
#define PLA_DOUT0 (*(volatile unsigned short int *) 0x40005898)
#define PLA_DOUT1 (*(volatile unsigned short int *) 0x4000589C)
#define PLA_LCK (*(volatile unsigned short int *) 0x400058A0)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for PLA_ELEM*/
#define PLA_ELEM_RVAL 0x0
/* PLA_ELEM[MUX0] - Even element feedback selection (in respective block) */
#define PLA_ELEM_MUX0_MSK (0x3 << 9 )
#define PLA_ELEM_MUX0_ELEM0 (0x0 << 9 ) /* Feedback from Element 0 (all except Element 0) / Input from other block (Element 0 only) */
#define PLA_ELEM_MUX0_ELEM2 (0x1 << 9 ) /* Feedback from Element 2 */
#define PLA_ELEM_MUX0_ELEM4 (0x2 << 9 ) /* Feedback from Element 4 */
#define PLA_ELEM_MUX0_ELEM6 (0x3 << 9 ) /* Feedback from Element 6 */
/* PLA_ELEM[MUX1] - Odd element feedback selection (in respective block) */
#define PLA_ELEM_MUX1_MSK (0x3 << 7 )
#define PLA_ELEM_MUX1_ELEM1 (0x0 << 7 ) /* Feedback from Element 1 */
#define PLA_ELEM_MUX1_ELEM3 (0x1 << 7 ) /* Feedback from Element 3 */
#define PLA_ELEM_MUX1_ELEM5 (0x2 << 7 ) /* Feedback from Element 5 */
#define PLA_ELEM_MUX1_ELEM7 (0x3 << 7 ) /* Feedback from Element 7 */
/* PLA_ELEM[MUX2] - Select between correspondng bit from PLA_DINx register or even feedback mux */
#define PLA_ELEM_MUX2_BBA (*(volatile unsigned long *) 0x420B0018)
#define PLA_ELEM_MUX2_MSK (0x1 << 6 )
#define PLA_ELEM_MUX2 (0x1 << 6 )
#define PLA_ELEM_MUX2_MMR (0x0 << 6 ) /* PLA_DINx input */
#define PLA_ELEM_MUX2_EVEN (0x1 << 6 ) /* Even feedback mux */
/* PLA_ELEM[MUX3] - Select between GPIO Bus input or odd feedback input (for Elements 16-31 odd feedback is always selected) */
#define PLA_ELEM_MUX3_BBA (*(volatile unsigned long *) 0x420B0014)
#define PLA_ELEM_MUX3_MSK (0x1 << 5 )
#define PLA_ELEM_MUX3 (0x1 << 5 )
#define PLA_ELEM_MUX3_ODD (0x0 << 5 ) /* odd feedback mux */
#define PLA_ELEM_MUX3_GPIO (0x1 << 5 ) /* GPIO input */
/* PLA_ELEM[TBL] - bit 4,3,2,1 configures output for {mux2_out, mux3_out} = 11,10,01,00 respectively */
#define PLA_ELEM_TBL_MSK (0xF << 1 )
#define PLA_ELEM_TBL_LOW (0x0 << 1 ) /* 0. */
#define PLA_ELEM_TBL_NOR (0x1 << 1 ) /* NOR. */
#define PLA_ELEM_TBL_BANDNOTA (0x2 << 1 ) /* B and not A. */
#define PLA_ELEM_TBL_NOTA (0x3 << 1 ) /* NOT A. */
#define PLA_ELEM_TBL_AANDNOTB (0x4 << 1 ) /* A and not B. */
#define PLA_ELEM_TBL_NOTB (0x5 << 1 ) /* Not B. */
#define PLA_ELEM_TBL_EXOR (0x6 << 1 ) /* EXOR. */
#define PLA_ELEM_TBL_NAND (0x7 << 1 ) /* NAND. */
#define PLA_ELEM_TBL_AND (0x8 << 1 ) /* AND. */
#define PLA_ELEM_TBL_EXNOR (0x9 << 1 ) /* EXNOR. */
#define PLA_ELEM_TBL_B (0xA << 1 ) /* B. */
#define PLA_ELEM_TBL_BORNOTA (0xB << 1 ) /* B or not A. */
#define PLA_ELEM_TBL_A (0xC << 1 ) /* A. */
#define PLA_ELEM_TBL_AORNOTB (0xD << 1 ) /* A or not B. */
#define PLA_ELEM_TBL_OR (0xE << 1 ) /* OR */
#define PLA_ELEM_TBL_HIGH (0xF << 1 ) /* 1. */
/* PLA_ELEM[MUX4] - Select or bypass flip-flop output */
#define PLA_ELEM_MUX4_BBA (*(volatile unsigned long *) 0x420B0000)
#define PLA_ELEM_MUX4_MSK (0x1 << 0 )
#define PLA_ELEM_MUX4 (0x1 << 0 )
#define PLA_ELEM_MUX4_FF (0x0 << 0 ) /* FF output */
#define PLA_ELEM_MUX4_BYPASS (0x1 << 0 ) /* Bypass output */
/* Reset Value for PLA_CLK*/
#define PLA_CLK_RVAL 0x0
/* PLA_CLK[BLOCK3] - Clock select for Block 3 */
#define PLA_CLK_BLOCK3_MSK (0x7 << 12 )
#define PLA_CLK_BLOCK3_P03 (0x0 << 12 ) /* GPIO clock on P0.3 */
#define PLA_CLK_BLOCK3_P11 (0x1 << 12 ) /* GPIO clock on P1.1 */
#define PLA_CLK_BLOCK3_P20 (0x2 << 12 ) /* GPIO clock on P2.0 */
#define PLA_CLK_BLOCK3_HCLK (0x3 << 12 ) /* HCLK */
#define PLA_CLK_BLOCK3_MOSC (0x4 << 12 ) /* MOSC (16 MHz) */
#define PLA_CLK_BLOCK3_T0 (0x5 << 12 ) /* Timer 0 */
#define PLA_CLK_BLOCK3_T2 (0x6 << 12 ) /* Timer 2 */
#define PLA_CLK_BLOCK3_KOSC (0x7 << 12 ) /* KOSC (32 kHz) */
/* PLA_CLK[BLOCK2] - Clock select for Block 2 */
#define PLA_CLK_BLOCK2_MSK (0x7 << 8 )
#define PLA_CLK_BLOCK2_P03 (0x0 << 8 ) /* GPIO clock on P0.3 */
#define PLA_CLK_BLOCK2_P11 (0x1 << 8 ) /* GPIO clock on P1.1 */
#define PLA_CLK_BLOCK2_P20 (0x2 << 8 ) /* GPIO clock on P2.0 */
#define PLA_CLK_BLOCK2_HCLK (0x3 << 8 ) /* HCLK */
#define PLA_CLK_BLOCK2_MOSC (0x4 << 8 ) /* MOSC (16 MHz) */
#define PLA_CLK_BLOCK2_T0 (0x5 << 8 ) /* Timer 0 */
#define PLA_CLK_BLOCK2_T2 (0x6 << 8 ) /* Timer 2 */
#define PLA_CLK_BLOCK2_KOSC (0x7 << 8 ) /* KOSC (32 kHz) */
/* PLA_CLK[BLOCK1] - Clock select for Block 1 */
#define PLA_CLK_BLOCK1_MSK (0x7 << 4 )
#define PLA_CLK_BLOCK1_P03 (0x0 << 4 ) /* GPIO clock on P0.3 */
#define PLA_CLK_BLOCK1_P11 (0x1 << 4 ) /* GPIO clock on P1.1 */
#define PLA_CLK_BLOCK1_P20 (0x2 << 4 ) /* GPIO clock on P2.0 */
#define PLA_CLK_BLOCK1_HCLK (0x3 << 4 ) /* HCLK */
#define PLA_CLK_BLOCK1_MOSC (0x4 << 4 ) /* MOSC (16 MHz) */
#define PLA_CLK_BLOCK1_T0 (0x5 << 4 ) /* Timer 0 */
#define PLA_CLK_BLOCK1_T2 (0x6 << 4 ) /* Timer 2 */
#define PLA_CLK_BLOCK1_KOSC (0x7 << 4 ) /* KOSC (32 kHz) */
/* PLA_CLK[BLOCK0] - Clock select for Block 0 */
#define PLA_CLK_BLOCK0_MSK (0x7 << 0 )
#define PLA_CLK_BLOCK0_P03 (0x0 << 0 ) /* GPIO clock on P0.3 */
#define PLA_CLK_BLOCK0_P11 (0x1 << 0 ) /* GPIO clock on P1.1 */
#define PLA_CLK_BLOCK0_P20 (0x2 << 0 ) /* GPIO clock on P2.0 */
#define PLA_CLK_BLOCK0_HCLK (0x3 << 0 ) /* HCLK */
#define PLA_CLK_BLOCK0_MOSC (0x4 << 0 ) /* MOSC (16 MHz) */
#define PLA_CLK_BLOCK0_T0 (0x5 << 0 ) /* Timer 0 */
#define PLA_CLK_BLOCK0_T2 (0x6 << 0 ) /* Timer 2 */
#define PLA_CLK_BLOCK0_KOSC (0x7 << 0 ) /* KOSC (32 kHz) */
/* Reset Value for PLA_IRQ0*/
#define PLA_IRQ0_RVAL 0x0
/* PLA_IRQ0[irq1_en] - IRQ1 enable */
#define PLA_IRQ0_irq1_en_BBA (*(volatile unsigned long *) 0x420B10B0)
#define PLA_IRQ0_irq1_en_MSK (0x1 << 12 )
#define PLA_IRQ0_irq1_en (0x1 << 12 )
#define PLA_IRQ0_irq1_en_DIS (0x0 << 12 ) /* disable IRQ1 interrupt */
#define PLA_IRQ0_irq1_en_EN (0x1 << 12 ) /* enable IRQ1 interrupt */
/* PLA_IRQ0[irq1_src] - IRQ1 source select (Elements 0-15). 4-bit value corresponds to element number (e.g. 1011 selects Element 11). */
#define PLA_IRQ0_irq1_src_MSK (0xF << 8 )
/* PLA_IRQ0[irq0_en] - IRQ0 enable */
#define PLA_IRQ0_irq0_en_BBA (*(volatile unsigned long *) 0x420B1090)
#define PLA_IRQ0_irq0_en_MSK (0x1 << 4 )
#define PLA_IRQ0_irq0_en (0x1 << 4 )
#define PLA_IRQ0_irq0_en_DIS (0x0 << 4 ) /* disable IRQ0 interrupt */
#define PLA_IRQ0_irq0_en_EN (0x1 << 4 ) /* enable IRQ0 interrupt */
/* PLA_IRQ0[irq0_src] - IRQ0 source select (Elements 0-15). 4-bit value corresponds to element number (e.g. 1011 selects Element 11). */
#define PLA_IRQ0_irq0_src_MSK (0xF << 0 )
/* Reset Value for PLA_IRQ1*/
#define PLA_IRQ1_RVAL 0x0
/* PLA_IRQ1[irq3_en] - IRQ3 enable */
#define PLA_IRQ1_irq3_en_BBA (*(volatile unsigned long *) 0x420B1130)
#define PLA_IRQ1_irq3_en_MSK (0x1 << 12 )
#define PLA_IRQ1_irq3_en (0x1 << 12 )
#define PLA_IRQ1_irq3_en_DIS (0x0 << 12 ) /* disable IRQ3 interrupt */
#define PLA_IRQ1_irq3_en_EN (0x1 << 12 ) /* enable IRQ3 interrupt */
/* PLA_IRQ1[irq3_src] - IRQ3 source select (Elements 16-31) Element number corresponds to 4-bit value + 16 (e.g. 1011 selects Element 27). */
#define PLA_IRQ1_irq3_src_MSK (0xF << 8 )
/* PLA_IRQ1[irq2_en] - IRQ2 enable */
#define PLA_IRQ1_irq2_en_BBA (*(volatile unsigned long *) 0x420B1110)
#define PLA_IRQ1_irq2_en_MSK (0x1 << 4 )
#define PLA_IRQ1_irq2_en (0x1 << 4 )
#define PLA_IRQ1_irq2_en_DIS (0x0 << 4 ) /* disable IRQ2 interrupt */
#define PLA_IRQ1_irq2_en_EN (0x1 << 4 ) /* enable IRQ2 interrupt */
/* PLA_IRQ1[irq2_src] - IRQ2 source select (Elements 16-31). Element number corresponds to 4-bit value + 16 (e.g. 1011 selects Element 27). */
#define PLA_IRQ1_irq2_src_MSK (0xF << 0 )
/* Reset Value for PLA_ADC*/
#define PLA_ADC_RVAL 0x0
/* PLA_ADC[convst_en] - Bit to enable ADC start convert from PLA */
#define PLA_ADC_convst_en_BBA (*(volatile unsigned long *) 0x420B1194)
#define PLA_ADC_convst_en_MSK (0x1 << 5 )
#define PLA_ADC_convst_en (0x1 << 5 )
/* PLA_ADC[convst_src] - Element for ADC start convert source. The binary value corresponds to the element number. For example Element 23 is 10111 */
#define PLA_ADC_convst_src_MSK (0x1F << 0 )
/* Reset Value for PLA_DIN0*/
#define PLA_DIN0_RVAL 0x0
/* PLA_DIN0[DIN] - */
#define PLA_DIN0_DIN_MSK (0xFFFF << 0 )
/* Reset Value for PLA_DOUT0*/
#define PLA_DOUT0_RVAL 0x0
/* PLA_DOUT0[E15] - Output bit from Element 15 */
#define PLA_DOUT0_E15_BBA (*(volatile unsigned long *) 0x420B133C)
#define PLA_DOUT0_E15_MSK (0x1 << 15 )
#define PLA_DOUT0_E15 (0x1 << 15 )
#define PLA_DOUT0_E15_CLR (0x0 << 15 )
#define PLA_DOUT0_E15_SET (0x1 << 15 )
/* PLA_DOUT0[E14] - Output bit from Element 14 */
#define PLA_DOUT0_E14_BBA (*(volatile unsigned long *) 0x420B1338)
#define PLA_DOUT0_E14_MSK (0x1 << 14 )
#define PLA_DOUT0_E14 (0x1 << 14 )
#define PLA_DOUT0_E14_CLR (0x0 << 14 )
#define PLA_DOUT0_E14_SET (0x1 << 14 )
/* PLA_DOUT0[E13] - Output bit from Element 13 */
#define PLA_DOUT0_E13_BBA (*(volatile unsigned long *) 0x420B1334)
#define PLA_DOUT0_E13_MSK (0x1 << 13 )
#define PLA_DOUT0_E13 (0x1 << 13 )
#define PLA_DOUT0_E13_CLR (0x0 << 13 )
#define PLA_DOUT0_E13_SET (0x1 << 13 )
/* PLA_DOUT0[E12] - Output bit from Element 12 */
#define PLA_DOUT0_E12_BBA (*(volatile unsigned long *) 0x420B1330)
#define PLA_DOUT0_E12_MSK (0x1 << 12 )
#define PLA_DOUT0_E12 (0x1 << 12 )
#define PLA_DOUT0_E12_CLR (0x0 << 12 )
#define PLA_DOUT0_E12_SET (0x1 << 12 )
/* PLA_DOUT0[E11] - Output bit from Element 11 */
#define PLA_DOUT0_E11_BBA (*(volatile unsigned long *) 0x420B132C)
#define PLA_DOUT0_E11_MSK (0x1 << 11 )
#define PLA_DOUT0_E11 (0x1 << 11 )
#define PLA_DOUT0_E11_CLR (0x0 << 11 )
#define PLA_DOUT0_E11_SET (0x1 << 11 )
/* PLA_DOUT0[E10] - Output bit from Element 10 */
#define PLA_DOUT0_E10_BBA (*(volatile unsigned long *) 0x420B1328)
#define PLA_DOUT0_E10_MSK (0x1 << 10 )
#define PLA_DOUT0_E10 (0x1 << 10 )
#define PLA_DOUT0_E10_CLR (0x0 << 10 )
#define PLA_DOUT0_E10_SET (0x1 << 10 )
/* PLA_DOUT0[E9] - Output bit from Element 9 */
#define PLA_DOUT0_E9_BBA (*(volatile unsigned long *) 0x420B1324)
#define PLA_DOUT0_E9_MSK (0x1 << 9 )
#define PLA_DOUT0_E9 (0x1 << 9 )
#define PLA_DOUT0_E9_CLR (0x0 << 9 )
#define PLA_DOUT0_E9_SET (0x1 << 9 )
/* PLA_DOUT0[E8] - Output bit from Element 8 */
#define PLA_DOUT0_E8_BBA (*(volatile unsigned long *) 0x420B1320)
#define PLA_DOUT0_E8_MSK (0x1 << 8 )
#define PLA_DOUT0_E8 (0x1 << 8 )
#define PLA_DOUT0_E8_CLR (0x0 << 8 )
#define PLA_DOUT0_E8_SET (0x1 << 8 )
/* PLA_DOUT0[E7] - Output bit from Element 7 */
#define PLA_DOUT0_E7_BBA (*(volatile unsigned long *) 0x420B131C)
#define PLA_DOUT0_E7_MSK (0x1 << 7 )
#define PLA_DOUT0_E7 (0x1 << 7 )
#define PLA_DOUT0_E7_CLR (0x0 << 7 )
#define PLA_DOUT0_E7_SET (0x1 << 7 )
/* PLA_DOUT0[E6] - Output bit from Element 6 */
#define PLA_DOUT0_E6_BBA (*(volatile unsigned long *) 0x420B1318)
#define PLA_DOUT0_E6_MSK (0x1 << 6 )
#define PLA_DOUT0_E6 (0x1 << 6 )
#define PLA_DOUT0_E6_CLR (0x0 << 6 )
#define PLA_DOUT0_E6_SET (0x1 << 6 )
/* PLA_DOUT0[E5] - Output bit from Element 5 */
#define PLA_DOUT0_E5_BBA (*(volatile unsigned long *) 0x420B1314)
#define PLA_DOUT0_E5_MSK (0x1 << 5 )
#define PLA_DOUT0_E5 (0x1 << 5 )
#define PLA_DOUT0_E5_CLR (0x0 << 5 )
#define PLA_DOUT0_E5_SET (0x1 << 5 )
/* PLA_DOUT0[E4] - Output bit from Element 4 */
#define PLA_DOUT0_E4_BBA (*(volatile unsigned long *) 0x420B1310)
#define PLA_DOUT0_E4_MSK (0x1 << 4 )
#define PLA_DOUT0_E4 (0x1 << 4 )
#define PLA_DOUT0_E4_CLR (0x0 << 4 )
#define PLA_DOUT0_E4_SET (0x1 << 4 )
/* PLA_DOUT0[E3] - Output bit from Element 3 */
#define PLA_DOUT0_E3_BBA (*(volatile unsigned long *) 0x420B130C)
#define PLA_DOUT0_E3_MSK (0x1 << 3 )
#define PLA_DOUT0_E3 (0x1 << 3 )
#define PLA_DOUT0_E3_CLR (0x0 << 3 )
#define PLA_DOUT0_E3_SET (0x1 << 3 )
/* PLA_DOUT0[E2] - Output bit from Element 2 */
#define PLA_DOUT0_E2_BBA (*(volatile unsigned long *) 0x420B1308)
#define PLA_DOUT0_E2_MSK (0x1 << 2 )
#define PLA_DOUT0_E2 (0x1 << 2 )
#define PLA_DOUT0_E2_CLR (0x0 << 2 )
#define PLA_DOUT0_E2_SET (0x1 << 2 )
/* PLA_DOUT0[E1] - Output bit from Element 1 */
#define PLA_DOUT0_E1_BBA (*(volatile unsigned long *) 0x420B1304)
#define PLA_DOUT0_E1_MSK (0x1 << 1 )
#define PLA_DOUT0_E1 (0x1 << 1 )
#define PLA_DOUT0_E1_CLR (0x0 << 1 )
#define PLA_DOUT0_E1_SET (0x1 << 1 )
/* PLA_DOUT0[E0] - Output bit from Element 0 */
#define PLA_DOUT0_E0_BBA (*(volatile unsigned long *) 0x420B1300)
#define PLA_DOUT0_E0_MSK (0x1 << 0 )
#define PLA_DOUT0_E0 (0x1 << 0 )
#define PLA_DOUT0_E0_CLR (0x0 << 0 )
#define PLA_DOUT0_E0_SET (0x1 << 0 )
/* Reset Value for PLA_DOUT1*/
#define PLA_DOUT1_RVAL 0x0
/* PLA_DOUT1[E31] - Output bit from Element 31 */
#define PLA_DOUT1_E31_BBA (*(volatile unsigned long *) 0x420B13BC)
#define PLA_DOUT1_E31_MSK (0x1 << 15 )
#define PLA_DOUT1_E31 (0x1 << 15 )
#define PLA_DOUT1_E31_CLR (0x0 << 15 )
#define PLA_DOUT1_E31_SET (0x1 << 15 )
/* PLA_DOUT1[E30] - Output bit from Element 30 */
#define PLA_DOUT1_E30_BBA (*(volatile unsigned long *) 0x420B13B8)
#define PLA_DOUT1_E30_MSK (0x1 << 14 )
#define PLA_DOUT1_E30 (0x1 << 14 )
#define PLA_DOUT1_E30_CLR (0x0 << 14 )
#define PLA_DOUT1_E30_SET (0x1 << 14 )
/* PLA_DOUT1[E29] - Output bit from Element 29 */
#define PLA_DOUT1_E29_BBA (*(volatile unsigned long *) 0x420B13B4)
#define PLA_DOUT1_E29_MSK (0x1 << 13 )
#define PLA_DOUT1_E29 (0x1 << 13 )
#define PLA_DOUT1_E29_CLR (0x0 << 13 )
#define PLA_DOUT1_E29_SET (0x1 << 13 )
/* PLA_DOUT1[E28] - Output bit from Element 28 */
#define PLA_DOUT1_E28_BBA (*(volatile unsigned long *) 0x420B13B0)
#define PLA_DOUT1_E28_MSK (0x1 << 12 )
#define PLA_DOUT1_E28 (0x1 << 12 )
#define PLA_DOUT1_E28_CLR (0x0 << 12 )
#define PLA_DOUT1_E28_SET (0x1 << 12 )
/* PLA_DOUT1[E27] - Output bit from Element 27 */
#define PLA_DOUT1_E27_BBA (*(volatile unsigned long *) 0x420B13AC)
#define PLA_DOUT1_E27_MSK (0x1 << 11 )
#define PLA_DOUT1_E27 (0x1 << 11 )
#define PLA_DOUT1_E27_CLR (0x0 << 11 )
#define PLA_DOUT1_E27_SET (0x1 << 11 )
/* PLA_DOUT1[E26] - Output bit from Element 26 */
#define PLA_DOUT1_E26_BBA (*(volatile unsigned long *) 0x420B13A8)
#define PLA_DOUT1_E26_MSK (0x1 << 10 )
#define PLA_DOUT1_E26 (0x1 << 10 )
#define PLA_DOUT1_E26_CLR (0x0 << 10 )
#define PLA_DOUT1_E26_SET (0x1 << 10 )
/* PLA_DOUT1[E25] - Output bit from Element 25 */
#define PLA_DOUT1_E25_BBA (*(volatile unsigned long *) 0x420B13A4)
#define PLA_DOUT1_E25_MSK (0x1 << 9 )
#define PLA_DOUT1_E25 (0x1 << 9 )
#define PLA_DOUT1_E25_CLR (0x0 << 9 )
#define PLA_DOUT1_E25_SET (0x1 << 9 )
/* PLA_DOUT1[E24] - Output bit from Element 24 */
#define PLA_DOUT1_E24_BBA (*(volatile unsigned long *) 0x420B13A0)
#define PLA_DOUT1_E24_MSK (0x1 << 8 )
#define PLA_DOUT1_E24 (0x1 << 8 )
#define PLA_DOUT1_E24_CLR (0x0 << 8 )
#define PLA_DOUT1_E24_SET (0x1 << 8 )
/* PLA_DOUT1[E23] - Output bit from Element 23 */
#define PLA_DOUT1_E23_BBA (*(volatile unsigned long *) 0x420B139C)
#define PLA_DOUT1_E23_MSK (0x1 << 7 )
#define PLA_DOUT1_E23 (0x1 << 7 )
#define PLA_DOUT1_E23_CLR (0x0 << 7 )
#define PLA_DOUT1_E23_SET (0x1 << 7 )
/* PLA_DOUT1[E22] - Output bit from Element 22 */
#define PLA_DOUT1_E22_BBA (*(volatile unsigned long *) 0x420B1398)
#define PLA_DOUT1_E22_MSK (0x1 << 6 )
#define PLA_DOUT1_E22 (0x1 << 6 )
#define PLA_DOUT1_E22_CLR (0x0 << 6 )
#define PLA_DOUT1_E22_SET (0x1 << 6 )
/* PLA_DOUT1[E21] - Output bit from Element 21 */
#define PLA_DOUT1_E21_BBA (*(volatile unsigned long *) 0x420B1394)
#define PLA_DOUT1_E21_MSK (0x1 << 5 )
#define PLA_DOUT1_E21 (0x1 << 5 )
#define PLA_DOUT1_E21_CLR (0x0 << 5 )
#define PLA_DOUT1_E21_SET (0x1 << 5 )
/* PLA_DOUT1[E20] - Output bit from Element 20 */
#define PLA_DOUT1_E20_BBA (*(volatile unsigned long *) 0x420B1390)
#define PLA_DOUT1_E20_MSK (0x1 << 4 )
#define PLA_DOUT1_E20 (0x1 << 4 )
#define PLA_DOUT1_E20_CLR (0x0 << 4 )
#define PLA_DOUT1_E20_SET (0x1 << 4 )
/* PLA_DOUT1[E19] - Output bit from Element 19 */
#define PLA_DOUT1_E19_BBA (*(volatile unsigned long *) 0x420B138C)
#define PLA_DOUT1_E19_MSK (0x1 << 3 )
#define PLA_DOUT1_E19 (0x1 << 3 )
#define PLA_DOUT1_E19_CLR (0x0 << 3 )
#define PLA_DOUT1_E19_SET (0x1 << 3 )
/* PLA_DOUT1[E18] - Output bit from Element 18 */
#define PLA_DOUT1_E18_BBA (*(volatile unsigned long *) 0x420B1388)
#define PLA_DOUT1_E18_MSK (0x1 << 2 )
#define PLA_DOUT1_E18 (0x1 << 2 )
#define PLA_DOUT1_E18_CLR (0x0 << 2 )
#define PLA_DOUT1_E18_SET (0x1 << 2 )
/* PLA_DOUT1[E17] - Output bit from Element 17 */
#define PLA_DOUT1_E17_BBA (*(volatile unsigned long *) 0x420B1384)
#define PLA_DOUT1_E17_MSK (0x1 << 1 )
#define PLA_DOUT1_E17 (0x1 << 1 )
#define PLA_DOUT1_E17_CLR (0x0 << 1 )
#define PLA_DOUT1_E17_SET (0x1 << 1 )
/* PLA_DOUT1[E16] - Output bit from Element 16 */
#define PLA_DOUT1_E16_BBA (*(volatile unsigned long *) 0x420B1380)
#define PLA_DOUT1_E16_MSK (0x1 << 0 )
#define PLA_DOUT1_E16 (0x1 << 0 )
#define PLA_DOUT1_E16_CLR (0x0 << 0 )
#define PLA_DOUT1_E16_SET (0x1 << 0 )
/* Reset Value for PLA_LCK*/
#define PLA_LCK_RVAL 0x0
/* PLA_LCK[LOCK] - Set to disable writing to registers */
#define PLA_LCK_LOCK_BBA (*(volatile unsigned long *) 0x420B1400)
#define PLA_LCK_LOCK_MSK (0x1 << 0 )
#define PLA_LCK_LOCK (0x1 << 0 )
#define PLA_LCK_LOCK_DIS (0x0 << 0 ) /* Writing to registers allowed */
#define PLA_LCK_LOCK_EN (0x1 << 0 ) /* Writing to registers disabled */
// ------------------------------------------------------------------------------------------------
// ----- dma -----
// ------------------------------------------------------------------------------------------------
/**
* @brief dma (pADI_DMA)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_DMA Structure */
__IO uint32_t DMASTA; /*!< DMA Status */
__IO uint32_t DMACFG; /*!< DMA Configuration */
__IO uint32_t DMAPDBPTR; /*!< DMA channel primary control data base pointer */
__IO uint32_t DMAADBPTR; /*!< DMA channel alternate control data base pointer */
__I uint32_t RESERVED0;
__IO uint32_t DMASWREQ; /*!< DMA channel software request */
__I uint32_t RESERVED1[2];
__IO uint32_t DMARMSKSET; /*!< DMA channel request mask set */
__IO uint32_t DMARMSKCLR; /*!< DMA channel request mask clear */
__IO uint32_t DMAENSET; /*!< DMA channel enable set */
__IO uint32_t DMAENCLR; /*!< DMA channel enable clear */
__IO uint32_t DMAALTSET; /*!< DMA channel primary-alternate set */
__IO uint32_t DMAALTCLR; /*!< DMA channel primary-alternate clear */
__IO uint32_t DMAPRISET; /*!< DMA channel priority set */
__IO uint32_t DMAPRICLR; /*!< DMA channel priority clear */
__I uint32_t RESERVED2[3];
__IO uint32_t DMAERRCLR; /*!< DMA Per Channel Bus Error */
__I uint32_t RESERVED3[492];
__IO uint32_t DMABSSET; /*!< DMA channel bytes swap enable set */
__IO uint32_t DMABSCLR; /*!< DMA channel bytes swap enable clear */
} ADI_DMA_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define DMASTA (*(volatile unsigned long *) 0x40010000)
#define DMACFG (*(volatile unsigned long *) 0x40010004)
#define DMAPDBPTR (*(volatile unsigned long *) 0x40010008)
#define DMAADBPTR (*(volatile unsigned long *) 0x4001000C)
#define DMASWREQ (*(volatile unsigned long *) 0x40010014)
#define DMARMSKSET (*(volatile unsigned long *) 0x40010020)
#define DMARMSKCLR (*(volatile unsigned long *) 0x40010024)
#define DMAENSET (*(volatile unsigned long *) 0x40010028)
#define DMAENCLR (*(volatile unsigned long *) 0x4001002C)
#define DMAALTSET (*(volatile unsigned long *) 0x40010030)
#define DMAALTCLR (*(volatile unsigned long *) 0x40010034)
#define DMAPRISET (*(volatile unsigned long *) 0x40010038)
#define DMAPRICLR (*(volatile unsigned long *) 0x4001003C)
#define DMAERRCLR (*(volatile unsigned long *) 0x4001004C)
#define DMABSSET (*(volatile unsigned long *) 0x40010800)
#define DMABSCLR (*(volatile unsigned long *) 0x40010804)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for DMASTA*/
#define DMASTA_RVAL 0xF0000
/* DMASTA[CHNLSM1] - Number of available DMA channels minus 1 */
#define DMASTA_CHNLSM1_MSK (0x1F << 16 )
/* DMASTA[STATE] - Current state of DMA controller */
#define DMASTA_STATE_MSK (0xF << 4 )
/* DMASTA[MENABLE] - Enable status of the controller */
#define DMASTA_MENABLE_BBA (*(volatile unsigned long *) 0x42200000)
#define DMASTA_MENABLE_MSK (0x1 << 0 )
#define DMASTA_MENABLE (0x1 << 0 )
/* Reset Value for DMACFG*/
#define DMACFG_RVAL 0x0
/* DMACFG[MENABLE] - Controller enable */
#define DMACFG_MENABLE_BBA (*(volatile unsigned long *) 0x42200080)
#define DMACFG_MENABLE_MSK (0x1 << 0 )
#define DMACFG_MENABLE (0x1 << 0 )
/* Reset Value for DMAPDBPTR*/
#define DMAPDBPTR_RVAL 0x0
/* DMAPDBPTR[CTRLBASEPTR] - Pointer to the base address of the primary data structure */
#define DMAPDBPTR_CTRLBASEPTR_MSK (0xFFFFFFFF << 0 )
/* Reset Value for DMAADBPTR*/
#define DMAADBPTR_RVAL 0x100
/* DMAADBPTR[ALTCBPTR] - Base address of the alternate data structure */
#define DMAADBPTR_ALTCBPTR_MSK (0xFFFFFFFF << 0 )
/* Reset Value for DMASWREQ*/
#define DMASWREQ_RVAL 0x0
/* DMASWREQ[CHSWREQ] - Generate software request */
#define DMASWREQ_CHSWREQ_MSK (0x3FFF << 0 )
/* Reset Value for DMARMSKSET*/
#define DMARMSKSET_RVAL 0x0
/* DMARMSKSET[CHREQMSET] - Mask requests from DMA channels */
#define DMARMSKSET_CHREQMSET_MSK (0x3FFF << 0 )
/* Reset Value for DMARMSKCLR*/
#define DMARMSKCLR_RVAL 0x0
/* DMARMSKCLR[CHREQMCLR] - Clear REQ_MASK_SET bits in DMARMSKSET */
#define DMARMSKCLR_CHREQMCLR_MSK (0x3FFF << 0 )
/* Reset Value for DMAENSET*/
#define DMAENSET_RVAL 0x0
/* DMAENSET[CHENSET] - Enable DMA channels */
#define DMAENSET_CHENSET_MSK (0x3FFF << 0 )
/* Reset Value for DMAENCLR*/
#define DMAENCLR_RVAL 0x0
/* DMAENCLR[CHENCLR] - Disable DMA channels */
#define DMAENCLR_CHENCLR_MSK (0x3FFF << 0 )
/* Reset Value for DMAALTSET*/
#define DMAALTSET_RVAL 0x0
/* DMAALTSET[CHPRIALTSET] - Control struct status / select alt struct */
#define DMAALTSET_CHPRIALTSET_MSK (0x3FFF << 0 )
/* Reset Value for DMAALTCLR*/
#define DMAALTCLR_RVAL 0x0
/* DMAALTCLR[CHPRIALTCLR] - Select primary data struct */
#define DMAALTCLR_CHPRIALTCLR_MSK (0x3FFF << 0 )
/* Reset Value for DMAPRISET*/
#define DMAPRISET_RVAL 0x0
/* DMAPRISET[CHPRISET] - Configure channel for high priority */
#define DMAPRISET_CHPRISET_MSK (0x3FFF << 0 )
/* Reset Value for DMAPRICLR*/
#define DMAPRICLR_RVAL 0x0
/* DMAPRICLR[CHPRICLR] - Configure channel for default priority level */
#define DMAPRICLR_CHPRICLR_MSK (0x3FFF << 0 )
/* Reset Value for DMAERRCLR*/
#define DMAERRCLR_RVAL 0x0
/* DMAERRCLR[ERRCLR] - Bus error status */
#define DMAERRCLR_ERRCLR_MSK (0x3FFF << 0 )
/* Reset Value for DMABSSET*/
#define DMABSSET_RVAL 0x0
/* DMABSSET[CHBSWAPSET] - Byte swap status */
#define DMABSSET_CHBSWAPSET_MSK (0x3FFF << 0 )
/* Reset Value for DMABSCLR*/
#define DMABSCLR_RVAL 0x0
/* DMABSCLR[CHBSWAPCLR] - Disable byte swap */
#define DMABSCLR_CHBSWAPCLR_MSK (0x3FFF << 0 )
// ------------------------------------------------------------------------------------------------
// ----- FEE -----
// ------------------------------------------------------------------------------------------------
/**
* @brief FEE (pADI_FEE)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_FEE Structure */
__IO uint32_t FEESTA; /*!< Status register */
__IO uint32_t FEECON0; /*!< Command Control register: interrupt enable register */
__IO uint32_t FEECMD; /*!< Command register */
__IO uint32_t FEEFLADR; /*!< Flash address key - hole register */
__IO uint32_t FEEFLDATA0; /*!< Flash Data register: key-hole interface lower 32 bits */
__IO uint32_t FEEFLDATA1; /*!< Flash Data register: key-hole interface upper 32 bits */
__IO uint32_t FEEADR0; /*!< Lower page address register */
__IO uint32_t FEEADR1; /*!< Upper page address register */
__IO uint32_t FEEKEY; /*!< Flash Key register. */
__I uint32_t RESERVED0;
__IO uint32_t FEEPRO0; /*!< write protection register for flash0 */
__IO uint32_t FEEPRO1; /*!< write protection register for flash1 */
__I uint32_t RESERVED1;
__IO uint32_t FEESIG; /*!< Flash Signature */
__IO uint32_t FEECON1; /*!< User Setup register */
__I uint32_t RESERVED2;
__IO uint32_t FEEWRADDRA; /*!< write abort address register */
__I uint32_t RESERVED3;
__IO uint32_t FEEAEN0; /*!< Interrupt abort enable register. Interrupt 31 to Interrupt 0. */
__IO uint32_t FEEAEN1; /*!< Interrupt abort enable register. Interrupt 54 to Interrupt 32. */
__I uint32_t RESERVED4[28];
__IO uint32_t CACHESTAT; /*!< Cache Status register */
__IO uint32_t CACHESETUP; /*!< Cache Setup register */
__IO uint32_t CACHEKEY; /*!< Cache Key register */
} ADI_FEE_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define FEESTA (*(volatile unsigned long *) 0x40018000)
#define FEECON0 (*(volatile unsigned long *) 0x40018004)
#define FEECMD (*(volatile unsigned long *) 0x40018008)
#define FEEFLADR (*(volatile unsigned long *) 0x4001800C)
#define FEEFLDATA0 (*(volatile unsigned long *) 0x40018010)
#define FEEFLDATA1 (*(volatile unsigned long *) 0x40018014)
#define FEEADR0 (*(volatile unsigned long *) 0x40018018)
#define FEEADR1 (*(volatile unsigned long *) 0x4001801C)
#define FEEKEY (*(volatile unsigned long *) 0x40018020)
#define FEEPRO0 (*(volatile unsigned long *) 0x40018028)
#define FEEPRO1 (*(volatile unsigned long *) 0x4001802C)
#define FEESIG (*(volatile unsigned long *) 0x40018034)
#define FEECON1 (*(volatile unsigned long *) 0x40018038)
#define FEEWRADDRA (*(volatile unsigned long *) 0x40018040)
#define FEEAEN0 (*(volatile unsigned long *) 0x40018048)
#define FEEAEN1 (*(volatile unsigned long *) 0x4001804C)
#define CACHESTAT (*(volatile unsigned long *) 0x400180C0)
#define CACHESETUP (*(volatile unsigned long *) 0x400180C4)
#define CACHEKEY (*(volatile unsigned long *) 0x400180C8)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for FEESTA*/
#define FEESTA_RVAL 0x0
/* FEESTA[INIT] - Initialization upload in progress. */
#define FEESTA_INIT_BBA (*(volatile unsigned long *) 0x42300038)
#define FEESTA_INIT_MSK (0x1 << 14 )
#define FEESTA_INIT (0x1 << 14 )
#define FEESTA_INIT_CLR (0x0 << 14 )
#define FEESTA_INIT_SET (0x1 << 14 )
/* FEESTA[SIGNERR] - Information space signature check on reset error. */
#define FEESTA_SIGNERR_BBA (*(volatile unsigned long *) 0x42300034)
#define FEESTA_SIGNERR_MSK (0x1 << 13 )
#define FEESTA_SIGNERR (0x1 << 13 )
#define FEESTA_SIGNERR_CLR (0x0 << 13 )
#define FEESTA_SIGNERR_SET (0x1 << 13 )
/* FEESTA[CMDRES] - These two bits indicate the status of a command on completion or the status of a write. */
#define FEESTA_CMDRES_MSK (0x3 << 4 )
#define FEESTA_CMDRES_SUCCESS (0x0 << 4 ) /* Successful completion of a command or a write */
#define FEESTA_CMDRES_IGNORED (0x1 << 4 ) /* Attempted signcheck, write or erase of a protected location. */
#define FEESTA_CMDRES_READERROR (0x2 << 4 ) /* Read verify error. After an erase the controller reads the corresponding word(s) to verify that the transaction completed successfully. If data read is not all 'F's this is the resulting status.If the Sign command is executed and the resulting signature does not match the data in the upper 4 bytes of the upper page in a block then this is the resulting status. */
#define FEESTA_CMDRES_ABORTED (0x3 << 4 ) /* Indicates that a command or a write was aborted by an abort command or a system interrupt has caused an abort */
/* FEESTA[WRALMOSTDONE] - Write almost Complete - key-hole registers open for access. This bit flags the earliest point at which the flash controller data and address may be updated for the next command without affecting an active flash command operation. */
#define FEESTA_WRALMOSTDONE_BBA (*(volatile unsigned long *) 0x4230000C)
#define FEESTA_WRALMOSTDONE_MSK (0x1 << 3 )
#define FEESTA_WRALMOSTDONE (0x1 << 3 )
#define FEESTA_WRALMOSTDONE_CLR (0x0 << 3 ) /* Cleared to 0 when read */
#define FEESTA_WRALMOSTDONE_SET (0x1 << 3 ) /* Set to 1 when a write completes */
/* FEESTA[CMDDONE] - This bit asserts when a command completes. */
#define FEESTA_CMDDONE_BBA (*(volatile unsigned long *) 0x42300008)
#define FEESTA_CMDDONE_MSK (0x1 << 2 )
#define FEESTA_CMDDONE (0x1 << 2 )
#define FEESTA_CMDDONE_CLR (0x0 << 2 ) /* Cleared to 0 when read */
#define FEESTA_CMDDONE_SET (0x1 << 2 ) /* Set to 1 when a command completes */
/* FEESTA[WRCLOSE] - This bit is asserted when the user has written all key-hole registers for flash write and the controller has started the write. */
#define FEESTA_WRCLOSE_BBA (*(volatile unsigned long *) 0x42300004)
#define FEESTA_WRCLOSE_MSK (0x1 << 1 )
#define FEESTA_WRCLOSE (0x1 << 1 )
#define FEESTA_WRCLOSE_CLR (0x0 << 1 )
#define FEESTA_WRCLOSE_SET (0x1 << 1 )
/* FEESTA[CMDBUSY] - Command busy. */
#define FEESTA_CMDBUSY_BBA (*(volatile unsigned long *) 0x42300000)
#define FEESTA_CMDBUSY_MSK (0x1 << 0 )
#define FEESTA_CMDBUSY (0x1 << 0 )
#define FEESTA_CMDBUSY_CLR (0x0 << 0 )
#define FEESTA_CMDBUSY_SET (0x1 << 0 )
/* Reset Value for FEECON0*/
#define FEECON0_RVAL 0x0
/* FEECON0[IENERR] - Command fail interrupt enable */
#define FEECON0_IENERR_BBA (*(volatile unsigned long *) 0x42300088)
#define FEECON0_IENERR_MSK (0x1 << 2 )
#define FEECON0_IENERR (0x1 << 2 )
#define FEECON0_IENERR_DIS (0x0 << 2 ) /* Disable */
#define FEECON0_IENERR_EN (0x1 << 2 ) /* Enable */
/* FEECON0[IWRALCOMP] - Write almost complete interrupt enable */
#define FEECON0_IWRALCOMP_BBA (*(volatile unsigned long *) 0x42300084)
#define FEECON0_IWRALCOMP_MSK (0x1 << 1 )
#define FEECON0_IWRALCOMP (0x1 << 1 )
#define FEECON0_IWRALCOMP_DIS (0x0 << 1 ) /* Disable */
#define FEECON0_IWRALCOMP_EN (0x1 << 1 ) /* Enable */
/* FEECON0[IENCMD] - Command complete interrupt enable */
#define FEECON0_IENCMD_BBA (*(volatile unsigned long *) 0x42300080)
#define FEECON0_IENCMD_MSK (0x1 << 0 )
#define FEECON0_IENCMD (0x1 << 0 )
#define FEECON0_IENCMD_DIS (0x0 << 0 ) /* Disable */
#define FEECON0_IENCMD_EN (0x1 << 0 ) /* Enable */
/* Reset Value for FEECMD*/
#define FEECMD_RVAL 0x0
/* FEECMD[CMD] - Commands */
#define FEECMD_CMD_MSK (0x1F << 0 )
#define FEECMD_CMD_IDLE (0x0 << 0 ) /* IDLE. No command executed. */
#define FEECMD_CMD_PAGEERASE (0x1 << 0 ) /* PAGEERASE. Write the address of the page to be erased to the FEEADR0 register, then write this code to the FEECMD and the flash will erase the page. When the erase has completed the flash will read every location in the page to verify all words in the page are erased. If there is a read verify error this will be indicated in the Status register. To erase multiple pages wait until a previous page erase has completed - check the status then issue a command to start the next page erase. Before entering this command 0xF123F456 must first be written to the FEEKEY register. */
#define FEECMD_CMD_SIGN (0x2 << 0 ) /* SIGN. Use this command to generate a signature for a block of data. The signature is generated on a page by page basis. To generate a signature the address of the first page of the block is entered in the FEEADR0 register, the address of the last page is written to the FEEADR1 register, then write this code to the FEECMD register. When the command has completed the signature is available for reading in the Sign register. The last 4 bytes of the last page in a block is reserved for storing the signature. Before entering this command 0xF123F456 must first be written to the FEEKEY register. */
#define FEECMD_CMD_WRITE (0x4 << 0 ) /* WRITE. Use this command to write to flash locations. This command needs a UserKey for writing into write protection location and userfaakey location. No key is required for other flash locations. This command takes the address, data from FEEADR, FEEFLDATA key-hole registers. */
#define FEECMD_CMD_MASSERASE0 (0x5 << 0 ) /* MASSERASE0. Erase all of flash0 user space. To enable this operation 0xF123F456 must first be written to the FEEKEY register (this is to prevent accidental erases). When the mass erase has completed the controller will read every location to verify that all locations are 0xFFFFFFFFFFFFFFFF. If there is a read verify error this will be indicated in the Status register. */
#define FEECMD_CMD_MASSERASE1 (0x6 << 0 ) /* MASSERASE1. Erase all of flash1 user space. To enable this operation 0xF123F456 must first be written to the FEEKEY register (this is to prevent accidental erases). When the mass erase has completed the controller will read every location to verify that all locations are 0xFFFFFFFFFFFFFFFF. If there is a read verify error this will be indicated in the Status register. */
#define FEECMD_CMD_ABORT (0x8 << 0 ) /* ABORT. If this command is issued then any command currently in progress will be stopped. The status will indicate command completed with an error status (FEESTA[5:4] = 0x3). Note that this is the only command that can be issued while another command is already in progress. This command can also be used to stop a write that may be in progress. If a write or erase is aborted then the flash timing will be violated and it is not possible to determine if the write or erase completed successfully. To enable this operation 0xF123F456 must first be written to the FEEKEY register (this is to prevent accidental aborts). */
/* Reset Value for FEEFLADR*/
#define FEEFLADR_RVAL 0x0
/* FEEFLADR[FLAddr] - Memory mapped address for the flash location */
#define FEEFLADR_FLAddr_MSK (0xFFFF << 3 )
/* Reset Value for FEEFLDATA0*/
#define FEEFLDATA0_RVAL 0x0
/* FEEFLDATA0[FLDATA0] - FLDATA0 forms the lower 32 bit of 64 bit data to be written to flash */
#define FEEFLDATA0_FLDATA0_MSK (0xFFFFFFFF << 0 )
/* Reset Value for FEEFLDATA1*/
#define FEEFLDATA1_RVAL 0x0
/* FEEFLDATA1[FLDATA1] - FLDATA1 forms the upper 32 bit of 64 bit data to be written to flash */
#define FEEFLDATA1_FLDATA1_MSK (0xFFFFFFFF << 0 )
/* Reset Value for FEEADR0*/
#define FEEADR0_RVAL 0x0
/* FEEADR0[PageAddr0] - Used by SIGN and PAGEERASE commands for specifying page address. See the description of these commands in FEECMD */
#define FEEADR0_PageAddr0_MSK (0xFF << 11 )
/* Reset Value for FEEADR1*/
#define FEEADR1_RVAL 0x0
/* FEEADR1[PageAddr1] - Used by SIGN command for specifying the end page address. See description of this command in FEECMD */
#define FEEADR1_PageAddr1_MSK (0xFF << 11 )
/* Reset Value for FEEKEY*/
#define FEEKEY_RVAL 0x0
/* FEEKEY[KEY] - Enter 0xF123F456 to allow key protected operations. Returns 0x0 if read. */
#define FEEKEY_KEY_MSK (0xFFFFFFFF << 0 )
/* Reset Value for FEEPRO0*/
#define FEEPRO0_RVAL 0xFFFFFFFF
/* FEEPRO0[WrProt0] - Write protection for flash0 - 32 bits. */
#define FEEPRO0_WrProt0_MSK (0xFFFFFFFF << 0 )
/* Reset Value for FEEPRO1*/
#define FEEPRO1_RVAL 0xFFFFFFFF
/* FEEPRO1[WrProt1] - Write protection for flash1 - 32 bits. */
#define FEEPRO1_WrProt1_MSK (0xFFFFFFFF << 0 )
/* Reset Value for FEESIG*/
#define FEESIG_RVAL 0x0
/* FEESIG[SIGN] - 24 bit signature. */
#define FEESIG_SIGN_MSK (0xFFFFFF << 0 )
/* Reset Value for FEECON1*/
#define FEECON1_RVAL 0x1
/* FEECON1[MDIO] - MDIO mode */
#define FEECON1_MDIO_BBA (*(volatile unsigned long *) 0x42300710)
#define FEECON1_MDIO_MSK (0x1 << 4 )
#define FEECON1_MDIO (0x1 << 4 )
#define FEECON1_MDIO_DIS (0x0 << 4 )
#define FEECON1_MDIO_EN (0x1 << 4 )
/* FEECON1[SWAP] - Swap program code for MDIO mode. */
#define FEECON1_SWAP_BBA (*(volatile unsigned long *) 0x4230070C)
#define FEECON1_SWAP_MSK (0x1 << 3 )
#define FEECON1_SWAP (0x1 << 3 )
#define FEECON1_SWAP_DIS (0x0 << 3 )
#define FEECON1_SWAP_EN (0x1 << 3 )
/* FEECON1[INCR] - Auto increment FEEFLAADR for non DMA operation. */
#define FEECON1_INCR_BBA (*(volatile unsigned long *) 0x42300708)
#define FEECON1_INCR_MSK (0x1 << 2 )
#define FEECON1_INCR (0x1 << 2 )
#define FEECON1_INCR_DIS (0x0 << 2 ) /* Disable auto address increment */
#define FEECON1_INCR_EN (0x1 << 2 ) /* Enable auto address increment */
/* FEECON1[KHDMA] - Key-hole DMA enable. */
#define FEECON1_KHDMA_BBA (*(volatile unsigned long *) 0x42300704)
#define FEECON1_KHDMA_MSK (0x1 << 1 )
#define FEECON1_KHDMA (0x1 << 1 )
#define FEECON1_KHDMA_DIS (0x0 << 1 ) /* Disable DMA mode */
#define FEECON1_KHDMA_EN (0x1 << 1 ) /* Enable DMA mode */
/* FEECON1[DBG] - JTAG debug enable */
#define FEECON1_DBG_BBA (*(volatile unsigned long *) 0x42300700)
#define FEECON1_DBG_MSK (0x1 << 0 )
#define FEECON1_DBG (0x1 << 0 )
#define FEECON1_DBG_DIS (0x0 << 0 ) /* Disable JTAG access */
#define FEECON1_DBG_EN (0x1 << 0 ) /* Enable JTAG access */
/* Reset Value for FEEWRADDRA*/
#define FEEWRADDRA_RVAL 0x0
/* FEEWRADDRA[WrAbortAddr] - If a write is aborted then this will contain the address of the location been written when the write was aborted. This register has appropriate value if command abort happened. This has to be read after the command is aborted. And this has to be read before any other command is given. After reset the value will be random. */
#define FEEWRADDRA_WrAbortAddr_MSK (0xFFFFFFFF << 0 )
/* Reset Value for FEEAEN0*/
#define FEEAEN0_RVAL 0x0
/* FEEAEN0[SysIrqAbortEn] - Lower 32 bits of System Interrupt Abort Enable. To allow a system interrupt to abort a command (write, erase, sign or mass verify) then write a '1' to the appropriate bit in this register. */
#define FEEAEN0_SysIrqAbortEn_MSK (0xFFFFFFFF << 0 )
/* Reset Value for FEEAEN1*/
#define FEEAEN1_RVAL 0x0
/* FEEAEN1[SysIrqAbortEn] - Upper 23 bits of System Interrupt Abort Enable. To allow a system interrupt to abort a command (write, erase, sign or mass verify) then write a '1' to the appropriate bit in this register. */
#define FEEAEN1_SysIrqAbortEn_MSK (0x7FFFFF << 0 )
/* Reset Value for CACHESTAT*/
#define CACHESTAT_RVAL 0x2
/* CACHESTAT[DLOCK] - This bit is set when D-Cache is locked and cleared when D-cache is unlocked. */
#define CACHESTAT_DLOCK_BBA (*(volatile unsigned long *) 0x42301848)
#define CACHESTAT_DLOCK_MSK (0x1 << 18 )
#define CACHESTAT_DLOCK (0x1 << 18 )
#define CACHESTAT_DLOCK_CLR (0x0 << 18 )
#define CACHESTAT_DLOCK_SET (0x1 << 18 )
/* CACHESTAT[DEN] - If this bit is set then D-Cache is enabled and when cleared D-Cache is disabled. This is also cleared when CACHESTAT[16] is set. */
#define CACHESTAT_DEN_BBA (*(volatile unsigned long *) 0x42301844)
#define CACHESTAT_DEN_MSK (0x1 << 17 )
#define CACHESTAT_DEN (0x1 << 17 )
#define CACHESTAT_DEN_CLR (0x0 << 17 )
#define CACHESTAT_DEN_SET (0x1 << 17 )
/* CACHESTAT[DINIT] - It is set when D-cache memory initialization starts and clears when initialization is done. D-Cache is disabled when this bit is set. */
#define CACHESTAT_DINIT_BBA (*(volatile unsigned long *) 0x42301840)
#define CACHESTAT_DINIT_MSK (0x1 << 16 )
#define CACHESTAT_DINIT (0x1 << 16 )
#define CACHESTAT_DINIT_CLR (0x0 << 16 )
#define CACHESTAT_DINIT_SET (0x1 << 16 )
/* CACHESTAT[ILOCK] - This bit is set when I-Cache is locked and cleared when I-cache is unlocked. */
#define CACHESTAT_ILOCK_BBA (*(volatile unsigned long *) 0x42301808)
#define CACHESTAT_ILOCK_MSK (0x1 << 2 )
#define CACHESTAT_ILOCK (0x1 << 2 )
#define CACHESTAT_ILOCK_CLR (0x0 << 2 )
#define CACHESTAT_ILOCK_SET (0x1 << 2 )
/* CACHESTAT[IEN] - If this bit is set then I-Cache is enabled and when cleared I-Cache is disabled. This is also cleared when CACHESTAT[0] is set. */
#define CACHESTAT_IEN_BBA (*(volatile unsigned long *) 0x42301804)
#define CACHESTAT_IEN_MSK (0x1 << 1 )
#define CACHESTAT_IEN (0x1 << 1 )
#define CACHESTAT_IEN_CLR (0x0 << 1 )
#define CACHESTAT_IEN_SET (0x1 << 1 )
/* CACHESTAT[IINIT] - It is set when I-cache memory initialization starts and clears when initialization is done. I-Cache is disabled when this bit is set. */
#define CACHESTAT_IINIT_BBA (*(volatile unsigned long *) 0x42301800)
#define CACHESTAT_IINIT_MSK (0x1 << 0 )
#define CACHESTAT_IINIT (0x1 << 0 )
#define CACHESTAT_IINIT_CLR (0x0 << 0 )
#define CACHESTAT_IINIT_SET (0x1 << 0 )
/* Reset Value for CACHESETUP*/
#define CACHESETUP_RVAL 0x2
/* CACHESETUP[DWRBUF] - If this bit is set, then for every AHB access, hit from WrBuffer is not checked. */
#define CACHESETUP_DWRBUF_BBA (*(volatile unsigned long *) 0x423018CC)
#define CACHESETUP_DWRBUF_MSK (0x1 << 19 )
#define CACHESETUP_DWRBUF (0x1 << 19 )
#define CACHESETUP_DWRBUF_EN (0x0 << 19 )
#define CACHESETUP_DWRBUF_DIS (0x1 << 19 )
/* CACHESETUP[DLOCK] - If this bit is set, then D-cache contents are locked. Any new misses will not be replaced in D-Cache. This bit is cleared when CACHESETUP[16] is set. */
#define CACHESETUP_DLOCK_BBA (*(volatile unsigned long *) 0x423018C8)
#define CACHESETUP_DLOCK_MSK (0x1 << 18 )
#define CACHESETUP_DLOCK (0x1 << 18 )
#define CACHESETUP_DLOCK_DIS (0x0 << 18 )
#define CACHESETUP_DLOCK_EN (0x1 << 18 )
/* CACHESETUP[DEN] - If this bit set, then D-Cache is enabled for AHB accesses. If 0, then D-cache is disabled, and all AHB accesses will be via Flash memory. This bit is cleared when CACHESETUP[16] is set. */
#define CACHESETUP_DEN_BBA (*(volatile unsigned long *) 0x423018C4)
#define CACHESETUP_DEN_MSK (0x1 << 17 )
#define CACHESETUP_DEN (0x1 << 17 )
#define CACHESETUP_DEN_DIS (0x0 << 17 )
#define CACHESETUP_DEN_EN (0x1 << 17 )
/* CACHESETUP[DINIT] - If this bit is set then the D-cache contents are initialized to all zeros. This bit will be cleared once the initialization starts. */
#define CACHESETUP_DINIT_BBA (*(volatile unsigned long *) 0x423018C0)
#define CACHESETUP_DINIT_MSK (0x1 << 16 )
#define CACHESETUP_DINIT (0x1 << 16 )
#define CACHESETUP_DINIT_DIS (0x0 << 16 )
#define CACHESETUP_DINIT_EN (0x1 << 16 )
/* CACHESETUP[IRDBUF] - If this bit is set, then for every AHB access, hit from Read Buffer is not checked. */
#define CACHESETUP_IRDBUF_BBA (*(volatile unsigned long *) 0x42301890)
#define CACHESETUP_IRDBUF_MSK (0x1 << 4 )
#define CACHESETUP_IRDBUF (0x1 << 4 )
#define CACHESETUP_IRDBUF_EN (0x0 << 4 )
#define CACHESETUP_IRDBUF_DIS (0x1 << 4 )
/* CACHESETUP[IWRBUF] - If this bit is set, then for every AHB access, hit from Write Buffer is not checked. */
#define CACHESETUP_IWRBUF_BBA (*(volatile unsigned long *) 0x4230188C)
#define CACHESETUP_IWRBUF_MSK (0x1 << 3 )
#define CACHESETUP_IWRBUF (0x1 << 3 )
#define CACHESETUP_IWRBUF_EN (0x0 << 3 )
#define CACHESETUP_IWRBUF_DIS (0x1 << 3 )
/* CACHESETUP[ILOCK] - If this bit is set, then I-cache contents are locked. Any new misses won�t be replaced in I-Cache. This bit is cleared when CACHESETUP[0] is set. */
#define CACHESETUP_ILOCK_BBA (*(volatile unsigned long *) 0x42301888)
#define CACHESETUP_ILOCK_MSK (0x1 << 2 )
#define CACHESETUP_ILOCK (0x1 << 2 )
#define CACHESETUP_ILOCK_DIS (0x0 << 2 )
#define CACHESETUP_ILOCK_EN (0x1 << 2 )
/* CACHESETUP[IEN] - If this bit set, then I-Cache is enabled for AHB accesses. If 0, then I-cache is disabled, and all AHB accesses will be via Flash memory. This bit is cleared when CACHESETUP[0] is set. */
#define CACHESETUP_IEN_BBA (*(volatile unsigned long *) 0x42301884)
#define CACHESETUP_IEN_MSK (0x1 << 1 )
#define CACHESETUP_IEN (0x1 << 1 )
#define CACHESETUP_IEN_DIS (0x0 << 1 )
#define CACHESETUP_IEN_EN (0x1 << 1 )
/* CACHESETUP[IINIT] - If this bit is set then the I-cache contents are initialized to all zeros. This bit will be cleared once the initialization starts. */
#define CACHESETUP_IINIT_BBA (*(volatile unsigned long *) 0x42301880)
#define CACHESETUP_IINIT_MSK (0x1 << 0 )
#define CACHESETUP_IINIT (0x1 << 0 )
#define CACHESETUP_IINIT_DIS (0x0 << 0 )
#define CACHESETUP_IINIT_EN (0x1 << 0 )
/* Reset Value for CACHEKEY*/
#define CACHEKEY_RVAL 0x0
/* CACHEKEY[Key] - Cache Key register */
#define CACHEKEY_Key_MSK (0xFFFFFFFF << 0 )
// ------------------------------------------------------------------------------------------------
// ----- GPIO -----
// ------------------------------------------------------------------------------------------------
/**
* @brief gpio (pADI_GP0)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_GP0 Structure */
__IO uint16_t GPCON; /*!< GPIO Port 0 configuration */
__I uint16_t RESERVED0;
__IO uint8_t GPOE; /*!< GPIO Port 0 output enable */
__I uint8_t RESERVED1[3];
__IO uint8_t GPPUL; /*!< GPIO Port 0 pullup enable */
__I uint8_t RESERVED2[3];
__IO uint8_t GPIE; /*!< GPIO Port 0 input path enable */
__I uint8_t RESERVED3[3];
__IO uint8_t GPIN; /*!< GPIO Port 0 registered data input */
__I uint8_t RESERVED4[3];
__IO uint8_t GPOUT; /*!< GPIO Port 0 data output */
__I uint8_t RESERVED5[3];
__IO uint8_t GPSET; /*!< GPIO Port 0 data out set */
__I uint8_t RESERVED6[3];
__IO uint8_t GPCLR; /*!< GPIO Port 0 data out clear */
__I uint8_t RESERVED7[3];
__IO uint8_t GPTGL; /*!< GPIO Port 0 pin toggle */
__I uint8_t RESERVED8[3];
__IO uint8_t GPODE; /*!< GPIO Port 0 open drain enable */
} ADI_GPIO_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define GP0CON (*(volatile unsigned short int *) 0x40020000)
#define GP0OE (*(volatile unsigned char *) 0x40020004)
#define GP0PUL (*(volatile unsigned char *) 0x40020008)
#define GP0IE (*(volatile unsigned char *) 0x4002000C)
#define GP0IN (*(volatile unsigned char *) 0x40020010)
#define GP0OUT (*(volatile unsigned char *) 0x40020014)
#define GP0SET (*(volatile unsigned char *) 0x40020018)
#define GP0CLR (*(volatile unsigned char *) 0x4002001C)
#define GP0TGL (*(volatile unsigned char *) 0x40020020)
#define GP0ODE (*(volatile unsigned char *) 0x40020024)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for GP0CON*/
#define GP0CON_RVAL 0x0
/* GP0CON[CON7] - p0.7 configuration bits */
#define GP0CON_CON7_MSK (0x3 << 14 )
#define GP0CON_CON7_GPIO (0x0 << 14 ) /* GPIO */
#define GP0CON_CON7_I2C1SDA (0x1 << 14 ) /* I2C1 SDA */
#define GP0CON_CON7_PLAO3 (0x3 << 14 ) /* PLAO[3] */
/* GP0CON[CON6] - p0.6 configuration bits */
#define GP0CON_CON6_MSK (0x3 << 12 )
#define GP0CON_CON6_GPIO (0x0 << 12 ) /* GPIO */
#define GP0CON_CON6_I2C1SCL (0x1 << 12 ) /* I2C1 SCL */
#define GP0CON_CON6_PLAO2 (0x3 << 12 ) /* PLAO[2] */
/* GP0CON[CON5] - p0.5 configuration bits */
#define GP0CON_CON5_MSK (0x3 << 10 )
#define GP0CON_CON5_GPIO (0x0 << 10 ) /* GPIO */
#define GP0CON_CON5_I2C0SDA (0x1 << 10 ) /* I2C0 SDA */
#define GP0CON_CON5_PLAO1 (0x3 << 10 ) /* PLAO[1] */
/* GP0CON[CON4] - p0.4 configuration bits */
#define GP0CON_CON4_MSK (0x3 << 8 )
#define GP0CON_CON4_GPIO (0x0 << 8 ) /* GPIO */
#define GP0CON_CON4_I2CSCL (0x1 << 8 ) /* I2C0 SCL */
#define GP0CON_CON4_PLAO0 (0x3 << 8 ) /* PLAO[0] */
/* GP0CON[CON3] - p0.3 configuration bits */
#define GP0CON_CON3_MSK (0x3 << 6 )
#define GP0CON_CON3_GPIOIRQ0 (0x0 << 6 ) /* GPIO/IRQ0 */
#define GP0CON_CON3_SPI0CS (0x1 << 6 ) /* SPI0 CS */
#define GP0CON_CON3_PLACLK0 (0x2 << 6 ) /* PLA CLK0 */
#define GP0CON_CON3_PLAI3 (0x3 << 6 ) /* PLAI[3] */
/* GP0CON[CON2] - p0.2 configuration bits */
#define GP0CON_CON2_MSK (0x3 << 4 )
#define GP0CON_CON2_GPIO (0x0 << 4 ) /* GPIO */
#define GP0CON_CON2_SPI0MOSI (0x1 << 4 ) /* SPI0 MOSI */
#define GP0CON_CON2_PLAI2 (0x3 << 4 ) /* PLAI[2] */
/* GP0CON[CON1] - p0.1 configuration bits */
#define GP0CON_CON1_MSK (0x3 << 2 )
#define GP0CON_CON1_GPIO (0x0 << 2 ) /* GPIO */
#define GP0CON_CON1_SIP0MISO (0x1 << 2 ) /* SPI0 MISO */
#define GP0CON_CON1_PLAI1 (0x3 << 2 ) /* PLAI[1] */
/* GP0CON[CON0] - p0.0 configuration bits */
#define GP0CON_CON0_MSK (0x3 << 0 )
#define GP0CON_CON0_GPIO (0x0 << 0 ) /* GPIO */
#define GP0CON_CON0_SPI0SCLK (0x1 << 0 ) /* SPI0 SCLK */
#define GP0CON_CON0_PLAI0 (0x3 << 0 ) /* PLAI[0] */
/* Reset Value for GP0OE*/
#define GP0OE_RVAL 0x0
/* GP0OE[OE7] - Pin output drive enable */
#define GP0OE_OE7_BBA (*(volatile unsigned long *) 0x4240009C)
#define GP0OE_OE7_MSK (0x1 << 7 )
#define GP0OE_OE7 (0x1 << 7 )
#define GP0OE_OE7_DIS (0x0 << 7 )
#define GP0OE_OE7_EN (0x1 << 7 )
/* GP0OE[OE6] - Pin output drive enable */
#define GP0OE_OE6_BBA (*(volatile unsigned long *) 0x42400098)
#define GP0OE_OE6_MSK (0x1 << 6 )
#define GP0OE_OE6 (0x1 << 6 )
#define GP0OE_OE6_DIS (0x0 << 6 )
#define GP0OE_OE6_EN (0x1 << 6 )
/* GP0OE[OE5] - Pin output drive enable */
#define GP0OE_OE5_BBA (*(volatile unsigned long *) 0x42400094)
#define GP0OE_OE5_MSK (0x1 << 5 )
#define GP0OE_OE5 (0x1 << 5 )
#define GP0OE_OE5_DIS (0x0 << 5 )
#define GP0OE_OE5_EN (0x1 << 5 )
/* GP0OE[OE4] - Pin output drive enable */
#define GP0OE_OE4_BBA (*(volatile unsigned long *) 0x42400090)
#define GP0OE_OE4_MSK (0x1 << 4 )
#define GP0OE_OE4 (0x1 << 4 )
#define GP0OE_OE4_DIS (0x0 << 4 )
#define GP0OE_OE4_EN (0x1 << 4 )
/* GP0OE[OE3] - Pin output drive enable */
#define GP0OE_OE3_BBA (*(volatile unsigned long *) 0x4240008C)
#define GP0OE_OE3_MSK (0x1 << 3 )
#define GP0OE_OE3 (0x1 << 3 )
#define GP0OE_OE3_DIS (0x0 << 3 )
#define GP0OE_OE3_EN (0x1 << 3 )
/* GP0OE[OE2] - Pin output drive enable */
#define GP0OE_OE2_BBA (*(volatile unsigned long *) 0x42400088)
#define GP0OE_OE2_MSK (0x1 << 2 )
#define GP0OE_OE2 (0x1 << 2 )
#define GP0OE_OE2_DIS (0x0 << 2 )
#define GP0OE_OE2_EN (0x1 << 2 )
/* GP0OE[OE1] - Pin output drive enable */
#define GP0OE_OE1_BBA (*(volatile unsigned long *) 0x42400084)
#define GP0OE_OE1_MSK (0x1 << 1 )
#define GP0OE_OE1 (0x1 << 1 )
#define GP0OE_OE1_DIS (0x0 << 1 )
#define GP0OE_OE1_EN (0x1 << 1 )
/* GP0OE[OE0] - Pin output drive enable */
#define GP0OE_OE0_BBA (*(volatile unsigned long *) 0x42400080)
#define GP0OE_OE0_MSK (0x1 << 0 )
#define GP0OE_OE0 (0x1 << 0 )
#define GP0OE_OE0_DIS (0x0 << 0 )
#define GP0OE_OE0_EN (0x1 << 0 )
/* Reset Value for GP0PUL*/
#define GP0PUL_RVAL 0x0
/* GP0PUL[PUL7] - Pin Pull up enable */
#define GP0PUL_PUL7_BBA (*(volatile unsigned long *) 0x4240011C)
#define GP0PUL_PUL7_MSK (0x1 << 7 )
#define GP0PUL_PUL7 (0x1 << 7 )
#define GP0PUL_PUL7_DIS (0x0 << 7 )
#define GP0PUL_PUL7_EN (0x1 << 7 )
/* GP0PUL[PUL6] - Pin Pull up enable */
#define GP0PUL_PUL6_BBA (*(volatile unsigned long *) 0x42400118)
#define GP0PUL_PUL6_MSK (0x1 << 6 )
#define GP0PUL_PUL6 (0x1 << 6 )
#define GP0PUL_PUL6_DIS (0x0 << 6 )
#define GP0PUL_PUL6_EN (0x1 << 6 )
/* GP0PUL[PUL5] - Pin Pull up enable */
#define GP0PUL_PUL5_BBA (*(volatile unsigned long *) 0x42400114)
#define GP0PUL_PUL5_MSK (0x1 << 5 )
#define GP0PUL_PUL5 (0x1 << 5 )
#define GP0PUL_PUL5_DIS (0x0 << 5 )
#define GP0PUL_PUL5_EN (0x1 << 5 )
/* GP0PUL[PUL4] - Pin Pull up enable */
#define GP0PUL_PUL4_BBA (*(volatile unsigned long *) 0x42400110)
#define GP0PUL_PUL4_MSK (0x1 << 4 )
#define GP0PUL_PUL4 (0x1 << 4 )
#define GP0PUL_PUL4_DIS (0x0 << 4 )
#define GP0PUL_PUL4_EN (0x1 << 4 )
/* GP0PUL[PUL3] - Pin Pull up enable */
#define GP0PUL_PUL3_BBA (*(volatile unsigned long *) 0x4240010C)
#define GP0PUL_PUL3_MSK (0x1 << 3 )
#define GP0PUL_PUL3 (0x1 << 3 )
#define GP0PUL_PUL3_DIS (0x0 << 3 )
#define GP0PUL_PUL3_EN (0x1 << 3 )
/* GP0PUL[PUL2] - Pin Pull up enable */
#define GP0PUL_PUL2_BBA (*(volatile unsigned long *) 0x42400108)
#define GP0PUL_PUL2_MSK (0x1 << 2 )
#define GP0PUL_PUL2 (0x1 << 2 )
#define GP0PUL_PUL2_DIS (0x0 << 2 )
#define GP0PUL_PUL2_EN (0x1 << 2 )
/* GP0PUL[PUL1] - Pin Pull up enable */
#define GP0PUL_PUL1_BBA (*(volatile unsigned long *) 0x42400104)
#define GP0PUL_PUL1_MSK (0x1 << 1 )
#define GP0PUL_PUL1 (0x1 << 1 )
#define GP0PUL_PUL1_DIS (0x0 << 1 )
#define GP0PUL_PUL1_EN (0x1 << 1 )
/* GP0PUL[PUL0] - Pin Pull up enable */
#define GP0PUL_PUL0_BBA (*(volatile unsigned long *) 0x42400100)
#define GP0PUL_PUL0_MSK (0x1 << 0 )
#define GP0PUL_PUL0 (0x1 << 0 )
#define GP0PUL_PUL0_DIS (0x0 << 0 )
#define GP0PUL_PUL0_EN (0x1 << 0 )
/* Reset Value for GP0IE*/
#define GP0IE_RVAL 0x0
/* GP0IE[IEN7] - Input path enable */
#define GP0IE_IEN7_BBA (*(volatile unsigned long *) 0x4240019C)
#define GP0IE_IEN7_MSK (0x1 << 7 )
#define GP0IE_IEN7 (0x1 << 7 )
#define GP0IE_IEN7_DIS (0x0 << 7 )
#define GP0IE_IEN7_EN (0x1 << 7 )
/* GP0IE[IEN6] - Input path enable */
#define GP0IE_IEN6_BBA (*(volatile unsigned long *) 0x42400198)
#define GP0IE_IEN6_MSK (0x1 << 6 )
#define GP0IE_IEN6 (0x1 << 6 )
#define GP0IE_IEN6_DIS (0x0 << 6 )
#define GP0IE_IEN6_EN (0x1 << 6 )
/* GP0IE[IEN5] - Input path enable */
#define GP0IE_IEN5_BBA (*(volatile unsigned long *) 0x42400194)
#define GP0IE_IEN5_MSK (0x1 << 5 )
#define GP0IE_IEN5 (0x1 << 5 )
#define GP0IE_IEN5_DIS (0x0 << 5 )
#define GP0IE_IEN5_EN (0x1 << 5 )
/* GP0IE[IEN4] - Input path enable */
#define GP0IE_IEN4_BBA (*(volatile unsigned long *) 0x42400190)
#define GP0IE_IEN4_MSK (0x1 << 4 )
#define GP0IE_IEN4 (0x1 << 4 )
#define GP0IE_IEN4_DIS (0x0 << 4 )
#define GP0IE_IEN4_EN (0x1 << 4 )
/* GP0IE[IEN3] - Input path enable */
#define GP0IE_IEN3_BBA (*(volatile unsigned long *) 0x4240018C)
#define GP0IE_IEN3_MSK (0x1 << 3 )
#define GP0IE_IEN3 (0x1 << 3 )
#define GP0IE_IEN3_DIS (0x0 << 3 )
#define GP0IE_IEN3_EN (0x1 << 3 )
/* GP0IE[IEN2] - Input path enable */
#define GP0IE_IEN2_BBA (*(volatile unsigned long *) 0x42400188)
#define GP0IE_IEN2_MSK (0x1 << 2 )
#define GP0IE_IEN2 (0x1 << 2 )
#define GP0IE_IEN2_DIS (0x0 << 2 )
#define GP0IE_IEN2_EN (0x1 << 2 )
/* GP0IE[IEN1] - Input path enable */
#define GP0IE_IEN1_BBA (*(volatile unsigned long *) 0x42400184)
#define GP0IE_IEN1_MSK (0x1 << 1 )
#define GP0IE_IEN1 (0x1 << 1 )
#define GP0IE_IEN1_DIS (0x0 << 1 )
#define GP0IE_IEN1_EN (0x1 << 1 )
/* GP0IE[IEN0] - Input path enable */
#define GP0IE_IEN0_BBA (*(volatile unsigned long *) 0x42400180)
#define GP0IE_IEN0_MSK (0x1 << 0 )
#define GP0IE_IEN0 (0x1 << 0 )
#define GP0IE_IEN0_DIS (0x0 << 0 )
#define GP0IE_IEN0_EN (0x1 << 0 )
/* Reset Value for GP0IN*/
#define GP0IN_RVAL 0x0
/* GP0IN[IN7] - Registered data input */
#define GP0IN_IN7_BBA (*(volatile unsigned long *) 0x4240021C)
#define GP0IN_IN7_MSK (0x1 << 7 )
#define GP0IN_IN7 (0x1 << 7 )
#define GP0IN_IN7_LOW (0x0 << 7 )
#define GP0IN_IN7_HIGH (0x1 << 7 )
/* GP0IN[IN6] - Registered data input */
#define GP0IN_IN6_BBA (*(volatile unsigned long *) 0x42400218)
#define GP0IN_IN6_MSK (0x1 << 6 )
#define GP0IN_IN6 (0x1 << 6 )
#define GP0IN_IN6_LOW (0x0 << 6 )
#define GP0IN_IN6_HIGH (0x1 << 6 )
/* GP0IN[IN5] - Registered data input */
#define GP0IN_IN5_BBA (*(volatile unsigned long *) 0x42400214)
#define GP0IN_IN5_MSK (0x1 << 5 )
#define GP0IN_IN5 (0x1 << 5 )
#define GP0IN_IN5_LOW (0x0 << 5 )
#define GP0IN_IN5_HIGH (0x1 << 5 )
/* GP0IN[IN4] - Registered data input */
#define GP0IN_IN4_BBA (*(volatile unsigned long *) 0x42400210)
#define GP0IN_IN4_MSK (0x1 << 4 )
#define GP0IN_IN4 (0x1 << 4 )
#define GP0IN_IN4_LOW (0x0 << 4 )
#define GP0IN_IN4_HIGH (0x1 << 4 )
/* GP0IN[IN3] - Registered data input */
#define GP0IN_IN3_BBA (*(volatile unsigned long *) 0x4240020C)
#define GP0IN_IN3_MSK (0x1 << 3 )
#define GP0IN_IN3 (0x1 << 3 )
#define GP0IN_IN3_LOW (0x0 << 3 )
#define GP0IN_IN3_HIGH (0x1 << 3 )
/* GP0IN[IN2] - Registered data input */
#define GP0IN_IN2_BBA (*(volatile unsigned long *) 0x42400208)
#define GP0IN_IN2_MSK (0x1 << 2 )
#define GP0IN_IN2 (0x1 << 2 )
#define GP0IN_IN2_LOW (0x0 << 2 )
#define GP0IN_IN2_HIGH (0x1 << 2 )
/* GP0IN[IN1] - Registered data input */
#define GP0IN_IN1_BBA (*(volatile unsigned long *) 0x42400204)
#define GP0IN_IN1_MSK (0x1 << 1 )
#define GP0IN_IN1 (0x1 << 1 )
#define GP0IN_IN1_LOW (0x0 << 1 )
#define GP0IN_IN1_HIGH (0x1 << 1 )
/* GP0IN[IN0] - Registered data input */
#define GP0IN_IN0_BBA (*(volatile unsigned long *) 0x42400200)
#define GP0IN_IN0_MSK (0x1 << 0 )
#define GP0IN_IN0 (0x1 << 0 )
#define GP0IN_IN0_LOW (0x0 << 0 )
#define GP0IN_IN0_HIGH (0x1 << 0 )
/* Reset Value for GP0OUT*/
#define GP0OUT_RVAL 0x0
/* GP0OUT[OUT7] - Data out */
#define GP0OUT_OUT7_BBA (*(volatile unsigned long *) 0x4240029C)
#define GP0OUT_OUT7_MSK (0x1 << 7 )
#define GP0OUT_OUT7 (0x1 << 7 )
#define GP0OUT_OUT7_LOW (0x0 << 7 )
#define GP0OUT_OUT7_HIGH (0x1 << 7 )
/* GP0OUT[OUT6] - Data out */
#define GP0OUT_OUT6_BBA (*(volatile unsigned long *) 0x42400298)
#define GP0OUT_OUT6_MSK (0x1 << 6 )
#define GP0OUT_OUT6 (0x1 << 6 )
#define GP0OUT_OUT6_LOW (0x0 << 6 )
#define GP0OUT_OUT6_HIGH (0x1 << 6 )
/* GP0OUT[OUT5] - Data out */
#define GP0OUT_OUT5_BBA (*(volatile unsigned long *) 0x42400294)
#define GP0OUT_OUT5_MSK (0x1 << 5 )
#define GP0OUT_OUT5 (0x1 << 5 )
#define GP0OUT_OUT5_LOW (0x0 << 5 )
#define GP0OUT_OUT5_HIGH (0x1 << 5 )
/* GP0OUT[OUT4] - Data out */
#define GP0OUT_OUT4_BBA (*(volatile unsigned long *) 0x42400290)
#define GP0OUT_OUT4_MSK (0x1 << 4 )
#define GP0OUT_OUT4 (0x1 << 4 )
#define GP0OUT_OUT4_LOW (0x0 << 4 )
#define GP0OUT_OUT4_HIGH (0x1 << 4 )
/* GP0OUT[OUT3] - Data out */
#define GP0OUT_OUT3_BBA (*(volatile unsigned long *) 0x4240028C)
#define GP0OUT_OUT3_MSK (0x1 << 3 )
#define GP0OUT_OUT3 (0x1 << 3 )
#define GP0OUT_OUT3_LOW (0x0 << 3 )
#define GP0OUT_OUT3_HIGH (0x1 << 3 )
/* GP0OUT[OUT2] - Data out */
#define GP0OUT_OUT2_BBA (*(volatile unsigned long *) 0x42400288)
#define GP0OUT_OUT2_MSK (0x1 << 2 )
#define GP0OUT_OUT2 (0x1 << 2 )
#define GP0OUT_OUT2_LOW (0x0 << 2 )
#define GP0OUT_OUT2_HIGH (0x1 << 2 )
/* GP0OUT[OUT1] - Data out */
#define GP0OUT_OUT1_BBA (*(volatile unsigned long *) 0x42400284)
#define GP0OUT_OUT1_MSK (0x1 << 1 )
#define GP0OUT_OUT1 (0x1 << 1 )
#define GP0OUT_OUT1_LOW (0x0 << 1 )
#define GP0OUT_OUT1_HIGH (0x1 << 1 )
/* GP0OUT[OUT0] - Data out */
#define GP0OUT_OUT0_BBA (*(volatile unsigned long *) 0x42400280)
#define GP0OUT_OUT0_MSK (0x1 << 0 )
#define GP0OUT_OUT0 (0x1 << 0 )
#define GP0OUT_OUT0_LOW (0x0 << 0 )
#define GP0OUT_OUT0_HIGH (0x1 << 0 )
/* Reset Value for GP0SET*/
#define GP0SET_RVAL 0x0
/* GP0SET[SET7] - Set the output high. */
#define GP0SET_SET7_BBA (*(volatile unsigned long *) 0x4240031C)
#define GP0SET_SET7_MSK (0x1 << 7 )
#define GP0SET_SET7 (0x1 << 7 )
#define GP0SET_SET7_SET (0x1 << 7 )
/* GP0SET[SET6] - Set the output high. */
#define GP0SET_SET6_BBA (*(volatile unsigned long *) 0x42400318)
#define GP0SET_SET6_MSK (0x1 << 6 )
#define GP0SET_SET6 (0x1 << 6 )
#define GP0SET_SET6_SET (0x1 << 6 )
/* GP0SET[SET5] - Set the output high. */
#define GP0SET_SET5_BBA (*(volatile unsigned long *) 0x42400314)
#define GP0SET_SET5_MSK (0x1 << 5 )
#define GP0SET_SET5 (0x1 << 5 )
#define GP0SET_SET5_SET (0x1 << 5 )
/* GP0SET[SET4] - Set the output high. */
#define GP0SET_SET4_BBA (*(volatile unsigned long *) 0x42400310)
#define GP0SET_SET4_MSK (0x1 << 4 )
#define GP0SET_SET4 (0x1 << 4 )
#define GP0SET_SET4_SET (0x1 << 4 )
/* GP0SET[SET3] - Set the output high. */
#define GP0SET_SET3_BBA (*(volatile unsigned long *) 0x4240030C)
#define GP0SET_SET3_MSK (0x1 << 3 )
#define GP0SET_SET3 (0x1 << 3 )
#define GP0SET_SET3_SET (0x1 << 3 )
/* GP0SET[SET2] - Set the output high. */
#define GP0SET_SET2_BBA (*(volatile unsigned long *) 0x42400308)
#define GP0SET_SET2_MSK (0x1 << 2 )
#define GP0SET_SET2 (0x1 << 2 )
#define GP0SET_SET2_SET (0x1 << 2 )
/* GP0SET[SET1] - Set the output high. */
#define GP0SET_SET1_BBA (*(volatile unsigned long *) 0x42400304)
#define GP0SET_SET1_MSK (0x1 << 1 )
#define GP0SET_SET1 (0x1 << 1 )
#define GP0SET_SET1_SET (0x1 << 1 )
/* GP0SET[SET0] - Set the output high. */
#define GP0SET_SET0_BBA (*(volatile unsigned long *) 0x42400300)
#define GP0SET_SET0_MSK (0x1 << 0 )
#define GP0SET_SET0 (0x1 << 0 )
#define GP0SET_SET0_SET (0x1 << 0 )
/* Reset Value for GP0CLR*/
#define GP0CLR_RVAL 0x0
/* GP0CLR[CLR7] - Set the output low. */
#define GP0CLR_CLR7_BBA (*(volatile unsigned long *) 0x4240039C)
#define GP0CLR_CLR7_MSK (0x1 << 7 )
#define GP0CLR_CLR7 (0x1 << 7 )
#define GP0CLR_CLR7_CLR (0x1 << 7 )
/* GP0CLR[CLR6] - Set the output low. */
#define GP0CLR_CLR6_BBA (*(volatile unsigned long *) 0x42400398)
#define GP0CLR_CLR6_MSK (0x1 << 6 )
#define GP0CLR_CLR6 (0x1 << 6 )
#define GP0CLR_CLR6_CLR (0x1 << 6 )
/* GP0CLR[CLR5] - Set the output low. */
#define GP0CLR_CLR5_BBA (*(volatile unsigned long *) 0x42400394)
#define GP0CLR_CLR5_MSK (0x1 << 5 )
#define GP0CLR_CLR5 (0x1 << 5 )
#define GP0CLR_CLR5_CLR (0x1 << 5 )
/* GP0CLR[CLR4] - Set the output low. */
#define GP0CLR_CLR4_BBA (*(volatile unsigned long *) 0x42400390)
#define GP0CLR_CLR4_MSK (0x1 << 4 )
#define GP0CLR_CLR4 (0x1 << 4 )
#define GP0CLR_CLR4_CLR (0x1 << 4 )
/* GP0CLR[CLR3] - Set the output low. */
#define GP0CLR_CLR3_BBA (*(volatile unsigned long *) 0x4240038C)
#define GP0CLR_CLR3_MSK (0x1 << 3 )
#define GP0CLR_CLR3 (0x1 << 3 )
#define GP0CLR_CLR3_CLR (0x1 << 3 )
/* GP0CLR[CLR2] - Set the output low. */
#define GP0CLR_CLR2_BBA (*(volatile unsigned long *) 0x42400388)
#define GP0CLR_CLR2_MSK (0x1 << 2 )
#define GP0CLR_CLR2 (0x1 << 2 )
#define GP0CLR_CLR2_CLR (0x1 << 2 )
/* GP0CLR[CLR1] - Set the output low. */
#define GP0CLR_CLR1_BBA (*(volatile unsigned long *) 0x42400384)
#define GP0CLR_CLR1_MSK (0x1 << 1 )
#define GP0CLR_CLR1 (0x1 << 1 )
#define GP0CLR_CLR1_CLR (0x1 << 1 )
/* GP0CLR[CLR0] - Set the output low. */
#define GP0CLR_CLR0_BBA (*(volatile unsigned long *) 0x42400380)
#define GP0CLR_CLR0_MSK (0x1 << 0 )
#define GP0CLR_CLR0 (0x1 << 0 )
#define GP0CLR_CLR0_CLR (0x1 << 0 )
/* Reset Value for GP0TGL*/
#define GP0TGL_RVAL 0x0
/* GP0TGL[TGL7] - Toggle the output of the port pin */
#define GP0TGL_TGL7_BBA (*(volatile unsigned long *) 0x4240041C)
#define GP0TGL_TGL7_MSK (0x1 << 7 )
#define GP0TGL_TGL7 (0x1 << 7 )
#define GP0TGL_TGL7_TGL (0x1 << 7 )
/* GP0TGL[TGL6] - Toggle the output of the port pin */
#define GP0TGL_TGL6_BBA (*(volatile unsigned long *) 0x42400418)
#define GP0TGL_TGL6_MSK (0x1 << 6 )
#define GP0TGL_TGL6 (0x1 << 6 )
#define GP0TGL_TGL6_TGL (0x1 << 6 )
/* GP0TGL[TGL5] - Toggle the output of the port pin */
#define GP0TGL_TGL5_BBA (*(volatile unsigned long *) 0x42400414)
#define GP0TGL_TGL5_MSK (0x1 << 5 )
#define GP0TGL_TGL5 (0x1 << 5 )
#define GP0TGL_TGL5_TGL (0x1 << 5 )
/* GP0TGL[TGL4] - Toggle the output of the port pin */
#define GP0TGL_TGL4_BBA (*(volatile unsigned long *) 0x42400410)
#define GP0TGL_TGL4_MSK (0x1 << 4 )
#define GP0TGL_TGL4 (0x1 << 4 )
#define GP0TGL_TGL4_TGL (0x1 << 4 )
/* GP0TGL[TGL3] - Toggle the output of the port pin */
#define GP0TGL_TGL3_BBA (*(volatile unsigned long *) 0x4240040C)
#define GP0TGL_TGL3_MSK (0x1 << 3 )
#define GP0TGL_TGL3 (0x1 << 3 )
#define GP0TGL_TGL3_TGL (0x1 << 3 )
/* GP0TGL[TGL2] - Toggle the output of the port pin */
#define GP0TGL_TGL2_BBA (*(volatile unsigned long *) 0x42400408)
#define GP0TGL_TGL2_MSK (0x1 << 2 )
#define GP0TGL_TGL2 (0x1 << 2 )
#define GP0TGL_TGL2_TGL (0x1 << 2 )
/* GP0TGL[TGL1] - Toggle the output of the port pin */
#define GP0TGL_TGL1_BBA (*(volatile unsigned long *) 0x42400404)
#define GP0TGL_TGL1_MSK (0x1 << 1 )
#define GP0TGL_TGL1 (0x1 << 1 )
#define GP0TGL_TGL1_TGL (0x1 << 1 )
/* GP0TGL[TGL0] - Toggle the output of the port pin */
#define GP0TGL_TGL0_BBA (*(volatile unsigned long *) 0x42400400)
#define GP0TGL_TGL0_MSK (0x1 << 0 )
#define GP0TGL_TGL0 (0x1 << 0 )
#define GP0TGL_TGL0_TGL (0x1 << 0 )
/* Reset Value for GP0ODE*/
#define GP0ODE_RVAL 0x0
/* GP0ODE[ODE7] - Open drain enable */
#define GP0ODE_ODE7_BBA (*(volatile unsigned long *) 0x4240049C)
#define GP0ODE_ODE7_MSK (0x1 << 7 )
#define GP0ODE_ODE7 (0x1 << 7 )
#define GP0ODE_ODE7_DIS (0x0 << 7 )
#define GP0ODE_ODE7_EN (0x1 << 7 )
/* GP0ODE[ODE6] - Open drain enable */
#define GP0ODE_ODE6_BBA (*(volatile unsigned long *) 0x42400498)
#define GP0ODE_ODE6_MSK (0x1 << 6 )
#define GP0ODE_ODE6 (0x1 << 6 )
#define GP0ODE_ODE6_DIS (0x0 << 6 )
#define GP0ODE_ODE6_EN (0x1 << 6 )
/* GP0ODE[ODE5] - Open drain enable */
#define GP0ODE_ODE5_BBA (*(volatile unsigned long *) 0x42400494)
#define GP0ODE_ODE5_MSK (0x1 << 5 )
#define GP0ODE_ODE5 (0x1 << 5 )
#define GP0ODE_ODE5_DIS (0x0 << 5 )
#define GP0ODE_ODE5_EN (0x1 << 5 )
/* GP0ODE[ODE4] - Open drain enable */
#define GP0ODE_ODE4_BBA (*(volatile unsigned long *) 0x42400490)
#define GP0ODE_ODE4_MSK (0x1 << 4 )
#define GP0ODE_ODE4 (0x1 << 4 )
#define GP0ODE_ODE4_DIS (0x0 << 4 )
#define GP0ODE_ODE4_EN (0x1 << 4 )
/* GP0ODE[ODE3] - Open drain enable */
#define GP0ODE_ODE3_BBA (*(volatile unsigned long *) 0x4240048C)
#define GP0ODE_ODE3_MSK (0x1 << 3 )
#define GP0ODE_ODE3 (0x1 << 3 )
#define GP0ODE_ODE3_DIS (0x0 << 3 )
#define GP0ODE_ODE3_EN (0x1 << 3 )
/* GP0ODE[ODE2] - Open drain enable */
#define GP0ODE_ODE2_BBA (*(volatile unsigned long *) 0x42400488)
#define GP0ODE_ODE2_MSK (0x1 << 2 )
#define GP0ODE_ODE2 (0x1 << 2 )
#define GP0ODE_ODE2_DIS (0x0 << 2 )
#define GP0ODE_ODE2_EN (0x1 << 2 )
/* GP0ODE[ODE1] - Open drain enable */
#define GP0ODE_ODE1_BBA (*(volatile unsigned long *) 0x42400484)
#define GP0ODE_ODE1_MSK (0x1 << 1 )
#define GP0ODE_ODE1 (0x1 << 1 )
#define GP0ODE_ODE1_DIS (0x0 << 1 )
#define GP0ODE_ODE1_EN (0x1 << 1 )
/* GP0ODE[ODE0] - Open drain enable */
#define GP0ODE_ODE0_BBA (*(volatile unsigned long *) 0x42400480)
#define GP0ODE_ODE0_MSK (0x1 << 0 )
#define GP0ODE_ODE0 (0x1 << 0 )
#define GP0ODE_ODE0_DIS (0x0 << 0 )
#define GP0ODE_ODE0_EN (0x1 << 0 )
#if (__NO_MMR_STRUCTS__==1)
#define GP1CON (*(volatile unsigned short int *) 0x40020040)
#define GP1OE (*(volatile unsigned char *) 0x40020044)
#define GP1PUL (*(volatile unsigned char *) 0x40020048)
#define GP1IE (*(volatile unsigned char *) 0x4002004C)
#define GP1IN (*(volatile unsigned char *) 0x40020050)
#define GP1OUT (*(volatile unsigned char *) 0x40020054)
#define GP1SET (*(volatile unsigned char *) 0x40020058)
#define GP1CLR (*(volatile unsigned char *) 0x4002005C)
#define GP1TGL (*(volatile unsigned char *) 0x40020060)
#define GP1ODE (*(volatile unsigned char *) 0x40020064)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for GP1CON*/
#define GP1CON_RVAL 0x0
/* GP1CON[CON7] - p1.7 configuration bits */
#define GP1CON_CON7_MSK (0x3 << 14 )
#define GP1CON_CON7_GPIOIRQ1 (0x0 << 14 ) /* GPIO/IRQ1 */
#define GP1CON_CON7_PWM5 (0x1 << 14 ) /* PWM5 */
#define GP1CON_CON7_SPI1CS (0x2 << 14 ) /* SPI1 CS */
#define GP1CON_CON7_PLAO7 (0x3 << 14 ) /* PLAO[7] */
/* GP1CON[CON6] - p1.6 configuration bits */
#define GP1CON_CON6_MSK (0x3 << 12 )
#define GP1CON_CON6_GPIO (0x0 << 12 ) /* GPIO */
#define GP1CON_CON6_PWM4 (0x1 << 12 ) /* PWM4 */
#define GP1CON_CON6_SPI1MOSI (0x2 << 12 ) /* SPI1 MOSI */
#define GP1CON_CON6_PLAO6 (0x3 << 12 ) /* PLAO[6] */
/* GP1CON[CON5] - p1.5 configuration bits */
#define GP1CON_CON5_MSK (0x3 << 10 )
#define GP1CON_CON5_GPIO (0x0 << 10 ) /* GPIO */
#define GP1CON_CON5_PWM3 (0x1 << 10 ) /* PWM3 */
#define GP1CON_CON5_SPI1MISO (0x2 << 10 ) /* SPI1 MISO */
#define GP1CON_CON5_PLAO5 (0x3 << 10 ) /* PLAO[5] */
/* GP1CON[CON4] - p1.4 configuration bits */
#define GP1CON_CON4_MSK (0x3 << 8 )
#define GP1CON_CON4_GPIO (0x0 << 8 ) /* GPIO */
#define GP1CON_CON4_PWM2 (0x1 << 8 ) /* PWM2 */
#define GP1CON_CON4_SPISCLK (0x2 << 8 ) /* SPI1 SCLK */
#define GP1CON_CON4_PLAO4 (0x3 << 8 ) /* PLAO[4] */
/* GP1CON[CON3] - p1.3 configuration bits */
#define GP1CON_CON3_MSK (0x3 << 6 )
#define GP1CON_CON3_GPIO (0x0 << 6 ) /* GPIO */
#define GP1CON_CON3_PWM1 (0x1 << 6 ) /* PWM1 */
#define GP1CON_CON3_PLAI7 (0x3 << 6 ) /* PLAI[7] */
/* GP1CON[CON2] - p1.2 configuration bits */
#define GP1CON_CON2_MSK (0x3 << 4 )
#define GP1CON_CON2_GPIO (0x0 << 4 ) /* GPIO */
#define GP1CON_CON2_PWM0 (0x1 << 4 ) /* PWM0 */
#define GP1CON_CON2_PLAI6 (0x3 << 4 ) /* PLAI6] */
/* GP1CON[CON1] - p1.1 configuration bits */
#define GP1CON_CON1_MSK (0x3 << 2 )
#define GP1CON_CON1_GPIO (0x0 << 2 ) /* GPIO */
#define GP1CON_CON1_UARTSOUT (0x1 << 2 ) /* UART SOUT */
#define GP1CON_CON1_PLACLK1 (0x2 << 2 ) /* PLA CLK1 */
#define GP1CON_CON1_PLAI5 (0x3 << 2 ) /* PLAI[5] */
/* GP1CON[CON0] - p1.0 configuration bits */
#define GP1CON_CON0_MSK (0x3 << 0 )
#define GP1CON_CON0_GPIO (0x0 << 0 ) /* GPIO */
#define GP1CON_CON0_UARTSIN (0x1 << 0 ) /* UART SIN */
#define GP1CON_CON0_ECLKIN (0x2 << 0 ) /* External Clock Input */
#define GP1CON_CON0_PLAI4 (0x3 << 0 ) /* PLAI[4] */
/* Reset Value for GP1OE*/
#define GP1OE_RVAL 0x0
/* GP1OE[OE7] - Pin Output Drive enable */
#define GP1OE_OE7_BBA (*(volatile unsigned long *) 0x4240089C)
#define GP1OE_OE7_MSK (0x1 << 7 )
#define GP1OE_OE7 (0x1 << 7 )
#define GP1OE_OE7_DIS (0x0 << 7 )
#define GP1OE_OE7_EN (0x1 << 7 )
/* GP1OE[OE6] - Pin Output Drive enable */
#define GP1OE_OE6_BBA (*(volatile unsigned long *) 0x42400898)
#define GP1OE_OE6_MSK (0x1 << 6 )
#define GP1OE_OE6 (0x1 << 6 )
#define GP1OE_OE6_DIS (0x0 << 6 )
#define GP1OE_OE6_EN (0x1 << 6 )
/* GP1OE[OE5] - Pin Output Drive enable */
#define GP1OE_OE5_BBA (*(volatile unsigned long *) 0x42400894)
#define GP1OE_OE5_MSK (0x1 << 5 )
#define GP1OE_OE5 (0x1 << 5 )
#define GP1OE_OE5_DIS (0x0 << 5 )
#define GP1OE_OE5_EN (0x1 << 5 )
/* GP1OE[OE4] - Pin Output Drive enable */
#define GP1OE_OE4_BBA (*(volatile unsigned long *) 0x42400890)
#define GP1OE_OE4_MSK (0x1 << 4 )
#define GP1OE_OE4 (0x1 << 4 )
#define GP1OE_OE4_DIS (0x0 << 4 )
#define GP1OE_OE4_EN (0x1 << 4 )
/* GP1OE[OE3] - Pin Output Drive enable */
#define GP1OE_OE3_BBA (*(volatile unsigned long *) 0x4240088C)
#define GP1OE_OE3_MSK (0x1 << 3 )
#define GP1OE_OE3 (0x1 << 3 )
#define GP1OE_OE3_DIS (0x0 << 3 )
#define GP1OE_OE3_EN (0x1 << 3 )
/* GP1OE[OE2] - Pin Output Drive enable */
#define GP1OE_OE2_BBA (*(volatile unsigned long *) 0x42400888)
#define GP1OE_OE2_MSK (0x1 << 2 )
#define GP1OE_OE2 (0x1 << 2 )
#define GP1OE_OE2_DIS (0x0 << 2 )
#define GP1OE_OE2_EN (0x1 << 2 )
/* GP1OE[OE1] - Pin Output Drive enable */
#define GP1OE_OE1_BBA (*(volatile unsigned long *) 0x42400884)
#define GP1OE_OE1_MSK (0x1 << 1 )
#define GP1OE_OE1 (0x1 << 1 )
#define GP1OE_OE1_DIS (0x0 << 1 )
#define GP1OE_OE1_EN (0x1 << 1 )
/* GP1OE[OE0] - Pin Output Drive enable */
#define GP1OE_OE0_BBA (*(volatile unsigned long *) 0x42400880)
#define GP1OE_OE0_MSK (0x1 << 0 )
#define GP1OE_OE0 (0x1 << 0 )
#define GP1OE_OE0_DIS (0x0 << 0 )
#define GP1OE_OE0_EN (0x1 << 0 )
/* Reset Value for GP1PUL*/
#define GP1PUL_RVAL 0x0
/* GP1PUL[PUL7] - Pin Pull up enable */
#define GP1PUL_PUL7_BBA (*(volatile unsigned long *) 0x4240091C)
#define GP1PUL_PUL7_MSK (0x1 << 7 )
#define GP1PUL_PUL7 (0x1 << 7 )
#define GP1PUL_PUL7_DIS (0x0 << 7 )
#define GP1PUL_PUL7_EN (0x1 << 7 )
/* GP1PUL[PUL6] - Pin Pull up enable */
#define GP1PUL_PUL6_BBA (*(volatile unsigned long *) 0x42400918)
#define GP1PUL_PUL6_MSK (0x1 << 6 )
#define GP1PUL_PUL6 (0x1 << 6 )
#define GP1PUL_PUL6_DIS (0x0 << 6 )
#define GP1PUL_PUL6_EN (0x1 << 6 )
/* GP1PUL[PUL5] - Pin Pull up enable */
#define GP1PUL_PUL5_BBA (*(volatile unsigned long *) 0x42400914)
#define GP1PUL_PUL5_MSK (0x1 << 5 )
#define GP1PUL_PUL5 (0x1 << 5 )
#define GP1PUL_PUL5_DIS (0x0 << 5 )
#define GP1PUL_PUL5_EN (0x1 << 5 )
/* GP1PUL[PUL4] - Pin Pull up enable */
#define GP1PUL_PUL4_BBA (*(volatile unsigned long *) 0x42400910)
#define GP1PUL_PUL4_MSK (0x1 << 4 )
#define GP1PUL_PUL4 (0x1 << 4 )
#define GP1PUL_PUL4_DIS (0x0 << 4 )
#define GP1PUL_PUL4_EN (0x1 << 4 )
/* GP1PUL[PUL3] - Pin Pull up enable */
#define GP1PUL_PUL3_BBA (*(volatile unsigned long *) 0x4240090C)
#define GP1PUL_PUL3_MSK (0x1 << 3 )
#define GP1PUL_PUL3 (0x1 << 3 )
#define GP1PUL_PUL3_DIS (0x0 << 3 )
#define GP1PUL_PUL3_EN (0x1 << 3 )
/* GP1PUL[PUL2] - Pin Pull up enable */
#define GP1PUL_PUL2_BBA (*(volatile unsigned long *) 0x42400908)
#define GP1PUL_PUL2_MSK (0x1 << 2 )
#define GP1PUL_PUL2 (0x1 << 2 )
#define GP1PUL_PUL2_DIS (0x0 << 2 )
#define GP1PUL_PUL2_EN (0x1 << 2 )
/* GP1PUL[PUL1] - Pin Pull up enable */
#define GP1PUL_PUL1_BBA (*(volatile unsigned long *) 0x42400904)
#define GP1PUL_PUL1_MSK (0x1 << 1 )
#define GP1PUL_PUL1 (0x1 << 1 )
#define GP1PUL_PUL1_DIS (0x0 << 1 )
#define GP1PUL_PUL1_EN (0x1 << 1 )
/* GP1PUL[PUL0] - Pin Pull up enable */
#define GP1PUL_PUL0_BBA (*(volatile unsigned long *) 0x42400900)
#define GP1PUL_PUL0_MSK (0x1 << 0 )
#define GP1PUL_PUL0 (0x1 << 0 )
#define GP1PUL_PUL0_DIS (0x0 << 0 )
#define GP1PUL_PUL0_EN (0x1 << 0 )
/* Reset Value for GP1IE*/
#define GP1IE_RVAL 0x0
/* GP1IE[IEN7] - Input path enable */
#define GP1IE_IEN7_BBA (*(volatile unsigned long *) 0x4240099C)
#define GP1IE_IEN7_MSK (0x1 << 7 )
#define GP1IE_IEN7 (0x1 << 7 )
#define GP1IE_IEN7_DIS (0x0 << 7 )
#define GP1IE_IEN7_EN (0x1 << 7 )
/* GP1IE[IEN6] - Input path enable */
#define GP1IE_IEN6_BBA (*(volatile unsigned long *) 0x42400998)
#define GP1IE_IEN6_MSK (0x1 << 6 )
#define GP1IE_IEN6 (0x1 << 6 )
#define GP1IE_IEN6_DIS (0x0 << 6 )
#define GP1IE_IEN6_EN (0x1 << 6 )
/* GP1IE[IEN5] - Input path enable */
#define GP1IE_IEN5_BBA (*(volatile unsigned long *) 0x42400994)
#define GP1IE_IEN5_MSK (0x1 << 5 )
#define GP1IE_IEN5 (0x1 << 5 )
#define GP1IE_IEN5_DIS (0x0 << 5 )
#define GP1IE_IEN5_EN (0x1 << 5 )
/* GP1IE[IEN4] - Input path enable */
#define GP1IE_IEN4_BBA (*(volatile unsigned long *) 0x42400990)
#define GP1IE_IEN4_MSK (0x1 << 4 )
#define GP1IE_IEN4 (0x1 << 4 )
#define GP1IE_IEN4_DIS (0x0 << 4 )
#define GP1IE_IEN4_EN (0x1 << 4 )
/* GP1IE[IEN3] - Input path enable */
#define GP1IE_IEN3_BBA (*(volatile unsigned long *) 0x4240098C)
#define GP1IE_IEN3_MSK (0x1 << 3 )
#define GP1IE_IEN3 (0x1 << 3 )
#define GP1IE_IEN3_DIS (0x0 << 3 )
#define GP1IE_IEN3_EN (0x1 << 3 )
/* GP1IE[IEN2] - Input path enable */
#define GP1IE_IEN2_BBA (*(volatile unsigned long *) 0x42400988)
#define GP1IE_IEN2_MSK (0x1 << 2 )
#define GP1IE_IEN2 (0x1 << 2 )
#define GP1IE_IEN2_DIS (0x0 << 2 )
#define GP1IE_IEN2_EN (0x1 << 2 )
/* GP1IE[IEN1] - Input path enable */
#define GP1IE_IEN1_BBA (*(volatile unsigned long *) 0x42400984)
#define GP1IE_IEN1_MSK (0x1 << 1 )
#define GP1IE_IEN1 (0x1 << 1 )
#define GP1IE_IEN1_DIS (0x0 << 1 )
#define GP1IE_IEN1_EN (0x1 << 1 )
/* GP1IE[IEN0] - Input path enable */
#define GP1IE_IEN0_BBA (*(volatile unsigned long *) 0x42400980)
#define GP1IE_IEN0_MSK (0x1 << 0 )
#define GP1IE_IEN0 (0x1 << 0 )
#define GP1IE_IEN0_DIS (0x0 << 0 )
#define GP1IE_IEN0_EN (0x1 << 0 )
/* Reset Value for GP1IN*/
#define GP1IN_RVAL 0x0
/* GP1IN[IN7] - Registered data input */
#define GP1IN_IN7_BBA (*(volatile unsigned long *) 0x42400A1C)
#define GP1IN_IN7_MSK (0x1 << 7 )
#define GP1IN_IN7 (0x1 << 7 )
#define GP1IN_IN7_LOW (0x0 << 7 )
#define GP1IN_IN7_HIGH (0x1 << 7 )
/* GP1IN[IN6] - Registered data input */
#define GP1IN_IN6_BBA (*(volatile unsigned long *) 0x42400A18)
#define GP1IN_IN6_MSK (0x1 << 6 )
#define GP1IN_IN6 (0x1 << 6 )
#define GP1IN_IN6_LOW (0x0 << 6 )
#define GP1IN_IN6_HIGH (0x1 << 6 )
/* GP1IN[IN5] - Registered data input */
#define GP1IN_IN5_BBA (*(volatile unsigned long *) 0x42400A14)
#define GP1IN_IN5_MSK (0x1 << 5 )
#define GP1IN_IN5 (0x1 << 5 )
#define GP1IN_IN5_LOW (0x0 << 5 )
#define GP1IN_IN5_HIGH (0x1 << 5 )
/* GP1IN[IN4] - Registered data input */
#define GP1IN_IN4_BBA (*(volatile unsigned long *) 0x42400A10)
#define GP1IN_IN4_MSK (0x1 << 4 )
#define GP1IN_IN4 (0x1 << 4 )
#define GP1IN_IN4_LOW (0x0 << 4 )
#define GP1IN_IN4_HIGH (0x1 << 4 )
/* GP1IN[IN3] - Registered data input */
#define GP1IN_IN3_BBA (*(volatile unsigned long *) 0x42400A0C)
#define GP1IN_IN3_MSK (0x1 << 3 )
#define GP1IN_IN3 (0x1 << 3 )
#define GP1IN_IN3_LOW (0x0 << 3 )
#define GP1IN_IN3_HIGH (0x1 << 3 )
/* GP1IN[IN2] - Registered data input */
#define GP1IN_IN2_BBA (*(volatile unsigned long *) 0x42400A08)
#define GP1IN_IN2_MSK (0x1 << 2 )
#define GP1IN_IN2 (0x1 << 2 )
#define GP1IN_IN2_LOW (0x0 << 2 )
#define GP1IN_IN2_HIGH (0x1 << 2 )
/* GP1IN[IN1] - Registered data input */
#define GP1IN_IN1_BBA (*(volatile unsigned long *) 0x42400A04)
#define GP1IN_IN1_MSK (0x1 << 1 )
#define GP1IN_IN1 (0x1 << 1 )
#define GP1IN_IN1_LOW (0x0 << 1 )
#define GP1IN_IN1_HIGH (0x1 << 1 )
/* GP1IN[IN0] - Registered data input */
#define GP1IN_IN0_BBA (*(volatile unsigned long *) 0x42400A00)
#define GP1IN_IN0_MSK (0x1 << 0 )
#define GP1IN_IN0 (0x1 << 0 )
#define GP1IN_IN0_LOW (0x0 << 0 )
#define GP1IN_IN0_HIGH (0x1 << 0 )
/* Reset Value for GP1OUT*/
#define GP1OUT_RVAL 0x0
/* GP1OUT[OUT7] - Data out */
#define GP1OUT_OUT7_BBA (*(volatile unsigned long *) 0x42400A9C)
#define GP1OUT_OUT7_MSK (0x1 << 7 )
#define GP1OUT_OUT7 (0x1 << 7 )
#define GP1OUT_OUT7_LOW (0x0 << 7 )
#define GP1OUT_OUT7_HIGH (0x1 << 7 )
/* GP1OUT[OUT6] - Data out */
#define GP1OUT_OUT6_BBA (*(volatile unsigned long *) 0x42400A98)
#define GP1OUT_OUT6_MSK (0x1 << 6 )
#define GP1OUT_OUT6 (0x1 << 6 )
#define GP1OUT_OUT6_LOW (0x0 << 6 )
#define GP1OUT_OUT6_HIGH (0x1 << 6 )
/* GP1OUT[OUT5] - Data out */
#define GP1OUT_OUT5_BBA (*(volatile unsigned long *) 0x42400A94)
#define GP1OUT_OUT5_MSK (0x1 << 5 )
#define GP1OUT_OUT5 (0x1 << 5 )
#define GP1OUT_OUT5_LOW (0x0 << 5 )
#define GP1OUT_OUT5_HIGH (0x1 << 5 )
/* GP1OUT[OUT4] - Data out */
#define GP1OUT_OUT4_BBA (*(volatile unsigned long *) 0x42400A90)
#define GP1OUT_OUT4_MSK (0x1 << 4 )
#define GP1OUT_OUT4 (0x1 << 4 )
#define GP1OUT_OUT4_LOW (0x0 << 4 )
#define GP1OUT_OUT4_HIGH (0x1 << 4 )
/* GP1OUT[OUT3] - Data out */
#define GP1OUT_OUT3_BBA (*(volatile unsigned long *) 0x42400A8C)
#define GP1OUT_OUT3_MSK (0x1 << 3 )
#define GP1OUT_OUT3 (0x1 << 3 )
#define GP1OUT_OUT3_LOW (0x0 << 3 )
#define GP1OUT_OUT3_HIGH (0x1 << 3 )
/* GP1OUT[OUT2] - Data out */
#define GP1OUT_OUT2_BBA (*(volatile unsigned long *) 0x42400A88)
#define GP1OUT_OUT2_MSK (0x1 << 2 )
#define GP1OUT_OUT2 (0x1 << 2 )
#define GP1OUT_OUT2_LOW (0x0 << 2 )
#define GP1OUT_OUT2_HIGH (0x1 << 2 )
/* GP1OUT[OUT1] - Data out */
#define GP1OUT_OUT1_BBA (*(volatile unsigned long *) 0x42400A84)
#define GP1OUT_OUT1_MSK (0x1 << 1 )
#define GP1OUT_OUT1 (0x1 << 1 )
#define GP1OUT_OUT1_LOW (0x0 << 1 )
#define GP1OUT_OUT1_HIGH (0x1 << 1 )
/* GP1OUT[OUT0] - Data out */
#define GP1OUT_OUT0_BBA (*(volatile unsigned long *) 0x42400A80)
#define GP1OUT_OUT0_MSK (0x1 << 0 )
#define GP1OUT_OUT0 (0x1 << 0 )
#define GP1OUT_OUT0_LOW (0x0 << 0 )
#define GP1OUT_OUT0_HIGH (0x1 << 0 )
/* Reset Value for GP1SET*/
#define GP1SET_RVAL 0x0
/* GP1SET[SET7] - Set the output HIGH for the pin */
#define GP1SET_SET7_BBA (*(volatile unsigned long *) 0x42400B1C)
#define GP1SET_SET7_MSK (0x1 << 7 )
#define GP1SET_SET7 (0x1 << 7 )
#define GP1SET_SET7_SET (0x1 << 7 )
/* GP1SET[SET6] - Set the output HIGH for the pin */
#define GP1SET_SET6_BBA (*(volatile unsigned long *) 0x42400B18)
#define GP1SET_SET6_MSK (0x1 << 6 )
#define GP1SET_SET6 (0x1 << 6 )
#define GP1SET_SET6_SET (0x1 << 6 )
/* GP1SET[SET5] - Set the output HIGH for the pin */
#define GP1SET_SET5_BBA (*(volatile unsigned long *) 0x42400B14)
#define GP1SET_SET5_MSK (0x1 << 5 )
#define GP1SET_SET5 (0x1 << 5 )
#define GP1SET_SET5_SET (0x1 << 5 )
/* GP1SET[SET4] - Set the output HIGH for the pin */
#define GP1SET_SET4_BBA (*(volatile unsigned long *) 0x42400B10)
#define GP1SET_SET4_MSK (0x1 << 4 )
#define GP1SET_SET4 (0x1 << 4 )
#define GP1SET_SET4_SET (0x1 << 4 )
/* GP1SET[SET3] - Set the output HIGH for the pin */
#define GP1SET_SET3_BBA (*(volatile unsigned long *) 0x42400B0C)
#define GP1SET_SET3_MSK (0x1 << 3 )
#define GP1SET_SET3 (0x1 << 3 )
#define GP1SET_SET3_SET (0x1 << 3 )
/* GP1SET[SET2] - Set the output HIGH for the pin */
#define GP1SET_SET2_BBA (*(volatile unsigned long *) 0x42400B08)
#define GP1SET_SET2_MSK (0x1 << 2 )
#define GP1SET_SET2 (0x1 << 2 )
#define GP1SET_SET2_SET (0x1 << 2 )
/* GP1SET[SET1] - Set the output HIGH for the pin */
#define GP1SET_SET1_BBA (*(volatile unsigned long *) 0x42400B04)
#define GP1SET_SET1_MSK (0x1 << 1 )
#define GP1SET_SET1 (0x1 << 1 )
#define GP1SET_SET1_SET (0x1 << 1 )
/* GP1SET[SET0] - Set the output HIGH for the pin */
#define GP1SET_SET0_BBA (*(volatile unsigned long *) 0x42400B00)
#define GP1SET_SET0_MSK (0x1 << 0 )
#define GP1SET_SET0 (0x1 << 0 )
#define GP1SET_SET0_SET (0x1 << 0 )
/* Reset Value for GP1CLR*/
#define GP1CLR_RVAL 0x0
/* GP1CLR[CLR7] - Set the output low for the port pin */
#define GP1CLR_CLR7_BBA (*(volatile unsigned long *) 0x42400B9C)
#define GP1CLR_CLR7_MSK (0x1 << 7 )
#define GP1CLR_CLR7 (0x1 << 7 )
#define GP1CLR_CLR7_CLR (0x1 << 7 )
/* GP1CLR[CLR6] - Set the output low for the port pin */
#define GP1CLR_CLR6_BBA (*(volatile unsigned long *) 0x42400B98)
#define GP1CLR_CLR6_MSK (0x1 << 6 )
#define GP1CLR_CLR6 (0x1 << 6 )
#define GP1CLR_CLR6_CLR (0x1 << 6 )
/* GP1CLR[CLR5] - Set the output low for the port pin */
#define GP1CLR_CLR5_BBA (*(volatile unsigned long *) 0x42400B94)
#define GP1CLR_CLR5_MSK (0x1 << 5 )
#define GP1CLR_CLR5 (0x1 << 5 )
#define GP1CLR_CLR5_CLR (0x1 << 5 )
/* GP1CLR[CLR4] - Set the output low for the port pin */
#define GP1CLR_CLR4_BBA (*(volatile unsigned long *) 0x42400B90)
#define GP1CLR_CLR4_MSK (0x1 << 4 )
#define GP1CLR_CLR4 (0x1 << 4 )
#define GP1CLR_CLR4_CLR (0x1 << 4 )
/* GP1CLR[CLR3] - Set the output low for the port pin */
#define GP1CLR_CLR3_BBA (*(volatile unsigned long *) 0x42400B8C)
#define GP1CLR_CLR3_MSK (0x1 << 3 )
#define GP1CLR_CLR3 (0x1 << 3 )
#define GP1CLR_CLR3_CLR (0x1 << 3 )
/* GP1CLR[CLR2] - Set the output low for the port pin */
#define GP1CLR_CLR2_BBA (*(volatile unsigned long *) 0x42400B88)
#define GP1CLR_CLR2_MSK (0x1 << 2 )
#define GP1CLR_CLR2 (0x1 << 2 )
#define GP1CLR_CLR2_CLR (0x1 << 2 )
/* GP1CLR[CLR1] - Set the output low for the port pin */
#define GP1CLR_CLR1_BBA (*(volatile unsigned long *) 0x42400B84)
#define GP1CLR_CLR1_MSK (0x1 << 1 )
#define GP1CLR_CLR1 (0x1 << 1 )
#define GP1CLR_CLR1_CLR (0x1 << 1 )
/* GP1CLR[CLR0] - Set the output low for the port pin */
#define GP1CLR_CLR0_BBA (*(volatile unsigned long *) 0x42400B80)
#define GP1CLR_CLR0_MSK (0x1 << 0 )
#define GP1CLR_CLR0 (0x1 << 0 )
#define GP1CLR_CLR0_CLR (0x1 << 0 )
/* Reset Value for GP1TGL*/
#define GP1TGL_RVAL 0x0
/* GP1TGL[TGL7] - Toggle the output of the port pin */
#define GP1TGL_TGL7_BBA (*(volatile unsigned long *) 0x42400C1C)
#define GP1TGL_TGL7_MSK (0x1 << 7 )
#define GP1TGL_TGL7 (0x1 << 7 )
#define GP1TGL_TGL7_TGL (0x1 << 7 )
/* GP1TGL[TGL6] - Toggle the output of the port pin */
#define GP1TGL_TGL6_BBA (*(volatile unsigned long *) 0x42400C18)
#define GP1TGL_TGL6_MSK (0x1 << 6 )
#define GP1TGL_TGL6 (0x1 << 6 )
#define GP1TGL_TGL6_TGL (0x1 << 6 )
/* GP1TGL[TGL5] - Toggle the output of the port pin */
#define GP1TGL_TGL5_BBA (*(volatile unsigned long *) 0x42400C14)
#define GP1TGL_TGL5_MSK (0x1 << 5 )
#define GP1TGL_TGL5 (0x1 << 5 )
#define GP1TGL_TGL5_TGL (0x1 << 5 )
/* GP1TGL[TGL4] - Toggle the output of the port pin */
#define GP1TGL_TGL4_BBA (*(volatile unsigned long *) 0x42400C10)
#define GP1TGL_TGL4_MSK (0x1 << 4 )
#define GP1TGL_TGL4 (0x1 << 4 )
#define GP1TGL_TGL4_TGL (0x1 << 4 )
/* GP1TGL[TGL3] - Toggle the output of the port pin */
#define GP1TGL_TGL3_BBA (*(volatile unsigned long *) 0x42400C0C)
#define GP1TGL_TGL3_MSK (0x1 << 3 )
#define GP1TGL_TGL3 (0x1 << 3 )
#define GP1TGL_TGL3_TGL (0x1 << 3 )
/* GP1TGL[TGL2] - Toggle the output of the port pin */
#define GP1TGL_TGL2_BBA (*(volatile unsigned long *) 0x42400C08)
#define GP1TGL_TGL2_MSK (0x1 << 2 )
#define GP1TGL_TGL2 (0x1 << 2 )
#define GP1TGL_TGL2_TGL (0x1 << 2 )
/* GP1TGL[TGL1] - Toggle the output of the port pin */
#define GP1TGL_TGL1_BBA (*(volatile unsigned long *) 0x42400C04)
#define GP1TGL_TGL1_MSK (0x1 << 1 )
#define GP1TGL_TGL1 (0x1 << 1 )
#define GP1TGL_TGL1_TGL (0x1 << 1 )
/* GP1TGL[TGL0] - Toggle the output of the port pin */
#define GP1TGL_TGL0_BBA (*(volatile unsigned long *) 0x42400C00)
#define GP1TGL_TGL0_MSK (0x1 << 0 )
#define GP1TGL_TGL0 (0x1 << 0 )
#define GP1TGL_TGL0_TGL (0x1 << 0 )
/* Reset Value for GP1ODE*/
#define GP1ODE_RVAL 0x0
/* GP1ODE[ODE7] - Open drain enable */
#define GP1ODE_ODE7_BBA (*(volatile unsigned long *) 0x42400C9C)
#define GP1ODE_ODE7_MSK (0x1 << 7 )
#define GP1ODE_ODE7 (0x1 << 7 )
#define GP1ODE_ODE7_DIS (0x0 << 7 )
#define GP1ODE_ODE7_EN (0x1 << 7 )
/* GP1ODE[ODE6] - Open drain enable */
#define GP1ODE_ODE6_BBA (*(volatile unsigned long *) 0x42400C98)
#define GP1ODE_ODE6_MSK (0x1 << 6 )
#define GP1ODE_ODE6 (0x1 << 6 )
#define GP1ODE_ODE6_DIS (0x0 << 6 )
#define GP1ODE_ODE6_EN (0x1 << 6 )
/* GP1ODE[ODE5] - Open drain enable */
#define GP1ODE_ODE5_BBA (*(volatile unsigned long *) 0x42400C94)
#define GP1ODE_ODE5_MSK (0x1 << 5 )
#define GP1ODE_ODE5 (0x1 << 5 )
#define GP1ODE_ODE5_DIS (0x0 << 5 )
#define GP1ODE_ODE5_EN (0x1 << 5 )
/* GP1ODE[ODE4] - Open drain enable */
#define GP1ODE_ODE4_BBA (*(volatile unsigned long *) 0x42400C90)
#define GP1ODE_ODE4_MSK (0x1 << 4 )
#define GP1ODE_ODE4 (0x1 << 4 )
#define GP1ODE_ODE4_DIS (0x0 << 4 )
#define GP1ODE_ODE4_EN (0x1 << 4 )
/* GP1ODE[ODE3] - Open drain enable */
#define GP1ODE_ODE3_BBA (*(volatile unsigned long *) 0x42400C8C)
#define GP1ODE_ODE3_MSK (0x1 << 3 )
#define GP1ODE_ODE3 (0x1 << 3 )
#define GP1ODE_ODE3_DIS (0x0 << 3 )
#define GP1ODE_ODE3_EN (0x1 << 3 )
/* GP1ODE[ODE2] - Open drain enable */
#define GP1ODE_ODE2_BBA (*(volatile unsigned long *) 0x42400C88)
#define GP1ODE_ODE2_MSK (0x1 << 2 )
#define GP1ODE_ODE2 (0x1 << 2 )
#define GP1ODE_ODE2_DIS (0x0 << 2 )
#define GP1ODE_ODE2_EN (0x1 << 2 )
/* GP1ODE[ODE1] - Open drain enable */
#define GP1ODE_ODE1_BBA (*(volatile unsigned long *) 0x42400C84)
#define GP1ODE_ODE1_MSK (0x1 << 1 )
#define GP1ODE_ODE1 (0x1 << 1 )
#define GP1ODE_ODE1_DIS (0x0 << 1 )
#define GP1ODE_ODE1_EN (0x1 << 1 )
/* GP1ODE[ODE0] - Open drain enable */
#define GP1ODE_ODE0_BBA (*(volatile unsigned long *) 0x42400C80)
#define GP1ODE_ODE0_MSK (0x1 << 0 )
#define GP1ODE_ODE0 (0x1 << 0 )
#define GP1ODE_ODE0_DIS (0x0 << 0 )
#define GP1ODE_ODE0_EN (0x1 << 0 )
// ------------------------------------------------------------------------------------------------
// ----- GPIO_FIX -----
// ------------------------------------------------------------------------------------------------
/**
* @brief gpio (pADI_GPIO_FIX)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_GPIO_FIX Structure */
__IO uint8_t GP1SET; /*!< GPIO Port 1 data out set */
__I uint8_t RESERVED0[3];
__IO uint8_t GP2CLR; /*!< GPIO Port 2 data out clear */
} ADI_GPIO_FIX_TypeDef;
#endif // (__NO_MMR_STRUCTS__==0)
#if (__NO_MMR_STRUCTS__==1)
#define GP2CON (*(volatile unsigned short int *) 0x40020080)
#define GP2OE (*(volatile unsigned char *) 0x40020084)
#define GP2PUL (*(volatile unsigned char *) 0x40020088)
#define GP2IE (*(volatile unsigned char *) 0x4002008C)
#define GP2IN (*(volatile unsigned char *) 0x40020090)
#define GP2OUT (*(volatile unsigned char *) 0x40020094)
#define GP2SET (*(volatile unsigned char *) 0x40020098)
#define GP2CLR (*(volatile unsigned char *) 0x4002009C)
#define GP2TGL (*(volatile unsigned char *) 0x400200A0)
#define GP2ODE (*(volatile unsigned char *) 0x400200A4)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for GP2CON*/
#define GP2CON_RVAL 0x10
/* GP2CON[CON7] - p2.7 configuration bits */
#define GP2CON_CON7_MSK (0x3 << 14 )
#define GP2CON_CON7_GPIOIRQ8 (0x0 << 14 ) /* GPIO/IRQ8 */
#define GP2CON_CON7_PLAO11 (0x3 << 14 ) /* PLAO[11] */
/* GP2CON[CON6] - p2.6 configuration bits */
#define GP2CON_CON6_MSK (0x3 << 12 )
#define GP2CON_CON6_GPIOIRQ7 (0x0 << 12 ) /* GPIO/IRQ7 */
#define GP2CON_CON6_PLAO10 (0x3 << 12 ) /* PLAO[10] */
/* GP2CON[CON5] - p2.5 configuration bits */
#define GP2CON_CON5_MSK (0x3 << 10 )
#define GP2CON_CON5_GPIOIRQ6 (0x0 << 10 ) /* GPIO/IRQ6 */
#define GP2CON_CON5_PWM7 (0x2 << 10 ) /* PWM7 */
#define GP2CON_CON5_PLAO9 (0x3 << 10 ) /* PLAO[9] */
/* GP2CON[CON4] - p2.4 configuration bits */
#define GP2CON_CON4_MSK (0x3 << 8 )
#define GP2CON_CON4_GIPOIRQ5 (0x0 << 8 ) /* GPIO/IRQ5 */
#define GP2CON_CON4_ADCCONVSTIN (0x1 << 8 ) /* ADC_CONVST input */
#define GP2CON_CON4_PWM6 (0x2 << 8 ) /* PWM6 */
#define GP2CON_CON4_PLAO8 (0x3 << 8 ) /* PLAO[8] */
/* GP2CON[CON3] - p2.3 configuration bits */
#define GP2CON_CON3_MSK (0x3 << 6 )
#define GP2CON_CON3_GPIOBM (0x0 << 6 ) /* GPIO/BM */
/* GP2CON[CON2] - p2.2 configuration bits */
#define GP2CON_CON2_MSK (0x3 << 4 )
#define GP2CON_CON2_GPIOIRQ4 (0x0 << 4 ) /* GPIO/IRQ4 */
#define GP2CON_CON2_EXTCLKOUT (0x2 << 4 ) /* External Clock output */
#define GP2CON_CON2_PLAI10 (0x3 << 4 ) /* PLAI[10] */
/* GP2CON[CON1] - p2.1 configuration bits */
#define GP2CON_CON1_MSK (0x3 << 2 )
#define GP2CON_CON1_GPIOIRQ3 (0x0 << 2 ) /* GPIO/IRQ3 */
#define GP2CON_CON1_PWMSYNC (0x1 << 2 ) /* PWM Sync */
#define GP2CON_CON1_PLAI9 (0x3 << 2 ) /* PLAI[9] */
/* GP2CON[CON0] - p2.0 configuration bits */
#define GP2CON_CON0_MSK (0x3 << 0 )
#define GP2CON_CON0_GPIOIRQ2 (0x0 << 0 ) /* GPIO/IRQ2 */
#define GP2CON_CON0_PWMTRIP (0x1 << 0 ) /* PWM Trip */
#define GP2CON_CON0_PLACLK2 (0x2 << 0 ) /* PLA CLK2 */
#define GP2CON_CON0_PLAI8 (0x3 << 0 ) /* PLAI[8] */
/* Reset Value for GP2OE*/
#define GP2OE_RVAL 0x0
/* GP2OE[OE7] - Pin Output Drive enable */
#define GP2OE_OE7_BBA (*(volatile unsigned long *) 0x4240109C)
#define GP2OE_OE7_MSK (0x1 << 7 )
#define GP2OE_OE7 (0x1 << 7 )
#define GP2OE_OE7_DIS (0x0 << 7 )
#define GP2OE_OE7_EN (0x1 << 7 )
/* GP2OE[OE6] - Pin Output Drive enable */
#define GP2OE_OE6_BBA (*(volatile unsigned long *) 0x42401098)
#define GP2OE_OE6_MSK (0x1 << 6 )
#define GP2OE_OE6 (0x1 << 6 )
#define GP2OE_OE6_DIS (0x0 << 6 )
#define GP2OE_OE6_EN (0x1 << 6 )
/* GP2OE[OE5] - Pin Output Drive enable */
#define GP2OE_OE5_BBA (*(volatile unsigned long *) 0x42401094)
#define GP2OE_OE5_MSK (0x1 << 5 )
#define GP2OE_OE5 (0x1 << 5 )
#define GP2OE_OE5_DIS (0x0 << 5 )
#define GP2OE_OE5_EN (0x1 << 5 )
/* GP2OE[OE4] - Pin Output Drive enable */
#define GP2OE_OE4_BBA (*(volatile unsigned long *) 0x42401090)
#define GP2OE_OE4_MSK (0x1 << 4 )
#define GP2OE_OE4 (0x1 << 4 )
#define GP2OE_OE4_DIS (0x0 << 4 )
#define GP2OE_OE4_EN (0x1 << 4 )
/* GP2OE[OE3] - Pin Output Drive enable */
#define GP2OE_OE3_BBA (*(volatile unsigned long *) 0x4240108C)
#define GP2OE_OE3_MSK (0x1 << 3 )
#define GP2OE_OE3 (0x1 << 3 )
#define GP2OE_OE3_DIS (0x0 << 3 )
#define GP2OE_OE3_EN (0x1 << 3 )
/* GP2OE[OE2] - Pin Output Drive enable */
#define GP2OE_OE2_BBA (*(volatile unsigned long *) 0x42401088)
#define GP2OE_OE2_MSK (0x1 << 2 )
#define GP2OE_OE2 (0x1 << 2 )
#define GP2OE_OE2_DIS (0x0 << 2 )
#define GP2OE_OE2_EN (0x1 << 2 )
/* GP2OE[OE1] - Pin Output Drive enable */
#define GP2OE_OE1_BBA (*(volatile unsigned long *) 0x42401084)
#define GP2OE_OE1_MSK (0x1 << 1 )
#define GP2OE_OE1 (0x1 << 1 )
#define GP2OE_OE1_DIS (0x0 << 1 )
#define GP2OE_OE1_EN (0x1 << 1 )
/* GP2OE[OE0] - Pin Output Drive enable */
#define GP2OE_OE0_BBA (*(volatile unsigned long *) 0x42401080)
#define GP2OE_OE0_MSK (0x1 << 0 )
#define GP2OE_OE0 (0x1 << 0 )
#define GP2OE_OE0_DIS (0x0 << 0 )
#define GP2OE_OE0_EN (0x1 << 0 )
/* Reset Value for GP2PUL*/
#define GP2PUL_RVAL 0x0
/* GP2PUL[PUL7] - Pin Pull up enable */
#define GP2PUL_PUL7_BBA (*(volatile unsigned long *) 0x4240111C)
#define GP2PUL_PUL7_MSK (0x1 << 7 )
#define GP2PUL_PUL7 (0x1 << 7 )
#define GP2PUL_PUL7_DIS (0x0 << 7 )
#define GP2PUL_PUL7_EN (0x1 << 7 )
/* GP2PUL[PUL6] - Pin Pull up enable */
#define GP2PUL_PUL6_BBA (*(volatile unsigned long *) 0x42401118)
#define GP2PUL_PUL6_MSK (0x1 << 6 )
#define GP2PUL_PUL6 (0x1 << 6 )
#define GP2PUL_PUL6_DIS (0x0 << 6 )
#define GP2PUL_PUL6_EN (0x1 << 6 )
/* GP2PUL[PUL5] - Pin Pull up enable */
#define GP2PUL_PUL5_BBA (*(volatile unsigned long *) 0x42401114)
#define GP2PUL_PUL5_MSK (0x1 << 5 )
#define GP2PUL_PUL5 (0x1 << 5 )
#define GP2PUL_PUL5_DIS (0x0 << 5 )
#define GP2PUL_PUL5_EN (0x1 << 5 )
/* GP2PUL[PUL4] - Pin Pull up enable */
#define GP2PUL_PUL4_BBA (*(volatile unsigned long *) 0x42401110)
#define GP2PUL_PUL4_MSK (0x1 << 4 )
#define GP2PUL_PUL4 (0x1 << 4 )
#define GP2PUL_PUL4_DIS (0x0 << 4 )
#define GP2PUL_PUL4_EN (0x1 << 4 )
/* GP2PUL[PUL3] - Pin Pull up enable */
#define GP2PUL_PUL3_BBA (*(volatile unsigned long *) 0x4240110C)
#define GP2PUL_PUL3_MSK (0x1 << 3 )
#define GP2PUL_PUL3 (0x1 << 3 )
#define GP2PUL_PUL3_DIS (0x0 << 3 )
#define GP2PUL_PUL3_EN (0x1 << 3 )
/* GP2PUL[PUL2] - Pin Pull up enable */
#define GP2PUL_PUL2_BBA (*(volatile unsigned long *) 0x42401108)
#define GP2PUL_PUL2_MSK (0x1 << 2 )
#define GP2PUL_PUL2 (0x1 << 2 )
#define GP2PUL_PUL2_DIS (0x0 << 2 )
#define GP2PUL_PUL2_EN (0x1 << 2 )
/* GP2PUL[PUL1] - Pin Pull up enable */
#define GP2PUL_PUL1_BBA (*(volatile unsigned long *) 0x42401104)
#define GP2PUL_PUL1_MSK (0x1 << 1 )
#define GP2PUL_PUL1 (0x1 << 1 )
#define GP2PUL_PUL1_DIS (0x0 << 1 )
#define GP2PUL_PUL1_EN (0x1 << 1 )
/* GP2PUL[PUL0] - Pin Pull up enable */
#define GP2PUL_PUL0_BBA (*(volatile unsigned long *) 0x42401100)
#define GP2PUL_PUL0_MSK (0x1 << 0 )
#define GP2PUL_PUL0 (0x1 << 0 )
#define GP2PUL_PUL0_DIS (0x0 << 0 )
#define GP2PUL_PUL0_EN (0x1 << 0 )
/* Reset Value for GP2IE*/
#define GP2IE_RVAL 0x0
/* GP2IE[IEN7] - Input path enable */
#define GP2IE_IEN7_BBA (*(volatile unsigned long *) 0x4240119C)
#define GP2IE_IEN7_MSK (0x1 << 7 )
#define GP2IE_IEN7 (0x1 << 7 )
#define GP2IE_IEN7_DIS (0x0 << 7 )
#define GP2IE_IEN7_EN (0x1 << 7 )
/* GP2IE[IEN6] - Input path enable */
#define GP2IE_IEN6_BBA (*(volatile unsigned long *) 0x42401198)
#define GP2IE_IEN6_MSK (0x1 << 6 )
#define GP2IE_IEN6 (0x1 << 6 )
#define GP2IE_IEN6_DIS (0x0 << 6 )
#define GP2IE_IEN6_EN (0x1 << 6 )
/* GP2IE[IEN5] - Input path enable */
#define GP2IE_IEN5_BBA (*(volatile unsigned long *) 0x42401194)
#define GP2IE_IEN5_MSK (0x1 << 5 )
#define GP2IE_IEN5 (0x1 << 5 )
#define GP2IE_IEN5_DIS (0x0 << 5 )
#define GP2IE_IEN5_EN (0x1 << 5 )
/* GP2IE[IEN4] - Input path enable */
#define GP2IE_IEN4_BBA (*(volatile unsigned long *) 0x42401190)
#define GP2IE_IEN4_MSK (0x1 << 4 )
#define GP2IE_IEN4 (0x1 << 4 )
#define GP2IE_IEN4_DIS (0x0 << 4 )
#define GP2IE_IEN4_EN (0x1 << 4 )
/* GP2IE[IEN3] - Input path enable */
#define GP2IE_IEN3_BBA (*(volatile unsigned long *) 0x4240118C)
#define GP2IE_IEN3_MSK (0x1 << 3 )
#define GP2IE_IEN3 (0x1 << 3 )
#define GP2IE_IEN3_DIS (0x0 << 3 )
#define GP2IE_IEN3_EN (0x1 << 3 )
/* GP2IE[IEN2] - Input path enable */
#define GP2IE_IEN2_BBA (*(volatile unsigned long *) 0x42401188)
#define GP2IE_IEN2_MSK (0x1 << 2 )
#define GP2IE_IEN2 (0x1 << 2 )
#define GP2IE_IEN2_DIS (0x0 << 2 )
#define GP2IE_IEN2_EN (0x1 << 2 )
/* GP2IE[IEN1] - Input path enable */
#define GP2IE_IEN1_BBA (*(volatile unsigned long *) 0x42401184)
#define GP2IE_IEN1_MSK (0x1 << 1 )
#define GP2IE_IEN1 (0x1 << 1 )
#define GP2IE_IEN1_DIS (0x0 << 1 )
#define GP2IE_IEN1_EN (0x1 << 1 )
/* GP2IE[IEN0] - Input path enable */
#define GP2IE_IEN0_BBA (*(volatile unsigned long *) 0x42401180)
#define GP2IE_IEN0_MSK (0x1 << 0 )
#define GP2IE_IEN0 (0x1 << 0 )
#define GP2IE_IEN0_DIS (0x0 << 0 )
#define GP2IE_IEN0_EN (0x1 << 0 )
/* Reset Value for GP2IN*/
#define GP2IN_RVAL 0x0
/* GP2IN[IN7] - Registered data input */
#define GP2IN_IN7_BBA (*(volatile unsigned long *) 0x4240121C)
#define GP2IN_IN7_MSK (0x1 << 7 )
#define GP2IN_IN7 (0x1 << 7 )
#define GP2IN_IN7_LOW (0x0 << 7 )
#define GP2IN_IN7_HIGH (0x1 << 7 )
/* GP2IN[IN6] - Registered data input */
#define GP2IN_IN6_BBA (*(volatile unsigned long *) 0x42401218)
#define GP2IN_IN6_MSK (0x1 << 6 )
#define GP2IN_IN6 (0x1 << 6 )
#define GP2IN_IN6_LOW (0x0 << 6 )
#define GP2IN_IN6_HIGH (0x1 << 6 )
/* GP2IN[IN5] - Registered data input */
#define GP2IN_IN5_BBA (*(volatile unsigned long *) 0x42401214)
#define GP2IN_IN5_MSK (0x1 << 5 )
#define GP2IN_IN5 (0x1 << 5 )
#define GP2IN_IN5_LOW (0x0 << 5 )
#define GP2IN_IN5_HIGH (0x1 << 5 )
/* GP2IN[IN4] - Registered data input */
#define GP2IN_IN4_BBA (*(volatile unsigned long *) 0x42401210)
#define GP2IN_IN4_MSK (0x1 << 4 )
#define GP2IN_IN4 (0x1 << 4 )
#define GP2IN_IN4_LOW (0x0 << 4 )
#define GP2IN_IN4_HIGH (0x1 << 4 )
/* GP2IN[IN3] - Registered data input */
#define GP2IN_IN3_BBA (*(volatile unsigned long *) 0x4240120C)
#define GP2IN_IN3_MSK (0x1 << 3 )
#define GP2IN_IN3 (0x1 << 3 )
#define GP2IN_IN3_LOW (0x0 << 3 )
#define GP2IN_IN3_HIGH (0x1 << 3 )
/* GP2IN[IN2] - Registered data input */
#define GP2IN_IN2_BBA (*(volatile unsigned long *) 0x42401208)
#define GP2IN_IN2_MSK (0x1 << 2 )
#define GP2IN_IN2 (0x1 << 2 )
#define GP2IN_IN2_LOW (0x0 << 2 )
#define GP2IN_IN2_HIGH (0x1 << 2 )
/* GP2IN[IN1] - Registered data input */
#define GP2IN_IN1_BBA (*(volatile unsigned long *) 0x42401204)
#define GP2IN_IN1_MSK (0x1 << 1 )
#define GP2IN_IN1 (0x1 << 1 )
#define GP2IN_IN1_LOW (0x0 << 1 )
#define GP2IN_IN1_HIGH (0x1 << 1 )
/* GP2IN[IN0] - Registered data input */
#define GP2IN_IN0_BBA (*(volatile unsigned long *) 0x42401200)
#define GP2IN_IN0_MSK (0x1 << 0 )
#define GP2IN_IN0 (0x1 << 0 )
#define GP2IN_IN0_LOW (0x0 << 0 )
#define GP2IN_IN0_HIGH (0x1 << 0 )
/* Reset Value for GP2OUT*/
#define GP2OUT_RVAL 0x0
/* GP2OUT[OUT7] - Data out */
#define GP2OUT_OUT7_BBA (*(volatile unsigned long *) 0x4240129C)
#define GP2OUT_OUT7_MSK (0x1 << 7 )
#define GP2OUT_OUT7 (0x1 << 7 )
#define GP2OUT_OUT7_LOW (0x0 << 7 )
#define GP2OUT_OUT7_HIGH (0x1 << 7 )
/* GP2OUT[OUT6] - Data out */
#define GP2OUT_OUT6_BBA (*(volatile unsigned long *) 0x42401298)
#define GP2OUT_OUT6_MSK (0x1 << 6 )
#define GP2OUT_OUT6 (0x1 << 6 )
#define GP2OUT_OUT6_LOW (0x0 << 6 )
#define GP2OUT_OUT6_HIGH (0x1 << 6 )
/* GP2OUT[OUT5] - Data out */
#define GP2OUT_OUT5_BBA (*(volatile unsigned long *) 0x42401294)
#define GP2OUT_OUT5_MSK (0x1 << 5 )
#define GP2OUT_OUT5 (0x1 << 5 )
#define GP2OUT_OUT5_LOW (0x0 << 5 )
#define GP2OUT_OUT5_HIGH (0x1 << 5 )
/* GP2OUT[OUT4] - Data out */
#define GP2OUT_OUT4_BBA (*(volatile unsigned long *) 0x42401290)
#define GP2OUT_OUT4_MSK (0x1 << 4 )
#define GP2OUT_OUT4 (0x1 << 4 )
#define GP2OUT_OUT4_LOW (0x0 << 4 )
#define GP2OUT_OUT4_HIGH (0x1 << 4 )
/* GP2OUT[OUT3] - Data out */
#define GP2OUT_OUT3_BBA (*(volatile unsigned long *) 0x4240128C)
#define GP2OUT_OUT3_MSK (0x1 << 3 )
#define GP2OUT_OUT3 (0x1 << 3 )
#define GP2OUT_OUT3_LOW (0x0 << 3 )
#define GP2OUT_OUT3_HIGH (0x1 << 3 )
/* GP2OUT[OUT2] - Data out */
#define GP2OUT_OUT2_BBA (*(volatile unsigned long *) 0x42401288)
#define GP2OUT_OUT2_MSK (0x1 << 2 )
#define GP2OUT_OUT2 (0x1 << 2 )
#define GP2OUT_OUT2_LOW (0x0 << 2 )
#define GP2OUT_OUT2_HIGH (0x1 << 2 )
/* GP2OUT[OUT1] - Data out */
#define GP2OUT_OUT1_BBA (*(volatile unsigned long *) 0x42401284)
#define GP2OUT_OUT1_MSK (0x1 << 1 )
#define GP2OUT_OUT1 (0x1 << 1 )
#define GP2OUT_OUT1_LOW (0x0 << 1 )
#define GP2OUT_OUT1_HIGH (0x1 << 1 )
/* GP2OUT[OUT0] - Data out */
#define GP2OUT_OUT0_BBA (*(volatile unsigned long *) 0x42401280)
#define GP2OUT_OUT0_MSK (0x1 << 0 )
#define GP2OUT_OUT0 (0x1 << 0 )
#define GP2OUT_OUT0_LOW (0x0 << 0 )
#define GP2OUT_OUT0_HIGH (0x1 << 0 )
/* Reset Value for GP2SET*/
#define GP2SET_RVAL 0x0
/* GP2SET[SET7] - Set the output HIGH for the pin */
#define GP2SET_SET7_BBA (*(volatile unsigned long *) 0x4240131C)
#define GP2SET_SET7_MSK (0x1 << 7 )
#define GP2SET_SET7 (0x1 << 7 )
#define GP2SET_SET7_SET (0x1 << 7 )
/* GP2SET[SET6] - Set the output HIGH for the pin */
#define GP2SET_SET6_BBA (*(volatile unsigned long *) 0x42401318)
#define GP2SET_SET6_MSK (0x1 << 6 )
#define GP2SET_SET6 (0x1 << 6 )
#define GP2SET_SET6_SET (0x1 << 6 )
/* GP2SET[SET5] - Set the output HIGH for the pin */
#define GP2SET_SET5_BBA (*(volatile unsigned long *) 0x42401314)
#define GP2SET_SET5_MSK (0x1 << 5 )
#define GP2SET_SET5 (0x1 << 5 )
#define GP2SET_SET5_SET (0x1 << 5 )
/* GP2SET[SET4] - Set the output HIGH for the pin */
#define GP2SET_SET4_BBA (*(volatile unsigned long *) 0x42401310)
#define GP2SET_SET4_MSK (0x1 << 4 )
#define GP2SET_SET4 (0x1 << 4 )
#define GP2SET_SET4_SET (0x1 << 4 )
/* GP2SET[SET3] - Set the output HIGH for the pin */
#define GP2SET_SET3_BBA (*(volatile unsigned long *) 0x4240130C)
#define GP2SET_SET3_MSK (0x1 << 3 )
#define GP2SET_SET3 (0x1 << 3 )
#define GP2SET_SET3_SET (0x1 << 3 )
/* GP2SET[SET2] - Set the output HIGH for the pin */
#define GP2SET_SET2_BBA (*(volatile unsigned long *) 0x42401308)
#define GP2SET_SET2_MSK (0x1 << 2 )
#define GP2SET_SET2 (0x1 << 2 )
#define GP2SET_SET2_SET (0x1 << 2 )
/* GP2SET[SET1] - Set the output HIGH for the pin */
#define GP2SET_SET1_BBA (*(volatile unsigned long *) 0x42401304)
#define GP2SET_SET1_MSK (0x1 << 1 )
#define GP2SET_SET1 (0x1 << 1 )
#define GP2SET_SET1_SET (0x1 << 1 )
/* GP2SET[SET0] - Set the output HIGH for the pin */
#define GP2SET_SET0_BBA (*(volatile unsigned long *) 0x42401300)
#define GP2SET_SET0_MSK (0x1 << 0 )
#define GP2SET_SET0 (0x1 << 0 )
#define GP2SET_SET0_SET (0x1 << 0 )
/* Reset Value for GP2CLR*/
#define GP2CLR_RVAL 0x0
/* GP2CLR[CLR7] - Set the output low for the port pin */
#define GP2CLR_CLR7_BBA (*(volatile unsigned long *) 0x4240139C)
#define GP2CLR_CLR7_MSK (0x1 << 7 )
#define GP2CLR_CLR7 (0x1 << 7 )
#define GP2CLR_CLR7_CLR (0x1 << 7 )
/* GP2CLR[CLR6] - Set the output low for the port pin */
#define GP2CLR_CLR6_BBA (*(volatile unsigned long *) 0x42401398)
#define GP2CLR_CLR6_MSK (0x1 << 6 )
#define GP2CLR_CLR6 (0x1 << 6 )
#define GP2CLR_CLR6_CLR (0x1 << 6 )
/* GP2CLR[CLR5] - Set the output low for the port pin */
#define GP2CLR_CLR5_BBA (*(volatile unsigned long *) 0x42401394)
#define GP2CLR_CLR5_MSK (0x1 << 5 )
#define GP2CLR_CLR5 (0x1 << 5 )
#define GP2CLR_CLR5_CLR (0x1 << 5 )
/* GP2CLR[CLR4] - Set the output low for the port pin */
#define GP2CLR_CLR4_BBA (*(volatile unsigned long *) 0x42401390)
#define GP2CLR_CLR4_MSK (0x1 << 4 )
#define GP2CLR_CLR4 (0x1 << 4 )
#define GP2CLR_CLR4_CLR (0x1 << 4 )
/* GP2CLR[CLR3] - Set the output low for the port pin */
#define GP2CLR_CLR3_BBA (*(volatile unsigned long *) 0x4240138C)
#define GP2CLR_CLR3_MSK (0x1 << 3 )
#define GP2CLR_CLR3 (0x1 << 3 )
#define GP2CLR_CLR3_CLR (0x1 << 3 )
/* GP2CLR[CLR2] - Set the output low for the port pin */
#define GP2CLR_CLR2_BBA (*(volatile unsigned long *) 0x42401388)
#define GP2CLR_CLR2_MSK (0x1 << 2 )
#define GP2CLR_CLR2 (0x1 << 2 )
#define GP2CLR_CLR2_CLR (0x1 << 2 )
/* GP2CLR[CLR1] - Set the output low for the port pin */
#define GP2CLR_CLR1_BBA (*(volatile unsigned long *) 0x42401384)
#define GP2CLR_CLR1_MSK (0x1 << 1 )
#define GP2CLR_CLR1 (0x1 << 1 )
#define GP2CLR_CLR1_CLR (0x1 << 1 )
/* GP2CLR[CLR0] - Set the output low for the port pin */
#define GP2CLR_CLR0_BBA (*(volatile unsigned long *) 0x42401380)
#define GP2CLR_CLR0_MSK (0x1 << 0 )
#define GP2CLR_CLR0 (0x1 << 0 )
#define GP2CLR_CLR0_CLR (0x1 << 0 )
/* Reset Value for GP2TGL*/
#define GP2TGL_RVAL 0x0
/* GP2TGL[TGL7] - Toggle the output of the port pin */
#define GP2TGL_TGL7_BBA (*(volatile unsigned long *) 0x4240141C)
#define GP2TGL_TGL7_MSK (0x1 << 7 )
#define GP2TGL_TGL7 (0x1 << 7 )
#define GP2TGL_TGL7_TGL (0x1 << 7 )
/* GP2TGL[TGL6] - Toggle the output of the port pin */
#define GP2TGL_TGL6_BBA (*(volatile unsigned long *) 0x42401418)
#define GP2TGL_TGL6_MSK (0x1 << 6 )
#define GP2TGL_TGL6 (0x1 << 6 )
#define GP2TGL_TGL6_TGL (0x1 << 6 )
/* GP2TGL[TGL5] - Toggle the output of the port pin */
#define GP2TGL_TGL5_BBA (*(volatile unsigned long *) 0x42401414)
#define GP2TGL_TGL5_MSK (0x1 << 5 )
#define GP2TGL_TGL5 (0x1 << 5 )
#define GP2TGL_TGL5_TGL (0x1 << 5 )
/* GP2TGL[TGL4] - Toggle the output of the port pin */
#define GP2TGL_TGL4_BBA (*(volatile unsigned long *) 0x42401410)
#define GP2TGL_TGL4_MSK (0x1 << 4 )
#define GP2TGL_TGL4 (0x1 << 4 )
#define GP2TGL_TGL4_TGL (0x1 << 4 )
/* GP2TGL[TGL3] - Toggle the output of the port pin */
#define GP2TGL_TGL3_BBA (*(volatile unsigned long *) 0x4240140C)
#define GP2TGL_TGL3_MSK (0x1 << 3 )
#define GP2TGL_TGL3 (0x1 << 3 )
#define GP2TGL_TGL3_TGL (0x1 << 3 )
/* GP2TGL[TGL2] - Toggle the output of the port pin */
#define GP2TGL_TGL2_BBA (*(volatile unsigned long *) 0x42401408)
#define GP2TGL_TGL2_MSK (0x1 << 2 )
#define GP2TGL_TGL2 (0x1 << 2 )
#define GP2TGL_TGL2_TGL (0x1 << 2 )
/* GP2TGL[TGL1] - Toggle the output of the port pin */
#define GP2TGL_TGL1_BBA (*(volatile unsigned long *) 0x42401404)
#define GP2TGL_TGL1_MSK (0x1 << 1 )
#define GP2TGL_TGL1 (0x1 << 1 )
#define GP2TGL_TGL1_TGL (0x1 << 1 )
/* GP2TGL[TGL0] - Toggle the output of the port pin */
#define GP2TGL_TGL0_BBA (*(volatile unsigned long *) 0x42401400)
#define GP2TGL_TGL0_MSK (0x1 << 0 )
#define GP2TGL_TGL0 (0x1 << 0 )
#define GP2TGL_TGL0_TGL (0x1 << 0 )
/* Reset Value for GP2ODE*/
#define GP2ODE_RVAL 0x0
/* GP2ODE[ODE7] - Open drain enable */
#define GP2ODE_ODE7_BBA (*(volatile unsigned long *) 0x4240149C)
#define GP2ODE_ODE7_MSK (0x1 << 7 )
#define GP2ODE_ODE7 (0x1 << 7 )
#define GP2ODE_ODE7_DIS (0x0 << 7 )
#define GP2ODE_ODE7_EN (0x1 << 7 )
/* GP2ODE[ODE6] - Open drain enable */
#define GP2ODE_ODE6_BBA (*(volatile unsigned long *) 0x42401498)
#define GP2ODE_ODE6_MSK (0x1 << 6 )
#define GP2ODE_ODE6 (0x1 << 6 )
#define GP2ODE_ODE6_DIS (0x0 << 6 )
#define GP2ODE_ODE6_EN (0x1 << 6 )
/* GP2ODE[ODE5] - Open drain enable */
#define GP2ODE_ODE5_BBA (*(volatile unsigned long *) 0x42401494)
#define GP2ODE_ODE5_MSK (0x1 << 5 )
#define GP2ODE_ODE5 (0x1 << 5 )
#define GP2ODE_ODE5_DIS (0x0 << 5 )
#define GP2ODE_ODE5_EN (0x1 << 5 )
/* GP2ODE[ODE4] - Open drain enable */
#define GP2ODE_ODE4_BBA (*(volatile unsigned long *) 0x42401490)
#define GP2ODE_ODE4_MSK (0x1 << 4 )
#define GP2ODE_ODE4 (0x1 << 4 )
#define GP2ODE_ODE4_DIS (0x0 << 4 )
#define GP2ODE_ODE4_EN (0x1 << 4 )
/* GP2ODE[ODE3] - Open drain enable */
#define GP2ODE_ODE3_BBA (*(volatile unsigned long *) 0x4240148C)
#define GP2ODE_ODE3_MSK (0x1 << 3 )
#define GP2ODE_ODE3 (0x1 << 3 )
#define GP2ODE_ODE3_DIS (0x0 << 3 )
#define GP2ODE_ODE3_EN (0x1 << 3 )
/* GP2ODE[ODE2] - Open drain enable */
#define GP2ODE_ODE2_BBA (*(volatile unsigned long *) 0x42401488)
#define GP2ODE_ODE2_MSK (0x1 << 2 )
#define GP2ODE_ODE2 (0x1 << 2 )
#define GP2ODE_ODE2_DIS (0x0 << 2 )
#define GP2ODE_ODE2_EN (0x1 << 2 )
/* GP2ODE[ODE1] - Open drain enable */
#define GP2ODE_ODE1_BBA (*(volatile unsigned long *) 0x42401484)
#define GP2ODE_ODE1_MSK (0x1 << 1 )
#define GP2ODE_ODE1 (0x1 << 1 )
#define GP2ODE_ODE1_DIS (0x0 << 1 )
#define GP2ODE_ODE1_EN (0x1 << 1 )
/* GP2ODE[ODE0] - Open drain enable */
#define GP2ODE_ODE0_BBA (*(volatile unsigned long *) 0x42401480)
#define GP2ODE_ODE0_MSK (0x1 << 0 )
#define GP2ODE_ODE0 (0x1 << 0 )
#define GP2ODE_ODE0_DIS (0x0 << 0 )
#define GP2ODE_ODE0_EN (0x1 << 0 )
#if (__NO_MMR_STRUCTS__==1)
#define GP3CON (*(volatile unsigned short int *) 0x400200C0)
#define GP3OE (*(volatile unsigned char *) 0x400200C4)
#define GP3PUL (*(volatile unsigned char *) 0x400200C8)
#define GP3IE (*(volatile unsigned char *) 0x400200CC)
#define GP3IN (*(volatile unsigned char *) 0x400200D0)
#define GP3OUT (*(volatile unsigned char *) 0x400200D4)
#define GP3SET (*(volatile unsigned char *) 0x400200D8)
#define GP3CLR (*(volatile unsigned char *) 0x400200DC)
#define GP3TGL (*(volatile unsigned char *) 0x400200E0)
#define GP3ODE (*(volatile unsigned char *) 0x400200E4)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for GP3CON*/
#define GP3CON_RVAL 0x0
/* GP3CON[CON7] - p3.7 configuration bits */
#define GP3CON_CON7_MSK (0x3 << 14 )
#define GP3CON_CON7_GPIO (0x0 << 14 ) /* GPIO */
#define GP3CON_CON7_VDAC2 (0x1 << 14 ) /* VDAC2 */
#define GP3CON_CON7_PLAO15 (0x3 << 14 ) /* PLAO[15] */
/* GP3CON[CON6] - p3.6 configuration bits */
#define GP3CON_CON6_MSK (0x3 << 12 )
#define GP3CON_CON6_GPIO (0x0 << 12 ) /* GPIO */
#define GP3CON_CON6_MDIO (0x1 << 12 ) /* MDIO MDIO */
#define GP3CON_CON6_PLAO14 (0x3 << 12 ) /* PLAO[14] */
/* GP3CON[CON5] - p3.5 configuration bits */
#define GP3CON_CON5_MSK (0x3 << 10 )
#define GP3CON_CON5_GPIO (0x0 << 10 ) /* GPIO */
#define GP3CON_CON5_MCLK (0x1 << 10 ) /* MDIO MCK */
#define GP3CON_CON5_PLAO13 (0x3 << 10 ) /* PLAO[13] */
/* GP3CON[CON4] - p3.4 configuration bits */
#define GP3CON_CON4_MSK (0x3 << 8 )
#define GP3CON_CON4_GPIO (0x0 << 8 ) /* GPIO */
#define GP3CON_CON4_PRTADDR4 (0x1 << 8 ) /* MDIO PRTADDR4 */
#define GP3CON_CON4_PLAO12 (0x3 << 8 ) /* PLAO[12] */
/* GP3CON[CON3] - p3.3 configuration bits */
#define GP3CON_CON3_MSK (0x3 << 6 )
#define GP3CON_CON3_GPIO (0x0 << 6 ) /* GPIO */
#define GP3CON_CON3_PRTADDR3 (0x1 << 6 ) /* MDIO PRTADDR3 */
#define GP3CON_CON3_PLAI15 (0x3 << 6 ) /* PLAI[15] */
/* GP3CON[CON2] - p3.2 configuration bits */
#define GP3CON_CON2_MSK (0x3 << 4 )
#define GP3CON_CON2_GPIO (0x0 << 4 ) /* GPIO */
#define GP3CON_CON2_PRTADDR2 (0x1 << 4 ) /* MDIO PRTADDR2 */
#define GP3CON_CON2_PLAI14 (0x3 << 4 ) /* PLAI[14] */
/* GP3CON[CON1] - p3.1 configuration bits */
#define GP3CON_CON1_MSK (0x3 << 2 )
#define GP3CON_CON1_GPIO (0x0 << 2 ) /* GPIO */
#define GP3CON_CON1_PRTADDR1 (0x1 << 2 ) /* MDIO PRTADDR1 */
#define GP3CON_CON1_PLAI13 (0x3 << 2 ) /* PLAI[13] */
/* GP3CON[CON0] - p3.0 configuration bits */
#define GP3CON_CON0_MSK (0x3 << 0 )
#define GP3CON_CON0_GPIO (0x0 << 0 ) /* GPIO */
#define GP3CON_CON0_PRTADDR0 (0x1 << 0 ) /* MDIO PRTADDR0 */
#define GP3CON_CON0_PLAI12 (0x3 << 0 ) /* PLAI[12] */
/* Reset Value for GP3OE*/
#define GP3OE_RVAL 0x0
/* GP3OE[OE7] - Pin Output Drive enable */
#define GP3OE_OE7_BBA (*(volatile unsigned long *) 0x4240189C)
#define GP3OE_OE7_MSK (0x1 << 7 )
#define GP3OE_OE7 (0x1 << 7 )
#define GP3OE_OE7_DIS (0x0 << 7 )
#define GP3OE_OE7_EN (0x1 << 7 )
/* GP3OE[OE6] - Pin Output Drive enable */
#define GP3OE_OE6_BBA (*(volatile unsigned long *) 0x42401898)
#define GP3OE_OE6_MSK (0x1 << 6 )
#define GP3OE_OE6 (0x1 << 6 )
#define GP3OE_OE6_DIS (0x0 << 6 )
#define GP3OE_OE6_EN (0x1 << 6 )
/* GP3OE[OE5] - Pin Output Drive enable */
#define GP3OE_OE5_BBA (*(volatile unsigned long *) 0x42401894)
#define GP3OE_OE5_MSK (0x1 << 5 )
#define GP3OE_OE5 (0x1 << 5 )
#define GP3OE_OE5_DIS (0x0 << 5 )
#define GP3OE_OE5_EN (0x1 << 5 )
/* GP3OE[OE4] - Pin Output Drive enable */
#define GP3OE_OE4_BBA (*(volatile unsigned long *) 0x42401890)
#define GP3OE_OE4_MSK (0x1 << 4 )
#define GP3OE_OE4 (0x1 << 4 )
#define GP3OE_OE4_DIS (0x0 << 4 )
#define GP3OE_OE4_EN (0x1 << 4 )
/* GP3OE[OE3] - Pin Output Drive enable */
#define GP3OE_OE3_BBA (*(volatile unsigned long *) 0x4240188C)
#define GP3OE_OE3_MSK (0x1 << 3 )
#define GP3OE_OE3 (0x1 << 3 )
#define GP3OE_OE3_DIS (0x0 << 3 )
#define GP3OE_OE3_EN (0x1 << 3 )
/* GP3OE[OE2] - Pin Output Drive enable */
#define GP3OE_OE2_BBA (*(volatile unsigned long *) 0x42401888)
#define GP3OE_OE2_MSK (0x1 << 2 )
#define GP3OE_OE2 (0x1 << 2 )
#define GP3OE_OE2_DIS (0x0 << 2 )
#define GP3OE_OE2_EN (0x1 << 2 )
/* GP3OE[OE1] - Pin Output Drive enable */
#define GP3OE_OE1_BBA (*(volatile unsigned long *) 0x42401884)
#define GP3OE_OE1_MSK (0x1 << 1 )
#define GP3OE_OE1 (0x1 << 1 )
#define GP3OE_OE1_DIS (0x0 << 1 )
#define GP3OE_OE1_EN (0x1 << 1 )
/* GP3OE[OE0] - Pin Output Drive enable */
#define GP3OE_OE0_BBA (*(volatile unsigned long *) 0x42401880)
#define GP3OE_OE0_MSK (0x1 << 0 )
#define GP3OE_OE0 (0x1 << 0 )
#define GP3OE_OE0_DIS (0x0 << 0 )
#define GP3OE_OE0_EN (0x1 << 0 )
/* Reset Value for GP3PUL*/
#define GP3PUL_RVAL 0x0
/* GP3PUL[PUL7] - Pin Pull up enable */
#define GP3PUL_PUL7_BBA (*(volatile unsigned long *) 0x4240191C)
#define GP3PUL_PUL7_MSK (0x1 << 7 )
#define GP3PUL_PUL7 (0x1 << 7 )
#define GP3PUL_PUL7_DIS (0x0 << 7 )
#define GP3PUL_PUL7_EN (0x1 << 7 )
/* GP3PUL[PUL6] - Pin Pull up enable */
#define GP3PUL_PUL6_BBA (*(volatile unsigned long *) 0x42401918)
#define GP3PUL_PUL6_MSK (0x1 << 6 )
#define GP3PUL_PUL6 (0x1 << 6 )
#define GP3PUL_PUL6_DIS (0x0 << 6 )
#define GP3PUL_PUL6_EN (0x1 << 6 )
/* GP3PUL[PUL5] - Pin Pull up enable */
#define GP3PUL_PUL5_BBA (*(volatile unsigned long *) 0x42401914)
#define GP3PUL_PUL5_MSK (0x1 << 5 )
#define GP3PUL_PUL5 (0x1 << 5 )
#define GP3PUL_PUL5_DIS (0x0 << 5 )
#define GP3PUL_PUL5_EN (0x1 << 5 )
/* GP3PUL[PUL4] - Pin Pull up enable */
#define GP3PUL_PUL4_BBA (*(volatile unsigned long *) 0x42401910)
#define GP3PUL_PUL4_MSK (0x1 << 4 )
#define GP3PUL_PUL4 (0x1 << 4 )
#define GP3PUL_PUL4_DIS (0x0 << 4 )
#define GP3PUL_PUL4_EN (0x1 << 4 )
/* GP3PUL[PUL3] - Pin Pull up enable */
#define GP3PUL_PUL3_BBA (*(volatile unsigned long *) 0x4240190C)
#define GP3PUL_PUL3_MSK (0x1 << 3 )
#define GP3PUL_PUL3 (0x1 << 3 )
#define GP3PUL_PUL3_DIS (0x0 << 3 )
#define GP3PUL_PUL3_EN (0x1 << 3 )
/* GP3PUL[PUL2] - Pin Pull up enable */
#define GP3PUL_PUL2_BBA (*(volatile unsigned long *) 0x42401908)
#define GP3PUL_PUL2_MSK (0x1 << 2 )
#define GP3PUL_PUL2 (0x1 << 2 )
#define GP3PUL_PUL2_DIS (0x0 << 2 )
#define GP3PUL_PUL2_EN (0x1 << 2 )
/* GP3PUL[PUL1] - Pin Pull up enable */
#define GP3PUL_PUL1_BBA (*(volatile unsigned long *) 0x42401904)
#define GP3PUL_PUL1_MSK (0x1 << 1 )
#define GP3PUL_PUL1 (0x1 << 1 )
#define GP3PUL_PUL1_DIS (0x0 << 1 )
#define GP3PUL_PUL1_EN (0x1 << 1 )
/* GP3PUL[PUL0] - Pin Pull up enable */
#define GP3PUL_PUL0_BBA (*(volatile unsigned long *) 0x42401900)
#define GP3PUL_PUL0_MSK (0x1 << 0 )
#define GP3PUL_PUL0 (0x1 << 0 )
#define GP3PUL_PUL0_DIS (0x0 << 0 )
#define GP3PUL_PUL0_EN (0x1 << 0 )
/* Reset Value for GP3IE*/
#define GP3IE_RVAL 0x0
/* GP3IE[IEN7] - Input path enable */
#define GP3IE_IEN7_BBA (*(volatile unsigned long *) 0x4240199C)
#define GP3IE_IEN7_MSK (0x1 << 7 )
#define GP3IE_IEN7 (0x1 << 7 )
#define GP3IE_IEN7_DIS (0x0 << 7 )
#define GP3IE_IEN7_EN (0x1 << 7 )
/* GP3IE[IEN6] - Input path enable */
#define GP3IE_IEN6_BBA (*(volatile unsigned long *) 0x42401998)
#define GP3IE_IEN6_MSK (0x1 << 6 )
#define GP3IE_IEN6 (0x1 << 6 )
#define GP3IE_IEN6_DIS (0x0 << 6 )
#define GP3IE_IEN6_EN (0x1 << 6 )
/* GP3IE[IEN5] - Input path enable */
#define GP3IE_IEN5_BBA (*(volatile unsigned long *) 0x42401994)
#define GP3IE_IEN5_MSK (0x1 << 5 )
#define GP3IE_IEN5 (0x1 << 5 )
#define GP3IE_IEN5_DIS (0x0 << 5 )
#define GP3IE_IEN5_EN (0x1 << 5 )
/* GP3IE[IEN4] - Input path enable */
#define GP3IE_IEN4_BBA (*(volatile unsigned long *) 0x42401990)
#define GP3IE_IEN4_MSK (0x1 << 4 )
#define GP3IE_IEN4 (0x1 << 4 )
#define GP3IE_IEN4_DIS (0x0 << 4 )
#define GP3IE_IEN4_EN (0x1 << 4 )
/* GP3IE[IEN3] - Input path enable */
#define GP3IE_IEN3_BBA (*(volatile unsigned long *) 0x4240198C)
#define GP3IE_IEN3_MSK (0x1 << 3 )
#define GP3IE_IEN3 (0x1 << 3 )
#define GP3IE_IEN3_DIS (0x0 << 3 )
#define GP3IE_IEN3_EN (0x1 << 3 )
/* GP3IE[IEN2] - Input path enable */
#define GP3IE_IEN2_BBA (*(volatile unsigned long *) 0x42401988)
#define GP3IE_IEN2_MSK (0x1 << 2 )
#define GP3IE_IEN2 (0x1 << 2 )
#define GP3IE_IEN2_DIS (0x0 << 2 )
#define GP3IE_IEN2_EN (0x1 << 2 )
/* GP3IE[IEN1] - Input path enable */
#define GP3IE_IEN1_BBA (*(volatile unsigned long *) 0x42401984)
#define GP3IE_IEN1_MSK (0x1 << 1 )
#define GP3IE_IEN1 (0x1 << 1 )
#define GP3IE_IEN1_DIS (0x0 << 1 )
#define GP3IE_IEN1_EN (0x1 << 1 )
/* GP3IE[IEN0] - Input path enable */
#define GP3IE_IEN0_BBA (*(volatile unsigned long *) 0x42401980)
#define GP3IE_IEN0_MSK (0x1 << 0 )
#define GP3IE_IEN0 (0x1 << 0 )
#define GP3IE_IEN0_DIS (0x0 << 0 )
#define GP3IE_IEN0_EN (0x1 << 0 )
/* Reset Value for GP3IN*/
#define GP3IN_RVAL 0x0
/* GP3IN[IN7] - Registered data input */
#define GP3IN_IN7_BBA (*(volatile unsigned long *) 0x42401A1C)
#define GP3IN_IN7_MSK (0x1 << 7 )
#define GP3IN_IN7 (0x1 << 7 )
#define GP3IN_IN7_LOW (0x0 << 7 )
#define GP3IN_IN7_HIGH (0x1 << 7 )
/* GP3IN[IN6] - Registered data input */
#define GP3IN_IN6_BBA (*(volatile unsigned long *) 0x42401A18)
#define GP3IN_IN6_MSK (0x1 << 6 )
#define GP3IN_IN6 (0x1 << 6 )
#define GP3IN_IN6_LOW (0x0 << 6 )
#define GP3IN_IN6_HIGH (0x1 << 6 )
/* GP3IN[IN5] - Registered data input */
#define GP3IN_IN5_BBA (*(volatile unsigned long *) 0x42401A14)
#define GP3IN_IN5_MSK (0x1 << 5 )
#define GP3IN_IN5 (0x1 << 5 )
#define GP3IN_IN5_LOW (0x0 << 5 )
#define GP3IN_IN5_HIGH (0x1 << 5 )
/* GP3IN[IN4] - Registered data input */
#define GP3IN_IN4_BBA (*(volatile unsigned long *) 0x42401A10)
#define GP3IN_IN4_MSK (0x1 << 4 )
#define GP3IN_IN4 (0x1 << 4 )
#define GP3IN_IN4_LOW (0x0 << 4 )
#define GP3IN_IN4_HIGH (0x1 << 4 )
/* GP3IN[IN3] - Registered data input */
#define GP3IN_IN3_BBA (*(volatile unsigned long *) 0x42401A0C)
#define GP3IN_IN3_MSK (0x1 << 3 )
#define GP3IN_IN3 (0x1 << 3 )
#define GP3IN_IN3_LOW (0x0 << 3 )
#define GP3IN_IN3_HIGH (0x1 << 3 )
/* GP3IN[IN2] - Registered data input */
#define GP3IN_IN2_BBA (*(volatile unsigned long *) 0x42401A08)
#define GP3IN_IN2_MSK (0x1 << 2 )
#define GP3IN_IN2 (0x1 << 2 )
#define GP3IN_IN2_LOW (0x0 << 2 )
#define GP3IN_IN2_HIGH (0x1 << 2 )
/* GP3IN[IN1] - Registered data input */
#define GP3IN_IN1_BBA (*(volatile unsigned long *) 0x42401A04)
#define GP3IN_IN1_MSK (0x1 << 1 )
#define GP3IN_IN1 (0x1 << 1 )
#define GP3IN_IN1_LOW (0x0 << 1 )
#define GP3IN_IN1_HIGH (0x1 << 1 )
/* GP3IN[IN0] - Registered data input */
#define GP3IN_IN0_BBA (*(volatile unsigned long *) 0x42401A00)
#define GP3IN_IN0_MSK (0x1 << 0 )
#define GP3IN_IN0 (0x1 << 0 )
#define GP3IN_IN0_LOW (0x0 << 0 )
#define GP3IN_IN0_HIGH (0x1 << 0 )
/* Reset Value for GP3OUT*/
#define GP3OUT_RVAL 0x0
/* GP3OUT[OUT7] - Data out */
#define GP3OUT_OUT7_BBA (*(volatile unsigned long *) 0x42401A9C)
#define GP3OUT_OUT7_MSK (0x1 << 7 )
#define GP3OUT_OUT7 (0x1 << 7 )
#define GP3OUT_OUT7_LOW (0x0 << 7 )
#define GP3OUT_OUT7_HIGH (0x1 << 7 )
/* GP3OUT[OUT6] - Data out */
#define GP3OUT_OUT6_BBA (*(volatile unsigned long *) 0x42401A98)
#define GP3OUT_OUT6_MSK (0x1 << 6 )
#define GP3OUT_OUT6 (0x1 << 6 )
#define GP3OUT_OUT6_LOW (0x0 << 6 )
#define GP3OUT_OUT6_HIGH (0x1 << 6 )
/* GP3OUT[OUT5] - Data out */
#define GP3OUT_OUT5_BBA (*(volatile unsigned long *) 0x42401A94)
#define GP3OUT_OUT5_MSK (0x1 << 5 )
#define GP3OUT_OUT5 (0x1 << 5 )
#define GP3OUT_OUT5_LOW (0x0 << 5 )
#define GP3OUT_OUT5_HIGH (0x1 << 5 )
/* GP3OUT[OUT4] - Data out */
#define GP3OUT_OUT4_BBA (*(volatile unsigned long *) 0x42401A90)
#define GP3OUT_OUT4_MSK (0x1 << 4 )
#define GP3OUT_OUT4 (0x1 << 4 )
#define GP3OUT_OUT4_LOW (0x0 << 4 )
#define GP3OUT_OUT4_HIGH (0x1 << 4 )
/* GP3OUT[OUT3] - Data out */
#define GP3OUT_OUT3_BBA (*(volatile unsigned long *) 0x42401A8C)
#define GP3OUT_OUT3_MSK (0x1 << 3 )
#define GP3OUT_OUT3 (0x1 << 3 )
#define GP3OUT_OUT3_LOW (0x0 << 3 )
#define GP3OUT_OUT3_HIGH (0x1 << 3 )
/* GP3OUT[OUT2] - Data out */
#define GP3OUT_OUT2_BBA (*(volatile unsigned long *) 0x42401A88)
#define GP3OUT_OUT2_MSK (0x1 << 2 )
#define GP3OUT_OUT2 (0x1 << 2 )
#define GP3OUT_OUT2_LOW (0x0 << 2 )
#define GP3OUT_OUT2_HIGH (0x1 << 2 )
/* GP3OUT[OUT1] - Data out */
#define GP3OUT_OUT1_BBA (*(volatile unsigned long *) 0x42401A84)
#define GP3OUT_OUT1_MSK (0x1 << 1 )
#define GP3OUT_OUT1 (0x1 << 1 )
#define GP3OUT_OUT1_LOW (0x0 << 1 )
#define GP3OUT_OUT1_HIGH (0x1 << 1 )
/* GP3OUT[OUT0] - Data out */
#define GP3OUT_OUT0_BBA (*(volatile unsigned long *) 0x42401A80)
#define GP3OUT_OUT0_MSK (0x1 << 0 )
#define GP3OUT_OUT0 (0x1 << 0 )
#define GP3OUT_OUT0_LOW (0x0 << 0 )
#define GP3OUT_OUT0_HIGH (0x1 << 0 )
/* Reset Value for GP3SET*/
#define GP3SET_RVAL 0x0
/* GP3SET[SET7] - Set the output HIGH for the pin */
#define GP3SET_SET7_BBA (*(volatile unsigned long *) 0x42401B1C)
#define GP3SET_SET7_MSK (0x1 << 7 )
#define GP3SET_SET7 (0x1 << 7 )
#define GP3SET_SET7_SET (0x1 << 7 )
/* GP3SET[SET6] - Set the output HIGH for the pin */
#define GP3SET_SET6_BBA (*(volatile unsigned long *) 0x42401B18)
#define GP3SET_SET6_MSK (0x1 << 6 )
#define GP3SET_SET6 (0x1 << 6 )
#define GP3SET_SET6_SET (0x1 << 6 )
/* GP3SET[SET5] - Set the output HIGH for the pin */
#define GP3SET_SET5_BBA (*(volatile unsigned long *) 0x42401B14)
#define GP3SET_SET5_MSK (0x1 << 5 )
#define GP3SET_SET5 (0x1 << 5 )
#define GP3SET_SET5_SET (0x1 << 5 )
/* GP3SET[SET4] - Set the output HIGH for the pin */
#define GP3SET_SET4_BBA (*(volatile unsigned long *) 0x42401B10)
#define GP3SET_SET4_MSK (0x1 << 4 )
#define GP3SET_SET4 (0x1 << 4 )
#define GP3SET_SET4_SET (0x1 << 4 )
/* GP3SET[SET3] - Set the output HIGH for the pin */
#define GP3SET_SET3_BBA (*(volatile unsigned long *) 0x42401B0C)
#define GP3SET_SET3_MSK (0x1 << 3 )
#define GP3SET_SET3 (0x1 << 3 )
#define GP3SET_SET3_SET (0x1 << 3 )
/* GP3SET[SET2] - Set the output HIGH for the pin */
#define GP3SET_SET2_BBA (*(volatile unsigned long *) 0x42401B08)
#define GP3SET_SET2_MSK (0x1 << 2 )
#define GP3SET_SET2 (0x1 << 2 )
#define GP3SET_SET2_SET (0x1 << 2 )
/* GP3SET[SET1] - Set the output HIGH for the pin */
#define GP3SET_SET1_BBA (*(volatile unsigned long *) 0x42401B04)
#define GP3SET_SET1_MSK (0x1 << 1 )
#define GP3SET_SET1 (0x1 << 1 )
#define GP3SET_SET1_SET (0x1 << 1 )
/* GP3SET[SET0] - Set the output HIGH for the pin */
#define GP3SET_SET0_BBA (*(volatile unsigned long *) 0x42401B00)
#define GP3SET_SET0_MSK (0x1 << 0 )
#define GP3SET_SET0 (0x1 << 0 )
#define GP3SET_SET0_SET (0x1 << 0 )
/* Reset Value for GP3CLR*/
#define GP3CLR_RVAL 0x0
/* GP3CLR[CLR7] - Set the output low for the port pin */
#define GP3CLR_CLR7_BBA (*(volatile unsigned long *) 0x42401B9C)
#define GP3CLR_CLR7_MSK (0x1 << 7 )
#define GP3CLR_CLR7 (0x1 << 7 )
#define GP3CLR_CLR7_CLR (0x1 << 7 )
/* GP3CLR[CLR6] - Set the output low for the port pin */
#define GP3CLR_CLR6_BBA (*(volatile unsigned long *) 0x42401B98)
#define GP3CLR_CLR6_MSK (0x1 << 6 )
#define GP3CLR_CLR6 (0x1 << 6 )
#define GP3CLR_CLR6_CLR (0x1 << 6 )
/* GP3CLR[CLR5] - Set the output low for the port pin */
#define GP3CLR_CLR5_BBA (*(volatile unsigned long *) 0x42401B94)
#define GP3CLR_CLR5_MSK (0x1 << 5 )
#define GP3CLR_CLR5 (0x1 << 5 )
#define GP3CLR_CLR5_CLR (0x1 << 5 )
/* GP3CLR[CLR4] - Set the output low for the port pin */
#define GP3CLR_CLR4_BBA (*(volatile unsigned long *) 0x42401B90)
#define GP3CLR_CLR4_MSK (0x1 << 4 )
#define GP3CLR_CLR4 (0x1 << 4 )
#define GP3CLR_CLR4_CLR (0x1 << 4 )
/* GP3CLR[CLR3] - Set the output low for the port pin */
#define GP3CLR_CLR3_BBA (*(volatile unsigned long *) 0x42401B8C)
#define GP3CLR_CLR3_MSK (0x1 << 3 )
#define GP3CLR_CLR3 (0x1 << 3 )
#define GP3CLR_CLR3_CLR (0x1 << 3 )
/* GP3CLR[CLR2] - Set the output low for the port pin */
#define GP3CLR_CLR2_BBA (*(volatile unsigned long *) 0x42401B88)
#define GP3CLR_CLR2_MSK (0x1 << 2 )
#define GP3CLR_CLR2 (0x1 << 2 )
#define GP3CLR_CLR2_CLR (0x1 << 2 )
/* GP3CLR[CLR1] - Set the output low for the port pin */
#define GP3CLR_CLR1_BBA (*(volatile unsigned long *) 0x42401B84)
#define GP3CLR_CLR1_MSK (0x1 << 1 )
#define GP3CLR_CLR1 (0x1 << 1 )
#define GP3CLR_CLR1_CLR (0x1 << 1 )
/* GP3CLR[CLR0] - Set the output low for the port pin */
#define GP3CLR_CLR0_BBA (*(volatile unsigned long *) 0x42401B80)
#define GP3CLR_CLR0_MSK (0x1 << 0 )
#define GP3CLR_CLR0 (0x1 << 0 )
#define GP3CLR_CLR0_CLR (0x1 << 0 )
/* Reset Value for GP3TGL*/
#define GP3TGL_RVAL 0x0
/* GP3TGL[TGL7] - Toggle the output of the port pin */
#define GP3TGL_TGL7_BBA (*(volatile unsigned long *) 0x42401C1C)
#define GP3TGL_TGL7_MSK (0x1 << 7 )
#define GP3TGL_TGL7 (0x1 << 7 )
#define GP3TGL_TGL7_TGL (0x1 << 7 )
/* GP3TGL[TGL6] - Toggle the output of the port pin */
#define GP3TGL_TGL6_BBA (*(volatile unsigned long *) 0x42401C18)
#define GP3TGL_TGL6_MSK (0x1 << 6 )
#define GP3TGL_TGL6 (0x1 << 6 )
#define GP3TGL_TGL6_TGL (0x1 << 6 )
/* GP3TGL[TGL5] - Toggle the output of the port pin */
#define GP3TGL_TGL5_BBA (*(volatile unsigned long *) 0x42401C14)
#define GP3TGL_TGL5_MSK (0x1 << 5 )
#define GP3TGL_TGL5 (0x1 << 5 )
#define GP3TGL_TGL5_TGL (0x1 << 5 )
/* GP3TGL[TGL4] - Toggle the output of the port pin */
#define GP3TGL_TGL4_BBA (*(volatile unsigned long *) 0x42401C10)
#define GP3TGL_TGL4_MSK (0x1 << 4 )
#define GP3TGL_TGL4 (0x1 << 4 )
#define GP3TGL_TGL4_TGL (0x1 << 4 )
/* GP3TGL[TGL3] - Toggle the output of the port pin */
#define GP3TGL_TGL3_BBA (*(volatile unsigned long *) 0x42401C0C)
#define GP3TGL_TGL3_MSK (0x1 << 3 )
#define GP3TGL_TGL3 (0x1 << 3 )
#define GP3TGL_TGL3_TGL (0x1 << 3 )
/* GP3TGL[TGL2] - Toggle the output of the port pin */
#define GP3TGL_TGL2_BBA (*(volatile unsigned long *) 0x42401C08)
#define GP3TGL_TGL2_MSK (0x1 << 2 )
#define GP3TGL_TGL2 (0x1 << 2 )
#define GP3TGL_TGL2_TGL (0x1 << 2 )
/* GP3TGL[TGL1] - Toggle the output of the port pin */
#define GP3TGL_TGL1_BBA (*(volatile unsigned long *) 0x42401C04)
#define GP3TGL_TGL1_MSK (0x1 << 1 )
#define GP3TGL_TGL1 (0x1 << 1 )
#define GP3TGL_TGL1_TGL (0x1 << 1 )
/* GP3TGL[TGL0] - Toggle the output of the port pin */
#define GP3TGL_TGL0_BBA (*(volatile unsigned long *) 0x42401C00)
#define GP3TGL_TGL0_MSK (0x1 << 0 )
#define GP3TGL_TGL0 (0x1 << 0 )
#define GP3TGL_TGL0_TGL (0x1 << 0 )
/* Reset Value for GP3ODE*/
#define GP3ODE_RVAL 0x0
/* GP3ODE[ODE7] - Open drain enable */
#define GP3ODE_ODE7_BBA (*(volatile unsigned long *) 0x42401C9C)
#define GP3ODE_ODE7_MSK (0x1 << 7 )
#define GP3ODE_ODE7 (0x1 << 7 )
#define GP3ODE_ODE7_DIS (0x0 << 7 )
#define GP3ODE_ODE7_EN (0x1 << 7 )
/* GP3ODE[ODE6] - Open drain enable */
#define GP3ODE_ODE6_BBA (*(volatile unsigned long *) 0x42401C98)
#define GP3ODE_ODE6_MSK (0x1 << 6 )
#define GP3ODE_ODE6 (0x1 << 6 )
#define GP3ODE_ODE6_DIS (0x0 << 6 )
#define GP3ODE_ODE6_EN (0x1 << 6 )
/* GP3ODE[ODE5] - Open drain enable */
#define GP3ODE_ODE5_BBA (*(volatile unsigned long *) 0x42401C94)
#define GP3ODE_ODE5_MSK (0x1 << 5 )
#define GP3ODE_ODE5 (0x1 << 5 )
#define GP3ODE_ODE5_DIS (0x0 << 5 )
#define GP3ODE_ODE5_EN (0x1 << 5 )
/* GP3ODE[ODE4] - Open drain enable */
#define GP3ODE_ODE4_BBA (*(volatile unsigned long *) 0x42401C90)
#define GP3ODE_ODE4_MSK (0x1 << 4 )
#define GP3ODE_ODE4 (0x1 << 4 )
#define GP3ODE_ODE4_DIS (0x0 << 4 )
#define GP3ODE_ODE4_EN (0x1 << 4 )
/* GP3ODE[ODE3] - Open drain enable */
#define GP3ODE_ODE3_BBA (*(volatile unsigned long *) 0x42401C8C)
#define GP3ODE_ODE3_MSK (0x1 << 3 )
#define GP3ODE_ODE3 (0x1 << 3 )
#define GP3ODE_ODE3_DIS (0x0 << 3 )
#define GP3ODE_ODE3_EN (0x1 << 3 )
/* GP3ODE[ODE2] - Open drain enable */
#define GP3ODE_ODE2_BBA (*(volatile unsigned long *) 0x42401C88)
#define GP3ODE_ODE2_MSK (0x1 << 2 )
#define GP3ODE_ODE2 (0x1 << 2 )
#define GP3ODE_ODE2_DIS (0x0 << 2 )
#define GP3ODE_ODE2_EN (0x1 << 2 )
/* GP3ODE[ODE1] - Open drain enable */
#define GP3ODE_ODE1_BBA (*(volatile unsigned long *) 0x42401C84)
#define GP3ODE_ODE1_MSK (0x1 << 1 )
#define GP3ODE_ODE1 (0x1 << 1 )
#define GP3ODE_ODE1_DIS (0x0 << 1 )
#define GP3ODE_ODE1_EN (0x1 << 1 )
/* GP3ODE[ODE0] - Open drain enable */
#define GP3ODE_ODE0_BBA (*(volatile unsigned long *) 0x42401C80)
#define GP3ODE_ODE0_MSK (0x1 << 0 )
#define GP3ODE_ODE0 (0x1 << 0 )
#define GP3ODE_ODE0_DIS (0x0 << 0 )
#define GP3ODE_ODE0_EN (0x1 << 0 )
#if (__NO_MMR_STRUCTS__==1)
#define GP4CON (*(volatile unsigned short int *) 0x40020100)
#define GP4OE (*(volatile unsigned char *) 0x40020104)
#define GP4PUL (*(volatile unsigned char *) 0x40020108)
#define GP4IE (*(volatile unsigned char *) 0x4002010C)
#define GP4IN (*(volatile unsigned char *) 0x40020110)
#define GP4OUT (*(volatile unsigned char *) 0x40020114)
#define GP4SET (*(volatile unsigned char *) 0x40020118)
#define GP4CLR (*(volatile unsigned char *) 0x4002011C)
#define GP4TGL (*(volatile unsigned char *) 0x40020120)
#define GP4ODE (*(volatile unsigned char *) 0x40020124)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for GP4CON*/
#define GP4CON_RVAL 0x0
/* GP4CON[CON7] - p4.7 configuration bits */
#define GP4CON_CON7_MSK (0x3 << 14 )
/* GP4CON[CON6] - p4.6 configuration bits */
#define GP4CON_CON6_MSK (0x3 << 12 )
/* GP4CON[CON5] - p4.5 configuration bits */
#define GP4CON_CON5_MSK (0x3 << 10 )
/* GP4CON[CON4] - p4.4 configuration bits */
#define GP4CON_CON4_MSK (0x3 << 8 )
/* GP4CON[CON3] - p4.3 configuration bits */
#define GP4CON_CON3_MSK (0x3 << 6 )
/* GP4CON[CON2] - p4.2 configuration bits */
#define GP4CON_CON2_MSK (0x3 << 4 )
/* GP4CON[CON1] - p4.1 configuration bits */
#define GP4CON_CON1_MSK (0x3 << 2 )
/* GP4CON[CON0] - p4.0 configuration bits */
#define GP4CON_CON0_MSK (0x3 << 0 )
#define GP4CON_CON0_GPIO (0x0 << 0 ) /* GPIO */
/* Reset Value for GP4OE*/
#define GP4OE_RVAL 0x0
/* GP4OE[OE7] - Pin Output Drive enable */
#define GP4OE_OE7_BBA (*(volatile unsigned long *) 0x4240209C)
#define GP4OE_OE7_MSK (0x1 << 7 )
#define GP4OE_OE7 (0x1 << 7 )
#define GP4OE_OE7_DIS (0x0 << 7 )
#define GP4OE_OE7_EN (0x1 << 7 )
/* GP4OE[OE6] - Pin Output Drive enable */
#define GP4OE_OE6_BBA (*(volatile unsigned long *) 0x42402098)
#define GP4OE_OE6_MSK (0x1 << 6 )
#define GP4OE_OE6 (0x1 << 6 )
#define GP4OE_OE6_DIS (0x0 << 6 )
#define GP4OE_OE6_EN (0x1 << 6 )
/* GP4OE[OE5] - Pin Output Drive enable */
#define GP4OE_OE5_BBA (*(volatile unsigned long *) 0x42402094)
#define GP4OE_OE5_MSK (0x1 << 5 )
#define GP4OE_OE5 (0x1 << 5 )
#define GP4OE_OE5_DIS (0x0 << 5 )
#define GP4OE_OE5_EN (0x1 << 5 )
/* GP4OE[OE4] - Pin Output Drive enable */
#define GP4OE_OE4_BBA (*(volatile unsigned long *) 0x42402090)
#define GP4OE_OE4_MSK (0x1 << 4 )
#define GP4OE_OE4 (0x1 << 4 )
#define GP4OE_OE4_DIS (0x0 << 4 )
#define GP4OE_OE4_EN (0x1 << 4 )
/* GP4OE[OE3] - Pin Output Drive enable */
#define GP4OE_OE3_BBA (*(volatile unsigned long *) 0x4240208C)
#define GP4OE_OE3_MSK (0x1 << 3 )
#define GP4OE_OE3 (0x1 << 3 )
#define GP4OE_OE3_DIS (0x0 << 3 )
#define GP4OE_OE3_EN (0x1 << 3 )
/* GP4OE[OE2] - Pin Output Drive enable */
#define GP4OE_OE2_BBA (*(volatile unsigned long *) 0x42402088)
#define GP4OE_OE2_MSK (0x1 << 2 )
#define GP4OE_OE2 (0x1 << 2 )
#define GP4OE_OE2_DIS (0x0 << 2 )
#define GP4OE_OE2_EN (0x1 << 2 )
/* GP4OE[OE1] - Pin Output Drive enable */
#define GP4OE_OE1_BBA (*(volatile unsigned long *) 0x42402084)
#define GP4OE_OE1_MSK (0x1 << 1 )
#define GP4OE_OE1 (0x1 << 1 )
#define GP4OE_OE1_DIS (0x0 << 1 )
#define GP4OE_OE1_EN (0x1 << 1 )
/* GP4OE[OE0] - Pin Output Drive enable */
#define GP4OE_OE0_BBA (*(volatile unsigned long *) 0x42402080)
#define GP4OE_OE0_MSK (0x1 << 0 )
#define GP4OE_OE0 (0x1 << 0 )
#define GP4OE_OE0_DIS (0x0 << 0 )
#define GP4OE_OE0_EN (0x1 << 0 )
/* Reset Value for GP4PUL*/
#define GP4PUL_RVAL 0x0
/* GP4PUL[PUL7] - Pin Pull down enable */
#define GP4PUL_PUL7_BBA (*(volatile unsigned long *) 0x4240211C)
#define GP4PUL_PUL7_MSK (0x1 << 7 )
#define GP4PUL_PUL7 (0x1 << 7 )
#define GP4PUL_PUL7_DIS (0x0 << 7 )
#define GP4PUL_PUL7_EN (0x1 << 7 )
/* GP4PUL[PUL6] - Pin Pull down enable */
#define GP4PUL_PUL6_BBA (*(volatile unsigned long *) 0x42402118)
#define GP4PUL_PUL6_MSK (0x1 << 6 )
#define GP4PUL_PUL6 (0x1 << 6 )
#define GP4PUL_PUL6_DIS (0x0 << 6 )
#define GP4PUL_PUL6_EN (0x1 << 6 )
/* GP4PUL[PUL5] - Pin Pull down enable */
#define GP4PUL_PUL5_BBA (*(volatile unsigned long *) 0x42402114)
#define GP4PUL_PUL5_MSK (0x1 << 5 )
#define GP4PUL_PUL5 (0x1 << 5 )
#define GP4PUL_PUL5_DIS (0x0 << 5 )
#define GP4PUL_PUL5_EN (0x1 << 5 )
/* GP4PUL[PUL4] - Pin Pull down enable */
#define GP4PUL_PUL4_BBA (*(volatile unsigned long *) 0x42402110)
#define GP4PUL_PUL4_MSK (0x1 << 4 )
#define GP4PUL_PUL4 (0x1 << 4 )
#define GP4PUL_PUL4_DIS (0x0 << 4 )
#define GP4PUL_PUL4_EN (0x1 << 4 )
/* GP4PUL[PUL3] - Pin Pull down enable */
#define GP4PUL_PUL3_BBA (*(volatile unsigned long *) 0x4240210C)
#define GP4PUL_PUL3_MSK (0x1 << 3 )
#define GP4PUL_PUL3 (0x1 << 3 )
#define GP4PUL_PUL3_DIS (0x0 << 3 )
#define GP4PUL_PUL3_EN (0x1 << 3 )
/* GP4PUL[PUL2] - Pin Pull down enable */
#define GP4PUL_PUL2_BBA (*(volatile unsigned long *) 0x42402108)
#define GP4PUL_PUL2_MSK (0x1 << 2 )
#define GP4PUL_PUL2 (0x1 << 2 )
#define GP4PUL_PUL2_DIS (0x0 << 2 )
#define GP4PUL_PUL2_EN (0x1 << 2 )
/* GP4PUL[PUL1] - Pin Pull down enable */
#define GP4PUL_PUL1_BBA (*(volatile unsigned long *) 0x42402104)
#define GP4PUL_PUL1_MSK (0x1 << 1 )
#define GP4PUL_PUL1 (0x1 << 1 )
#define GP4PUL_PUL1_DIS (0x0 << 1 )
#define GP4PUL_PUL1_EN (0x1 << 1 )
/* GP4PUL[PUL0] - Pin Pull down enable */
#define GP4PUL_PUL0_BBA (*(volatile unsigned long *) 0x42402100)
#define GP4PUL_PUL0_MSK (0x1 << 0 )
#define GP4PUL_PUL0 (0x1 << 0 )
#define GP4PUL_PUL0_DIS (0x0 << 0 )
#define GP4PUL_PUL0_EN (0x1 << 0 )
/* Reset Value for GP4IE*/
#define GP4IE_RVAL 0x0
/* GP4IE[IEN7] - Input path enable */
#define GP4IE_IEN7_BBA (*(volatile unsigned long *) 0x4240219C)
#define GP4IE_IEN7_MSK (0x1 << 7 )
#define GP4IE_IEN7 (0x1 << 7 )
#define GP4IE_IEN7_DIS (0x0 << 7 )
#define GP4IE_IEN7_EN (0x1 << 7 )
/* GP4IE[IEN6] - Input path enable */
#define GP4IE_IEN6_BBA (*(volatile unsigned long *) 0x42402198)
#define GP4IE_IEN6_MSK (0x1 << 6 )
#define GP4IE_IEN6 (0x1 << 6 )
#define GP4IE_IEN6_DIS (0x0 << 6 )
#define GP4IE_IEN6_EN (0x1 << 6 )
/* GP4IE[IEN5] - Input path enable */
#define GP4IE_IEN5_BBA (*(volatile unsigned long *) 0x42402194)
#define GP4IE_IEN5_MSK (0x1 << 5 )
#define GP4IE_IEN5 (0x1 << 5 )
#define GP4IE_IEN5_DIS (0x0 << 5 )
#define GP4IE_IEN5_EN (0x1 << 5 )
/* GP4IE[IEN4] - Input path enable */
#define GP4IE_IEN4_BBA (*(volatile unsigned long *) 0x42402190)
#define GP4IE_IEN4_MSK (0x1 << 4 )
#define GP4IE_IEN4 (0x1 << 4 )
#define GP4IE_IEN4_DIS (0x0 << 4 )
#define GP4IE_IEN4_EN (0x1 << 4 )
/* GP4IE[IEN3] - Input path enable */
#define GP4IE_IEN3_BBA (*(volatile unsigned long *) 0x4240218C)
#define GP4IE_IEN3_MSK (0x1 << 3 )
#define GP4IE_IEN3 (0x1 << 3 )
#define GP4IE_IEN3_DIS (0x0 << 3 )
#define GP4IE_IEN3_EN (0x1 << 3 )
/* GP4IE[IEN2] - Input path enable */
#define GP4IE_IEN2_BBA (*(volatile unsigned long *) 0x42402188)
#define GP4IE_IEN2_MSK (0x1 << 2 )
#define GP4IE_IEN2 (0x1 << 2 )
#define GP4IE_IEN2_DIS (0x0 << 2 )
#define GP4IE_IEN2_EN (0x1 << 2 )
/* GP4IE[IEN1] - Input path enable */
#define GP4IE_IEN1_BBA (*(volatile unsigned long *) 0x42402184)
#define GP4IE_IEN1_MSK (0x1 << 1 )
#define GP4IE_IEN1 (0x1 << 1 )
#define GP4IE_IEN1_DIS (0x0 << 1 )
#define GP4IE_IEN1_EN (0x1 << 1 )
/* GP4IE[IEN0] - Input path enable */
#define GP4IE_IEN0_BBA (*(volatile unsigned long *) 0x42402180)
#define GP4IE_IEN0_MSK (0x1 << 0 )
#define GP4IE_IEN0 (0x1 << 0 )
#define GP4IE_IEN0_DIS (0x0 << 0 )
#define GP4IE_IEN0_EN (0x1 << 0 )
/* Reset Value for GP4IN*/
#define GP4IN_RVAL 0x0
/* GP4IN[IN7] - Registered data input */
#define GP4IN_IN7_BBA (*(volatile unsigned long *) 0x4240221C)
#define GP4IN_IN7_MSK (0x1 << 7 )
#define GP4IN_IN7 (0x1 << 7 )
#define GP4IN_IN7_LOW (0x0 << 7 )
#define GP4IN_IN7_HIGH (0x1 << 7 )
/* GP4IN[IN6] - Registered data input */
#define GP4IN_IN6_BBA (*(volatile unsigned long *) 0x42402218)
#define GP4IN_IN6_MSK (0x1 << 6 )
#define GP4IN_IN6 (0x1 << 6 )
#define GP4IN_IN6_LOW (0x0 << 6 )
#define GP4IN_IN6_HIGH (0x1 << 6 )
/* GP4IN[IN5] - Registered data input */
#define GP4IN_IN5_BBA (*(volatile unsigned long *) 0x42402214)
#define GP4IN_IN5_MSK (0x1 << 5 )
#define GP4IN_IN5 (0x1 << 5 )
#define GP4IN_IN5_LOW (0x0 << 5 )
#define GP4IN_IN5_HIGH (0x1 << 5 )
/* GP4IN[IN4] - Registered data input */
#define GP4IN_IN4_BBA (*(volatile unsigned long *) 0x42402210)
#define GP4IN_IN4_MSK (0x1 << 4 )
#define GP4IN_IN4 (0x1 << 4 )
#define GP4IN_IN4_LOW (0x0 << 4 )
#define GP4IN_IN4_HIGH (0x1 << 4 )
/* GP4IN[IN3] - Registered data input */
#define GP4IN_IN3_BBA (*(volatile unsigned long *) 0x4240220C)
#define GP4IN_IN3_MSK (0x1 << 3 )
#define GP4IN_IN3 (0x1 << 3 )
#define GP4IN_IN3_LOW (0x0 << 3 )
#define GP4IN_IN3_HIGH (0x1 << 3 )
/* GP4IN[IN2] - Registered data input */
#define GP4IN_IN2_BBA (*(volatile unsigned long *) 0x42402208)
#define GP4IN_IN2_MSK (0x1 << 2 )
#define GP4IN_IN2 (0x1 << 2 )
#define GP4IN_IN2_LOW (0x0 << 2 )
#define GP4IN_IN2_HIGH (0x1 << 2 )
/* GP4IN[IN1] - Registered data input */
#define GP4IN_IN1_BBA (*(volatile unsigned long *) 0x42402204)
#define GP4IN_IN1_MSK (0x1 << 1 )
#define GP4IN_IN1 (0x1 << 1 )
#define GP4IN_IN1_LOW (0x0 << 1 )
#define GP4IN_IN1_HIGH (0x1 << 1 )
/* GP4IN[IN0] - Registered data input */
#define GP4IN_IN0_BBA (*(volatile unsigned long *) 0x42402200)
#define GP4IN_IN0_MSK (0x1 << 0 )
#define GP4IN_IN0 (0x1 << 0 )
#define GP4IN_IN0_LOW (0x0 << 0 )
#define GP4IN_IN0_HIGH (0x1 << 0 )
/* Reset Value for GP4OUT*/
#define GP4OUT_RVAL 0x0
/* GP4OUT[OUT7] - Data out */
#define GP4OUT_OUT7_BBA (*(volatile unsigned long *) 0x4240229C)
#define GP4OUT_OUT7_MSK (0x1 << 7 )
#define GP4OUT_OUT7 (0x1 << 7 )
#define GP4OUT_OUT7_LOW (0x0 << 7 )
#define GP4OUT_OUT7_HIGH (0x1 << 7 )
/* GP4OUT[OUT6] - Data out */
#define GP4OUT_OUT6_BBA (*(volatile unsigned long *) 0x42402298)
#define GP4OUT_OUT6_MSK (0x1 << 6 )
#define GP4OUT_OUT6 (0x1 << 6 )
#define GP4OUT_OUT6_LOW (0x0 << 6 )
#define GP4OUT_OUT6_HIGH (0x1 << 6 )
/* GP4OUT[OUT5] - Data out */
#define GP4OUT_OUT5_BBA (*(volatile unsigned long *) 0x42402294)
#define GP4OUT_OUT5_MSK (0x1 << 5 )
#define GP4OUT_OUT5 (0x1 << 5 )
#define GP4OUT_OUT5_LOW (0x0 << 5 )
#define GP4OUT_OUT5_HIGH (0x1 << 5 )
/* GP4OUT[OUT4] - Data out */
#define GP4OUT_OUT4_BBA (*(volatile unsigned long *) 0x42402290)
#define GP4OUT_OUT4_MSK (0x1 << 4 )
#define GP4OUT_OUT4 (0x1 << 4 )
#define GP4OUT_OUT4_LOW (0x0 << 4 )
#define GP4OUT_OUT4_HIGH (0x1 << 4 )
/* GP4OUT[OUT3] - Data out */
#define GP4OUT_OUT3_BBA (*(volatile unsigned long *) 0x4240228C)
#define GP4OUT_OUT3_MSK (0x1 << 3 )
#define GP4OUT_OUT3 (0x1 << 3 )
#define GP4OUT_OUT3_LOW (0x0 << 3 )
#define GP4OUT_OUT3_HIGH (0x1 << 3 )
/* GP4OUT[OUT2] - Data out */
#define GP4OUT_OUT2_BBA (*(volatile unsigned long *) 0x42402288)
#define GP4OUT_OUT2_MSK (0x1 << 2 )
#define GP4OUT_OUT2 (0x1 << 2 )
#define GP4OUT_OUT2_LOW (0x0 << 2 )
#define GP4OUT_OUT2_HIGH (0x1 << 2 )
/* GP4OUT[OUT1] - Data out */
#define GP4OUT_OUT1_BBA (*(volatile unsigned long *) 0x42402284)
#define GP4OUT_OUT1_MSK (0x1 << 1 )
#define GP4OUT_OUT1 (0x1 << 1 )
#define GP4OUT_OUT1_LOW (0x0 << 1 )
#define GP4OUT_OUT1_HIGH (0x1 << 1 )
/* GP4OUT[OUT0] - Data out */
#define GP4OUT_OUT0_BBA (*(volatile unsigned long *) 0x42402280)
#define GP4OUT_OUT0_MSK (0x1 << 0 )
#define GP4OUT_OUT0 (0x1 << 0 )
#define GP4OUT_OUT0_LOW (0x0 << 0 )
#define GP4OUT_OUT0_HIGH (0x1 << 0 )
/* Reset Value for GP4SET*/
#define GP4SET_RVAL 0x0
/* GP4SET[SET7] - Set the output HIGH for the pin */
#define GP4SET_SET7_BBA (*(volatile unsigned long *) 0x4240231C)
#define GP4SET_SET7_MSK (0x1 << 7 )
#define GP4SET_SET7 (0x1 << 7 )
#define GP4SET_SET7_SET (0x1 << 7 )
/* GP4SET[SET6] - Set the output HIGH for the pin */
#define GP4SET_SET6_BBA (*(volatile unsigned long *) 0x42402318)
#define GP4SET_SET6_MSK (0x1 << 6 )
#define GP4SET_SET6 (0x1 << 6 )
#define GP4SET_SET6_SET (0x1 << 6 )
/* GP4SET[SET5] - Set the output HIGH for the pin */
#define GP4SET_SET5_BBA (*(volatile unsigned long *) 0x42402314)
#define GP4SET_SET5_MSK (0x1 << 5 )
#define GP4SET_SET5 (0x1 << 5 )
#define GP4SET_SET5_SET (0x1 << 5 )
/* GP4SET[SET4] - Set the output HIGH for the pin */
#define GP4SET_SET4_BBA (*(volatile unsigned long *) 0x42402310)
#define GP4SET_SET4_MSK (0x1 << 4 )
#define GP4SET_SET4 (0x1 << 4 )
#define GP4SET_SET4_SET (0x1 << 4 )
/* GP4SET[SET3] - Set the output HIGH for the pin */
#define GP4SET_SET3_BBA (*(volatile unsigned long *) 0x4240230C)
#define GP4SET_SET3_MSK (0x1 << 3 )
#define GP4SET_SET3 (0x1 << 3 )
#define GP4SET_SET3_SET (0x1 << 3 )
/* GP4SET[SET2] - Set the output HIGH for the pin */
#define GP4SET_SET2_BBA (*(volatile unsigned long *) 0x42402308)
#define GP4SET_SET2_MSK (0x1 << 2 )
#define GP4SET_SET2 (0x1 << 2 )
#define GP4SET_SET2_SET (0x1 << 2 )
/* GP4SET[SET1] - Set the output HIGH for the pin */
#define GP4SET_SET1_BBA (*(volatile unsigned long *) 0x42402304)
#define GP4SET_SET1_MSK (0x1 << 1 )
#define GP4SET_SET1 (0x1 << 1 )
#define GP4SET_SET1_SET (0x1 << 1 )
/* GP4SET[SET0] - Set the output HIGH for the pin */
#define GP4SET_SET0_BBA (*(volatile unsigned long *) 0x42402300)
#define GP4SET_SET0_MSK (0x1 << 0 )
#define GP4SET_SET0 (0x1 << 0 )
#define GP4SET_SET0_SET (0x1 << 0 )
/* Reset Value for GP4CLR*/
#define GP4CLR_RVAL 0x0
/* GP4CLR[CLR7] - Set the output low for the port pin */
#define GP4CLR_CLR7_BBA (*(volatile unsigned long *) 0x4240239C)
#define GP4CLR_CLR7_MSK (0x1 << 7 )
#define GP4CLR_CLR7 (0x1 << 7 )
#define GP4CLR_CLR7_CLR (0x1 << 7 )
/* GP4CLR[CLR6] - Set the output low for the port pin */
#define GP4CLR_CLR6_BBA (*(volatile unsigned long *) 0x42402398)
#define GP4CLR_CLR6_MSK (0x1 << 6 )
#define GP4CLR_CLR6 (0x1 << 6 )
#define GP4CLR_CLR6_CLR (0x1 << 6 )
/* GP4CLR[CLR5] - Set the output low for the port pin */
#define GP4CLR_CLR5_BBA (*(volatile unsigned long *) 0x42402394)
#define GP4CLR_CLR5_MSK (0x1 << 5 )
#define GP4CLR_CLR5 (0x1 << 5 )
#define GP4CLR_CLR5_CLR (0x1 << 5 )
/* GP4CLR[CLR4] - Set the output low for the port pin */
#define GP4CLR_CLR4_BBA (*(volatile unsigned long *) 0x42402390)
#define GP4CLR_CLR4_MSK (0x1 << 4 )
#define GP4CLR_CLR4 (0x1 << 4 )
#define GP4CLR_CLR4_CLR (0x1 << 4 )
/* GP4CLR[CLR3] - Set the output low for the port pin */
#define GP4CLR_CLR3_BBA (*(volatile unsigned long *) 0x4240238C)
#define GP4CLR_CLR3_MSK (0x1 << 3 )
#define GP4CLR_CLR3 (0x1 << 3 )
#define GP4CLR_CLR3_CLR (0x1 << 3 )
/* GP4CLR[CLR2] - Set the output low for the port pin */
#define GP4CLR_CLR2_BBA (*(volatile unsigned long *) 0x42402388)
#define GP4CLR_CLR2_MSK (0x1 << 2 )
#define GP4CLR_CLR2 (0x1 << 2 )
#define GP4CLR_CLR2_CLR (0x1 << 2 )
/* GP4CLR[CLR1] - Set the output low for the port pin */
#define GP4CLR_CLR1_BBA (*(volatile unsigned long *) 0x42402384)
#define GP4CLR_CLR1_MSK (0x1 << 1 )
#define GP4CLR_CLR1 (0x1 << 1 )
#define GP4CLR_CLR1_CLR (0x1 << 1 )
/* GP4CLR[CLR0] - Set the output low for the port pin */
#define GP4CLR_CLR0_BBA (*(volatile unsigned long *) 0x42402380)
#define GP4CLR_CLR0_MSK (0x1 << 0 )
#define GP4CLR_CLR0 (0x1 << 0 )
#define GP4CLR_CLR0_CLR (0x1 << 0 )
/* Reset Value for GP4TGL*/
#define GP4TGL_RVAL 0x0
/* GP4TGL[TGL7] - Toggle the output of the port pin */
#define GP4TGL_TGL7_BBA (*(volatile unsigned long *) 0x4240241C)
#define GP4TGL_TGL7_MSK (0x1 << 7 )
#define GP4TGL_TGL7 (0x1 << 7 )
#define GP4TGL_TGL7_TGL (0x1 << 7 )
/* GP4TGL[TGL6] - Toggle the output of the port pin */
#define GP4TGL_TGL6_BBA (*(volatile unsigned long *) 0x42402418)
#define GP4TGL_TGL6_MSK (0x1 << 6 )
#define GP4TGL_TGL6 (0x1 << 6 )
#define GP4TGL_TGL6_TGL (0x1 << 6 )
/* GP4TGL[TGL5] - Toggle the output of the port pin */
#define GP4TGL_TGL5_BBA (*(volatile unsigned long *) 0x42402414)
#define GP4TGL_TGL5_MSK (0x1 << 5 )
#define GP4TGL_TGL5 (0x1 << 5 )
#define GP4TGL_TGL5_TGL (0x1 << 5 )
/* GP4TGL[TGL4] - Toggle the output of the port pin */
#define GP4TGL_TGL4_BBA (*(volatile unsigned long *) 0x42402410)
#define GP4TGL_TGL4_MSK (0x1 << 4 )
#define GP4TGL_TGL4 (0x1 << 4 )
#define GP4TGL_TGL4_TGL (0x1 << 4 )
/* GP4TGL[TGL3] - Toggle the output of the port pin */
#define GP4TGL_TGL3_BBA (*(volatile unsigned long *) 0x4240240C)
#define GP4TGL_TGL3_MSK (0x1 << 3 )
#define GP4TGL_TGL3 (0x1 << 3 )
#define GP4TGL_TGL3_TGL (0x1 << 3 )
/* GP4TGL[TGL2] - Toggle the output of the port pin */
#define GP4TGL_TGL2_BBA (*(volatile unsigned long *) 0x42402408)
#define GP4TGL_TGL2_MSK (0x1 << 2 )
#define GP4TGL_TGL2 (0x1 << 2 )
#define GP4TGL_TGL2_TGL (0x1 << 2 )
/* GP4TGL[TGL1] - Toggle the output of the port pin */
#define GP4TGL_TGL1_BBA (*(volatile unsigned long *) 0x42402404)
#define GP4TGL_TGL1_MSK (0x1 << 1 )
#define GP4TGL_TGL1 (0x1 << 1 )
#define GP4TGL_TGL1_TGL (0x1 << 1 )
/* GP4TGL[TGL0] - Toggle the output of the port pin */
#define GP4TGL_TGL0_BBA (*(volatile unsigned long *) 0x42402400)
#define GP4TGL_TGL0_MSK (0x1 << 0 )
#define GP4TGL_TGL0 (0x1 << 0 )
#define GP4TGL_TGL0_TGL (0x1 << 0 )
/* Reset Value for GP4ODE*/
#define GP4ODE_RVAL 0x0
/* GP4ODE[ODE7] - Open drain enable */
#define GP4ODE_ODE7_BBA (*(volatile unsigned long *) 0x4240249C)
#define GP4ODE_ODE7_MSK (0x1 << 7 )
#define GP4ODE_ODE7 (0x1 << 7 )
#define GP4ODE_ODE7_DIS (0x0 << 7 )
#define GP4ODE_ODE7_EN (0x1 << 7 )
/* GP4ODE[ODE6] - Open drain enable */
#define GP4ODE_ODE6_BBA (*(volatile unsigned long *) 0x42402498)
#define GP4ODE_ODE6_MSK (0x1 << 6 )
#define GP4ODE_ODE6 (0x1 << 6 )
#define GP4ODE_ODE6_DIS (0x0 << 6 )
#define GP4ODE_ODE6_EN (0x1 << 6 )
/* GP4ODE[ODE5] - Open drain enable */
#define GP4ODE_ODE5_BBA (*(volatile unsigned long *) 0x42402494)
#define GP4ODE_ODE5_MSK (0x1 << 5 )
#define GP4ODE_ODE5 (0x1 << 5 )
#define GP4ODE_ODE5_DIS (0x0 << 5 )
#define GP4ODE_ODE5_EN (0x1 << 5 )
/* GP4ODE[ODE4] - Open drain enable */
#define GP4ODE_ODE4_BBA (*(volatile unsigned long *) 0x42402490)
#define GP4ODE_ODE4_MSK (0x1 << 4 )
#define GP4ODE_ODE4 (0x1 << 4 )
#define GP4ODE_ODE4_DIS (0x0 << 4 )
#define GP4ODE_ODE4_EN (0x1 << 4 )
/* GP4ODE[ODE3] - Open drain enable */
#define GP4ODE_ODE3_BBA (*(volatile unsigned long *) 0x4240248C)
#define GP4ODE_ODE3_MSK (0x1 << 3 )
#define GP4ODE_ODE3 (0x1 << 3 )
#define GP4ODE_ODE3_DIS (0x0 << 3 )
#define GP4ODE_ODE3_EN (0x1 << 3 )
/* GP4ODE[ODE2] - Open drain enable */
#define GP4ODE_ODE2_BBA (*(volatile unsigned long *) 0x42402488)
#define GP4ODE_ODE2_MSK (0x1 << 2 )
#define GP4ODE_ODE2 (0x1 << 2 )
#define GP4ODE_ODE2_DIS (0x0 << 2 )
#define GP4ODE_ODE2_EN (0x1 << 2 )
/* GP4ODE[ODE1] - Open drain enable */
#define GP4ODE_ODE1_BBA (*(volatile unsigned long *) 0x42402484)
#define GP4ODE_ODE1_MSK (0x1 << 1 )
#define GP4ODE_ODE1 (0x1 << 1 )
#define GP4ODE_ODE1_DIS (0x0 << 1 )
#define GP4ODE_ODE1_EN (0x1 << 1 )
/* GP4ODE[ODE0] - Open drain enable */
#define GP4ODE_ODE0_BBA (*(volatile unsigned long *) 0x42402480)
#define GP4ODE_ODE0_MSK (0x1 << 0 )
#define GP4ODE_ODE0 (0x1 << 0 )
#define GP4ODE_ODE0_DIS (0x0 << 0 )
#define GP4ODE_ODE0_EN (0x1 << 0 )
#if (__NO_MMR_STRUCTS__==1)
#define GP5CON (*(volatile unsigned char *) 0x40020240)
#define GP5OE (*(volatile unsigned char *) 0x40020244)
#define GP5PUL (*(volatile unsigned char *) 0x40020248)
#define GP5IE (*(volatile unsigned char *) 0x4002024C)
#define GP5IN (*(volatile unsigned char *) 0x40020250)
#define GP5OUT (*(volatile unsigned char *) 0x40020254)
#define GP5SET (*(volatile unsigned char *) 0x40020258)
#define GP5CLR (*(volatile unsigned char *) 0x4002025C)
#define GP5TGL (*(volatile unsigned char *) 0x40020260)
#define GP5ODE (*(volatile unsigned char *) 0x40020264)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for GP5CON*/
#define GP5CON_RVAL 0x0
/* GP5CON[CON3] - p5.3 configuration bits */
#define GP5CON_CON3_MSK (0x3 << 6 )
#define GP5CON_CON3_GPIO (0x0 << 6 ) /* GPIO */
#define GP5CON_CON3_VDAC0 (0x1 << 6 ) /* VDAC0 */
/* GP5CON[CON2] - p5.2 configuration bits */
#define GP5CON_CON2_MSK (0x3 << 4 )
#define GP5CON_CON2_GPIO (0x0 << 4 ) /* GPIO */
#define GP5CON_CON2_VDAC7 (0x1 << 4 ) /* VDAC7 */
/* GP5CON[CON1] - p5.1 configuration bits */
#define GP5CON_CON1_MSK (0x3 << 2 )
#define GP5CON_CON1_GPIO (0x0 << 2 ) /* GPIO */
#define GP5CON_CON1_VDAC6 (0x1 << 2 ) /* VDAC6 */
/* GP5CON[CON0] - p5.0 configuration bits */
#define GP5CON_CON0_MSK (0x3 << 0 )
#define GP5CON_CON0_GPIO (0x0 << 0 ) /* GPIO */
#define GP5CON_CON0_VDAC3 (0x1 << 0 ) /* VDAC3 */
/* Reset Value for GP5OE*/
#define GP5OE_RVAL 0x0
/* GP5OE[OE3] - Pin Output Drive enable */
#define GP5OE_OE3_BBA (*(volatile unsigned long *) 0x4240488C)
#define GP5OE_OE3_MSK (0x1 << 3 )
#define GP5OE_OE3 (0x1 << 3 )
#define GP5OE_OE3_DIS (0x0 << 3 )
#define GP5OE_OE3_EN (0x1 << 3 )
/* GP5OE[OE2] - Pin Output Drive enable */
#define GP5OE_OE2_BBA (*(volatile unsigned long *) 0x42404888)
#define GP5OE_OE2_MSK (0x1 << 2 )
#define GP5OE_OE2 (0x1 << 2 )
#define GP5OE_OE2_DIS (0x0 << 2 )
#define GP5OE_OE2_EN (0x1 << 2 )
/* GP5OE[OE1] - Pin Output Drive enable */
#define GP5OE_OE1_BBA (*(volatile unsigned long *) 0x42404884)
#define GP5OE_OE1_MSK (0x1 << 1 )
#define GP5OE_OE1 (0x1 << 1 )
#define GP5OE_OE1_DIS (0x0 << 1 )
#define GP5OE_OE1_EN (0x1 << 1 )
/* GP5OE[OE0] - Pin Output Drive enable */
#define GP5OE_OE0_BBA (*(volatile unsigned long *) 0x42404880)
#define GP5OE_OE0_MSK (0x1 << 0 )
#define GP5OE_OE0 (0x1 << 0 )
#define GP5OE_OE0_DIS (0x0 << 0 )
#define GP5OE_OE0_EN (0x1 << 0 )
/* Reset Value for GP5PUL*/
#define GP5PUL_RVAL 0x0
/* GP5PUL[PUL3] - Pin Pull down enable */
#define GP5PUL_PUL3_BBA (*(volatile unsigned long *) 0x4240490C)
#define GP5PUL_PUL3_MSK (0x1 << 3 )
#define GP5PUL_PUL3 (0x1 << 3 )
#define GP5PUL_PUL3_DIS (0x0 << 3 )
#define GP5PUL_PUL3_EN (0x1 << 3 )
/* GP5PUL[PUL2] - Pin Pull down enable */
#define GP5PUL_PUL2_BBA (*(volatile unsigned long *) 0x42404908)
#define GP5PUL_PUL2_MSK (0x1 << 2 )
#define GP5PUL_PUL2 (0x1 << 2 )
#define GP5PUL_PUL2_DIS (0x0 << 2 )
#define GP5PUL_PUL2_EN (0x1 << 2 )
/* GP5PUL[PUL1] - Pin Pull down enable */
#define GP5PUL_PUL1_BBA (*(volatile unsigned long *) 0x42404904)
#define GP5PUL_PUL1_MSK (0x1 << 1 )
#define GP5PUL_PUL1 (0x1 << 1 )
#define GP5PUL_PUL1_DIS (0x0 << 1 )
#define GP5PUL_PUL1_EN (0x1 << 1 )
/* GP5PUL[PUL0] - Pin Pull down enable */
#define GP5PUL_PUL0_BBA (*(volatile unsigned long *) 0x42404900)
#define GP5PUL_PUL0_MSK (0x1 << 0 )
#define GP5PUL_PUL0 (0x1 << 0 )
#define GP5PUL_PUL0_DIS (0x0 << 0 )
#define GP5PUL_PUL0_EN (0x1 << 0 )
/* Reset Value for GP5IE*/
#define GP5IE_RVAL 0x0
/* GP5IE[IEN3] - Input path enable */
#define GP5IE_IEN3_BBA (*(volatile unsigned long *) 0x4240498C)
#define GP5IE_IEN3_MSK (0x1 << 3 )
#define GP5IE_IEN3 (0x1 << 3 )
#define GP5IE_IEN3_DIS (0x0 << 3 )
#define GP5IE_IEN3_EN (0x1 << 3 )
/* GP5IE[IEN2] - Input path enable */
#define GP5IE_IEN2_BBA (*(volatile unsigned long *) 0x42404988)
#define GP5IE_IEN2_MSK (0x1 << 2 )
#define GP5IE_IEN2 (0x1 << 2 )
#define GP5IE_IEN2_DIS (0x0 << 2 )
#define GP5IE_IEN2_EN (0x1 << 2 )
/* GP5IE[IEN1] - Input path enable */
#define GP5IE_IEN1_BBA (*(volatile unsigned long *) 0x42404984)
#define GP5IE_IEN1_MSK (0x1 << 1 )
#define GP5IE_IEN1 (0x1 << 1 )
#define GP5IE_IEN1_DIS (0x0 << 1 )
#define GP5IE_IEN1_EN (0x1 << 1 )
/* GP5IE[IEN0] - Input path enable */
#define GP5IE_IEN0_BBA (*(volatile unsigned long *) 0x42404980)
#define GP5IE_IEN0_MSK (0x1 << 0 )
#define GP5IE_IEN0 (0x1 << 0 )
#define GP5IE_IEN0_DIS (0x0 << 0 )
#define GP5IE_IEN0_EN (0x1 << 0 )
/* Reset Value for GP5IN*/
#define GP5IN_RVAL 0x0
/* GP5IN[IN3] - Registered data input */
#define GP5IN_IN3_BBA (*(volatile unsigned long *) 0x42404A0C)
#define GP5IN_IN3_MSK (0x1 << 3 )
#define GP5IN_IN3 (0x1 << 3 )
#define GP5IN_IN3_LOW (0x0 << 3 )
#define GP5IN_IN3_HIGH (0x1 << 3 )
/* GP5IN[IN2] - Registered data input */
#define GP5IN_IN2_BBA (*(volatile unsigned long *) 0x42404A08)
#define GP5IN_IN2_MSK (0x1 << 2 )
#define GP5IN_IN2 (0x1 << 2 )
#define GP5IN_IN2_LOW (0x0 << 2 )
#define GP5IN_IN2_HIGH (0x1 << 2 )
/* GP5IN[IN1] - Registered data input */
#define GP5IN_IN1_BBA (*(volatile unsigned long *) 0x42404A04)
#define GP5IN_IN1_MSK (0x1 << 1 )
#define GP5IN_IN1 (0x1 << 1 )
#define GP5IN_IN1_LOW (0x0 << 1 )
#define GP5IN_IN1_HIGH (0x1 << 1 )
/* GP5IN[IN0] - Registered data input */
#define GP5IN_IN0_BBA (*(volatile unsigned long *) 0x42404A00)
#define GP5IN_IN0_MSK (0x1 << 0 )
#define GP5IN_IN0 (0x1 << 0 )
#define GP5IN_IN0_LOW (0x0 << 0 )
#define GP5IN_IN0_HIGH (0x1 << 0 )
/* Reset Value for GP5OUT*/
#define GP5OUT_RVAL 0x0
/* GP5OUT[OUT3] - Data out */
#define GP5OUT_OUT3_BBA (*(volatile unsigned long *) 0x42404A8C)
#define GP5OUT_OUT3_MSK (0x1 << 3 )
#define GP5OUT_OUT3 (0x1 << 3 )
#define GP5OUT_OUT3_LOW (0x0 << 3 )
#define GP5OUT_OUT3_HIGH (0x1 << 3 )
/* GP5OUT[OUT2] - Data out */
#define GP5OUT_OUT2_BBA (*(volatile unsigned long *) 0x42404A88)
#define GP5OUT_OUT2_MSK (0x1 << 2 )
#define GP5OUT_OUT2 (0x1 << 2 )
#define GP5OUT_OUT2_LOW (0x0 << 2 )
#define GP5OUT_OUT2_HIGH (0x1 << 2 )
/* GP5OUT[OUT1] - Data out */
#define GP5OUT_OUT1_BBA (*(volatile unsigned long *) 0x42404A84)
#define GP5OUT_OUT1_MSK (0x1 << 1 )
#define GP5OUT_OUT1 (0x1 << 1 )
#define GP5OUT_OUT1_LOW (0x0 << 1 )
#define GP5OUT_OUT1_HIGH (0x1 << 1 )
/* GP5OUT[OUT0] - Data out */
#define GP5OUT_OUT0_BBA (*(volatile unsigned long *) 0x42404A80)
#define GP5OUT_OUT0_MSK (0x1 << 0 )
#define GP5OUT_OUT0 (0x1 << 0 )
#define GP5OUT_OUT0_LOW (0x0 << 0 )
#define GP5OUT_OUT0_HIGH (0x1 << 0 )
/* Reset Value for GP5SET*/
#define GP5SET_RVAL 0x0
/* GP5SET[SET3] - Set the output HIGH for the pin */
#define GP5SET_SET3_BBA (*(volatile unsigned long *) 0x42404B0C)
#define GP5SET_SET3_MSK (0x1 << 3 )
#define GP5SET_SET3 (0x1 << 3 )
#define GP5SET_SET3_SET (0x1 << 3 )
/* GP5SET[SET2] - Set the output HIGH for the pin */
#define GP5SET_SET2_BBA (*(volatile unsigned long *) 0x42404B08)
#define GP5SET_SET2_MSK (0x1 << 2 )
#define GP5SET_SET2 (0x1 << 2 )
#define GP5SET_SET2_SET (0x1 << 2 )
/* GP5SET[SET1] - Set the output HIGH for the pin */
#define GP5SET_SET1_BBA (*(volatile unsigned long *) 0x42404B04)
#define GP5SET_SET1_MSK (0x1 << 1 )
#define GP5SET_SET1 (0x1 << 1 )
#define GP5SET_SET1_SET (0x1 << 1 )
/* GP5SET[SET0] - Set the output HIGH for the pin */
#define GP5SET_SET0_BBA (*(volatile unsigned long *) 0x42404B00)
#define GP5SET_SET0_MSK (0x1 << 0 )
#define GP5SET_SET0 (0x1 << 0 )
#define GP5SET_SET0_SET (0x1 << 0 )
/* Reset Value for GP5CLR*/
#define GP5CLR_RVAL 0x0
/* GP5CLR[CLR3] - Set the output low for the port pin */
#define GP5CLR_CLR3_BBA (*(volatile unsigned long *) 0x42404B8C)
#define GP5CLR_CLR3_MSK (0x1 << 3 )
#define GP5CLR_CLR3 (0x1 << 3 )
#define GP5CLR_CLR3_CLR (0x1 << 3 )
/* GP5CLR[CLR2] - Set the output low for the port pin */
#define GP5CLR_CLR2_BBA (*(volatile unsigned long *) 0x42404B88)
#define GP5CLR_CLR2_MSK (0x1 << 2 )
#define GP5CLR_CLR2 (0x1 << 2 )
#define GP5CLR_CLR2_CLR (0x1 << 2 )
/* GP5CLR[CLR1] - Set the output low for the port pin */
#define GP5CLR_CLR1_BBA (*(volatile unsigned long *) 0x42404B84)
#define GP5CLR_CLR1_MSK (0x1 << 1 )
#define GP5CLR_CLR1 (0x1 << 1 )
#define GP5CLR_CLR1_CLR (0x1 << 1 )
/* GP5CLR[CLR0] - Set the output low for the port pin */
#define GP5CLR_CLR0_BBA (*(volatile unsigned long *) 0x42404B80)
#define GP5CLR_CLR0_MSK (0x1 << 0 )
#define GP5CLR_CLR0 (0x1 << 0 )
#define GP5CLR_CLR0_CLR (0x1 << 0 )
/* Reset Value for GP5TGL*/
#define GP5TGL_RVAL 0x0
/* GP5TGL[TGL3] - Toggle the output of the port pin */
#define GP5TGL_TGL3_BBA (*(volatile unsigned long *) 0x42404C0C)
#define GP5TGL_TGL3_MSK (0x1 << 3 )
#define GP5TGL_TGL3 (0x1 << 3 )
#define GP5TGL_TGL3_TGL (0x1 << 3 )
/* GP5TGL[TGL2] - Toggle the output of the port pin */
#define GP5TGL_TGL2_BBA (*(volatile unsigned long *) 0x42404C08)
#define GP5TGL_TGL2_MSK (0x1 << 2 )
#define GP5TGL_TGL2 (0x1 << 2 )
#define GP5TGL_TGL2_TGL (0x1 << 2 )
/* GP5TGL[TGL1] - Toggle the output of the port pin */
#define GP5TGL_TGL1_BBA (*(volatile unsigned long *) 0x42404C04)
#define GP5TGL_TGL1_MSK (0x1 << 1 )
#define GP5TGL_TGL1 (0x1 << 1 )
#define GP5TGL_TGL1_TGL (0x1 << 1 )
/* GP5TGL[TGL0] - Toggle the output of the port pin */
#define GP5TGL_TGL0_BBA (*(volatile unsigned long *) 0x42404C00)
#define GP5TGL_TGL0_MSK (0x1 << 0 )
#define GP5TGL_TGL0 (0x1 << 0 )
#define GP5TGL_TGL0_TGL (0x1 << 0 )
/* Reset Value for GP5ODE*/
#define GP5ODE_RVAL 0x0
/* GP5ODE[ODE3] - Open drain enable */
#define GP5ODE_ODE3_BBA (*(volatile unsigned long *) 0x42404C8C)
#define GP5ODE_ODE3_MSK (0x1 << 3 )
#define GP5ODE_ODE3 (0x1 << 3 )
#define GP5ODE_ODE3_DIS (0x0 << 3 )
#define GP5ODE_ODE3_EN (0x1 << 3 )
/* GP5ODE[ODE2] - Open drain enable */
#define GP5ODE_ODE2_BBA (*(volatile unsigned long *) 0x42404C88)
#define GP5ODE_ODE2_MSK (0x1 << 2 )
#define GP5ODE_ODE2 (0x1 << 2 )
#define GP5ODE_ODE2_DIS (0x0 << 2 )
#define GP5ODE_ODE2_EN (0x1 << 2 )
/* GP5ODE[ODE1] - Open drain enable */
#define GP5ODE_ODE1_BBA (*(volatile unsigned long *) 0x42404C84)
#define GP5ODE_ODE1_MSK (0x1 << 1 )
#define GP5ODE_ODE1 (0x1 << 1 )
#define GP5ODE_ODE1_DIS (0x0 << 1 )
#define GP5ODE_ODE1_EN (0x1 << 1 )
/* GP5ODE[ODE0] - Open drain enable */
#define GP5ODE_ODE0_BBA (*(volatile unsigned long *) 0x42404C80)
#define GP5ODE_ODE0_MSK (0x1 << 0 )
#define GP5ODE_ODE0 (0x1 << 0 )
#define GP5ODE_ODE0_DIS (0x0 << 0 )
#define GP5ODE_ODE0_EN (0x1 << 0 )
// ------------------------------------------------------------------------------------------------
// ----- PWM -----
// ------------------------------------------------------------------------------------------------
/**
* @brief PWM (pADI_PWM)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_PWM Structure */
__IO uint16_t PWMCON0; /*!< PWM control register */
__I uint16_t RESERVED0;
__IO uint16_t PWMCON1; /*!< ADC conversion start and trip control register */
__I uint16_t RESERVED1;
__IO uint16_t PWMICLR; /*!< Hardware trip configuration register */
__I uint16_t RESERVED2[3];
__IO uint16_t PWM0COM0; /*!< Compare Register 0 for PWM0 and PWM1 */
__I uint16_t RESERVED3;
__IO uint16_t PWM0COM1; /*!< Compare Register 1 for PWM0 and PWM1 */
__I uint16_t RESERVED4;
__IO uint16_t PWM0COM2; /*!< Compare Register 2 for PWM0 and PWM1 */
__I uint16_t RESERVED5;
__IO uint16_t PWM0LEN; /*!< Period value register for PWM0 and PWM1 */
__I uint16_t RESERVED6;
__IO uint16_t PWM1COM0; /*!< Compare Register 0 for PWM2 and PWM3 */
__I uint16_t RESERVED7;
__IO uint16_t PWM1COM1; /*!< Compare Register 1 for PWM2 and PWM3 */
__I uint16_t RESERVED8;
__IO uint16_t PWM1COM2; /*!< Compare Register 2 for PWM2 and PWM3 */
__I uint16_t RESERVED9;
__IO uint16_t PWM1LEN; /*!< Period value register for PWM2 and PWM3 */
__I uint16_t RESERVED10;
__IO uint16_t PWM2COM0; /*!< Compare Register 0 for PWM4 and PWM5 */
__I uint16_t RESERVED11;
__IO uint16_t PWM2COM1; /*!< Compare Register 1 for PWM4 and PWM5 */
__I uint16_t RESERVED12;
__IO uint16_t PWM2COM2; /*!< Compare Register 2 for PWM4 and PWM5 */
__I uint16_t RESERVED13;
__IO uint16_t PWM2LEN; /*!< Period value register for PWM4 and PWM5 */
__I uint16_t RESERVED14;
__IO uint16_t PWM3COM0; /*!< Compare Register 0 for PWM6 and PWM7 */
__I uint16_t RESERVED15;
__IO uint16_t PWM3COM1; /*!< Compare Register 1 for PWM6 and PWM7 */
__I uint16_t RESERVED16;
__IO uint16_t PWM3COM2; /*!< Compare Register 2 for PWM6 and PWM7 */
__I uint16_t RESERVED17;
__IO uint16_t PWM3LEN; /*!< Period value register for PWM6 and PWM7 */
} ADI_PWM_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define PWMCON0 (*(volatile unsigned short int *) 0x40024000)
#define PWMCON1 (*(volatile unsigned short int *) 0x40024004)
#define PWMICLR (*(volatile unsigned short int *) 0x40024008)
#define PWM0COM0 (*(volatile unsigned short int *) 0x40024010)
#define PWM0COM1 (*(volatile unsigned short int *) 0x40024014)
#define PWM0COM2 (*(volatile unsigned short int *) 0x40024018)
#define PWM0LEN (*(volatile unsigned short int *) 0x4002401C)
#define PWM1COM0 (*(volatile unsigned short int *) 0x40024020)
#define PWM1COM1 (*(volatile unsigned short int *) 0x40024024)
#define PWM1COM2 (*(volatile unsigned short int *) 0x40024028)
#define PWM1LEN (*(volatile unsigned short int *) 0x4002402C)
#define PWM2COM0 (*(volatile unsigned short int *) 0x40024030)
#define PWM2COM1 (*(volatile unsigned short int *) 0x40024034)
#define PWM2COM2 (*(volatile unsigned short int *) 0x40024038)
#define PWM2LEN (*(volatile unsigned short int *) 0x4002403C)
#define PWM3COM0 (*(volatile unsigned short int *) 0x40024040)
#define PWM3COM1 (*(volatile unsigned short int *) 0x40024044)
#define PWM3COM2 (*(volatile unsigned short int *) 0x40024048)
#define PWM3LEN (*(volatile unsigned short int *) 0x4002404C)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for PWMCON0*/
#define PWMCON0_RVAL 0x12
/* PWMCON0[SYNC] - Set to enable PWM synchronization from the SYNC pin of the PWM */
#define PWMCON0_SYNC_BBA (*(volatile unsigned long *) 0x4248003C)
#define PWMCON0_SYNC_MSK (0x1 << 15 )
#define PWMCON0_SYNC (0x1 << 15 )
#define PWMCON0_SYNC_DIS (0x0 << 15 ) /* Ignore transition from the SYNC pin */
#define PWMCON0_SYNC_EN (0x1 << 15 ) /* All PWM counters are reset on the next clock cycle after detection of a falling edge from SYNC pin */
/* PWMCON0[PWM7INV] - Set to invert PWM7 output */
#define PWMCON0_PWM7INV_BBA (*(volatile unsigned long *) 0x42480038)
#define PWMCON0_PWM7INV_MSK (0x1 << 14 )
#define PWMCON0_PWM7INV (0x1 << 14 )
#define PWMCON0_PWM7INV_DIS (0x0 << 14 )
#define PWMCON0_PWM7INV_EN (0x1 << 14 )
/* PWMCON0[PWM5INV] - Set to invert PWM5 output */
#define PWMCON0_PWM5INV_BBA (*(volatile unsigned long *) 0x42480034)
#define PWMCON0_PWM5INV_MSK (0x1 << 13 )
#define PWMCON0_PWM5INV (0x1 << 13 )
#define PWMCON0_PWM5INV_DIS (0x0 << 13 )
#define PWMCON0_PWM5INV_EN (0x1 << 13 )
/* PWMCON0[PWM3INV] - Set to invert PWM3 output */
#define PWMCON0_PWM3INV_BBA (*(volatile unsigned long *) 0x42480030)
#define PWMCON0_PWM3INV_MSK (0x1 << 12 )
#define PWMCON0_PWM3INV (0x1 << 12 )
#define PWMCON0_PWM3INV_DIS (0x0 << 12 )
#define PWMCON0_PWM3INV_EN (0x1 << 12 )
/* PWMCON0[PWM1INV] - Set to invert PWM1 output */
#define PWMCON0_PWM1INV_BBA (*(volatile unsigned long *) 0x4248002C)
#define PWMCON0_PWM1INV_MSK (0x1 << 11 )
#define PWMCON0_PWM1INV (0x1 << 11 )
#define PWMCON0_PWM1INV_DIS (0x0 << 11 )
#define PWMCON0_PWM1INV_EN (0x1 << 11 )
/* PWMCON0[PWMIEN] - Set to enable interrupts for PWM */
#define PWMCON0_PWMIEN_BBA (*(volatile unsigned long *) 0x42480028)
#define PWMCON0_PWMIEN_MSK (0x1 << 10 )
#define PWMCON0_PWMIEN (0x1 << 10 )
#define PWMCON0_PWMIEN_DIS (0x0 << 10 )
#define PWMCON0_PWMIEN_EN (0x1 << 10 )
/* PWMCON0[ENA] - When HOFF=0 and HMODE=1 this serves as enable for Pair 0 and 1 */
#define PWMCON0_ENA_BBA (*(volatile unsigned long *) 0x42480024)
#define PWMCON0_ENA_MSK (0x1 << 9 )
#define PWMCON0_ENA (0x1 << 9 )
#define PWMCON0_ENA_DIS (0x0 << 9 ) /* Disable Pair 0 and 1 */
#define PWMCON0_ENA_EN (0x1 << 9 ) /* Enable Pair 0 and 1 */
/* PWMCON0[PWMCMP] - PWM Clock prescaler. Sets HCLK divider. */
#define PWMCON0_PWMCMP_MSK (0x7 << 6 )
#define PWMCON0_PWMCMP_DIV2 (0x0 << 6 ) /* HCLK/2 */
#define PWMCON0_PWMCMP_DIV4 (0x1 << 6 ) /* HCLK/4 */
#define PWMCON0_PWMCMP_DIV8 (0x2 << 6 ) /* HCLK/8 */
#define PWMCON0_PWMCMP_DIV16 (0x3 << 6 ) /* HCLK/16 */
#define PWMCON0_PWMCMP_DIV32 (0x4 << 6 ) /* HCLK/32 */
#define PWMCON0_PWMCMP_DIV64 (0x5 << 6 ) /* HCLK/64 */
#define PWMCON0_PWMCMP_DIV128 (0x6 << 6 ) /* HCLK/128 */
#define PWMCON0_PWMCMP_DIV256 (0x7 << 6 ) /* HCLK/256 */
/* PWMCON0[POINV] - Set to invert PWM outputs for Pair 0 and 1 when PWM is in H-bridge mode */
#define PWMCON0_POINV_BBA (*(volatile unsigned long *) 0x42480014)
#define PWMCON0_POINV_MSK (0x1 << 5 )
#define PWMCON0_POINV (0x1 << 5 )
#define PWMCON0_POINV_DIS (0x0 << 5 )
#define PWMCON0_POINV_EN (0x1 << 5 )
/* PWMCON0[HOFF] - Set to turn off the high-side for Pair 0 and 1 when PWM is in H-bridge mode */
#define PWMCON0_HOFF_BBA (*(volatile unsigned long *) 0x42480010)
#define PWMCON0_HOFF_MSK (0x1 << 4 )
#define PWMCON0_HOFF (0x1 << 4 )
#define PWMCON0_HOFF_DIS (0x0 << 4 )
#define PWMCON0_HOFF_EN (0x1 << 4 )
/* PWMCON0[LCOMP] - Signal to load a new set of compare register values. In standard mode, this bit is cleared when the new values are loaded in the compare registers for all the channels. In H-bridge mode this bit does not get cleared, but the user must write a value of 1 to this bit in order for the compare registers to be loaded */
#define PWMCON0_LCOMP_BBA (*(volatile unsigned long *) 0x4248000C)
#define PWMCON0_LCOMP_MSK (0x1 << 3 )
#define PWMCON0_LCOMP (0x1 << 3 )
#define PWMCON0_LCOMP_DIS (0x0 << 3 ) /* Use the values previously store in the compare and length registers */
#define PWMCON0_LCOMP_EN (0x1 << 3 ) /* Load the internal compare registers with values stored in the PWMxCOMx and PWMxLEN registers */
/* PWMCON0[DIR] - Direction control when PWM is in H-bridge mode */
#define PWMCON0_DIR_BBA (*(volatile unsigned long *) 0x42480008)
#define PWMCON0_DIR_MSK (0x1 << 2 )
#define PWMCON0_DIR (0x1 << 2 )
#define PWMCON0_DIR_DIS (0x0 << 2 ) /* PWM2 and PWM3 act as output signals while PWM0 and PWM1 are held low */
#define PWMCON0_DIR_EN (0x1 << 2 ) /* PWM0 and PWM1 act as output signals while PWM2 and PWM3 are held low */
/* PWMCON0[HMODE] - Set to enable H-bridge mode */
#define PWMCON0_HMODE_BBA (*(volatile unsigned long *) 0x42480004)
#define PWMCON0_HMODE_MSK (0x1 << 1 )
#define PWMCON0_HMODE (0x1 << 1 )
#define PWMCON0_HMODE_DIS (0x0 << 1 )
#define PWMCON0_HMODE_EN (0x1 << 1 )
/* PWMCON0[PWMEN] - Master enable for PWM */
#define PWMCON0_PWMEN_BBA (*(volatile unsigned long *) 0x42480000)
#define PWMCON0_PWMEN_MSK (0x1 << 0 )
#define PWMCON0_PWMEN (0x1 << 0 )
#define PWMCON0_PWMEN_DIS (0x0 << 0 ) /* Disable all PWM outputs */
#define PWMCON0_PWMEN_EN (0x1 << 0 ) /* Enable all PWM outputs */
/* Reset Value for PWMCON1*/
#define PWMCON1_RVAL 0x0
/* PWMCON1[TRIP_EN] - Set to enable PWM Trip functionality */
#define PWMCON1_TRIP_EN_BBA (*(volatile unsigned long *) 0x42480098)
#define PWMCON1_TRIP_EN_MSK (0x1 << 6 )
#define PWMCON1_TRIP_EN (0x1 << 6 )
#define PWMCON1_TRIP_EN_DIS (0x0 << 6 )
#define PWMCON1_TRIP_EN_EN (0x1 << 6 )
/* Reset Value for PWMICLR*/
#define PWMICLR_RVAL 0x0
/* PWMICLR[TRIP] - Write a 1 to clear latched IRQPWMTrip interrupt. Returns 0 on reads. */
#define PWMICLR_TRIP_BBA (*(volatile unsigned long *) 0x42480110)
#define PWMICLR_TRIP_MSK (0x1 << 4 )
#define PWMICLR_TRIP (0x1 << 4 )
#define PWMICLR_TRIP_DIS (0x0 << 4 )
#define PWMICLR_TRIP_EN (0x1 << 4 )
/* PWMICLR[PWM3] - Write a 1 to clear latched IRQPWM3 interrupt. Returns 0 on reads. */
#define PWMICLR_PWM3_BBA (*(volatile unsigned long *) 0x4248010C)
#define PWMICLR_PWM3_MSK (0x1 << 3 )
#define PWMICLR_PWM3 (0x1 << 3 )
#define PWMICLR_PWM3_DIS (0x0 << 3 )
#define PWMICLR_PWM3_EN (0x1 << 3 )
/* PWMICLR[PWM2] - Write a 1 to clear latched IRQPWM2 interrupt. Returns 0 on reads. */
#define PWMICLR_PWM2_BBA (*(volatile unsigned long *) 0x42480108)
#define PWMICLR_PWM2_MSK (0x1 << 2 )
#define PWMICLR_PWM2 (0x1 << 2 )
#define PWMICLR_PWM2_DIS (0x0 << 2 )
#define PWMICLR_PWM2_EN (0x1 << 2 )
/* PWMICLR[PWM1] - Write a 1 to clear latched IRQPWM1 interrupt. Returns 0 on reads. */
#define PWMICLR_PWM1_BBA (*(volatile unsigned long *) 0x42480104)
#define PWMICLR_PWM1_MSK (0x1 << 1 )
#define PWMICLR_PWM1 (0x1 << 1 )
#define PWMICLR_PWM1_DIS (0x0 << 1 )
#define PWMICLR_PWM1_EN (0x1 << 1 )
/* PWMICLR[PWM0] - Write a 1 to clear latched IRQPWM0 interrupt. Returns 0 on reads. */
#define PWMICLR_PWM0_BBA (*(volatile unsigned long *) 0x42480100)
#define PWMICLR_PWM0_MSK (0x1 << 0 )
#define PWMICLR_PWM0 (0x1 << 0 )
#define PWMICLR_PWM0_DIS (0x0 << 0 )
#define PWMICLR_PWM0_EN (0x1 << 0 )
/* Reset Value for PWM0COM0*/
#define PWM0COM0_RVAL 0x0
/* PWM0COM0[COM0] - Compare register 0 data */
#define PWM0COM0_COM0_MSK (0xFFFF << 0 )
/* Reset Value for PWM0COM1*/
#define PWM0COM1_RVAL 0x0
/* PWM0COM1[COM1] - Compare register 1 data */
#define PWM0COM1_COM1_MSK (0xFFFF << 0 )
/* Reset Value for PWM0COM2*/
#define PWM0COM2_RVAL 0x0
/* PWM0COM2[COM2] - Compare register 2 data */
#define PWM0COM2_COM2_MSK (0xFFFF << 0 )
/* Reset Value for PWM0LEN*/
#define PWM0LEN_RVAL 0x0
/* PWM0LEN[LEN] - Period value */
#define PWM0LEN_LEN_MSK (0xFFFF << 0 )
/* Reset Value for PWM1COM0*/
#define PWM1COM0_RVAL 0x0
/* PWM1COM0[COM0] - Compare register 0 data */
#define PWM1COM0_COM0_MSK (0xFFFF << 0 )
/* Reset Value for PWM1COM1*/
#define PWM1COM1_RVAL 0x0
/* PWM1COM1[COM1] - Compare register 1 data */
#define PWM1COM1_COM1_MSK (0xFFFF << 0 )
/* Reset Value for PWM1COM2*/
#define PWM1COM2_RVAL 0x0
/* PWM1COM2[COM2] - Compare register 2 data */
#define PWM1COM2_COM2_MSK (0xFFFF << 0 )
/* Reset Value for PWM1LEN*/
#define PWM1LEN_RVAL 0x0
/* PWM1LEN[LEN] - Period value */
#define PWM1LEN_LEN_MSK (0xFFFF << 0 )
/* Reset Value for PWM2COM0*/
#define PWM2COM0_RVAL 0x0
/* PWM2COM0[COM0] - Compare register 0 data */
#define PWM2COM0_COM0_MSK (0xFFFF << 0 )
/* Reset Value for PWM2COM1*/
#define PWM2COM1_RVAL 0x0
/* PWM2COM1[COM1] - Compare register 1 data */
#define PWM2COM1_COM1_MSK (0xFFFF << 0 )
/* Reset Value for PWM2COM2*/
#define PWM2COM2_RVAL 0x0
/* PWM2COM2[COM2] - Compare register 2 data */
#define PWM2COM2_COM2_MSK (0xFFFF << 0 )
/* Reset Value for PWM2LEN*/
#define PWM2LEN_RVAL 0x0
/* PWM2LEN[LEN] - Period value */
#define PWM2LEN_LEN_MSK (0xFFFF << 0 )
/* Reset Value for PWM3COM0*/
#define PWM3COM0_RVAL 0x0
/* PWM3COM0[COM0] - Compare register 0 data */
#define PWM3COM0_COM0_MSK (0xFFFF << 0 )
/* Reset Value for PWM3COM1*/
#define PWM3COM1_RVAL 0x0
/* PWM3COM1[COM1] - Compare register 1 data */
#define PWM3COM1_COM1_MSK (0xFFFF << 0 )
/* Reset Value for PWM3COM2*/
#define PWM3COM2_RVAL 0x0
/* PWM3COM2[COM2] - Compare register 2 data */
#define PWM3COM2_COM2_MSK (0xFFFF << 0 )
/* Reset Value for PWM3LEN*/
#define PWM3LEN_RVAL 0x0
/* PWM3LEN[LEN] - Period value */
#define PWM3LEN_LEN_MSK (0xFFFF << 0 )
// ------------------------------------------------------------------------------------------------
// ----- CLKCTL -----
// ------------------------------------------------------------------------------------------------
/**
* @brief clocking (pADI_CLKCTL)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_CLKCTL Structure */
__IO uint16_t CLKCON0; /*!< Misc clock settings register */
__I uint16_t RESERVED0;
__IO uint16_t CLKCON1; /*!< Clock dividers register */
__I uint16_t RESERVED1[7];
__IO uint16_t CLKCON5; /*!< User clock gating control register */
__I uint16_t RESERVED2;
__IO uint16_t CLKSTAT0; /*!< Clocking status */
} ADI_CLKCTL_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define CLKCON0 (*(volatile unsigned short int *) 0x40028000)
#define CLKCON1 (*(volatile unsigned short int *) 0x40028004)
#define CLKCON5 (*(volatile unsigned short int *) 0x40028014)
#define CLKSTAT0 (*(volatile unsigned short int *) 0x40028018)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for CLKCON0*/
#define CLKCON0_RVAL 0x0
/* CLKCON0[HFXTALIE] - High frequency crystal interrupt enable */
#define CLKCON0_HFXTALIE_BBA (*(volatile unsigned long *) 0x4250003C)
#define CLKCON0_HFXTALIE_MSK (0x1 << 15 )
#define CLKCON0_HFXTALIE (0x1 << 15 )
#define CLKCON0_HFXTALIE_DIS (0x0 << 15 ) /* An interrupt to the core will not be generated on a HFXTAL ok or HFXTAL nok */
#define CLKCON0_HFXTALIE_EN (0x1 << 15 ) /* An interrupt to the core will be generated on a HFXTAL ok or HFXTAL nok */
/* CLKCON0[SPLLIE] - SPLL Interrupt enable */
#define CLKCON0_SPLLIE_BBA (*(volatile unsigned long *) 0x42500034)
#define CLKCON0_SPLLIE_MSK (0x1 << 13 )
#define CLKCON0_SPLLIE (0x1 << 13 )
#define CLKCON0_SPLLIE_DIS (0x0 << 13 ) /* System PLL interrupt will not be generated */
#define CLKCON0_SPLLIE_EN (0x1 << 13 ) /* System PLL interrupt will be generated */
/* CLKCON0[PLLMUX] - PLL source selection */
#define CLKCON0_PLLMUX_BBA (*(volatile unsigned long *) 0x4250002C)
#define CLKCON0_PLLMUX_MSK (0x1 << 11 )
#define CLKCON0_PLLMUX (0x1 << 11 )
#define CLKCON0_PLLMUX_HFOSC (0x0 << 11 ) /* Internal oscillator is selected (HFOSC) */
#define CLKCON0_PLLMUX_HFXTAL (0x1 << 11 ) /* External oscillator is selected (HFXTAL) */
/* CLKCON0[CLKOUT] - GPIO clk out select */
#define CLKCON0_CLKOUT_MSK (0xF << 4 )
#define CLKCON0_CLKOUT_ROOT (0x0 << 4 ) /* Root Clock */
#define CLKCON0_CLKOUT_LFOSC (0x1 << 4 ) /* LFOSC (32 kHz) */
#define CLKCON0_CLKOUT_HFOSC (0x2 << 4 ) /* HFOSC (16 MHz) */
#define CLKCON0_CLKOUT_CORE (0x4 << 4 ) /* Core Clock */
#define CLKCON0_CLKOUT_PCLK (0x5 << 4 ) /* PCLK */
#define CLKCON0_CLKOUT_T0 (0xB << 4 ) /* Timer 0 Clock */
#define CLKCON0_CLKOUT_WUT (0xC << 4 ) /* Wake up Timer Clock */
#define CLKCON0_CLKOUT_HFXTAL (0xE << 4 ) /* HFXTAL */
/* CLKCON0[CLKMUX] - Clock mux select */
#define CLKCON0_CLKMUX_MSK (0x3 << 0 )
#define CLKCON0_CLKMUX_HFOSC (0x0 << 0 ) /* High frequency internal oscillator (HFOSC) */
#define CLKCON0_CLKMUX_SPLL (0x1 << 0 ) /* System PLL is selected (80 MHz) */
#define CLKCON0_CLKMUX_UPLL (0x2 << 0 ) /* UPLL is selected (60 MHz) */
#define CLKCON0_CLKMUX_EXTCLK (0x3 << 0 ) /* External GPIO port is selected (ECLKIN) */
/* Reset Value for CLKCON1*/
#define CLKCON1_RVAL 0xA82
/* CLKCON1[CDD2DCLK] - D2DCLK divide bits */
#define CLKCON1_CDD2DCLK_BBA (*(volatile unsigned long *) 0x425000AC)
#define CLKCON1_CDD2DCLK_MSK (0x1 << 11 )
#define CLKCON1_CDD2DCLK (0x1 << 11 )
#define CLKCON1_CDD2DCLK_DIV1 (0x0 << 11 ) /* D2D_CLK frequency = HCLK frequency */
#define CLKCON1_CDD2DCLK_DIV2 (0x1 << 11 ) /* D2D_CLK frequency = half of HCLK frequency */
/* CLKCON1[CDPCLK] - PCLK divide bits */
#define CLKCON1_CDPCLK_MSK (0x7 << 8 )
#define CLKCON1_CDPCLK_DIV1 (0x0 << 8 ) /* DIV1. Divide by 1 (PCLK is equal to root clock) */
#define CLKCON1_CDPCLK_DIV2 (0x1 << 8 ) /* DIV2. Divide by 2 (PCLK is half the frequency of root clock) */
#define CLKCON1_CDPCLK_DIV4 (0x2 << 8 ) /* DIV4. Divide by 4 (PCLK is quarter the frequency of root clock, 20 MHz) */
#define CLKCON1_CDPCLK_DIV8 (0x3 << 8 ) /* DIV8. Divide by 8 */
#define CLKCON1_CDPCLK_DIV16 (0x4 << 8 ) /* DIV16. Divide by 16 */
#define CLKCON1_CDPCLK_DIV32 (0x5 << 8 ) /* DIV32. Divide by 32 */
#define CLKCON1_CDPCLK_DIV64 (0x6 << 8 ) /* DIV64. Divide by 164 */
#define CLKCON1_CDPCLK_DIV128 (0x7 << 8 ) /* DIV128. Divide by 128 */
/* CLKCON1[CDHCLK] - HCLK divide bits */
#define CLKCON1_CDHCLK_MSK (0x7 << 0 )
#define CLKCON1_CDHCLK_DIV1 (0x0 << 0 ) /* DIV1. Divide by 1 (HCLK is equal to root clock) */
#define CLKCON1_CDHCLK_DIV2 (0x1 << 0 ) /* DIV2. Divide by 2 (HCLK is half the frequency of root clock) */
#define CLKCON1_CDHCLK_DIV4 (0x2 << 0 ) /* DIV4. Divide by 4 (HCLK is quarter the frequency of root clock) */
#define CLKCON1_CDHCLK_DIV8 (0x3 << 0 ) /* DIV8. Divide by 8 */
#define CLKCON1_CDHCLK_DIV16 (0x4 << 0 ) /* DIV16.Divide by 16 */
#define CLKCON1_CDHCLK_DIV32 (0x5 << 0 ) /* DIV32.Divide by 32 */
#define CLKCON1_CDHCLK_DIV64 (0x6 << 0 ) /* DIV64.Divide by 64 */
#define CLKCON1_CDHCLK_DIV128 (0x7 << 0 ) /* DIV128. Divide by 128 */
/* Reset Value for CLKCON5*/
#define CLKCON5_RVAL 0x0
/* CLKCON5[D2DCLKOFF] - D2D clock user control */
#define CLKCON5_D2DCLKOFF_BBA (*(volatile unsigned long *) 0x42500298)
#define CLKCON5_D2DCLKOFF_MSK (0x1 << 6 )
#define CLKCON5_D2DCLKOFF (0x1 << 6 )
#define CLKCON5_D2DCLKOFF_ON (0x0 << 6 ) /* Clock on */
#define CLKCON5_D2DCLKOFF_OFF (0x1 << 6 ) /* Clock off */
/* CLKCON5[UCLKUARTOFF] - UART clock user control */
#define CLKCON5_UCLKUARTOFF_BBA (*(volatile unsigned long *) 0x42500294)
#define CLKCON5_UCLKUARTOFF_MSK (0x1 << 5 )
#define CLKCON5_UCLKUARTOFF (0x1 << 5 )
#define CLKCON5_UCLKUARTOFF_ON (0x0 << 5 ) /* Clock on */
#define CLKCON5_UCLKUARTOFF_OFF (0x1 << 5 ) /* Clock off */
/* CLKCON5[UCLKI2C1OFF] - I2C1 clock user control */
#define CLKCON5_UCLKI2C1OFF_BBA (*(volatile unsigned long *) 0x42500290)
#define CLKCON5_UCLKI2C1OFF_MSK (0x1 << 4 )
#define CLKCON5_UCLKI2C1OFF (0x1 << 4 )
#define CLKCON5_UCLKI2C1OFF_ON (0x0 << 4 ) /* Clock on */
#define CLKCON5_UCLKI2C1OFF_OFF (0x1 << 4 ) /* Clock off */
/* CLKCON5[UCLKI2C0OFF] - I2C0 clock user control */
#define CLKCON5_UCLKI2C0OFF_BBA (*(volatile unsigned long *) 0x4250028C)
#define CLKCON5_UCLKI2C0OFF_MSK (0x1 << 3 )
#define CLKCON5_UCLKI2C0OFF (0x1 << 3 )
#define CLKCON5_UCLKI2C0OFF_ON (0x0 << 3 ) /* Clock on */
#define CLKCON5_UCLKI2C0OFF_OFF (0x1 << 3 ) /* Clock off */
/* CLKCON5[UCLKSPI1OFF] - SPI1 clock user control */
#define CLKCON5_UCLKSPI1OFF_BBA (*(volatile unsigned long *) 0x42500284)
#define CLKCON5_UCLKSPI1OFF_MSK (0x1 << 1 )
#define CLKCON5_UCLKSPI1OFF (0x1 << 1 )
#define CLKCON5_UCLKSPI1OFF_ON (0x0 << 1 ) /* Clock on */
#define CLKCON5_UCLKSPI1OFF_OFF (0x1 << 1 ) /* Clock off */
/* CLKCON5[UCLKSPI0OFF] - SPI0 clock user control */
#define CLKCON5_UCLKSPI0OFF_BBA (*(volatile unsigned long *) 0x42500280)
#define CLKCON5_UCLKSPI0OFF_MSK (0x1 << 0 )
#define CLKCON5_UCLKSPI0OFF (0x1 << 0 )
#define CLKCON5_UCLKSPI0OFF_ON (0x0 << 0 ) /* Clock on */
#define CLKCON5_UCLKSPI0OFF_OFF (0x1 << 0 ) /* Clock off */
/* Reset Value for CLKSTAT0*/
#define CLKSTAT0_RVAL 0x0
/* CLKSTAT0[HFXTALNOK] - HF crystal not stable */
#define CLKSTAT0_HFXTALNOK_BBA (*(volatile unsigned long *) 0x42500338)
#define CLKSTAT0_HFXTALNOK_MSK (0x1 << 14 )
#define CLKSTAT0_HFXTALNOK (0x1 << 14 )
/* CLKSTAT0[HFXTALOK] - HF crystal stable */
#define CLKSTAT0_HFXTALOK_BBA (*(volatile unsigned long *) 0x42500334)
#define CLKSTAT0_HFXTALOK_MSK (0x1 << 13 )
#define CLKSTAT0_HFXTALOK (0x1 << 13 )
/* CLKSTAT0[HFXTALSTATUS] - HF crystal status */
#define CLKSTAT0_HFXTALSTATUS_BBA (*(volatile unsigned long *) 0x42500330)
#define CLKSTAT0_HFXTALSTATUS_MSK (0x1 << 12 )
#define CLKSTAT0_HFXTALSTATUS (0x1 << 12 )
/* CLKSTAT0[SPLLUNLOCK] - System PLL unlock */
#define CLKSTAT0_SPLLUNLOCK_BBA (*(volatile unsigned long *) 0x42500308)
#define CLKSTAT0_SPLLUNLOCK_MSK (0x1 << 2 )
#define CLKSTAT0_SPLLUNLOCK (0x1 << 2 )
/* CLKSTAT0[SPLLLOCK] - System PLL lock */
#define CLKSTAT0_SPLLLOCK_BBA (*(volatile unsigned long *) 0x42500304)
#define CLKSTAT0_SPLLLOCK_MSK (0x1 << 1 )
#define CLKSTAT0_SPLLLOCK (0x1 << 1 )
/* CLKSTAT0[SPLLSTATUS] - System PLL status */
#define CLKSTAT0_SPLLSTATUS_BBA (*(volatile unsigned long *) 0x42500300)
#define CLKSTAT0_SPLLSTATUS_MSK (0x1 << 0 )
#define CLKSTAT0_SPLLSTATUS (0x1 << 0 )
// ------------------------------------------------------------------------------------------------
// ----- dma_ctl -----
// ------------------------------------------------------------------------------------------------
/**
* @brief dma_ctl (pADI_dma_ctl)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_dma_ctl Structure */
__IO uint16_t GPFDMACTL; /*!< DMA Channel Control */
__I uint16_t RESERVED0;
__IO uint32_t L1SRAMCTL; /*!< L1SRAMCTL */
} ADI_dma_ctl_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define GPFDMACTL (*(volatile unsigned short int *) 0x40028100)
#define L1SRAMCTL (*(volatile unsigned long *) 0x40028104)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for GPFDMACTL*/
#define GPFDMACTL_RVAL 0x0
/* GPFDMACTL[GPFlash] - DMA Channel 13 Control */
#define GPFDMACTL_GPFlash_BBA (*(volatile unsigned long *) 0x42502000)
#define GPFDMACTL_GPFlash_MSK (0x1 << 0 )
#define GPFDMACTL_GPFlash (0x1 << 0 )
/* Reset Value for L1SRAMCTL*/
#define L1SRAMCTL_RVAL 0x0
/* L1SRAMCTL[L1SRAMCTL] - */
#define L1SRAMCTL_L1SRAMCTL_BBA (*(volatile unsigned long *) 0x42502080)
#define L1SRAMCTL_L1SRAMCTL_MSK (0x1 << 0 )
#define L1SRAMCTL_L1SRAMCTL (0x1 << 0 )
#define L1SRAMCTL_L1SRAMCTL_DIS (0x0 << 0 )
#define L1SRAMCTL_L1SRAMCTL_EN (0x1 << 0 )
// ------------------------------------------------------------------------------------------------
// ----- SPI -----
// ------------------------------------------------------------------------------------------------
/**
* @brief spi0 (pADI_SPI0)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_SPI0 Structure */
__IO uint16_t SPISTA; /*!< Status register */
__I uint16_t RESERVED0;
__IO uint16_t SPIRX; /*!< Receive register */
__I uint16_t RESERVED1;
__IO uint16_t SPITX; /*!< Transmit register */
__I uint16_t RESERVED2;
__IO uint16_t SPIDIV; /*!< Baud rate selection register */
__I uint16_t RESERVED3;
__IO uint16_t SPICON; /*!< SPI configuration register */
__I uint16_t RESERVED4;
__IO uint16_t SPIDMA; /*!< SPI DMA enable register */
__I uint16_t RESERVED5;
__IO uint16_t SPICNT; /*!< Transfer byte count register */
} ADI_SPI_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define SPI0STA (*(volatile unsigned short int *) 0x4002C000)
#define SPI0RX (*(volatile unsigned short int *) 0x4002C004)
#define SPI0TX (*(volatile unsigned short int *) 0x4002C008)
#define SPI0DIV (*(volatile unsigned short int *) 0x4002C00C)
#define SPI0CON (*(volatile unsigned short int *) 0x4002C010)
#define SPI0DMA (*(volatile unsigned short int *) 0x4002C014)
#define SPI0CNT (*(volatile unsigned short int *) 0x4002C018)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for SPI0STA*/
#define SPI0STA_RVAL 0x0
/* SPI0STA[CSRSG] - Detected a rising edge on CS, in CONT mode */
#define SPI0STA_CSRSG_BBA (*(volatile unsigned long *) 0x42580038)
#define SPI0STA_CSRSG_MSK (0x1 << 14 )
#define SPI0STA_CSRSG (0x1 << 14 )
#define SPI0STA_CSRSG_CLR (0x0 << 14 ) /* Cleared to 0 when the Status register is read. */
#define SPI0STA_CSRSG_SET (0x1 << 14 ) /* Set to 1 when there was a rising edge in CS line, when the device was in master mode, continuous transfer, High Frequency mode and CSIRQ_EN was asserted. */
/* SPI0STA[CSFLG] - Detected a falling edge on CS, in CONT mode */
#define SPI0STA_CSFLG_BBA (*(volatile unsigned long *) 0x42580034)
#define SPI0STA_CSFLG_MSK (0x1 << 13 )
#define SPI0STA_CSFLG (0x1 << 13 )
#define SPI0STA_CSFLG_CLR (0x0 << 13 ) /* Cleared to 0 when the Status register is read. */
#define SPI0STA_CSFLG_SET (0x1 << 13 ) /* Set to 1 when there was a falling edge in CS line, when the device was in master mode, continuous transfer, High Frequency mode and CSIRQ_EN was asserted */
/* SPI0STA[CSERR] - Detected a CS error condition */
#define SPI0STA_CSERR_BBA (*(volatile unsigned long *) 0x42580030)
#define SPI0STA_CSERR_MSK (0x1 << 12 )
#define SPI0STA_CSERR (0x1 << 12 )
#define SPI0STA_CSERR_CLR (0x0 << 12 ) /* Cleared to 0 when the Status register is read. */
#define SPI0STA_CSERR_SET (0x1 << 12 ) /* Set to 1 when the CS line was de-asserted abruptly, even before the full-byte of data was transmitted completely. This bit will cause an interrupt. */
/* SPI0STA[RXS] - SPI Rx FIFO excess bytes present */
#define SPI0STA_RXS_BBA (*(volatile unsigned long *) 0x4258002C)
#define SPI0STA_RXS_MSK (0x1 << 11 )
#define SPI0STA_RXS (0x1 << 11 )
#define SPI0STA_RXS_CLR (0x0 << 11 ) /* This bit is cleared when the number of bytes in the FIFO is equal or less than the number in SPI0CON[15:14]. */
#define SPI0STA_RXS_SET (0x1 << 11 ) /* This bit is set when there are more bytes in the Rx FIFO than indicated in the MOD bits in SPI0CON. */
/* SPI0STA[RXFSTA] - SPI Rx FIFO status */
#define SPI0STA_RXFSTA_MSK (0x7 << 8 )
#define SPI0STA_RXFSTA_EMPTY (0x0 << 8 ) /* Rx FIFO empty */
#define SPI0STA_RXFSTA_ONEBYTE (0x1 << 8 ) /* 1 valid byte in FIFO */
#define SPI0STA_RXFSTA_TWOBYTES (0x2 << 8 ) /* 2 valid bytes in the FIFO */
#define SPI0STA_RXFSTA_THREEBYTES (0x3 << 8 ) /* 3 valid bytes in the FIFO */
#define SPI0STA_RXFSTA_FOURBYTES (0x4 << 8 ) /* 4 valid bytes in the FIFO */
/* SPI0STA[RXOF] - SPI Rx FIFO overflow */
#define SPI0STA_RXOF_BBA (*(volatile unsigned long *) 0x4258001C)
#define SPI0STA_RXOF_MSK (0x1 << 7 )
#define SPI0STA_RXOF (0x1 << 7 )
#define SPI0STA_RXOF_CLR (0x0 << 7 ) /* Cleared when the SPISTA register is read. */
#define SPI0STA_RXOF_SET (0x1 << 7 ) /* Set when the Rx FIFO was already full when new data was loaded to the FIFO. This bit generates an interrupt except when RFLUSH is set in SPI0CON. */
/* SPI0STA[RX] - SPI Rx IRQ */
#define SPI0STA_RX_BBA (*(volatile unsigned long *) 0x42580018)
#define SPI0STA_RX_MSK (0x1 << 6 )
#define SPI0STA_RX (0x1 << 6 )
#define SPI0STA_RX_CLR (0x0 << 6 ) /* Cleared when the SPI0STA register is read. */
#define SPI0STA_RX_SET (0x1 << 6 ) /* Set when a receive interrupt occurs. This bit is set when TIM in SPI0CON is cleared and the required number of bytes have been received. */
/* SPI0STA[TX] - SPI Tx IRQ */
#define SPI0STA_TX_BBA (*(volatile unsigned long *) 0x42580014)
#define SPI0STA_TX_MSK (0x1 << 5 )
#define SPI0STA_TX (0x1 << 5 )
#define SPI0STA_TX_CLR (0x0 << 5 ) /* CLR. Cleared to 0 when the SPI0STA register is read. */
#define SPI0STA_TX_SET (0x1 << 5 ) /* SET. Set to 1 when a transmit interrupt occurs. This bit is set when TIM in SPI0CON is set and the required number of bytes have been transmitted. */
/* SPI0STA[TXUR] - SPI Tx FIFO underflow */
#define SPI0STA_TXUR_BBA (*(volatile unsigned long *) 0x42580010)
#define SPI0STA_TXUR_MSK (0x1 << 4 )
#define SPI0STA_TXUR (0x1 << 4 )
#define SPI0STA_TXUR_CLR (0x0 << 4 ) /* Cleared to 0 when the SPI0STA register is read. */
#define SPI0STA_TXUR_SET (0x1 << 4 ) /* Set to 1 when a transmit is initiated without any valid data in the Tx FIFO. This bit generates an interrupt except when TFLUSH is set in SPI0CON. */
/* SPI0STA[TXFSTA] - SPI Tx FIFO status */
#define SPI0STA_TXFSTA_MSK (0x7 << 1 )
#define SPI0STA_TXFSTA_EMPTY (0x0 << 1 ) /* Tx FIFO empty */
#define SPI0STA_TXFSTA_ONEBYTE (0x1 << 1 ) /* 1 valid byte in FIFO */
#define SPI0STA_TXFSTA_TWOBYTES (0x2 << 1 ) /* 2 valid bytes in FIFO */
#define SPI0STA_TXFSTA_THREEBYTES (0x3 << 1 ) /* 3 valid bytes in FIFO */
#define SPI0STA_TXFSTA_FOURBYTES (0x4 << 1 ) /* 4 valid bytes in FIFO */
/* SPI0STA[IRQ] - SPI Interrupt status */
#define SPI0STA_IRQ_BBA (*(volatile unsigned long *) 0x42580000)
#define SPI0STA_IRQ_MSK (0x1 << 0 )
#define SPI0STA_IRQ (0x1 << 0 )
#define SPI0STA_IRQ_CLR (0x0 << 0 ) /* Cleared to 0 after reading SPI0STA. */
#define SPI0STA_IRQ_SET (0x1 << 0 ) /* Set to 1 when an SPI based interrupt occurs. */
/* Reset Value for SPI0RX*/
#define SPI0RX_RVAL 0x0
/* SPI0RX[DMA_DATA_BYTE_2] - 8-bit receive buffer */
#define SPI0RX_DMA_DATA_BYTE_2_MSK (0xFF << 8 )
/* SPI0RX[DATA_BYTE_1] - 8-bit receive buffer */
#define SPI0RX_DATA_BYTE_1_MSK (0xFF << 0 )
/* Reset Value for SPI0TX*/
#define SPI0TX_RVAL 0x0
/* SPI0TX[DMA_DATA_BYTE_2] - 8-bit transmit buffer */
#define SPI0TX_DMA_DATA_BYTE_2_MSK (0xFF << 8 )
/* SPI0TX[DATA_BYTE_1] - 8-bit transmit buffer */
#define SPI0TX_DATA_BYTE_1_MSK (0xFF << 0 )
/* Reset Value for SPI0DIV*/
#define SPI0DIV_RVAL 0x0
/* SPI0DIV[CSIRQ_EN] - Enable interrupt on every CS edge in CONT mode */
#define SPI0DIV_CSIRQ_EN_BBA (*(volatile unsigned long *) 0x425801A0)
#define SPI0DIV_CSIRQ_EN_MSK (0x1 << 8 )
#define SPI0DIV_CSIRQ_EN (0x1 << 8 )
#define SPI0DIV_CSIRQ_EN_DIS (0x0 << 8 )
#define SPI0DIV_CSIRQ_EN_EN (0x1 << 8 )
/* SPI0DIV[BCRST] - Reset Mode for CSERR */
#define SPI0DIV_BCRST_BBA (*(volatile unsigned long *) 0x4258019C)
#define SPI0DIV_BCRST_MSK (0x1 << 7 )
#define SPI0DIV_BCRST (0x1 << 7 )
#define SPI0DIV_BCRST_DIS (0x0 << 7 )
#define SPI0DIV_BCRST_EN (0x1 << 7 )
/* SPI0DIV[HFM] - High Frequency Mode */
#define SPI0DIV_HFM_BBA (*(volatile unsigned long *) 0x42580198)
#define SPI0DIV_HFM_MSK (0x1 << 6 )
#define SPI0DIV_HFM (0x1 << 6 )
#define SPI0DIV_HFM_DIS (0x0 << 6 )
#define SPI0DIV_HFM_EN (0x1 << 6 )
/* SPI0DIV[DIV] - SPI clock divider */
#define SPI0DIV_DIV_MSK (0x3F << 0 )
/* Reset Value for SPI0CON*/
#define SPI0CON_RVAL 0x0
/* SPI0CON[MOD] - SPI IRQ mode bits */
#define SPI0CON_MOD_MSK (0x3 << 14 )
#define SPI0CON_MOD_TX1RX1 (0x0 << 14 ) /* Tx interrupt occurs when 1 byte has been transferred. Rx interrupt occurs when 1 or more bytes have been received into the FIFO. */
#define SPI0CON_MOD_TX2RX2 (0x1 << 14 ) /* Tx interrupt occurs when 2 bytes has been transferred. Rx interrupt occurs when 2 or more bytes have been received into the FIFO. */
#define SPI0CON_MOD_TX3RX3 (0x2 << 14 ) /* Tx interrupt occurs when 3 bytes has been transferred. Rx interrupt occurs when 3 or more bytes have been received into the FIFO. */
#define SPI0CON_MOD_TX4RX4 (0x3 << 14 ) /* Tx interrupt occurs when 4 bytes has been transferred. Rx interrupt occurs when the Rx FIFO is full, or 4 bytes present. */
/* SPI0CON[TFLUSH] - SPI Tx FIFO Flush enable */
#define SPI0CON_TFLUSH_BBA (*(volatile unsigned long *) 0x42580234)
#define SPI0CON_TFLUSH_MSK (0x1 << 13 )
#define SPI0CON_TFLUSH (0x1 << 13 )
#define SPI0CON_TFLUSH_DIS (0x0 << 13 ) /* Clear this bit to disable Tx FIFO flushing. */
#define SPI0CON_TFLUSH_EN (0x1 << 13 ) /* Set this bit to flush the Tx FIFO. This bit does not clear itself and should be toggled if a single flush is required. If this bit is left high, then either the last transmitted value or "0x00" is transmitted depending on the ZEN bit. Any writes to the Tx FIFO are ignored while this bit is set. */
/* SPI0CON[RFLUSH] - SPI Rx FIFO Flush enable */
#define SPI0CON_RFLUSH_BBA (*(volatile unsigned long *) 0x42580230)
#define SPI0CON_RFLUSH_MSK (0x1 << 12 )
#define SPI0CON_RFLUSH (0x1 << 12 )
#define SPI0CON_RFLUSH_DIS (0x0 << 12 ) /* Clear this bit to disable Rx FIFO flushing. */
#define SPI0CON_RFLUSH_EN (0x1 << 12 ) /* Set this bit to flush the Rx FIFO. This bit does not clear itself and should be toggled if a single flush is required. If this bit is set all incoming data is ignored and no interrupts are generated. If set and TIM = 0, a read of the Rx FIFO will initiate a transfer. */
/* SPI0CON[CON] - Continuous transfer enable */
#define SPI0CON_CON_BBA (*(volatile unsigned long *) 0x4258022C)
#define SPI0CON_CON_MSK (0x1 << 11 )
#define SPI0CON_CON (0x1 << 11 )
#define SPI0CON_CON_DIS (0x0 << 11 ) /* DIS. Cleared by user to disable continuous transfer. Each transfer consists of a single 8-bit serial transfer. If valid data exists in the SPI0TX register, then a new transfer is initiated after a stall period of 1 serial clock cycle. */
#define SPI0CON_CON_EN (0x1 << 11 ) /* EN. Set by user to enable continuous transfer. In master mode, the transfer continues until no valid data is available in the Tx register. CS is asserted and remains asserted for the duration of each 8-bit serial transfer until Tx is empty. */
/* SPI0CON[LOOPBACK] - Loopback enable */
#define SPI0CON_LOOPBACK_BBA (*(volatile unsigned long *) 0x42580228)
#define SPI0CON_LOOPBACK_MSK (0x1 << 10 )
#define SPI0CON_LOOPBACK (0x1 << 10 )
#define SPI0CON_LOOPBACK_DIS (0x0 << 10 ) /* Cleared by user to be in normal mode. */
#define SPI0CON_LOOPBACK_EN (0x1 << 10 ) /* Set by user to connect MISO to MOSI and test software. */
/* SPI0CON[OEN] - Slave MISO output enable */
#define SPI0CON_OEN_BBA (*(volatile unsigned long *) 0x42580224)
#define SPI0CON_OEN_MSK (0x1 << 9 )
#define SPI0CON_OEN (0x1 << 9 )
#define SPI0CON_OEN_DIS (0x0 << 9 ) /* Clear this bit to disable the output driver on the MISO pin. The MISO pin will be Open-Circuit when this bit is clear. */
#define SPI0CON_OEN_EN (0x1 << 9 ) /* Set this bit for MISO to operate as normal. */
/* SPI0CON[RXOF] - SPIRX overflow overwrite enable */
#define SPI0CON_RXOF_BBA (*(volatile unsigned long *) 0x42580220)
#define SPI0CON_RXOF_MSK (0x1 << 8 )
#define SPI0CON_RXOF (0x1 << 8 )
#define SPI0CON_RXOF_DIS (0x0 << 8 ) /* Cleared by user, the new serial byte received is discarded. */
#define SPI0CON_RXOF_EN (0x1 << 8 ) /* Set by user, the valid data in the Rx register is overwritten by the new serial byte received. */
/* SPI0CON[ZEN] - Transmit zeros enable */
#define SPI0CON_ZEN_BBA (*(volatile unsigned long *) 0x4258021C)
#define SPI0CON_ZEN_MSK (0x1 << 7 )
#define SPI0CON_ZEN (0x1 << 7 )
#define SPI0CON_ZEN_DIS (0x0 << 7 ) /* Clear this bit to transmit the last transmitted value when there is no valid data in the Tx FIFO. */
#define SPI0CON_ZEN_EN (0x1 << 7 ) /* Set this bit to transmit "0x00" when there is no valid data in the Tx FIFO. */
/* SPI0CON[TIM] - SPI transfer and interrupt mode */
#define SPI0CON_TIM_BBA (*(volatile unsigned long *) 0x42580218)
#define SPI0CON_TIM_MSK (0x1 << 6 )
#define SPI0CON_TIM (0x1 << 6 )
#define SPI0CON_TIM_RXRD (0x0 << 6 ) /* Cleared by user to initiate transfer with a read of the SPI0RX register. Interrupt only occurs when Rx is full. */
#define SPI0CON_TIM_TXWR (0x1 << 6 ) /* Set by user to initiate transfer with a write to the SPI0TX register. Interrupt only occurs when Tx is empty. */
/* SPI0CON[LSB] - LSB first transfer enable */
#define SPI0CON_LSB_BBA (*(volatile unsigned long *) 0x42580214)
#define SPI0CON_LSB_MSK (0x1 << 5 )
#define SPI0CON_LSB (0x1 << 5 )
#define SPI0CON_LSB_DIS (0x0 << 5 ) /* MSB transmitted first */
#define SPI0CON_LSB_EN (0x1 << 5 ) /* LSB transmitted first */
/* SPI0CON[WOM] - SPI Wired Or mode */
#define SPI0CON_WOM_BBA (*(volatile unsigned long *) 0x42580210)
#define SPI0CON_WOM_MSK (0x1 << 4 )
#define SPI0CON_WOM (0x1 << 4 )
#define SPI0CON_WOM_EN (0x1 << 4 ) /* Enables open circuit data output enable. External pull-ups required on data out pins */
#define SPI0CON_WOM_DIS (0x0 << 4 ) /* Normal output levels */
/* SPI0CON[CPOL] - Serial Clock Polarity */
#define SPI0CON_CPOL_BBA (*(volatile unsigned long *) 0x4258020C)
#define SPI0CON_CPOL_MSK (0x1 << 3 )
#define SPI0CON_CPOL (0x1 << 3 )
#define SPI0CON_CPOL_LOW (0x0 << 3 ) /* Serial clock idles low */
#define SPI0CON_CPOL_HIGH (0x1 << 3 ) /* Serial clock idles high */
/* SPI0CON[CPHA] - Serial clock phase mode */
#define SPI0CON_CPHA_BBA (*(volatile unsigned long *) 0x42580208)
#define SPI0CON_CPHA_MSK (0x1 << 2 )
#define SPI0CON_CPHA (0x1 << 2 )
#define SPI0CON_CPHA_SAMPLETRAILING (0x1 << 2 ) /* Serial clock pulses at the beginning of each serial bit transfer */
#define SPI0CON_CPHA_SAMPLELEADING (0x0 << 2 ) /* Serial clock pulses at the end of each serial bit transfer */
/* SPI0CON[MASEN] - Master mode enable */
#define SPI0CON_MASEN_BBA (*(volatile unsigned long *) 0x42580204)
#define SPI0CON_MASEN_MSK (0x1 << 1 )
#define SPI0CON_MASEN (0x1 << 1 )
#define SPI0CON_MASEN_DIS (0x0 << 1 ) /* Enable slave mode */
#define SPI0CON_MASEN_EN (0x1 << 1 ) /* Enable master mode */
/* SPI0CON[ENABLE] - SPI enable */
#define SPI0CON_ENABLE_BBA (*(volatile unsigned long *) 0x42580200)
#define SPI0CON_ENABLE_MSK (0x1 << 0 )
#define SPI0CON_ENABLE (0x1 << 0 )
#define SPI0CON_ENABLE_DIS (0x0 << 0 ) /* Disable the SPI */
#define SPI0CON_ENABLE_EN (0x1 << 0 ) /* Enable the SPI */
/* Reset Value for SPI0DMA*/
#define SPI0DMA_RVAL 0x0
/* SPI0DMA[IENRXDMA] - Enable receive DMA request */
#define SPI0DMA_IENRXDMA_BBA (*(volatile unsigned long *) 0x42580288)
#define SPI0DMA_IENRXDMA_MSK (0x1 << 2 )
#define SPI0DMA_IENRXDMA (0x1 << 2 )
#define SPI0DMA_IENRXDMA_DIS (0x0 << 2 ) /* Disable RX DMA Interrupt */
#define SPI0DMA_IENRXDMA_EN (0x1 << 2 ) /* Enable RX DMA Interrupt */
/* SPI0DMA[IENTXDMA] - Enable transmit DMA request */
#define SPI0DMA_IENTXDMA_BBA (*(volatile unsigned long *) 0x42580284)
#define SPI0DMA_IENTXDMA_MSK (0x1 << 1 )
#define SPI0DMA_IENTXDMA (0x1 << 1 )
#define SPI0DMA_IENTXDMA_DIS (0x0 << 1 ) /* Disable TX DMA Interrupt */
#define SPI0DMA_IENTXDMA_EN (0x1 << 1 ) /* Enable TX DMA Interrupt */
/* SPI0DMA[ENABLE] - Enable DMA for data transfer */
#define SPI0DMA_ENABLE_BBA (*(volatile unsigned long *) 0x42580280)
#define SPI0DMA_ENABLE_MSK (0x1 << 0 )
#define SPI0DMA_ENABLE (0x1 << 0 )
#define SPI0DMA_ENABLE_DIS (0x0 << 0 )
#define SPI0DMA_ENABLE_EN (0x1 << 0 )
/* Reset Value for SPI0CNT*/
#define SPI0CNT_RVAL 0x0
/* SPI0CNT[COUNT] - Transfer byte count */
#define SPI0CNT_COUNT_MSK (0xFF << 0 )
#if (__NO_MMR_STRUCTS__==1)
#define SPI1STA (*(volatile unsigned short int *) 0x40030000)
#define SPI1RX (*(volatile unsigned short int *) 0x40030004)
#define SPI1TX (*(volatile unsigned short int *) 0x40030008)
#define SPI1DIV (*(volatile unsigned short int *) 0x4003000C)
#define SPI1CON (*(volatile unsigned short int *) 0x40030010)
#define SPI1DMA (*(volatile unsigned short int *) 0x40030014)
#define SPI1CNT (*(volatile unsigned short int *) 0x40030018)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for SPI1STA*/
#define SPI1STA_RVAL 0x0
/* SPI1STA[CSRSG] - Detected a rising edge on CS, in CONT mode */
#define SPI1STA_CSRSG_BBA (*(volatile unsigned long *) 0x42600038)
#define SPI1STA_CSRSG_MSK (0x1 << 14 )
#define SPI1STA_CSRSG (0x1 << 14 )
#define SPI1STA_CSRSG_CLR (0x0 << 14 ) /* Cleared to 0 when the Status register is read */
#define SPI1STA_CSRSG_SET (0x1 << 14 ) /* Set to 1 when there was a rising edge in CS line, when the device was in master mode, continuous transfer, High Frequency mode and CSIRQ_EN was asserted. */
/* SPI1STA[CSFLG] - Detected a falling edge on CS, in CONT mode */
#define SPI1STA_CSFLG_BBA (*(volatile unsigned long *) 0x42600034)
#define SPI1STA_CSFLG_MSK (0x1 << 13 )
#define SPI1STA_CSFLG (0x1 << 13 )
#define SPI1STA_CSFLG_CLR (0x0 << 13 ) /* Cleared to 0 when the Status register is read. */
#define SPI1STA_CSFLG_SET (0x1 << 13 ) /* Set to 1 when there was a falling edge in CS line, when the device was in master mode, continuous transfer, High Frequency mode and CSIRQ_EN was asserted. */
/* SPI1STA[CSERR] - Detected a CS error condition */
#define SPI1STA_CSERR_BBA (*(volatile unsigned long *) 0x42600030)
#define SPI1STA_CSERR_MSK (0x1 << 12 )
#define SPI1STA_CSERR (0x1 << 12 )
#define SPI1STA_CSERR_CLR (0x0 << 12 ) /* Cleared to 0 when the Status register is read. */
#define SPI1STA_CSERR_SET (0x1 << 12 ) /* Set to 1 when the CS line was de-asserted abruptly, even before the full-byte of data was transmitted completely. This bit will cause an interrupt. */
/* SPI1STA[RXS] - SPI Rx FIFO excess bytes present */
#define SPI1STA_RXS_BBA (*(volatile unsigned long *) 0x4260002C)
#define SPI1STA_RXS_MSK (0x1 << 11 )
#define SPI1STA_RXS (0x1 << 11 )
#define SPI1STA_RXS_CLR (0x0 << 11 ) /* Cleared to 0 when the number of bytes in the FIFO is equal or less than the number in SPI1CON[15:14]. */
#define SPI1STA_RXS_SET (0x1 << 11 ) /* Set to 1 when there are more bytes in the Rx FIFO than indicated in the MOD bits in SPI1CON. */
/* SPI1STA[RXFSTA] - SPI Rx FIFO status */
#define SPI1STA_RXFSTA_MSK (0x7 << 8 )
#define SPI1STA_RXFSTA_EMPTY (0x0 << 8 ) /* Rx FIFO empty */
#define SPI1STA_RXFSTA_ONEBYTE (0x1 << 8 ) /* 1 valid byte in FIFO */
#define SPI1STA_RXFSTA_TWOBYTES (0x2 << 8 ) /* 2 valid bytes in the FIFO */
#define SPI1STA_RXFSTA_THREEBYTES (0x3 << 8 ) /* 3 valid bytes in the FIFO */
#define SPI1STA_RXFSTA_FOURBYTES (0x4 << 8 ) /* 4 valid bytes in the FIFO */
/* SPI1STA[RXOF] - SPI Rx FIFO overflow */
#define SPI1STA_RXOF_BBA (*(volatile unsigned long *) 0x4260001C)
#define SPI1STA_RXOF_MSK (0x1 << 7 )
#define SPI1STA_RXOF (0x1 << 7 )
#define SPI1STA_RXOF_CLR (0x0 << 7 ) /* Cleared to 0 when the SPI1STA register is read. */
#define SPI1STA_RXOF_SET (0x1 << 7 ) /* Set to 1 when the Rx FIFO was already full when new data was loaded to the FIFO. This bit generates an interrupt except when RFLUSH is set in SPI1CON. */
/* SPI1STA[RX] - SPI Rx IRQ */
#define SPI1STA_RX_BBA (*(volatile unsigned long *) 0x42600018)
#define SPI1STA_RX_MSK (0x1 << 6 )
#define SPI1STA_RX (0x1 << 6 )
#define SPI1STA_RX_CLR (0x0 << 6 ) /* Cleared to 0 when the SPI1STA register is read. */
#define SPI1STA_RX_SET (0x1 << 6 ) /* Set to 1 when TIM in SPI1CON is cleared and the required number of bytes have been received. */
/* SPI1STA[TX] - SPI Tx IRQ */
#define SPI1STA_TX_BBA (*(volatile unsigned long *) 0x42600014)
#define SPI1STA_TX_MSK (0x1 << 5 )
#define SPI1STA_TX (0x1 << 5 )
#define SPI1STA_TX_CLR (0x0 << 5 ) /* CLR. Cleared to 0 when the SPI1STA register is read. */
#define SPI1STA_TX_SET (0x1 << 5 ) /* SET. Set to 1 when a transmit interrupt occurs. This bit is set when TIM in SPI1CON is set and the required number of bytes have been transmitted. */
/* SPI1STA[TXUR] - SPI Tx FIFO underflow */
#define SPI1STA_TXUR_BBA (*(volatile unsigned long *) 0x42600010)
#define SPI1STA_TXUR_MSK (0x1 << 4 )
#define SPI1STA_TXUR (0x1 << 4 )
#define SPI1STA_TXUR_CLR (0x0 << 4 ) /* Cleared to 0 when the SPI1STA register is read. */
#define SPI1STA_TXUR_SET (0x1 << 4 ) /* Set to 1 when a transmit is initiated without any valid data in the Tx FIFO. This bit generates an interrupt except when TFLUSH is set in SPI1CON. */
/* SPI1STA[TXFSTA] - SPI Tx FIFO status */
#define SPI1STA_TXFSTA_MSK (0x7 << 1 )
#define SPI1STA_TXFSTA_EMPTY (0x0 << 1 ) /* Tx FIFO empty */
#define SPI1STA_TXFSTA_ONEBYTE (0x1 << 1 ) /* 1 valid byte in FIFO */
#define SPI1STA_TXFSTA_TWOBYTES (0x2 << 1 ) /* 2 valid bytes in FIFO */
#define SPI1STA_TXFSTA_THREEBYTES (0x3 << 1 ) /* 3 valid bytes in FIFO */
#define SPI1STA_TXFSTA_FOURBYTES (0x4 << 1 ) /* 4 valid bytes in FIFO */
/* SPI1STA[IRQ] - SPI Interrupt status */
#define SPI1STA_IRQ_BBA (*(volatile unsigned long *) 0x42600000)
#define SPI1STA_IRQ_MSK (0x1 << 0 )
#define SPI1STA_IRQ (0x1 << 0 )
#define SPI1STA_IRQ_CLR (0x0 << 0 ) /* Cleared to 0 after reading SPI1STA. */
#define SPI1STA_IRQ_SET (0x1 << 0 ) /* Set to 1 when an SPI based interrupt occurs. */
/* Reset Value for SPI1RX*/
#define SPI1RX_RVAL 0x0
/* SPI1RX[DMA_DATA_BYTE_2] - 8-bit receive buffer */
#define SPI1RX_DMA_DATA_BYTE_2_MSK (0xFF << 8 )
/* SPI1RX[DATA_BYTE_1] - 8-bit receive buffer */
#define SPI1RX_DATA_BYTE_1_MSK (0xFF << 0 )
/* Reset Value for SPI1TX*/
#define SPI1TX_RVAL 0x0
/* SPI1TX[DMA_DATA_BYTE_2] - 8-bit transmit buffer */
#define SPI1TX_DMA_DATA_BYTE_2_MSK (0xFF << 8 )
/* SPI1TX[DATA_BYTE_1] - 8-bit transmit buffer */
#define SPI1TX_DATA_BYTE_1_MSK (0xFF << 0 )
/* Reset Value for SPI1DIV*/
#define SPI1DIV_RVAL 0x0
/* SPI1DIV[CSIRQ_EN] - Enable interrupt on every CS edge in CONT mode */
#define SPI1DIV_CSIRQ_EN_BBA (*(volatile unsigned long *) 0x426001A0)
#define SPI1DIV_CSIRQ_EN_MSK (0x1 << 8 )
#define SPI1DIV_CSIRQ_EN (0x1 << 8 )
#define SPI1DIV_CSIRQ_EN_DIS (0x0 << 8 )
#define SPI1DIV_CSIRQ_EN_EN (0x1 << 8 )
/* SPI1DIV[BCRST] - Reset Mode for CSERR */
#define SPI1DIV_BCRST_BBA (*(volatile unsigned long *) 0x4260019C)
#define SPI1DIV_BCRST_MSK (0x1 << 7 )
#define SPI1DIV_BCRST (0x1 << 7 )
#define SPI1DIV_BCRST_DIS (0x0 << 7 )
#define SPI1DIV_BCRST_EN (0x1 << 7 )
/* SPI1DIV[HFM] - High Frequency Mode */
#define SPI1DIV_HFM_BBA (*(volatile unsigned long *) 0x42600198)
#define SPI1DIV_HFM_MSK (0x1 << 6 )
#define SPI1DIV_HFM (0x1 << 6 )
#define SPI1DIV_HFM_DIS (0x0 << 6 )
#define SPI1DIV_HFM_EN (0x1 << 6 )
/* SPI1DIV[DIV] - SPI clock divider */
#define SPI1DIV_DIV_MSK (0x3F << 0 )
/* Reset Value for SPI1CON*/
#define SPI1CON_RVAL 0x0
/* SPI1CON[MOD] - SPI IRQ mode bits */
#define SPI1CON_MOD_MSK (0x3 << 14 )
#define SPI1CON_MOD_TX1RX1 (0x0 << 14 ) /* Tx interrupt occurs when 1 byte has been transferred. Rx interrupt occurs when 1 or more bytes have been received into the FIFO. */
#define SPI1CON_MOD_TX2RX2 (0x1 << 14 ) /* Tx interrupt occurs when 2 bytes has been transferred. Rx interrupt occurs when 2 or more bytes have been received into the FIFO. */
#define SPI1CON_MOD_TX3RX3 (0x2 << 14 ) /* Tx interrupt occurs when 3 bytes has been transferred. Rx interrupt occurs when 3 or more bytes have been received into the FIFO. */
#define SPI1CON_MOD_TX4RX4 (0x3 << 14 ) /* Tx interrupt occurs when 4 bytes has been transferred. Rx interrupt occurs when the Rx FIFO is full, or 4 bytes present. */
/* SPI1CON[TFLUSH] - SPI Tx FIFO Flush enable */
#define SPI1CON_TFLUSH_BBA (*(volatile unsigned long *) 0x42600234)
#define SPI1CON_TFLUSH_MSK (0x1 << 13 )
#define SPI1CON_TFLUSH (0x1 << 13 )
#define SPI1CON_TFLUSH_DIS (0x0 << 13 ) /* Clear this bit to disable Tx FIFO flushing. */
#define SPI1CON_TFLUSH_EN (0x1 << 13 ) /* Set this bit to flush the Tx FIFO. This bit does not clear itself and should be toggled if a single flush is required. If this bit is left high, then either the last transmitted value or "0x00" is transmitted depending on the ZEN bit. Any writes to the Tx FIFO are ignored while this bit is set. */
/* SPI1CON[RFLUSH] - SPI Rx FIFO Flush enable */
#define SPI1CON_RFLUSH_BBA (*(volatile unsigned long *) 0x42600230)
#define SPI1CON_RFLUSH_MSK (0x1 << 12 )
#define SPI1CON_RFLUSH (0x1 << 12 )
#define SPI1CON_RFLUSH_DIS (0x0 << 12 ) /* Clear this bit to disable Rx FIFO flushing. */
#define SPI1CON_RFLUSH_EN (0x1 << 12 ) /* Set this bit to flush the Rx FIFO. This bit does not clear itself and should be toggled if a single flush is required. If this bit is set all incoming data is ignored and no interrupts are generated. If set and TIM = 0, a read of the Rx FIFO will initiate a transfer. */
/* SPI1CON[CON] - Continuous transfer enable */
#define SPI1CON_CON_BBA (*(volatile unsigned long *) 0x4260022C)
#define SPI1CON_CON_MSK (0x1 << 11 )
#define SPI1CON_CON (0x1 << 11 )
#define SPI1CON_CON_DIS (0x0 << 11 ) /* DIS. Cleared by user to disable continuous transfer. Each transfer consists of a single 8-bit serial transfer. If valid data exists in the SPI1TX register, then a new transfer is initiated after a stall period of 1 serial clock cycle. */
#define SPI1CON_CON_EN (0x1 << 11 ) /* EN. Set by user to enable continuous transfer. In master mode, the transfer continues until no valid data is available in the Tx register. CS is asserted and remains asserted for the duration of each 8-bit serial transfer until Tx is empty. */
/* SPI1CON[LOOPBACK] - Loopback enable */
#define SPI1CON_LOOPBACK_BBA (*(volatile unsigned long *) 0x42600228)
#define SPI1CON_LOOPBACK_MSK (0x1 << 10 )
#define SPI1CON_LOOPBACK (0x1 << 10 )
#define SPI1CON_LOOPBACK_DIS (0x0 << 10 ) /* Cleared by user to be in normal mode. */
#define SPI1CON_LOOPBACK_EN (0x1 << 10 ) /* Set by user to connect MISO to MOSI and test software. */
/* SPI1CON[OEN] - Slave MISO output enable */
#define SPI1CON_OEN_BBA (*(volatile unsigned long *) 0x42600224)
#define SPI1CON_OEN_MSK (0x1 << 9 )
#define SPI1CON_OEN (0x1 << 9 )
#define SPI1CON_OEN_DIS (0x0 << 9 ) /* Clear this bit to disable the output driver on the MISO pin. The MISO pin will be Open-Circuit when this bit is clear. */
#define SPI1CON_OEN_EN (0x1 << 9 ) /* Set this bit for MISO to operate as normal. */
/* SPI1CON[RXOF] - SPIRX overflow overwrite enable */
#define SPI1CON_RXOF_BBA (*(volatile unsigned long *) 0x42600220)
#define SPI1CON_RXOF_MSK (0x1 << 8 )
#define SPI1CON_RXOF (0x1 << 8 )
#define SPI1CON_RXOF_DIS (0x0 << 8 ) /* Cleared by user, the new serial byte received is discarded. */
#define SPI1CON_RXOF_EN (0x1 << 8 ) /* Set by user, the valid data in the Rx register is overwritten by the new serial byte received. */
/* SPI1CON[ZEN] - Transmit zeros enable */
#define SPI1CON_ZEN_BBA (*(volatile unsigned long *) 0x4260021C)
#define SPI1CON_ZEN_MSK (0x1 << 7 )
#define SPI1CON_ZEN (0x1 << 7 )
#define SPI1CON_ZEN_DIS (0x0 << 7 ) /* Clear this bit to transmit the last transmitted value when there is no valid data in the Tx FIFO. */
#define SPI1CON_ZEN_EN (0x1 << 7 ) /* Set this bit to transmit "0x00" when there is no valid data in the Tx FIFO. */
/* SPI1CON[TIM] - SPI transfer and interrupt mode */
#define SPI1CON_TIM_BBA (*(volatile unsigned long *) 0x42600218)
#define SPI1CON_TIM_MSK (0x1 << 6 )
#define SPI1CON_TIM (0x1 << 6 )
#define SPI1CON_TIM_RXRD (0x0 << 6 ) /* Cleared by user to initiate transfer with a read of the SPIRX register. Interrupt only occurs when Rx is full. */
#define SPI1CON_TIM_TXWR (0x1 << 6 ) /* Set by user to initiate transfer with a write to the SPITX register. Interrupt only occurs when Tx is empty. */
/* SPI1CON[LSB] - LSB first transfer enable */
#define SPI1CON_LSB_BBA (*(volatile unsigned long *) 0x42600214)
#define SPI1CON_LSB_MSK (0x1 << 5 )
#define SPI1CON_LSB (0x1 << 5 )
#define SPI1CON_LSB_DIS (0x0 << 5 ) /* MSB transmitted first */
#define SPI1CON_LSB_EN (0x1 << 5 ) /* LSB transmitted first */
/* SPI1CON[WOM] - SPI Wired Or mode */
#define SPI1CON_WOM_BBA (*(volatile unsigned long *) 0x42600210)
#define SPI1CON_WOM_MSK (0x1 << 4 )
#define SPI1CON_WOM (0x1 << 4 )
#define SPI1CON_WOM_DIS (0x0 << 4 ) /* Normal output levels */
#define SPI1CON_WOM_EN (0x1 << 4 ) /* Enables open circuit data output enable. External pull-ups required on data out pins */
/* SPI1CON[CPOL] - Serial Clock Polarity */
#define SPI1CON_CPOL_BBA (*(volatile unsigned long *) 0x4260020C)
#define SPI1CON_CPOL_MSK (0x1 << 3 )
#define SPI1CON_CPOL (0x1 << 3 )
#define SPI1CON_CPOL_LOW (0x0 << 3 ) /* Serial clock idles low */
#define SPI1CON_CPOL_HIGH (0x1 << 3 ) /* Serial clock idles high */
/* SPI1CON[CPHA] - Serial clock phase mode */
#define SPI1CON_CPHA_BBA (*(volatile unsigned long *) 0x42600208)
#define SPI1CON_CPHA_MSK (0x1 << 2 )
#define SPI1CON_CPHA (0x1 << 2 )
#define SPI1CON_CPHA_SAMPLELEADING (0x0 << 2 ) /* Serial clock pulses at the end of each serial bit transfer */
#define SPI1CON_CPHA_SAMPLETRAILING (0x1 << 2 ) /* Serial clock pulses at the beginning of each serial bit transfer */
/* SPI1CON[MASEN] - Master mode enable */
#define SPI1CON_MASEN_BBA (*(volatile unsigned long *) 0x42600204)
#define SPI1CON_MASEN_MSK (0x1 << 1 )
#define SPI1CON_MASEN (0x1 << 1 )
#define SPI1CON_MASEN_DIS (0x0 << 1 ) /* Enable slave mode */
#define SPI1CON_MASEN_EN (0x1 << 1 ) /* Enable master mode */
/* SPI1CON[ENABLE] - SPI enable */
#define SPI1CON_ENABLE_BBA (*(volatile unsigned long *) 0x42600200)
#define SPI1CON_ENABLE_MSK (0x1 << 0 )
#define SPI1CON_ENABLE (0x1 << 0 )
#define SPI1CON_ENABLE_DIS (0x0 << 0 ) /* Disable the SPI */
#define SPI1CON_ENABLE_EN (0x1 << 0 ) /* Enable the SPI */
/* Reset Value for SPI1DMA*/
#define SPI1DMA_RVAL 0x0
/* SPI1DMA[IENRXDMA] - Enable receive DMA request */
#define SPI1DMA_IENRXDMA_BBA (*(volatile unsigned long *) 0x42600288)
#define SPI1DMA_IENRXDMA_MSK (0x1 << 2 )
#define SPI1DMA_IENRXDMA (0x1 << 2 )
#define SPI1DMA_IENRXDMA_DIS (0x0 << 2 ) /* Disable RX DMA Interrupt */
#define SPI1DMA_IENRXDMA_EN (0x1 << 2 ) /* Enable RX DMA Interrupt */
/* SPI1DMA[IENTXDMA] - Enable transmit DMA request */
#define SPI1DMA_IENTXDMA_BBA (*(volatile unsigned long *) 0x42600284)
#define SPI1DMA_IENTXDMA_MSK (0x1 << 1 )
#define SPI1DMA_IENTXDMA (0x1 << 1 )
#define SPI1DMA_IENTXDMA_DIS (0x0 << 1 ) /* Disable TX DMA Interrupt */
#define SPI1DMA_IENTXDMA_EN (0x1 << 1 ) /* Enable TX DMA Interrupt */
/* SPI1DMA[ENABLE] - Enable DMA for data transfer */
#define SPI1DMA_ENABLE_BBA (*(volatile unsigned long *) 0x42600280)
#define SPI1DMA_ENABLE_MSK (0x1 << 0 )
#define SPI1DMA_ENABLE (0x1 << 0 )
#define SPI1DMA_ENABLE_DIS (0x0 << 0 )
#define SPI1DMA_ENABLE_EN (0x1 << 0 )
/* Reset Value for SPI1CNT*/
#define SPI1CNT_RVAL 0x0
/* SPI1CNT[COUNT] - Transfer byte count */
#define SPI1CNT_COUNT_MSK (0xFF << 0 )
// ------------------------------------------------------------------------------------------------
// ----- ADC_CORE -----
// ------------------------------------------------------------------------------------------------
/**
* @brief ADC_CORE (pADI_ADC)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_ADC Structure */
__IO uint16_t ADCCON; /*!< ADC Configuration */
__I uint16_t RESERVED0[8005];
__IO uint32_t ADCDAT[28]; /*!< ADCx Data and flags */
__I uint32_t RESERVED1[4];
__IO uint16_t ADCCHA; /*!< ADC Channel Select */
__I uint16_t RESERVED2[3];
__IO uint32_t ADCSEQ; /*!< ADC Sequencer Control */
__IO uint32_t ADCSEQC; /*!< ADC Sequencer Configuration */
__IO uint16_t ADCGN; /*!< User gain adjust */
__I uint16_t RESERVED3;
__IO uint16_t ADCOF; /*!< User offset adjust */
__I uint16_t RESERVED4;
__IO uint32_t ADCCMP; /*!< Digital comparator configuration */
__IO uint32_t ADCCNVC; /*!< ADC conversion configuration */
} ADI_ADC_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define ADCCON (*(volatile unsigned short int *) 0x40082174)
#define ADCDAT0 (*(volatile unsigned long *) 0x40086000)
#define ADCDAT1 (*(volatile unsigned long *) 0x40086004)
#define ADCDAT2 (*(volatile unsigned long *) 0x40086008)
#define ADCDAT3 (*(volatile unsigned long *) 0x4008600C)
#define ADCDAT4 (*(volatile unsigned long *) 0x40086010)
#define ADCDAT5 (*(volatile unsigned long *) 0x40086014)
#define ADCDAT6 (*(volatile unsigned long *) 0x40086018)
#define ADCDAT7 (*(volatile unsigned long *) 0x4008601C)
#define ADCDAT8 (*(volatile unsigned long *) 0x40086020)
#define ADCDAT9 (*(volatile unsigned long *) 0x40086024)
#define ADCDAT10 (*(volatile unsigned long *) 0x40086028)
#define ADCDAT11 (*(volatile unsigned long *) 0x4008602C)
#define ADCDAT12 (*(volatile unsigned long *) 0x40086030)
#define ADCDAT13 (*(volatile unsigned long *) 0x40086034)
#define ADCDAT14 (*(volatile unsigned long *) 0x40086038)
#define ADCDAT15 (*(volatile unsigned long *) 0x4008603C)
#define ADCDAT16 (*(volatile unsigned long *) 0x40086040)
#define ADCDAT17 (*(volatile unsigned long *) 0x40086044)
#define ADCDAT18 (*(volatile unsigned long *) 0x40086048)
#define ADCDAT19 (*(volatile unsigned long *) 0x4008604C)
#define ADCDAT20 (*(volatile unsigned long *) 0x40086050)
#define ADCDAT21 (*(volatile unsigned long *) 0x40086054)
#define ADCDAT22 (*(volatile unsigned long *) 0x40086058)
#define ADCDAT23 (*(volatile unsigned long *) 0x4008605C)
#define ADCDAT24 (*(volatile unsigned long *) 0x40086060)
#define ADCDAT25 (*(volatile unsigned long *) 0x40086064)
#define ADCDAT26 (*(volatile unsigned long *) 0x40086068)
#define ADCDAT27 (*(volatile unsigned long *) 0x4008606C)
#define ADCCHA (*(volatile unsigned short int *) 0x40086080)
#define ADCSEQ (*(volatile unsigned long *) 0x40086088)
#define ADCSEQC (*(volatile unsigned long *) 0x4008608C)
#define ADCGN (*(volatile unsigned short int *) 0x40086090)
#define ADCOF (*(volatile unsigned short int *) 0x40086094)
#define ADCCMP (*(volatile unsigned long *) 0x40086098)
#define ADCCNVC (*(volatile unsigned long *) 0x4008609C)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for ADCCON*/
#define ADCCON_RVAL 0x280
/* ADCCON[SOFT_RESET] - software reset ADC */
#define ADCCON_SOFT_RESET_MSK (0x3F << 10 )
/* ADCCON[PUP] - ADC power up */
#define ADCCON_PUP_BBA (*(volatile unsigned long *) 0x43042EA4)
#define ADCCON_PUP_MSK (0x1 << 9 )
#define ADCCON_PUP (0x1 << 9 )
/* ADCCON[REFB_PUP] - ADC reference buffer power up */
#define ADCCON_REFB_PUP_BBA (*(volatile unsigned long *) 0x43042E9C)
#define ADCCON_REFB_PUP_MSK (0x1 << 7 )
#define ADCCON_REFB_PUP (0x1 << 7 )
/* ADCCON[Restart_ADC] - Restart ADC, reset Analog Part of ADC */
#define ADCCON_Restart_ADC_BBA (*(volatile unsigned long *) 0x43042E98)
#define ADCCON_Restart_ADC_MSK (0x1 << 6 )
#define ADCCON_Restart_ADC (0x1 << 6 )
/* ADCCON[SEQ_DMA] - DMA request enable for ADC sequence conversion */
#define ADCCON_SEQ_DMA_BBA (*(volatile unsigned long *) 0x43042E90)
#define ADCCON_SEQ_DMA_MSK (0x1 << 4 )
#define ADCCON_SEQ_DMA (0x1 << 4 )
/* ADCCON[CNV_DMA] - DMA request enable for ADC non-sequence conversion */
#define ADCCON_CNV_DMA_BBA (*(volatile unsigned long *) 0x43042E8C)
#define ADCCON_CNV_DMA_MSK (0x1 << 3 )
#define ADCCON_CNV_DMA (0x1 << 3 )
/* ADCCON[C_TYPE] - ADC conversion type */
#define ADCCON_C_TYPE_MSK (0x7 << 0 )
#define ADCCON_C_TYPE_NO (0x0 << 0 ) /* No conversion */
#define ADCCON_C_TYPE_DIO (0x1 << 0 ) /* DIO pin starts conversion (P2.4) */
#define ADCCON_C_TYPE_SINGLE (0x2 << 0 ) /* Single conversion */
#define ADCCON_C_TYPE_CONT (0x3 << 0 ) /* Continuous conversion (use this mode for the sequencer) */
#define ADCCON_C_TYPE_PLA (0x4 << 0 ) /* PLA conversion */
/* Reset Value for ADCDAT*/
#define ADCDAT_RVAL 0x0
/* ADCDAT[DAT] - ADCx data */
#define ADCDAT_DAT_MSK (0xFFFFFFF << 4 )
/* ADCDAT[VALID] - Flag indicating if data is valid. */
#define ADCDAT_VALID_BBA (*(volatile unsigned long *) 0x430C000C)
#define ADCDAT_VALID_MSK (0x1 << 3 )
#define ADCDAT_VALID (0x1 << 3 )
#define ADCDAT_VALID_CLR (0x0 << 3 ) /* Data is Invalid */
#define ADCDAT_VALID_SET (0x1 << 3 ) /* Data is Valid */
/* ADCDAT[OLD] - Flag data has already been read. */
#define ADCDAT_OLD_BBA (*(volatile unsigned long *) 0x430C0008)
#define ADCDAT_OLD_MSK (0x1 << 2 )
#define ADCDAT_OLD (0x1 << 2 )
#define ADCDAT_OLD_CLR (0x0 << 2 ) /* Last data has not been read */
#define ADCDAT_OLD_SET (0x1 << 2 ) /* Last data already read */
/* Reset Value for ADCCHA*/
#define ADCCHA_RVAL 0x111F
/* ADCCHA[ADCCN] - Selects channel for ADC negative input */
#define ADCCHA_ADCCN_MSK (0x1F << 8 )
#define ADCCHA_ADCCN_AIN0 (0x0 << 8 ) /* AIN0 */
#define ADCCHA_ADCCN_AIN1 (0x1 << 8 ) /* AIN1 */
#define ADCCHA_ADCCN_AIN2 (0x2 << 8 ) /* AIN2 */
#define ADCCHA_ADCCN_AIN3 (0x3 << 8 ) /* AIN3 */
#define ADCCHA_ADCCN_AIN4 (0x4 << 8 ) /* AIN4 */
#define ADCCHA_ADCCN_AIN5 (0x5 << 8 ) /* AIN5 */
#define ADCCHA_ADCCN_AIN6 (0x6 << 8 ) /* AIN6 */
#define ADCCHA_ADCCN_AIN7 (0x7 << 8 ) /* AIN7 */
#define ADCCHA_ADCCN_AIN8 (0x8 << 8 ) /* AIN8 */
#define ADCCHA_ADCCN_AIN9 (0x9 << 8 ) /* AIN9 */
#define ADCCHA_ADCCN_AIN10 (0xA << 8 ) /* AIN10 */
#define ADCCHA_ADCCN_AIN11 (0xB << 8 ) /* AIN11 */
#define ADCCHA_ADCCN_AIN12 (0xC << 8 ) /* AIN12 */
#define ADCCHA_ADCCN_AIN13 (0xD << 8 ) /* AIN13 */
#define ADCCHA_ADCCN_AIN14 (0xE << 8 ) /* AIN14 */
#define ADCCHA_ADCCN_AIN15 (0xF << 8 ) /* AIN15 */
#define ADCCHA_ADCCN_VREFP_NADC (0x10 << 8 ) /* VREFP_NADC: Connect ADC_REFP to negative input. */
#define ADCCHA_ADCCN_VREFN_NADC (0x11 << 8 ) /* VREFN_NADC: Connect ADC_REFN to negative input. Use This setting for single ended measurements. */
#define ADCCHA_ADCCN_AGND (0x12 << 8 ) /* AGND */
#define ADCCHA_ADCCN_PGND (0x13 << 8 ) /* PGND */
/* ADCCHA[ADCCP] - Select ADC channel */
#define ADCCHA_ADCCP_MSK (0x1F << 0 )
#define ADCCHA_ADCCP_AIN0 (0x0 << 0 ) /* AIN0 */
#define ADCCHA_ADCCP_AIN1 (0x1 << 0 ) /* AIN1 */
#define ADCCHA_ADCCP_AIN2 (0x2 << 0 ) /* AIN2 */
#define ADCCHA_ADCCP_AIN3 (0x3 << 0 ) /* AIN3 */
#define ADCCHA_ADCCP_AIN4 (0x4 << 0 ) /* AIN4 */
#define ADCCHA_ADCCP_AIN5 (0x5 << 0 ) /* AIN5 */
#define ADCCHA_ADCCP_AIN6 (0x6 << 0 ) /* AIN6 */
#define ADCCHA_ADCCP_AIN7 (0x7 << 0 ) /* AIN7 */
#define ADCCHA_ADCCP_AIN8 (0x8 << 0 ) /* AIN8 */
#define ADCCHA_ADCCP_AIN9 (0x9 << 0 ) /* AIN9 */
#define ADCCHA_ADCCP_AIN10 (0xA << 0 ) /* AIN10 */
#define ADCCHA_ADCCP_AIN11 (0xB << 0 ) /* AIN11 */
#define ADCCHA_ADCCP_AIN12 (0xC << 0 ) /* AIN12 */
#define ADCCHA_ADCCP_AIN13 (0xD << 0 ) /* AIN13 */
#define ADCCHA_ADCCP_AIN14 (0xE << 0 ) /* AIN14 */
#define ADCCHA_ADCCP_AIN15 (0xF << 0 ) /* AIN15 */
#define ADCCHA_ADCCP_TEMP_SENSOR (0x16 << 0 ) /* TEMP_SENSOR */
#define ADCCHA_ADCCP_VREFP_PADC (0x17 << 0 ) /* VREFP_PADC: Connect ADC_REFP to positive input. Note: This pin should not be measured relative to AGND. This selection is intended for measuring the differential voltage between the negative input and ADC_REFP. */
#define ADCCHA_ADCCP_PVDD_IDAC2 (0x18 << 0 ) /* PVDD_IDAC2: Use this to measure the PVDD supply voltage for IDAC2 */
#define ADCCHA_ADCCP_IOVDD_2 (0x19 << 0 ) /* IOVDD_2: Use this to measure half of the IOVDD supply voltage */
#define ADCCHA_ADCCP_AVDD_2 (0x1A << 0 ) /* AVDD_2: Use this to measure half of the AVDD supply voltage. */
#define ADCCHA_ADCCP_VREFN_PADC (0x1B << 0 ) /* VREFN_PADC: Connect ADC_REFN to positive input. */
/* Reset Value for ADCSEQ*/
#define ADCSEQ_RVAL 0x0
/* ADCSEQ[ST] - Sequence restart, used to force sequence to start at first channel when sequence is working */
#define ADCSEQ_ST_BBA (*(volatile unsigned long *) 0x430C117C)
#define ADCSEQ_ST_MSK (0x1 << 31 )
#define ADCSEQ_ST (0x1 << 31 )
/* ADCSEQ[EN] - Sequence enable */
#define ADCSEQ_EN_BBA (*(volatile unsigned long *) 0x430C1178)
#define ADCSEQ_EN_MSK (0x1 << 30 )
#define ADCSEQ_EN (0x1 << 30 )
/* ADCSEQ[CH] - Select channels included in sequence operation. */
#define ADCSEQ_CH_MSK (0x1FFFFFFF << 0 )
/* Reset Value for ADCSEQC*/
#define ADCSEQC_RVAL 0x8C631
/* ADCSEQC[T] - Define programmable delay of 0 to 254 between sequences. A delay 255 will cause a halt after one sequence. */
#define ADCSEQC_T_MSK (0xFF << 20 )
/* ADCSEQC[DIF6] - Selects differential mode negative input for AIN6 in the sequence. */
#define ADCSEQC_DIF6_MSK (0x1F << 15 )
/* ADCSEQC[DIF4] - Selects differential mode negative input for AIN4 in the sequence. */
#define ADCSEQC_DIF4_MSK (0x1F << 10 )
/* ADCSEQC[DIF2] - Selects differential mode negative input for AIN2 in the sequence. */
#define ADCSEQC_DIF2_MSK (0x1F << 5 )
/* ADCSEQC[DIF0] - Selects differential mode negative input for AIN0 in the sequence. */
#define ADCSEQC_DIF0_MSK (0x1F << 0 )
/* Reset Value for ADCGN*/
#define ADCGN_RVAL 0x2000
/* ADCGN[GN] - User gain register */
#define ADCGN_GN_MSK (0x3FFF << 0 )
/* Reset Value for ADCOF*/
#define ADCOF_RVAL 0x2000
/* ADCOF[OF] - User offset register */
#define ADCOF_OF_MSK (0x3FFF << 0 )
/* Reset Value for ADCCMP*/
#define ADCCMP_RVAL 0x0
/* ADCCMP[THR] - Digital compare threshold */
#define ADCCMP_THR_MSK (0xFFFF << 2 )
/* ADCCMP[DIR] - Select digital comparator direction */
#define ADCCMP_DIR_BBA (*(volatile unsigned long *) 0x430C1304)
#define ADCCMP_DIR_MSK (0x1 << 1 )
#define ADCCMP_DIR (0x1 << 1 )
#define ADCCMP_DIR_DIS (0x0 << 1 ) /* ADCTH less than channel 4 data */
#define ADCCMP_DIR_EN (0x1 << 1 ) /* ADCTH larger than channel 4 data */
/* ADCCMP[EN] - Digital comparator enable */
#define ADCCMP_EN_BBA (*(volatile unsigned long *) 0x430C1300)
#define ADCCMP_EN_MSK (0x1 << 0 )
#define ADCCMP_EN (0x1 << 0 )
#define ADCCMP_EN_DIS (0x0 << 0 ) /* Disable */
#define ADCCMP_EN_EN (0x1 << 0 ) /* Enable */
/* Reset Value for ADCCNVC*/
#define ADCCNVC_RVAL 0xA00C8
/* ADCCNVC[CNVD] - Configure ADC Acquisition time and sampling time */
#define ADCCNVC_CNVD_MSK (0x3FF << 16 )
/* ADCCNVC[CNVC] - Configure Conversion frequency */
#define ADCCNVC_CNVC_MSK (0x3FF << 0 )
// ------------------------------------------------------------------------------------------------
// ----- VDAC -----
// ------------------------------------------------------------------------------------------------
/**
* @brief VDAC (pADI_VDAC0)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_VDAC0 Structure */
__IO uint16_t DACCON; /*!< DAC0 control register */
__I uint16_t RESERVED0[8193];
__IO uint32_t DACDAT; /*!< DAC0 data register */
} ADI_VDAC_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define DAC0CON (*(volatile unsigned short int *) 0x40082400)
#define DAC0DAT (*(volatile unsigned long *) 0x40086404)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for DAC0CON*/
#define DAC0CON_RVAL 0x100
/* DAC0CON[PD] - DAC0 power down */
#define DAC0CON_PD_BBA (*(volatile unsigned long *) 0x43048020)
#define DAC0CON_PD_MSK (0x1 << 8 )
#define DAC0CON_PD (0x1 << 8 )
/* DAC0CON[EN] - DAC0 enable */
#define DAC0CON_EN_BBA (*(volatile unsigned long *) 0x43048010)
#define DAC0CON_EN_MSK (0x1 << 4 )
#define DAC0CON_EN (0x1 << 4 )
/* DAC0CON[RN] - DAC0 reference selection */
#define DAC0CON_RN_MSK (0x3 << 0 )
/* Reset Value for DAC0DAT*/
#define DAC0DAT_RVAL 0x0
/* DAC0DAT[DAT] - DAC0 data */
#define DAC0DAT_DAT_MSK (0xFFF << 16 )
#if (__NO_MMR_STRUCTS__==1)
#define DAC1CON (*(volatile unsigned short int *) 0x40082404)
#define DAC1DAT (*(volatile unsigned long *) 0x40086408)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for DAC1CON*/
#define DAC1CON_RVAL 0x100
/* DAC1CON[PD] - DAC1 power down */
#define DAC1CON_PD_BBA (*(volatile unsigned long *) 0x430480A0)
#define DAC1CON_PD_MSK (0x1 << 8 )
#define DAC1CON_PD (0x1 << 8 )
/* DAC1CON[EN] - DAC1 enable */
#define DAC1CON_EN_BBA (*(volatile unsigned long *) 0x43048090)
#define DAC1CON_EN_MSK (0x1 << 4 )
#define DAC1CON_EN (0x1 << 4 )
/* DAC1CON[RN] - DAC1 reference selection */
#define DAC1CON_RN_MSK (0x3 << 0 )
/* Reset Value for DAC1DAT*/
#define DAC1DAT_RVAL 0x0
/* DAC1DAT[DAT] - DAC1 data */
#define DAC1DAT_DAT_MSK (0xFFF << 16 )
#if (__NO_MMR_STRUCTS__==1)
#define DAC2CON (*(volatile unsigned short int *) 0x40082408)
#define DAC2DAT (*(volatile unsigned long *) 0x4008640C)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for DAC2CON*/
#define DAC2CON_RVAL 0x100
/* DAC2CON[PD] - DAC2 power down */
#define DAC2CON_PD_BBA (*(volatile unsigned long *) 0x43048120)
#define DAC2CON_PD_MSK (0x1 << 8 )
#define DAC2CON_PD (0x1 << 8 )
/* DAC2CON[EN] - DAC2 enable */
#define DAC2CON_EN_BBA (*(volatile unsigned long *) 0x43048110)
#define DAC2CON_EN_MSK (0x1 << 4 )
#define DAC2CON_EN (0x1 << 4 )
/* DAC2CON[RN] - DAC2 reference selection */
#define DAC2CON_RN_MSK (0x3 << 0 )
/* Reset Value for DAC2DAT*/
#define DAC2DAT_RVAL 0x0
/* DAC2DAT[DAT] - DAC2 data */
#define DAC2DAT_DAT_MSK (0xFFF << 16 )
#if (__NO_MMR_STRUCTS__==1)
#define DAC3CON (*(volatile unsigned short int *) 0x4008240C)
#define DAC3DAT (*(volatile unsigned long *) 0x40086410)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for DAC3CON*/
#define DAC3CON_RVAL 0x100
/* DAC3CON[PD] - DAC3 power down */
#define DAC3CON_PD_BBA (*(volatile unsigned long *) 0x430481A0)
#define DAC3CON_PD_MSK (0x1 << 8 )
#define DAC3CON_PD (0x1 << 8 )
/* DAC3CON[EN] - DAC3 enable */
#define DAC3CON_EN_BBA (*(volatile unsigned long *) 0x43048190)
#define DAC3CON_EN_MSK (0x1 << 4 )
#define DAC3CON_EN (0x1 << 4 )
/* DAC3CON[RN] - DAC3 reference selection */
#define DAC3CON_RN_MSK (0x3 << 0 )
/* Reset Value for DAC3DAT*/
#define DAC3DAT_RVAL 0x0
/* DAC3DAT[DAT] - DAC3 data */
#define DAC3DAT_DAT_MSK (0xFFF << 16 )
#if (__NO_MMR_STRUCTS__==1)
#define DAC4CON (*(volatile unsigned short int *) 0x40082410)
#define DAC4DAT (*(volatile unsigned long *) 0x40086414)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for DAC4CON*/
#define DAC4CON_RVAL 0x100
/* DAC4CON[PD] - DAC4 power down */
#define DAC4CON_PD_BBA (*(volatile unsigned long *) 0x43048220)
#define DAC4CON_PD_MSK (0x1 << 8 )
#define DAC4CON_PD (0x1 << 8 )
/* DAC4CON[EN] - DAC4 enable */
#define DAC4CON_EN_BBA (*(volatile unsigned long *) 0x43048210)
#define DAC4CON_EN_MSK (0x1 << 4 )
#define DAC4CON_EN (0x1 << 4 )
/* DAC4CON[RN] - DAC4 reference selection */
#define DAC4CON_RN_MSK (0x3 << 0 )
/* Reset Value for DAC4DAT*/
#define DAC4DAT_RVAL 0x0
/* DAC4DAT[DAT] - DAC4 data */
#define DAC4DAT_DAT_MSK (0xFFF << 16 )
#if (__NO_MMR_STRUCTS__==1)
#define DAC5CON (*(volatile unsigned short int *) 0x40082414)
#define DAC5DAT (*(volatile unsigned long *) 0x40086418)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for DAC5CON*/
#define DAC5CON_RVAL 0x100
/* DAC5CON[PD] - DAC5 power down */
#define DAC5CON_PD_BBA (*(volatile unsigned long *) 0x430482A0)
#define DAC5CON_PD_MSK (0x1 << 8 )
#define DAC5CON_PD (0x1 << 8 )
/* DAC5CON[EN] - DAC5 enable */
#define DAC5CON_EN_BBA (*(volatile unsigned long *) 0x43048290)
#define DAC5CON_EN_MSK (0x1 << 4 )
#define DAC5CON_EN (0x1 << 4 )
/* DAC5CON[RN] - DAC5 reference selection */
#define DAC5CON_RN_MSK (0x3 << 0 )
/* Reset Value for DAC5DAT*/
#define DAC5DAT_RVAL 0x0
/* DAC5DAT[DAT] - DAC5 data */
#define DAC5DAT_DAT_MSK (0xFFF << 16 )
#if (__NO_MMR_STRUCTS__==1)
#define DAC6CON (*(volatile unsigned short int *) 0x40082418)
#define DAC6DAT (*(volatile unsigned long *) 0x4008641C)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for DAC6CON*/
#define DAC6CON_RVAL 0x100
/* DAC6CON[PD] - DAC6 power down */
#define DAC6CON_PD_BBA (*(volatile unsigned long *) 0x43048320)
#define DAC6CON_PD_MSK (0x1 << 8 )
#define DAC6CON_PD (0x1 << 8 )
/* DAC6CON[EN] - DAC6 enable */
#define DAC6CON_EN_BBA (*(volatile unsigned long *) 0x43048310)
#define DAC6CON_EN_MSK (0x1 << 4 )
#define DAC6CON_EN (0x1 << 4 )
/* DAC6CON[RN] - DAC6 reference selection */
#define DAC6CON_RN_MSK (0x3 << 0 )
/* Reset Value for DAC6DAT*/
#define DAC6DAT_RVAL 0x0
/* DAC6DAT[DAT] - DAC6 data */
#define DAC6DAT_DAT_MSK (0xFFF << 16 )
#if (__NO_MMR_STRUCTS__==1)
#define DAC7CON (*(volatile unsigned short int *) 0x4008241C)
#define DAC7DAT (*(volatile unsigned long *) 0x40086420)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for DAC7CON*/
#define DAC7CON_RVAL 0x100
/* DAC7CON[PD] - DAC7 power down */
#define DAC7CON_PD_BBA (*(volatile unsigned long *) 0x430483A0)
#define DAC7CON_PD_MSK (0x1 << 8 )
#define DAC7CON_PD (0x1 << 8 )
/* DAC7CON[EN] - DAC7 enable */
#define DAC7CON_EN_BBA (*(volatile unsigned long *) 0x43048390)
#define DAC7CON_EN_MSK (0x1 << 4 )
#define DAC7CON_EN (0x1 << 4 )
/* DAC7CON[RN] - DAC7 reference selection */
#define DAC7CON_RN_MSK (0x3 << 0 )
/* Reset Value for DAC7DAT*/
#define DAC7DAT_RVAL 0x0
/* DAC7DAT[DAT] - DAC7 data */
#define DAC7DAT_DAT_MSK (0xFFF << 16 )
// ------------------------------------------------------------------------------------------------
// ----- InBuf -----
// ------------------------------------------------------------------------------------------------
/**
* @brief InBuf (pADI_InBuf)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_InBuf Structure */
__IO uint16_t IBUFCON; /*!< InBuf control register */
} ADI_InBuf_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define IBUFCON (*(volatile unsigned short int *) 0x40081400)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for IBUFCON*/
#define IBUFCON_RVAL 0xF
/* IBUFCON[IBUF_CHOP] - CHOPINBUF enable the chop per InBuf separately */
#define IBUFCON_IBUF_CHOP_MSK (0x3 << 4 )
#define IBUFCON_IBUF_CHOP_OFF (0x0 << 4 ) /* Chopping disabled on both buffers. */
#define IBUFCON_IBUF_CHOP_NSIDE (0x1 << 4 ) /* Chopping enabled on N-side only. P-side Disabled. */
#define IBUFCON_IBUF_CHOP_PSIDE (0x2 << 4 ) /* Chopping enabled on P-side only. N-side Disabled. */
#define IBUFCON_IBUF_CHOP_BOTH (0x3 << 4 ) /* Chopping enabled on both buffers. */
/* IBUFCON[IBUF_PD] - Power down P/N InBuf separately */
#define IBUFCON_IBUF_PD_MSK (0x3 << 2 )
#define IBUFCON_IBUF_PD_NONE (0x0 << 2 ) /* Both sides powered on */
#define IBUFCON_IBUF_PD_NSIDE (0x1 << 2 ) /* only N side powered down */
#define IBUFCON_IBUF_PD_PSIDE (0x2 << 2 ) /* only P side powered down */
#define IBUFCON_IBUF_PD_BOTH (0x3 << 2 ) /* Both sides powered down */
/* IBUFCON[IBUF_BYP] - Bypass P/N InBuf seperately */
#define IBUFCON_IBUF_BYP_MSK (0x3 << 0 )
#define IBUFCON_IBUF_BYP_NONE (0x0 << 0 ) /* Bypass none sided */
#define IBUFCON_IBUF_BYP_NSIDE (0x1 << 0 ) /* N side bypassed */
#define IBUFCON_IBUF_BYP_PSIDE (0x2 << 0 ) /* P side bypassed */
#define IBUFCON_IBUF_BYP_BOTH (0x3 << 0 ) /* Bypass both */
// ------------------------------------------------------------------------------------------------
// ----- LV -----
// ------------------------------------------------------------------------------------------------
/**
* @brief LV_MISC (pADI_LV)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_LV Structure */
__IO uint16_t LVID; /*!< Low voltage die ID */
} ADI_LV_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define LVID (*(volatile unsigned short int *) 0x40082C30)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for LVID*/
#define LVID_RVAL 0x71
/* LVID[LVID] - LVID comes from hardware coded logic */
#define LVID_LVID_MSK (0xFFFF << 0 )
// ------------------------------------------------------------------------------------------------
// ----- LV_RST -----
// ------------------------------------------------------------------------------------------------
/**
* @brief LV_MISC (pADI_LV_RST)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_LV_RST Structure */
__IO uint16_t LVRST; /*!< LV die reset configuration */
} ADI_LV_RST_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define LVRST (*(volatile unsigned short int *) 0x40082C34)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for LVRST*/
#define LVRST_RVAL 0x0
/* LVRST[RETAIN] - LV retains status after WDT and software reset */
#define LVRST_RETAIN_BBA (*(volatile unsigned long *) 0x43058680)
#define LVRST_RETAIN_MSK (0x1 << 0 )
#define LVRST_RETAIN (0x1 << 0 )
#define LVRST_RETAIN_EN (0x0 << 0 ) /* LV die retains status after watchdog or software reset. */
#define LVRST_RETAIN_DIS (0x1 << 0 ) /* LV die does not retain status after watchdog or software reset. */
// ------------------------------------------------------------------------------------------------
// ----- LV_INT -----
// ------------------------------------------------------------------------------------------------
/**
* @brief LV_INT (pADI_LV_INT)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_LV_INT Structure */
__IO uint16_t INTCLR; /*!< Interrupt clear register */
__I uint16_t RESERVED0;
__IO uint16_t INTSEL; /*!< Interrupt mask register */
__I uint16_t RESERVED1;
__IO uint16_t INTSTA; /*!< Interrupt status register */
} ADI_LV_INT_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define INTCLR (*(volatile unsigned short int *) 0x40083004)
#define INTSEL (*(volatile unsigned short int *) 0x40083008)
#define INTSTA (*(volatile unsigned short int *) 0x4008300C)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for INTCLR*/
#define INTCLR_RVAL 0x0
/* INTCLR[CLR_WRECC_ERR] - Write 1 to this bit to clear the write ECC error interrupt flag */
#define INTCLR_CLR_WRECC_ERR_BBA (*(volatile unsigned long *) 0x4306009C)
#define INTCLR_CLR_WRECC_ERR_MSK (0x1 << 7 )
#define INTCLR_CLR_WRECC_ERR (0x1 << 7 )
#define INTCLR_CLR_WRECC_ERR_DIS (0x0 << 7 )
#define INTCLR_CLR_WRECC_ERR_EN (0x1 << 7 )
/* INTCLR[CLR_RDECC_ERR] - Write 1 to this bit to clear the read ECC error interrupt flag */
#define INTCLR_CLR_RDECC_ERR_BBA (*(volatile unsigned long *) 0x43060098)
#define INTCLR_CLR_RDECC_ERR_MSK (0x1 << 6 )
#define INTCLR_CLR_RDECC_ERR (0x1 << 6 )
#define INTCLR_CLR_RDECC_ERR_DIS (0x0 << 6 )
#define INTCLR_CLR_RDECC_ERR_EN (0x1 << 6 )
/* INTCLR[CLR_IDAC_EXTRESLOW] - Write 1 to this bit to clear the IDAC EXTRESLOW interrupt flag */
#define INTCLR_CLR_IDAC_EXTRESLOW_BBA (*(volatile unsigned long *) 0x43060094)
#define INTCLR_CLR_IDAC_EXTRESLOW_MSK (0x1 << 5 )
#define INTCLR_CLR_IDAC_EXTRESLOW (0x1 << 5 )
#define INTCLR_CLR_IDAC_EXTRESLOW_DIS (0x0 << 5 )
#define INTCLR_CLR_IDAC_EXTRESLOW_EN (0x1 << 5 )
/* INTCLR[CLR_IDAC_TSHUT] - Write 1 to this bit to clear the IDAC TSHUT interrupt flag */
#define INTCLR_CLR_IDAC_TSHUT_BBA (*(volatile unsigned long *) 0x43060090)
#define INTCLR_CLR_IDAC_TSHUT_MSK (0x1 << 4 )
#define INTCLR_CLR_IDAC_TSHUT (0x1 << 4 )
#define INTCLR_CLR_IDAC_TSHUT_DIS (0x0 << 4 )
#define INTCLR_CLR_IDAC_TSHUT_EN (0x1 << 4 )
/* INTCLR[CLR_ACOMP] - Write 1 to this bit to clear the analog compare interrupt flag */
#define INTCLR_CLR_ACOMP_BBA (*(volatile unsigned long *) 0x4306008C)
#define INTCLR_CLR_ACOMP_MSK (0x1 << 3 )
#define INTCLR_CLR_ACOMP (0x1 << 3 )
#define INTCLR_CLR_ACOMP_DIS (0x0 << 3 )
#define INTCLR_CLR_ACOMP_EN (0x1 << 3 )
/* INTCLR[CLR_DCOMP] - Write 1 to this bit to clear the digital compare interrupt flag */
#define INTCLR_CLR_DCOMP_BBA (*(volatile unsigned long *) 0x43060088)
#define INTCLR_CLR_DCOMP_MSK (0x1 << 2 )
#define INTCLR_CLR_DCOMP (0x1 << 2 )
#define INTCLR_CLR_DCOMP_DIS (0x0 << 2 )
#define INTCLR_CLR_DCOMP_EN (0x1 << 2 )
/* INTCLR[CLR_ADC_SEQ] - Write 1 to this bit to clear the ADC sequence conversion interrupt flag */
#define INTCLR_CLR_ADC_SEQ_BBA (*(volatile unsigned long *) 0x43060084)
#define INTCLR_CLR_ADC_SEQ_MSK (0x1 << 1 )
#define INTCLR_CLR_ADC_SEQ (0x1 << 1 )
#define INTCLR_CLR_ADC_SEQ_DIS (0x0 << 1 )
#define INTCLR_CLR_ADC_SEQ_EN (0x1 << 1 )
/* INTCLR[CLR_ADC_SOFTCONV] - Write 1 to this bit to clear the ADC software conversion interrupt flag */
#define INTCLR_CLR_ADC_SOFTCONV_BBA (*(volatile unsigned long *) 0x43060080)
#define INTCLR_CLR_ADC_SOFTCONV_MSK (0x1 << 0 )
#define INTCLR_CLR_ADC_SOFTCONV (0x1 << 0 )
#define INTCLR_CLR_ADC_SOFTCONV_DIS (0x0 << 0 )
#define INTCLR_CLR_ADC_SOFTCONV_EN (0x1 << 0 )
/* Reset Value for INTSEL*/
#define INTSEL_RVAL 0x0
/* INTSEL[SEL_WRECC_ERR_0] - Write 1 to this bit to enable write ECC error interrupt for interrupt pin 0 */
#define INTSEL_SEL_WRECC_ERR_0_BBA (*(volatile unsigned long *) 0x4306013C)
#define INTSEL_SEL_WRECC_ERR_0_MSK (0x1 << 15 )
#define INTSEL_SEL_WRECC_ERR_0 (0x1 << 15 )
#define INTSEL_SEL_WRECC_ERR_0_DIS (0x0 << 15 )
#define INTSEL_SEL_WRECC_ERR_0_EN (0x1 << 15 )
/* INTSEL[SEL_RDECC_ERR_0] - Write 1 to this bit to enable read ECC error interrupt for interrupt pin 0 */
#define INTSEL_SEL_RDECC_ERR_0_BBA (*(volatile unsigned long *) 0x43060138)
#define INTSEL_SEL_RDECC_ERR_0_MSK (0x1 << 14 )
#define INTSEL_SEL_RDECC_ERR_0 (0x1 << 14 )
#define INTSEL_SEL_RDECC_ERR_0_DIS (0x0 << 14 )
#define INTSEL_SEL_RDECC_ERR_0_EN (0x1 << 14 )
/* INTSEL[SLE_IDAC_EXTRESLOW_0] - Write 1 to this bit to enable IDAC EXTRESLOW interrupt for interrupt pin 0 */
#define INTSEL_SLE_IDAC_EXTRESLOW_0_BBA (*(volatile unsigned long *) 0x43060134)
#define INTSEL_SLE_IDAC_EXTRESLOW_0_MSK (0x1 << 13 )
#define INTSEL_SLE_IDAC_EXTRESLOW_0 (0x1 << 13 )
#define INTSEL_SLE_IDAC_EXTRESLOW_0_DIS (0x0 << 13 )
#define INTSEL_SLE_IDAC_EXTRESLOW_0_EN (0x1 << 13 )
/* INTSEL[SEL_IDAC_TSHUT_0] - Write 1 to this bit to enable IDAC TSHUT interrupt for interrupt pin 0 */
#define INTSEL_SEL_IDAC_TSHUT_0_BBA (*(volatile unsigned long *) 0x43060130)
#define INTSEL_SEL_IDAC_TSHUT_0_MSK (0x1 << 12 )
#define INTSEL_SEL_IDAC_TSHUT_0 (0x1 << 12 )
#define INTSEL_SEL_IDAC_TSHUT_0_DIS (0x0 << 12 )
#define INTSEL_SEL_IDAC_TSHUT_0_EN (0x1 << 12 )
/* INTSEL[SEL_ACOMP_0] - Write 1 to this bit to enable analog comparator interrupt for interrupt pin 0 */
#define INTSEL_SEL_ACOMP_0_BBA (*(volatile unsigned long *) 0x4306012C)
#define INTSEL_SEL_ACOMP_0_MSK (0x1 << 11 )
#define INTSEL_SEL_ACOMP_0 (0x1 << 11 )
#define INTSEL_SEL_ACOMP_0_DIS (0x0 << 11 )
#define INTSEL_SEL_ACOMP_0_EN (0x1 << 11 )
/* INTSEL[SEL_DCOMP_0] - Write 1 to this bit to enable digital comparator interrupt for interrupt pin 0 */
#define INTSEL_SEL_DCOMP_0_BBA (*(volatile unsigned long *) 0x43060128)
#define INTSEL_SEL_DCOMP_0_MSK (0x1 << 10 )
#define INTSEL_SEL_DCOMP_0 (0x1 << 10 )
#define INTSEL_SEL_DCOMP_0_DIS (0x0 << 10 )
#define INTSEL_SEL_DCOMP_0_EN (0x1 << 10 )
/* INTSEL[SEL_ADC_SEQ_0] - Write 1 to this bit to enable ADC sequence conversion interrupt for interrupt pin 0 */
#define INTSEL_SEL_ADC_SEQ_0_BBA (*(volatile unsigned long *) 0x43060124)
#define INTSEL_SEL_ADC_SEQ_0_MSK (0x1 << 9 )
#define INTSEL_SEL_ADC_SEQ_0 (0x1 << 9 )
#define INTSEL_SEL_ADC_SEQ_0_DIS (0x0 << 9 )
#define INTSEL_SEL_ADC_SEQ_0_EN (0x1 << 9 )
/* INTSEL[SEL_ADC_SOFTCONV_0] - Write 1 to this bit to enable ADC software conversion interrupt for interrupt pin 0 */
#define INTSEL_SEL_ADC_SOFTCONV_0_BBA (*(volatile unsigned long *) 0x43060120)
#define INTSEL_SEL_ADC_SOFTCONV_0_MSK (0x1 << 8 )
#define INTSEL_SEL_ADC_SOFTCONV_0 (0x1 << 8 )
#define INTSEL_SEL_ADC_SOFTCONV_0_DIS (0x0 << 8 )
#define INTSEL_SEL_ADC_SOFTCONV_0_EN (0x1 << 8 )
/* INTSEL[SEL_WRECC_ERR_1] - Write 1 to this bit to enable write ECC error interrupt for interrupt pin 1 */
#define INTSEL_SEL_WRECC_ERR_1_BBA (*(volatile unsigned long *) 0x4306011C)
#define INTSEL_SEL_WRECC_ERR_1_MSK (0x1 << 7 )
#define INTSEL_SEL_WRECC_ERR_1 (0x1 << 7 )
#define INTSEL_SEL_WRECC_ERR_1_DIS (0x0 << 7 )
#define INTSEL_SEL_WRECC_ERR_1_EN (0x1 << 7 )
/* INTSEL[SEL_RDECC_ERR_1] - Write 1 to this bit to enable read ECC error interrupt for interrupt pin 1 */
#define INTSEL_SEL_RDECC_ERR_1_BBA (*(volatile unsigned long *) 0x43060118)
#define INTSEL_SEL_RDECC_ERR_1_MSK (0x1 << 6 )
#define INTSEL_SEL_RDECC_ERR_1 (0x1 << 6 )
#define INTSEL_SEL_RDECC_ERR_1_DIS (0x0 << 6 )
#define INTSEL_SEL_RDECC_ERR_1_EN (0x1 << 6 )
/* INTSEL[SLE_IDAC_EXTRESLOW_1] - Write 1 to this bit to enable IDAC EXTRESLOW interrupt for interrupt pin 1 */
#define INTSEL_SLE_IDAC_EXTRESLOW_1_BBA (*(volatile unsigned long *) 0x43060114)
#define INTSEL_SLE_IDAC_EXTRESLOW_1_MSK (0x1 << 5 )
#define INTSEL_SLE_IDAC_EXTRESLOW_1 (0x1 << 5 )
#define INTSEL_SLE_IDAC_EXTRESLOW_1_DIS (0x0 << 5 )
#define INTSEL_SLE_IDAC_EXTRESLOW_1_EN (0x1 << 5 )
/* INTSEL[SEL_IDAC_TSHUT_1] - Write 1 to this bit to enable IDAC TSHUT interrupt for interrupt pin 1 */
#define INTSEL_SEL_IDAC_TSHUT_1_BBA (*(volatile unsigned long *) 0x43060110)
#define INTSEL_SEL_IDAC_TSHUT_1_MSK (0x1 << 4 )
#define INTSEL_SEL_IDAC_TSHUT_1 (0x1 << 4 )
#define INTSEL_SEL_IDAC_TSHUT_1_DIS (0x0 << 4 )
#define INTSEL_SEL_IDAC_TSHUT_1_EN (0x1 << 4 )
/* INTSEL[SEL_ACOMP_1] - Write 1 to this bit to enable analog comparator interrupt for interrupt pin 1 */
#define INTSEL_SEL_ACOMP_1_BBA (*(volatile unsigned long *) 0x4306010C)
#define INTSEL_SEL_ACOMP_1_MSK (0x1 << 3 )
#define INTSEL_SEL_ACOMP_1 (0x1 << 3 )
#define INTSEL_SEL_ACOMP_1_DIS (0x0 << 3 )
#define INTSEL_SEL_ACOMP_1_EN (0x1 << 3 )
/* INTSEL[SEL_DCOMP_1] - Write 1 to this bit to enable digital comparator interrupt for interrupt pin 1 */
#define INTSEL_SEL_DCOMP_1_BBA (*(volatile unsigned long *) 0x43060108)
#define INTSEL_SEL_DCOMP_1_MSK (0x1 << 2 )
#define INTSEL_SEL_DCOMP_1 (0x1 << 2 )
#define INTSEL_SEL_DCOMP_1_DIS (0x0 << 2 )
#define INTSEL_SEL_DCOMP_1_EN (0x1 << 2 )
/* INTSEL[SEL_ADC_SEQ_1] - Write 1 to this bit to enable ADC sequence conversion interrupt for interrupt pin 1 */
#define INTSEL_SEL_ADC_SEQ_1_BBA (*(volatile unsigned long *) 0x43060104)
#define INTSEL_SEL_ADC_SEQ_1_MSK (0x1 << 1 )
#define INTSEL_SEL_ADC_SEQ_1 (0x1 << 1 )
#define INTSEL_SEL_ADC_SEQ_1_DIS (0x0 << 1 )
#define INTSEL_SEL_ADC_SEQ_1_EN (0x1 << 1 )
/* INTSEL[SEL_ADC_SOFTCONV_1] - Write 1 to this bit to enable ADC software conversion interrupt for interrupt pin 1 */
#define INTSEL_SEL_ADC_SOFTCONV_1_BBA (*(volatile unsigned long *) 0x43060100)
#define INTSEL_SEL_ADC_SOFTCONV_1_MSK (0x1 << 0 )
#define INTSEL_SEL_ADC_SOFTCONV_1 (0x1 << 0 )
#define INTSEL_SEL_ADC_SOFTCONV_1_DIS (0x0 << 0 )
#define INTSEL_SEL_ADC_SOFTCONV_1_EN (0x1 << 0 )
/* Reset Value for INTSTA*/
#define INTSTA_RVAL 0x0
/* INTSTA[WRECC_ERR] - Write data ECC error interrupt status */
#define INTSTA_WRECC_ERR_BBA (*(volatile unsigned long *) 0x4306019C)
#define INTSTA_WRECC_ERR_MSK (0x1 << 7 )
#define INTSTA_WRECC_ERR (0x1 << 7 )
#define INTSTA_WRECC_ERR_CLR (0x0 << 7 )
#define INTSTA_WRECC_ERR_SET (0x1 << 7 )
/* INTSTA[RDECC_ERR] - Read data ECC error interrupt status */
#define INTSTA_RDECC_ERR_BBA (*(volatile unsigned long *) 0x43060198)
#define INTSTA_RDECC_ERR_MSK (0x1 << 6 )
#define INTSTA_RDECC_ERR (0x1 << 6 )
#define INTSTA_RDECC_ERR_CLR (0x0 << 6 )
#define INTSTA_RDECC_ERR_SET (0x1 << 6 )
/* INTSTA[IDAC_EXTRESLOW] - IDAC EXTRESLOW interrupt status */
#define INTSTA_IDAC_EXTRESLOW_BBA (*(volatile unsigned long *) 0x43060194)
#define INTSTA_IDAC_EXTRESLOW_MSK (0x1 << 5 )
#define INTSTA_IDAC_EXTRESLOW (0x1 << 5 )
#define INTSTA_IDAC_EXTRESLOW_CLR (0x0 << 5 )
#define INTSTA_IDAC_EXTRESLOW_SET (0x1 << 5 )
/* INTSTA[IDAC_TSHUT] - IDAC temperature TSHT interrupt status */
#define INTSTA_IDAC_TSHUT_BBA (*(volatile unsigned long *) 0x43060190)
#define INTSTA_IDAC_TSHUT_MSK (0x1 << 4 )
#define INTSTA_IDAC_TSHUT (0x1 << 4 )
#define INTSTA_IDAC_TSHUT_CLR (0x0 << 4 )
#define INTSTA_IDAC_TSHUT_SET (0x1 << 4 )
/* INTSTA[ACOMP] - Analog comparator interrupt status */
#define INTSTA_ACOMP_BBA (*(volatile unsigned long *) 0x4306018C)
#define INTSTA_ACOMP_MSK (0x1 << 3 )
#define INTSTA_ACOMP (0x1 << 3 )
#define INTSTA_ACOMP_CLR (0x0 << 3 )
#define INTSTA_ACOMP_SET (0x1 << 3 )
/* INTSTA[DCOMP] - Digital comparator interrupt status */
#define INTSTA_DCOMP_BBA (*(volatile unsigned long *) 0x43060188)
#define INTSTA_DCOMP_MSK (0x1 << 2 )
#define INTSTA_DCOMP (0x1 << 2 )
#define INTSTA_DCOMP_CLR (0x0 << 2 )
#define INTSTA_DCOMP_SET (0x1 << 2 )
/* INTSTA[ADC_SEQ] - ADC sequence interrupt status */
#define INTSTA_ADC_SEQ_BBA (*(volatile unsigned long *) 0x43060184)
#define INTSTA_ADC_SEQ_MSK (0x1 << 1 )
#define INTSTA_ADC_SEQ (0x1 << 1 )
#define INTSTA_ADC_SEQ_CLR (0x0 << 1 )
#define INTSTA_ADC_SEQ_SET (0x1 << 1 )
/* INTSTA[ADC_SOFTCONV] - ADC software conversion interrupt status */
#define INTSTA_ADC_SOFTCONV_BBA (*(volatile unsigned long *) 0x43060180)
#define INTSTA_ADC_SOFTCONV_MSK (0x1 << 0 )
#define INTSTA_ADC_SOFTCONV (0x1 << 0 )
#define INTSTA_ADC_SOFTCONV_CLR (0x0 << 0 )
#define INTSTA_ADC_SOFTCONV_SET (0x1 << 0 )
// ------------------------------------------------------------------------------------------------
// ----- IDAC -----
// ------------------------------------------------------------------------------------------------
/**
* @brief IDAC (pADI_IDAC0)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_IDAC0 Structure */
__IO uint32_t IDACDAT; /*!< IDAC0 data register */
__IO uint8_t IDACCON; /*!< IDAC0 control register */
} ADI_IDAC_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define IDAC0DAT (*(volatile unsigned long *) 0x40086800)
#define IDAC0CON (*(volatile unsigned char *) 0x40086804)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for IDAC0DAT*/
#define IDAC0DAT_RVAL 0x0
/* IDAC0DAT[DATH] - IDAC0 high data */
#define IDAC0DAT_DATH_MSK (0x7FF << 17 )
/* IDAC0DAT[DATL] - IDAC0 low data */
#define IDAC0DAT_DATL_MSK (0x1F << 12 )
/* IDAC0DAT[SYNC] - IDAC0 sync bits */
#define IDAC0DAT_SYNC_MSK (0x3F << 0 )
/* Reset Value for IDAC0CON*/
#define IDAC0CON_RVAL 0x1
/* IDAC0CON[CLRB] - IDAC0 Clear bit */
#define IDAC0CON_CLRB_BBA (*(volatile unsigned long *) 0x430D009C)
#define IDAC0CON_CLRB_MSK (0x1 << 7 )
#define IDAC0CON_CLRB (0x1 << 7 )
/* IDAC0CON[SHT_EN] - IDAC0 shutdown enable */
#define IDAC0CON_SHT_EN_BBA (*(volatile unsigned long *) 0x430D0098)
#define IDAC0CON_SHT_EN_MSK (0x1 << 6 )
#define IDAC0CON_SHT_EN (0x1 << 6 )
/* IDAC0CON[BW] - IDAC0 bandwidth */
#define IDAC0CON_BW_MSK (0xF << 2 )
/* IDAC0CON[PUL] - IDAC0 pull down */
#define IDAC0CON_PUL_BBA (*(volatile unsigned long *) 0x430D0084)
#define IDAC0CON_PUL_MSK (0x1 << 1 )
#define IDAC0CON_PUL (0x1 << 1 )
/* IDAC0CON[PD] - IDAC0 power down */
#define IDAC0CON_PD_BBA (*(volatile unsigned long *) 0x430D0080)
#define IDAC0CON_PD_MSK (0x1 << 0 )
#define IDAC0CON_PD (0x1 << 0 )
#define IDAC0CON_PD_ON (0x0 << 0 ) /* Powers IDAC0 up */
#define IDAC0CON_PD_OFF (0x1 << 0 ) /* Powers IDAC0 down */
#if (__NO_MMR_STRUCTS__==1)
#define IDAC1DAT (*(volatile unsigned long *) 0x40086808)
#define IDAC1CON (*(volatile unsigned char *) 0x4008680C)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for IDAC1DAT*/
#define IDAC1DAT_RVAL 0x0
/* IDAC1DAT[DATH] - IDAC1 high data */
#define IDAC1DAT_DATH_MSK (0x7FF << 17 )
/* IDAC1DAT[DATL] - IDAC1 low data */
#define IDAC1DAT_DATL_MSK (0x1F << 12 )
/* IDAC1DAT[SYNC] - IDAC1 sync bits */
#define IDAC1DAT_SYNC_MSK (0x3F << 0 )
/* Reset Value for IDAC1CON*/
#define IDAC1CON_RVAL 0x1
/* IDAC1CON[CLRB] - IDAC1 Clear bit */
#define IDAC1CON_CLRB_BBA (*(volatile unsigned long *) 0x430D019C)
#define IDAC1CON_CLRB_MSK (0x1 << 7 )
#define IDAC1CON_CLRB (0x1 << 7 )
/* IDAC1CON[SHT_EN] - IDAC1 shutdown enable */
#define IDAC1CON_SHT_EN_BBA (*(volatile unsigned long *) 0x430D0198)
#define IDAC1CON_SHT_EN_MSK (0x1 << 6 )
#define IDAC1CON_SHT_EN (0x1 << 6 )
/* IDAC1CON[BW] - IDAC1 bandwidth */
#define IDAC1CON_BW_MSK (0xF << 2 )
/* IDAC1CON[PUL] - IDAC1 pull down */
#define IDAC1CON_PUL_BBA (*(volatile unsigned long *) 0x430D0184)
#define IDAC1CON_PUL_MSK (0x1 << 1 )
#define IDAC1CON_PUL (0x1 << 1 )
/* IDAC1CON[PD] - IDAC1 power down */
#define IDAC1CON_PD_BBA (*(volatile unsigned long *) 0x430D0180)
#define IDAC1CON_PD_MSK (0x1 << 0 )
#define IDAC1CON_PD (0x1 << 0 )
#define IDAC1CON_PD_OFF (0x0 << 0 ) /* Powers IDAC1 up */
#define IDAC1CON_PD_ON (0x1 << 0 ) /* Powers IDAC1 down */
#if (__NO_MMR_STRUCTS__==1)
#define IDAC2DAT (*(volatile unsigned long *) 0x40086810)
#define IDAC2CON (*(volatile unsigned char *) 0x40086814)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for IDAC2DAT*/
#define IDAC2DAT_RVAL 0x0
/* IDAC2DAT[DATH] - IDAC2 high data */
#define IDAC2DAT_DATH_MSK (0x7FF << 17 )
/* IDAC2DAT[DATL] - IDAC2 low data */
#define IDAC2DAT_DATL_MSK (0x1F << 12 )
/* IDAC2DAT[SYNC] - IDAC2 sync bits */
#define IDAC2DAT_SYNC_MSK (0x3F << 0 )
/* Reset Value for IDAC2CON*/
#define IDAC2CON_RVAL 0x1
/* IDAC2CON[CLR] - IDAC2 Clear bit */
#define IDAC2CON_CLR_BBA (*(volatile unsigned long *) 0x430D029C)
#define IDAC2CON_CLR_MSK (0x1 << 7 )
#define IDAC2CON_CLR (0x1 << 7 )
/* IDAC2CON[SHT_EN] - IDAC2 shutdown enable */
#define IDAC2CON_SHT_EN_BBA (*(volatile unsigned long *) 0x430D0298)
#define IDAC2CON_SHT_EN_MSK (0x1 << 6 )
#define IDAC2CON_SHT_EN (0x1 << 6 )
/* IDAC2CON[BW] - IDAC2 bandwidth */
#define IDAC2CON_BW_MSK (0xF << 2 )
/* IDAC2CON[PUL] - IDAC2 pull down */
#define IDAC2CON_PUL_BBA (*(volatile unsigned long *) 0x430D0284)
#define IDAC2CON_PUL_MSK (0x1 << 1 )
#define IDAC2CON_PUL (0x1 << 1 )
/* IDAC2CON[PD] - IDAC2 power down */
#define IDAC2CON_PD_BBA (*(volatile unsigned long *) 0x430D0280)
#define IDAC2CON_PD_MSK (0x1 << 0 )
#define IDAC2CON_PD (0x1 << 0 )
#define IDAC2CON_PD_OFF (0x0 << 0 ) /* Powers IDAC2 up */
#define IDAC2CON_PD_ON (0x1 << 0 ) /* Powers IDAC2 down */
#if (__NO_MMR_STRUCTS__==1)
#define IDAC3DAT (*(volatile unsigned long *) 0x40086818)
#define IDAC3CON (*(volatile unsigned char *) 0x4008681C)
#endif // (__NO_MMR_STRUCTS__==1)
/* Reset Value for IDAC3DAT*/
#define IDAC3DAT_RVAL 0x0
/* IDAC3DAT[DATH] - IDAC3 high data */
#define IDAC3DAT_DATH_MSK (0x7FF << 17 )
/* IDAC3DAT[DATL] - IDAC3 low data */
#define IDAC3DAT_DATL_MSK (0x1F << 12 )
/* IDAC3DAT[SYNC] - IDAC3 sync bits */
#define IDAC3DAT_SYNC_MSK (0x3F << 0 )
/* Reset Value for IDAC3CON*/
#define IDAC3CON_RVAL 0x1
/* IDAC3CON[CLR] - IDAC3 Clear bit */
#define IDAC3CON_CLR_BBA (*(volatile unsigned long *) 0x430D039C)
#define IDAC3CON_CLR_MSK (0x1 << 7 )
#define IDAC3CON_CLR (0x1 << 7 )
/* IDAC3CON[SHT_EN] - IDAC3 shutdown enable */
#define IDAC3CON_SHT_EN_BBA (*(volatile unsigned long *) 0x430D0398)
#define IDAC3CON_SHT_EN_MSK (0x1 << 6 )
#define IDAC3CON_SHT_EN (0x1 << 6 )
/* IDAC3CON[BW] - IDAC3 bandwidth */
#define IDAC3CON_BW_MSK (0xF << 2 )
/* IDAC3CON[PUL] - IDAC3 pull down */
#define IDAC3CON_PUL_BBA (*(volatile unsigned long *) 0x430D0384)
#define IDAC3CON_PUL_MSK (0x1 << 1 )
#define IDAC3CON_PUL (0x1 << 1 )
/* IDAC3CON[PD] - IDAC3 power down */
#define IDAC3CON_PD_BBA (*(volatile unsigned long *) 0x430D0380)
#define IDAC3CON_PD_MSK (0x1 << 0 )
#define IDAC3CON_PD (0x1 << 0 )
#define IDAC3CON_PD_OFF (0x0 << 0 ) /* Powers IDAC3 up */
#define IDAC3CON_PD_ON (0x1 << 0 ) /* Powers IDAC3 down */
// ------------------------------------------------------------------------------------------------
// ----- AFE -----
// ------------------------------------------------------------------------------------------------
/**
* @brief comp_ldo_por_reftop_temp (pADI_AFE)
*/
#if (__NO_MMR_STRUCTS__==0)
typedef struct { /*!< pADI_AFE Structure */
__IO uint8_t AFETEMPC; /*!< Temp sensor configuration register */
__I uint8_t RESERVED0[3];
__IO uint8_t AFEREFC; /*!< Reference configuration register */
__I uint8_t RESERVED1[3];
__IO uint16_t AFECOMP; /*!< Analog comparator configuration register */
} ADI_AFE_TypeDef;
#else // (__NO_MMR_STRUCTS__==0)
#define AFETEMPC (*(volatile unsigned char *) 0x40087830)
#define AFEREFC (*(volatile unsigned char *) 0x40087834)
#define AFECOMP (*(volatile unsigned short int *) 0x40087838)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for AFETEMPC*/
#define AFETEMPC_RVAL 0x0
/* AFETEMPC[CHOP] - Temperature sensor chopping enable. */
#define AFETEMPC_CHOP_BBA (*(volatile unsigned long *) 0x430F0604)
#define AFETEMPC_CHOP_MSK (0x1 << 1 )
#define AFETEMPC_CHOP (0x1 << 1 )
#define AFETEMPC_CHOP_DIS (0x0 << 1 ) /* Disable chopping mode */
#define AFETEMPC_CHOP_EN (0x1 << 1 ) /* Enable chopping mode */
/* AFETEMPC[PD] - Temperature sensor power down. */
#define AFETEMPC_PD_BBA (*(volatile unsigned long *) 0x430F0600)
#define AFETEMPC_PD_MSK (0x1 << 0 )
#define AFETEMPC_PD (0x1 << 0 )
#define AFETEMPC_PD_DIS (0x0 << 0 ) /* Power up temp sensor */
#define AFETEMPC_PD_EN (0x1 << 0 ) /* Power down temp sensor */
/* Reset Value for AFEREFC*/
#define AFEREFC_RVAL 0x0
/* AFEREFC[B2MA_PDA] - Power down the reference 2mA output driving buffer A. */
#define AFEREFC_B2MA_PDA_BBA (*(volatile unsigned long *) 0x430F0698)
#define AFEREFC_B2MA_PDA_MSK (0x1 << 6 )
#define AFEREFC_B2MA_PDA (0x1 << 6 )
#define AFEREFC_B2MA_PDA_DIS (0x0 << 6 ) /* Power up 2.5 V reference output driving buffer A */
#define AFEREFC_B2MA_PDA_EN (0x1 << 6 ) /* Power down 2.5 V reference output driving buffer A */
/* AFEREFC[REF] - bypass the internal reference, and select the external reference. */
#define AFEREFC_REF_BBA (*(volatile unsigned long *) 0x430F068C)
#define AFEREFC_REF_MSK (0x1 << 3 )
#define AFEREFC_REF (0x1 << 3 )
#define AFEREFC_REF_INT (0x0 << 3 ) /* Select internal 2.5v reference */
#define AFEREFC_REF_EXT (0x1 << 3 ) /* Select external 2.5v reference */
/* AFEREFC[B2MA_PDB] - Power down the reference 2mA output driving buffer B. */
#define AFEREFC_B2MA_PDB_BBA (*(volatile unsigned long *) 0x430F0688)
#define AFEREFC_B2MA_PDB_MSK (0x1 << 2 )
#define AFEREFC_B2MA_PDB (0x1 << 2 )
#define AFEREFC_B2MA_PDB_DIS (0x0 << 2 ) /* Power up 2.5 V reference output driving buffer B */
#define AFEREFC_B2MA_PDB_EN (0x1 << 2 ) /* Power down 2.5 V reference output driving buffer B */
/* AFEREFC[B2V5R_PD] - 2.5v reference buffer power down */
#define AFEREFC_B2V5R_PD_BBA (*(volatile unsigned long *) 0x430F0684)
#define AFEREFC_B2V5R_PD_MSK (0x1 << 1 )
#define AFEREFC_B2V5R_PD (0x1 << 1 )
#define AFEREFC_B2V5R_PD_DIS (0x0 << 1 ) /* Power up 2.5 V reference buffer */
#define AFEREFC_B2V5R_PD_EN (0x1 << 1 ) /* Power down 2.5 V reference buffer */
/* AFEREFC[BG_PD] - Bandgap power down */
#define AFEREFC_BG_PD_BBA (*(volatile unsigned long *) 0x430F0680)
#define AFEREFC_BG_PD_MSK (0x1 << 0 )
#define AFEREFC_BG_PD (0x1 << 0 )
#define AFEREFC_BG_PD_DIS (0x0 << 0 ) /* Power up 1.2 V bandgap */
#define AFEREFC_BG_PD_EN (0x1 << 0 ) /* Power down 1.2 V bandgap */
/* Reset Value for AFECOMP*/
#define AFECOMP_RVAL 0x0
/* AFECOMP[EN] - Powers up and enables comparator */
#define AFECOMP_EN_BBA (*(volatile unsigned long *) 0x430F0720)
#define AFECOMP_EN_MSK (0x1 << 8 )
#define AFECOMP_EN (0x1 << 8 )
#define AFECOMP_EN_DIS (0x0 << 8 ) /* Power down and disable comparator */
#define AFECOMP_EN_EN (0x1 << 8 ) /* Power up and enable comparator */
/* AFECOMP[INNEG] - Selects comparator negative input signal. */
#define AFECOMP_INNEG_MSK (0x3 << 6 )
#define AFECOMP_INNEG_AVDD2 (0x0 << 6 ) /* AVDD/2 */
#define AFECOMP_INNEG_AIN5 (0x1 << 6 ) /* AIN5 */
#define AFECOMP_INNEG_DAC7 (0x2 << 6 ) /* DAC7 */
/* AFECOMP[OUT] - Connects comparator output to interrupt logic. */
#define AFECOMP_OUT_MSK (0x3 << 4 )
#define AFECOMP_OUT_DIS (0x0 << 4 ) /* Do not connect output */
#define AFECOMP_OUT_EN (0x1 << 4 ) /* Connect output to interrupt logic */
/* AFECOMP[INV] - Selects output logic state. */
#define AFECOMP_INV_BBA (*(volatile unsigned long *) 0x430F070C)
#define AFECOMP_INV_MSK (0x1 << 3 )
#define AFECOMP_INV (0x1 << 3 )
#define AFECOMP_INV_NO (0x0 << 3 ) /* Output will be high if +ve input is above -ve input. */
#define AFECOMP_INV_YES (0x1 << 3 ) /* Output will be high if +ve input is below -ve input. */
/* AFECOMP[SPEED] - Selects comparator speed. */
#define AFECOMP_SPEED_MSK (0x3 << 1 )
#define AFECOMP_SPEED_SPEED6 (0x0 << 1 ) /* 6.00us */
#define AFECOMP_SPEED_SPEED3 (0x1 << 1 ) /* 3.25us */
#define AFECOMP_SPEED_SPEED2 (0x2 << 1 ) /* 1.75us */
#define AFECOMP_SPEED_SPEED1 (0x3 << 1 ) /* 1.00us */
/* AFECOMP[HYS] - Enables comparator hysteresis */
#define AFECOMP_HYS_BBA (*(volatile unsigned long *) 0x430F0700)
#define AFECOMP_HYS_MSK (0x1 << 0 )
#define AFECOMP_HYS (0x1 << 0 )
#define AFECOMP_HYS_DIS (0x0 << 0 ) /* Disable hysteresis */
#define AFECOMP_HYS_EN (0x1 << 0 ) /* Enable hysteresis */
// ------------------------------------------------------------------------------------------------
// ----- nvic -----
// ------------------------------------------------------------------------------------------------
/**
* @brief nvic (pADI_nvic)
*/
#if (__NO_MMR_STRUCTS__==0)
#else // (__NO_MMR_STRUCTS__==0)
#define ICTR (*(volatile unsigned long *) 0xE000E004)
#define STCSR (*(volatile unsigned long *) 0xE000E010)
#define STRVR (*(volatile unsigned long *) 0xE000E014)
#define STCVR (*(volatile unsigned long *) 0xE000E018)
#define STCR (*(volatile unsigned long *) 0xE000E01C)
#define ISER0 (*(volatile unsigned long *) 0xE000E100)
#define ISER1 (*(volatile unsigned long *) 0xE000E104)
#define ICER0 (*(volatile unsigned long *) 0xE000E180)
#define ICER1 (*(volatile unsigned long *) 0xE000E184)
#define ISPR0 (*(volatile unsigned long *) 0xE000E200)
#define ISPR1 (*(volatile unsigned long *) 0xE000E204)
#define ICPR0 (*(volatile unsigned long *) 0xE000E280)
#define ICPR1 (*(volatile unsigned long *) 0xE000E284)
#define IABR0 (*(volatile unsigned long *) 0xE000E300)
#define IABR1 (*(volatile unsigned long *) 0xE000E304)
#define IPR0 (*(volatile unsigned long *) 0xE000E400)
#define IPR1 (*(volatile unsigned long *) 0xE000E404)
#define IPR2 (*(volatile unsigned long *) 0xE000E408)
#define IPR3 (*(volatile unsigned long *) 0xE000E40C)
#define IPR4 (*(volatile unsigned long *) 0xE000E410)
#define IPR5 (*(volatile unsigned long *) 0xE000E414)
#define IPR6 (*(volatile unsigned long *) 0xE000E418)
#define IPR7 (*(volatile unsigned long *) 0xE000E41C)
#define IPR8 (*(volatile unsigned long *) 0xE000E420)
#define IPR9 (*(volatile unsigned long *) 0xE000E424)
#define IPR10 (*(volatile unsigned long *) 0xE000E428)
#define IPR11 (*(volatile unsigned long *) 0xE000E42C)
#define IPR12 (*(volatile unsigned long *) 0xE000E430)
#define IPR13 (*(volatile unsigned long *) 0xE000E434)
#define CPUID (*(volatile unsigned long *) 0xE000ED00)
#define ICSR (*(volatile unsigned long *) 0xE000ED04)
#define VTOR (*(volatile unsigned long *) 0xE000ED08)
#define AIRCR (*(volatile unsigned long *) 0xE000ED0C)
#define SCR (*(volatile unsigned short int *) 0xE000ED10)
#define CCR (*(volatile unsigned long *) 0xE000ED14)
#define SHPR1 (*(volatile unsigned long *) 0xE000ED18)
#define SHPR2 (*(volatile unsigned long *) 0xE000ED1C)
#define SHPR3 (*(volatile unsigned long *) 0xE000ED20)
#define SHCRS (*(volatile unsigned long *) 0xE000ED24)
#define CFSR (*(volatile unsigned long *) 0xE000ED28)
#define HFSR (*(volatile unsigned long *) 0xE000ED2C)
#define MMAR (*(volatile unsigned long *) 0xE000ED34)
#define BFAR (*(volatile unsigned long *) 0xE000ED38)
#define AFSR (*(volatile unsigned long *) 0xE000ED3C)
#define STIR (*(volatile unsigned long *) 0xE000EF00)
#endif // (__NO_MMR_STRUCTS__==0)
/* Reset Value for ICTR*/
#define ICTR_RVAL 0x0
/* Reset Value for STCSR*/
#define STCSR_RVAL 0x0
/* Reset Value for STRVR*/
#define STRVR_RVAL 0x0
/* Reset Value for STCVR*/
#define STCVR_RVAL 0x0
/* Reset Value for STCR*/
#define STCR_RVAL 0x0
/* Reset Value for ISER0*/
#define ISER0_RVAL 0x0
/* Reset Value for ISER1*/
#define ISER1_RVAL 0x0
/* Reset Value for ICER0*/
#define ICER0_RVAL 0x0
/* Reset Value for ICER1*/
#define ICER1_RVAL 0x0
/* Reset Value for ISPR0*/
#define ISPR0_RVAL 0x0
/* Reset Value for ISPR1*/
#define ISPR1_RVAL 0x0
/* Reset Value for ICPR0*/
#define ICPR0_RVAL 0x0
/* Reset Value for ICPR1*/
#define ICPR1_RVAL 0x0
/* Reset Value for IABR0*/
#define IABR0_RVAL 0x0
/* Reset Value for IABR1*/
#define IABR1_RVAL 0x0
/* Reset Value for IPR0*/
#define IPR0_RVAL 0x0
/* Reset Value for IPR1*/
#define IPR1_RVAL 0x0
/* Reset Value for IPR2*/
#define IPR2_RVAL 0x0
/* Reset Value for IPR3*/
#define IPR3_RVAL 0x0
/* Reset Value for IPR4*/
#define IPR4_RVAL 0x0
/* Reset Value for IPR5*/
#define IPR5_RVAL 0x0
/* Reset Value for IPR6*/
#define IPR6_RVAL 0x0
/* Reset Value for IPR7*/
#define IPR7_RVAL 0x0
/* Reset Value for IPR8*/
#define IPR8_RVAL 0x0
/* Reset Value for IPR9*/
#define IPR9_RVAL 0x0
/* Reset Value for IPR10*/
#define IPR10_RVAL 0x0
/* Reset Value for IPR11*/
#define IPR11_RVAL 0x0
/* Reset Value for IPR12*/
#define IPR12_RVAL 0x0
/* Reset Value for IPR13*/
#define IPR13_RVAL 0x0
/* Reset Value for CPUID*/
#define CPUID_RVAL 0x0
/* Reset Value for ICSR*/
#define ICSR_RVAL 0x0
/* Reset Value for VTOR*/
#define VTOR_RVAL 0x0
/* Reset Value for AIRCR*/
#define AIRCR_RVAL 0x0
/* Reset Value for SCR*/
#define SCR_RVAL 0x0
/* SCR[SLEEPDEEP] - deep sleep flag for HIBERNATE mode */
#define SCR_SLEEPDEEP_MSK (0x1 << 2 )
#define SCR_SLEEPDEEP (0x1 << 2 )
#define SCR_SLEEPDEEP_DIS (0x0 << 2 )
#define SCR_SLEEPDEEP_EN (0x1 << 2 )
/* SCR[SLEEPONEXIT] - Sleeps the core on exit from an ISR */
#define SCR_SLEEPONEXIT_MSK (0x1 << 1 )
#define SCR_SLEEPONEXIT (0x1 << 1 )
#define SCR_SLEEPONEXIT_DIS (0x0 << 1 )
#define SCR_SLEEPONEXIT_EN (0x1 << 1 )
/* Reset Value for CCR*/
#define CCR_RVAL 0x0
/* Reset Value for SHPR1*/
#define SHPR1_RVAL 0x0
/* Reset Value for SHPR2*/
#define SHPR2_RVAL 0x0
/* Reset Value for SHPR3*/
#define SHPR3_RVAL 0x0
/* Reset Value for SHCRS*/
#define SHCRS_RVAL 0x0
/* Reset Value for CFSR*/
#define CFSR_RVAL 0x0
/* Reset Value for HFSR*/
#define HFSR_RVAL 0x0
/* Reset Value for MMAR*/
#define MMAR_RVAL 0x0
/* Reset Value for BFAR*/
#define BFAR_RVAL 0x0
/* Reset Value for AFSR*/
#define AFSR_RVAL 0x0
/* Reset Value for STIR*/
#define STIR_RVAL 0x0
/* -------------------- End of section using anonymous unions ------------------- */
#if defined(__CC_ARM)
#pragma pop
#elif defined(__ICCARM__)
/* leave anonymous unions enabled */
#elif defined(__GNUC__)
/* anonymous unions are enabled by default */
#elif defined(__TMS470__)
/* anonymous unions are enabled by default */
#elif defined(__TASKING__)
#pragma warning restore
#else
#warning Not supported compiler type
#endif
/********************************************
** Miscellaneous Definitions **
*********************************************/
//iEiNr in EiCfg()
#define EXTINT0 0x0
#define EXTINT1 0x1
#define EXTINT2 0x2
#define EXTINT3 0x3
#define EXTINT4 0x4
#define EXTINT5 0x5
#define EXTINT6 0x6
#define EXTINT7 0x7
#define EXTINT8 0x8
//iEnable in EiCfg()
#define INT_DIS 0x0
#define INT_EN 0x1
//iMode in EiCfg()
#define INT_RISE 0x0
#define INT_FALL 0x1
#define INT_EDGES 0x2
#define INT_HIGH 0x3
#define INT_LOW 0x4
//Bit values.
#define BIT0 1
#define BIT1 2
#define BIT2 4
#define BIT3 8
#define BIT4 0x10
#define BIT5 0x20
#define BIT6 0x40
#define BIT7 0x80
/* ================================================================================ */
/* ================ Peripheral memory map ================ */
/* ================================================================================ */
#define ADI_TMR0_ADDR 0x40000000UL
#define ADI_TMR1_ADDR 0x40000400UL
#define ADI_TMR2_ADDR 0x40000800UL
#define ADI_ID_ADDR 0x40002024UL
#define ADI_PWRCTL_ADDR 0x40002400UL
#define ADI_RESET_ADDR 0x40002408UL
#define ADI_INTERRUPT_ADDR 0x40002420UL
#define ADI_WDT_ADDR 0x40002580UL
#define ADI_WUT_ADDR 0x40002500UL
#define ADI_I2C0_ADDR 0x40003000UL
#define ADI_I2C1_ADDR 0x40003400UL
#define ADI_UART_ADDR 0x40005000UL
#define ADI_MDIO_ADDR 0x40005C00UL
#define ADI_PLA_ADDR 0x40005800UL
#define ADI_DMA_ADDR 0x40010000UL
#define ADI_FEE_ADDR 0x40018000UL
#define ADI_GP0_ADDR 0x40020000UL
#define ADI_GP1_ADDR 0x40020040UL
#define ADI_GPIO_FIX_ADDR 0x40020068UL
#define ADI_GP2_ADDR 0x40020080UL
#define ADI_GP3_ADDR 0x400200C0UL
#define ADI_GP4_ADDR 0x40020100UL
#define ADI_GP5_ADDR 0x40020240UL
#define ADI_PWM_ADDR 0x40024000UL
#define ADI_CLKCTL_ADDR 0x40028000UL
#define ADI_dma_ctl_ADDR 0x40028100UL
#define ADI_SPI0_ADDR 0x4002C000UL
#define ADI_SPI1_ADDR 0x40030000UL
#define ADI_ADC_ADDR 0x40082174UL
#define ADI_VDAC0_ADDR 0x40082400UL
#define ADI_VDAC1_ADDR 0x40082404UL
#define ADI_VDAC2_ADDR 0x40082408UL
#define ADI_VDAC3_ADDR 0x4008240CUL
#define ADI_VDAC4_ADDR 0x40082410UL
#define ADI_VDAC5_ADDR 0x40082414UL
#define ADI_VDAC6_ADDR 0x40082418UL
#define ADI_VDAC7_ADDR 0x4008241CUL
#define ADI_InBuf_ADDR 0x40081400UL
#define ADI_LV_ADDR 0x40082C30UL
#define ADI_LV_RST_ADDR 0x40082C34UL
#define ADI_LV_INT_ADDR 0x40083004UL
#define ADI_IDAC0_ADDR 0x40086800UL
#define ADI_IDAC1_ADDR 0x40086808UL
#define ADI_IDAC2_ADDR 0x40086810UL
#define ADI_IDAC3_ADDR 0x40086818UL
#define ADI_AFE_ADDR 0x40087830UL
/* ================================================================================ */
/* ================ Peripheral declaration ================ */
/* ================================================================================ */
#define pADI_TMR0 ((ADI_TIMER_TypeDef *)ADI_TMR0_ADDR)
#define pADI_TMR1 ((ADI_TIMER_TypeDef *)ADI_TMR1_ADDR)
#define pADI_TMR2 ((ADI_TIMER_TypeDef *)ADI_TMR2_ADDR)
#define pADI_ID ((ADI_ID_TypeDef *)ADI_ID_ADDR)
#define pADI_PWRCTL ((ADI_PWRCTL_TypeDef *)ADI_PWRCTL_ADDR)
#define pADI_RESET ((ADI_RESET_TypeDef *)ADI_RESET_ADDR)
#define pADI_INTERRUPT ((ADI_INTERRUPT_TypeDef *)ADI_INTERRUPT_ADDR)
#define pADI_WDT ((ADI_WDT_TypeDef *)ADI_WDT_ADDR)
#define pADI_WUT ((ADI_WUT_TypeDef *)ADI_WUT_ADDR)
#define pADI_I2C0 ((ADI_I2C_TypeDef *)ADI_I2C0_ADDR)
#define pADI_I2C1 ((ADI_I2C_TypeDef *)ADI_I2C1_ADDR)
#define pADI_UART ((ADI_UART_TypeDef *)ADI_UART_ADDR)
#define pADI_MDIO ((ADI_MDIO_TypeDef *)ADI_MDIO_ADDR)
#define pADI_PLA ((ADI_PLA_TypeDef *)ADI_PLA_ADDR)
#define pADI_DMA ((ADI_DMA_TypeDef *)ADI_DMA_ADDR)
#define pADI_FEE ((ADI_FEE_TypeDef *)ADI_FEE_ADDR)
#define pADI_GP0 ((ADI_GPIO_TypeDef *)ADI_GP0_ADDR)
#define pADI_GP1 ((ADI_GPIO_TypeDef *)ADI_GP1_ADDR)
#define pADI_GPIO_FIX ((ADI_GPIO_FIX_TypeDef *)ADI_GPIO_FIX_ADDR)
#define pADI_GP2 ((ADI_GPIO_TypeDef *)ADI_GP2_ADDR)
#define pADI_GP3 ((ADI_GPIO_TypeDef *)ADI_GP3_ADDR)
#define pADI_GP4 ((ADI_GPIO_TypeDef *)ADI_GP4_ADDR)
#define pADI_GP5 ((ADI_GPIO_TypeDef *)ADI_GP5_ADDR)
#define pADI_PWM ((ADI_PWM_TypeDef *)ADI_PWM_ADDR)
#define pADI_CLKCTL ((ADI_CLKCTL_TypeDef *)ADI_CLKCTL_ADDR)
#define pADI_dma_ctl ((ADI_dma_ctl_TypeDef *)ADI_dma_ctl_ADDR)
#define pADI_SPI0 ((ADI_SPI_TypeDef *)ADI_SPI0_ADDR)
#define pADI_SPI1 ((ADI_SPI_TypeDef *)ADI_SPI1_ADDR)
#define pADI_ADC ((ADI_ADC_TypeDef *)ADI_ADC_ADDR)
#define pADI_VDAC0 ((ADI_VDAC_TypeDef *)ADI_VDAC0_ADDR)
#define pADI_VDAC1 ((ADI_VDAC_TypeDef *)ADI_VDAC1_ADDR)
#define pADI_VDAC2 ((ADI_VDAC_TypeDef *)ADI_VDAC2_ADDR)
#define pADI_VDAC3 ((ADI_VDAC_TypeDef *)ADI_VDAC3_ADDR)
#define pADI_VDAC4 ((ADI_VDAC_TypeDef *)ADI_VDAC4_ADDR)
#define pADI_VDAC5 ((ADI_VDAC_TypeDef *)ADI_VDAC5_ADDR)
#define pADI_VDAC6 ((ADI_VDAC_TypeDef *)ADI_VDAC6_ADDR)
#define pADI_VDAC7 ((ADI_VDAC_TypeDef *)ADI_VDAC7_ADDR)
#define pADI_InBuf ((ADI_InBuf_TypeDef *)ADI_InBuf_ADDR)
#define pADI_LV ((ADI_LV_TypeDef *)ADI_LV_ADDR)
#define pADI_LV_RST ((ADI_LV_RST_TypeDef *)ADI_LV_RST_ADDR)
#define pADI_LV_INT ((ADI_LV_INT_TypeDef *)ADI_LV_INT_ADDR)
#define pADI_IDAC0 ((ADI_IDAC_TypeDef *)ADI_IDAC0_ADDR)
#define pADI_IDAC1 ((ADI_IDAC_TypeDef *)ADI_IDAC1_ADDR)
#define pADI_IDAC2 ((ADI_IDAC_TypeDef *)ADI_IDAC2_ADDR)
#define pADI_IDAC3 ((ADI_IDAC_TypeDef *)ADI_IDAC3_ADDR)
#define pADI_AFE ((ADI_AFE_TypeDef *)ADI_AFE_ADDR)
/** @} */ /* End of group Device_Peripheral_Registers */
/** @} */ /* End of group ADUCM320 */
/** @} */ /* End of group CMSIS */
#ifdef __cplusplus
}
#endif
#endif // __ADUCM320_H__
|
koshkin-sergey/ukernel
|
src/kernel/timer.c
|
/*
* Copyright (C) 2011-2019 <NAME> <<EMAIL>>
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Project: uKernel real-time kernel
*/
/**
* @file
*
* Kernel system routines.
*
*/
/*******************************************************************************
* includes
******************************************************************************/
#include "os_lib.h"
/*******************************************************************************
* defines and macros (scope: module-local)
******************************************************************************/
/* Timer State definitions */
#define osTimerInactive 0x00U ///< Timer Inactive
#define osTimerStopped 0x01U ///< Timer Stopped
#define osTimerRunning 0x02U ///< Timer Running
/*******************************************************************************
* Helper functions
******************************************************************************/
static osTimerFinfo_t *TimerGetFinfo(void)
{
osTimer_t *timer;
osTimerFinfo_t *timer_finfo = NULL;
queue_t *timer_queue = &osInfo.timer_queue;
if (!isQueueEmpty(timer_queue)) {
timer = GetTimerByQueue(timer_queue->next);
if (time_after(timer->time, osInfo.kernel.tick)) {
timer_finfo = NULL;
}
else {
libTimerRemove(timer);
timer_finfo = &timer->finfo;
if (timer->type == osTimerPeriodic) {
libTimerInsert(timer, timer->load);
}
else {
timer->state = osTimerStopped;
}
}
}
return (timer_finfo);
}
/*******************************************************************************
* Service Calls
******************************************************************************/
static osTimerId_t TimerNew(osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr)
{
osTimer_t *timer;
/* Check parameters */
if ((func == NULL) || (attr == NULL) || ((type != osTimerOnce) && (type != osTimerPeriodic))) {
return NULL;
}
timer = attr->cb_mem;
/* Check parameters */
if ((timer == NULL) || (((uint32_t)timer & 3U) != 0U) || (attr->cb_size < sizeof(osTimer_t))) {
return (NULL);
}
/* Initialize control block */
timer->id = ID_TIMER;
timer->state = osTimerStopped;
timer->flags = 0U;
timer->type = (uint8_t)type;
timer->name = attr->name;
timer->load = 0U;
timer->time = 0U;
timer->finfo.func = func;
timer->finfo.arg = argument;
QueueReset(&timer->timer_que);
return (timer);
}
static const char *TimerGetName(osTimerId_t timer_id)
{
osTimer_t *timer = timer_id;
/* Check parameters */
if ((timer == NULL) || (timer->id != ID_TIMER)) {
return (NULL);
}
return (timer->name);
}
static osStatus_t TimerStart(osTimerId_t timer_id, uint32_t ticks)
{
osTimer_t *timer = timer_id;
/* Check parameters */
if ((timer == NULL) || (timer->id != ID_TIMER) || (ticks == 0U)) {
return (osErrorParameter);
}
if (timer->state == osTimerRunning) {
libTimerRemove(timer);
}
else {
if (osInfo.timer_semaphore == NULL) {
return (osErrorResource);
}
else {
timer->state = osTimerRunning;
timer->load = ticks;
}
}
libTimerInsert(timer, ticks);
return (osOK);
}
static osStatus_t TimerStop(osTimerId_t timer_id)
{
osTimer_t *timer = timer_id;
/* Check parameters */
if ((timer == NULL) || (timer->id != ID_TIMER)) {
return (osErrorParameter);
}
/* Check object state */
if (timer->state != osTimerRunning) {
return (osErrorResource);
}
timer->state = osTimerStopped;
libTimerRemove(timer);
return (osOK);
}
static uint32_t TimerIsRunning(osTimerId_t timer_id)
{
osTimer_t *timer = timer_id;
uint32_t is_running;
/* Check parameters */
if ((timer == NULL) || (timer->id != ID_TIMER)) {
return (0U);
}
if (timer->state == osTimerRunning) {
is_running = 1U;
}
else {
is_running = 0U;
}
return (is_running);
}
static osStatus_t TimerDelete(osTimerId_t timer_id)
{
osTimer_t *timer = timer_id;
/* Check parameters */
if ((timer == NULL) || (timer->id != ID_TIMER)) {
return (osErrorParameter);
}
/* Check object state */
if (timer->state == osTimerRunning) {
libTimerRemove(timer);
}
/* Mark object as inactive and invalid */
timer->state = osTimerInactive;
timer->id = ID_INVALID;
return (osOK);
}
/*******************************************************************************
* Library functions
******************************************************************************/
void libTimerInsert(osTimer_t *timer, uint32_t time)
{
queue_t *que;
queue_t *timer_queue;
timer_queue = &osInfo.timer_queue;
timer->time = time + osInfo.kernel.tick;
for (que = timer_queue->next; que != timer_queue; que = que->next) {
if (time_before(timer->time, GetTimerByQueue(que)->time)) {
break;
}
}
QueueAppend(que, &timer->timer_que);
}
void libTimerRemove(osTimer_t *timer)
{
QueueRemoveEntry(&timer->timer_que);
}
void libTimerThread(void *argument)
{
(void) argument;
osTimerFinfo_t *timer_finfo;
osInfo.timer_semaphore = osSemaphoreNew(1U, 0U, osConfig.timer_semaphore_attr);
if (osInfo.timer_semaphore == NULL) {
return;
}
for (;;) {
osSemaphoreAcquire(osInfo.timer_semaphore, osWaitForever);
while ((timer_finfo = (osTimerFinfo_t *)svc_0((uint32_t)TimerGetFinfo)) != NULL) {
(timer_finfo->func)(timer_finfo->arg);
}
}
}
/*******************************************************************************
* Public API
******************************************************************************/
/**
* @fn osTimerId_t osTimerNew(osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr)
* @brief Create and Initialize a timer.
* @param[in] func function pointer to callback function.
* @param[in] type \ref osTimerOnce for one-shot or \ref osTimerPeriodic for periodic behavior.
* @param[in] argument argument to the timer callback function.
* @param[in] attr timer attributes; NULL: default values.
* @return timer ID for reference by other functions or NULL in case of error.
*/
osTimerId_t osTimerNew(osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr)
{
osTimerId_t timer_id;
if (IsIrqMode() || IsIrqMasked()) {
timer_id = NULL;
}
else {
timer_id = (osTimerId_t)svc_4((uint32_t)func, (uint32_t)type, (uint32_t)argument, (uint32_t)attr, (uint32_t)TimerNew);
}
return (timer_id);
}
/**
* @fn const char *osTimerGetName(osTimerId_t timer_id)
* @brief Get name of a timer.
* @param[in] timer_id timer ID obtained by \ref osTimerNew.
* @return name as null-terminated string or NULL in case of an error.
*/
const char *osTimerGetName(osTimerId_t timer_id)
{
const char *name;
if (IsIrqMode() || IsIrqMasked()) {
name = NULL;
}
else {
name = (const char *)svc_1((uint32_t)timer_id, (uint32_t)TimerGetName);
}
return (name);
}
/**
* @fn osStatus_t osTimerStart(osTimerId_t timer_id, uint32_t ticks)
* @brief Start or restart a timer.
* @param[in] timer_id timer ID obtained by \ref osTimerNew.
* @param[in] ticks \ref CMSIS_RTOS_TimeOutValue "time ticks" value of the timer.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osTimerStart(osTimerId_t timer_id, uint32_t ticks)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_2((uint32_t)timer_id, ticks, (uint32_t)TimerStart);
}
return (status);
}
/**
* @fn osStatus_t osTimerStop(osTimerId_t timer_id)
* @brief Stop a timer.
* @param[in] timer_id timer ID obtained by \ref osTimerNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osTimerStop(osTimerId_t timer_id)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_1((uint32_t)timer_id, (uint32_t)TimerStop);
}
return (status);
}
/**
* @fn uint32_t osTimerIsRunning(osTimerId_t timer_id)
* @brief Check if a timer is running.
* @param[in] timer_id timer ID obtained by \ref osTimerNew.
* @return 0 not running or an error occurred, 1 running.
*/
uint32_t osTimerIsRunning(osTimerId_t timer_id)
{
uint32_t is_running;
if (IsIrqMode() || IsIrqMasked()) {
is_running = 0U;
}
else {
is_running = svc_1((uint32_t)timer_id, (uint32_t)TimerIsRunning);
}
return (is_running);
}
/**
* @fn osStatus_t osTimerDelete(osTimerId_t timer_id)
* @brief Delete a timer.
* @param[in] timer_id timer ID obtained by \ref osTimerNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osTimerDelete(osTimerId_t timer_id)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_1((uint32_t)timer_id, (uint32_t)TimerDelete);
}
return (status);
}
/*------------------------------ End of file ---------------------------------*/
|
koshkin-sergey/ukernel
|
src/kernel/mempool.c
|
<filename>src/kernel/mempool.c
/*
* Copyright (C) 2017-2019 <NAME> <<EMAIL>>
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Project: uKernel real-time kernel
*/
/**
* @file
*
* Kernel system routines.
*
*/
/*******************************************************************************
* includes
******************************************************************************/
#include "os_lib.h"
/*******************************************************************************
* function implementations (scope: module-local)
******************************************************************************/
static osMemoryPoolId_t MemoryPoolNew(uint32_t block_count, uint32_t block_size, const osMemoryPoolAttr_t *attr)
{
osMemoryPool_t *mp;
void *mp_mem;
uint32_t mp_size;
/* Check parameters */
if ((block_count == 0U) || (block_size == 0U) || ((__CLZ(block_count) + __CLZ(block_size)) < 32U) || (attr == NULL)) {
return (NULL);
}
mp = attr->cb_mem;
mp_mem = attr->mp_mem;
mp_size = attr->mp_size;
/* Check parameters */
if ((mp == NULL) || (((uint32_t)mp & 3U) != 0U) || (attr->cb_size < sizeof(osMemoryPool_t)) ||
(mp_mem == NULL) || (((uint32_t)mp_mem & 3U) != 0U) || (mp_size < (block_count * block_size))) {
return (NULL);
}
/* Initialize control block */
mp->id = ID_MEMORYPOOL;
mp->flags = 0U;
mp->name = attr->name;
QueueReset(&mp->wait_queue);
libMemoryPoolInit(block_count, block_size, mp_mem, &mp->info);
return (mp);
}
static const char *MemoryPoolGetName(osMemoryPoolId_t mp_id)
{
osMemoryPool_t *mp = mp_id;
/* Check parameters */
if ((mp == NULL) || (mp->id != ID_MEMORYPOOL)) {
return (NULL);
}
return (mp->name);
}
static void *MemoryPoolAlloc(osMemoryPoolId_t mp_id, uint32_t timeout)
{
osMemoryPool_t *mp = mp_id;
void *block;
/* Check parameters */
if ((mp == NULL) || (mp->id != ID_MEMORYPOOL)) {
return (NULL);
}
BEGIN_CRITICAL_SECTION
/* Allocate memory */
block = libMemoryPoolAlloc(&mp->info);
if (block == NULL && timeout != 0U) {
if (libThreadWaitEnter(ThreadGetRunning(), &mp->wait_queue, timeout)) {
block = (void *)osThreadWait;
}
}
END_CRITICAL_SECTION
return (block);
}
static osStatus_t MemoryPoolFree(osMemoryPoolId_t mp_id, void *block)
{
osMemoryPool_t *mp = mp_id;
osStatus_t status;
/* Check parameters */
if ((mp == NULL) || (mp->id != ID_MEMORYPOOL)) {
return (osErrorParameter);
}
BEGIN_CRITICAL_SECTION
/* Check if Thread is waiting to allocate memory */
if (!isQueueEmpty(&mp->wait_queue)) {
/* Wakeup waiting Thread with highest Priority */
libThreadWaitExit(GetThreadByQueue(mp->wait_queue.next), (uint32_t)block, DISPATCH_YES);
status = osOK;
}
else {
/* Free memory */
status = libMemoryPoolFree(&mp->info, block);
}
END_CRITICAL_SECTION
return (status);
}
static uint32_t MemoryPoolGetCapacity(osMemoryPoolId_t mp_id)
{
osMemoryPool_t *mp = mp_id;
/* Check parameters */
if ((mp == NULL) || (mp->id != ID_MEMORYPOOL)) {
return (0U);
}
return (mp->info.max_blocks);
}
static uint32_t MemoryPoolGetBlockSize(osMemoryPoolId_t mp_id)
{
osMemoryPool_t *mp = mp_id;
/* Check parameters */
if ((mp == NULL) || (mp->id != ID_MEMORYPOOL)) {
return (0U);
}
return (mp->info.block_size);
}
static uint32_t MemoryPoolGetCount(osMemoryPoolId_t mp_id)
{
osMemoryPool_t *mp = mp_id;
/* Check parameters */
if ((mp == NULL) || (mp->id != ID_MEMORYPOOL)) {
return (0U);
}
return (mp->info.used_blocks);
}
static uint32_t MemoryPoolGetSpace(osMemoryPoolId_t mp_id)
{
osMemoryPool_t *mp = mp_id;
/* Check parameters */
if ((mp == NULL) || (mp->id != ID_MEMORYPOOL)) {
return (0U);
}
return (mp->info.max_blocks - mp->info.used_blocks);
}
static osStatus_t MemoryPoolDelete(osMemoryPoolId_t mp_id)
{
osMemoryPool_t *mp = mp_id;
/* Check parameters */
if ((mp == NULL) || (mp->id != ID_MEMORYPOOL)) {
return (osErrorParameter);
}
/* Unblock waiting threads */
libThreadWaitDelete(&mp->wait_queue);
/* Mark object as invalid */
mp->id = ID_INVALID;
return (osOK);
}
/*******************************************************************************
* Library functions
******************************************************************************/
/**
* @brief Initialize Memory Pool.
* @param[in] block_count maximum number of memory blocks in memory pool.
* @param[in] block_size size of a memory block in bytes.
* @param[in] block_mem pointer to memory for block storage.
* @param[in] mp_info memory pool info.
*/
void libMemoryPoolInit(uint32_t block_count, uint32_t block_size, void *block_mem, osMemoryPoolInfo_t *mp_info)
{
// Initialize information structure
mp_info->max_blocks = block_count;
mp_info->used_blocks = 0U;
mp_info->block_size = block_size;
mp_info->block_base = block_mem;
mp_info->block_free = block_mem;
mp_info->block_lim = &(((uint8_t *)block_mem)[block_count * block_size]);
/* Reset Memory Pool */
libMemoryPoolReset(mp_info);
}
/**
* @brief Reset Memory Pool.
* @param[in] mp_info memory pool info.
*/
void libMemoryPoolReset(osMemoryPoolInfo_t *mp_info)
{
void *mem;
void *block;
uint32_t block_count;
/* Link all free blocks */
mem = mp_info->block_base;
block_count = mp_info->max_blocks;
while (--block_count != 0U) {
block = &((uint8_t *)mem)[mp_info->block_size];
*((void **)mem) = block;
mem = block;
}
*((void **)mem) = NULL;
}
/**
* @brief Allocate a memory block from a Memory Pool.
* @param[in] mp_info memory pool info.
* @return address of the allocated memory block or NULL in case of no memory is available.
*/
void *libMemoryPoolAlloc(osMemoryPoolInfo_t *mp_info)
{
void *block;
if (mp_info == NULL) {
return (NULL);
}
block = mp_info->block_free;
if (block != NULL) {
mp_info->block_free = *((void **)block);
mp_info->used_blocks++;
}
return (block);
}
/**
* @brief Return an allocated memory block back to a Memory Pool.
* @param[in] mp_info memory pool info.
* @param[in] block address of the allocated memory block to be returned to the memory pool.
* @return status code that indicates the execution status of the function.
*/
osStatus_t libMemoryPoolFree(osMemoryPoolInfo_t *mp_info, void *block)
{
if ((mp_info == NULL) || (block < mp_info->block_base) || (block >= mp_info->block_lim)) {
return (osErrorParameter);
}
*((void **)block) = mp_info->block_free;
mp_info->block_free = block;
mp_info->used_blocks--;
return (osOK);
}
/*******************************************************************************
* Public API
******************************************************************************/
/**
* @fn osMemoryPoolId_t osMemoryPoolNew(uint32_t block_count, uint32_t block_size, const osMemoryPoolAttr_t *attr)
* @brief Create and Initialize a Memory Pool object.
* @param[in] block_count maximum number of memory blocks in memory pool.
* @param[in] block_size memory block size in bytes.
* @param[in] attr memory pool attributes.
* @return memory pool ID for reference by other functions or NULL in case of error.
*/
osMemoryPoolId_t osMemoryPoolNew(uint32_t block_count, uint32_t block_size, const osMemoryPoolAttr_t *attr)
{
osMemoryPoolId_t mp_id;
if (IsIrqMode() || IsIrqMasked()) {
mp_id = NULL;
}
else {
mp_id = (osMemoryPoolId_t)svc_3(block_count, block_size, (uint32_t)attr, (uint32_t)MemoryPoolNew);
}
return (mp_id);
}
/**
* @fn const char *osMemoryPoolGetName(osMemoryPoolId_t mp_id)
* @brief Get name of a Memory Pool object.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @return name as null-terminated string or NULL in case of an error.
*/
const char *osMemoryPoolGetName(osMemoryPoolId_t mp_id)
{
const char *name;
if (IsIrqMode() || IsIrqMasked()) {
name = NULL;
}
else {
name = (const char *)svc_1((uint32_t)mp_id, (uint32_t)MemoryPoolGetName);
}
return (name);
}
/**
* @fn void *osMemoryPoolAlloc(osMemoryPoolId_t mp_id, uint32_t timeout)
* @brief Allocate a memory block from a Memory Pool.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
* @return address of the allocated memory block or NULL in case of no memory is available.
*/
void *osMemoryPoolAlloc(osMemoryPoolId_t mp_id, uint32_t timeout)
{
void *memory;
if (IsIrqMode() || IsIrqMasked()) {
if (timeout != 0U) {
memory = NULL;
}
else {
memory = MemoryPoolAlloc(mp_id, timeout);
}
}
else {
memory = (void *)svc_2((uint32_t)mp_id, timeout, (uint32_t)MemoryPoolAlloc);
if ((int32_t)memory == osThreadWait) {
memory = (void *)ThreadGetRunning()->winfo.ret_val;
if ((osStatus_t)memory == osErrorTimeout) {
memory = NULL;
}
}
}
return (memory);
}
/**
* @fn osStatus_t osMemoryPoolFree(osMemoryPoolId_t mp_id, void *block)
* @brief Return an allocated memory block back to a Memory Pool.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @param[in] block address of the allocated memory block to be returned to the memory pool.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osMemoryPoolFree(osMemoryPoolId_t mp_id, void *block)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = MemoryPoolFree(mp_id, block);
}
else {
status = (osStatus_t)svc_2((uint32_t)mp_id, (uint32_t)block, (uint32_t)MemoryPoolFree);
}
return (status);
}
/**
* @fn uint32_t osMemoryPoolGetCapacity(osMemoryPoolId_t mp_id)
* @brief Get maximum number of memory blocks in a Memory Pool.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @return maximum number of memory blocks or 0 in case of an error.
*/
uint32_t osMemoryPoolGetCapacity(osMemoryPoolId_t mp_id)
{
uint32_t capacity;
if (IsIrqMode() || IsIrqMasked()) {
capacity = MemoryPoolGetCapacity(mp_id);
}
else {
capacity = svc_1((uint32_t)mp_id, (uint32_t)MemoryPoolGetCapacity);
}
return (capacity);
}
/**
* @fn uint32_t osMemoryPoolGetBlockSize(osMemoryPoolId_t mp_id)
* @brief Get memory block size in a Memory Pool.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @return memory block size in bytes or 0 in case of an error.
*/
uint32_t osMemoryPoolGetBlockSize(osMemoryPoolId_t mp_id)
{
uint32_t block_size;
if (IsIrqMode() || IsIrqMasked()) {
block_size = MemoryPoolGetBlockSize(mp_id);
}
else {
block_size = svc_1((uint32_t)mp_id, (uint32_t)MemoryPoolGetBlockSize);
}
return (block_size);
}
/**
* @fn uint32_t osMemoryPoolGetCount(osMemoryPoolId_t mp_id)
* @brief Get number of memory blocks used in a Memory Pool.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @return number of memory blocks used or 0 in case of an error.
*/
uint32_t osMemoryPoolGetCount(osMemoryPoolId_t mp_id)
{
uint32_t count;
if (IsIrqMode() || IsIrqMasked()) {
count = MemoryPoolGetCount(mp_id);
}
else {
count = svc_1((uint32_t)mp_id, (uint32_t)MemoryPoolGetCount);
}
return (count);
}
/**
* @fn uint32_t osMemoryPoolGetSpace(osMemoryPoolId_t mp_id)
* @brief Get number of memory blocks available in a Memory Pool.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @return number of memory blocks available or 0 in case of an error.
*/
uint32_t osMemoryPoolGetSpace(osMemoryPoolId_t mp_id)
{
uint32_t space;
if (IsIrqMode() || IsIrqMasked()) {
space = MemoryPoolGetSpace(mp_id);
}
else {
space = svc_1((uint32_t)mp_id, (uint32_t)MemoryPoolGetSpace);
}
return (space);
}
/**
* @fn osStatus_t osMemoryPoolDelete(osMemoryPoolId_t mp_id)
* @brief Delete a Memory Pool object.
* @param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osMemoryPoolDelete(osMemoryPoolId_t mp_id)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_1((uint32_t)mp_id, (uint32_t)MemoryPoolDelete);
}
return (status);
}
/*------------------------------ End of file ---------------------------------*/
|
koshkin-sergey/ukernel
|
examples/basic/arch/cortex-m/stm32f0-discovery/src/stm32f0_example_basic.c
|
<filename>examples/basic/arch/cortex-m/stm32f0-discovery/src/stm32f0_example_basic.c
/*
* Copyright (C) 2015 <NAME> <<EMAIL>>
* All rights reserved
*
* File Name : tn_stm32f0_example_basic.c
* Description: tn_stm32f0_example_basic
*/
/*******************************************************************************
* includes
******************************************************************************/
#include "ukernel.h"
#include "stm32f0xx.h"
#include "system_stm32f0xx.h"
/*******************************************************************************
* external declarations
******************************************************************************/
/*******************************************************************************
* defines and macros (scope: module-local)
******************************************************************************/
#define HZ 1000
#define TASK_A_STK_SIZE osStackSizeMin
#define TASK_B_STK_SIZE osStackSizeMin
#define TASK_A_PRIORITY 1
#define TASK_B_PRIORITY 2
/*******************************************************************************
* typedefs and structures (scope: module-local)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-exported)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-local)
******************************************************************************/
static osTask_t task_A;
static osTask_t task_B;
osStack_t task_A_stack[TASK_A_STK_SIZE];
osStack_t task_B_stack[TASK_B_STK_SIZE];
static volatile bool done_a;
/*******************************************************************************
* function prototypes (scope: module-local)
******************************************************************************/
/*******************************************************************************
* function implementations (scope: module-local)
******************************************************************************/
/*-----------------------------------------------------------------------------*
* Название :
* Описание :
* Параметры:
* Результат:
*----------------------------------------------------------------------------*/
static void task_A_func(void *param)
{
done_a = false;
while (done_a != true) {
GPIOC->ODR ^= (1UL << 8);
osTaskSleep(100);
}
GPIOC->ODR &= ~(1UL << 8);
}
/*-----------------------------------------------------------------------------*
* Название :
* Описание :
* Параметры:
* Результат:
*----------------------------------------------------------------------------*/
static void task_B_func(void *param)
{
for (;;) {
GPIOC->ODR ^= (1UL << 9);
if ((GPIOC->ODR & (1UL << 9)) != 0)
done_a = true;
else
osTaskActivate(&task_A);
osTaskSleep(2000);
}
}
/*-----------------------------------------------------------------------------*
Название : app_init
Описание : Инициализация задач, очередей и др. объектов ОС
Параметры: Нет
Результат: Нет
*-----------------------------------------------------------------------------*/
static void app_init(void)
{
/* Инициализируем железо */
RCC->AHBENR |= RCC_AHBENR_GPIOCEN;
GPIOC->MODER |= (GPIO_MODER_MODER8_0 | GPIO_MODER_MODER9_0);
osTaskCreate(
&task_A, // TCB задачи
task_A_func, // Функция задачи
TASK_A_PRIORITY, // Приоритет задачи
&(task_A_stack[TASK_A_STK_SIZE-1]),
TASK_A_STK_SIZE, // Размер стека (в int, не в байтах)
NULL, // Параметры функции задачи
osTaskStartOnCreating // Параметр создания задачи
);
osTaskCreate(
&task_B, // TCB задачи
task_B_func, // Функция задачи
TASK_B_PRIORITY, // Приоритет задачи
&(task_B_stack[TASK_B_STK_SIZE-1]),
TASK_B_STK_SIZE, // Размер стека (в int, не в байтах)
NULL, // Параметры функции задачи
osTaskStartOnCreating // Параметр создания задачи
);
}
/*******************************************************************************
* function implementations (scope: module-exported)
******************************************************************************/
/*-----------------------------------------------------------------------------*
Название : main
Описание : Start RTOS
Параметры: Нет
Результат: Нет
*-----------------------------------------------------------------------------*/
int main(void)
{
TN_OPTIONS tn_opt;
/* Старт операционной системы */
tn_opt.app_init = app_init;
tn_opt.freq_timer = HZ;
osKernelStart(&tn_opt);
return (-1);
}
/*-----------------------------------------------------------------------------*
* Название : osSysTickInit
* Описание : Конфигурирует и включает системный таймер в системе.
* Параметры: hz - Частота системного таймера.
* Результат: Нет
*----------------------------------------------------------------------------*/
void osSysTickInit(unsigned int hz)
{
/* Включаем прерывание системного таймера именно здесь, после инициализации
всех сервисов RTOS */
SystemCoreClockUpdate();
SysTick_Config(SystemCoreClock/hz);
}
/*-----------------------------------------------------------------------------*
Название : SysTick_Handler
Описание : Обработчик прерывания системного таймера вызывается каждую 1 мс.
Используется для генерации тиков операционной и графической систем.
Параметры: Нет
Результат: Нет
*-----------------------------------------------------------------------------*/
void SysTick_Handler(void)
{
osTimerHandle();
}
/* ----------------------------- End of file ---------------------------------*/
|
koshkin-sergey/ukernel
|
src/include/arch.h
|
<reponame>koshkin-sergey/ukernel
/*
* Copyright (C) 2017-2019 <NAME> <<EMAIL>>
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Project: uKernel real-time kernel
*/
#ifndef _ARCH_H_
#define _ARCH_H_
/*******************************************************************************
* includes
******************************************************************************/
#include <stdbool.h>
#include "cmsis_compiler.h"
/*******************************************************************************
* defines and macros (scope: module-local)
******************************************************************************/
/* following defines should be used for structure members */
#define __IM volatile const /*! Defines 'read only' structure member permissions */
#define __OM volatile /*! Defines 'write only' structure member permissions */
#define __IOM volatile /*! Defines 'read / write' structure member permissions */
/* Memory mapping of Core Hardware */
#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */
#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */
#define SCB ((SCB_Type *)SCB_BASE) /*!< SCB configuration struct */
/* PendSV bit in the Interrupt Control State Register */
#define PENDSVSET (0x10000000U)
#define FILL_STACK_VALUE (0xFFFFFFFFU)
#if ((defined(__ARM_ARCH_7M__) && (__ARM_ARCH_7M__ != 0)) || \
(defined(__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ != 0)) || \
(defined(__ARM_ARCH_8M_MAIN__) && (__ARM_ARCH_8M_MAIN__ != 0)))
#if defined(__CC_ARM)
#define SVC_INDIRECT_REG r12
#elif defined(__ICCARM__)
#define SVC_FUNC(f) __asm ( \
"mov r12,%0\n" \
:: "r"(f): "r12" \
)
#else
#define SVC_INDIRECT_REG "r12"
#endif
#elif ((defined(__ARM_ARCH_6M__) && (__ARM_ARCH_6M__ != 0)) || \
(defined(__ARM_ARCH_8M_BASE__) && (__ARM_ARCH_8M_BASE__ != 0)))
#if defined(__CC_ARM)
#define SVC_INDIRECT_REG r7
#elif defined(__ICCARM__)
#define SVC_FUNC(f) __asm ( \
"mov r7,%0\n" \
:: "r"(f): "r7" \
)
#else
#define SVC_INDIRECT_REG "r7"
#endif
#endif
#if ((defined(__ARM_ARCH_7M__) && (__ARM_ARCH_7M__ != 0)) || \
(defined(__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ != 0)) || \
(defined(__ARM_ARCH_8M_MAIN__) && (__ARM_ARCH_8M_MAIN__ != 0)))
#define BEGIN_CRITICAL_SECTION uint32_t basepri = __get_BASEPRI(); \
__set_BASEPRI(osInfo.base_priority);
#define END_CRITICAL_SECTION __set_BASEPRI(basepri);
#elif ((defined(__ARM_ARCH_6M__) && (__ARM_ARCH_6M__ != 0)) || \
(defined(__ARM_ARCH_8M_BASE__) && (__ARM_ARCH_8M_BASE__ != 0)))
#define BEGIN_CRITICAL_SECTION uint32_t primask = __get_PRIMASK(); \
__disable_irq();
#define END_CRITICAL_SECTION __set_PRIMASK(primask);
#endif
#ifndef BEGIN_CRITICAL_SECTION
#define BEGIN_CRITICAL_SECTION
#endif
#ifndef END_CRITICAL_SECTION
#define END_CRITICAL_SECTION
#endif
/*******************************************************************************
* typedefs and structures (scope: module-local)
******************************************************************************/
#if ((defined(__ARM_ARCH_7M__) && (__ARM_ARCH_7M__ != 0)) || \
(defined(__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ != 0)) || \
(defined(__ARM_ARCH_8M_MAIN__) && (__ARM_ARCH_8M_MAIN__ != 0)))
/**
\brief Structure type to access the System Control Block (SCB).
*/
typedef struct
{
__IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */
__IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */
__IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */
__IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */
__IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */
__IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */
__IOM uint8_t SHP[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */
__IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */
__IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */
__IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */
__IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */
__IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */
__IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */
__IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */
__IM uint32_t PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */
__IM uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */
__IM uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */
__IM uint32_t MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */
__IM uint32_t ISAR[5U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */
uint32_t RESERVED0[5U];
__IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */
} SCB_Type;
#elif ((defined(__ARM_ARCH_6M__) && (__ARM_ARCH_6M__ != 0)) || \
(defined(__ARM_ARCH_8M_BASE__) && (__ARM_ARCH_8M_BASE__ != 0)))
/**
\brief Structure type to access the System Control Block (SCB).
*/
typedef struct
{
__IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */
__IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */
uint32_t RESERVED0;
__IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */
__IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */
__IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */
uint32_t RESERVED1;
__IOM uint32_t SHP[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */
__IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */
} SCB_Type;
#endif
/*******************************************************************************
* exported variables
******************************************************************************/
/*******************************************************************************
* exported function prototypes
******************************************************************************/
/**
* @fn bool IsIrqMode(void)
* @brief Check if in IRQ Mode
* @return true=IRQ, false=thread
*/
__STATIC_INLINE
bool IsIrqMode(void)
{
return (__get_IPSR() != 0U);
}
/**
* @fn bool IsIrqMasked(void)
* @brief Check if IRQ is Masked
* @return true=masked, false=not masked
*/
__STATIC_INLINE
bool IsIrqMasked(void)
{
#if ((defined(__ARM_ARCH_7M__) && (__ARM_ARCH_7M__ != 0)) || \
(defined(__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ != 0)) || \
(defined(__ARM_ARCH_8M_MAIN__) && (__ARM_ARCH_8M_MAIN__ != 0)))
return ((__get_PRIMASK() != 0U) || (__get_BASEPRI() != 0U));
#else
return (__get_PRIMASK() != 0U);
#endif
}
__STATIC_INLINE
uint32_t SystemIsrInit(void)
{
#if ((defined(__ARM_ARCH_7M__) && (__ARM_ARCH_7M__ != 0)) || \
(defined(__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ != 0)) || \
(defined(__ARM_ARCH_8M_MAIN__) && (__ARM_ARCH_8M_MAIN__ != 0)))
uint32_t p, n;
SCB->SHP[10] = 0xFFU;
n = 32U - (uint32_t)__CLZ(~(SCB->SHP[10] | 0xFFFFFF00U));
p = ((SCB->AIRCR >> 8) & 0x07U);
if (p >= n) {
n = p + 1U;
}
SCB->SHP[7] = (uint8_t)(0xFEU << n);
return (n);
#elif ((defined(__ARM_ARCH_6M__) && (__ARM_ARCH_6M__ != 0)) || \
(defined(__ARM_ARCH_8M_BASE__) && (__ARM_ARCH_8M_BASE__ != 0)))
uint32_t n;
SCB->SHP[1] |= 0x00FF0000U;
n = SCB->SHP[1];
SCB->SHP[0] |= (n << (8+1)) & 0xFC000000U;
return (0U);
#else
return (0U);
#endif
}
__STATIC_INLINE
void archSwitchContextRequest(void)
{
SCB->ICSR = PENDSVSET;
}
__STATIC_FORCEINLINE
uint32_t svc_0(uint32_t func)
{
#if defined(__CC_ARM)
register uint32_t __r0 __ASM("r0");
__ASM {
SVC 0, {SVC_INDIRECT_REG=func}, {__r0=r0}
}
return (__r0);
#elif defined(__ICCARM__)
_Pragma("swi_number = 0") __swi uint32_t __svc_0(void);
SVC_FUNC(func);
return __svc_0();
#else // !(defined(__CC_ARM) || defined(__ICCARM__))
register uint32_t __rf __ASM(SVC_INDIRECT_REG) = func;
register uint32_t __r0 __ASM("r0");
__ASM volatile ("svc 0\n"
:"=r"(__r0)
:"r"(__rf)
);
return (__r0);
#endif
}
__STATIC_FORCEINLINE
uint32_t svc_1(uint32_t param1, uint32_t func)
{
#if defined(__CC_ARM)
register uint32_t __r0 __ASM("r0");
__ASM {
SVC 0, {SVC_INDIRECT_REG=func, r0=param1}, {__r0=r0}
}
return (__r0);
#elif defined(__ICCARM__)
_Pragma("swi_number = 0") __swi uint32_t __svc_1(uint32_t);
SVC_FUNC(func);
return __svc_1(param1);
#else // !(defined(__CC_ARM) || defined(__ICCARM__))
register uint32_t __rf __ASM(SVC_INDIRECT_REG) = func;
register uint32_t __r0 __ASM("r0") = param1;
__ASM volatile ("svc 0\n"
:"=r"(__r0)
:"r"(__rf),"r"(__r0)
);
return (__r0);
#endif
}
__STATIC_FORCEINLINE
uint32_t svc_2(uint32_t param1, uint32_t param2, uint32_t func)
{
#if defined(__CC_ARM)
register uint32_t __r0 __ASM("r0");
__ASM {
SVC 0, {SVC_INDIRECT_REG=func, r0=param1, r1=param2}, {__r0=r0}
}
return (__r0);
#elif defined(__ICCARM__)
_Pragma("swi_number = 0") __swi uint32_t __svc_2(uint32_t, uint32_t);
SVC_FUNC(func);
return __svc_2(param1, param2);
#else // !(defined(__CC_ARM) || defined(__ICCARM__))
register uint32_t __rf __ASM(SVC_INDIRECT_REG) = func;
register uint32_t __r0 __ASM("r0") = param1;
register uint32_t __r1 __ASM("r1") = param2;
__ASM volatile ("svc 0\n"
:"=r"(__r0)
:"r"(__rf),"r"(__r0),"r"(__r1)
);
return (__r0);
#endif
}
__STATIC_FORCEINLINE
uint32_t svc_3(uint32_t param1, uint32_t param2, uint32_t param3, uint32_t func)
{
#if defined(__CC_ARM)
register uint32_t __r0 __ASM("r0");
__ASM {
SVC 0, {SVC_INDIRECT_REG=func, r0=param1, r1=param2, r2=param3}, {__r0=r0}
}
return (__r0);
#elif defined(__ICCARM__)
_Pragma("swi_number = 0") __swi uint32_t __svc_3(uint32_t, uint32_t, uint32_t);
SVC_FUNC(func);
return __svc_3(param1, param2, param3);
#else // !(defined(__CC_ARM) || defined(__ICCARM__))
register uint32_t __rf __ASM(SVC_INDIRECT_REG) = func;
register uint32_t __r0 __ASM("r0") = param1;
register uint32_t __r1 __ASM("r1") = param2;
register uint32_t __r2 __ASM("r2") = param3;
__ASM volatile ("svc 0\n"
:"=r"(__r0)
:"r"(__rf),"r"(__r0),"r"(__r1),"r"(__r2)
);
return (__r0);
#endif
}
__STATIC_FORCEINLINE
uint32_t svc_4(uint32_t param1, uint32_t param2, uint32_t param3, uint32_t param4, uint32_t func)
{
#if defined(__CC_ARM)
register uint32_t __r0 __ASM("r0");
__ASM {
SVC 0, {SVC_INDIRECT_REG=func, r0=param1, r1=param2, r2=param3, r3=param4}, {__r0=r0}
}
return (__r0);
#elif defined(__ICCARM__)
_Pragma("swi_number = 0") __swi uint32_t __svc_4(uint32_t, uint32_t, uint32_t, uint32_t);
SVC_FUNC(func);
return __svc_4(param1, param2, param3, param4);
#else // !(defined(__CC_ARM) || defined(__ICCARM__))
register uint32_t __rf __ASM(SVC_INDIRECT_REG) = func;
register uint32_t __r0 __ASM("r0") = param1;
register uint32_t __r1 __ASM("r1") = param2;
register uint32_t __r2 __ASM("r2") = param3;
register uint32_t __r3 __ASM("r3") = param4;
__ASM volatile ("svc 0\n"
:"=r"(__r0)
:"r"(__rf),"r"(__r0),"r"(__r1),"r"(__r2),"r"(__r3)
);
return (__r0);
#endif
}
#endif // _ARCH_H_
/*------------------------------ End of file ---------------------------------*/
|
koshkin-sergey/ukernel
|
src/Config/RTOS_Config.h
|
<filename>src/Config/RTOS_Config.h
/*
* Copyright (C) 2019 <NAME> <<EMAIL>>
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Project: uKernel real-time kernel
* Title: uKernel Configuration definitions
*/
#ifndef _RTOS_CONFIG_H_
#define _RTOS_CONFIG_H_
//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
// <h>System Configuration
// =======================
// <o>Kernel Tick Frequency [Hz] <1-1000000>
// <i> Defines base time unit for delays and timeouts.
// <i> Default: 1000 (1ms tick)
#ifndef OS_TICK_FREQ
#define OS_TICK_FREQ 1000
#endif
// <e>Round-Robin Thread switching
// <i> Enables Round-Robin Thread switching.
#ifndef OS_ROBIN_ENABLE
#define OS_ROBIN_ENABLE 0
#endif
// <o>Round-Robin Timeout <1-1000>
// <i> Defines how many ticks a thread will execute before a thread switch.
// <i> Default: 5
#ifndef OS_ROBIN_TIMEOUT
#define OS_ROBIN_TIMEOUT 5
#endif
// </e>
// <o>Maximum priority of interrupts <1-255>
// <i> Defines the maximum priority of interrupts from which ISR safe API functions can be called.
// <i> Should be always greater than 0.
#ifndef MAX_API_INT_PRIO
#define MAX_API_INT_PRIO 1
#endif
// </h>
// <h>Thread Configuration
// =======================
// <o>Default Thread Stack size [bytes] <96-1073741824:8>
// <i> Defines stack size for threads with zero stack size specified.
// <i> Default: 256
#ifndef OS_STACK_SIZE
#define OS_STACK_SIZE 256
#endif
// <o>Idle Thread Stack size [bytes] <72-1073741824:8>
// <i> Defines stack size for Idle thread.
// <i> Default: 256
#ifndef OS_IDLE_THREAD_STACK_SIZE
#define OS_IDLE_THREAD_STACK_SIZE 256
#endif
// <o>Idle Thread TrustZone Module Identifier
// <i> Defines TrustZone Thread Context Management Identifier.
// <i> Applies only to cores with TrustZone technology.
// <i> Default: 0 (not used)
#ifndef OS_IDLE_THREAD_TZ_MOD_ID
#define OS_IDLE_THREAD_TZ_MOD_ID 0
#endif
// <q>Stack overrun checking
// <i> Enables stack overrun check at thread switch.
// <i> Enabling this option increases slightly the execution time of a thread switch.
#ifndef OS_STACK_CHECK
#define OS_STACK_CHECK 0
#endif
// <q>Stack usage watermark
// <i> Initializes thread stack with watermark pattern for analyzing stack usage.
// <i> Enabling this option increases significantly the execution time of thread creation.
#ifndef OS_STACK_WATERMARK
#define OS_STACK_WATERMARK 0
#endif
// <o>Processor mode for Thread execution
// <0=> Unprivileged mode
// <1=> Privileged mode
// <i> Default: Privileged mode
#ifndef OS_PRIVILEGE_MODE
#define OS_PRIVILEGE_MODE 1
#endif
// </h>
// <h>Timer Configuration
// ======================
// <o>Timer Thread Priority
// <2=> Low <7=> Below Normal <12=> Normal <17=> Above Normal <22=> High <27=> Realtime
// <i> Defines priority for timer thread
// <i> Default: High
#ifndef OS_TIMER_THREAD_PRIO
#define OS_TIMER_THREAD_PRIO 22
#endif
// <o>Timer Thread Stack size [bytes] <0-1073741824:8>
// <i> Defines stack size for Timer thread.
// <i> Default: 256
#ifndef OS_TIMER_THREAD_STACK_SIZE
#define OS_TIMER_THREAD_STACK_SIZE 256
#endif
// <o>Timer Thread TrustZone Module Identifier
// <i> Defines TrustZone Thread Context Management Identifier.
// <i> Applies only to cores with TrustZone technology.
// <i> Default: 0 (not used)
#ifndef OS_TIMER_THREAD_TZ_MOD_ID
#define OS_TIMER_THREAD_TZ_MOD_ID 0
#endif
// </h>
//------------- <<< end of configuration section >>> ---------------------------
#endif /* _RTOS_CONFIG_H_ */
/* ----------------------------- End of file ---------------------------------*/
|
koshkin-sergey/ukernel
|
src/kernel/message_que.c
|
/*
* Copyright (C) 2013-2019 <NAME> <<EMAIL>>
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Project: uKernel real-time kernel
*/
/**
* @file
*
* Kernel system routines.
*
*/
/*******************************************************************************
* includes
******************************************************************************/
#include <string.h>
#include "os_lib.h"
/*******************************************************************************
* external declarations
******************************************************************************/
/*******************************************************************************
* defines and macros (scope: module-local)
******************************************************************************/
/*******************************************************************************
* typedefs and structures (scope: module-local)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-exported)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-local)
******************************************************************************/
/*******************************************************************************
* function prototypes (scope: module-local)
******************************************************************************/
/*******************************************************************************
* function implementations (scope: module-local)
******************************************************************************/
static osMessage_t *MessagePut(osMessageQueue_t *mq, const void *msg_ptr, uint8_t msg_prio)
{
queue_t *que;
osMessage_t *msg;
/* Try to allocate memory */
msg = libMemoryPoolAlloc(&mq->mp_info);
if (msg != NULL) {
/* Copy Message */
memcpy(&msg[1], msg_ptr, mq->msg_size);
msg->id = ID_MESSAGE;
msg->flags = 0U;
msg->priority = msg_prio;
/* Put Message into Queue */
que = &mq->msg_queue;
if (msg_prio != 0U) {
for (que = que->next; que != &mq->msg_queue; que = que->next) {
if (GetMessageByQueue(que)->priority < msg_prio) {
break;
}
}
}
QueueAppend(que, &msg->msg_que);
mq->msg_count++;
}
return (msg);
}
static osMessage_t *MessageGet(osMessageQueue_t *mq, void *msg_ptr, uint8_t *msg_prio)
{
queue_t *que;
osMessage_t *msg;
que = &mq->msg_queue;
if (!isQueueEmpty(que)) {
msg = GetMessageByQueue(QueueExtract(que));
/* Copy Message */
memcpy(msg_ptr, &msg[1], mq->msg_size);
if (msg_prio != NULL) {
*msg_prio = msg->priority;
}
/* Free memory */
msg->id = ID_INVALID;
libMemoryPoolFree(&mq->mp_info, msg);
mq->msg_count--;
}
else {
msg = NULL;
}
return (msg);
}
static osMessageQueueId_t MessageQueueNew(uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr)
{
osMessageQueue_t *mq;
void *mq_mem;
uint32_t mq_size;
uint32_t block_size;
/* Check parameters */
if ((msg_count == 0U) || (msg_size == 0U) || (attr == NULL)) {
return (NULL);
}
mq = attr->cb_mem;
mq_mem = attr->mq_mem;
mq_size = attr->mq_size;
block_size = ((msg_size + 3U) & ~3UL) + sizeof(osMessage_t);
/* Check parameters */
if (((__CLZ(msg_count) + __CLZ(block_size)) < 32U) ||
(mq == NULL) || (((uint32_t)mq & 3U) != 0U) || (attr->cb_size < sizeof(osMessageQueue_t)) ||
(mq_mem == NULL) || (((uint32_t)mq_mem & 3U) != 0U) || (mq_size < (msg_count * block_size))) {
return (NULL);
}
/* Initialize control block */
mq->id = ID_MESSAGE_QUEUE;
mq->flags = 0U;
mq->name = attr->name;
mq->msg_size = msg_size;
mq->msg_count = 0U;
QueueReset(&mq->wait_put_queue);
QueueReset(&mq->wait_get_queue);
QueueReset(&mq->msg_queue);
libMemoryPoolInit(msg_count, block_size, mq_mem, &mq->mp_info);
return (mq);
}
static const char *MessageQueueGetName(osMessageQueueId_t mq_id)
{
osMessageQueue_t *mq = mq_id;
/* Check parameters */
if ((mq == NULL) || (mq->id != ID_MESSAGE_QUEUE)) {
return (NULL);
}
return (mq->name);
}
static osStatus_t MessageQueuePut(osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout)
{
osMessageQueue_t *mq = mq_id;
osMessage_t *msg;
osThread_t *thread;
winfo_msgque_t *winfo;
osStatus_t status;
/* Check parameters */
if ((mq == NULL) || (mq->id != ID_MESSAGE_QUEUE) || (msg_ptr == NULL)) {
return (osErrorParameter);
}
BEGIN_CRITICAL_SECTION
/* Check if Thread is waiting to receive a Message */
if (!isQueueEmpty(&mq->wait_get_queue)) {
/* Wakeup waiting Thread with highest Priority */
thread = GetThreadByQueue(mq->wait_get_queue.next);
libThreadWaitExit(thread, (uint32_t)osOK, DISPATCH_YES);
winfo = &thread->winfo.msgque;
memcpy((void *)winfo->msg, msg_ptr, mq->msg_size);
if ((uint8_t *)winfo->msg_prio != NULL) {
*((uint8_t *)winfo->msg_prio) = msg_prio;
}
status = osOK;
}
else {
/* Try to put Message into Queue */
msg = MessagePut(mq, msg_ptr, msg_prio);
if (msg != NULL) {
status = osOK;
}
else {
/* No memory available */
if (timeout != 0U) {
/* Suspend current Thread */
thread = ThreadGetRunning();
if (libThreadWaitEnter(thread, &mq->wait_put_queue, timeout)) {
winfo = &thread->winfo.msgque;
winfo->msg = (uint32_t)msg_ptr;
winfo->msg_prio = (uint32_t)msg_prio;
status = (osStatus_t)osThreadWait;
}
else {
status = osErrorTimeout;
}
}
else {
status = osErrorResource;
}
}
}
END_CRITICAL_SECTION
return (status);
}
static osStatus_t MessageQueueGet(osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout)
{
osMessageQueue_t *mq = mq_id;
osMessage_t *msg;
osThread_t *thread;
winfo_msgque_t *winfo;
osStatus_t status;
/* Check parameters */
if ((mq == NULL) || (mq->id != ID_MESSAGE_QUEUE) || (msg_ptr == NULL)) {
return (osErrorParameter);
}
BEGIN_CRITICAL_SECTION
/* Get Message from Queue */
msg = MessageGet(mq, msg_ptr, msg_prio);
if (msg != NULL) {
/* Check if Thread is waiting to send a Message */
if (!isQueueEmpty(&mq->wait_put_queue)) {
/* Get waiting Thread with highest Priority */
thread = GetThreadByQueue(mq->wait_put_queue.next);
winfo = &thread->winfo.msgque;
/* Try to put Message into Queue */
msg = MessagePut(mq, (const void *)winfo->msg, (uint8_t)winfo->msg_prio);
if (msg != NULL) {
/* Wakeup waiting Thread with highest Priority */
libThreadWaitExit(thread, (uint32_t)osOK, DISPATCH_YES);
}
}
status = osOK;
}
else {
/* No Message available */
if (timeout != 0U) {
/* Suspend current Thread */
thread = ThreadGetRunning();
if (libThreadWaitEnter(thread, &mq->wait_get_queue, timeout)) {
winfo = &thread->winfo.msgque;
winfo->msg = (uint32_t)msg_ptr;
winfo->msg_prio = (uint32_t)msg_prio;
status = (osStatus_t)osThreadWait;
}
else {
status = osErrorTimeout;
}
}
else {
status = osErrorResource;
}
}
END_CRITICAL_SECTION
return (status);
}
static uint32_t MessageQueueGetCapacity(osMessageQueueId_t mq_id)
{
osMessageQueue_t *mq = mq_id;
/* Check parameters */
if ((mq == NULL) || (mq->id != ID_MESSAGE_QUEUE)) {
return (0U);
}
return (mq->mp_info.max_blocks);
}
static uint32_t MessageQueueGetMsgSize(osMessageQueueId_t mq_id)
{
osMessageQueue_t *mq = mq_id;
/* Check parameters */
if ((mq == NULL) || (mq->id != ID_MESSAGE_QUEUE)) {
return (0U);
}
return (mq->msg_size);
}
static uint32_t MessageQueueGetCount(osMessageQueueId_t mq_id)
{
osMessageQueue_t *mq = mq_id;
/* Check parameters */
if ((mq == NULL) || (mq->id != ID_MESSAGE_QUEUE)) {
return (0U);
}
return (mq->msg_count);
}
static uint32_t MessageQueueGetSpace(osMessageQueueId_t mq_id)
{
osMessageQueue_t *mq = mq_id;
/* Check parameters */
if ((mq == NULL) || (mq->id != ID_MESSAGE_QUEUE)) {
return (0U);
}
return (mq->mp_info.max_blocks - mq->msg_count);
}
static osStatus_t MessageQueueReset(osMessageQueueId_t mq_id)
{
osMessageQueue_t *mq = mq_id;
osMessage_t *msg;
osThread_t *thread;
winfo_msgque_t *winfo;
/* Check parameters */
if ((mq == NULL) || (mq->id != ID_MESSAGE_QUEUE)) {
return (osErrorParameter);
}
BEGIN_CRITICAL_SECTION
/* Remove Messages from Queue */
mq->msg_count = 0U;
QueueReset(&mq->msg_queue);
libMemoryPoolReset(&mq->mp_info);
/* Check if Threads are waiting to send Messages */
if (!isQueueEmpty(&mq->wait_put_queue)) {
do {
/* Get waiting Thread with highest Priority */
thread = GetThreadByQueue(mq->wait_put_queue.next);
winfo = &thread->winfo.msgque;
/* Try to put Message into Queue */
msg = MessagePut(mq, (const void *)winfo->msg, (uint8_t)winfo->msg_prio);
if (msg == NULL) {
break;
}
/* Wakeup waiting Thread with highest Priority */
libThreadWaitExit(thread, (uint32_t)osOK, DISPATCH_NO);
} while (!isQueueEmpty(&mq->wait_put_queue));
libThreadDispatch(NULL);
}
END_CRITICAL_SECTION
return (osOK);
}
static osStatus_t MessageQueueDelete(osMessageQueueId_t mq_id)
{
osMessageQueue_t *mq = mq_id;
/* Check parameters */
if ((mq == NULL) || (mq->id != ID_MESSAGE_QUEUE)) {
return (osErrorParameter);
}
/* Unblock waiting threads */
libThreadWaitDelete(&mq->wait_put_queue);
libThreadWaitDelete(&mq->wait_get_queue);
/* Mark object as invalid */
mq->id = ID_INVALID;
return (osOK);
}
/*******************************************************************************
* Public API
******************************************************************************/
/**
* @fn osMessageQueueId_t osMessageQueueNew(uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr)
* @brief Create and Initialize a Message Queue object.
* @param[in] msg_count maximum number of messages in queue.
* @param[in] msg_size maximum message size in bytes.
* @param[in] attr message queue attributes.
* @return message queue ID for reference by other functions or NULL in case of error.
*/
osMessageQueueId_t osMessageQueueNew(uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr)
{
osMessageQueueId_t mq_id;
if (IsIrqMode() || IsIrqMasked()) {
mq_id = NULL;
}
else {
mq_id = (osMessageQueueId_t)svc_3(msg_count, msg_size, (uint32_t)attr, (uint32_t)MessageQueueNew);
}
return (mq_id);
}
/**
* @fn const char *osMessageQueueGetName(osMessageQueueId_t mq_id)
* @brief Get name of a Message Queue object.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @return name as null-terminated string or NULL in case of an error.
*/
const char *osMessageQueueGetName(osMessageQueueId_t mq_id)
{
const char *name;
if (IsIrqMode() || IsIrqMasked()) {
name = NULL;
}
else {
name = (const char *)svc_1((uint32_t)mq_id, (uint32_t)MessageQueueGetName);
}
return (name);
}
/**
* @fn osStatus_t osMessageQueuePut(osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout)
* @brief Put a Message into a Queue or timeout if Queue is full.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @param[in] msg_ptr pointer to buffer with message to put into a queue.
* @param[in] msg_prio message priority.
* @param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osMessageQueuePut(osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
if (timeout != 0U) {
status = osErrorParameter;
}
else {
status = MessageQueuePut(mq_id, msg_ptr, msg_prio, timeout);
}
}
else {
status = (osStatus_t)svc_4((uint32_t)mq_id, (uint32_t)msg_ptr, msg_prio, timeout, (uint32_t)MessageQueuePut);
if (status == osThreadWait) {
status = (osStatus_t)ThreadGetRunning()->winfo.ret_val;
}
}
return (status);
}
/**
* @fn osStatus_t osMessageQueueGet(osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout)
* @brief Get a Message from a Queue or timeout if Queue is empty.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @param[out] msg_ptr pointer to buffer for message to get from a queue.
* @param[out] msg_prio pointer to buffer for message priority or NULL.
* @param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osMessageQueueGet(osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
if (timeout != 0U) {
status = osErrorParameter;
}
else {
status = MessageQueueGet(mq_id, msg_ptr, msg_prio, timeout);
}
}
else {
status = (osStatus_t)svc_4((uint32_t)mq_id, (uint32_t)msg_ptr, (uint32_t)msg_prio, timeout, (uint32_t)MessageQueueGet);
if (status == osThreadWait) {
status = (osStatus_t)ThreadGetRunning()->winfo.ret_val;
}
}
return (status);
}
/**
* @fn uint32_t osMessageQueueGetCapacity(osMessageQueueId_t mq_id)
* @brief Get maximum number of messages in a Message Queue.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @return maximum number of messages or 0 in case of an error.
*/
uint32_t osMessageQueueGetCapacity(osMessageQueueId_t mq_id)
{
uint32_t capacity;
if (IsIrqMode() || IsIrqMasked()) {
capacity = MessageQueueGetCapacity(mq_id);
}
else {
capacity = svc_1((uint32_t)mq_id, (uint32_t)MessageQueueGetCapacity);
}
return (capacity);
}
/**
* @fn uint32_t osMessageQueueGetMsgSize(osMessageQueueId_t mq_id)
* @brief Get maximum message size in bytes.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @return maximum message size in bytes or 0 in case of an error.
*/
uint32_t osMessageQueueGetMsgSize(osMessageQueueId_t mq_id)
{
uint32_t msg_size;
if (IsIrqMode() || IsIrqMasked()) {
msg_size = MessageQueueGetMsgSize(mq_id);
}
else {
msg_size = svc_1((uint32_t)mq_id, (uint32_t)MessageQueueGetMsgSize);
}
return (msg_size);
}
/**
* @fn uint32_t osMessageQueueGetCount(osMessageQueueId_t mq_id)
* @brief Get number of queued messages in a Message Queue.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @return number of queued messages or 0 in case of an error.
*/
uint32_t osMessageQueueGetCount(osMessageQueueId_t mq_id)
{
uint32_t count;
if (IsIrqMode() || IsIrqMasked()) {
count = MessageQueueGetCount(mq_id);
}
else {
count = svc_1((uint32_t)mq_id, (uint32_t)MessageQueueGetCount);
}
return (count);
}
/**
* @fn uint32_t osMessageQueueGetSpace(osMessageQueueId_t mq_id)
* @brief Get number of available slots for messages in a Message Queue.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @return number of available slots for messages or 0 in case of an error.
*/
uint32_t osMessageQueueGetSpace(osMessageQueueId_t mq_id)
{
uint32_t space;
if (IsIrqMode() || IsIrqMasked()) {
space = MessageQueueGetSpace(mq_id);
}
else {
space = svc_1((uint32_t)mq_id, (uint32_t)MessageQueueGetSpace);
}
return (space);
}
/**
* @fn osStatus_t osMessageQueueReset(osMessageQueueId_t mq_id)
* @brief Reset a Message Queue to initial empty state.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osMessageQueueReset(osMessageQueueId_t mq_id)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_1((uint32_t)mq_id, (uint32_t)MessageQueueReset);
}
return (status);
}
/**
* @fn osStatus_t osMessageQueueDelete(osMessageQueueId_t mq_id)
* @brief Delete a Message Queue object.
* @param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osMessageQueueDelete(osMessageQueueId_t mq_id)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_1((uint32_t)mq_id, (uint32_t)MessageQueueDelete);
}
return (status);
}
/* ----------------------------- End of file ---------------------------------*/
|
koshkin-sergey/ukernel
|
examples/basic/arch/cortex-m/eval_aducm320/src/init/system_ADuCM320.c
|
<reponame>koshkin-sergey/ukernel
/**
@file system_ADUCM320.c
@brief: CMSIS Device System Source File for
Analog Devices ADUCM320
@version v0.1
@date June 6th 2014
@section disclaimer Disclaimer
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES INC. ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE
DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES INC. BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
YOU ASSUME ANY AND ALL RISK FROM THE USE OF THIS CODE OR SUPPORT FILE.
IT IS THE RESPONSIBILITY OF THE PERSON INTEGRATING THIS CODE INTO AN APPLICATION
TO ENSURE THAT THE RESULTING APPLICATION PERFORMS AS REQUIRED AND IS SAFE.
**/
#include "ADUCM320.h"
/*----------------------------------------------------------------------------
DEFINES
*---------------------------------------------------------------------------*/
/* Extract the Clock Divider */
#define __CCLK_DIV (1 << (pADI_CLKCTL->CLKCON1 & CLKCON1_CDHCLK_MSK) )
/* define the clock multiplexer input frequencies */
#define __HFOSC 16000000
#define __SPLL 80000000
/*----------------------------------------------------------------------------
Internal Clock Variables
*---------------------------------------------------------------------------*/
static uint32_t uClk = 0; /* Undivided System Clock Frequency (UCLK) */
/* Frequency of the external clock source connected to P0.5 */
static uint32_t SystemExtClock = 0;
uint32_t SystemCoreClock = __SPLL;/*!< System Clock Frequency (Core Clock)*/
/*----------------------------------------------------------------------------
Clock functions
*---------------------------------------------------------------------------*/
void SystemCoreClockUpdate (void) /* Get Core Clock Frequency */
{
/* pre-processor verification that clock mux mask and allowed values agree */
#if ((CLKCON0_CLKMUX_HFOSC \
| CLKCON0_CLKMUX_SPLL \
| CLKCON0_CLKMUX_EXTCLK) \
== CLKCON0_CLKMUX_MSK)
/* update the system core clock according the the current clock mux setting */
switch (pADI_CLKCTL->CLKCON0 & CLKCON0_CLKMUX_MSK ) {
case CLKCON0_CLKMUX_HFOSC:
uClk = __HFOSC;
break;
case CLKCON0_CLKMUX_SPLL:
uClk = __SPLL;
break;
case CLKCON0_CLKMUX_EXTCLK:
uClk = SystemExtClock;
break;
/* no need to catch default case due to pre-processor test */
}
/* update the divided system clock */
SystemCoreClock = uClk / __CCLK_DIV;
#else
#error "Clock mux mask and allowed value mismatch!"
#endif
}
/**
* Initialize the system
*
* @param none
* @return none
*
* @brief Setup the microcontroller system.
* Initialize the System and update the SystemFrequency variable.
*/
void SystemInit (void)
{
/* compute internal clocks */
SystemCoreClockUpdate();
}
/**
* @brief Sets the system external clock frequency
*
* @param ExtClkFreq External clock frequency in Hz
* @return none
*
* Sets the clock frequency of the source connected to P1.0 clock input source
*/
void SetSystemExtClkFreq (uint32_t ExtClkFreq)
{
SystemExtClock = ExtClkFreq;
}
/**
* @brief Gets the system external clock frequency
*
* @return External Clock frequency
*
* Gets the clock frequency of the source connected to P1.0 clock input source
*/
uint32_t GetSystemExtClkFreq (void)
{
return SystemExtClock;
}
|
koshkin-sergey/ukernel
|
examples/timers/cortex_m/stm32f0-discovery/src/stm32f0_example_timers.c
|
/*
* Copyright (C) 2019 <NAME> <<EMAIL>>
* All rights reserved
*
* File Name : stm32f0_example_timers.c
* Description: stm32f0_example_timers
*/
/*******************************************************************************
* includes
******************************************************************************/
#include "stm32f0xx.h"
#include "system_stm32f0xx.h"
#include "RTOS_Config.h"
#include "ukernel.h"
/*******************************************************************************
* external declarations
******************************************************************************/
/*******************************************************************************
* defines and macros (scope: module-local)
******************************************************************************/
#define TIMEOUT (250UL)
/*******************************************************************************
* typedefs and structures (scope: module-local)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-exported)
******************************************************************************/
/*******************************************************************************
* global variable definitions (scope: module-local)
******************************************************************************/
static osThreadId_t threadA;
static osThread_t threadA_cb;
static uint64_t threadA_stack[OS_STACK_SIZE/8U];
static const osThreadAttr_t threadA_attr = {
.name = NULL,
.attr_bits = 0U,
.cb_mem = &threadA_cb,
.cb_size = sizeof(threadA_cb),
.stack_mem = &threadA_stack[0],
.stack_size = sizeof(threadA_stack),
.priority = osPriorityNormal,
};
static osTimerId_t timer1;
static osTimer_t timer1_cb;
static const osTimerAttr_t timer1_attr = {
.name = NULL,
.attr_bits = 0U,
.cb_mem = &timer1_cb,
.cb_size = sizeof(timer1_cb)
};
/*******************************************************************************
* function prototypes (scope: module-local)
******************************************************************************/
/*******************************************************************************
* function implementations (scope: module-local)
******************************************************************************/
static void threadA_func(void *param)
{
osTimerStart(timer1, TIMEOUT/2UL);
for (;;) {
GPIOC->ODR ^= (1UL << 9U);
osDelay(TIMEOUT);
}
}
static void timer1_func(void *argument)
{
GPIOC->ODR ^= (1UL << 8U);
}
static void HardwareInit(void)
{
RCC->AHBENR |= RCC_AHBENR_GPIOCEN;
GPIOC->MODER |= (GPIO_MODER_MODER8_0 | GPIO_MODER_MODER9_0);
}
/*******************************************************************************
* function implementations (scope: module-exported)
******************************************************************************/
int main(void)
{
osStatus_t status;
HardwareInit();
status = osKernelInitialize();
if (status == osOK) {
threadA = osThreadNew(threadA_func, NULL, &threadA_attr);
if (threadA == NULL) {
goto error;
}
timer1 = osTimerNew(timer1_func, osTimerPeriodic, NULL, &timer1_attr);
if (timer1 == NULL) {
goto error;
}
/* Start RTOS */
osKernelStart();
}
error:
return (-1);
}
void osSysTickInit(uint32_t hz)
{
SystemCoreClockUpdate();
SysTick_Config(SystemCoreClock/hz);
}
/* ----------------------------- End of file ---------------------------------*/
|
koshkin-sergey/ukernel
|
src/kernel/thread.c
|
<reponame>koshkin-sergey/ukernel
/*
* Copyright (C) 2017-2019 <NAME> <<EMAIL>>
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Project: uKernel real-time kernel
*/
/**
* @file
*
* Kernel system routines.
*
*/
/*******************************************************************************
* includes
******************************************************************************/
#include "os_lib.h"
/*******************************************************************************
* Helper functions
******************************************************************************/
static void ThreadStackInit(uint32_t func_addr, void *func_param, osThread_t *thread)
{
uint32_t *stk = (uint32_t *)((uint32_t)thread->stk_mem + thread->stk_size);
*(--stk) = 0x01000000L; //-- xPSR
*(--stk) = func_addr; //-- Entry Point
*(--stk) = (uint32_t)osThreadExit; //-- R14 (LR)
*(--stk) = 0x12121212L; //-- R12
*(--stk) = 0x03030303L; //-- R3
*(--stk) = 0x02020202L; //-- R2
*(--stk) = 0x01010101L; //-- R1
*(--stk) = (uint32_t)func_param; //-- R0 - thread's function argument
*(--stk) = 0x11111111L; //-- R11
*(--stk) = 0x10101010L; //-- R10
*(--stk) = 0x09090909L; //-- R9
*(--stk) = 0x08080808L; //-- R8
*(--stk) = 0x07070707L; //-- R7
*(--stk) = 0x06060606L; //-- R6
*(--stk) = 0x05050505L; //-- R5
*(--stk) = 0x04040404L; //-- R4
thread->stk = (uint32_t)stk;
}
/**
* @brief Adds thread to the end of ready queue for current priority
* @param[in] thread
*/
static void ThreadReadyAdd(osThread_t *thread)
{
int8_t priority = thread->priority - 1U;
/* Remove the thread from any queue */
QueueRemoveEntry(&thread->thread_que);
thread->state = ThreadStateReady;
/* Add the thread to the end of ready queue */
QueueAppend(&osInfo.ready_list[priority], &thread->thread_que);
osInfo.ready_to_run_bmp |= (1UL << priority);
}
/**
* @brief Deletes thread from the ready queue for current priority
* @param[in] thread
*/
static void ThreadReadyDel(osThread_t *thread)
{
int8_t priority = thread->priority - 1U;
/* Remove the thread from ready queue */
QueueRemoveEntry(&thread->thread_que);
if (isQueueEmpty(&osInfo.ready_list[priority])) {
/* No ready threads for the current priority */
osInfo.ready_to_run_bmp &= ~(1UL << priority);
}
}
/*******************************************************************************
* Service Calls
******************************************************************************/
static osThreadId_t ThreadNew(osThreadFunc_t func, void *argument, const osThreadAttr_t *attr)
{
osThread_t *thread;
void *stack_mem;
uint32_t stack_size;
osPriority_t priority;
if ((func == NULL) || (attr == NULL)) {
return (NULL);
}
thread = attr->cb_mem;
stack_mem = attr->stack_mem;
stack_size = attr->stack_size;
priority = attr->priority;
if ((thread == NULL) || (attr->cb_size < sizeof(osThread_t))) {
return (NULL);
}
if ((stack_mem == NULL) || (((uint32_t)stack_mem & 7U) != 0U) ||
(stack_size < 64U) || ((stack_size & 7U) != 0U) ) {
return (NULL);
}
if (priority == osPriorityNone) {
priority = osPriorityNormal;
}
else if ((priority < osPriorityIdle) || priority > osPriorityISR) {
return (NULL);
}
/* Init thread control block */
thread->stk_mem = stack_mem;
thread->stk_size = stack_size;
thread->base_priority = (int8_t)priority;
thread->priority = (int8_t)priority;
thread->id = ID_THREAD;
thread->name = attr->name;
thread->delay = 0U;
QueueReset(&thread->thread_que);
QueueReset(&thread->delay_que);
QueueReset(&thread->mutex_que);
/* Fill all thread stack space by FILL_STACK_VAL */
uint32_t *ptr = stack_mem;
for (uint32_t i = stack_size/sizeof(uint32_t); i != 0U; --i) {
*ptr++ = FILL_STACK_VALUE;
}
ThreadStackInit((uint32_t)func, argument, thread);
ThreadReadyAdd(thread);
libThreadDispatch(thread);
return (thread);
}
static
const char *ThreadGetName(osThreadId_t thread_id)
{
osThread_t *thread = (osThread_t *)thread_id;
/* Check parameters */
if ((thread == NULL) || (thread->id != ID_THREAD)) {
return (NULL);
}
return (thread->name);
}
static
osThreadId_t ThreadGetId(void)
{
osThread_t *thread;
thread = ThreadGetRunning();
return (thread);
}
static
osThreadState_t ThreadGetState(osThreadId_t thread_id)
{
osThread_t *thread = (osThread_t *)thread_id;
/* Check parameters */
if ((thread == NULL) || (thread->id != ID_THREAD)) {
return (osThreadError);
}
return ((osThreadState_t)thread->state);
}
static
uint32_t ThreadGetStackSize(osThreadId_t thread_id)
{
osThread_t *thread = (osThread_t *)thread_id;
/* Check parameters */
if ((thread == NULL) || (thread->id != ID_THREAD)) {
return (0U);
}
return (thread->stk_size);
}
static
uint32_t ThreadGetStackSpace(osThreadId_t thread_id)
{
osThread_t *thread = (osThread_t *)thread_id;
const uint32_t *stack;
uint32_t space = 0U;
/* Check parameters */
if ((thread == NULL) || (thread->id != ID_THREAD)) {
return (0U);
}
stack = thread->stk_mem;
for (; space < thread->stk_size; space += sizeof(uint32_t)) {
if (*stack++ != FILL_STACK_VALUE) {
break;
}
}
return (space);
}
static osStatus_t ThreadSetPriority(osThreadId_t thread_id, osPriority_t priority)
{
osThread_t *thread = (osThread_t *)thread_id;
/* Check parameters */
if ((thread == NULL) || (thread->id != ID_THREAD) ||
(priority < osPriorityIdle) || (priority > osPriorityISR)) {
return (osErrorParameter);
}
/* Check object state */
if (thread->state == ThreadStateTerminated) {
return (osErrorResource);
}
if (thread->base_priority != (int8_t)priority) {
thread->base_priority = (int8_t)priority;
libThreadSetPriority(thread, (int8_t)priority);
}
return (osOK);
}
static osPriority_t ThreadGetPriority(osThreadId_t thread_id)
{
osThread_t *thread = (osThread_t *)thread_id;
osPriority_t priority;
/* Check parameters */
if ((thread == NULL) || (thread->id != ID_THREAD)) {
return (osPriorityError);
}
/* Check object state */
if (thread->state == ThreadStateTerminated) {
return (osPriorityError);
}
priority = (osPriority_t)thread->priority;
return (priority);
}
static osStatus_t ThreadYield(void)
{
queue_t *que;
osThread_t *thread_running;
if (osInfo.kernel.state == osKernelRunning) {
thread_running = ThreadGetRunning();
que = &osInfo.ready_list[thread_running->priority - 1U];
/* Remove the running thread from ready queue */
QueueRemoveEntry(&thread_running->thread_que);
if (!isQueueEmpty(que)) {
thread_running->state = ThreadStateReady;
libThreadSwitch(GetThreadByQueue(que->next));
}
/* Add the running thread to the end of ready queue */
QueueAppend(que, &thread_running->thread_que);
}
return (osOK);
}
static
osStatus_t ThreadSuspend(osThreadId_t thread_id)
{
osThread_t *thread = (osThread_t *)thread_id;
osStatus_t status = osOK;
/* Check parameters */
if ((thread == NULL) || (thread->id != ID_THREAD)) {
return (osErrorParameter);
}
switch (thread->state) {
case ThreadStateRunning:
if (osInfo.kernel.state != osKernelRunning ||
osInfo.ready_to_run_bmp == 0U) {
status = osErrorResource;
}
else {
ThreadReadyDel(thread);
thread->state = ThreadStateBlocked;
thread = libThreadHighestPrioGet();
libThreadSwitch(thread);
}
break;
case ThreadStateReady:
ThreadReadyDel(thread);
thread->state = ThreadStateBlocked;
break;
case ThreadStateBlocked:
/* Remove the thread from delay queue */
QueueRemoveEntry(&thread->delay_que);
/* Remove the thread from wait queue */
QueueRemoveEntry(&thread->thread_que);
break;
case ThreadStateTerminated:
case ThreadStateInactive:
default:
status = osErrorResource;
break;
}
return (status);
}
static osStatus_t ThreadResume(osThreadId_t thread_id)
{
osThread_t *thread = (osThread_t *)thread_id;
/* Check parameters */
if ((thread == NULL) || (thread->id != ID_THREAD)) {
return (osErrorParameter);
}
/* Check object state */
if (thread->state != ThreadStateBlocked) {
return (osErrorResource);
}
/* Wakeup Thread */
libThreadWaitExit(thread, (uint32_t)osErrorTimeout, DISPATCH_YES);
return (osOK);
}
static void ThreadExit(void)
{
osThread_t *thread;
if (osInfo.kernel.state != osKernelRunning ||
osInfo.ready_to_run_bmp == 0U) {
return;
}
thread = ThreadGetRunning();
/* Release owned Mutexes */
libMutexOwnerRelease(&thread->mutex_que);
ThreadReadyDel(thread);
libThreadSwitch(libThreadHighestPrioGet());
thread->state = ThreadStateInactive;
thread->id = ID_INVALID;
}
static osStatus_t ThreadTerminate(osThreadId_t thread_id)
{
osThread_t *thread = (osThread_t *)thread_id;
osStatus_t status = osOK;
/* Check parameters */
if ((thread == NULL) || (thread->id != ID_THREAD)) {
return (osErrorParameter);
}
/* Check object state */
switch (thread->state) {
case ThreadStateRunning:
if (osInfo.kernel.state != osKernelRunning ||
osInfo.ready_to_run_bmp == 0U) {
status = osErrorResource;
}
else {
ThreadReadyDel(thread);
}
break;
case ThreadStateReady:
ThreadReadyDel(thread);
break;
case ThreadStateBlocked:
/* Remove the thread from delay queue */
QueueRemoveEntry(&thread->delay_que);
/* Remove the thread from wait queue */
QueueRemoveEntry(&thread->thread_que);
break;
case ThreadStateInactive:
case ThreadStateTerminated:
default:
status = osErrorResource;
break;
}
if (status == osOK) {
/* Release owned Mutexes */
libMutexOwnerRelease(&thread->mutex_que);
if (thread->state == ThreadStateRunning) {
libThreadSwitch(libThreadHighestPrioGet());
}
else {
libThreadDispatch(NULL);
}
thread->state = ThreadStateInactive;
thread->id = ID_INVALID;
}
return (status);
}
static uint32_t ThreadGetCount(void)
{
return (0U);
}
static uint32_t ThreadEnumerate(osThreadId_t *thread_array, uint32_t array_items)
{
(void)thread_array;
(void)array_items;
return (0U);
}
/*******************************************************************************
* Library functions
******************************************************************************/
/**
* @brief Thread startup (Idle and Timer Thread).
* @return true - success, false - failure.
*/
bool libThreadStartup(void)
{
bool ret = true;
/* Create Idle Thread */
if (osInfo.thread.idle == NULL) {
osInfo.thread.idle = ThreadNew(osIdleThread, NULL, osConfig.idle_thread_attr);
if (osInfo.thread.idle == NULL) {
ret = false;
}
}
/* Create Timer Thread */
if (osInfo.thread.timer == NULL) {
osInfo.thread.timer = ThreadNew(libTimerThread, NULL, osConfig.timer_thread_attr);
if (osInfo.thread.timer == NULL) {
ret = false;
}
}
return (ret);
}
/**
* @brief Exit Thread wait state.
* @param[out] thread thread object.
* @param[in] ret_val return value.
*/
void libThreadWaitExit(osThread_t *thread, uint32_t ret_val, dispatch_t dispatch)
{
BEGIN_CRITICAL_SECTION
thread->winfo.ret_val = ret_val;
/* Remove the thread from delay queue */
QueueRemoveEntry(&thread->delay_que);
ThreadReadyAdd(thread);
if (dispatch != DISPATCH_NO) {
libThreadDispatch(thread);
}
END_CRITICAL_SECTION
}
/**
* @brief Enter Thread wait state.
* @param[out] thread thread object.
* @param[out] wait_que Pointer to wait queue.
* @param[in] timeout Timeout
*/
bool libThreadWaitEnter(osThread_t *thread, queue_t *wait_que, uint32_t timeout)
{
queue_t *que;
queue_t *delay_queue;
if (osInfo.kernel.state != osKernelRunning) {
return (false);
}
ThreadReadyDel(thread);
thread->state = ThreadStateBlocked;
/* Add to the wait queue */
if (wait_que != NULL) {
for (que = wait_que->next; que != wait_que; que = que->next) {
if (thread->priority > GetThreadByQueue(que)->priority) {
break;
}
}
QueueAppend(que, &thread->thread_que);
}
/* Add to the delay queue */
if (timeout != osWaitForever) {
thread->delay = osInfo.kernel.tick + timeout;
delay_queue = &osInfo.delay_queue;
for (que = delay_queue->next; que != delay_queue; que = que->next) {
if (time_before(thread->delay, GetThreadByDelayQueue(que)->delay)) {
break;
}
}
QueueAppend(que, &thread->delay_que);
}
thread = libThreadHighestPrioGet();
libThreadSwitch(thread);
return (true);
}
/**
* @brief
* @param wait_que
*/
void libThreadWaitDelete(queue_t *wait_que)
{
while (!isQueueEmpty(wait_que)) {
libThreadWaitExit(GetThreadByQueue(wait_que->next), (uint32_t)osErrorResource, DISPATCH_NO);
}
libThreadDispatch(NULL);
}
/**
* @brief Process Thread Delay Tick (executed each System Tick).
*/
bool libThreadDelayTick(void)
{
osThread_t *thread;
bool result = false;
queue_t *delay_queue = &osInfo.delay_queue;
while (!isQueueEmpty(delay_queue)) {
thread = GetThreadByDelayQueue(delay_queue->next);
if (time_after(thread->delay, osInfo.kernel.tick)) {
break;
}
else {
libThreadWaitExit(thread, (uint32_t)osErrorTimeout, DISPATCH_NO);
result = true;
}
}
return (result);
}
/**
* @brief Change priority of a thread.
* @param[in] thread thread object.
* @param[in] priority new priority value for the thread.
*/
void libThreadSetPriority(osThread_t *thread, int8_t priority)
{
if (thread->priority != priority) {
if (thread->state == ThreadStateBlocked) {
thread->priority = priority;
}
else {
ThreadReadyDel(thread);
thread->priority = priority;
ThreadReadyAdd(thread);
}
}
}
osThread_t *libThreadHighestPrioGet(void)
{
int8_t priority;
osThread_t *thread;
if (osInfo.ready_to_run_bmp == 0U) {
return (NULL);
}
priority = (NUM_PRIORITY - 1U) - __CLZ(osInfo.ready_to_run_bmp);
thread = GetThreadByQueue(osInfo.ready_list[priority].next);
return (thread);
}
void libThreadSwitch(osThread_t *thread)
{
thread->state = ThreadStateRunning;
osInfo.thread.run.next = thread;
archSwitchContextRequest();
}
/**
* @brief Dispatch specified Thread or Ready Thread with Highest Priority.
* @param[in] thread thread object or NULL.
*/
void libThreadDispatch(osThread_t *thread)
{
osThread_t *thread_running;
if (thread == NULL) {
thread = libThreadHighestPrioGet();
}
thread_running = ThreadGetRunning();
if ((osInfo.kernel.state == osKernelRunning) &&
(thread != NULL) &&
(thread_running != NULL) &&
(thread->priority > thread_running->priority)) {
/* Preempt running Thread */
thread_running->state = ThreadStateReady;
libThreadSwitch(thread);
}
}
/*******************************************************************************
* Public API
******************************************************************************/
/**
* @fn osThreadId_t osThreadNew(osThreadFunc_t func, void *argument, const osThreadAttr_t *attr)
* @brief Create a thread and add it to Active Threads.
* @param[in] func thread function.
* @param[in] argument pointer that is passed to the thread function as start argument.
* @param[in] attr thread attributes.
* @return thread ID for reference by other functions or NULL in case of error.
*/
osThreadId_t osThreadNew(osThreadFunc_t func, void *argument, const osThreadAttr_t *attr)
{
osThreadId_t thread_id;
if (IsIrqMode() || IsIrqMasked()) {
thread_id = NULL;
}
else {
thread_id = (osThreadId_t)svc_3((uint32_t)func, (uint32_t)argument, (uint32_t)attr, (uint32_t)ThreadNew);
}
return (thread_id);
}
/**
* @fn const char *osThreadGetName(osThreadId_t thread_id)
* @brief Get name of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return name as null-terminated string.
*/
const char *osThreadGetName(osThreadId_t thread_id)
{
const char *name;
if (IsIrqMode() || IsIrqMasked()) {
name = NULL;
}
else {
name = (const char *)svc_1((uint32_t)thread_id, (uint32_t)ThreadGetName);
}
return (name);
}
/**
* @fn osThreadId_t osThreadGetId(void)
* @brief Return the thread ID of the current running thread.
* @return thread ID for reference by other functions or NULL in case of error.
*/
osThreadId_t osThreadGetId(void)
{
osThreadId_t thread_id;
if (IsIrqMode() || IsIrqMasked()) {
thread_id = ThreadGetId();
}
else {
thread_id = (osThreadId_t)svc_0((uint32_t)ThreadGetId);
}
return (thread_id);
}
/**
* @fn osThreadState_t osThreadGetState(osThreadId_t thread_id)
* @brief Get current thread state of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return current thread state of the specified thread.
*/
osThreadState_t osThreadGetState(osThreadId_t thread_id)
{
osThreadState_t state;
if (IsIrqMode() || IsIrqMasked()) {
state = osThreadError;
}
else {
state = (osThreadState_t)svc_1((uint32_t)thread_id, (uint32_t)ThreadGetState);
}
return (state);
}
/**
* @fn uint32_t osThreadGetStackSize(osThreadId_t thread_id)
* @brief Get stack size of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return stack size in bytes.
*/
uint32_t osThreadGetStackSize(osThreadId_t thread_id)
{
uint32_t stack_size;
if (IsIrqMode() || IsIrqMasked()) {
stack_size = 0U;
}
else {
stack_size = svc_1((uint32_t)thread_id, (uint32_t)ThreadGetStackSize);
}
return (stack_size);
}
/**
* @fn uint32_t osThreadGetStackSpace(osThreadId_t thread_id)
* @brief Get available stack space of a thread based on stack watermark recording during execution.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return remaining stack space in bytes.
*/
uint32_t osThreadGetStackSpace(osThreadId_t thread_id)
{
uint32_t stack_space;
if (IsIrqMode() || IsIrqMasked()) {
stack_space = 0U;
}
else {
stack_space = svc_1((uint32_t)thread_id, (uint32_t)ThreadGetStackSpace);
}
return (stack_space);
}
/**
* @fn osStatus_t osThreadSetPriority(osThreadId_t thread_id, osPriority_t priority)
* @brief Change priority of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @param[in] priority new priority value for the thread function.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osThreadSetPriority(osThreadId_t thread_id, osPriority_t priority)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_2((uint32_t)thread_id, (uint32_t)priority, (uint32_t)ThreadSetPriority);
}
return (status);
}
/**
* @fn osPriority_t osThreadGetPriority(osThreadId_t thread_id)
* @brief Get current priority of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return current priority value of the specified thread.
*/
osPriority_t osThreadGetPriority(osThreadId_t thread_id)
{
osPriority_t priority;
if (IsIrqMode() || IsIrqMasked()) {
priority = osPriorityError;
}
else {
priority = (osPriority_t)svc_1((uint32_t)thread_id, (uint32_t)ThreadGetPriority);
}
return (priority);
}
/**
* @fn osStatus_t osThreadYield(void)
* @brief Pass control to next thread that is in state READY.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osThreadYield(void)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_0((uint32_t)ThreadYield);
}
return (status);
}
/**
* @fn osStatus_t osThreadSuspend(osThreadId_t thread_id)
* @brief Suspend execution of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osThreadSuspend(osThreadId_t thread_id)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_1((uint32_t)thread_id, (uint32_t)ThreadSuspend);
}
return (status);
}
/**
* @fn osStatus_t osThreadResume(osThreadId_t thread_id)
* @brief Resume execution of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osThreadResume(osThreadId_t thread_id)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_1((uint32_t)thread_id, (uint32_t)ThreadResume);
}
return (status);
}
/**
* @fn void osThreadExit(void)
* @brief Terminate execution of current running thread.
*/
__NO_RETURN
void osThreadExit(void)
{
svc_0((uint32_t)ThreadExit);
for (;;);
}
/**
* @fn osStatus_t osThreadTerminate(osThreadId_t thread_id)
* @brief Terminate execution of a thread.
* @param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
* @return status code that indicates the execution status of the function.
*/
osStatus_t osThreadTerminate(osThreadId_t thread_id)
{
osStatus_t status;
if (IsIrqMode() || IsIrqMasked()) {
status = osErrorISR;
}
else {
status = (osStatus_t)svc_1((uint32_t)thread_id, (uint32_t)ThreadTerminate);
}
return (status);
}
/**
* @fn uint32_t osThreadGetCount(void)
* @brief Get number of active threads.
* @return number of active threads or 0 in case of an error.
*/
uint32_t osThreadGetCount(void)
{
uint32_t count;
if (IsIrqMode() || IsIrqMasked()) {
count = 0U;
}
else {
count = svc_0((uint32_t)ThreadGetCount);
}
return (count);
}
/**
* @fn uint32_t osThreadEnumerate(osThreadId_t *thread_array, uint32_t array_items)
* @brief Enumerate active threads.
* @param[out] thread_array pointer to array for retrieving thread IDs.
* @param[in] array_items maximum number of items in array for retrieving thread IDs.
* @return number of enumerated threads or 0 in case of an error.
*/
uint32_t osThreadEnumerate(osThreadId_t *thread_array, uint32_t array_items)
{
uint32_t count;
if (IsIrqMode() || IsIrqMasked()) {
count = 0U;
}
else {
count = svc_2((uint32_t)thread_array, array_items, (uint32_t)ThreadEnumerate);
}
return (count);
}
/* ----------------------------- End of file ---------------------------------*/
|
jimd1989/boar
|
src/wavetables/saw.h
|
/* A basic saw wave, intended for both playback and linear scaling. */
#pragma once
#include "../constants/defaults.h"
static const float WAVE_SAW_000[DEFAULT_WAVELEN] = {
-1, -0.921422, -0.947433, -0.942619, -0.932586, -0.947691,
-0.928308, -0.944872, -0.929868, -0.938172, -0.933392, -0.931289,
-0.93559, -0.926838, -0.934733, -0.92556, -0.931053, -0.926387,
-0.926215, -0.927353, -0.922175, -0.926799, -0.920071, -0.924232,
-0.919733, -0.920406, -0.919987, -0.916701, -0.91948, -0.914229,
-0.917499, -0.913214, -0.914313, -0.912971, -0.910891, -0.912422,
-0.908235, -0.910797, -0.90677, -0.908071, -0.906139, -0.904901,
-0.905505, -0.902161, -0.904108, -0.900374, -0.901734, -0.899425,
-0.898797, -0.898679, -0.896035, -0.897426, -0.894014, -0.89533,
-0.892793, -0.892612, -0.891918, -0.889871, -0.890749, -0.887681,
-0.888875, -0.886225, -0.886361, -0.885211, -0.883675, -0.884079,
-0.881366, -0.882381, -0.879709, -0.880057, -0.878549, -0.877449,
-0.877418, -0.875063, -0.875856, -0.873236, -0.873706, -0.871928,
-0.871194, -0.870768, -0.868768, -0.869308, -0.866799, -0.867315,
-0.865346, -0.86491, -0.864133, -0.862474, -0.862742, -0.860391,
-0.860887, -0.858799, -0.858597, -0.857515, -0.856178, -0.856164,
-0.854007, -0.854429, -0.852286, -0.852255, -0.850918, -0.849874,
-0.84958, -0.847641, -0.847943, -0.845803, -0.845885, -0.844341,
-0.843559, -0.842994, -0.841288, -0.841436, -0.839347, -0.839487,
-0.837788, -0.83723, -0.836412, -0.834943, -0.83491, -0.832916,
-0.833063, -0.831258, -0.830884, -0.829838, -0.828602, -0.828371,
-0.826505, -0.826614, -0.824752, -0.824519, -0.823273, -0.82226,
-0.821823, -0.820112, -0.820143, -0.818269, -0.818135, -0.816723,
-0.815913, -0.81527, -0.813731, -0.813654, -0.811808, -0.811729,
-0.810188, -0.809558, -0.808717, -0.80736, -0.807148, -0.805367,
-0.805304, -0.80367, -0.803192, -0.802167, -0.800994, -0.800629,
-0.798943, -0.798858, -0.797171, -0.796812, -0.795623, -0.79463,
-0.794102, -0.792535, -0.792395, -0.79069, -0.790417, -0.789089,
-0.788263, -0.787569, -0.786139, -0.785915, -0.784227, -0.784006,
-0.782567, -0.781891, -0.781034, -0.779751, -0.77942, -0.777781,
-0.777578, -0.776059, -0.775511, -0.7745, -0.773369, -0.772914,
-0.77135, -0.771134, -0.769565, -0.76912, -0.767971, -0.76699,
-0.7664, -0.764932, -0.764674, -0.763086, -0.762717, -0.761448,
-0.760609, -0.75988, -0.758525, -0.758199, -0.756622, -0.756301,
-0.754935, -0.754226, -0.753357, -0.752127, -0.751712, -0.750173,
-0.749871, -0.748433, -0.747836, -0.746835, -0.745734, -0.745215,
-0.743738, -0.743427, -0.741943, -0.741437, -0.740316, -0.739344,
-0.73871, -0.737314, -0.736969, -0.735467, -0.735029, -0.733802,
-0.732954, -0.732199, -0.7309, -0.730499, -0.729003, -0.728609,
-0.727296, -0.726562, -0.725685, -0.724494, -0.724017, -0.722553,
-0.722177, -0.720799, -0.720164, -0.719171, -0.718094, -0.717526,
-0.716114, -0.715732, -0.714313, -0.71376, -0.71266, -0.711696,
-0.711027, -0.709686, -0.709276, -0.707838, -0.707347, -0.706153,
-0.705298, -0.704523, -0.703267, -0.702808, -0.701375, -0.700923,
-0.699652, -0.698899, -0.698016, -0.696855, -0.69633, -0.694923,
-0.69449, -0.693159, -0.692496, -0.691509, -0.690448, -0.689843,
-0.688482, -0.688045, -0.686676, -0.686086, -0.685003, -0.684045,
-0.683349, -0.682051, -0.681589, -0.680203, -0.679669, -0.678501,
-0.677642, -0.676851, -0.675628, -0.675123, -0.67374, -0.673244,
-0.672005, -0.671237, -0.670349, -0.669212, -0.668648, -0.667287,
-0.666808, -0.665515, -0.664829, -0.663847, -0.6628, -0.662165,
-0.660845, -0.660363, -0.659034, -0.658416, -0.657346, -0.656392,
-0.655675, -0.654411, -0.653908, -0.652563, -0.651996, -0.650848,
-0.649984, -0.649181, -0.647985, -0.647444, -0.6461, -0.645568,
-0.644355, -0.643575, -0.642683, -0.641565, -0.640971, -0.639647,
-0.639131, -0.637869, -0.637164, -0.636185, -0.63515, -0.63449,
-0.633203, -0.632686, -0.63139, -0.630747, -0.629688, -0.628738,
-0.628003, -0.626768, -0.626231, -0.624919, -0.624325, -0.623194,
-0.622327, -0.621512, -0.620339, -0.619768, -0.618457, -0.617895,
-0.616704, -0.615914, -0.615019, -0.613917, -0.613296, -0.612004,
-0.611457, -0.61022, -0.609499, -0.608524, -0.607499, -0.606818,
-0.605559, -0.605011, -0.603742, -0.60308, -0.60203, -0.601083,
-0.600334, -0.599122, -0.598557, -0.597273, -0.596655, -0.595538,
-0.594669, -0.593846, -0.592691, -0.592094, -0.590811, -0.590224,
-0.589051, -0.588253, -0.587355, -0.586266, -0.585624, -0.584357,
-0.583786, -0.582569, -0.581836, -0.580863, -0.579846, -0.579148,
-0.577912, -0.577339, -0.576093, -0.575414, -0.574371, -0.573427,
-0.572666, -0.571473, -0.570885, -0.569624, -0.568988, -0.567882,
-0.56701, -0.56618, -0.565041, -0.564423, -0.563163, -0.562555,
-0.561397, -0.560593, -0.559691, -0.558614, -0.557954, -0.556709,
-0.556116, -0.554917, -0.554173, -0.553202, -0.552192, -0.551479,
-0.550263, -0.549669, -0.548442, -0.547749, -0.546713, -0.545771,
-0.544999, -0.543823, -0.543215, -0.541974, -0.541321, -0.540226,
-0.539352, -0.538515, -0.53739, -0.536754, -0.535513, -0.534888,
-0.533742, -0.532932, -0.532029, -0.530961, -0.530286, -0.529059,
-0.528447, -0.527263, -0.52651, -0.525541, -0.524537, -0.523812,
-0.522612, -0.522, -0.52079, -0.520085, -0.519054, -0.518115,
-0.517334, -0.516172, -0.515546, -0.514323, -0.513656, -0.512569,
-0.511693, -0.510851, -0.509737, -0.509086, -0.507862, -0.507221,
-0.506087, -0.505272, -0.504366, -0.503308, -0.502619, -0.501408,
-0.50078, -0.499609, -0.498848, -0.497881, -0.496881, -0.496146,
-0.494961, -0.494333, -0.493137, -0.492422, -0.491395, -0.490457,
-0.489669, -0.48852, -0.487879, -0.48667, -0.485991, -0.484912,
-0.484035, -0.483188, -0.482084, -0.481419, -0.48021, -0.479556,
-0.478431, -0.477611, -0.476705, -0.475653, -0.474952, -0.473756,
-0.473114, -0.471954, -0.471187, -0.47022, -0.469225, -0.468481,
-0.467308, -0.466667, -0.465483, -0.464759, -0.463736, -0.4628,
-0.462004, -0.460866, -0.460213, -0.459017, -0.458327, -0.457254,
-0.456376, -0.455525, -0.45443, -0.453753, -0.452556, -0.451891,
-0.450775, -0.449951, -0.449043, -0.447998, -0.447287, -0.446102,
-0.445449, -0.444299, -0.443525, -0.44256, -0.441569, -0.440816,
-0.439654, -0.439001, -0.437828, -0.437096, -0.436077, -0.435142,
-0.434341, -0.433212, -0.432547, -0.431362, -0.430664, -0.429596,
-0.428717, -0.427862, -0.426775, -0.426088, -0.424902, -0.424227,
-0.423118, -0.422291, -0.421382, -0.420342, -0.419622, -0.418448,
-0.417784, -0.416643, -0.415864, -0.4149, -0.413912, -0.413152,
-0.412, -0.411336, -0.410173, -0.409434, -0.408418, -0.407485,
-0.406678, -0.405557, -0.404883, -0.403707, -0.403001, -0.401938,
-0.401058, -0.4002, -0.39912, -0.398423, -0.397248, -0.396563,
-0.395461, -0.394631, -0.39372, -0.392686, -0.391958, -0.390794,
-0.39012, -0.388986, -0.388203, -0.38724, -0.386255, -0.385489,
-0.384345, -0.383672, -0.382517, -0.381772, -0.380759, -0.379827,
-0.379015, -0.377902, -0.377218, -0.376052, -0.375338, -0.37428,
-0.373399, -0.372538, -0.371464, -0.370759, -0.369592, -0.3689,
-0.367803, -0.366971, -0.366059, -0.365029, -0.364295, -0.363138,
-0.362457, -0.36133, -0.360542, -0.359579, -0.358598, -0.357826,
-0.35669, -0.356009, -0.35486, -0.354111, -0.3531, -0.352168,
-0.351353, -0.350246, -0.349555, -0.348396, -0.347676, -0.346621,
-0.34574, -0.344877, -0.343807, -0.343096, -0.341936, -0.341238,
-0.340145, -0.339312, -0.338398, -0.337372, -0.336632, -0.335482,
-0.334794, -0.333672, -0.332882, -0.331919, -0.33094, -0.330163,
-0.329034, -0.328346, -0.327204, -0.32645, -0.32544, -0.32451,
-0.323691, -0.32259, -0.321892, -0.320739, -0.320015, -0.318963,
-0.318081, -0.317215, -0.31615, -0.315433, -0.31428, -0.313575,
-0.312487, -0.311652, -0.310738, -0.309715, -0.308969, -0.307826,
-0.307132, -0.306015, -0.305221, -0.304259, -0.303282, -0.302501,
-0.301377, -0.300683, -0.299546, -0.298789, -0.297781, -0.296852,
-0.296029, -0.294933, -0.294229, -0.293083, -0.292353, -0.291304,
-0.290422, -0.289554, -0.288493, -0.28777, -0.286623, -0.285913,
-0.284829, -0.283992, -0.283077, -0.282057, -0.281307, -0.280169,
-0.279469, -0.278357, -0.277561, -0.276599, -0.275624, -0.274839,
-0.27372, -0.273021, -0.271889, -0.271128, -0.270122, -0.269193,
-0.268367, -0.267276, -0.266567, -0.265425, -0.264692, -0.263645,
-0.262763, -0.261893, -0.260836, -0.260108, -0.258966, -0.258252,
-0.257171, -0.256332, -0.255417, -0.2544, -0.253645, -0.252512,
-0.251808, -0.250699, -0.249901, -0.248939, -0.247966, -0.247177,
-0.246063, -0.245359, -0.244231, -0.243467, -0.242462, -0.241534,
-0.240706, -0.239619, -0.238905, -0.237768, -0.237031, -0.235986,
-0.235104, -0.234232, -0.233178, -0.232446, -0.231309, -0.230591,
-0.229512, -0.228673, -0.227756, -0.226742, -0.225983, -0.224855,
-0.224146, -0.223041, -0.222241, -0.221279, -0.220308, -0.219516,
-0.218406, -0.217697, -0.216573, -0.215807, -0.214803, -0.213875,
-0.213045, -0.211961, -0.211243, -0.21011, -0.20937, -0.208327,
-0.207444, -0.206571, -0.20552, -0.204785, -0.203651, -0.20293,
-0.201853, -0.201013, -0.200096, -0.199083, -0.198322, -0.197197,
-0.196485, -0.195382, -0.194581, -0.193619, -0.192649, -0.191855,
-0.190748, -0.190036, -0.188915, -0.188147, -0.187143, -0.186217,
-0.185384, -0.184303, -0.183582, -0.182452, -0.181709, -0.180668,
-0.179785, -0.178911, -0.177862, -0.177124, -0.175993, -0.175269,
-0.174194, -0.173354, -0.172436, -0.171425, -0.170661, -0.169539,
-0.168824, -0.167724, -0.166921, -0.165959, -0.16499, -0.164194,
-0.16309, -0.162375, -0.161257, -0.160486, -0.159483, -0.158558,
-0.157723, -0.156645, -0.155921, -0.154794, -0.154049, -0.153008,
-0.152126, -0.15125, -0.150204, -0.149463, -0.148335, -0.147608,
-0.146535, -0.145694, -0.144775, -0.143767, -0.143, -0.141881,
-0.141163, -0.140065, -0.139261, -0.1383, -0.137332, -0.136533,
-0.135432, -0.134714, -0.133598, -0.132826, -0.131824, -0.130899,
-0.130063, -0.128987, -0.12826, -0.127135, -0.126389, -0.125349,
-0.124467, -0.12359, -0.122545, -0.121802, -0.120676, -0.119948,
-0.118876, -0.118035, -0.117115, -0.116108, -0.115339, -0.114222,
-0.113503, -0.112406, -0.111601, -0.11064, -0.109673, -0.108873,
-0.107773, -0.107054, -0.105939, -0.105167, -0.104164, -0.10324,
-0.102402, -0.101328, -0.1006, -0.0994761, -0.0987288, -0.0976893,
-0.0968074, -0.0959297, -0.0948868, -0.0941415, -0.0930176, -0.0922878,
-0.0912166, -0.0903751, -0.0894552, -0.088449, -0.0876788, -0.0865637,
-0.0858427, -0.0847465, -0.0839419, -0.0829797, -0.0820139, -0.0812122,
-0.0801143, -0.0793934, -0.0782798, -0.0775068, -0.0765042, -0.0755805,
-0.0747422, -0.0736691, -0.0729395, -0.0718171, -0.071069, -0.0700297,
-0.0691481, -0.0682696, -0.0672279, -0.0664812, -0.0653587, -0.0646278,
-0.0635571, -0.0627157, -0.0617951, -0.06079, -0.0600185, -0.0589047,
-0.0581827, -0.0570871, -0.0562824, -0.0553198, -0.0543548, -0.053552,
-0.0524553, -0.0517333, -0.0506205, -0.0498472, -0.0488444, -0.0479214,
-0.0470821, -0.0460101, -0.0452795, -0.0441579, -0.0434093, -0.0423701,
-0.0414889, -0.0406095, -0.0395688, -0.0388211, -0.0376995, -0.0369681,
-0.0358975, -0.0350564, -0.0341352, -0.0331309, -0.0323585, -0.0312455,
-0.0305229, -0.0294276, -0.028623, -0.0276599, -0.0266956, -0.025892,
-0.0247961, -0.0240735, -0.0229611, -0.0221877, -0.0211846, -0.0202622,
-0.0194221, -0.0183509, -0.0176196, -0.0164984, -0.0157497, -0.0147103,
-0.0138296, -0.0129496, -0.0119096, -0.0111613, -0.01004, -0.00930848,
-0.00823777, -0.00739709, -0.00647526, -0.00547169, -0.00469862, -0.00358612,
-0.00286331, -0.00176791, -0.000963616, 8.21565e-15, 0.000963616, 0.00176791,
0.00286331, 0.00358612, 0.00469862, 0.00547169, 0.00647526, 0.00739709,
0.00823777, 0.00930848, 0.01004, 0.0111613, 0.0119096, 0.0129496,
0.0138296, 0.0147103, 0.0157497, 0.0164984, 0.0176196, 0.0183509,
0.0194221, 0.0202622, 0.0211846, 0.0221877, 0.0229611, 0.0240735,
0.0247961, 0.025892, 0.0266956, 0.0276599, 0.028623, 0.0294276,
0.0305229, 0.0312455, 0.0323585, 0.0331309, 0.0341352, 0.0350564,
0.0358975, 0.0369681, 0.0376995, 0.0388211, 0.0395688, 0.0406095,
0.0414889, 0.0423701, 0.0434093, 0.0441579, 0.0452795, 0.0460101,
0.0470821, 0.0479214, 0.0488444, 0.0498472, 0.0506205, 0.0517333,
0.0524553, 0.053552, 0.0543548, 0.0553198, 0.0562824, 0.0570871,
0.0581827, 0.0589047, 0.0600185, 0.06079, 0.0617951, 0.0627157,
0.0635571, 0.0646278, 0.0653587, 0.0664812, 0.0672279, 0.0682696,
0.0691481, 0.0700297, 0.071069, 0.0718171, 0.0729395, 0.0736691,
0.0747422, 0.0755805, 0.0765042, 0.0775068, 0.0782798, 0.0793934,
0.0801143, 0.0812122, 0.0820139, 0.0829797, 0.0839419, 0.0847465,
0.0858427, 0.0865637, 0.0876788, 0.088449, 0.0894552, 0.0903751,
0.0912166, 0.0922878, 0.0930176, 0.0941415, 0.0948868, 0.0959297,
0.0968074, 0.0976893, 0.0987288, 0.0994761, 0.1006, 0.101328,
0.102402, 0.10324, 0.104164, 0.105167, 0.105939, 0.107054,
0.107773, 0.108873, 0.109673, 0.11064, 0.111601, 0.112406,
0.113503, 0.114222, 0.115339, 0.116108, 0.117115, 0.118035,
0.118876, 0.119948, 0.120676, 0.121802, 0.122545, 0.12359,
0.124467, 0.125349, 0.126389, 0.127135, 0.12826, 0.128987,
0.130063, 0.130899, 0.131824, 0.132826, 0.133598, 0.134714,
0.135432, 0.136533, 0.137332, 0.1383, 0.139261, 0.140065,
0.141163, 0.141881, 0.143, 0.143767, 0.144775, 0.145694,
0.146535, 0.147608, 0.148335, 0.149463, 0.150204, 0.15125,
0.152126, 0.153008, 0.154049, 0.154794, 0.155921, 0.156645,
0.157723, 0.158558, 0.159483, 0.160486, 0.161257, 0.162375,
0.16309, 0.164194, 0.16499, 0.165959, 0.166921, 0.167724,
0.168824, 0.169539, 0.170661, 0.171425, 0.172436, 0.173354,
0.174194, 0.175269, 0.175993, 0.177124, 0.177862, 0.178911,
0.179785, 0.180668, 0.181709, 0.182452, 0.183582, 0.184303,
0.185384, 0.186217, 0.187143, 0.188147, 0.188915, 0.190036,
0.190748, 0.191855, 0.192649, 0.193619, 0.194581, 0.195382,
0.196485, 0.197197, 0.198322, 0.199083, 0.200096, 0.201013,
0.201853, 0.20293, 0.203651, 0.204785, 0.20552, 0.206571,
0.207444, 0.208327, 0.20937, 0.21011, 0.211243, 0.211961,
0.213045, 0.213875, 0.214803, 0.215807, 0.216573, 0.217697,
0.218406, 0.219516, 0.220308, 0.221279, 0.222241, 0.223041,
0.224146, 0.224855, 0.225983, 0.226742, 0.227756, 0.228673,
0.229512, 0.230591, 0.231309, 0.232446, 0.233178, 0.234232,
0.235104, 0.235986, 0.237031, 0.237768, 0.238905, 0.239619,
0.240706, 0.241534, 0.242462, 0.243467, 0.244231, 0.245359,
0.246063, 0.247177, 0.247966, 0.248939, 0.249901, 0.250699,
0.251808, 0.252512, 0.253645, 0.2544, 0.255417, 0.256332,
0.257171, 0.258252, 0.258966, 0.260108, 0.260836, 0.261893,
0.262763, 0.263645, 0.264692, 0.265425, 0.266567, 0.267276,
0.268367, 0.269193, 0.270122, 0.271128, 0.271889, 0.273021,
0.27372, 0.274839, 0.275624, 0.276599, 0.277561, 0.278357,
0.279469, 0.280169, 0.281307, 0.282057, 0.283077, 0.283992,
0.284829, 0.285913, 0.286623, 0.28777, 0.288493, 0.289554,
0.290422, 0.291304, 0.292353, 0.293083, 0.294229, 0.294933,
0.296029, 0.296852, 0.297781, 0.298789, 0.299546, 0.300683,
0.301377, 0.302501, 0.303282, 0.304259, 0.305221, 0.306015,
0.307132, 0.307826, 0.308969, 0.309715, 0.310738, 0.311652,
0.312487, 0.313575, 0.31428, 0.315433, 0.31615, 0.317215,
0.318081, 0.318963, 0.320015, 0.320739, 0.321892, 0.32259,
0.323691, 0.32451, 0.32544, 0.32645, 0.327204, 0.328346,
0.329034, 0.330163, 0.33094, 0.331919, 0.332882, 0.333672,
0.334794, 0.335482, 0.336632, 0.337372, 0.338398, 0.339312,
0.340145, 0.341238, 0.341936, 0.343096, 0.343807, 0.344877,
0.34574, 0.346621, 0.347676, 0.348396, 0.349555, 0.350246,
0.351353, 0.352168, 0.3531, 0.354111, 0.35486, 0.356009,
0.35669, 0.357826, 0.358598, 0.359579, 0.360542, 0.36133,
0.362457, 0.363138, 0.364295, 0.365029, 0.366059, 0.366971,
0.367803, 0.3689, 0.369592, 0.370759, 0.371464, 0.372538,
0.373399, 0.37428, 0.375338, 0.376052, 0.377218, 0.377902,
0.379015, 0.379827, 0.380759, 0.381772, 0.382517, 0.383672,
0.384345, 0.385489, 0.386255, 0.38724, 0.388203, 0.388986,
0.39012, 0.390794, 0.391958, 0.392686, 0.39372, 0.394631,
0.395461, 0.396563, 0.397248, 0.398423, 0.39912, 0.4002,
0.401058, 0.401938, 0.403001, 0.403707, 0.404883, 0.405557,
0.406678, 0.407485, 0.408418, 0.409434, 0.410173, 0.411336,
0.412, 0.413152, 0.413912, 0.4149, 0.415864, 0.416643,
0.417784, 0.418448, 0.419622, 0.420342, 0.421382, 0.422291,
0.423118, 0.424227, 0.424902, 0.426088, 0.426775, 0.427862,
0.428717, 0.429596, 0.430664, 0.431362, 0.432547, 0.433212,
0.434341, 0.435142, 0.436077, 0.437096, 0.437828, 0.439001,
0.439654, 0.440816, 0.441569, 0.44256, 0.443525, 0.444299,
0.445449, 0.446102, 0.447287, 0.447998, 0.449043, 0.449951,
0.450775, 0.451891, 0.452556, 0.453753, 0.45443, 0.455525,
0.456376, 0.457254, 0.458327, 0.459017, 0.460213, 0.460866,
0.462004, 0.4628, 0.463736, 0.464759, 0.465483, 0.466667,
0.467308, 0.468481, 0.469225, 0.47022, 0.471187, 0.471954,
0.473114, 0.473756, 0.474952, 0.475653, 0.476705, 0.477611,
0.478431, 0.479556, 0.48021, 0.481419, 0.482084, 0.483188,
0.484035, 0.484912, 0.485991, 0.48667, 0.487879, 0.48852,
0.489669, 0.490457, 0.491395, 0.492422, 0.493137, 0.494333,
0.494961, 0.496146, 0.496881, 0.497881, 0.498848, 0.499609,
0.50078, 0.501408, 0.502619, 0.503308, 0.504366, 0.505272,
0.506087, 0.507221, 0.507862, 0.509086, 0.509737, 0.510851,
0.511693, 0.512569, 0.513656, 0.514323, 0.515546, 0.516172,
0.517334, 0.518115, 0.519054, 0.520085, 0.52079, 0.522,
0.522612, 0.523812, 0.524537, 0.525541, 0.52651, 0.527263,
0.528447, 0.529059, 0.530286, 0.530961, 0.532029, 0.532932,
0.533742, 0.534888, 0.535513, 0.536754, 0.53739, 0.538515,
0.539352, 0.540226, 0.541321, 0.541974, 0.543215, 0.543823,
0.544999, 0.545771, 0.546713, 0.547749, 0.548442, 0.549669,
0.550263, 0.551479, 0.552192, 0.553202, 0.554173, 0.554917,
0.556116, 0.556709, 0.557954, 0.558614, 0.559691, 0.560593,
0.561397, 0.562555, 0.563163, 0.564423, 0.565041, 0.56618,
0.56701, 0.567882, 0.568988, 0.569624, 0.570885, 0.571473,
0.572666, 0.573427, 0.574371, 0.575414, 0.576093, 0.577339,
0.577912, 0.579148, 0.579846, 0.580863, 0.581836, 0.582569,
0.583786, 0.584357, 0.585624, 0.586266, 0.587355, 0.588253,
0.589051, 0.590224, 0.590811, 0.592094, 0.592691, 0.593846,
0.594669, 0.595538, 0.596655, 0.597273, 0.598557, 0.599122,
0.600334, 0.601083, 0.60203, 0.60308, 0.603742, 0.605011,
0.605559, 0.606818, 0.607499, 0.608524, 0.609499, 0.61022,
0.611457, 0.612004, 0.613296, 0.613917, 0.615019, 0.615914,
0.616704, 0.617895, 0.618457, 0.619768, 0.620339, 0.621512,
0.622327, 0.623194, 0.624325, 0.624919, 0.626231, 0.626768,
0.628003, 0.628738, 0.629688, 0.630747, 0.63139, 0.632686,
0.633203, 0.63449, 0.63515, 0.636185, 0.637164, 0.637869,
0.639131, 0.639647, 0.640971, 0.641565, 0.642683, 0.643575,
0.644355, 0.645568, 0.6461, 0.647444, 0.647985, 0.649181,
0.649984, 0.650848, 0.651996, 0.652563, 0.653908, 0.654411,
0.655675, 0.656392, 0.657346, 0.658416, 0.659034, 0.660363,
0.660845, 0.662165, 0.6628, 0.663847, 0.664829, 0.665515,
0.666808, 0.667287, 0.668648, 0.669212, 0.670349, 0.671237,
0.672005, 0.673244, 0.67374, 0.675123, 0.675628, 0.676851,
0.677642, 0.678501, 0.679669, 0.680203, 0.681589, 0.682051,
0.683349, 0.684045, 0.685003, 0.686086, 0.686676, 0.688045,
0.688482, 0.689843, 0.690448, 0.691509, 0.692496, 0.693159,
0.69449, 0.694923, 0.69633, 0.696855, 0.698016, 0.698899,
0.699652, 0.700923, 0.701375, 0.702808, 0.703267, 0.704523,
0.705298, 0.706153, 0.707347, 0.707838, 0.709276, 0.709686,
0.711027, 0.711696, 0.71266, 0.71376, 0.714313, 0.715732,
0.716114, 0.717526, 0.718094, 0.719171, 0.720164, 0.720799,
0.722177, 0.722553, 0.724017, 0.724494, 0.725685, 0.726562,
0.727296, 0.728609, 0.729003, 0.730499, 0.7309, 0.732199,
0.732954, 0.733802, 0.735029, 0.735467, 0.736969, 0.737314,
0.73871, 0.739344, 0.740316, 0.741437, 0.741943, 0.743427,
0.743738, 0.745215, 0.745734, 0.746835, 0.747836, 0.748433,
0.749871, 0.750173, 0.751712, 0.752127, 0.753357, 0.754226,
0.754935, 0.756301, 0.756622, 0.758199, 0.758525, 0.75988,
0.760609, 0.761448, 0.762717, 0.763086, 0.764674, 0.764932,
0.7664, 0.76699, 0.767971, 0.76912, 0.769565, 0.771134,
0.77135, 0.772914, 0.773369, 0.7745, 0.775511, 0.776059,
0.777578, 0.777781, 0.77942, 0.779751, 0.781034, 0.781891,
0.782567, 0.784006, 0.784227, 0.785915, 0.786139, 0.787569,
0.788263, 0.789089, 0.790417, 0.79069, 0.792395, 0.792535,
0.794102, 0.79463, 0.795623, 0.796812, 0.797171, 0.798858,
0.798943, 0.800629, 0.800994, 0.802167, 0.803192, 0.80367,
0.805304, 0.805367, 0.807148, 0.80736, 0.808717, 0.809558,
0.810188, 0.811729, 0.811808, 0.813654, 0.813731, 0.81527,
0.815913, 0.816723, 0.818135, 0.818269, 0.820143, 0.820112,
0.821823, 0.82226, 0.823273, 0.824519, 0.824752, 0.826614,
0.826505, 0.828371, 0.828602, 0.829838, 0.830884, 0.831258,
0.833063, 0.832916, 0.83491, 0.834943, 0.836412, 0.83723,
0.837788, 0.839487, 0.839347, 0.841436, 0.841288, 0.842994,
0.843559, 0.844341, 0.845885, 0.845803, 0.847943, 0.847641,
0.84958, 0.849874, 0.850918, 0.852255, 0.852286, 0.854429,
0.854007, 0.856164, 0.856178, 0.857515, 0.858597, 0.858799,
0.860887, 0.860391, 0.862742, 0.862474, 0.864133, 0.86491,
0.865346, 0.867315, 0.866799, 0.869308, 0.868768, 0.870768,
0.871194, 0.871928, 0.873706, 0.873236, 0.875856, 0.875063,
0.877418, 0.877449, 0.878549, 0.880057, 0.879709, 0.882381,
0.881366, 0.884079, 0.883675, 0.885211, 0.886361, 0.886225,
0.888875, 0.887681, 0.890749, 0.889871, 0.891918, 0.892612,
0.892793, 0.89533, 0.894014, 0.897426, 0.896035, 0.898679,
0.898797, 0.899425, 0.901734, 0.900374, 0.904108, 0.902161,
0.905505, 0.904901, 0.906139, 0.908071, 0.90677, 0.910797,
0.908235, 0.912422, 0.910891, 0.912971, 0.914313, 0.913214,
0.917499, 0.914229, 0.91948, 0.916701, 0.919987, 0.920406,
0.919733, 0.924232, 0.920071, 0.926799, 0.922175, 0.927353,
0.926215, 0.926387, 0.931053, 0.92556, 0.934733, 0.926838,
0.93559, 0.931289, 0.933392, 0.938172, 0.929868, 0.944872,
0.928308, 0.947691, 0.932586, 0.942619, 0.947433, 0.921422,
1, 9.99201e-15
};
static const float WAVE_SAW_006[DEFAULT_WAVELEN] = {
-0.917083, -0.964345, -0.980454, -0.988292, -0.992761, -0.995528,
-0.997315, -0.998484, -0.999237, -0.999694, -0.999931, -1,
-0.999935, -0.999762, -0.999498, -0.999157, -0.998748, -0.99828,
-0.997759, -0.99719, -0.996576, -0.995922, -0.995229, -0.9945,
-0.993738, -0.992943, -0.992119, -0.991265, -0.990385, -0.989478,
-0.988546, -0.987591, -0.986614, -0.985617, -0.984599, -0.983563,
-0.98251, -0.981441, -0.980358, -0.979261, -0.978151, -0.977031,
-0.975902, -0.974764, -0.973619, -0.972468, -0.971312, -0.970153,
-0.968991, -0.967828, -0.966665, -0.965503, -0.964343, -0.963186,
-0.962033, -0.960885, -0.959742, -0.958606, -0.957476, -0.956354,
-0.955241, -0.954136, -0.953041, -0.951955, -0.950879, -0.949813,
-0.948758, -0.947712, -0.946678, -0.945654, -0.94464, -0.943636,
-0.942643, -0.941659, -0.940685, -0.939719, -0.938763, -0.937814,
-0.936873, -0.935939, -0.935012, -0.934091, -0.933175, -0.932264,
-0.931357, -0.930453, -0.929552, -0.928653, -0.927755, -0.926857,
-0.92596, -0.925062, -0.924163, -0.923262, -0.922359, -0.921452,
-0.920542, -0.919627, -0.918709, -0.917785, -0.916856, -0.915921,
-0.914981, -0.914034, -0.913081, -0.912122, -0.911155, -0.910182,
-0.909203, -0.908217, -0.907224, -0.906224, -0.905219, -0.904207,
-0.903189, -0.902166, -0.901138, -0.900104, -0.899066, -0.898024,
-0.896978, -0.895928, -0.894876, -0.893821, -0.892764, -0.891706,
-0.890647, -0.889587, -0.888527, -0.887467, -0.886409, -0.885351,
-0.884296, -0.883242, -0.882191, -0.881143, -0.880098, -0.879057,
-0.878019, -0.876986, -0.875957, -0.874932, -0.873912, -0.872897,
-0.871887, -0.870882, -0.869882, -0.868886, -0.867896, -0.866911,
-0.86593, -0.864953, -0.863982, -0.863014, -0.86205, -0.86109,
-0.860134, -0.859181, -0.85823, -0.857282, -0.856336, -0.855392,
-0.85445, -0.853508, -0.852567, -0.851627, -0.850686, -0.849745,
-0.848804, -0.847861, -0.846917, -0.845971, -0.845023, -0.844072,
-0.843119, -0.842163, -0.841204, -0.840242, -0.839276, -0.838307,
-0.837334, -0.836357, -0.835376, -0.834391, -0.833402, -0.832409,
-0.831412, -0.830412, -0.829407, -0.828399, -0.827388, -0.826373,
-0.825355, -0.824334, -0.823311, -0.822285, -0.821257, -0.820227,
-0.819195, -0.818162, -0.817128, -0.816093, -0.815057, -0.814022,
-0.812987, -0.811952, -0.810918, -0.809884, -0.808853, -0.807822,
-0.806794, -0.805768, -0.804744, -0.803722, -0.802703, -0.801687,
-0.800674, -0.799664, -0.798657, -0.797653, -0.796653, -0.795656,
-0.794662, -0.793672, -0.792685, -0.791701, -0.79072, -0.789742,
-0.788767, -0.787794, -0.786825, -0.785857, -0.784892, -0.783929,
-0.782967, -0.782007, -0.781048, -0.780091, -0.779134, -0.778177,
-0.777221, -0.776264, -0.775308, -0.774351, -0.773393, -0.772434,
-0.771474, -0.770512, -0.769549, -0.768584, -0.767617, -0.766647,
-0.765675, -0.764701, -0.763724, -0.762745, -0.761763, -0.760778,
-0.75979, -0.758799, -0.757805, -0.756809, -0.755809, -0.754807,
-0.753803, -0.752796, -0.751786, -0.750774, -0.74976, -0.748745,
-0.747727, -0.746708, -0.745687, -0.744665, -0.743642, -0.742619,
-0.741595, -0.740571, -0.739546, -0.738522, -0.737498, -0.736475,
-0.735452, -0.734431, -0.73341, -0.732391, -0.731374, -0.730359,
-0.729345, -0.728333, -0.727324, -0.726316, -0.725311, -0.724309,
-0.723309, -0.722311, -0.721316, -0.720323, -0.719333, -0.718346,
-0.717361, -0.716378, -0.715397, -0.714419, -0.713442, -0.712468,
-0.711495, -0.710524, -0.709555, -0.708587, -0.70762, -0.706653,
-0.705688, -0.704723, -0.703758, -0.702794, -0.70183, -0.700865,
-0.6999, -0.698934, -0.697967, -0.696999, -0.696031, -0.69506,
-0.694089, -0.693115, -0.69214, -0.691163, -0.690184, -0.689203,
-0.68822, -0.687235, -0.686247, -0.685257, -0.684265, -0.683271,
-0.682274, -0.681275, -0.680274, -0.679271, -0.678266, -0.67726,
-0.676251, -0.675241, -0.674229, -0.673216, -0.672202, -0.671186,
-0.67017, -0.669153, -0.668135, -0.667117, -0.666099, -0.665081,
-0.664063, -0.663045, -0.662028, -0.661012, -0.659996, -0.658982,
-0.657968, -0.656956, -0.655946, -0.654937, -0.653929, -0.652924,
-0.65192, -0.650918, -0.649918, -0.64892, -0.647925, -0.646931,
-0.645939, -0.644949, -0.643962, -0.642976, -0.641992, -0.64101,
-0.64003, -0.639051, -0.638074, -0.637099, -0.636124, -0.635151,
-0.634179, -0.633208, -0.632237, -0.631267, -0.630298, -0.629328,
-0.628359, -0.627389, -0.62642, -0.62545, -0.624479, -0.623507,
-0.622535, -0.621562, -0.620587, -0.619611, -0.618634, -0.617655,
-0.616675, -0.615693, -0.614709, -0.613724, -0.612736, -0.611747,
-0.610756, -0.609763, -0.608768, -0.607771, -0.606772, -0.605772,
-0.60477, -0.603766, -0.602761, -0.601754, -0.600746, -0.599737,
-0.598727, -0.597715, -0.596703, -0.59569, -0.594677, -0.593663,
-0.592649, -0.591635, -0.59062, -0.589606, -0.588593, -0.58758,
-0.586567, -0.585556, -0.584545, -0.583535, -0.582527, -0.581519,
-0.580513, -0.579509, -0.578506, -0.577504, -0.576505, -0.575507,
-0.57451, -0.573516, -0.572523, -0.571532, -0.570543, -0.569555,
-0.568569, -0.567585, -0.566602, -0.56562, -0.56464, -0.563662,
-0.562684, -0.561708, -0.560732, -0.559758, -0.558784, -0.55781,
-0.556837, -0.555865, -0.554892, -0.553919, -0.552947, -0.551974,
-0.551, -0.550026, -0.549051, -0.548076, -0.547099, -0.546122,
-0.545143, -0.544163, -0.543182, -0.542199, -0.541215, -0.54023,
-0.539242, -0.538254, -0.537263, -0.536271, -0.535277, -0.534282,
-0.533285, -0.532286, -0.531286, -0.530285, -0.529282, -0.528278,
-0.527272, -0.526266, -0.525258, -0.524249, -0.52324, -0.52223,
-0.521219, -0.520208, -0.519197, -0.518186, -0.517174, -0.516163,
-0.515151, -0.51414, -0.51313, -0.51212, -0.511111, -0.510103,
-0.509096, -0.50809, -0.507085, -0.506081, -0.505079, -0.504078,
-0.503078, -0.50208, -0.501083, -0.500088, -0.499094, -0.498102,
-0.497112, -0.496123, -0.495135, -0.494149, -0.493165, -0.492181,
-0.491199, -0.490218, -0.489238, -0.48826, -0.487282, -0.486305,
-0.485328, -0.484352, -0.483377, -0.482402, -0.481427, -0.480452,
-0.479477, -0.478502, -0.477527, -0.476551, -0.475575, -0.474598,
-0.47362, -0.472641, -0.471662, -0.470681, -0.469699, -0.468716,
-0.467732, -0.466746, -0.465759, -0.464771, -0.463781, -0.462789,
-0.461796, -0.460802, -0.459806, -0.458809, -0.45781, -0.456811,
-0.455809, -0.454807, -0.453803, -0.452799, -0.451793, -0.450787,
-0.449779, -0.448771, -0.447763, -0.446754, -0.445744, -0.444735,
-0.443725, -0.442716, -0.441706, -0.440697, -0.439688, -0.43868,
-0.437672, -0.436665, -0.435659, -0.434653, -0.433649, -0.432646,
-0.431644, -0.430643, -0.429643, -0.428645, -0.427648, -0.426652,
-0.425658, -0.424665, -0.423673, -0.422683, -0.421695, -0.420707,
-0.419721, -0.418737, -0.417753, -0.41677, -0.415789, -0.414808,
-0.413829, -0.41285, -0.411872, -0.410894, -0.409917, -0.40894,
-0.407964, -0.406987, -0.406011, -0.405034, -0.404057, -0.40308,
-0.402103, -0.401125, -0.400146, -0.399167, -0.398186, -0.397205,
-0.396223, -0.39524, -0.394255, -0.393269, -0.392283, -0.391294,
-0.390305, -0.389314, -0.388322, -0.387328, -0.386333, -0.385337,
-0.38434, -0.383341, -0.382341, -0.38134, -0.380338, -0.379335,
-0.378331, -0.377326, -0.37632, -0.375314, -0.374307, -0.373299,
-0.372291, -0.371283, -0.370275, -0.369267, -0.368258, -0.36725,
-0.366243, -0.365235, -0.364228, -0.363222, -0.362217, -0.361212,
-0.360208, -0.359205, -0.358203, -0.357202, -0.356202, -0.355204,
-0.354207, -0.35321, -0.352216, -0.351222, -0.35023, -0.349239,
-0.34825, -0.347261, -0.346274, -0.345288, -0.344303, -0.343319,
-0.342337, -0.341355, -0.340374, -0.339394, -0.338414, -0.337435,
-0.336457, -0.335479, -0.334501, -0.333523, -0.332546, -0.331568,
-0.33059, -0.329612, -0.328634, -0.327655, -0.326676, -0.325696,
-0.324715, -0.323733, -0.322751, -0.321767, -0.320783, -0.319797,
-0.318811, -0.317823, -0.316834, -0.315843, -0.314852, -0.313859,
-0.312865, -0.31187, -0.310873, -0.309875, -0.308876, -0.307877,
-0.306875, -0.305873, -0.304871, -0.303867, -0.302862, -0.301857,
-0.300851, -0.299845, -0.298838, -0.297831, -0.296824, -0.295817,
-0.294809, -0.293802, -0.292795, -0.291788, -0.290782, -0.289776,
-0.288771, -0.287767, -0.286763, -0.28576, -0.284759, -0.283758,
-0.282758, -0.281759, -0.280761, -0.279765, -0.27877, -0.277776,
-0.276783, -0.275791, -0.274801, -0.273812, -0.272824, -0.271837,
-0.270851, -0.269866, -0.268882, -0.267899, -0.266917, -0.265936,
-0.264956, -0.263976, -0.262996, -0.262017, -0.261038, -0.26006,
-0.259081, -0.258103, -0.257124, -0.256146, -0.255167, -0.254187,
-0.253208, -0.252227, -0.251246, -0.250264, -0.249282, -0.248298,
-0.247314, -0.246329, -0.245342, -0.244355, -0.243366, -0.242376,
-0.241385, -0.240393, -0.239399, -0.238405, -0.237409, -0.236412,
-0.235414, -0.234415, -0.233415, -0.232414, -0.231412, -0.230409,
-0.229405, -0.228401, -0.227396, -0.226391, -0.225385, -0.224379,
-0.223372, -0.222366, -0.221359, -0.220352, -0.219346, -0.21834,
-0.217334, -0.216329, -0.215324, -0.21432, -0.213316, -0.212313,
-0.211311, -0.21031, -0.20931, -0.208311, -0.207313, -0.206317,
-0.205321, -0.204326, -0.203333, -0.202341, -0.20135, -0.20036,
-0.199371, -0.198383, -0.197397, -0.196411, -0.195426, -0.194443,
-0.19346, -0.192478, -0.191496, -0.190515, -0.189535, -0.188555,
-0.187576, -0.186597, -0.185618, -0.184639, -0.18366, -0.182681,
-0.181701, -0.180722, -0.179741, -0.178761, -0.17778, -0.176798,
-0.175815, -0.174832, -0.173848, -0.172863, -0.171876, -0.170889,
-0.169901, -0.168911, -0.167921, -0.166929, -0.165936, -0.164942,
-0.163947, -0.162951, -0.161954, -0.160956, -0.159956, -0.158956,
-0.157955, -0.156953, -0.15595, -0.154946, -0.153942, -0.152937,
-0.151932, -0.150926, -0.14992, -0.148914, -0.147908, -0.146902,
-0.145896, -0.14489, -0.143885, -0.142879, -0.141875, -0.14087,
-0.139867, -0.138864, -0.137862, -0.136861, -0.135861, -0.134861,
-0.133863, -0.132866, -0.13187, -0.130875, -0.129881, -0.128888,
-0.127896, -0.126906, -0.125916, -0.124928, -0.12394, -0.122954,
-0.121969, -0.120984, -0.120001, -0.119018, -0.118036, -0.117055,
-0.116074, -0.115093, -0.114113, -0.113134, -0.112154, -0.111175,
-0.110196, -0.109216, -0.108237, -0.107257, -0.106277, -0.105296,
-0.104315, -0.103333, -0.102351, -0.101367, -0.100383, -0.0993984,
-0.0984126, -0.0974258, -0.0964379, -0.095449, -0.0944589, -0.0934678,
-0.0924756, -0.0914822, -0.0904877, -0.0894921, -0.0884955, -0.0874978,
-0.0864991, -0.0854994, -0.0844987, -0.0834973, -0.082495, -0.081492,
-0.0804883, -0.079484, -0.0784793, -0.0774741, -0.0764686, -0.0754629,
-0.074457, -0.0734511, -0.0724453, -0.0714396, -0.0704341, -0.069429,
-0.0684242, -0.06742, -0.0664163, -0.0654133, -0.0644111, -0.0634096,
-0.062409, -0.0614094, -0.0604107, -0.059413, -0.0584163, -0.0574208,
-0.0564263, -0.0554329, -0.0544407, -0.0534495, -0.0524595, -0.0514705,
-0.0504826, -0.0494957, -0.0485098, -0.0475248, -0.0465407, -0.0455574,
-0.0445748, -0.043593, -0.0426117, -0.0416309, -0.0406506, -0.0396706,
-0.0386909, -0.0377113, -0.0367318, -0.0357523, -0.0347726, -0.0337928,
-0.0328126, -0.0318321, -0.0308511, -0.0298695, -0.0288873, -0.0279043,
-0.0269206, -0.0259361, -0.0249506, -0.0239642, -0.0229768, -0.0219884,
-0.0209989, -0.0200083, -0.0190166, -0.0180238, -0.0170298, -0.0160348,
-0.0150387, -0.0140416, -0.0130434, -0.0120443, -0.0110441, -0.0100432,
-0.00904134, -0.00803876, -0.00703549, -0.0060316, -0.00502717, -0.00402229,
-0.00301704, -0.00201152, -0.0010058, 3.10862e-15, 0.0010058, 0.00201152,
0.00301704, 0.00402229, 0.00502717, 0.0060316, 0.00703549, 0.00803876,
0.00904134, 0.0100432, 0.0110441, 0.0120443, 0.0130434, 0.0140416,
0.0150387, 0.0160348, 0.0170298, 0.0180238, 0.0190166, 0.0200083,
0.0209989, 0.0219884, 0.0229768, 0.0239642, 0.0249506, 0.0259361,
0.0269206, 0.0279043, 0.0288873, 0.0298695, 0.0308511, 0.0318321,
0.0328126, 0.0337928, 0.0347726, 0.0357523, 0.0367318, 0.0377113,
0.0386909, 0.0396706, 0.0406506, 0.0416309, 0.0426117, 0.043593,
0.0445748, 0.0455574, 0.0465407, 0.0475248, 0.0485098, 0.0494957,
0.0504826, 0.0514705, 0.0524595, 0.0534495, 0.0544407, 0.0554329,
0.0564263, 0.0574208, 0.0584163, 0.059413, 0.0604107, 0.0614094,
0.062409, 0.0634096, 0.0644111, 0.0654133, 0.0664163, 0.06742,
0.0684242, 0.069429, 0.0704341, 0.0714396, 0.0724453, 0.0734511,
0.074457, 0.0754629, 0.0764686, 0.0774741, 0.0784793, 0.079484,
0.0804883, 0.081492, 0.082495, 0.0834973, 0.0844987, 0.0854994,
0.0864991, 0.0874978, 0.0884955, 0.0894921, 0.0904877, 0.0914822,
0.0924756, 0.0934678, 0.0944589, 0.095449, 0.0964379, 0.0974258,
0.0984126, 0.0993984, 0.100383, 0.101367, 0.102351, 0.103333,
0.104315, 0.105296, 0.106277, 0.107257, 0.108237, 0.109216,
0.110196, 0.111175, 0.112154, 0.113134, 0.114113, 0.115093,
0.116074, 0.117055, 0.118036, 0.119018, 0.120001, 0.120984,
0.121969, 0.122954, 0.12394, 0.124928, 0.125916, 0.126906,
0.127896, 0.128888, 0.129881, 0.130875, 0.13187, 0.132866,
0.133863, 0.134861, 0.135861, 0.136861, 0.137862, 0.138864,
0.139867, 0.14087, 0.141875, 0.142879, 0.143885, 0.14489,
0.145896, 0.146902, 0.147908, 0.148914, 0.14992, 0.150926,
0.151932, 0.152937, 0.153942, 0.154946, 0.15595, 0.156953,
0.157955, 0.158956, 0.159956, 0.160956, 0.161954, 0.162951,
0.163947, 0.164942, 0.165936, 0.166929, 0.167921, 0.168911,
0.169901, 0.170889, 0.171876, 0.172863, 0.173848, 0.174832,
0.175815, 0.176798, 0.17778, 0.178761, 0.179741, 0.180722,
0.181701, 0.182681, 0.18366, 0.184639, 0.185618, 0.186597,
0.187576, 0.188555, 0.189535, 0.190515, 0.191496, 0.192478,
0.19346, 0.194443, 0.195426, 0.196411, 0.197397, 0.198383,
0.199371, 0.20036, 0.20135, 0.202341, 0.203333, 0.204326,
0.205321, 0.206317, 0.207313, 0.208311, 0.20931, 0.21031,
0.211311, 0.212313, 0.213316, 0.21432, 0.215324, 0.216329,
0.217334, 0.21834, 0.219346, 0.220352, 0.221359, 0.222366,
0.223372, 0.224379, 0.225385, 0.226391, 0.227396, 0.228401,
0.229405, 0.230409, 0.231412, 0.232414, 0.233415, 0.234415,
0.235414, 0.236412, 0.237409, 0.238405, 0.239399, 0.240393,
0.241385, 0.242376, 0.243366, 0.244355, 0.245342, 0.246329,
0.247314, 0.248298, 0.249282, 0.250264, 0.251246, 0.252227,
0.253208, 0.254187, 0.255167, 0.256146, 0.257124, 0.258103,
0.259081, 0.26006, 0.261038, 0.262017, 0.262996, 0.263976,
0.264956, 0.265936, 0.266917, 0.267899, 0.268882, 0.269866,
0.270851, 0.271837, 0.272824, 0.273812, 0.274801, 0.275791,
0.276783, 0.277776, 0.27877, 0.279765, 0.280761, 0.281759,
0.282758, 0.283758, 0.284759, 0.28576, 0.286763, 0.287767,
0.288771, 0.289776, 0.290782, 0.291788, 0.292795, 0.293802,
0.294809, 0.295817, 0.296824, 0.297831, 0.298838, 0.299845,
0.300851, 0.301857, 0.302862, 0.303867, 0.304871, 0.305873,
0.306875, 0.307877, 0.308876, 0.309875, 0.310873, 0.31187,
0.312865, 0.313859, 0.314852, 0.315843, 0.316834, 0.317823,
0.318811, 0.319797, 0.320783, 0.321767, 0.322751, 0.323733,
0.324715, 0.325696, 0.326676, 0.327655, 0.328634, 0.329612,
0.33059, 0.331568, 0.332546, 0.333523, 0.334501, 0.335479,
0.336457, 0.337435, 0.338414, 0.339394, 0.340374, 0.341355,
0.342337, 0.343319, 0.344303, 0.345288, 0.346274, 0.347261,
0.34825, 0.349239, 0.35023, 0.351222, 0.352216, 0.35321,
0.354207, 0.355204, 0.356202, 0.357202, 0.358203, 0.359205,
0.360208, 0.361212, 0.362217, 0.363222, 0.364228, 0.365235,
0.366243, 0.36725, 0.368258, 0.369267, 0.370275, 0.371283,
0.372291, 0.373299, 0.374307, 0.375314, 0.37632, 0.377326,
0.378331, 0.379335, 0.380338, 0.38134, 0.382341, 0.383341,
0.38434, 0.385337, 0.386333, 0.387328, 0.388322, 0.389314,
0.390305, 0.391294, 0.392283, 0.393269, 0.394255, 0.39524,
0.396223, 0.397205, 0.398186, 0.399167, 0.400146, 0.401125,
0.402103, 0.40308, 0.404057, 0.405034, 0.406011, 0.406987,
0.407964, 0.40894, 0.409917, 0.410894, 0.411872, 0.41285,
0.413829, 0.414808, 0.415789, 0.41677, 0.417753, 0.418737,
0.419721, 0.420707, 0.421695, 0.422683, 0.423673, 0.424665,
0.425658, 0.426652, 0.427648, 0.428645, 0.429643, 0.430643,
0.431644, 0.432646, 0.433649, 0.434653, 0.435659, 0.436665,
0.437672, 0.43868, 0.439688, 0.440697, 0.441706, 0.442716,
0.443725, 0.444735, 0.445744, 0.446754, 0.447763, 0.448771,
0.449779, 0.450787, 0.451793, 0.452799, 0.453803, 0.454807,
0.455809, 0.456811, 0.45781, 0.458809, 0.459806, 0.460802,
0.461796, 0.462789, 0.463781, 0.464771, 0.465759, 0.466746,
0.467732, 0.468716, 0.469699, 0.470681, 0.471662, 0.472641,
0.47362, 0.474598, 0.475575, 0.476551, 0.477527, 0.478502,
0.479477, 0.480452, 0.481427, 0.482402, 0.483377, 0.484352,
0.485328, 0.486305, 0.487282, 0.48826, 0.489238, 0.490218,
0.491199, 0.492181, 0.493165, 0.494149, 0.495135, 0.496123,
0.497112, 0.498102, 0.499094, 0.500088, 0.501083, 0.50208,
0.503078, 0.504078, 0.505079, 0.506081, 0.507085, 0.50809,
0.509096, 0.510103, 0.511111, 0.51212, 0.51313, 0.51414,
0.515151, 0.516163, 0.517174, 0.518186, 0.519197, 0.520208,
0.521219, 0.52223, 0.52324, 0.524249, 0.525258, 0.526266,
0.527272, 0.528278, 0.529282, 0.530285, 0.531286, 0.532286,
0.533285, 0.534282, 0.535277, 0.536271, 0.537263, 0.538254,
0.539242, 0.54023, 0.541215, 0.542199, 0.543182, 0.544163,
0.545143, 0.546122, 0.547099, 0.548076, 0.549051, 0.550026,
0.551, 0.551974, 0.552947, 0.553919, 0.554892, 0.555865,
0.556837, 0.55781, 0.558784, 0.559758, 0.560732, 0.561708,
0.562684, 0.563662, 0.56464, 0.56562, 0.566602, 0.567585,
0.568569, 0.569555, 0.570543, 0.571532, 0.572523, 0.573516,
0.57451, 0.575507, 0.576505, 0.577504, 0.578506, 0.579509,
0.580513, 0.581519, 0.582527, 0.583535, 0.584545, 0.585556,
0.586567, 0.58758, 0.588593, 0.589606, 0.59062, 0.591635,
0.592649, 0.593663, 0.594677, 0.59569, 0.596703, 0.597715,
0.598727, 0.599737, 0.600746, 0.601754, 0.602761, 0.603766,
0.60477, 0.605772, 0.606772, 0.607771, 0.608768, 0.609763,
0.610756, 0.611747, 0.612736, 0.613724, 0.614709, 0.615693,
0.616675, 0.617655, 0.618634, 0.619611, 0.620587, 0.621562,
0.622535, 0.623507, 0.624479, 0.62545, 0.62642, 0.627389,
0.628359, 0.629328, 0.630298, 0.631267, 0.632237, 0.633208,
0.634179, 0.635151, 0.636124, 0.637099, 0.638074, 0.639051,
0.64003, 0.64101, 0.641992, 0.642976, 0.643962, 0.644949,
0.645939, 0.646931, 0.647925, 0.64892, 0.649918, 0.650918,
0.65192, 0.652924, 0.653929, 0.654937, 0.655946, 0.656956,
0.657968, 0.658982, 0.659996, 0.661012, 0.662028, 0.663045,
0.664063, 0.665081, 0.666099, 0.667117, 0.668135, 0.669153,
0.67017, 0.671186, 0.672202, 0.673216, 0.674229, 0.675241,
0.676251, 0.67726, 0.678266, 0.679271, 0.680274, 0.681275,
0.682274, 0.683271, 0.684265, 0.685257, 0.686247, 0.687235,
0.68822, 0.689203, 0.690184, 0.691163, 0.69214, 0.693115,
0.694089, 0.69506, 0.696031, 0.696999, 0.697967, 0.698934,
0.6999, 0.700865, 0.70183, 0.702794, 0.703758, 0.704723,
0.705688, 0.706653, 0.70762, 0.708587, 0.709555, 0.710524,
0.711495, 0.712468, 0.713442, 0.714419, 0.715397, 0.716378,
0.717361, 0.718346, 0.719333, 0.720323, 0.721316, 0.722311,
0.723309, 0.724309, 0.725311, 0.726316, 0.727324, 0.728333,
0.729345, 0.730359, 0.731374, 0.732391, 0.73341, 0.734431,
0.735452, 0.736475, 0.737498, 0.738522, 0.739546, 0.740571,
0.741595, 0.742619, 0.743642, 0.744665, 0.745687, 0.746708,
0.747727, 0.748745, 0.74976, 0.750774, 0.751786, 0.752796,
0.753803, 0.754807, 0.755809, 0.756809, 0.757805, 0.758799,
0.75979, 0.760778, 0.761763, 0.762745, 0.763724, 0.764701,
0.765675, 0.766647, 0.767617, 0.768584, 0.769549, 0.770512,
0.771474, 0.772434, 0.773393, 0.774351, 0.775308, 0.776264,
0.777221, 0.778177, 0.779134, 0.780091, 0.781048, 0.782007,
0.782967, 0.783929, 0.784892, 0.785857, 0.786825, 0.787794,
0.788767, 0.789742, 0.79072, 0.791701, 0.792685, 0.793672,
0.794662, 0.795656, 0.796653, 0.797653, 0.798657, 0.799664,
0.800674, 0.801687, 0.802703, 0.803722, 0.804744, 0.805768,
0.806794, 0.807822, 0.808853, 0.809884, 0.810918, 0.811952,
0.812987, 0.814022, 0.815057, 0.816093, 0.817128, 0.818162,
0.819195, 0.820227, 0.821257, 0.822285, 0.823311, 0.824334,
0.825355, 0.826373, 0.827388, 0.828399, 0.829407, 0.830412,
0.831412, 0.832409, 0.833402, 0.834391, 0.835376, 0.836357,
0.837334, 0.838307, 0.839276, 0.840242, 0.841204, 0.842163,
0.843119, 0.844072, 0.845023, 0.845971, 0.846917, 0.847861,
0.848804, 0.849745, 0.850686, 0.851627, 0.852567, 0.853508,
0.85445, 0.855392, 0.856336, 0.857282, 0.85823, 0.859181,
0.860134, 0.86109, 0.86205, 0.863014, 0.863982, 0.864953,
0.86593, 0.866911, 0.867896, 0.868886, 0.869882, 0.870882,
0.871887, 0.872897, 0.873912, 0.874932, 0.875957, 0.876986,
0.878019, 0.879057, 0.880098, 0.881143, 0.882191, 0.883242,
0.884296, 0.885351, 0.886409, 0.887467, 0.888527, 0.889587,
0.890647, 0.891706, 0.892764, 0.893821, 0.894876, 0.895928,
0.896978, 0.898024, 0.899066, 0.900104, 0.901138, 0.902166,
0.903189, 0.904207, 0.905219, 0.906224, 0.907224, 0.908217,
0.909203, 0.910182, 0.911155, 0.912122, 0.913081, 0.914034,
0.914981, 0.915921, 0.916856, 0.917785, 0.918709, 0.919627,
0.920542, 0.921452, 0.922359, 0.923262, 0.924163, 0.925062,
0.92596, 0.926857, 0.927755, 0.928653, 0.929552, 0.930453,
0.931357, 0.932264, 0.933175, 0.934091, 0.935012, 0.935939,
0.936873, 0.937814, 0.938763, 0.939719, 0.940685, 0.941659,
0.942643, 0.943636, 0.94464, 0.945654, 0.946678, 0.947712,
0.948758, 0.949813, 0.950879, 0.951955, 0.953041, 0.954136,
0.955241, 0.956354, 0.957476, 0.958606, 0.959742, 0.960885,
0.962033, 0.963186, 0.964343, 0.965503, 0.966665, 0.967828,
0.968991, 0.970153, 0.971312, 0.972468, 0.973619, 0.974764,
0.975902, 0.977031, 0.978151, 0.979261, 0.980358, 0.981441,
0.98251, 0.983563, 0.984599, 0.985617, 0.986614, 0.987591,
0.988546, 0.989478, 0.990385, 0.991265, 0.992119, 0.992943,
0.993738, 0.9945, 0.995229, 0.995922, 0.996576, 0.99719,
0.997759, 0.99828, 0.998748, 0.999157, 0.999498, 0.999762,
0.999935, 1, 0.999931, 0.999694, 0.999237, 0.998484,
0.997315, 0.995528, 0.992761, 0.988292, 0.980454, 0.964345,
0.917083, 4.66294e-15
};
static const float WAVE_SAW_018[DEFAULT_WAVELEN] = {
-1, -0.765148, -0.902286, -0.803783, -0.878287, -0.816398,
-0.866677, -0.822105, -0.859325, -0.824998, -0.853932, -0.82647,
-0.849603, -0.827125, -0.845917, -0.827263, -0.842652, -0.827055,
-0.839677, -0.826599, -0.836913, -0.825962, -0.834309, -0.825184,
-0.831828, -0.824295, -0.829448, -0.823317, -0.827149, -0.822263,
-0.824919, -0.821146, -0.822748, -0.819974, -0.820629, -0.818753,
-0.818556, -0.817489, -0.816524, -0.816185, -0.81453, -0.814845,
-0.81257, -0.813472, -0.810642, -0.812067, -0.808745, -0.810634,
-0.806876, -0.809173, -0.805033, -0.807687, -0.803216, -0.806176,
-0.801422, -0.804641, -0.799651, -0.803085, -0.797902, -0.801507,
-0.796174, -0.799909, -0.794465, -0.798292, -0.792774, -0.796657,
-0.791101, -0.795005, -0.789445, -0.793337, -0.787805, -0.791653,
-0.786179, -0.789955, -0.784567, -0.788245, -0.782968, -0.786521,
-0.78138, -0.784787, -0.779804, -0.783042, -0.778237, -0.781287,
-0.776679, -0.779525, -0.775129, -0.777755, -0.773586, -0.775978,
-0.772049, -0.774196, -0.770517, -0.772409, -0.768989, -0.770619,
-0.767464, -0.768826, -0.765942, -0.767032, -0.76442, -0.765236,
-0.7629, -0.76344, -0.761379, -0.761645, -0.759856, -0.759852,
-0.758332, -0.758061, -0.756805, -0.756273, -0.755275, -0.754489,
-0.753741, -0.752709, -0.752202, -0.750934, -0.750657, -0.749165,
-0.749107, -0.747401, -0.747551, -0.745645, -0.745988, -0.743895,
-0.744418, -0.742152, -0.74284, -0.740417, -0.741255, -0.738689,
-0.739662, -0.73697, -0.738061, -0.735259, -0.736451, -0.733556,
-0.734834, -0.731861, -0.733208, -0.730175, -0.731573, -0.728497,
-0.729931, -0.726827, -0.72828, -0.725165, -0.726622, -0.723511,
-0.724955, -0.721865, -0.723282, -0.720226, -0.721601, -0.718594,
-0.719913, -0.716968, -0.718219, -0.715349, -0.716518, -0.713736,
-0.714812, -0.712128, -0.713101, -0.710525, -0.711385, -0.708927,
-0.709665, -0.707333, -0.707941, -0.705742, -0.706213, -0.704155,
-0.704483, -0.702569, -0.702751, -0.700986, -0.701017, -0.699404,
-0.699282, -0.697823, -0.697546, -0.696243, -0.69581, -0.694662,
-0.694074, -0.693081, -0.69234, -0.691498, -0.690607, -0.689914,
-0.688875, -0.688328, -0.687146, -0.686739, -0.68542, -0.685147,
-0.683697, -0.683552, -0.681977, -0.681954, -0.680261, -0.680351,
-0.678549, -0.678744, -0.676842, -0.677133, -0.675139, -0.675517,
-0.673441, -0.673896, -0.671748, -0.67227, -0.67006, -0.670639,
-0.668378, -0.669002, -0.6667, -0.66736, -0.665029, -0.665713,
-0.663362, -0.66406, -0.661701, -0.662402, -0.660045, -0.660739,
-0.658394, -0.659071, -0.656748, -0.657398, -0.655108, -0.65572,
-0.653471, -0.654037, -0.651839, -0.652351, -0.650212, -0.65066,
-0.648588, -0.648965, -0.646968, -0.647267, -0.645351, -0.645566,
-0.643737, -0.643862, -0.642126, -0.642155, -0.640517, -0.640447,
-0.63891, -0.638737, -0.637305, -0.637025, -0.6357, -0.635312,
-0.634097, -0.633599, -0.632494, -0.631885, -0.630891, -0.630172,
-0.629288, -0.628459, -0.627684, -0.626747, -0.626079, -0.625036,
-0.624472, -0.623327, -0.622864, -0.62162, -0.621254, -0.619914,
-0.619642, -0.618212, -0.618027, -0.616511, -0.616409, -0.614814,
-0.614788, -0.61312, -0.613164, -0.61143, -0.611536, -0.609743,
-0.609905, -0.60806, -0.60827, -0.60638, -0.606631, -0.604705,
-0.604988, -0.603033, -0.603341, -0.601365, -0.60169, -0.599702,
-0.600035, -0.598042, -0.598376, -0.596387, -0.596713, -0.594735,
-0.595046, -0.593087, -0.593376, -0.591443, -0.591702, -0.589803,
-0.590024, -0.588166, -0.588343, -0.586532, -0.586659, -0.584901,
-0.584972, -0.583273, -0.583282, -0.581647, -0.58159, -0.580024,
-0.579896, -0.578403, -0.5782, -0.576783, -0.576502, -0.575165,
-0.574803, -0.573549, -0.573102, -0.571933, -0.571401, -0.570318,
-0.5697, -0.568703, -0.567998, -0.567088, -0.566296, -0.565473,
-0.564595, -0.563858, -0.562894, -0.562241, -0.561195, -0.560624,
-0.559497, -0.559005, -0.5578, -0.557384, -0.556105, -0.555762,
-0.554412, -0.554138, -0.552721, -0.552511, -0.551032, -0.550882,
-0.549346, -0.54925, -0.547663, -0.547615, -0.545983, -0.545978,
-0.544305, -0.544337, -0.542631, -0.542693, -0.54096, -0.541046,
-0.539292, -0.539396, -0.537627, -0.537743, -0.535966, -0.536086,
-0.534308, -0.534426, -0.532653, -0.532763, -0.531001, -0.531096,
-0.529353, -0.529427, -0.527707, -0.527755, -0.526064, -0.526079,
-0.524424, -0.524401, -0.522787, -0.522721, -0.521152, -0.521038,
-0.51952, -0.519353, -0.517889, -0.517666, -0.516261, -0.515977,
-0.514634, -0.514287, -0.513008, -0.512596, -0.511384, -0.510903,
-0.509761, -0.509209, -0.508138, -0.507515, -0.506516, -0.505821,
-0.504894, -0.504126, -0.503272, -0.502432, -0.50165, -0.500738,
-0.500027, -0.499045, -0.498403, -0.497352, -0.496779, -0.495661,
-0.495153, -0.493971, -0.493526, -0.492282, -0.491897, -0.490595,
-0.490267, -0.48891, -0.488634, -0.487227, -0.487, -0.485546,
-0.485363, -0.483868, -0.483723, -0.482192, -0.482082, -0.480519,
-0.480437, -0.478848, -0.47879, -0.47718, -0.47714, -0.475515,
-0.475488, -0.473852, -0.473832, -0.472192, -0.472174, -0.470535,
-0.470513, -0.468881, -0.46885, -0.46723, -0.467183, -0.465581,
-0.465514, -0.463935, -0.463843, -0.462291, -0.462169, -0.460649,
-0.460493, -0.45901, -0.458815, -0.457373, -0.457135, -0.455738,
-0.455453, -0.454104, -0.453769, -0.452472, -0.452084, -0.450841,
-0.450397, -0.449212, -0.44871, -0.447583, -0.447021, -0.445956,
-0.445332, -0.444329, -0.443643, -0.442702, -0.441953, -0.441075,
-0.440263, -0.439448, -0.438574, -0.437821, -0.436884, -0.436193,
-0.435196, -0.434565, -0.433508, -0.432936, -0.431822, -0.431306,
-0.430136, -0.429674, -0.428452, -0.428041, -0.426769, -0.426406,
-0.425089, -0.424769, -0.423409, -0.423131, -0.421732, -0.421491,
-0.420057, -0.419848, -0.418385, -0.418203, -0.416714, -0.416556,
-0.415046, -0.414906, -0.41338, -0.413255, -0.411717, -0.4116,
-0.410056, -0.409943, -0.408398, -0.408284, -0.406742, -0.406622,
-0.405088, -0.404958, -0.403437, -0.403292, -0.401788, -0.401623,
-0.400142, -0.399952, -0.398497, -0.398279, -0.396855, -0.396604,
-0.395214, -0.394927, -0.393575, -0.393248, -0.391938, -0.391568,
-0.390303, -0.389887, -0.388668, -0.388204, -0.387035, -0.38652,
-0.385403, -0.384835, -0.383772, -0.38315, -0.382141, -0.381464,
-0.380511, -0.379778, -0.378881, -0.378091, -0.377251, -0.376405,
-0.375621, -0.374719, -0.37399, -0.373033, -0.372359, -0.371348,
-0.370727, -0.369664, -0.369095, -0.36798, -0.367461, -0.366298,
-0.365826, -0.364617, -0.36419, -0.362938, -0.362552, -0.36126,
-0.360912, -0.359584, -0.359271, -0.35791, -0.357628, -0.356237,
-0.355983, -0.354567, -0.354336, -0.352898, -0.352686, -0.351232,
-0.351035, -0.349568, -0.349381, -0.347907, -0.347726, -0.346247,
-0.346067, -0.34459, -0.344407, -0.342935, -0.342745, -0.341282,
-0.34108, -0.339631, -0.339413, -0.337982, -0.337745, -0.336336,
-0.336074, -0.334691, -0.334401, -0.333048, -0.332727, -0.331406,
-0.331051, -0.329767, -0.329373, -0.328128, -0.327695, -0.326491,
-0.326014, -0.324856, -0.324333, -0.323221, -0.322651, -0.321587,
-0.320968, -0.319953, -0.319285, -0.318321, -0.317601, -0.316688,
-0.315917, -0.315056, -0.314233, -0.313423, -0.312549, -0.311791,
-0.310865, -0.310158, -0.309182, -0.308524, -0.3075, -0.30689,
-0.305818, -0.305254, -0.304137, -0.303618, -0.302457, -0.301981,
-0.300779, -0.300342, -0.299102, -0.298702, -0.297426, -0.29706,
-0.295753, -0.295417, -0.29408, -0.293772, -0.29241, -0.292125,
-0.290742, -0.290476, -0.289075, -0.288825, -0.28741, -0.287172,
-0.285748, -0.285517, -0.284087, -0.28386, -0.282429, -0.282201,
-0.280773, -0.280539, -0.279118, -0.278876, -0.277466, -0.277211,
-0.275816, -0.275544, -0.274167, -0.273875, -0.272521, -0.272204,
-0.270876, -0.270532, -0.269232, -0.268858, -0.267591, -0.267182,
-0.26595, -0.265506, -0.264311, -0.263828, -0.262674, -0.262148,
-0.261037, -0.260468, -0.259401, -0.258788, -0.257765, -0.257106,
-0.256131, -0.255424, -0.254496, -0.253742, -0.252862, -0.25206,
-0.251228, -0.250377, -0.249594, -0.248695, -0.247959, -0.247013,
-0.246324, -0.245332, -0.244689, -0.243651, -0.243053, -0.241971,
-0.241416, -0.240293, -0.239777, -0.238615, -0.238138, -0.236938,
-0.236498, -0.235263, -0.234856, -0.233589, -0.233212, -0.231917,
-0.231567, -0.230247, -0.22992, -0.228578, -0.228271, -0.226911,
-0.226621, -0.225246, -0.224969, -0.223583, -0.223314, -0.221921,
-0.221658, -0.220262, -0.22, -0.218605, -0.21834, -0.216949,
-0.216678, -0.215296, -0.215014, -0.213644, -0.213349, -0.211994,
-0.211681, -0.210346, -0.210012, -0.2087, -0.208341, -0.207055,
-0.206669, -0.205411, -0.204995, -0.203769, -0.203319, -0.202129,
-0.201643, -0.200489, -0.199965, -0.198851, -0.198287, -0.197213,
-0.196608, -0.195577, -0.194928, -0.193941, -0.193247, -0.192305,
-0.191566, -0.190669, -0.189885, -0.189034, -0.188204, -0.187399,
-0.186523, -0.185763, -0.184842, -0.184127, -0.183161, -0.182491,
-0.181481, -0.180854, -0.179802, -0.179217, -0.178124, -0.177578,
-0.176447, -0.175938, -0.17477, -0.174298, -0.173095, -0.172655,
-0.171422, -0.171012, -0.169749, -0.169367, -0.168079, -0.16772,
-0.166409, -0.166072, -0.164742, -0.164422, -0.163076, -0.162771,
-0.161412, -0.161117, -0.15975, -0.159462, -0.15809, -0.157805,
-0.156432, -0.156146, -0.154775, -0.154485, -0.153121, -0.152822,
-0.151468, -0.151157, -0.149817, -0.149491, -0.148168, -0.147823,
-0.14652, -0.146153, -0.144874, -0.144482, -0.143229, -0.14281,
-0.141586, -0.141136, -0.139944, -0.13946, -0.138304, -0.137784,
-0.136664, -0.136107, -0.135025, -0.134429, -0.133387, -0.13275,
-0.13175, -0.13107, -0.130113, -0.12939, -0.128477, -0.12771,
-0.126841, -0.126029, -0.125205, -0.124349, -0.123569, -0.122669,
-0.121932, -0.120989, -0.120295, -0.119309, -0.118658, -0.117631,
-0.11702, -0.115953, -0.115381, -0.114275, -0.113742, -0.112599,
-0.112101, -0.110924, -0.110459, -0.10925, -0.108816, -0.107578,
-0.107171, -0.105906, -0.105525, -0.104237, -0.103877, -0.102569,
-0.102228, -0.100903, -0.100577, -0.0992381, -0.0989239, -0.0975753,
-0.0972693, -0.0959143, -0.095613, -0.0942551, -0.0939548, -0.0925977,
-0.0922948, -0.0909421, -0.090633, -0.0892883, -0.0889695, -0.0876363,
-0.0873042, -0.0859859, -0.0856372, -0.0843372, -0.0839686, -0.0826901,
-0.0822985, -0.0810445, -0.0806269, -0.0794003, -0.0789539, -0.0777575,
-0.0772797, -0.0761158, -0.0756043, -0.0744753, -0.0739278, -0.0728357,
-0.0722505, -0.071197, -0.0705723, -0.069559, -0.0688935, -0.0679216,
-0.0672142, -0.0662847, -0.0655346, -0.064648, -0.0638547, -0.0630114,
-0.0621747, -0.0613749, -0.0604948, -0.0597382, -0.0588152, -0.0581012,
-0.0571359, -0.0564638, -0.0554571, -0.0548258, -0.053779, -0.053187,
-0.0521017, -0.0515474, -0.0504253, -0.0499068, -0.04875, -0.0482651,
-0.0470758, -0.0466222, -0.0454028, -0.044978, -0.0437313, -0.0433324,
-0.0420612, -0.0416852, -0.0403926, -0.0400365, -0.0387257, -0.0383862,
-0.0370604, -0.0367341, -0.0353968, -0.0350803, -0.033735, -0.0334248,
-0.032075, -0.0317675, -0.0304167, -0.0301083, -0.0287602, -0.0284475,
-0.0271055, -0.0267848, -0.0254526, -0.0251204, -0.0238013, -0.0234543,
-0.0221518, -0.0217866, -0.0205038, -0.0201174, -0.0188573, -0.0184466,
-0.0172123, -0.0167744, -0.0155687, -0.0151009, -0.0139263, -0.0134262,
-0.0122851, -0.0117504, -0.010645, -0.0100737, -0.00900568, -0.00839604,
-0.0073672, -0.0067177, -0.00572936, -0.00503879, -0.00409204, -0.00335944,
-0.00245507, -0.00167979, -0.000818334, -6.66134e-16, 0.000818334, 0.00167979,
0.00245507, 0.00335944, 0.00409204, 0.00503879, 0.00572936, 0.0067177,
0.0073672, 0.00839604, 0.00900568, 0.0100737, 0.010645, 0.0117504,
0.0122851, 0.0134262, 0.0139263, 0.0151009, 0.0155687, 0.0167744,
0.0172123, 0.0184466, 0.0188573, 0.0201174, 0.0205038, 0.0217866,
0.0221518, 0.0234543, 0.0238013, 0.0251204, 0.0254526, 0.0267848,
0.0271055, 0.0284475, 0.0287602, 0.0301083, 0.0304167, 0.0317675,
0.032075, 0.0334248, 0.033735, 0.0350803, 0.0353968, 0.0367341,
0.0370604, 0.0383862, 0.0387257, 0.0400365, 0.0403926, 0.0416852,
0.0420612, 0.0433324, 0.0437313, 0.044978, 0.0454028, 0.0466222,
0.0470758, 0.0482651, 0.04875, 0.0499068, 0.0504253, 0.0515474,
0.0521017, 0.053187, 0.053779, 0.0548258, 0.0554571, 0.0564638,
0.0571359, 0.0581012, 0.0588152, 0.0597382, 0.0604948, 0.0613749,
0.0621747, 0.0630114, 0.0638547, 0.064648, 0.0655346, 0.0662847,
0.0672142, 0.0679216, 0.0688935, 0.069559, 0.0705723, 0.071197,
0.0722505, 0.0728357, 0.0739278, 0.0744753, 0.0756043, 0.0761158,
0.0772797, 0.0777575, 0.0789539, 0.0794003, 0.0806269, 0.0810445,
0.0822985, 0.0826901, 0.0839686, 0.0843372, 0.0856372, 0.0859859,
0.0873042, 0.0876363, 0.0889695, 0.0892883, 0.090633, 0.0909421,
0.0922948, 0.0925977, 0.0939548, 0.0942551, 0.095613, 0.0959143,
0.0972693, 0.0975753, 0.0989239, 0.0992381, 0.100577, 0.100903,
0.102228, 0.102569, 0.103877, 0.104237, 0.105525, 0.105906,
0.107171, 0.107578, 0.108816, 0.10925, 0.110459, 0.110924,
0.112101, 0.112599, 0.113742, 0.114275, 0.115381, 0.115953,
0.11702, 0.117631, 0.118658, 0.119309, 0.120295, 0.120989,
0.121932, 0.122669, 0.123569, 0.124349, 0.125205, 0.126029,
0.126841, 0.12771, 0.128477, 0.12939, 0.130113, 0.13107,
0.13175, 0.13275, 0.133387, 0.134429, 0.135025, 0.136107,
0.136664, 0.137784, 0.138304, 0.13946, 0.139944, 0.141136,
0.141586, 0.14281, 0.143229, 0.144482, 0.144874, 0.146153,
0.14652, 0.147823, 0.148168, 0.149491, 0.149817, 0.151157,
0.151468, 0.152822, 0.153121, 0.154485, 0.154775, 0.156146,
0.156432, 0.157805, 0.15809, 0.159462, 0.15975, 0.161117,
0.161412, 0.162771, 0.163076, 0.164422, 0.164742, 0.166072,
0.166409, 0.16772, 0.168079, 0.169367, 0.169749, 0.171012,
0.171422, 0.172655, 0.173095, 0.174298, 0.17477, 0.175938,
0.176447, 0.177578, 0.178124, 0.179217, 0.179802, 0.180854,
0.181481, 0.182491, 0.183161, 0.184127, 0.184842, 0.185763,
0.186523, 0.187399, 0.188204, 0.189034, 0.189885, 0.190669,
0.191566, 0.192305, 0.193247, 0.193941, 0.194928, 0.195577,
0.196608, 0.197213, 0.198287, 0.198851, 0.199965, 0.200489,
0.201643, 0.202129, 0.203319, 0.203769, 0.204995, 0.205411,
0.206669, 0.207055, 0.208341, 0.2087, 0.210012, 0.210346,
0.211681, 0.211994, 0.213349, 0.213644, 0.215014, 0.215296,
0.216678, 0.216949, 0.21834, 0.218605, 0.22, 0.220262,
0.221658, 0.221921, 0.223314, 0.223583, 0.224969, 0.225246,
0.226621, 0.226911, 0.228271, 0.228578, 0.22992, 0.230247,
0.231567, 0.231917, 0.233212, 0.233589, 0.234856, 0.235263,
0.236498, 0.236938, 0.238138, 0.238615, 0.239777, 0.240293,
0.241416, 0.241971, 0.243053, 0.243651, 0.244689, 0.245332,
0.246324, 0.247013, 0.247959, 0.248695, 0.249594, 0.250377,
0.251228, 0.25206, 0.252862, 0.253742, 0.254496, 0.255424,
0.256131, 0.257106, 0.257765, 0.258788, 0.259401, 0.260468,
0.261037, 0.262148, 0.262674, 0.263828, 0.264311, 0.265506,
0.26595, 0.267182, 0.267591, 0.268858, 0.269232, 0.270532,
0.270876, 0.272204, 0.272521, 0.273875, 0.274167, 0.275544,
0.275816, 0.277211, 0.277466, 0.278876, 0.279118, 0.280539,
0.280773, 0.282201, 0.282429, 0.28386, 0.284087, 0.285517,
0.285748, 0.287172, 0.28741, 0.288825, 0.289075, 0.290476,
0.290742, 0.292125, 0.29241, 0.293772, 0.29408, 0.295417,
0.295753, 0.29706, 0.297426, 0.298702, 0.299102, 0.300342,
0.300779, 0.301981, 0.302457, 0.303618, 0.304137, 0.305254,
0.305818, 0.30689, 0.3075, 0.308524, 0.309182, 0.310158,
0.310865, 0.311791, 0.312549, 0.313423, 0.314233, 0.315056,
0.315917, 0.316688, 0.317601, 0.318321, 0.319285, 0.319953,
0.320968, 0.321587, 0.322651, 0.323221, 0.324333, 0.324856,
0.326014, 0.326491, 0.327695, 0.328128, 0.329373, 0.329767,
0.331051, 0.331406, 0.332727, 0.333048, 0.334401, 0.334691,
0.336074, 0.336336, 0.337745, 0.337982, 0.339413, 0.339631,
0.34108, 0.341282, 0.342745, 0.342935, 0.344407, 0.34459,
0.346067, 0.346247, 0.347726, 0.347907, 0.349381, 0.349568,
0.351035, 0.351232, 0.352686, 0.352898, 0.354336, 0.354567,
0.355983, 0.356237, 0.357628, 0.35791, 0.359271, 0.359584,
0.360912, 0.36126, 0.362552, 0.362938, 0.36419, 0.364617,
0.365826, 0.366298, 0.367461, 0.36798, 0.369095, 0.369664,
0.370727, 0.371348, 0.372359, 0.373033, 0.37399, 0.374719,
0.375621, 0.376405, 0.377251, 0.378091, 0.378881, 0.379778,
0.380511, 0.381464, 0.382141, 0.38315, 0.383772, 0.384835,
0.385403, 0.38652, 0.387035, 0.388204, 0.388668, 0.389887,
0.390303, 0.391568, 0.391938, 0.393248, 0.393575, 0.394927,
0.395214, 0.396604, 0.396855, 0.398279, 0.398497, 0.399952,
0.400142, 0.401623, 0.401788, 0.403292, 0.403437, 0.404958,
0.405088, 0.406622, 0.406742, 0.408284, 0.408398, 0.409943,
0.410056, 0.4116, 0.411717, 0.413255, 0.41338, 0.414906,
0.415046, 0.416556, 0.416714, 0.418203, 0.418385, 0.419848,
0.420057, 0.421491, 0.421732, 0.423131, 0.423409, 0.424769,
0.425089, 0.426406, 0.426769, 0.428041, 0.428452, 0.429674,
0.430136, 0.431306, 0.431822, 0.432936, 0.433508, 0.434565,
0.435196, 0.436193, 0.436884, 0.437821, 0.438574, 0.439448,
0.440263, 0.441075, 0.441953, 0.442702, 0.443643, 0.444329,
0.445332, 0.445956, 0.447021, 0.447583, 0.44871, 0.449212,
0.450397, 0.450841, 0.452084, 0.452472, 0.453769, 0.454104,
0.455453, 0.455738, 0.457135, 0.457373, 0.458815, 0.45901,
0.460493, 0.460649, 0.462169, 0.462291, 0.463843, 0.463935,
0.465514, 0.465581, 0.467183, 0.46723, 0.46885, 0.468881,
0.470513, 0.470535, 0.472174, 0.472192, 0.473832, 0.473852,
0.475488, 0.475515, 0.47714, 0.47718, 0.47879, 0.478848,
0.480437, 0.480519, 0.482082, 0.482192, 0.483723, 0.483868,
0.485363, 0.485546, 0.487, 0.487227, 0.488634, 0.48891,
0.490267, 0.490595, 0.491897, 0.492282, 0.493526, 0.493971,
0.495153, 0.495661, 0.496779, 0.497352, 0.498403, 0.499045,
0.500027, 0.500738, 0.50165, 0.502432, 0.503272, 0.504126,
0.504894, 0.505821, 0.506516, 0.507515, 0.508138, 0.509209,
0.509761, 0.510903, 0.511384, 0.512596, 0.513008, 0.514287,
0.514634, 0.515977, 0.516261, 0.517666, 0.517889, 0.519353,
0.51952, 0.521038, 0.521152, 0.522721, 0.522787, 0.524401,
0.524424, 0.526079, 0.526064, 0.527755, 0.527707, 0.529427,
0.529353, 0.531096, 0.531001, 0.532763, 0.532653, 0.534426,
0.534308, 0.536086, 0.535966, 0.537743, 0.537627, 0.539396,
0.539292, 0.541046, 0.54096, 0.542693, 0.542631, 0.544337,
0.544305, 0.545978, 0.545983, 0.547615, 0.547663, 0.54925,
0.549346, 0.550882, 0.551032, 0.552511, 0.552721, 0.554138,
0.554412, 0.555762, 0.556105, 0.557384, 0.5578, 0.559005,
0.559497, 0.560624, 0.561195, 0.562241, 0.562894, 0.563858,
0.564595, 0.565473, 0.566296, 0.567088, 0.567998, 0.568703,
0.5697, 0.570318, 0.571401, 0.571933, 0.573102, 0.573549,
0.574803, 0.575165, 0.576502, 0.576783, 0.5782, 0.578403,
0.579896, 0.580024, 0.58159, 0.581647, 0.583282, 0.583273,
0.584972, 0.584901, 0.586659, 0.586532, 0.588343, 0.588166,
0.590024, 0.589803, 0.591702, 0.591443, 0.593376, 0.593087,
0.595046, 0.594735, 0.596713, 0.596387, 0.598376, 0.598042,
0.600035, 0.599702, 0.60169, 0.601365, 0.603341, 0.603033,
0.604988, 0.604705, 0.606631, 0.60638, 0.60827, 0.60806,
0.609905, 0.609743, 0.611536, 0.61143, 0.613164, 0.61312,
0.614788, 0.614814, 0.616409, 0.616511, 0.618027, 0.618212,
0.619642, 0.619914, 0.621254, 0.62162, 0.622864, 0.623327,
0.624472, 0.625036, 0.626079, 0.626747, 0.627684, 0.628459,
0.629288, 0.630172, 0.630891, 0.631885, 0.632494, 0.633599,
0.634097, 0.635312, 0.6357, 0.637025, 0.637305, 0.638737,
0.63891, 0.640447, 0.640517, 0.642155, 0.642126, 0.643862,
0.643737, 0.645566, 0.645351, 0.647267, 0.646968, 0.648965,
0.648588, 0.65066, 0.650212, 0.652351, 0.651839, 0.654037,
0.653471, 0.65572, 0.655108, 0.657398, 0.656748, 0.659071,
0.658394, 0.660739, 0.660045, 0.662402, 0.661701, 0.66406,
0.663362, 0.665713, 0.665029, 0.66736, 0.6667, 0.669002,
0.668378, 0.670639, 0.67006, 0.67227, 0.671748, 0.673896,
0.673441, 0.675517, 0.675139, 0.677133, 0.676842, 0.678744,
0.678549, 0.680351, 0.680261, 0.681954, 0.681977, 0.683552,
0.683697, 0.685147, 0.68542, 0.686739, 0.687146, 0.688328,
0.688875, 0.689914, 0.690607, 0.691498, 0.69234, 0.693081,
0.694074, 0.694662, 0.69581, 0.696243, 0.697546, 0.697823,
0.699282, 0.699404, 0.701017, 0.700986, 0.702751, 0.702569,
0.704483, 0.704155, 0.706213, 0.705742, 0.707941, 0.707333,
0.709665, 0.708927, 0.711385, 0.710525, 0.713101, 0.712128,
0.714812, 0.713736, 0.716518, 0.715349, 0.718219, 0.716968,
0.719913, 0.718594, 0.721601, 0.720226, 0.723282, 0.721865,
0.724955, 0.723511, 0.726622, 0.725165, 0.72828, 0.726827,
0.729931, 0.728497, 0.731573, 0.730175, 0.733208, 0.731861,
0.734834, 0.733556, 0.736451, 0.735259, 0.738061, 0.73697,
0.739662, 0.738689, 0.741255, 0.740417, 0.74284, 0.742152,
0.744418, 0.743895, 0.745988, 0.745645, 0.747551, 0.747401,
0.749107, 0.749165, 0.750657, 0.750934, 0.752202, 0.752709,
0.753741, 0.754489, 0.755275, 0.756273, 0.756805, 0.758061,
0.758332, 0.759852, 0.759856, 0.761645, 0.761379, 0.76344,
0.7629, 0.765236, 0.76442, 0.767032, 0.765942, 0.768826,
0.767464, 0.770619, 0.768989, 0.772409, 0.770517, 0.774196,
0.772049, 0.775978, 0.773586, 0.777755, 0.775129, 0.779525,
0.776679, 0.781287, 0.778237, 0.783042, 0.779804, 0.784787,
0.78138, 0.786521, 0.782968, 0.788245, 0.784567, 0.789955,
0.786179, 0.791653, 0.787805, 0.793337, 0.789445, 0.795005,
0.791101, 0.796657, 0.792774, 0.798292, 0.794465, 0.799909,
0.796174, 0.801507, 0.797902, 0.803085, 0.799651, 0.804641,
0.801422, 0.806176, 0.803216, 0.807687, 0.805033, 0.809173,
0.806876, 0.810634, 0.808745, 0.812067, 0.810642, 0.813472,
0.81257, 0.814845, 0.81453, 0.816185, 0.816524, 0.817489,
0.818556, 0.818753, 0.820629, 0.819974, 0.822748, 0.821146,
0.824919, 0.822263, 0.827149, 0.823317, 0.829448, 0.824295,
0.831828, 0.825184, 0.834309, 0.825962, 0.836913, 0.826599,
0.839677, 0.827055, 0.842652, 0.827263, 0.845917, 0.827125,
0.849603, 0.82647, 0.853932, 0.824998, 0.859325, 0.822105,
0.866677, 0.816398, 0.878287, 0.803783, 0.902286, 0.765148,
1, 4.44089e-16
};
static const float WAVE_SAW_030[DEFAULT_WAVELEN] = {
-0.7475, -1, -0.860731, -0.764093, -0.844282, -0.900568,
-0.841383, -0.801079, -0.846401, -0.874911, -0.835593, -0.812024,
-0.844396, -0.861653, -0.831507, -0.816055, -0.84155, -0.852655,
-0.827887, -0.817271, -0.838422, -0.845618, -0.824451, -0.817065,
-0.835167, -0.839645, -0.821107, -0.816042, -0.831843, -0.834315,
-0.817816, -0.814504, -0.828476, -0.829404, -0.814561, -0.812619,
-0.825078, -0.824783, -0.811333, -0.810488, -0.821657, -0.820372,
-0.808126, -0.808176, -0.818217, -0.816119, -0.804936, -0.805726,
-0.81476, -0.811989, -0.801762, -0.803166, -0.811289, -0.807957,
-0.798601, -0.800518, -0.807806, -0.804005, -0.795451, -0.797796,
-0.804311, -0.800121, -0.792313, -0.795012, -0.800806, -0.796294,
-0.789184, -0.792175, -0.797292, -0.792517, -0.786064, -0.789291,
-0.79377, -0.788785, -0.782951, -0.786365, -0.790241, -0.785091,
-0.779845, -0.783401, -0.786706, -0.781434, -0.776745, -0.780403,
-0.783165, -0.77781, -0.773649, -0.777374, -0.77962, -0.774216,
-0.770558, -0.774315, -0.776071, -0.77065, -0.76747, -0.771229,
-0.77252, -0.767111, -0.764384, -0.768117, -0.768966, -0.763597,
-0.7613, -0.764981, -0.765412, -0.760106, -0.758216, -0.761821,
-0.761857, -0.756638, -0.755132, -0.75864, -0.758304, -0.753192,
-0.752047, -0.755438, -0.754751, -0.749766, -0.74896, -0.752216,
-0.751201, -0.746359, -0.74587, -0.748975, -0.747654, -0.742971,
-0.742777, -0.745715, -0.74411, -0.7396, -0.73968, -0.742439,
-0.740571, -0.736247, -0.736578, -0.739146, -0.737037, -0.732909,
-0.733471, -0.735838, -0.733509, -0.729587, -0.730357, -0.732514,
-0.729988, -0.726279, -0.727237, -0.729177, -0.726473, -0.722984,
-0.724109, -0.725827, -0.722966, -0.719702, -0.720974, -0.722464,
-0.719467, -0.716432, -0.71783, -0.71909, -0.715977, -0.713173,
-0.714678, -0.715706, -0.712496, -0.709924, -0.711516, -0.712311,
-0.709024, -0.706685, -0.708345, -0.708908, -0.705562, -0.703454,
-0.705163, -0.705496, -0.702109, -0.700231, -0.701972, -0.702077,
-0.698668, -0.697015, -0.69877, -0.698652, -0.695236, -0.693805,
-0.695558, -0.695221, -0.691815, -0.6906, -0.692335, -0.691785,
-0.688405, -0.6874, -0.689102, -0.688345, -0.685006, -0.684203,
-0.685857, -0.684902, -0.681617, -0.681009, -0.682602, -0.681456,
-0.67824, -0.677817, -0.679336, -0.678009, -0.674872, -0.674627,
-0.676059, -0.674561, -0.671516, -0.671436, -0.672773, -0.671113,
-0.668169, -0.668246, -0.669475, -0.667665, -0.664833, -0.665055,
-0.666168, -0.664219, -0.661507, -0.661862, -0.662851, -0.660775,
-0.65819, -0.658667, -0.659525, -0.657333, -0.654883, -0.655469,
-0.656189, -0.653894, -0.651585, -0.652267, -0.652845, -0.650459,
-0.648294, -0.649062, -0.649493, -0.647028, -0.645012, -0.645852,
-0.646132, -0.643602, -0.641738, -0.642637, -0.642765, -0.640182,
-0.638471, -0.639416, -0.63939, -0.636766, -0.63521, -0.63619,
-0.63601, -0.633357, -0.631955, -0.632958, -0.632623, -0.629955,
-0.628706, -0.629718, -0.629231, -0.626559, -0.625462, -0.626473,
-0.625835, -0.62317, -0.622222, -0.62322, -0.622434, -0.619788,
-0.618986, -0.61996, -0.61903, -0.616413, -0.615754, -0.616692,
-0.615623, -0.613046, -0.612523, -0.613417, -0.612214, -0.609686,
-0.609295, -0.610135, -0.608803, -0.606334, -0.606069, -0.606845,
-0.60539, -0.60299, -0.602843, -0.603547, -0.601977, -0.599653,
-0.599618, -0.600242, -0.598564, -0.596323, -0.596392, -0.596929,
-0.595152, -0.593001, -0.593166, -0.593609, -0.591741, -0.589686,
-0.589938, -0.590283, -0.588331, -0.586378, -0.586708, -0.586949,
-0.584923, -0.583077, -0.583476, -0.583609, -0.581518, -0.579782,
-0.580242, -0.580262, -0.578116, -0.576493, -0.577004, -0.576909,
-0.574717, -0.57321, -0.573762, -0.573551, -0.571322, -0.569933,
-0.570517, -0.570187, -0.567931, -0.566661, -0.567267, -0.566818,
-0.564545, -0.563394, -0.564012, -0.563445, -0.561164, -0.560131,
-0.560753, -0.560068, -0.557788, -0.556872, -0.557488, -0.556686,
-0.554417, -0.553616, -0.554218, -0.553302, -0.551051, -0.550364,
-0.550942, -0.549915, -0.547692, -0.547114, -0.54766, -0.546525,
-0.544338, -0.543866, -0.544373, -0.543134, -0.54099, -0.54062,
-0.54108, -0.539741, -0.537648, -0.537375, -0.53778, -0.536347,
-0.534312, -0.534131, -0.534475, -0.532953, -0.530982, -0.530886,
-0.531163, -0.529558, -0.527658, -0.527642, -0.527846, -0.526164,
-0.52434, -0.524397, -0.524523, -0.522771, -0.521027, -0.521151,
-0.521194, -0.51938, -0.517721, -0.517904, -0.517859, -0.51599,
-0.51442, -0.514654, -0.51452, -0.512602, -0.511123, -0.511403,
-0.511175, -0.509217, -0.507832, -0.508148, -0.507825, -0.505834,
-0.504546, -0.504891, -0.504471, -0.502455, -0.501264, -0.50163,
-0.501112, -0.499079, -0.497987, -0.498366, -0.497749, -0.495707,
-0.494713, -0.495097, -0.494383, -0.492339, -0.491443, -0.491825,
-0.491013, -0.488976, -0.488176, -0.488548, -0.48764, -0.485616,
-0.484912, -0.485266, -0.484264, -0.482262, -0.48165, -0.48198,
-0.480887, -0.478912, -0.47839, -0.478689, -0.477507, -0.475567,
-0.475132, -0.475393, -0.474126, -0.472228, -0.471875, -0.472091,
-0.470744, -0.468893, -0.468619, -0.468785, -0.467362, -0.465563,
-0.465364, -0.465474, -0.463979, -0.462239, -0.462108, -0.462157,
-0.460596, -0.458919, -0.458852, -0.458836, -0.457214, -0.455605,
-0.455596, -0.45551, -0.453832, -0.452295, -0.452338, -0.452179,
-0.450452, -0.44899, -0.449079, -0.448843, -0.447074, -0.44569,
-0.445818, -0.445503, -0.443697, -0.442394, -0.442555, -0.442158,
-0.440323, -0.439102, -0.43929, -0.43881, -0.436951, -0.435814,
-0.436022, -0.435457, -0.433583, -0.43253, -0.43275, -0.432101,
-0.430217, -0.42925, -0.429476, -0.428741, -0.426855, -0.425972,
-0.426198, -0.425379, -0.423496, -0.422698, -0.422916, -0.422014,
-0.420142, -0.419426, -0.419631, -0.418646, -0.416791, -0.416156,
-0.416341, -0.415276, -0.413444, -0.412889, -0.413047, -0.411904,
-0.410102, -0.409623, -0.409749, -0.408531, -0.406764, -0.406358,
-0.406447, -0.405157, -0.40343, -0.403094, -0.40314, -0.401782,
-0.400101, -0.399831, -0.399828, -0.398407, -0.396776, -0.396568,
-0.396512, -0.395032, -0.393456, -0.393305, -0.393192, -0.391657,
-0.39014, -0.390041, -0.389867, -0.388283, -0.386828, -0.386776,
-0.386538, -0.384909, -0.383521, -0.383511, -0.383205, -0.381537,
-0.380218, -0.380244, -0.379868, -0.378167, -0.376919, -0.376975,
-0.376527, -0.374798, -0.373623, -0.373704, -0.373182, -0.371432,
-0.370332, -0.37043, -0.369833, -0.368068, -0.367043, -0.367154,
-0.366482, -0.364707, -0.363758, -0.363876, -0.363127, -0.361349,
-0.360476, -0.360594, -0.359769, -0.357994, -0.357197, -0.357309,
-0.356409, -0.354642, -0.35392, -0.35402, -0.353047, -0.351294,
-0.350645, -0.350728, -0.349682, -0.34795, -0.347372, -0.347432,
-0.346316, -0.344609, -0.3441, -0.344133, -0.342948, -0.341273,
-0.34083, -0.340829, -0.33958, -0.33794, -0.337561, -0.337522,
-0.33621, -0.334611, -0.334292, -0.33421, -0.33284, -0.331286,
-0.331024, -0.330894, -0.32947, -0.327965, -0.327755, -0.327575,
-0.326101, -0.324649, -0.324487, -0.324251, -0.322731, -0.321336,
-0.321217, -0.320923, -0.319363, -0.318027, -0.317947, -0.317592,
-0.315995, -0.314722, -0.314675, -0.314257, -0.312629, -0.311421,
-0.311402, -0.310918, -0.309265, -0.308123, -0.308127, -0.307576,
-0.305902, -0.304828, -0.30485, -0.30423, -0.302542, -0.301537,
-0.301571, -0.300881, -0.299184, -0.298249, -0.298289, -0.29753,
-0.295829, -0.294963, -0.295005, -0.294176, -0.292476, -0.29168,
-0.291717, -0.290819, -0.289127, -0.2884, -0.288427, -0.28746,
-0.285781, -0.285121, -0.285133, -0.2841, -0.282438, -0.281844,
-0.281836, -0.280737, -0.279099, -0.278569, -0.278535, -0.277374,
-0.275763, -0.275295, -0.27523, -0.274009, -0.272431, -0.272022,
-0.271922, -0.270643, -0.269102, -0.268749, -0.26861, -0.267277,
-0.265777, -0.265477, -0.265295, -0.263911, -0.262457, -0.262205,
-0.261976, -0.260544, -0.259139, -0.258933, -0.258653, -0.257179,
-0.255826, -0.25566, -0.255326, -0.253813, -0.252516, -0.252386,
-0.251996, -0.250449, -0.249209, -0.249112, -0.248662, -0.247086,
-0.245906, -0.245836, -0.245325, -0.243724, -0.242607, -0.242558,
-0.241984, -0.240365, -0.23931, -0.239278, -0.238641, -0.237007,
-0.236017, -0.235997, -0.235294, -0.233651, -0.232727, -0.232713,
-0.231945, -0.230298, -0.229439, -0.229426, -0.228593, -0.226948,
-0.226153, -0.226137, -0.225239, -0.2236, -0.22287, -0.222845,
-0.221883, -0.220255, -0.219589, -0.21955, -0.218525, -0.216913,
-0.216309, -0.216252, -0.215165, -0.213575, -0.213031, -0.21295,
-0.211804, -0.21024, -0.209755, -0.209645, -0.208442, -0.206908,
-0.206479, -0.206337, -0.205079, -0.20358, -0.203204, -0.203025,
-0.201716, -0.200255, -0.199929, -0.199709, -0.198352, -0.196934,
-0.196654, -0.19639, -0.194988, -0.193616, -0.19338, -0.193068,
-0.191625, -0.190302, -0.190104, -0.189742, -0.188262, -0.186991,
-0.186828, -0.186412, -0.1849, -0.183684, -0.183552, -0.18308,
-0.181539, -0.18038, -0.180273, -0.179744, -0.17818, -0.177079,
-0.176994, -0.176404, -0.174822, -0.173782, -0.173712, -0.173062,
-0.171465, -0.170487, -0.170429, -0.169717, -0.168111, -0.167195,
-0.167144, -0.16637, -0.16476, -0.163905, -0.163856, -0.16302,
-0.16141, -0.160618, -0.160566, -0.159667, -0.158064, -0.157333,
-0.157273, -0.156313, -0.15472, -0.15405, -0.153977, -0.152957,
-0.151379, -0.150769, -0.150678, -0.149599, -0.148041, -0.147489,
-0.147375, -0.146239, -0.144706, -0.14421, -0.14407, -0.142879,
-0.141375, -0.140933, -0.140762, -0.139518, -0.138047, -0.137656,
-0.13745, -0.136156, -0.134722, -0.134379, -0.134134, -0.132794,
-0.131401, -0.131103, -0.130815, -0.129432, -0.128083, -0.127827,
-0.127493, -0.12607, -0.124768, -0.12455, -0.124168, -0.122709,
-0.121457, -0.121272, -0.120839, -0.119348, -0.118149, -0.117994,
-0.117507, -0.115989, -0.114844, -0.114715, -0.114172, -0.112631,
-0.111543, -0.111434, -0.110833, -0.109274, -0.108244, -0.108151,
-0.107492, -0.105919, -0.104948, -0.104867, -0.104148, -0.102566,
-0.101655, -0.101581, -0.100802, -0.0992147, -0.0983646, -0.0982923,
-0.0974526, -0.0958662, -0.0950764, -0.0950012, -0.0941014, -0.0925201,
-0.0917903, -0.0917076, -0.0907481, -0.0891767, -0.0885062, -0.0884112,
-0.0873929, -0.0858362, -0.0852237, -0.0851118, -0.0840362, -0.0824986,
-0.0819428, -0.0818095, -0.0806781, -0.0791642, -0.0786631, -0.078504,
-0.0773189, -0.0758328, -0.0753844, -0.0751953, -0.0739588, -0.0725047,
-0.0721064, -0.0718834, -0.0705981, -0.0691799, -0.0688289, -0.0685682,
-0.0672371, -0.0658584, -0.0655516, -0.0652496, -0.063876, -0.0625403,
-0.0622743, -0.0619277, -0.0605151, -0.0592254, -0.0589966, -0.0586026,
-0.0571546, -0.0559138, -0.0557184, -0.0552741, -0.0537948, -0.0526055,
-0.0524394, -0.0519425, -0.050436, -0.0493003, -0.0491593, -0.0486078,
-0.0470783, -0.0459982, -0.0458778, -0.04527, -0.0437221, -0.042699,
-0.0425949, -0.0419294, -0.0403675, -0.0394027, -0.0393101, -0.038586,
-0.0370149, -0.036109, -0.0360234, -0.0352399, -0.0336643, -0.0328179,
-0.0327345, -0.0318915, -0.030316, -0.0295291, -0.0294432, -0.0285408,
-0.0269701, -0.0262424, -0.0261493, -0.0251881, -0.0236269, -0.0229577,
-0.0228528, -0.0218335, -0.0202865, -0.0196747, -0.0195534, -0.0184773,
-0.016949, -0.0163933, -0.016251, -0.0151197, -0.0136145, -0.0131131,
-0.0129456, -0.011761, -0.0102831, -0.00983391, -0.009637, -0.00840134,
-0.00695487, -0.00655551, -0.00632519, -0.00504106, -0.00362993, -0.00327762,
-0.00301011, -0.0016804, -0.000308258, -1.11022e-15, 0.000308258, 0.0016804,
0.00301011, 0.00327762, 0.00362993, 0.00504106, 0.00632519, 0.00655551,
0.00695487, 0.00840134, 0.009637, 0.00983391, 0.0102831, 0.011761,
0.0129456, 0.0131131, 0.0136145, 0.0151197, 0.016251, 0.0163933,
0.016949, 0.0184773, 0.0195534, 0.0196747, 0.0202865, 0.0218335,
0.0228528, 0.0229577, 0.0236269, 0.0251881, 0.0261493, 0.0262424,
0.0269701, 0.0285408, 0.0294432, 0.0295291, 0.030316, 0.0318915,
0.0327345, 0.0328179, 0.0336643, 0.0352399, 0.0360234, 0.036109,
0.0370149, 0.038586, 0.0393101, 0.0394027, 0.0403675, 0.0419294,
0.0425949, 0.042699, 0.0437221, 0.04527, 0.0458778, 0.0459982,
0.0470783, 0.0486078, 0.0491593, 0.0493003, 0.050436, 0.0519425,
0.0524394, 0.0526055, 0.0537948, 0.0552741, 0.0557184, 0.0559138,
0.0571546, 0.0586026, 0.0589966, 0.0592254, 0.0605151, 0.0619277,
0.0622743, 0.0625403, 0.063876, 0.0652496, 0.0655516, 0.0658584,
0.0672371, 0.0685682, 0.0688289, 0.0691799, 0.0705981, 0.0718834,
0.0721064, 0.0725047, 0.0739588, 0.0751953, 0.0753844, 0.0758328,
0.0773189, 0.078504, 0.0786631, 0.0791642, 0.0806781, 0.0818095,
0.0819428, 0.0824986, 0.0840362, 0.0851118, 0.0852237, 0.0858362,
0.0873929, 0.0884112, 0.0885062, 0.0891767, 0.0907481, 0.0917076,
0.0917903, 0.0925201, 0.0941014, 0.0950012, 0.0950764, 0.0958662,
0.0974526, 0.0982923, 0.0983646, 0.0992147, 0.100802, 0.101581,
0.101655, 0.102566, 0.104148, 0.104867, 0.104948, 0.105919,
0.107492, 0.108151, 0.108244, 0.109274, 0.110833, 0.111434,
0.111543, 0.112631, 0.114172, 0.114715, 0.114844, 0.115989,
0.117507, 0.117994, 0.118149, 0.119348, 0.120839, 0.121272,
0.121457, 0.122709, 0.124168, 0.12455, 0.124768, 0.12607,
0.127493, 0.127827, 0.128083, 0.129432, 0.130815, 0.131103,
0.131401, 0.132794, 0.134134, 0.134379, 0.134722, 0.136156,
0.13745, 0.137656, 0.138047, 0.139518, 0.140762, 0.140933,
0.141375, 0.142879, 0.14407, 0.14421, 0.144706, 0.146239,
0.147375, 0.147489, 0.148041, 0.149599, 0.150678, 0.150769,
0.151379, 0.152957, 0.153977, 0.15405, 0.15472, 0.156313,
0.157273, 0.157333, 0.158064, 0.159667, 0.160566, 0.160618,
0.16141, 0.16302, 0.163856, 0.163905, 0.16476, 0.16637,
0.167144, 0.167195, 0.168111, 0.169717, 0.170429, 0.170487,
0.171465, 0.173062, 0.173712, 0.173782, 0.174822, 0.176404,
0.176994, 0.177079, 0.17818, 0.179744, 0.180273, 0.18038,
0.181539, 0.18308, 0.183552, 0.183684, 0.1849, 0.186412,
0.186828, 0.186991, 0.188262, 0.189742, 0.190104, 0.190302,
0.191625, 0.193068, 0.19338, 0.193616, 0.194988, 0.19639,
0.196654, 0.196934, 0.198352, 0.199709, 0.199929, 0.200255,
0.201716, 0.203025, 0.203204, 0.20358, 0.205079, 0.206337,
0.206479, 0.206908, 0.208442, 0.209645, 0.209755, 0.21024,
0.211804, 0.21295, 0.213031, 0.213575, 0.215165, 0.216252,
0.216309, 0.216913, 0.218525, 0.21955, 0.219589, 0.220255,
0.221883, 0.222845, 0.22287, 0.2236, 0.225239, 0.226137,
0.226153, 0.226948, 0.228593, 0.229426, 0.229439, 0.230298,
0.231945, 0.232713, 0.232727, 0.233651, 0.235294, 0.235997,
0.236017, 0.237007, 0.238641, 0.239278, 0.23931, 0.240365,
0.241984, 0.242558, 0.242607, 0.243724, 0.245325, 0.245836,
0.245906, 0.247086, 0.248662, 0.249112, 0.249209, 0.250449,
0.251996, 0.252386, 0.252516, 0.253813, 0.255326, 0.25566,
0.255826, 0.257179, 0.258653, 0.258933, 0.259139, 0.260544,
0.261976, 0.262205, 0.262457, 0.263911, 0.265295, 0.265477,
0.265777, 0.267277, 0.26861, 0.268749, 0.269102, 0.270643,
0.271922, 0.272022, 0.272431, 0.274009, 0.27523, 0.275295,
0.275763, 0.277374, 0.278535, 0.278569, 0.279099, 0.280737,
0.281836, 0.281844, 0.282438, 0.2841, 0.285133, 0.285121,
0.285781, 0.28746, 0.288427, 0.2884, 0.289127, 0.290819,
0.291717, 0.29168, 0.292476, 0.294176, 0.295005, 0.294963,
0.295829, 0.29753, 0.298289, 0.298249, 0.299184, 0.300881,
0.301571, 0.301537, 0.302542, 0.30423, 0.30485, 0.304828,
0.305902, 0.307576, 0.308127, 0.308123, 0.309265, 0.310918,
0.311402, 0.311421, 0.312629, 0.314257, 0.314675, 0.314722,
0.315995, 0.317592, 0.317947, 0.318027, 0.319363, 0.320923,
0.321217, 0.321336, 0.322731, 0.324251, 0.324487, 0.324649,
0.326101, 0.327575, 0.327755, 0.327965, 0.32947, 0.330894,
0.331024, 0.331286, 0.33284, 0.33421, 0.334292, 0.334611,
0.33621, 0.337522, 0.337561, 0.33794, 0.33958, 0.340829,
0.34083, 0.341273, 0.342948, 0.344133, 0.3441, 0.344609,
0.346316, 0.347432, 0.347372, 0.34795, 0.349682, 0.350728,
0.350645, 0.351294, 0.353047, 0.35402, 0.35392, 0.354642,
0.356409, 0.357309, 0.357197, 0.357994, 0.359769, 0.360594,
0.360476, 0.361349, 0.363127, 0.363876, 0.363758, 0.364707,
0.366482, 0.367154, 0.367043, 0.368068, 0.369833, 0.37043,
0.370332, 0.371432, 0.373182, 0.373704, 0.373623, 0.374798,
0.376527, 0.376975, 0.376919, 0.378167, 0.379868, 0.380244,
0.380218, 0.381537, 0.383205, 0.383511, 0.383521, 0.384909,
0.386538, 0.386776, 0.386828, 0.388283, 0.389867, 0.390041,
0.39014, 0.391657, 0.393192, 0.393305, 0.393456, 0.395032,
0.396512, 0.396568, 0.396776, 0.398407, 0.399828, 0.399831,
0.400101, 0.401782, 0.40314, 0.403094, 0.40343, 0.405157,
0.406447, 0.406358, 0.406764, 0.408531, 0.409749, 0.409623,
0.410102, 0.411904, 0.413047, 0.412889, 0.413444, 0.415276,
0.416341, 0.416156, 0.416791, 0.418646, 0.419631, 0.419426,
0.420142, 0.422014, 0.422916, 0.422698, 0.423496, 0.425379,
0.426198, 0.425972, 0.426855, 0.428741, 0.429476, 0.42925,
0.430217, 0.432101, 0.43275, 0.43253, 0.433583, 0.435457,
0.436022, 0.435814, 0.436951, 0.43881, 0.43929, 0.439102,
0.440323, 0.442158, 0.442555, 0.442394, 0.443697, 0.445503,
0.445818, 0.44569, 0.447074, 0.448843, 0.449079, 0.44899,
0.450452, 0.452179, 0.452338, 0.452295, 0.453832, 0.45551,
0.455596, 0.455605, 0.457214, 0.458836, 0.458852, 0.458919,
0.460596, 0.462157, 0.462108, 0.462239, 0.463979, 0.465474,
0.465364, 0.465563, 0.467362, 0.468785, 0.468619, 0.468893,
0.470744, 0.472091, 0.471875, 0.472228, 0.474126, 0.475393,
0.475132, 0.475567, 0.477507, 0.478689, 0.47839, 0.478912,
0.480887, 0.48198, 0.48165, 0.482262, 0.484264, 0.485266,
0.484912, 0.485616, 0.48764, 0.488548, 0.488176, 0.488976,
0.491013, 0.491825, 0.491443, 0.492339, 0.494383, 0.495097,
0.494713, 0.495707, 0.497749, 0.498366, 0.497987, 0.499079,
0.501112, 0.50163, 0.501264, 0.502455, 0.504471, 0.504891,
0.504546, 0.505834, 0.507825, 0.508148, 0.507832, 0.509217,
0.511175, 0.511403, 0.511123, 0.512602, 0.51452, 0.514654,
0.51442, 0.51599, 0.517859, 0.517904, 0.517721, 0.51938,
0.521194, 0.521151, 0.521027, 0.522771, 0.524523, 0.524397,
0.52434, 0.526164, 0.527846, 0.527642, 0.527658, 0.529558,
0.531163, 0.530886, 0.530982, 0.532953, 0.534475, 0.534131,
0.534312, 0.536347, 0.53778, 0.537375, 0.537648, 0.539741,
0.54108, 0.54062, 0.54099, 0.543134, 0.544373, 0.543866,
0.544338, 0.546525, 0.54766, 0.547114, 0.547692, 0.549915,
0.550942, 0.550364, 0.551051, 0.553302, 0.554218, 0.553616,
0.554417, 0.556686, 0.557488, 0.556872, 0.557788, 0.560068,
0.560753, 0.560131, 0.561164, 0.563445, 0.564012, 0.563394,
0.564545, 0.566818, 0.567267, 0.566661, 0.567931, 0.570187,
0.570517, 0.569933, 0.571322, 0.573551, 0.573762, 0.57321,
0.574717, 0.576909, 0.577004, 0.576493, 0.578116, 0.580262,
0.580242, 0.579782, 0.581518, 0.583609, 0.583476, 0.583077,
0.584923, 0.586949, 0.586708, 0.586378, 0.588331, 0.590283,
0.589938, 0.589686, 0.591741, 0.593609, 0.593166, 0.593001,
0.595152, 0.596929, 0.596392, 0.596323, 0.598564, 0.600242,
0.599618, 0.599653, 0.601977, 0.603547, 0.602843, 0.60299,
0.60539, 0.606845, 0.606069, 0.606334, 0.608803, 0.610135,
0.609295, 0.609686, 0.612214, 0.613417, 0.612523, 0.613046,
0.615623, 0.616692, 0.615754, 0.616413, 0.61903, 0.61996,
0.618986, 0.619788, 0.622434, 0.62322, 0.622222, 0.62317,
0.625835, 0.626473, 0.625462, 0.626559, 0.629231, 0.629718,
0.628706, 0.629955, 0.632623, 0.632958, 0.631955, 0.633357,
0.63601, 0.63619, 0.63521, 0.636766, 0.63939, 0.639416,
0.638471, 0.640182, 0.642765, 0.642637, 0.641738, 0.643602,
0.646132, 0.645852, 0.645012, 0.647028, 0.649493, 0.649062,
0.648294, 0.650459, 0.652845, 0.652267, 0.651585, 0.653894,
0.656189, 0.655469, 0.654883, 0.657333, 0.659525, 0.658667,
0.65819, 0.660775, 0.662851, 0.661862, 0.661507, 0.664219,
0.666168, 0.665055, 0.664833, 0.667665, 0.669475, 0.668246,
0.668169, 0.671113, 0.672773, 0.671436, 0.671516, 0.674561,
0.676059, 0.674627, 0.674872, 0.678009, 0.679336, 0.677817,
0.67824, 0.681456, 0.682602, 0.681009, 0.681617, 0.684902,
0.685857, 0.684203, 0.685006, 0.688345, 0.689102, 0.6874,
0.688405, 0.691785, 0.692335, 0.6906, 0.691815, 0.695221,
0.695558, 0.693805, 0.695236, 0.698652, 0.69877, 0.697015,
0.698668, 0.702077, 0.701972, 0.700231, 0.702109, 0.705496,
0.705163, 0.703454, 0.705562, 0.708908, 0.708345, 0.706685,
0.709024, 0.712311, 0.711516, 0.709924, 0.712496, 0.715706,
0.714678, 0.713173, 0.715977, 0.71909, 0.71783, 0.716432,
0.719467, 0.722464, 0.720974, 0.719702, 0.722966, 0.725827,
0.724109, 0.722984, 0.726473, 0.729177, 0.727237, 0.726279,
0.729988, 0.732514, 0.730357, 0.729587, 0.733509, 0.735838,
0.733471, 0.732909, 0.737037, 0.739146, 0.736578, 0.736247,
0.740571, 0.742439, 0.73968, 0.7396, 0.74411, 0.745715,
0.742777, 0.742971, 0.747654, 0.748975, 0.74587, 0.746359,
0.751201, 0.752216, 0.74896, 0.749766, 0.754751, 0.755438,
0.752047, 0.753192, 0.758304, 0.75864, 0.755132, 0.756638,
0.761857, 0.761821, 0.758216, 0.760106, 0.765412, 0.764981,
0.7613, 0.763597, 0.768966, 0.768117, 0.764384, 0.767111,
0.77252, 0.771229, 0.76747, 0.77065, 0.776071, 0.774315,
0.770558, 0.774216, 0.77962, 0.777374, 0.773649, 0.77781,
0.783165, 0.780403, 0.776745, 0.781434, 0.786706, 0.783401,
0.779845, 0.785091, 0.790241, 0.786365, 0.782951, 0.788785,
0.79377, 0.789291, 0.786064, 0.792517, 0.797292, 0.792175,
0.789184, 0.796294, 0.800806, 0.795012, 0.792313, 0.800121,
0.804311, 0.797796, 0.795451, 0.804005, 0.807806, 0.800518,
0.798601, 0.807957, 0.811289, 0.803166, 0.801762, 0.811989,
0.81476, 0.805726, 0.804936, 0.816119, 0.818217, 0.808176,
0.808126, 0.820372, 0.821657, 0.810488, 0.811333, 0.824783,
0.825078, 0.812619, 0.814561, 0.829404, 0.828476, 0.814504,
0.817816, 0.834315, 0.831843, 0.816042, 0.821107, 0.839645,
0.835167, 0.817065, 0.824451, 0.845618, 0.838422, 0.817271,
0.827887, 0.852655, 0.84155, 0.816055, 0.831507, 0.861653,
0.844396, 0.812024, 0.835593, 0.874911, 0.846401, 0.801079,
0.841383, 0.900568, 0.844282, 0.764093, 0.860731, 1,
0.7475, -5.55112e-16
};
static const float WAVE_SAW_042[DEFAULT_WAVELEN] = {
-0.415654, -0.74845, -0.945317, -1, -0.950505, -0.859164,
-0.785167, -0.762096, -0.789748, -0.842067, -0.885396, -0.897035,
-0.875159, -0.836463, -0.804476, -0.795861, -0.812181, -0.840859,
-0.863773, -0.867968, -0.852396, -0.827346, -0.807577, -0.80354,
-0.8158, -0.835517, -0.85024, -0.851322, -0.83861, -0.819939,
-0.806073, -0.804294, -0.814411, -0.829329, -0.839577, -0.838945,
-0.827912, -0.813002, -0.802659, -0.802226, -0.81098, -0.822855,
-0.830248, -0.828533, -0.818639, -0.806253, -0.798278, -0.798733,
-0.806513, -0.816252, -0.821643, -0.819188, -0.810142, -0.799597,
-0.79334, -0.794419, -0.801448, -0.809577, -0.813475, -0.810489,
-0.802119, -0.792999, -0.788054, -0.789588, -0.796, -0.802855,
-0.805588, -0.802211, -0.794409, -0.786439, -0.782536, -0.784408,
-0.790292, -0.7961, -0.797895, -0.794226, -0.786919, -0.779909,
-0.776856, -0.778979, -0.784397, -0.789319, -0.79034, -0.786454,
-0.77959, -0.773402, -0.771057, -0.773367, -0.778361, -0.782517,
-0.782888, -0.778842, -0.772386, -0.766915, -0.765168, -0.767613,
-0.772214, -0.775696, -0.775514, -0.771356, -0.76528, -0.760445,
-0.75921, -0.761747, -0.765979, -0.768859, -0.768203, -0.763971,
-0.758254, -0.75399, -0.753196, -0.75579, -0.75967, -0.762008,
-0.760941, -0.756669, -0.751296, -0.747548, -0.747136, -0.749755,
-0.753299, -0.755144, -0.753722, -0.749438, -0.744396, -0.741119,
-0.741038, -0.743656, -0.746875, -0.748269, -0.746539, -0.742267,
-0.737545, -0.7347, -0.734906, -0.7375, -0.740404, -0.741383,
-0.739386, -0.73515, -0.730738, -0.728291, -0.728745, -0.731294,
-0.733891, -0.734489, -0.732262, -0.72808, -0.723971, -0.72189,
-0.722557, -0.725043, -0.727342, -0.727588, -0.725163, -0.721053,
-0.717238, -0.715496, -0.716345, -0.71875, -0.720759, -0.72068,
-0.718088, -0.714066, -0.710537, -0.709107, -0.71011, -0.71242,
-0.714146, -0.713766, -0.711035, -0.707114, -0.703865, -0.702724,
-0.703853, -0.706055, -0.707506, -0.706849, -0.704003, -0.700197,
-0.697219, -0.696344, -0.697575, -0.699658, -0.70084, -0.699928,
-0.696992, -0.693311, -0.690597, -0.689966, -0.691277, -0.69323,
-0.694152, -0.693006, -0.690001, -0.686455, -0.683997, -0.68359,
-0.684959, -0.686772, -0.687442, -0.686083, -0.683029, -0.679627,
-0.677417, -0.677214, -0.678622, -0.680288, -0.680714, -0.67916,
-0.676077, -0.672826, -0.670856, -0.670837, -0.672266, -0.673777,
-0.673968, -0.672239, -0.669144, -0.66605, -0.664311, -0.664458,
-0.66589, -0.667241, -0.667206, -0.66532, -0.66223, -0.659298,
-0.657781, -0.658076, -0.659495, -0.660682, -0.66043, -0.658405,
-0.655335, -0.65257, -0.651264, -0.65169, -0.653081, -0.6541,
-0.653641, -0.651494, -0.648459, -0.645863, -0.644759, -0.645299,
-0.646649, -0.647497, -0.646841, -0.644589, -0.641602, -0.639178,
-0.638265, -0.638902, -0.640198, -0.640873, -0.640031, -0.637689,
-0.634763, -0.632512, -0.631781, -0.632499, -0.633728, -0.634231,
-0.633213, -0.630798, -0.627943, -0.625865, -0.625303, -0.626088,
-0.62724, -0.62757, -0.626388, -0.623914, -0.621141, -0.619235,
-0.618833, -0.619668, -0.620733, -0.620892, -0.619557, -0.617039,
-0.614358, -0.612622, -0.612367, -0.613239, -0.614209, -0.614198,
-0.612721, -0.610174, -0.607592, -0.606024, -0.605906, -0.6068,
-0.607667, -0.607489, -0.605882, -0.603319, -0.600844, -0.599441,
-0.599447, -0.60035, -0.601107, -0.600766, -0.599041, -0.596475,
-0.594113, -0.592872, -0.592989, -0.593889, -0.59453, -0.59403,
-0.592199, -0.589643, -0.5874, -0.586314, -0.586532, -0.587417,
-0.587936, -0.587283, -0.585357, -0.582822, -0.580702, -0.579768,
-0.580074, -0.580932, -0.581326, -0.580525, -0.578517, -0.576014,
-0.574021, -0.573232, -0.573614, -0.574435, -0.574701, -0.573757,
-0.571679, -0.569219, -0.567355, -0.566705, -0.567151, -0.567924,
-0.56806, -0.566981, -0.564844, -0.562437, -0.560705, -0.560185,
-0.560685, -0.561401, -0.561404, -0.560198, -0.558014, -0.555668,
-0.554068, -0.553673, -0.554214, -0.554864, -0.554734, -0.553409,
-0.551189, -0.548912, -0.547446, -0.547166, -0.547736, -0.548313,
-0.548051, -0.546614, -0.54437, -0.542171, -0.540836, -0.540664,
-0.541253, -0.541749, -0.541356, -0.539815, -0.537558, -0.535443,
-0.534238, -0.534165, -0.534762, -0.535171, -0.534648, -0.533013,
-0.530753, -0.528728, -0.527652, -0.527669, -0.528264, -0.52858,
-0.52793, -0.52621, -0.523957, -0.522027, -0.521077, -0.521174,
-0.521756, -0.521975, -0.521201, -0.519405, -0.51717, -0.51534,
-0.514511, -0.514679, -0.51524, -0.515357, -0.514463, -0.5126,
-0.510392, -0.508665, -0.507955, -0.508184, -0.508714, -0.508725,
-0.507716, -0.505797, -0.503624, -0.502003, -0.501406, -0.501688,
-0.502177, -0.502082, -0.500962, -0.498995, -0.496866, -0.495354,
-0.494865, -0.495189, -0.495631, -0.495425, -0.494201, -0.492197,
-0.49012, -0.488717, -0.48833, -0.488687, -0.489073, -0.488758,
-0.487434, -0.485401, -0.483384, -0.482092, -0.4818, -0.482181,
-0.482504, -0.482078, -0.480662, -0.478611, -0.476659, -0.475478,
-0.475275, -0.47567, -0.475924, -0.475388, -0.473886, -0.471826,
-0.469945, -0.468874, -0.468753, -0.469153, -0.469333, -0.468687,
-0.467108, -0.465046, -0.463243, -0.46228, -0.462234, -0.46263,
-0.46273, -0.461977, -0.460327, -0.458274, -0.456553, -0.455696,
-0.455716, -0.4561, -0.456116, -0.455258, -0.453545, -0.451508,
-0.449873, -0.44912, -0.4492, -0.449562, -0.449491, -0.448531,
-0.446762, -0.444751, -0.443205, -0.442552, -0.442683, -0.443016,
-0.442854, -0.441796, -0.439981, -0.438002, -0.436548, -0.435992,
-0.436165, -0.436462, -0.436206, -0.435054, -0.4332, -0.431261,
-0.429902, -0.429438, -0.429645, -0.429899, -0.429548, -0.428306,
-0.426422, -0.42453, -0.423267, -0.422889, -0.423123, -0.423327,
-0.422879, -0.421553, -0.419647, -0.417808, -0.416641, -0.416346,
-0.416597, -0.416745, -0.416201, -0.414795, -0.412875, -0.411096,
-0.410026, -0.409806, -0.410067, -0.410153, -0.409512, -0.408034,
-0.406108, -0.404393, -0.403419, -0.40327, -0.403533, -0.403551,
-0.402815, -0.40127, -0.399346, -0.397701, -0.396822, -0.396736,
-0.396993, -0.396939, -0.396109, -0.394504, -0.39259, -0.391019,
-0.390233, -0.390203, -0.390447, -0.390317, -0.389395, -0.387736,
-0.38584, -0.384346, -0.383651, -0.383672, -0.383894, -0.383686,
-0.382674, -0.380969, -0.379097, -0.377684, -0.377077, -0.37714,
-0.377334, -0.377044, -0.375945, -0.374202, -0.372362, -0.371032,
-0.370509, -0.370608, -0.370767, -0.370392, -0.369211, -0.367436,
-0.365634, -0.364389, -0.363947, -0.364074, -0.364192, -0.363731,
-0.362471, -0.360672, -0.358914, -0.357755, -0.35739, -0.357537,
-0.357608, -0.357061, -0.355727, -0.35391, -0.352203, -0.351131,
-0.350838, -0.350998, -0.351016, -0.350381, -0.348979, -0.347152,
-0.3455, -0.344516, -0.344289, -0.344455, -0.344415, -0.343693,
-0.342227, -0.340398, -0.338807, -0.337909, -0.337743, -0.337908,
-0.337805, -0.336997, -0.335473, -0.333649, -0.332122, -0.33131,
-0.331199, -0.331355, -0.331186, -0.330293, -0.328717, -0.326905,
-0.325447, -0.324718, -0.324657, -0.324798, -0.324557, -0.323582,
-0.32196, -0.320166, -0.31878, -0.318134, -0.318115, -0.318234,
-0.31792, -0.316864, -0.315202, -0.313434, -0.312123, -0.311556,
-0.311573, -0.311663, -0.311274, -0.31014, -0.308445, -0.306709,
-0.305475, -0.304984, -0.30503, -0.305086, -0.304618, -0.30341,
-0.301689, -0.299991, -0.298835, -0.298417, -0.298486, -0.298501,
-0.297954, -0.296676, -0.294936, -0.29328, -0.292205, -0.291854,
-0.291939, -0.291909, -0.291282, -0.289937, -0.288184, -0.286578,
-0.285582, -0.285296, -0.28539, -0.285308, -0.284601, -0.283195,
-0.281436, -0.279883, -0.278968, -0.278741, -0.278837, -0.2787,
-0.277912, -0.276449, -0.274692, -0.273196, -0.272361, -0.272188,
-0.272281, -0.272083, -0.271216, -0.269702, -0.267952, -0.266518,
-0.265762, -0.265638, -0.265719, -0.265458, -0.264512, -0.262953,
-0.261217, -0.259849, -0.25917, -0.259088, -0.259152, -0.258824,
-0.257802, -0.256203, -0.254487, -0.253187, -0.252584, -0.252539,
-0.25258, -0.252182, -0.251086, -0.249453, -0.247764, -0.246535,
-0.246004, -0.24599, -0.246001, -0.245531, -0.244364, -0.242703,
-0.241046, -0.23989, -0.239429, -0.23944, -0.239416, -0.238872,
-0.237637, -0.235955, -0.234336, -0.233254, -0.232859, -0.232888,
-0.232824, -0.232205, -0.230906, -0.229208, -0.227633, -0.226626,
-0.226294, -0.226334, -0.226224, -0.22553, -0.224171, -0.222464,
-0.220937, -0.220006, -0.219732, -0.219778, -0.219617, -0.218847,
-0.217432, -0.215723, -0.214248, -0.213394, -0.213172, -0.213218,
-0.213002, -0.212157, -0.210691, -0.208986, -0.207568, -0.206788,
-0.206615, -0.206653, -0.20638, -0.20546, -0.203948, -0.202254,
-0.200895, -0.20019, -0.20006, -0.200085, -0.199749, -0.198756,
-0.197204, -0.195526, -0.194231, -0.193597, -0.193506, -0.193511,
-0.193111, -0.192046, -0.190459, -0.188803, -0.187574, -0.187011,
-0.186952, -0.186932, -0.186464, -0.18533, -0.183714, -0.182086,
-0.180926, -0.180431, -0.180397, -0.180347, -0.179809, -0.178609,
-0.176969, -0.175375, -0.174285, -0.173855, -0.173842, -0.173755,
-0.173147, -0.171884, -0.170226, -0.168671, -0.167653, -0.167283,
-0.167285, -0.167157, -0.166476, -0.165154, -0.163485, -0.161974,
-0.161028, -0.160716, -0.160726, -0.160551, -0.159799, -0.158421,
-0.156747, -0.155283, -0.15441, -0.154152, -0.154163, -0.153939,
-0.153113, -0.151684, -0.150012, -0.148601, -0.1478, -0.14759,
-0.147598, -0.147319, -0.146421, -0.144946, -0.14328, -0.141925,
-0.141196, -0.14103, -0.141028, -0.140691, -0.139723, -0.138206,
-0.136553, -0.135258, -0.134599, -0.134472, -0.134454, -0.134056,
-0.133018, -0.131464, -0.12983, -0.128598, -0.128008, -0.127915,
-0.127875, -0.127413, -0.126307, -0.124723, -0.123113, -0.121946,
-0.121422, -0.121357, -0.12129, -0.120762, -0.11959, -0.117981,
-0.116401, -0.115301, -0.114842, -0.114799, -0.1147, -0.114103,
-0.112869, -0.11124, -0.109696, -0.108664, -0.108266, -0.10824,
-0.108103, -0.107437, -0.106144, -0.104501, -0.102997, -0.102035,
-0.101694, -0.101679, -0.1015, -0.100763, -0.0994145, -0.097764,
-0.0963044, -0.0954133, -0.0951264, -0.0951161, -0.0948892, -0.0940826,
-0.0926819, -0.0910295, -0.0896191, -0.0887986, -0.0885613, -0.0885499,
-0.0882718, -0.0873948, -0.0859466, -0.0842983, -0.082941, -0.0821907,
-0.0819985, -0.0819801, -0.0816471, -0.0807002, -0.0792092, -0.0775709,
-0.0762704, -0.0755894, -0.0754376, -0.0754063, -0.0750149, -0.0739992,
-0.0724704, -0.0708479, -0.0696072, -0.0689943, -0.0688777, -0.0688279,
-0.0683752, -0.0672923, -0.0657308, -0.0641296, -0.0629516, -0.0624049,
-0.0623184, -0.0622444, -0.0617279, -0.0605798, -0.0589909, -0.0574167,
-0.0563036, -0.0558209, -0.055759, -0.0556555, -0.0550729, -0.0538622,
-0.0522515, -0.0507094, -0.0496632, -0.0492418, -0.0491989, -0.0490606,
-0.0484105, -0.0471399, -0.0455131, -0.0440082, -0.0430302, -0.0426671,
-0.0426375, -0.0424595, -0.0417406, -0.0404135, -0.0387763, -0.0373135,
-0.0364046, -0.0360963, -0.036074, -0.0358517, -0.0350635, -0.0336835,
-0.0320418, -0.0306255, -0.0297862, -0.0295287, -0.0295081, -0.0292371,
-0.0283792, -0.0269505, -0.0253101, -0.0239445, -0.0231748, -0.0229639,
-0.022939, -0.0226155, -0.0216882, -0.020215, -0.0185819, -0.0172707,
-0.01657, -0.0164012, -0.0163663, -0.0159865, -0.0149906, -0.0134777,
-0.0118575, -0.0106042, -0.00997157, -0.00984013, -0.00978931, -0.00935009,
-0.00828688, -0.00673917, -0.00513762, -0.00394526, -0.00337915, -0.00327994,
-0.00320767, -0.00270619, -0.00157733, 6.66134e-16, 0.00157733, 0.00270619,
0.00320767, 0.00327994, 0.00337915, 0.00394526, 0.00513762, 0.00673917,
0.00828688, 0.00935009, 0.00978931, 0.00984013, 0.00997157, 0.0106042,
0.0118575, 0.0134777, 0.0149906, 0.0159865, 0.0163663, 0.0164012,
0.01657, 0.0172707, 0.0185819, 0.020215, 0.0216882, 0.0226155,
0.022939, 0.0229639, 0.0231748, 0.0239445, 0.0253101, 0.0269505,
0.0283792, 0.0292371, 0.0295081, 0.0295287, 0.0297862, 0.0306255,
0.0320418, 0.0336835, 0.0350635, 0.0358517, 0.036074, 0.0360963,
0.0364046, 0.0373135, 0.0387763, 0.0404135, 0.0417406, 0.0424595,
0.0426375, 0.0426671, 0.0430302, 0.0440082, 0.0455131, 0.0471399,
0.0484105, 0.0490606, 0.0491989, 0.0492418, 0.0496632, 0.0507094,
0.0522515, 0.0538622, 0.0550729, 0.0556555, 0.055759, 0.0558209,
0.0563036, 0.0574167, 0.0589909, 0.0605798, 0.0617279, 0.0622444,
0.0623184, 0.0624049, 0.0629516, 0.0641296, 0.0657308, 0.0672923,
0.0683752, 0.0688279, 0.0688777, 0.0689943, 0.0696072, 0.0708479,
0.0724704, 0.0739992, 0.0750149, 0.0754063, 0.0754376, 0.0755894,
0.0762704, 0.0775709, 0.0792092, 0.0807002, 0.0816471, 0.0819801,
0.0819985, 0.0821907, 0.082941, 0.0842983, 0.0859466, 0.0873948,
0.0882718, 0.0885499, 0.0885613, 0.0887986, 0.0896191, 0.0910295,
0.0926819, 0.0940826, 0.0948892, 0.0951161, 0.0951264, 0.0954133,
0.0963044, 0.097764, 0.0994145, 0.100763, 0.1015, 0.101679,
0.101694, 0.102035, 0.102997, 0.104501, 0.106144, 0.107437,
0.108103, 0.10824, 0.108266, 0.108664, 0.109696, 0.11124,
0.112869, 0.114103, 0.1147, 0.114799, 0.114842, 0.115301,
0.116401, 0.117981, 0.11959, 0.120762, 0.12129, 0.121357,
0.121422, 0.121946, 0.123113, 0.124723, 0.126307, 0.127413,
0.127875, 0.127915, 0.128008, 0.128598, 0.12983, 0.131464,
0.133018, 0.134056, 0.134454, 0.134472, 0.134599, 0.135258,
0.136553, 0.138206, 0.139723, 0.140691, 0.141028, 0.14103,
0.141196, 0.141925, 0.14328, 0.144946, 0.146421, 0.147319,
0.147598, 0.14759, 0.1478, 0.148601, 0.150012, 0.151684,
0.153113, 0.153939, 0.154163, 0.154152, 0.15441, 0.155283,
0.156747, 0.158421, 0.159799, 0.160551, 0.160726, 0.160716,
0.161028, 0.161974, 0.163485, 0.165154, 0.166476, 0.167157,
0.167285, 0.167283, 0.167653, 0.168671, 0.170226, 0.171884,
0.173147, 0.173755, 0.173842, 0.173855, 0.174285, 0.175375,
0.176969, 0.178609, 0.179809, 0.180347, 0.180397, 0.180431,
0.180926, 0.182086, 0.183714, 0.18533, 0.186464, 0.186932,
0.186952, 0.187011, 0.187574, 0.188803, 0.190459, 0.192046,
0.193111, 0.193511, 0.193506, 0.193597, 0.194231, 0.195526,
0.197204, 0.198756, 0.199749, 0.200085, 0.20006, 0.20019,
0.200895, 0.202254, 0.203948, 0.20546, 0.20638, 0.206653,
0.206615, 0.206788, 0.207568, 0.208986, 0.210691, 0.212157,
0.213002, 0.213218, 0.213172, 0.213394, 0.214248, 0.215723,
0.217432, 0.218847, 0.219617, 0.219778, 0.219732, 0.220006,
0.220937, 0.222464, 0.224171, 0.22553, 0.226224, 0.226334,
0.226294, 0.226626, 0.227633, 0.229208, 0.230906, 0.232205,
0.232824, 0.232888, 0.232859, 0.233254, 0.234336, 0.235955,
0.237637, 0.238872, 0.239416, 0.23944, 0.239429, 0.23989,
0.241046, 0.242703, 0.244364, 0.245531, 0.246001, 0.24599,
0.246004, 0.246535, 0.247764, 0.249453, 0.251086, 0.252182,
0.25258, 0.252539, 0.252584, 0.253187, 0.254487, 0.256203,
0.257802, 0.258824, 0.259152, 0.259088, 0.25917, 0.259849,
0.261217, 0.262953, 0.264512, 0.265458, 0.265719, 0.265638,
0.265762, 0.266518, 0.267952, 0.269702, 0.271216, 0.272083,
0.272281, 0.272188, 0.272361, 0.273196, 0.274692, 0.276449,
0.277912, 0.2787, 0.278837, 0.278741, 0.278968, 0.279883,
0.281436, 0.283195, 0.284601, 0.285308, 0.28539, 0.285296,
0.285582, 0.286578, 0.288184, 0.289937, 0.291282, 0.291909,
0.291939, 0.291854, 0.292205, 0.29328, 0.294936, 0.296676,
0.297954, 0.298501, 0.298486, 0.298417, 0.298835, 0.299991,
0.301689, 0.30341, 0.304618, 0.305086, 0.30503, 0.304984,
0.305475, 0.306709, 0.308445, 0.31014, 0.311274, 0.311663,
0.311573, 0.311556, 0.312123, 0.313434, 0.315202, 0.316864,
0.31792, 0.318234, 0.318115, 0.318134, 0.31878, 0.320166,
0.32196, 0.323582, 0.324557, 0.324798, 0.324657, 0.324718,
0.325447, 0.326905, 0.328717, 0.330293, 0.331186, 0.331355,
0.331199, 0.33131, 0.332122, 0.333649, 0.335473, 0.336997,
0.337805, 0.337908, 0.337743, 0.337909, 0.338807, 0.340398,
0.342227, 0.343693, 0.344415, 0.344455, 0.344289, 0.344516,
0.3455, 0.347152, 0.348979, 0.350381, 0.351016, 0.350998,
0.350838, 0.351131, 0.352203, 0.35391, 0.355727, 0.357061,
0.357608, 0.357537, 0.35739, 0.357755, 0.358914, 0.360672,
0.362471, 0.363731, 0.364192, 0.364074, 0.363947, 0.364389,
0.365634, 0.367436, 0.369211, 0.370392, 0.370767, 0.370608,
0.370509, 0.371032, 0.372362, 0.374202, 0.375945, 0.377044,
0.377334, 0.37714, 0.377077, 0.377684, 0.379097, 0.380969,
0.382674, 0.383686, 0.383894, 0.383672, 0.383651, 0.384346,
0.38584, 0.387736, 0.389395, 0.390317, 0.390447, 0.390203,
0.390233, 0.391019, 0.39259, 0.394504, 0.396109, 0.396939,
0.396993, 0.396736, 0.396822, 0.397701, 0.399346, 0.40127,
0.402815, 0.403551, 0.403533, 0.40327, 0.403419, 0.404393,
0.406108, 0.408034, 0.409512, 0.410153, 0.410067, 0.409806,
0.410026, 0.411096, 0.412875, 0.414795, 0.416201, 0.416745,
0.416597, 0.416346, 0.416641, 0.417808, 0.419647, 0.421553,
0.422879, 0.423327, 0.423123, 0.422889, 0.423267, 0.42453,
0.426422, 0.428306, 0.429548, 0.429899, 0.429645, 0.429438,
0.429902, 0.431261, 0.4332, 0.435054, 0.436206, 0.436462,
0.436165, 0.435992, 0.436548, 0.438002, 0.439981, 0.441796,
0.442854, 0.443016, 0.442683, 0.442552, 0.443205, 0.444751,
0.446762, 0.448531, 0.449491, 0.449562, 0.4492, 0.44912,
0.449873, 0.451508, 0.453545, 0.455258, 0.456116, 0.4561,
0.455716, 0.455696, 0.456553, 0.458274, 0.460327, 0.461977,
0.46273, 0.46263, 0.462234, 0.46228, 0.463243, 0.465046,
0.467108, 0.468687, 0.469333, 0.469153, 0.468753, 0.468874,
0.469945, 0.471826, 0.473886, 0.475388, 0.475924, 0.47567,
0.475275, 0.475478, 0.476659, 0.478611, 0.480662, 0.482078,
0.482504, 0.482181, 0.4818, 0.482092, 0.483384, 0.485401,
0.487434, 0.488758, 0.489073, 0.488687, 0.48833, 0.488717,
0.49012, 0.492197, 0.494201, 0.495425, 0.495631, 0.495189,
0.494865, 0.495354, 0.496866, 0.498995, 0.500962, 0.502082,
0.502177, 0.501688, 0.501406, 0.502003, 0.503624, 0.505797,
0.507716, 0.508725, 0.508714, 0.508184, 0.507955, 0.508665,
0.510392, 0.5126, 0.514463, 0.515357, 0.51524, 0.514679,
0.514511, 0.51534, 0.51717, 0.519405, 0.521201, 0.521975,
0.521756, 0.521174, 0.521077, 0.522027, 0.523957, 0.52621,
0.52793, 0.52858, 0.528264, 0.527669, 0.527652, 0.528728,
0.530753, 0.533013, 0.534648, 0.535171, 0.534762, 0.534165,
0.534238, 0.535443, 0.537558, 0.539815, 0.541356, 0.541749,
0.541253, 0.540664, 0.540836, 0.542171, 0.54437, 0.546614,
0.548051, 0.548313, 0.547736, 0.547166, 0.547446, 0.548912,
0.551189, 0.553409, 0.554734, 0.554864, 0.554214, 0.553673,
0.554068, 0.555668, 0.558014, 0.560198, 0.561404, 0.561401,
0.560685, 0.560185, 0.560705, 0.562437, 0.564844, 0.566981,
0.56806, 0.567924, 0.567151, 0.566705, 0.567355, 0.569219,
0.571679, 0.573757, 0.574701, 0.574435, 0.573614, 0.573232,
0.574021, 0.576014, 0.578517, 0.580525, 0.581326, 0.580932,
0.580074, 0.579768, 0.580702, 0.582822, 0.585357, 0.587283,
0.587936, 0.587417, 0.586532, 0.586314, 0.5874, 0.589643,
0.592199, 0.59403, 0.59453, 0.593889, 0.592989, 0.592872,
0.594113, 0.596475, 0.599041, 0.600766, 0.601107, 0.60035,
0.599447, 0.599441, 0.600844, 0.603319, 0.605882, 0.607489,
0.607667, 0.6068, 0.605906, 0.606024, 0.607592, 0.610174,
0.612721, 0.614198, 0.614209, 0.613239, 0.612367, 0.612622,
0.614358, 0.617039, 0.619557, 0.620892, 0.620733, 0.619668,
0.618833, 0.619235, 0.621141, 0.623914, 0.626388, 0.62757,
0.62724, 0.626088, 0.625303, 0.625865, 0.627943, 0.630798,
0.633213, 0.634231, 0.633728, 0.632499, 0.631781, 0.632512,
0.634763, 0.637689, 0.640031, 0.640873, 0.640198, 0.638902,
0.638265, 0.639178, 0.641602, 0.644589, 0.646841, 0.647497,
0.646649, 0.645299, 0.644759, 0.645863, 0.648459, 0.651494,
0.653641, 0.6541, 0.653081, 0.65169, 0.651264, 0.65257,
0.655335, 0.658405, 0.66043, 0.660682, 0.659495, 0.658076,
0.657781, 0.659298, 0.66223, 0.66532, 0.667206, 0.667241,
0.66589, 0.664458, 0.664311, 0.66605, 0.669144, 0.672239,
0.673968, 0.673777, 0.672266, 0.670837, 0.670856, 0.672826,
0.676077, 0.67916, 0.680714, 0.680288, 0.678622, 0.677214,
0.677417, 0.679627, 0.683029, 0.686083, 0.687442, 0.686772,
0.684959, 0.68359, 0.683997, 0.686455, 0.690001, 0.693006,
0.694152, 0.69323, 0.691277, 0.689966, 0.690597, 0.693311,
0.696992, 0.699928, 0.70084, 0.699658, 0.697575, 0.696344,
0.697219, 0.700197, 0.704003, 0.706849, 0.707506, 0.706055,
0.703853, 0.702724, 0.703865, 0.707114, 0.711035, 0.713766,
0.714146, 0.71242, 0.71011, 0.709107, 0.710537, 0.714066,
0.718088, 0.72068, 0.720759, 0.71875, 0.716345, 0.715496,
0.717238, 0.721053, 0.725163, 0.727588, 0.727342, 0.725043,
0.722557, 0.72189, 0.723971, 0.72808, 0.732262, 0.734489,
0.733891, 0.731294, 0.728745, 0.728291, 0.730738, 0.73515,
0.739386, 0.741383, 0.740404, 0.7375, 0.734906, 0.7347,
0.737545, 0.742267, 0.746539, 0.748269, 0.746875, 0.743656,
0.741038, 0.741119, 0.744396, 0.749438, 0.753722, 0.755144,
0.753299, 0.749755, 0.747136, 0.747548, 0.751296, 0.756669,
0.760941, 0.762008, 0.75967, 0.75579, 0.753196, 0.75399,
0.758254, 0.763971, 0.768203, 0.768859, 0.765979, 0.761747,
0.75921, 0.760445, 0.76528, 0.771356, 0.775514, 0.775696,
0.772214, 0.767613, 0.765168, 0.766915, 0.772386, 0.778842,
0.782888, 0.782517, 0.778361, 0.773367, 0.771057, 0.773402,
0.77959, 0.786454, 0.79034, 0.789319, 0.784397, 0.778979,
0.776856, 0.779909, 0.786919, 0.794226, 0.797895, 0.7961,
0.790292, 0.784408, 0.782536, 0.786439, 0.794409, 0.802211,
0.805588, 0.802855, 0.796, 0.789588, 0.788054, 0.792999,
0.802119, 0.810489, 0.813475, 0.809577, 0.801448, 0.794419,
0.79334, 0.799597, 0.810142, 0.819188, 0.821643, 0.816252,
0.806513, 0.798733, 0.798278, 0.806253, 0.818639, 0.828533,
0.830248, 0.822855, 0.81098, 0.802226, 0.802659, 0.813002,
0.827912, 0.838945, 0.839577, 0.829329, 0.814411, 0.804294,
0.806073, 0.819939, 0.83861, 0.851322, 0.85024, 0.835517,
0.8158, 0.80354, 0.807577, 0.827346, 0.852396, 0.867968,
0.863773, 0.840859, 0.812181, 0.795861, 0.804476, 0.836463,
0.875159, 0.897035, 0.885396, 0.842067, 0.789748, 0.762096,
0.785167, 0.859164, 0.950505, 1, 0.945317, 0.74845,
0.415654, 8.88178e-16
};
static const float WAVE_SAW_054[DEFAULT_WAVELEN] = {
-0.213269, -0.41544, -0.596451, -0.748198, -0.865239, -0.94521,
-0.988898, -1, -0.984567, -0.950242, -0.90536, -0.858033,
-0.815325, -0.782596, -0.763097, -0.757843, -0.765751, -0.784033,
-0.808748, -0.835458, -0.859885, -0.878488, -0.88889, -0.890114,
-0.8826, -0.868035, -0.849008, -0.828577, -0.809786, -0.795227,
-0.786691, -0.784958, -0.789745, -0.799814, -0.813208, -0.827587,
-0.840592, -0.850196, -0.854992, -0.854369, -0.848562, -0.838576,
-0.826001, -0.812742, -0.800722, -0.791592, -0.786492, -0.785903,
-0.789602, -0.796725, -0.80592, -0.815576, -0.824071, -0.830023,
-0.832487, -0.831084, -0.826038, -0.818119, -0.808511, -0.798614,
-0.789827, -0.783332, -0.779924, -0.779901, -0.783034, -0.788618,
-0.795595, -0.802725, -0.808781, -0.812735, -0.813912, -0.81208,
-0.807475, -0.800753, -0.792873, -0.784951, -0.778077, -0.773153,
-0.770759, -0.771071, -0.773847, -0.778469, -0.784056, -0.789594,
-0.794104, -0.796787, -0.797144, -0.795045, -0.790738, -0.784808,
-0.778077, -0.771469, -0.765873, -0.762001, -0.760284, -0.760815,
-0.763336, -0.767289, -0.771909, -0.776339, -0.779772, -0.781569,
-0.781356, -0.779076, -0.774991, -0.769636, -0.763734, -0.758076,
-0.753402, -0.750288, -0.749058, -0.749738, -0.752063, -0.755515,
-0.759413, -0.763019, -0.765651, -0.766791, -0.766158, -0.763752,
-0.759843, -0.754932, -0.749665, -0.744732, -0.740762, -0.738224,
-0.73736, -0.738147, -0.74031, -0.743365, -0.746697, -0.749658,
-0.751666, -0.752297, -0.751343, -0.748846, -0.745087, -0.740535,
-0.735776, -0.731422, -0.72801, -0.725927, -0.725346, -0.72621,
-0.728234, -0.730962, -0.733833, -0.73627, -0.737775, -0.737997,
-0.73679, -0.734229, -0.730601, -0.726349, -0.722013, -0.718135,
-0.71518, -0.713465, -0.713112, -0.714029, -0.71593, -0.718378,
-0.72086, -0.722862, -0.72395, -0.723837, -0.722425, -0.71982,
-0.71631, -0.712319, -0.708342, -0.704866, -0.702294, -0.700885,
-0.700716, -0.701669, -0.703456, -0.705661, -0.707808, -0.709437,
-0.710172, -0.709778, -0.708201, -0.705567, -0.702167, -0.698406,
-0.694742, -0.691612, -0.689367, -0.688216, -0.688198, -0.689173,
-0.690853, -0.69284, -0.694693, -0.695999, -0.696429, -0.695798,
-0.694083, -0.691433, -0.688137, -0.684584, -0.681197, -0.678371,
-0.67641, -0.675479, -0.675585, -0.676571, -0.678149, -0.679937,
-0.681528, -0.682548, -0.682713, -0.681878, -0.68005, -0.677394,
-0.674199, -0.670836, -0.667698, -0.665142, -0.663429, -0.662688,
-0.662896, -0.663884, -0.665363, -0.666968, -0.668322, -0.669086,
-0.669018, -0.668006, -0.666085, -0.663432, -0.660334, -0.657147,
-0.654237, -0.651923, -0.65043, -0.649853, -0.650147, -0.651128,
-0.652509, -0.653944, -0.655081, -0.655615, -0.655339, -0.654173,
-0.652176, -0.649533, -0.646531, -0.64351, -0.640808, -0.638713,
-0.637416, -0.636983, -0.637346, -0.638313, -0.639599, -0.640874,
-0.64181, -0.642135, -0.641673, -0.640373, -0.638313, -0.635688,
-0.632781, -0.629915, -0.627406, -0.625511, -0.624391, -0.624084,
-0.624503, -0.625448, -0.62664, -0.627763, -0.628513, -0.628646,
-0.628017, -0.6266, -0.624489, -0.621889, -0.619076, -0.616359,
-0.61403, -0.612318, -0.611356, -0.611159, -0.611623, -0.612541,
-0.61364, -0.614617, -0.615192, -0.61515, -0.61437, -0.61285,
-0.6107, -0.608129, -0.60541, -0.602835, -0.600675, -0.599132,
-0.598314, -0.598213, -0.59871, -0.599597, -0.600602, -0.60144,
-0.601852, -0.601646, -0.60073, -0.599121, -0.596941, -0.594405,
-0.591779, -0.589341, -0.587339, -0.585953, -0.585265, -0.585247,
-0.58577, -0.586619, -0.587531, -0.588235, -0.588492, -0.588137,
-0.587097, -0.585409, -0.58321, -0.580713, -0.578179, -0.575873,
-0.574022, -0.57278, -0.572209, -0.572264, -0.572803, -0.573611,
-0.57443, -0.575004, -0.575116, -0.574621, -0.573469, -0.571714,
-0.569502, -0.567049, -0.564608, -0.56243, -0.56072, -0.559613,
-0.559149, -0.559266, -0.559814, -0.560575, -0.561302, -0.561751,
-0.561724, -0.561099, -0.559846, -0.558034, -0.555817, -0.553412,
-0.551064, -0.549008, -0.547433, -0.546452, -0.546083, -0.546253,
-0.546803, -0.547515, -0.548148, -0.548476, -0.548318, -0.547573,
-0.546228, -0.544367, -0.542152, -0.539798, -0.537543, -0.535607,
-0.53416, -0.533295, -0.533013, -0.533228, -0.533772, -0.534431,
-0.534972, -0.535182, -0.534899, -0.534042, -0.532615, -0.530714,
-0.528506, -0.526207, -0.524045, -0.522225, -0.520899, -0.520142,
-0.519939, -0.520189, -0.520723, -0.521325, -0.521774, -0.521869,
-0.521469, -0.520507, -0.519006, -0.517072, -0.514879, -0.512637,
-0.510567, -0.50886, -0.50765, -0.506993, -0.50686, -0.507139,
-0.507656, -0.508199, -0.508556, -0.50854, -0.508027, -0.506968,
-0.505402, -0.503443, -0.501268, -0.499088, -0.49711, -0.495512,
-0.494411, -0.493847, -0.493776, -0.494077, -0.494572, -0.495054,
-0.495318, -0.495195, -0.494575, -0.493427, -0.491802, -0.489825,
-0.487675, -0.485557, -0.48367, -0.482179, -0.481182, -0.480704,
-0.480688, -0.481004, -0.481472, -0.48189, -0.482063, -0.481835,
-0.481113, -0.479883, -0.478207, -0.476218, -0.474097, -0.472044,
-0.470249, -0.46886, -0.467962, -0.467563, -0.467595, -0.467919,
-0.468356, -0.468708, -0.46879, -0.468461, -0.467643, -0.466337,
-0.464617, -0.462622, -0.460534, -0.458548, -0.456844, -0.455555,
-0.45475, -0.454424, -0.454496, -0.454824, -0.455226, -0.455509,
-0.455501, -0.455074, -0.454165, -0.452789, -0.451032, -0.449037,
-0.446986, -0.44507, -0.443455, -0.442262, -0.441546, -0.441287,
-0.441393, -0.441718, -0.44208, -0.442294, -0.442197, -0.441674,
-0.44068, -0.439241, -0.437452, -0.435462, -0.433453, -0.431607,
-0.430081, -0.428981, -0.428349, -0.42815, -0.428284, -0.428601,
-0.428921, -0.429063, -0.428877, -0.428264, -0.427189, -0.425692,
-0.423878, -0.421899, -0.419934, -0.41816, -0.416721, -0.415712,
-0.415157, -0.415013, -0.41517, -0.415474, -0.415747, -0.415817,
-0.415544, -0.414842, -0.413692, -0.412143, -0.410309, -0.408346,
-0.406429, -0.404728, -0.403376, -0.402453, -0.401971, -0.401876,
-0.402049, -0.402335, -0.402559, -0.402556, -0.402197, -0.401411,
-0.400189, -0.398595, -0.396747, -0.394804, -0.392938, -0.39131,
-0.390043, -0.389203, -0.38879, -0.388738, -0.388923, -0.389186,
-0.389358, -0.389281, -0.388838, -0.38797, -0.386682, -0.385048,
-0.383191, -0.381272, -0.37946, -0.377907, -0.376723, -0.375963,
-0.375613, -0.375598, -0.375789, -0.376027, -0.376143, -0.375991,
-0.375466, -0.37452, -0.373172, -0.371502, -0.369642, -0.367752,
-0.365996, -0.364517, -0.363415, -0.362731, -0.36244, -0.362457,
-0.362649, -0.362856, -0.362915, -0.362689, -0.362083, -0.361062,
-0.359658, -0.357959, -0.3561, -0.354242, -0.352545, -0.351141,
-0.350119, -0.349507, -0.34927, -0.349314, -0.349502, -0.349674,
-0.349674, -0.349373, -0.348688, -0.347597, -0.346141, -0.344417,
-0.342566, -0.340744, -0.339106, -0.337777, -0.336833, -0.33629,
-0.336102, -0.336168, -0.336347, -0.336481, -0.336421, -0.336045,
-0.335283, -0.334125, -0.332622, -0.330879, -0.329038, -0.327256,
-0.32568, -0.324426, -0.323557, -0.323079, -0.322936, -0.323018,
-0.323184, -0.323278, -0.323154, -0.322704, -0.321868, -0.320647,
-0.319102, -0.317345, -0.315519, -0.31378, -0.312267, -0.311087,
-0.310291, -0.309874, -0.309771, -0.309865, -0.310014, -0.310063,
-0.309875, -0.309351, -0.308443, -0.307163, -0.305581, -0.303814,
-0.302008, -0.300315, -0.298866, -0.297759, -0.297035, -0.296675,
-0.296606, -0.296708, -0.296835, -0.296837, -0.296584, -0.295987,
-0.29501, -0.293674, -0.29206, -0.290288, -0.288506, -0.28686,
-0.285478, -0.284443, -0.283787, -0.28348, -0.283442, -0.283546,
-0.283647, -0.2836, -0.283281, -0.282612, -0.281568, -0.280181,
-0.278539, -0.276767, -0.275012, -0.273417, -0.272101, -0.271138,
-0.270547, -0.27029, -0.270276, -0.270379, -0.270451, -0.270351,
-0.269966, -0.269227, -0.268118, -0.266684, -0.265018, -0.263251,
-0.261527, -0.259985, -0.258736, -0.257843, -0.257314, -0.257102,
-0.25711, -0.257206, -0.257245, -0.257092, -0.25664, -0.255831,
-0.254661, -0.253184, -0.2515, -0.249741, -0.248051, -0.246565,
-0.245382, -0.244558, -0.244089, -0.243918, -0.243942, -0.244028,
-0.24403, -0.243821, -0.243302, -0.242425, -0.241198, -0.239681,
-0.237983, -0.236236, -0.234585, -0.233155, -0.23204, -0.231282,
-0.23087, -0.230736, -0.230772, -0.230843, -0.230806, -0.230539,
-0.229953, -0.22901, -0.227728, -0.226177, -0.224468, -0.222739,
-0.221128, -0.219757, -0.218709, -0.218016, -0.217656, -0.217556,
-0.2176, -0.217651, -0.217573, -0.217246, -0.216593, -0.215587,
-0.214253, -0.212671, -0.210957, -0.209248, -0.207681, -0.20637,
-0.205388, -0.204758, -0.204448, -0.204376, -0.204424, -0.204453,
-0.204329, -0.203942, -0.203223, -0.202154, -0.200773, -0.199164,
-0.197449, -0.195765, -0.194244, -0.192993, -0.192077, -0.191509,
-0.191245, -0.191198, -0.191244, -0.191247, -0.191075, -0.190627,
-0.189843, -0.188714, -0.187288, -0.185657, -0.183945, -0.182289,
-0.180817, -0.179628, -0.178777, -0.178267, -0.178046, -0.178019,
-0.17806, -0.178033, -0.177812, -0.177301, -0.176452, -0.175266,
-0.173799, -0.17215, -0.170445, -0.168821, -0.1674, -0.166273,
-0.165487, -0.165032, -0.16485, -0.16484, -0.164871, -0.164811,
-0.164538, -0.163965, -0.163052, -0.161812, -0.160308, -0.158644,
-0.156951, -0.155361, -0.153993, -0.152929, -0.152206, -0.151804,
-0.151658, -0.151659, -0.151678, -0.151581, -0.151254, -0.150618,
-0.149643, -0.148351, -0.146813, -0.14514, -0.143461, -0.14191,
-0.140596, -0.139596, -0.138934, -0.138583, -0.138468, -0.138477,
-0.138478, -0.138342, -0.137959, -0.137261, -0.136225, -0.134884,
-0.133316, -0.131637, -0.129978, -0.128467, -0.12721, -0.126273,
-0.12567, -0.125367, -0.12528, -0.125292, -0.125273, -0.125094,
-0.124655, -0.123893, -0.122798, -0.121411, -0.119818, -0.118137,
-0.116501, -0.115034, -0.113834, -0.112959, -0.112415, -0.112156,
-0.112093, -0.112105, -0.112061, -0.111837, -0.111339, -0.110515,
-0.109363, -0.107933, -0.106318, -0.10464, -0.10303, -0.101609,
-0.100469, -0.0996563, -0.0991681, -0.0989503, -0.0989068, -0.0989144,
-0.098842, -0.0985711, -0.098014, -0.0971278, -0.0959209, -0.0944515,
-0.0928187, -0.0911469, -0.0895668, -0.0881945, -0.0871137, -0.0863627,
-0.0859284, -0.0857485, -0.0857209, -0.08572, -0.0856161, -0.0852954,
-0.0846782, -0.0837309, -0.0824712, -0.0809657, -0.0793189, -0.0776577,
-0.0761108, -0.0747892, -0.0737688, -0.0730786, -0.0726958, -0.0725503,
-0.0725346, -0.0725213, -0.0723825, -0.0720101, -0.0713322, -0.0703247,
-0.0690147, -0.0674765, -0.0658199, -0.064173, -0.0626625, -0.0613937,
-0.0604342, -0.0598035, -0.0594698, -0.0593551, -0.0593473, -0.0593177,
-0.059141, -0.0587149, -0.057976, -0.0569095, -0.0555518, -0.0539846,
-0.052322, -0.0506934, -0.0492223, -0.048008, -0.0471097, -0.0465373,
-0.0462499, -0.0461625, -0.0461586, -0.0461089, -0.0458913, -0.0454099,
-0.0446097, -0.0434857, -0.042083, -0.0404904, -0.038826, -0.0372192,
-0.0357905, -0.0346323, -0.0337952, -0.0332795, -0.0330357, -0.0329718,
-0.0329678, -0.0328943, -0.0326331, -0.0320948, -0.0312335, -0.0300535,
-0.0286088, -0.0269945, -0.0253323, -0.0237511, -0.0223673, -0.0212666,
-0.0204905, -0.0200299, -0.0198267, -0.0197825, -0.0197744, -0.0196736,
-0.019366, -0.0187696, -0.0178475, -0.0166134, -0.0151297, -0.0134975,
-0.0118414, -0.0102893, -0.0089531, -0.00791106, -0.00719556, -0.00678814,
-0.00662235, -0.00659408, -0.00657784, -0.00644624, -0.00608987, -0.00543436,
-0.00445191, -0.00316567, -0.00164609, -1.11022e-16, 0.00164609, 0.00316567,
0.00445191, 0.00543436, 0.00608987, 0.00644624, 0.00657784, 0.00659408,
0.00662235, 0.00678814, 0.00719556, 0.00791106, 0.0089531, 0.0102893,
0.0118414, 0.0134975, 0.0151297, 0.0166134, 0.0178475, 0.0187696,
0.019366, 0.0196736, 0.0197744, 0.0197825, 0.0198267, 0.0200299,
0.0204905, 0.0212666, 0.0223673, 0.0237511, 0.0253323, 0.0269945,
0.0286088, 0.0300535, 0.0312335, 0.0320948, 0.0326331, 0.0328943,
0.0329678, 0.0329718, 0.0330357, 0.0332795, 0.0337952, 0.0346323,
0.0357905, 0.0372192, 0.038826, 0.0404904, 0.042083, 0.0434857,
0.0446097, 0.0454099, 0.0458913, 0.0461089, 0.0461586, 0.0461625,
0.0462499, 0.0465373, 0.0471097, 0.048008, 0.0492223, 0.0506934,
0.052322, 0.0539846, 0.0555518, 0.0569095, 0.057976, 0.0587149,
0.059141, 0.0593177, 0.0593473, 0.0593551, 0.0594698, 0.0598035,
0.0604342, 0.0613937, 0.0626625, 0.064173, 0.0658199, 0.0674765,
0.0690147, 0.0703247, 0.0713322, 0.0720101, 0.0723825, 0.0725213,
0.0725346, 0.0725503, 0.0726958, 0.0730786, 0.0737688, 0.0747892,
0.0761108, 0.0776577, 0.0793189, 0.0809657, 0.0824712, 0.0837309,
0.0846782, 0.0852954, 0.0856161, 0.08572, 0.0857209, 0.0857485,
0.0859284, 0.0863627, 0.0871137, 0.0881945, 0.0895668, 0.0911469,
0.0928187, 0.0944515, 0.0959209, 0.0971278, 0.098014, 0.0985711,
0.098842, 0.0989144, 0.0989068, 0.0989503, 0.0991681, 0.0996563,
0.100469, 0.101609, 0.10303, 0.10464, 0.106318, 0.107933,
0.109363, 0.110515, 0.111339, 0.111837, 0.112061, 0.112105,
0.112093, 0.112156, 0.112415, 0.112959, 0.113834, 0.115034,
0.116501, 0.118137, 0.119818, 0.121411, 0.122798, 0.123893,
0.124655, 0.125094, 0.125273, 0.125292, 0.12528, 0.125367,
0.12567, 0.126273, 0.12721, 0.128467, 0.129978, 0.131637,
0.133316, 0.134884, 0.136225, 0.137261, 0.137959, 0.138342,
0.138478, 0.138477, 0.138468, 0.138583, 0.138934, 0.139596,
0.140596, 0.14191, 0.143461, 0.14514, 0.146813, 0.148351,
0.149643, 0.150618, 0.151254, 0.151581, 0.151678, 0.151659,
0.151658, 0.151804, 0.152206, 0.152929, 0.153993, 0.155361,
0.156951, 0.158644, 0.160308, 0.161812, 0.163052, 0.163965,
0.164538, 0.164811, 0.164871, 0.16484, 0.16485, 0.165032,
0.165487, 0.166273, 0.1674, 0.168821, 0.170445, 0.17215,
0.173799, 0.175266, 0.176452, 0.177301, 0.177812, 0.178033,
0.17806, 0.178019, 0.178046, 0.178267, 0.178777, 0.179628,
0.180817, 0.182289, 0.183945, 0.185657, 0.187288, 0.188714,
0.189843, 0.190627, 0.191075, 0.191247, 0.191244, 0.191198,
0.191245, 0.191509, 0.192077, 0.192993, 0.194244, 0.195765,
0.197449, 0.199164, 0.200773, 0.202154, 0.203223, 0.203942,
0.204329, 0.204453, 0.204424, 0.204376, 0.204448, 0.204758,
0.205388, 0.20637, 0.207681, 0.209248, 0.210957, 0.212671,
0.214253, 0.215587, 0.216593, 0.217246, 0.217573, 0.217651,
0.2176, 0.217556, 0.217656, 0.218016, 0.218709, 0.219757,
0.221128, 0.222739, 0.224468, 0.226177, 0.227728, 0.22901,
0.229953, 0.230539, 0.230806, 0.230843, 0.230772, 0.230736,
0.23087, 0.231282, 0.23204, 0.233155, 0.234585, 0.236236,
0.237983, 0.239681, 0.241198, 0.242425, 0.243302, 0.243821,
0.24403, 0.244028, 0.243942, 0.243918, 0.244089, 0.244558,
0.245382, 0.246565, 0.248051, 0.249741, 0.2515, 0.253184,
0.254661, 0.255831, 0.25664, 0.257092, 0.257245, 0.257206,
0.25711, 0.257102, 0.257314, 0.257843, 0.258736, 0.259985,
0.261527, 0.263251, 0.265018, 0.266684, 0.268118, 0.269227,
0.269966, 0.270351, 0.270451, 0.270379, 0.270276, 0.27029,
0.270547, 0.271138, 0.272101, 0.273417, 0.275012, 0.276767,
0.278539, 0.280181, 0.281568, 0.282612, 0.283281, 0.2836,
0.283647, 0.283546, 0.283442, 0.28348, 0.283787, 0.284443,
0.285478, 0.28686, 0.288506, 0.290288, 0.29206, 0.293674,
0.29501, 0.295987, 0.296584, 0.296837, 0.296835, 0.296708,
0.296606, 0.296675, 0.297035, 0.297759, 0.298866, 0.300315,
0.302008, 0.303814, 0.305581, 0.307163, 0.308443, 0.309351,
0.309875, 0.310063, 0.310014, 0.309865, 0.309771, 0.309874,
0.310291, 0.311087, 0.312267, 0.31378, 0.315519, 0.317345,
0.319102, 0.320647, 0.321868, 0.322704, 0.323154, 0.323278,
0.323184, 0.323018, 0.322936, 0.323079, 0.323557, 0.324426,
0.32568, 0.327256, 0.329038, 0.330879, 0.332622, 0.334125,
0.335283, 0.336045, 0.336421, 0.336481, 0.336347, 0.336168,
0.336102, 0.33629, 0.336833, 0.337777, 0.339106, 0.340744,
0.342566, 0.344417, 0.346141, 0.347597, 0.348688, 0.349373,
0.349674, 0.349674, 0.349502, 0.349314, 0.34927, 0.349507,
0.350119, 0.351141, 0.352545, 0.354242, 0.3561, 0.357959,
0.359658, 0.361062, 0.362083, 0.362689, 0.362915, 0.362856,
0.362649, 0.362457, 0.36244, 0.362731, 0.363415, 0.364517,
0.365996, 0.367752, 0.369642, 0.371502, 0.373172, 0.37452,
0.375466, 0.375991, 0.376143, 0.376027, 0.375789, 0.375598,
0.375613, 0.375963, 0.376723, 0.377907, 0.37946, 0.381272,
0.383191, 0.385048, 0.386682, 0.38797, 0.388838, 0.389281,
0.389358, 0.389186, 0.388923, 0.388738, 0.38879, 0.389203,
0.390043, 0.39131, 0.392938, 0.394804, 0.396747, 0.398595,
0.400189, 0.401411, 0.402197, 0.402556, 0.402559, 0.402335,
0.402049, 0.401876, 0.401971, 0.402453, 0.403376, 0.404728,
0.406429, 0.408346, 0.410309, 0.412143, 0.413692, 0.414842,
0.415544, 0.415817, 0.415747, 0.415474, 0.41517, 0.415013,
0.415157, 0.415712, 0.416721, 0.41816, 0.419934, 0.421899,
0.423878, 0.425692, 0.427189, 0.428264, 0.428877, 0.429063,
0.428921, 0.428601, 0.428284, 0.42815, 0.428349, 0.428981,
0.430081, 0.431607, 0.433453, 0.435462, 0.437452, 0.439241,
0.44068, 0.441674, 0.442197, 0.442294, 0.44208, 0.441718,
0.441393, 0.441287, 0.441546, 0.442262, 0.443455, 0.44507,
0.446986, 0.449037, 0.451032, 0.452789, 0.454165, 0.455074,
0.455501, 0.455509, 0.455226, 0.454824, 0.454496, 0.454424,
0.45475, 0.455555, 0.456844, 0.458548, 0.460534, 0.462622,
0.464617, 0.466337, 0.467643, 0.468461, 0.46879, 0.468708,
0.468356, 0.467919, 0.467595, 0.467563, 0.467962, 0.46886,
0.470249, 0.472044, 0.474097, 0.476218, 0.478207, 0.479883,
0.481113, 0.481835, 0.482063, 0.48189, 0.481472, 0.481004,
0.480688, 0.480704, 0.481182, 0.482179, 0.48367, 0.485557,
0.487675, 0.489825, 0.491802, 0.493427, 0.494575, 0.495195,
0.495318, 0.495054, 0.494572, 0.494077, 0.493776, 0.493847,
0.494411, 0.495512, 0.49711, 0.499088, 0.501268, 0.503443,
0.505402, 0.506968, 0.508027, 0.50854, 0.508556, 0.508199,
0.507656, 0.507139, 0.50686, 0.506993, 0.50765, 0.50886,
0.510567, 0.512637, 0.514879, 0.517072, 0.519006, 0.520507,
0.521469, 0.521869, 0.521774, 0.521325, 0.520723, 0.520189,
0.519939, 0.520142, 0.520899, 0.522225, 0.524045, 0.526207,
0.528506, 0.530714, 0.532615, 0.534042, 0.534899, 0.535182,
0.534972, 0.534431, 0.533772, 0.533228, 0.533013, 0.533295,
0.53416, 0.535607, 0.537543, 0.539798, 0.542152, 0.544367,
0.546228, 0.547573, 0.548318, 0.548476, 0.548148, 0.547515,
0.546803, 0.546253, 0.546083, 0.546452, 0.547433, 0.549008,
0.551064, 0.553412, 0.555817, 0.558034, 0.559846, 0.561099,
0.561724, 0.561751, 0.561302, 0.560575, 0.559814, 0.559266,
0.559149, 0.559613, 0.56072, 0.56243, 0.564608, 0.567049,
0.569502, 0.571714, 0.573469, 0.574621, 0.575116, 0.575004,
0.57443, 0.573611, 0.572803, 0.572264, 0.572209, 0.57278,
0.574022, 0.575873, 0.578179, 0.580713, 0.58321, 0.585409,
0.587097, 0.588137, 0.588492, 0.588235, 0.587531, 0.586619,
0.58577, 0.585247, 0.585265, 0.585953, 0.587339, 0.589341,
0.591779, 0.594405, 0.596941, 0.599121, 0.60073, 0.601646,
0.601852, 0.60144, 0.600602, 0.599597, 0.59871, 0.598213,
0.598314, 0.599132, 0.600675, 0.602835, 0.60541, 0.608129,
0.6107, 0.61285, 0.61437, 0.61515, 0.615192, 0.614617,
0.61364, 0.612541, 0.611623, 0.611159, 0.611356, 0.612318,
0.61403, 0.616359, 0.619076, 0.621889, 0.624489, 0.6266,
0.628017, 0.628646, 0.628513, 0.627763, 0.62664, 0.625448,
0.624503, 0.624084, 0.624391, 0.625511, 0.627406, 0.629915,
0.632781, 0.635688, 0.638313, 0.640373, 0.641673, 0.642135,
0.64181, 0.640874, 0.639599, 0.638313, 0.637346, 0.636983,
0.637416, 0.638713, 0.640808, 0.64351, 0.646531, 0.649533,
0.652176, 0.654173, 0.655339, 0.655615, 0.655081, 0.653944,
0.652509, 0.651128, 0.650147, 0.649853, 0.65043, 0.651923,
0.654237, 0.657147, 0.660334, 0.663432, 0.666085, 0.668006,
0.669018, 0.669086, 0.668322, 0.666968, 0.665363, 0.663884,
0.662896, 0.662688, 0.663429, 0.665142, 0.667698, 0.670836,
0.674199, 0.677394, 0.68005, 0.681878, 0.682713, 0.682548,
0.681528, 0.679937, 0.678149, 0.676571, 0.675585, 0.675479,
0.67641, 0.678371, 0.681197, 0.684584, 0.688137, 0.691433,
0.694083, 0.695798, 0.696429, 0.695999, 0.694693, 0.69284,
0.690853, 0.689173, 0.688198, 0.688216, 0.689367, 0.691612,
0.694742, 0.698406, 0.702167, 0.705567, 0.708201, 0.709778,
0.710172, 0.709437, 0.707808, 0.705661, 0.703456, 0.701669,
0.700716, 0.700885, 0.702294, 0.704866, 0.708342, 0.712319,
0.71631, 0.71982, 0.722425, 0.723837, 0.72395, 0.722862,
0.72086, 0.718378, 0.71593, 0.714029, 0.713112, 0.713465,
0.71518, 0.718135, 0.722013, 0.726349, 0.730601, 0.734229,
0.73679, 0.737997, 0.737775, 0.73627, 0.733833, 0.730962,
0.728234, 0.72621, 0.725346, 0.725927, 0.72801, 0.731422,
0.735776, 0.740535, 0.745087, 0.748846, 0.751343, 0.752297,
0.751666, 0.749658, 0.746697, 0.743365, 0.74031, 0.738147,
0.73736, 0.738224, 0.740762, 0.744732, 0.749665, 0.754932,
0.759843, 0.763752, 0.766158, 0.766791, 0.765651, 0.763019,
0.759413, 0.755515, 0.752063, 0.749738, 0.749058, 0.750288,
0.753402, 0.758076, 0.763734, 0.769636, 0.774991, 0.779076,
0.781356, 0.781569, 0.779772, 0.776339, 0.771909, 0.767289,
0.763336, 0.760815, 0.760284, 0.762001, 0.765873, 0.771469,
0.778077, 0.784808, 0.790738, 0.795045, 0.797144, 0.796787,
0.794104, 0.789594, 0.784056, 0.778469, 0.773847, 0.771071,
0.770759, 0.773153, 0.778077, 0.784951, 0.792873, 0.800753,
0.807475, 0.81208, 0.813912, 0.812735, 0.808781, 0.802725,
0.795595, 0.788618, 0.783034, 0.779901, 0.779924, 0.783332,
0.789827, 0.798614, 0.808511, 0.818119, 0.826038, 0.831084,
0.832487, 0.830023, 0.824071, 0.815576, 0.80592, 0.796725,
0.789602, 0.785903, 0.786492, 0.791592, 0.800722, 0.812742,
0.826001, 0.838576, 0.848562, 0.854369, 0.854992, 0.850196,
0.840592, 0.827587, 0.813208, 0.799814, 0.789745, 0.784958,
0.786691, 0.795227, 0.809786, 0.828577, 0.849008, 0.868035,
0.8826, 0.890114, 0.88889, 0.878488, 0.859885, 0.835458,
0.808748, 0.784033, 0.765751, 0.757843, 0.763097, 0.782596,
0.815325, 0.858033, 0.90536, 0.950242, 0.984567, 1,
0.988898, 0.94521, 0.865239, 0.748198, 0.596451, 0.41544,
0.213269, 0
};
static const float WAVE_SAW_066[DEFAULT_WAVELEN] = {
-0.107216, -0.213028, -0.316061, -0.415011, -0.508663, -0.595928,
-0.675864, -0.747694, -0.810823, -0.864852, -0.909578, -0.944995,
-0.971292, -0.988841, -0.998181, -1, -0.995113, -0.984436,
-0.968959, -0.949717, -0.927759, -0.904126, -0.879817, -0.855765,
-0.832821, -0.811725, -0.793099, -0.777433, -0.765077, -0.756243,
-0.750999, -0.749286, -0.750919, -0.755604, -0.762956, -0.772514,
-0.783761, -0.79615, -0.809117, -0.822109, -0.834597, -0.846098,
-0.856188, -0.864515, -0.870808, -0.874885, -0.876653, -0.876109,
-0.873337, -0.868501, -0.861835, -0.853634, -0.844237, -0.834017,
-0.823364, -0.812669, -0.802312, -0.792645, -0.783985, -0.776597,
-0.77069, -0.766412, -0.763843, -0.762994, -0.763815, -0.766188,
-0.769946, -0.77487, -0.780704, -0.787165, -0.793956, -0.800773,
-0.80732, -0.813322, -0.818528, -0.822726, -0.82575, -0.827481,
-0.827851, -0.82685, -0.824515, -0.820939, -0.816257, -0.810642,
-0.804301, -0.797464, -0.790373, -0.783274, -0.776411, -0.770009,
-0.764274, -0.75938, -0.755466, -0.752629, -0.750924, -0.750361,
-0.750905, -0.752481, -0.754975, -0.758239, -0.7621, -0.766364,
-0.770827, -0.775279, -0.779516, -0.783346, -0.786596, -0.789118,
-0.790796, -0.791548, -0.791329, -0.790132, -0.787988, -0.784964,
-0.78116, -0.776703, -0.771746, -0.766455, -0.761009, -0.755588,
-0.75037, -0.745521, -0.741189, -0.737502, -0.73456, -0.732432,
-0.731156, -0.730735, -0.731141, -0.732311, -0.734158, -0.736566,
-0.739401, -0.742516, -0.745751, -0.748949, -0.751952, -0.754616,
-0.756808, -0.758418, -0.75936, -0.759573, -0.759027, -0.757721,
-0.755684, -0.752971, -0.749664, -0.745867, -0.741702, -0.737301,
-0.732806, -0.728361, -0.724103, -0.720164, -0.716659, -0.713687,
-0.711323, -0.709619, -0.7086, -0.708265, -0.708586, -0.70951,
-0.710962, -0.712845, -0.71505, -0.717454, -0.71993, -0.722347,
-0.72458, -0.726512, -0.728039, -0.729074, -0.729549, -0.72942,
-0.728666, -0.72729, -0.725321, -0.722808, -0.719823, -0.716454,
-0.712803, -0.708983, -0.705111, -0.701305, -0.697679, -0.694341,
-0.691384, -0.688886, -0.686907, -0.685486, -0.684639, -0.684362,
-0.684626, -0.685384, -0.686568, -0.688096, -0.689872, -0.691792,
-0.693748, -0.69563, -0.697335, -0.698764, -0.699832, -0.700468,
-0.70062, -0.700253, -0.699354, -0.69793, -0.696009, -0.693636,
-0.690877, -0.687809, -0.684522, -0.681111, -0.67768, -0.674328,
-0.671152, -0.668242, -0.665675, -0.663516, -0.661813, -0.660595,
-0.659872, -0.659637, -0.65986, -0.660498, -0.661488, -0.662758,
-0.664222, -0.665789, -0.667366, -0.668858, -0.670175, -0.671235,
-0.671966, -0.672309, -0.672223, -0.671681, -0.670674, -0.669214,
-0.667328, -0.665061, -0.66247, -0.659626, -0.656609, -0.653506,
-0.650404, -0.647392, -0.644553, -0.641965, -0.639693, -0.63779,
-0.636295, -0.63523, -0.634601, -0.634397, -0.634589, -0.635135,
-0.635978, -0.637051, -0.638277, -0.639575, -0.640862, -0.642055,
-0.643075, -0.643851, -0.644323, -0.644441, -0.644171, -0.643493,
-0.642404, -0.640916, -0.639058, -0.636871, -0.63441, -0.631741,
-0.628935, -0.62607, -0.623226, -0.62048, -0.617905, -0.615568,
-0.613526, -0.611824, -0.610492, -0.609548, -0.608993, -0.608813,
-0.608981, -0.609455, -0.610182, -0.611099, -0.612137, -0.613222,
-0.614278, -0.615233, -0.616017, -0.616568, -0.616834, -0.616772,
-0.616355, -0.615569, -0.614414, -0.612904, -0.611068, -0.608946,
-0.60659, -0.60406, -0.601424, -0.598751, -0.596114, -0.593582,
-0.59122, -0.589086, -0.587231, -0.58569, -0.584491, -0.583644,
-0.583149, -0.58299, -0.583138, -0.583553, -0.584185, -0.584975,
-0.58586, -0.58677, -0.587639, -0.5884, -0.588991, -0.589358,
-0.589454, -0.589245, -0.588708, -0.587834, -0.586624, -0.585096,
-0.583278, -0.581209, -0.578939, -0.576525, -0.574028, -0.571514,
-0.569048, -0.566693, -0.564507, -0.562542, -0.56084, -0.559435,
-0.558345, -0.55758, -0.557134, -0.556991, -0.557123, -0.557489,
-0.558042, -0.558727, -0.559483, -0.560249, -0.560961, -0.561559,
-0.561989, -0.562201, -0.562156, -0.561824, -0.561186, -0.560237,
-0.558982, -0.557438, -0.555635, -0.553612, -0.551414, -0.549097,
-0.546719, -0.544338, -0.542017, -0.539811, -0.537774, -0.535951,
-0.53438, -0.533088, -0.532091, -0.531394, -0.530991, -0.530862,
-0.530979, -0.531304, -0.53179, -0.532385, -0.533033, -0.533675,
-0.534253, -0.534714, -0.535006, -0.535086, -0.53492, -0.534483,
-0.533759, -0.532746, -0.531452, -0.529895, -0.528105, -0.52612,
-0.523985, -0.521751, -0.519474, -0.517208, -0.51501, -0.512933,
-0.511023, -0.509323, -0.507864, -0.50667, -0.505753, -0.505116,
-0.504749, -0.504633, -0.504738, -0.505027, -0.505455, -0.505972,
-0.506525, -0.50706, -0.507523, -0.507864, -0.508037, -0.508003,
-0.507732, -0.507203, -0.506405, -0.505337, -0.504008, -0.50244,
-0.500662, -0.49871, -0.496629, -0.494468, -0.492279, -0.490113,
-0.488024, -0.486058, -0.48426, -0.482667, -0.481306, -0.480198,
-0.479351, -0.478765, -0.47843, -0.478324, -0.478419, -0.478676,
-0.479054, -0.479503, -0.479974, -0.480415, -0.480776, -0.481011,
-0.48108, -0.480946, -0.480583, -0.479973, -0.479109, -0.477992,
-0.476634, -0.475056, -0.473287, -0.471365, -0.469332, -0.467235,
-0.465123, -0.463046, -0.461052, -0.459186, -0.457487, -0.455988,
-0.454714, -0.453681, -0.452897, -0.452357, -0.45205, -0.451954,
-0.452039, -0.452268, -0.452601, -0.452989, -0.453386, -0.453744,
-0.454015, -0.454157, -0.454132, -0.453909, -0.453464, -0.452782,
-0.45186, -0.450699, -0.449314, -0.447727, -0.445968, -0.444072,
-0.442082, -0.440042, -0.437999, -0.436002, -0.434093, -0.432315,
-0.430705, -0.42929, -0.428094, -0.427129, -0.4264, -0.425902,
-0.42562, -0.425532, -0.425609, -0.425814, -0.426105, -0.42644,
-0.426771, -0.427053, -0.427243, -0.427301, -0.427192, -0.426888,
-0.426369, -0.425624, -0.424648, -0.423449, -0.42204, -0.420445,
-0.418693, -0.416821, -0.414869, -0.412881, -0.410902, -0.408975,
-0.407144, -0.405446, -0.403915, -0.402577, -0.401452, -0.400548,
-0.39987, -0.399409, -0.39915, -0.39907, -0.399138, -0.39932,
-0.399575, -0.399861, -0.400132, -0.400346, -0.400462, -0.400444,
-0.400259, -0.399882, -0.399296, -0.398491, -0.397468, -0.396233,
-0.394802, -0.393199, -0.391455, -0.389605, -0.387688, -0.385747,
-0.383825, -0.381963, -0.380203, -0.378578, -0.37712, -0.375852,
-0.374791, -0.373944, -0.373311, -0.372884, -0.372646, -0.372573,
-0.372635, -0.372796, -0.373017, -0.373257, -0.373474, -0.373626,
-0.373674, -0.373586, -0.37333, -0.372887, -0.372239, -0.371381,
-0.370313, -0.369045, -0.367594, -0.365985, -0.364248, -0.362417,
-0.360533, -0.358635, -0.356765, -0.354964, -0.353268, -0.351711,
-0.35032, -0.349116, -0.348114, -0.347319, -0.346729, -0.346333,
-0.346114, -0.346048, -0.346103, -0.346245, -0.346435, -0.346634,
-0.3468, -0.346894, -0.34688, -0.346727, -0.346407, -0.345901,
-0.345196, -0.344288, -0.34318, -0.341882, -0.340412, -0.338797,
-0.337066, -0.335254, -0.333399, -0.331542, -0.329721, -0.327975,
-0.326339, -0.324844, -0.323516, -0.322372, -0.321425, -0.320677,
-0.320126, -0.31976, -0.319559, -0.319499, -0.319548, -0.319672,
-0.319834, -0.319993, -0.320112, -0.320153, -0.320081, -0.319867,
-0.319487, -0.318924, -0.318166, -0.317211, -0.316065, -0.314738,
-0.313252, -0.31163, -0.309905, -0.30811, -0.306283, -0.304463,
-0.302688, -0.300994, -0.299415, -0.297978, -0.296708, -0.29562,
-0.294724, -0.294022, -0.293508, -0.293169, -0.292985, -0.29293,
-0.292974, -0.293081, -0.293216, -0.293339, -0.293413, -0.293404,
-0.293277, -0.293007, -0.292571, -0.291953, -0.291145, -0.290147,
-0.288965, -0.287612, -0.286109, -0.284482, -0.282762, -0.280984,
-0.279183, -0.277398, -0.275666, -0.274021, -0.272494, -0.271113,
-0.269897, -0.268862, -0.268015, -0.267355, -0.266875, -0.266562,
-0.266394, -0.266344, -0.266383, -0.266475, -0.266583, -0.266672,
-0.266705, -0.266648, -0.26647, -0.266146, -0.265657, -0.264988,
-0.264133, -0.263094, -0.261878, -0.2605, -0.258981, -0.257349,
-0.255635, -0.253871, -0.252096, -0.250344, -0.248653, -0.247054,
-0.245577, -0.244248, -0.243084, -0.242099, -0.241297, -0.240678,
-0.240231, -0.239942, -0.239789, -0.239744, -0.239778, -0.239855,
-0.239939, -0.239996, -0.239989, -0.239887, -0.23966, -0.239285,
-0.238745, -0.238027, -0.237128, -0.236049, -0.234801, -0.2334,
-0.231867, -0.23023, -0.22852, -0.226771, -0.225019, -0.2233,
-0.221647, -0.220092, -0.218663, -0.217383, -0.216269, -0.215331,
-0.214573, -0.213992, -0.213577, -0.213311, -0.213172, -0.213133,
-0.213161, -0.213224, -0.213285, -0.213311, -0.213266, -0.21312,
-0.212847, -0.212424, -0.211835, -0.211071, -0.210129, -0.209013,
-0.207734, -0.20631, -0.204763, -0.203121, -0.201416, -0.199681,
-0.197952, -0.196263, -0.194647, -0.193134, -0.191751, -0.190519,
-0.189452, -0.18856, -0.187844, -0.187299, -0.186914, -0.186671,
-0.186546, -0.186511, -0.186535, -0.186584, -0.186623, -0.186618,
-0.186537, -0.186351, -0.186032, -0.185563, -0.184927, -0.184118,
-0.183135, -0.181983, -0.180674, -0.179228, -0.177667, -0.176021,
-0.174321, -0.172599, -0.170892, -0.169232, -0.167652, -0.16618,
-0.164841, -0.163655, -0.162634, -0.161785, -0.16111, -0.160601,
-0.160245, -0.160023, -0.159911, -0.159881, -0.1599, -0.159936,
-0.159954, -0.15992, -0.159804, -0.159577, -0.159216, -0.158701,
-0.15802, -0.157168, -0.156145, -0.154958, -0.153621, -0.152153,
-0.15058, -0.148929, -0.147233, -0.145525, -0.143838, -0.142207,
-0.140661, -0.139229, -0.137933, -0.136791, -0.135814, -0.135009,
-0.134372, -0.133898, -0.13357, -0.133369, -0.13327, -0.133244,
-0.133259, -0.133282, -0.133279, -0.133217, -0.133067, -0.132801,
-0.132397, -0.131839, -0.131115, -0.13022, -0.129158, -0.127938,
-0.126573, -0.125084, -0.123498, -0.121843, -0.120151, -0.118456,
-0.11679, -0.115186, -0.113674, -0.11228, -0.111026, -0.109927,
-0.108994, -0.10823, -0.107632, -0.10719, -0.10689, -0.10671,
-0.106623, -0.106601, -0.106612, -0.106623, -0.106599, -0.10651,
-0.106327, -0.106023, -0.105578, -0.104977, -0.10421, -0.103274,
-0.102175, -0.10092, -0.0995283, -0.0980198, -0.0964211, -0.0947619,
-0.0930742, -0.0913911, -0.0897455, -0.0881689, -0.0866899, -0.0853335,
-0.0841198, -0.0830634, -0.0821725, -0.0814492, -0.0808887, -0.0804803,
-0.0802069, -0.0800464, -0.0799723, -0.0799546, -0.0799613, -0.0799594,
-0.0799161, -0.0798005, -0.0795842, -0.0792431, -0.0787577, -0.0781144,
-0.0773054, -0.0763297, -0.0751926, -0.0739059, -0.0724871, -0.0709588,
-0.0693479, -0.0676845, -0.0660009, -0.06433, -0.0627042, -0.0611542,
-0.0597077, -0.0583883, -0.0572147, -0.0562, -0.0553508, -0.0546676,
-0.0541441, -0.053768, -0.0535211, -0.0533803, -0.0533183, -0.0533048,
-0.0533074, -0.0532933, -0.0532304, -0.0530883, -0.0528398, -0.0524619,
-0.0519367, -0.0512518, -0.0504014, -0.0493858, -0.0482121, -0.0468932,
-0.045448, -0.0439001, -0.0422771, -0.0406097, -0.0389302, -0.0372713,
-0.0356651, -0.0341414, -0.032727, -0.0314442, -0.0303103, -0.0293368,
-0.0285289, -0.0278853, -0.0273983, -0.0270542, -0.0268336, -0.0267124,
-0.0266624, -0.0266529, -0.0266515, -0.0266254, -0.026543, -0.0263746,
-0.0260942, -0.0256799, -0.0251151, -0.0243891, -0.0234976, -0.0224425,
-0.0212324, -0.0198816, -0.0184102, -0.0168428, -0.0152078, -0.0135364,
-0.0118609, -0.010214, -0.00862724, -0.00712972, -0.00574714, -0.0045007,
-0.00340625, -0.00247376, -0.00170685, -0.00110267, -0.000652048, -0.000339793,
-0.00014533, -4.34845e-5, -5.46758e-6, -1.11022e-16, 5.46758e-6, 4.34845e-5,
0.00014533, 0.000339793, 0.000652048, 0.00110267, 0.00170685, 0.00247376,
0.00340625, 0.0045007, 0.00574714, 0.00712972, 0.00862724, 0.010214,
0.0118609, 0.0135364, 0.0152078, 0.0168428, 0.0184102, 0.0198816,
0.0212324, 0.0224425, 0.0234976, 0.0243891, 0.0251151, 0.0256799,
0.0260942, 0.0263746, 0.026543, 0.0266254, 0.0266515, 0.0266529,
0.0266624, 0.0267124, 0.0268336, 0.0270542, 0.0273983, 0.0278853,
0.0285289, 0.0293368, 0.0303103, 0.0314442, 0.032727, 0.0341414,
0.0356651, 0.0372713, 0.0389302, 0.0406097, 0.0422771, 0.0439001,
0.045448, 0.0468932, 0.0482121, 0.0493858, 0.0504014, 0.0512518,
0.0519367, 0.0524619, 0.0528398, 0.0530883, 0.0532304, 0.0532933,
0.0533074, 0.0533048, 0.0533183, 0.0533803, 0.0535211, 0.053768,
0.0541441, 0.0546676, 0.0553508, 0.0562, 0.0572147, 0.0583883,
0.0597077, 0.0611542, 0.0627042, 0.06433, 0.0660009, 0.0676845,
0.0693479, 0.0709588, 0.0724871, 0.0739059, 0.0751926, 0.0763297,
0.0773054, 0.0781144, 0.0787577, 0.0792431, 0.0795842, 0.0798005,
0.0799161, 0.0799594, 0.0799613, 0.0799546, 0.0799723, 0.0800464,
0.0802069, 0.0804803, 0.0808887, 0.0814492, 0.0821725, 0.0830634,
0.0841198, 0.0853335, 0.0866899, 0.0881689, 0.0897455, 0.0913911,
0.0930742, 0.0947619, 0.0964211, 0.0980198, 0.0995283, 0.10092,
0.102175, 0.103274, 0.10421, 0.104977, 0.105578, 0.106023,
0.106327, 0.10651, 0.106599, 0.106623, 0.106612, 0.106601,
0.106623, 0.10671, 0.10689, 0.10719, 0.107632, 0.10823,
0.108994, 0.109927, 0.111026, 0.11228, 0.113674, 0.115186,
0.11679, 0.118456, 0.120151, 0.121843, 0.123498, 0.125084,
0.126573, 0.127938, 0.129158, 0.13022, 0.131115, 0.131839,
0.132397, 0.132801, 0.133067, 0.133217, 0.133279, 0.133282,
0.133259, 0.133244, 0.13327, 0.133369, 0.13357, 0.133898,
0.134372, 0.135009, 0.135814, 0.136791, 0.137933, 0.139229,
0.140661, 0.142207, 0.143838, 0.145525, 0.147233, 0.148929,
0.15058, 0.152153, 0.153621, 0.154958, 0.156145, 0.157168,
0.15802, 0.158701, 0.159216, 0.159577, 0.159804, 0.15992,
0.159954, 0.159936, 0.1599, 0.159881, 0.159911, 0.160023,
0.160245, 0.160601, 0.16111, 0.161785, 0.162634, 0.163655,
0.164841, 0.16618, 0.167652, 0.169232, 0.170892, 0.172599,
0.174321, 0.176021, 0.177667, 0.179228, 0.180674, 0.181983,
0.183135, 0.184118, 0.184927, 0.185563, 0.186032, 0.186351,
0.186537, 0.186618, 0.186623, 0.186584, 0.186535, 0.186511,
0.186546, 0.186671, 0.186914, 0.187299, 0.187844, 0.18856,
0.189452, 0.190519, 0.191751, 0.193134, 0.194647, 0.196263,
0.197952, 0.199681, 0.201416, 0.203121, 0.204763, 0.20631,
0.207734, 0.209013, 0.210129, 0.211071, 0.211835, 0.212424,
0.212847, 0.21312, 0.213266, 0.213311, 0.213285, 0.213224,
0.213161, 0.213133, 0.213172, 0.213311, 0.213577, 0.213992,
0.214573, 0.215331, 0.216269, 0.217383, 0.218663, 0.220092,
0.221647, 0.2233, 0.225019, 0.226771, 0.22852, 0.23023,
0.231867, 0.2334, 0.234801, 0.236049, 0.237128, 0.238027,
0.238745, 0.239285, 0.23966, 0.239887, 0.239989, 0.239996,
0.239939, 0.239855, 0.239778, 0.239744, 0.239789, 0.239942,
0.240231, 0.240678, 0.241297, 0.242099, 0.243084, 0.244248,
0.245577, 0.247054, 0.248653, 0.250344, 0.252096, 0.253871,
0.255635, 0.257349, 0.258981, 0.2605, 0.261878, 0.263094,
0.264133, 0.264988, 0.265657, 0.266146, 0.26647, 0.266648,
0.266705, 0.266672, 0.266583, 0.266475, 0.266383, 0.266344,
0.266394, 0.266562, 0.266875, 0.267355, 0.268015, 0.268862,
0.269897, 0.271113, 0.272494, 0.274021, 0.275666, 0.277398,
0.279183, 0.280984, 0.282762, 0.284482, 0.286109, 0.287612,
0.288965, 0.290147, 0.291145, 0.291953, 0.292571, 0.293007,
0.293277, 0.293404, 0.293413, 0.293339, 0.293216, 0.293081,
0.292974, 0.29293, 0.292985, 0.293169, 0.293508, 0.294022,
0.294724, 0.29562, 0.296708, 0.297978, 0.299415, 0.300994,
0.302688, 0.304463, 0.306283, 0.30811, 0.309905, 0.31163,
0.313252, 0.314738, 0.316065, 0.317211, 0.318166, 0.318924,
0.319487, 0.319867, 0.320081, 0.320153, 0.320112, 0.319993,
0.319834, 0.319672, 0.319548, 0.319499, 0.319559, 0.31976,
0.320126, 0.320677, 0.321425, 0.322372, 0.323516, 0.324844,
0.326339, 0.327975, 0.329721, 0.331542, 0.333399, 0.335254,
0.337066, 0.338797, 0.340412, 0.341882, 0.34318, 0.344288,
0.345196, 0.345901, 0.346407, 0.346727, 0.34688, 0.346894,
0.3468, 0.346634, 0.346435, 0.346245, 0.346103, 0.346048,
0.346114, 0.346333, 0.346729, 0.347319, 0.348114, 0.349116,
0.35032, 0.351711, 0.353268, 0.354964, 0.356765, 0.358635,
0.360533, 0.362417, 0.364248, 0.365985, 0.367594, 0.369045,
0.370313, 0.371381, 0.372239, 0.372887, 0.37333, 0.373586,
0.373674, 0.373626, 0.373474, 0.373257, 0.373017, 0.372796,
0.372635, 0.372573, 0.372646, 0.372884, 0.373311, 0.373944,
0.374791, 0.375852, 0.37712, 0.378578, 0.380203, 0.381963,
0.383825, 0.385747, 0.387688, 0.389605, 0.391455, 0.393199,
0.394802, 0.396233, 0.397468, 0.398491, 0.399296, 0.399882,
0.400259, 0.400444, 0.400462, 0.400346, 0.400132, 0.399861,
0.399575, 0.39932, 0.399138, 0.39907, 0.39915, 0.399409,
0.39987, 0.400548, 0.401452, 0.402577, 0.403915, 0.405446,
0.407144, 0.408975, 0.410902, 0.412881, 0.414869, 0.416821,
0.418693, 0.420445, 0.42204, 0.423449, 0.424648, 0.425624,
0.426369, 0.426888, 0.427192, 0.427301, 0.427243, 0.427053,
0.426771, 0.42644, 0.426105, 0.425814, 0.425609, 0.425532,
0.42562, 0.425902, 0.4264, 0.427129, 0.428094, 0.42929,
0.430705, 0.432315, 0.434093, 0.436002, 0.437999, 0.440042,
0.442082, 0.444072, 0.445968, 0.447727, 0.449314, 0.450699,
0.45186, 0.452782, 0.453464, 0.453909, 0.454132, 0.454157,
0.454015, 0.453744, 0.453386, 0.452989, 0.452601, 0.452268,
0.452039, 0.451954, 0.45205, 0.452357, 0.452897, 0.453681,
0.454714, 0.455988, 0.457487, 0.459186, 0.461052, 0.463046,
0.465123, 0.467235, 0.469332, 0.471365, 0.473287, 0.475056,
0.476634, 0.477992, 0.479109, 0.479973, 0.480583, 0.480946,
0.48108, 0.481011, 0.480776, 0.480415, 0.479974, 0.479503,
0.479054, 0.478676, 0.478419, 0.478324, 0.47843, 0.478765,
0.479351, 0.480198, 0.481306, 0.482667, 0.48426, 0.486058,
0.488024, 0.490113, 0.492279, 0.494468, 0.496629, 0.49871,
0.500662, 0.50244, 0.504008, 0.505337, 0.506405, 0.507203,
0.507732, 0.508003, 0.508037, 0.507864, 0.507523, 0.50706,
0.506525, 0.505972, 0.505455, 0.505027, 0.504738, 0.504633,
0.504749, 0.505116, 0.505753, 0.50667, 0.507864, 0.509323,
0.511023, 0.512933, 0.51501, 0.517208, 0.519474, 0.521751,
0.523985, 0.52612, 0.528105, 0.529895, 0.531452, 0.532746,
0.533759, 0.534483, 0.53492, 0.535086, 0.535006, 0.534714,
0.534253, 0.533675, 0.533033, 0.532385, 0.53179, 0.531304,
0.530979, 0.530862, 0.530991, 0.531394, 0.532091, 0.533088,
0.53438, 0.535951, 0.537774, 0.539811, 0.542017, 0.544338,
0.546719, 0.549097, 0.551414, 0.553612, 0.555635, 0.557438,
0.558982, 0.560237, 0.561186, 0.561824, 0.562156, 0.562201,
0.561989, 0.561559, 0.560961, 0.560249, 0.559483, 0.558727,
0.558042, 0.557489, 0.557123, 0.556991, 0.557134, 0.55758,
0.558345, 0.559435, 0.56084, 0.562542, 0.564507, 0.566693,
0.569048, 0.571514, 0.574028, 0.576525, 0.578939, 0.581209,
0.583278, 0.585096, 0.586624, 0.587834, 0.588708, 0.589245,
0.589454, 0.589358, 0.588991, 0.5884, 0.587639, 0.58677,
0.58586, 0.584975, 0.584185, 0.583553, 0.583138, 0.58299,
0.583149, 0.583644, 0.584491, 0.58569, 0.587231, 0.589086,
0.59122, 0.593582, 0.596114, 0.598751, 0.601424, 0.60406,
0.60659, 0.608946, 0.611068, 0.612904, 0.614414, 0.615569,
0.616355, 0.616772, 0.616834, 0.616568, 0.616017, 0.615233,
0.614278, 0.613222, 0.612137, 0.611099, 0.610182, 0.609455,
0.608981, 0.608813, 0.608993, 0.609548, 0.610492, 0.611824,
0.613526, 0.615568, 0.617905, 0.62048, 0.623226, 0.62607,
0.628935, 0.631741, 0.63441, 0.636871, 0.639058, 0.640916,
0.642404, 0.643493, 0.644171, 0.644441, 0.644323, 0.643851,
0.643075, 0.642055, 0.640862, 0.639575, 0.638277, 0.637051,
0.635978, 0.635135, 0.634589, 0.634397, 0.634601, 0.63523,
0.636295, 0.63779, 0.639693, 0.641965, 0.644553, 0.647392,
0.650404, 0.653506, 0.656609, 0.659626, 0.66247, 0.665061,
0.667328, 0.669214, 0.670674, 0.671681, 0.672223, 0.672309,
0.671966, 0.671235, 0.670175, 0.668858, 0.667366, 0.665789,
0.664222, 0.662758, 0.661488, 0.660498, 0.65986, 0.659637,
0.659872, 0.660595, 0.661813, 0.663516, 0.665675, 0.668242,
0.671152, 0.674328, 0.67768, 0.681111, 0.684522, 0.687809,
0.690877, 0.693636, 0.696009, 0.69793, 0.699354, 0.700253,
0.70062, 0.700468, 0.699832, 0.698764, 0.697335, 0.69563,
0.693748, 0.691792, 0.689872, 0.688096, 0.686568, 0.685384,
0.684626, 0.684362, 0.684639, 0.685486, 0.686907, 0.688886,
0.691384, 0.694341, 0.697679, 0.701305, 0.705111, 0.708983,
0.712803, 0.716454, 0.719823, 0.722808, 0.725321, 0.72729,
0.728666, 0.72942, 0.729549, 0.729074, 0.728039, 0.726512,
0.72458, 0.722347, 0.71993, 0.717454, 0.71505, 0.712845,
0.710962, 0.70951, 0.708586, 0.708265, 0.7086, 0.709619,
0.711323, 0.713687, 0.716659, 0.720164, 0.724103, 0.728361,
0.732806, 0.737301, 0.741702, 0.745867, 0.749664, 0.752971,
0.755684, 0.757721, 0.759027, 0.759573, 0.75936, 0.758418,
0.756808, 0.754616, 0.751952, 0.748949, 0.745751, 0.742516,
0.739401, 0.736566, 0.734158, 0.732311, 0.731141, 0.730735,
0.731156, 0.732432, 0.73456, 0.737502, 0.741189, 0.745521,
0.75037, 0.755588, 0.761009, 0.766455, 0.771746, 0.776703,
0.78116, 0.784964, 0.787988, 0.790132, 0.791329, 0.791548,
0.790796, 0.789118, 0.786596, 0.783346, 0.779516, 0.775279,
0.770827, 0.766364, 0.7621, 0.758239, 0.754975, 0.752481,
0.750905, 0.750361, 0.750924, 0.752629, 0.755466, 0.75938,
0.764274, 0.770009, 0.776411, 0.783274, 0.790373, 0.797464,
0.804301, 0.810642, 0.816257, 0.820939, 0.824515, 0.82685,
0.827851, 0.827481, 0.82575, 0.822726, 0.818528, 0.813322,
0.80732, 0.800773, 0.793956, 0.787165, 0.780704, 0.77487,
0.769946, 0.766188, 0.763815, 0.762994, 0.763843, 0.766412,
0.77069, 0.776597, 0.783985, 0.792645, 0.802312, 0.812669,
0.823364, 0.834017, 0.844237, 0.853634, 0.861835, 0.868501,
0.873337, 0.876109, 0.876653, 0.874885, 0.870808, 0.864515,
0.856188, 0.846098, 0.834597, 0.822109, 0.809117, 0.79615,
0.783761, 0.772514, 0.762956, 0.755604, 0.750919, 0.749286,
0.750999, 0.756243, 0.765077, 0.777433, 0.793099, 0.811725,
0.832821, 0.855765, 0.879817, 0.904126, 0.927759, 0.949717,
0.968959, 0.984436, 0.995113, 1, 0.998181, 0.988841,
0.971292, 0.944995, 0.909578, 0.864852, 0.810823, 0.747694,
0.675864, 0.595928, 0.508663, 0.415011, 0.316061, 0.213028,
0.107216, 0
};
static const float WAVE_SAW_078[DEFAULT_WAVELEN] = {
-0.0543872, -0.108592, -0.162431, -0.215727, -0.268302, -0.319985,
-0.370608, -0.420011, -0.468041, -0.514553, -0.55941, -0.602486,
-0.643664, -0.682839, -0.719918, -0.754817, -0.787469, -0.817816,
-0.845814, -0.871432, -0.894652, -0.915471, -0.933894, -0.949943,
-0.963651, -0.975063, -0.984233, -0.99123, -0.996131, -0.999022,
-1, -0.999168, -0.996637, -0.992525, -0.986955, -0.980055,
-0.971955, -0.962791, -0.952697, -0.94181, -0.930266, -0.918202,
-0.905749, -0.893038, -0.880197, -0.867347, -0.854605, -0.842083,
-0.829885, -0.818108, -0.806841, -0.796168, -0.78616, -0.776883,
-0.768391, -0.760731, -0.75394, -0.748046, -0.743067, -0.739014,
-0.735886, -0.733676, -0.732369, -0.731939, -0.732357, -0.733584,
-0.735574, -0.738279, -0.741642, -0.745603, -0.750098, -0.75506,
-0.760419, -0.766104, -0.772042, -0.778159, -0.784383, -0.790641,
-0.796864, -0.802982, -0.80893, -0.814645, -0.820068, -0.825145,
-0.829826, -0.834066, -0.837824, -0.841067, -0.843766, -0.845899,
-0.847447, -0.848401, -0.848755, -0.848511, -0.847675, -0.846259,
-0.844281, -0.841762, -0.838732, -0.83522, -0.831263, -0.826901,
-0.822175, -0.81713, -0.811814, -0.806277, -0.800567, -0.794736,
-0.788836, -0.782917, -0.77703, -0.771223, -0.765544, -0.760039,
-0.754749, -0.749716, -0.744975, -0.740561, -0.736503, -0.732826,
-0.729553, -0.7267, -0.72428, -0.722303, -0.720772, -0.719686,
-0.719042, -0.718829, -0.719037, -0.719646, -0.720638, -0.721988,
-0.723669, -0.725651, -0.727903, -0.730388, -0.733072, -0.735917,
-0.738883, -0.741931, -0.745023, -0.748117, -0.751177, -0.754162,
-0.757037, -0.759766, -0.762316, -0.764656, -0.766757, -0.768592,
-0.77014, -0.77138, -0.772296, -0.772873, -0.773103, -0.772979,
-0.772498, -0.771662, -0.770474, -0.768942, -0.767077, -0.764893,
-0.762407, -0.759639, -0.756611, -0.753348, -0.749876, -0.746224,
-0.742421, -0.738499, -0.734488, -0.730421, -0.726332, -0.722251,
-0.71821, -0.714241, -0.710374, -0.706638, -0.703058, -0.699662,
-0.696471, -0.693508, -0.690789, -0.688332, -0.686148, -0.68425,
-0.682643, -0.681332, -0.68032, -0.679603, -0.679179, -0.67904,
-0.679175, -0.679573, -0.680219, -0.681095, -0.682182, -0.683458,
-0.684902, -0.686488, -0.688191, -0.689984, -0.691842, -0.693736,
-0.695639, -0.697523, -0.699362, -0.70113, -0.702801, -0.704351,
-0.705759, -0.707001, -0.708061, -0.708919, -0.709562, -0.709976,
-0.710152, -0.710079, -0.709755, -0.709174, -0.708338, -0.707247,
-0.705908, -0.704325, -0.70251, -0.700473, -0.698228, -0.695791,
-0.693178, -0.69041, -0.687505, -0.684486, -0.681375, -0.678194,
-0.674969, -0.671722, -0.668477, -0.665258, -0.662088, -0.658991,
-0.655986, -0.653096, -0.650339, -0.647733, -0.645295, -0.643038,
-0.640976, -0.639118, -0.637473, -0.636048, -0.634846, -0.633869,
-0.633117, -0.632587, -0.632274, -0.632172, -0.632271, -0.632561,
-0.633028, -0.633659, -0.634437, -0.635346, -0.636367, -0.637481,
-0.638667, -0.639906, -0.641175, -0.642455, -0.643722, -0.644958,
-0.646141, -0.647252, -0.648271, -0.649181, -0.649965, -0.650608,
-0.651096, -0.651416, -0.651559, -0.651516, -0.65128, -0.650845,
-0.650211, -0.649374, -0.648338, -0.647104, -0.645678, -0.644068,
-0.64228, -0.640327, -0.63822, -0.635973, -0.633599, -0.631116,
-0.62854, -0.625888, -0.623179, -0.620432, -0.617666, -0.614899,
-0.612151, -0.609441, -0.606786, -0.604204, -0.601712, -0.599326,
-0.59706, -0.594927, -0.592939, -0.591108, -0.58944, -0.587945,
-0.586626, -0.585488, -0.584533, -0.583759, -0.583167, -0.582751,
-0.582506, -0.582427, -0.582503, -0.582726, -0.583083, -0.583562,
-0.584148, -0.584828, -0.585585, -0.586404, -0.587266, -0.588156,
-0.589055, -0.589947, -0.590813, -0.591638, -0.592405, -0.593097,
-0.593701, -0.594202, -0.594588, -0.594846, -0.594968, -0.594942,
-0.594763, -0.594425, -0.593922, -0.593254, -0.592417, -0.591415,
-0.590248, -0.588921, -0.587439, -0.58581, -0.584041, -0.582143,
-0.580127, -0.578004, -0.575789, -0.573494, -0.571135, -0.568727,
-0.566286, -0.563827, -0.561367, -0.558921, -0.556506, -0.554136,
-0.551827, -0.549592, -0.547445, -0.545398, -0.543464, -0.541651,
-0.539969, -0.538426, -0.537027, -0.535778, -0.534681, -0.533739,
-0.532952, -0.532318, -0.531834, -0.531497, -0.5313, -0.531236,
-0.531297, -0.531473, -0.531754, -0.532127, -0.532581, -0.533102,
-0.533676, -0.534289, -0.534925, -0.535572, -0.536212, -0.536832,
-0.537418, -0.537954, -0.538428, -0.538827, -0.539138, -0.539351,
-0.539456, -0.539443, -0.539304, -0.539034, -0.538626, -0.538078,
-0.537386, -0.53655, -0.535571, -0.534449, -0.533189, -0.531795,
-0.530273, -0.52863, -0.526875, -0.525017, -0.523066, -0.521033,
-0.518932, -0.516774, -0.514572, -0.512341, -0.510093, -0.507844,
-0.505606, -0.503394, -0.50122, -0.499099, -0.497041, -0.49506,
-0.493165, -0.491367, -0.489675, -0.488097, -0.48664, -0.485308,
-0.484107, -0.48304, -0.482107, -0.48131, -0.480647, -0.480116,
-0.479713, -0.479434, -0.479271, -0.479219, -0.479268, -0.47941,
-0.479634, -0.479929, -0.480284, -0.480686, -0.481123, -0.481581,
-0.482049, -0.482513, -0.482959, -0.483376, -0.483749, -0.484069,
-0.484322, -0.4845, -0.48459, -0.484585, -0.484477, -0.484258,
-0.483923, -0.483466, -0.482885, -0.482178, -0.481342, -0.480379,
-0.47929, -0.478078, -0.476747, -0.475302, -0.473749, -0.472096,
-0.470351, -0.468523, -0.466622, -0.464659, -0.462645, -0.460592,
-0.458512, -0.456416, -0.454318, -0.45223, -0.450164, -0.448132,
-0.446146, -0.444217, -0.442354, -0.440569, -0.438871, -0.437266,
-0.435763, -0.434367, -0.433085, -0.431918, -0.430872, -0.429946,
-0.429141, -0.428457, -0.427891, -0.427441, -0.427101, -0.426867,
-0.426733, -0.426689, -0.42673, -0.426844, -0.427023, -0.427257,
-0.427533, -0.427841, -0.42817, -0.428507, -0.428841, -0.42916,
-0.429453, -0.429708, -0.429914, -0.430061, -0.43014, -0.430141,
-0.430056, -0.429878, -0.4296, -0.429217, -0.428725, -0.42812,
-0.4274, -0.426565, -0.425615, -0.42455, -0.423373, -0.422089,
-0.420701, -0.419215, -0.417637, -0.415976, -0.414239, -0.412435,
-0.410575, -0.408668, -0.406724, -0.404756, -0.402773, -0.400787,
-0.39881, -0.396853, -0.394926, -0.39304, -0.391206, -0.389432,
-0.387729, -0.386103, -0.384564, -0.383116, -0.381767, -0.38052,
-0.379379, -0.378348, -0.377427, -0.376617, -0.375917, -0.375325,
-0.374839, -0.374454, -0.374167, -0.37397, -0.373858, -0.373822,
-0.373855, -0.373947, -0.37409, -0.374272, -0.374484, -0.374715,
-0.374955, -0.375192, -0.375415, -0.375615, -0.375781, -0.375902,
-0.37597, -0.375974, -0.375908, -0.375763, -0.375533, -0.375211,
-0.374792, -0.374273, -0.373651, -0.372923, -0.372088, -0.371147,
-0.3701, -0.368951, -0.367701, -0.366356, -0.36492, -0.3634,
-0.361802, -0.360134, -0.358404, -0.356621, -0.354794, -0.352933,
-0.351049, -0.349152, -0.347251, -0.345358, -0.343482, -0.341635,
-0.339825, -0.338062, -0.336355, -0.334713, -0.333143, -0.331652,
-0.330247, -0.328932, -0.327712, -0.326591, -0.325571, -0.324653,
-0.323839, -0.323126, -0.322515, -0.322002, -0.321583, -0.321255,
-0.321011, -0.320846, -0.320753, -0.320723, -0.32075, -0.320823,
-0.320934, -0.321073, -0.321231, -0.321396, -0.321559, -0.321711,
-0.32184, -0.321938, -0.321995, -0.322002, -0.321951, -0.321834,
-0.321644, -0.321373, -0.321018, -0.320573, -0.320034, -0.319398,
-0.318663, -0.317829, -0.316895, -0.315863, -0.314734, -0.313512,
-0.312199, -0.310802, -0.309325, -0.307775, -0.306159, -0.304485,
-0.302761, -0.300996, -0.299198, -0.297378, -0.295545, -0.293709,
-0.291879, -0.290066, -0.288279, -0.286526, -0.284818, -0.283162,
-0.281566, -0.280038, -0.278585, -0.277211, -0.275922, -0.274723,
-0.273616, -0.272605, -0.271689, -0.270871, -0.270149, -0.269523,
-0.268989, -0.268544, -0.268184, -0.267905, -0.2677, -0.267563,
-0.267486, -0.267462, -0.267483, -0.26754, -0.267623, -0.267724,
-0.267833, -0.267941, -0.268038, -0.268114, -0.26816, -0.268169,
-0.26813, -0.268037, -0.267881, -0.267656, -0.267356, -0.266976,
-0.26651, -0.265956, -0.26531, -0.264571, -0.263737, -0.262809,
-0.261788, -0.260675, -0.259473, -0.258186, -0.256818, -0.255374,
-0.253861, -0.252285, -0.250653, -0.248974, -0.247255, -0.245505,
-0.243734, -0.24195, -0.240162, -0.238381, -0.236615, -0.234873,
-0.233164, -0.231496, -0.229878, -0.228318, -0.226821, -0.225395,
-0.224045, -0.222776, -0.221592, -0.220496, -0.219491, -0.218577,
-0.217756, -0.217027, -0.216389, -0.215838, -0.215374, -0.214991,
-0.214684, -0.214449, -0.214278, -0.214166, -0.214104, -0.214086,
-0.214101, -0.214143, -0.214202, -0.214269, -0.214334, -0.21439,
-0.214426, -0.214434, -0.214406, -0.214333, -0.214208, -0.214024,
-0.213773, -0.213451, -0.213052, -0.212572, -0.212007, -0.211354,
-0.210611, -0.209779, -0.208855, -0.207842, -0.206741, -0.205555,
-0.204286, -0.20294, -0.201522, -0.200036, -0.198489, -0.19689,
-0.195243, -0.193559, -0.191845, -0.19011, -0.188362, -0.186611,
-0.184865, -0.183134, -0.181425, -0.179748, -0.178111, -0.176521,
-0.174987, -0.173513, -0.172107, -0.170775, -0.16952, -0.168347,
-0.167258, -0.166257, -0.165345, -0.164521, -0.163786, -0.163139,
-0.162577, -0.162097, -0.161697, -0.16137, -0.161112, -0.160917,
-0.160778, -0.160689, -0.160641, -0.160627, -0.160639, -0.160667,
-0.160703, -0.160738, -0.160763, -0.16077, -0.160751, -0.160696,
-0.160599, -0.160451, -0.160246, -0.159978, -0.15964, -0.159228,
-0.158737, -0.158164, -0.157506, -0.156762, -0.15593, -0.15501,
-0.154003, -0.152911, -0.151736, -0.150482, -0.149152, -0.147751,
-0.146285, -0.14476, -0.143183, -0.141561, -0.139901, -0.138213,
-0.136503, -0.134781, -0.133055, -0.131335, -0.129628, -0.127943,
-0.126289, -0.124673, -0.123103, -0.121585, -0.120128, -0.118736,
-0.117415, -0.11617, -0.115004, -0.113921, -0.112923, -0.11201,
-0.111185, -0.110446, -0.109792, -0.109221, -0.108731, -0.108318,
-0.107977, -0.107703, -0.107491, -0.107334, -0.107226, -0.107158,
-0.107123, -0.107114, -0.10712, -0.107135, -0.10715, -0.107155,
-0.107143, -0.107105, -0.107033, -0.106919, -0.106756, -0.106538,
-0.106257, -0.105909, -0.105488, -0.104991, -0.104413, -0.103753,
-0.103007, -0.102176, -0.101259, -0.100257, -0.0991711, -0.0980041,
-0.096759, -0.0954397, -0.0940511, -0.0925984, -0.0910877, -0.0895256,
-0.0879191, -0.0862758, -0.0846036, -0.0829107, -0.0812053, -0.0794961,
-0.0777916, -0.0761002, -0.0744302, -0.0727899, -0.071187, -0.069629,
-0.0681229, -0.0666752, -0.0652918, -0.063978, -0.0627383, -0.0615766,
-0.060496, -0.0594986, -0.058586, -0.0577587, -0.0570165, -0.0563582,
-0.0557819, -0.0552849, -0.0548636, -0.0545138, -0.0542304, -0.0540078,
-0.0538398, -0.0537195, -0.0536397, -0.0535928, -0.0535706, -0.0535651,
-0.0535678, -0.0535703, -0.053564, -0.0535406, -0.0534919, -0.05341,
-0.0532871, -0.0531162, -0.0528904, -0.0526037, -0.0522503, -0.0518254,
-0.0513248, -0.0507451, -0.0500835, -0.0493382, -0.0485081, -0.0475932,
-0.0465941, -0.0455122, -0.0443499, -0.0431102, -0.0417972, -0.0404153,
-0.0389699, -0.0374669, -0.0359128, -0.0343145, -0.0326796, -0.0310158,
-0.0293312, -0.0276341, -0.0259329, -0.0242361, -0.022552, -0.020889,
-0.019255, -0.017658, -0.0161052, -0.0146037, -0.01316, -0.0117798,
-0.0104685, -0.00923071, -0.00807015, -0.00698996, -0.0059924, -0.00507892,
-0.00425016, -0.00350589, -0.00284505, -0.00226576, -0.00176532, -0.00134025,
-0.00098632, -0.000698606, -0.000471515, -0.000298855, -0.000173896, -8.94339e-5,
-3.78613e-5, -1.12461e-5, -1.40785e-6, 2.22045e-16, 1.40785e-6, 1.12461e-5,
3.78613e-5, 8.94339e-5, 0.000173896, 0.000298855, 0.000471515, 0.000698606,
0.00098632, 0.00134025, 0.00176532, 0.00226576, 0.00284505, 0.00350589,
0.00425016, 0.00507892, 0.0059924, 0.00698996, 0.00807015, 0.00923071,
0.0104685, 0.0117798, 0.01316, 0.0146037, 0.0161052, 0.017658,
0.019255, 0.020889, 0.022552, 0.0242361, 0.0259329, 0.0276341,
0.0293312, 0.0310158, 0.0326796, 0.0343145, 0.0359128, 0.0374669,
0.0389699, 0.0404153, 0.0417972, 0.0431102, 0.0443499, 0.0455122,
0.0465941, 0.0475932, 0.0485081, 0.0493382, 0.0500835, 0.0507451,
0.0513248, 0.0518254, 0.0522503, 0.0526037, 0.0528904, 0.0531162,
0.0532871, 0.05341, 0.0534919, 0.0535406, 0.053564, 0.0535703,
0.0535678, 0.0535651, 0.0535706, 0.0535928, 0.0536397, 0.0537195,
0.0538398, 0.0540078, 0.0542304, 0.0545138, 0.0548636, 0.0552849,
0.0557819, 0.0563582, 0.0570165, 0.0577587, 0.058586, 0.0594986,
0.060496, 0.0615766, 0.0627383, 0.063978, 0.0652918, 0.0666752,
0.0681229, 0.069629, 0.071187, 0.0727899, 0.0744302, 0.0761002,
0.0777916, 0.0794961, 0.0812053, 0.0829107, 0.0846036, 0.0862758,
0.0879191, 0.0895256, 0.0910877, 0.0925984, 0.0940511, 0.0954397,
0.096759, 0.0980041, 0.0991711, 0.100257, 0.101259, 0.102176,
0.103007, 0.103753, 0.104413, 0.104991, 0.105488, 0.105909,
0.106257, 0.106538, 0.106756, 0.106919, 0.107033, 0.107105,
0.107143, 0.107155, 0.10715, 0.107135, 0.10712, 0.107114,
0.107123, 0.107158, 0.107226, 0.107334, 0.107491, 0.107703,
0.107977, 0.108318, 0.108731, 0.109221, 0.109792, 0.110446,
0.111185, 0.11201, 0.112923, 0.113921, 0.115004, 0.11617,
0.117415, 0.118736, 0.120128, 0.121585, 0.123103, 0.124673,
0.126289, 0.127943, 0.129628, 0.131335, 0.133055, 0.134781,
0.136503, 0.138213, 0.139901, 0.141561, 0.143183, 0.14476,
0.146285, 0.147751, 0.149152, 0.150482, 0.151736, 0.152911,
0.154003, 0.15501, 0.15593, 0.156762, 0.157506, 0.158164,
0.158737, 0.159228, 0.15964, 0.159978, 0.160246, 0.160451,
0.160599, 0.160696, 0.160751, 0.16077, 0.160763, 0.160738,
0.160703, 0.160667, 0.160639, 0.160627, 0.160641, 0.160689,
0.160778, 0.160917, 0.161112, 0.16137, 0.161697, 0.162097,
0.162577, 0.163139, 0.163786, 0.164521, 0.165345, 0.166257,
0.167258, 0.168347, 0.16952, 0.170775, 0.172107, 0.173513,
0.174987, 0.176521, 0.178111, 0.179748, 0.181425, 0.183134,
0.184865, 0.186611, 0.188362, 0.19011, 0.191845, 0.193559,
0.195243, 0.19689, 0.198489, 0.200036, 0.201522, 0.20294,
0.204286, 0.205555, 0.206741, 0.207842, 0.208855, 0.209779,
0.210611, 0.211354, 0.212007, 0.212572, 0.213052, 0.213451,
0.213773, 0.214024, 0.214208, 0.214333, 0.214406, 0.214434,
0.214426, 0.21439, 0.214334, 0.214269, 0.214202, 0.214143,
0.214101, 0.214086, 0.214104, 0.214166, 0.214278, 0.214449,
0.214684, 0.214991, 0.215374, 0.215838, 0.216389, 0.217027,
0.217756, 0.218577, 0.219491, 0.220496, 0.221592, 0.222776,
0.224045, 0.225395, 0.226821, 0.228318, 0.229878, 0.231496,
0.233164, 0.234873, 0.236615, 0.238381, 0.240162, 0.24195,
0.243734, 0.245505, 0.247255, 0.248974, 0.250653, 0.252285,
0.253861, 0.255374, 0.256818, 0.258186, 0.259473, 0.260675,
0.261788, 0.262809, 0.263737, 0.264571, 0.26531, 0.265956,
0.26651, 0.266976, 0.267356, 0.267656, 0.267881, 0.268037,
0.26813, 0.268169, 0.26816, 0.268114, 0.268038, 0.267941,
0.267833, 0.267724, 0.267623, 0.26754, 0.267483, 0.267462,
0.267486, 0.267563, 0.2677, 0.267905, 0.268184, 0.268544,
0.268989, 0.269523, 0.270149, 0.270871, 0.271689, 0.272605,
0.273616, 0.274723, 0.275922, 0.277211, 0.278585, 0.280038,
0.281566, 0.283162, 0.284818, 0.286526, 0.288279, 0.290066,
0.291879, 0.293709, 0.295545, 0.297378, 0.299198, 0.300996,
0.302761, 0.304485, 0.306159, 0.307775, 0.309325, 0.310802,
0.312199, 0.313512, 0.314734, 0.315863, 0.316895, 0.317829,
0.318663, 0.319398, 0.320034, 0.320573, 0.321018, 0.321373,
0.321644, 0.321834, 0.321951, 0.322002, 0.321995, 0.321938,
0.32184, 0.321711, 0.321559, 0.321396, 0.321231, 0.321073,
0.320934, 0.320823, 0.32075, 0.320723, 0.320753, 0.320846,
0.321011, 0.321255, 0.321583, 0.322002, 0.322515, 0.323126,
0.323839, 0.324653, 0.325571, 0.326591, 0.327712, 0.328932,
0.330247, 0.331652, 0.333143, 0.334713, 0.336355, 0.338062,
0.339825, 0.341635, 0.343482, 0.345358, 0.347251, 0.349152,
0.351049, 0.352933, 0.354794, 0.356621, 0.358404, 0.360134,
0.361802, 0.3634, 0.36492, 0.366356, 0.367701, 0.368951,
0.3701, 0.371147, 0.372088, 0.372923, 0.373651, 0.374273,
0.374792, 0.375211, 0.375533, 0.375763, 0.375908, 0.375974,
0.37597, 0.375902, 0.375781, 0.375615, 0.375415, 0.375192,
0.374955, 0.374715, 0.374484, 0.374272, 0.37409, 0.373947,
0.373855, 0.373822, 0.373858, 0.37397, 0.374167, 0.374454,
0.374839, 0.375325, 0.375917, 0.376617, 0.377427, 0.378348,
0.379379, 0.38052, 0.381767, 0.383116, 0.384564, 0.386103,
0.387729, 0.389432, 0.391206, 0.39304, 0.394926, 0.396853,
0.39881, 0.400787, 0.402773, 0.404756, 0.406724, 0.408668,
0.410575, 0.412435, 0.414239, 0.415976, 0.417637, 0.419215,
0.420701, 0.422089, 0.423373, 0.42455, 0.425615, 0.426565,
0.4274, 0.42812, 0.428725, 0.429217, 0.4296, 0.429878,
0.430056, 0.430141, 0.43014, 0.430061, 0.429914, 0.429708,
0.429453, 0.42916, 0.428841, 0.428507, 0.42817, 0.427841,
0.427533, 0.427257, 0.427023, 0.426844, 0.42673, 0.426689,
0.426733, 0.426867, 0.427101, 0.427441, 0.427891, 0.428457,
0.429141, 0.429946, 0.430872, 0.431918, 0.433085, 0.434367,
0.435763, 0.437266, 0.438871, 0.440569, 0.442354, 0.444217,
0.446146, 0.448132, 0.450164, 0.45223, 0.454318, 0.456416,
0.458512, 0.460592, 0.462645, 0.464659, 0.466622, 0.468523,
0.470351, 0.472096, 0.473749, 0.475302, 0.476747, 0.478078,
0.47929, 0.480379, 0.481342, 0.482178, 0.482885, 0.483466,
0.483923, 0.484258, 0.484477, 0.484585, 0.48459, 0.4845,
0.484322, 0.484069, 0.483749, 0.483376, 0.482959, 0.482513,
0.482049, 0.481581, 0.481123, 0.480686, 0.480284, 0.479929,
0.479634, 0.47941, 0.479268, 0.479219, 0.479271, 0.479434,
0.479713, 0.480116, 0.480647, 0.48131, 0.482107, 0.48304,
0.484107, 0.485308, 0.48664, 0.488097, 0.489675, 0.491367,
0.493165, 0.49506, 0.497041, 0.499099, 0.50122, 0.503394,
0.505606, 0.507844, 0.510093, 0.512341, 0.514572, 0.516774,
0.518932, 0.521033, 0.523066, 0.525017, 0.526875, 0.52863,
0.530273, 0.531795, 0.533189, 0.534449, 0.535571, 0.53655,
0.537386, 0.538078, 0.538626, 0.539034, 0.539304, 0.539443,
0.539456, 0.539351, 0.539138, 0.538827, 0.538428, 0.537954,
0.537418, 0.536832, 0.536212, 0.535572, 0.534925, 0.534289,
0.533676, 0.533102, 0.532581, 0.532127, 0.531754, 0.531473,
0.531297, 0.531236, 0.5313, 0.531497, 0.531834, 0.532318,
0.532952, 0.533739, 0.534681, 0.535778, 0.537027, 0.538426,
0.539969, 0.541651, 0.543464, 0.545398, 0.547445, 0.549592,
0.551827, 0.554136, 0.556506, 0.558921, 0.561367, 0.563827,
0.566286, 0.568727, 0.571135, 0.573494, 0.575789, 0.578004,
0.580127, 0.582143, 0.584041, 0.58581, 0.587439, 0.588921,
0.590248, 0.591415, 0.592417, 0.593254, 0.593922, 0.594425,
0.594763, 0.594942, 0.594968, 0.594846, 0.594588, 0.594202,
0.593701, 0.593097, 0.592405, 0.591638, 0.590813, 0.589947,
0.589055, 0.588156, 0.587266, 0.586404, 0.585585, 0.584828,
0.584148, 0.583562, 0.583083, 0.582726, 0.582503, 0.582427,
0.582506, 0.582751, 0.583167, 0.583759, 0.584533, 0.585488,
0.586626, 0.587945, 0.58944, 0.591108, 0.592939, 0.594927,
0.59706, 0.599326, 0.601712, 0.604204, 0.606786, 0.609441,
0.612151, 0.614899, 0.617666, 0.620432, 0.623179, 0.625888,
0.62854, 0.631116, 0.633599, 0.635973, 0.63822, 0.640327,
0.64228, 0.644068, 0.645678, 0.647104, 0.648338, 0.649374,
0.650211, 0.650845, 0.65128, 0.651516, 0.651559, 0.651416,
0.651096, 0.650608, 0.649965, 0.649181, 0.648271, 0.647252,
0.646141, 0.644958, 0.643722, 0.642455, 0.641175, 0.639906,
0.638667, 0.637481, 0.636367, 0.635346, 0.634437, 0.633659,
0.633028, 0.632561, 0.632271, 0.632172, 0.632274, 0.632587,
0.633117, 0.633869, 0.634846, 0.636048, 0.637473, 0.639118,
0.640976, 0.643038, 0.645295, 0.647733, 0.650339, 0.653096,
0.655986, 0.658991, 0.662088, 0.665258, 0.668477, 0.671722,
0.674969, 0.678194, 0.681375, 0.684486, 0.687505, 0.69041,
0.693178, 0.695791, 0.698228, 0.700473, 0.70251, 0.704325,
0.705908, 0.707247, 0.708338, 0.709174, 0.709755, 0.710079,
0.710152, 0.709976, 0.709562, 0.708919, 0.708061, 0.707001,
0.705759, 0.704351, 0.702801, 0.70113, 0.699362, 0.697523,
0.695639, 0.693736, 0.691842, 0.689984, 0.688191, 0.686488,
0.684902, 0.683458, 0.682182, 0.681095, 0.680219, 0.679573,
0.679175, 0.67904, 0.679179, 0.679603, 0.68032, 0.681332,
0.682643, 0.68425, 0.686148, 0.688332, 0.690789, 0.693508,
0.696471, 0.699662, 0.703058, 0.706638, 0.710374, 0.714241,
0.71821, 0.722251, 0.726332, 0.730421, 0.734488, 0.738499,
0.742421, 0.746224, 0.749876, 0.753348, 0.756611, 0.759639,
0.762407, 0.764893, 0.767077, 0.768942, 0.770474, 0.771662,
0.772498, 0.772979, 0.773103, 0.772873, 0.772296, 0.77138,
0.77014, 0.768592, 0.766757, 0.764656, 0.762316, 0.759766,
0.757037, 0.754162, 0.751177, 0.748117, 0.745023, 0.741931,
0.738883, 0.735917, 0.733072, 0.730388, 0.727903, 0.725651,
0.723669, 0.721988, 0.720638, 0.719646, 0.719037, 0.718829,
0.719042, 0.719686, 0.720772, 0.722303, 0.72428, 0.7267,
0.729553, 0.732826, 0.736503, 0.740561, 0.744975, 0.749716,
0.754749, 0.760039, 0.765544, 0.771223, 0.77703, 0.782917,
0.788836, 0.794736, 0.800567, 0.806277, 0.811814, 0.81713,
0.822175, 0.826901, 0.831263, 0.83522, 0.838732, 0.841762,
0.844281, 0.846259, 0.847675, 0.848511, 0.848755, 0.848401,
0.847447, 0.845899, 0.843766, 0.841067, 0.837824, 0.834066,
0.829826, 0.825145, 0.820068, 0.814645, 0.80893, 0.802982,
0.796864, 0.790641, 0.784383, 0.778159, 0.772042, 0.766104,
0.760419, 0.75506, 0.750098, 0.745603, 0.741642, 0.738279,
0.735574, 0.733584, 0.732357, 0.731939, 0.732369, 0.733676,
0.735886, 0.739014, 0.743067, 0.748046, 0.75394, 0.760731,
0.768391, 0.776883, 0.78616, 0.796168, 0.806841, 0.818108,
0.829885, 0.842083, 0.854605, 0.867347, 0.880197, 0.893038,
0.905749, 0.918202, 0.930266, 0.94181, 0.952697, 0.962791,
0.971955, 0.980055, 0.986955, 0.992525, 0.996637, 0.999168,
1, 0.999022, 0.996131, 0.99123, 0.984233, 0.975063,
0.963651, 0.949943, 0.933894, 0.915471, 0.894652, 0.871432,
0.845814, 0.817816, 0.787469, 0.754817, 0.719918, 0.682839,
0.643664, 0.602486, 0.55941, 0.514553, 0.468041, 0.420011,
0.370608, 0.319985, 0.268302, 0.215727, 0.162431, 0.108592,
0.0543872, 2.22045e-16
};
static const float WAVE_SAW_090[DEFAULT_WAVELEN] = {
-0.0279086, -0.0557926, -0.0836275, -0.111389, -0.139052, -0.166594,
-0.19399, -0.221215, -0.248248, -0.275064, -0.30164, -0.327955,
-0.353985, -0.37971, -0.405108, -0.430159, -0.454841, -0.479136,
-0.503024, -0.526488, -0.549508, -0.572069, -0.594153, -0.615746,
-0.636831, -0.657394, -0.677423, -0.696905, -0.715827, -0.734179,
-0.75195, -0.769131, -0.785714, -0.80169, -0.817054, -0.831798,
-0.845919, -0.859412, -0.872274, -0.884503, -0.896096, -0.907054,
-0.917377, -0.927066, -0.936122, -0.94455, -0.952352, -0.959533,
-0.966099, -0.972055, -0.977409, -0.982169, -0.986342, -0.989938,
-0.992967, -0.99544, -0.997368, -0.998762, -0.999635, -1,
-0.999871, -0.999262, -0.998188, -0.996663, -0.994704, -0.992326,
-0.989546, -0.98638, -0.982845, -0.978959, -0.974739, -0.970203,
-0.965369, -0.960254, -0.954878, -0.949258, -0.943413, -0.937361,
-0.931121, -0.92471, -0.918147, -0.91145, -0.904638, -0.897727,
-0.890735, -0.88368, -0.876579, -0.869448, -0.862305, -0.855165,
-0.848044, -0.840958, -0.833921, -0.826948, -0.820053, -0.81325,
-0.806552, -0.799972, -0.793521, -0.787211, -0.781054, -0.775059,
-0.769236, -0.763596, -0.758145, -0.752893, -0.747847, -0.743013,
-0.738398, -0.734007, -0.729846, -0.725918, -0.722227, -0.718776,
-0.715567, -0.712603, -0.709884, -0.707412, -0.705185, -0.703203,
-0.701466, -0.699971, -0.698716, -0.697698, -0.696913, -0.696359,
-0.69603, -0.695921, -0.696028, -0.696344, -0.696863, -0.697579,
-0.698485, -0.699573, -0.700836, -0.702266, -0.703854, -0.705592,
-0.707472, -0.709484, -0.711618, -0.713867, -0.716219, -0.718666,
-0.721198, -0.723805, -0.726478, -0.729205, -0.731978, -0.734787,
-0.737621, -0.740471, -0.743327, -0.74618, -0.749021, -0.751839,
-0.754627, -0.757374, -0.760073, -0.762714, -0.76529, -0.767793,
-0.770214, -0.772547, -0.774784, -0.776919, -0.778945, -0.780856,
-0.782646, -0.78431, -0.785843, -0.78724, -0.788497, -0.78961,
-0.790577, -0.791392, -0.792055, -0.792563, -0.792914, -0.793106,
-0.793139, -0.793012, -0.792724, -0.792277, -0.79167, -0.790905,
-0.789984, -0.788906, -0.787676, -0.786295, -0.784766, -0.783093,
-0.781278, -0.779327, -0.777242, -0.775028, -0.77269, -0.770233,
-0.767662, -0.764983, -0.7622, -0.759321, -0.756351, -0.753296,
-0.750162, -0.746957, -0.743687, -0.740358, -0.736977, -0.733551,
-0.730087, -0.726593, -0.723074, -0.719538, -0.715992, -0.712443,
-0.708897, -0.705362, -0.701844, -0.698349, -0.694885, -0.691457,
-0.688072, -0.684735, -0.681454, -0.678232, -0.675076, -0.671991,
-0.668983, -0.666055, -0.663212, -0.66046, -0.657801, -0.655239,
-0.652779, -0.650423, -0.648174, -0.646036, -0.644009, -0.642097,
-0.640301, -0.638622, -0.637062, -0.635621, -0.634301, -0.6331,
-0.63202, -0.631059, -0.630217, -0.629494, -0.628887, -0.628395,
-0.628016, -0.627749, -0.627591, -0.627539, -0.62759, -0.627741,
-0.627989, -0.628331, -0.628762, -0.629279, -0.629877, -0.630552,
-0.6313, -0.632116, -0.632995, -0.633932, -0.634922, -0.635961,
-0.637042, -0.638161, -0.639312, -0.64049, -0.64169, -0.642906,
-0.644132, -0.645363, -0.646594, -0.64782, -0.649034, -0.650233,
-0.65141, -0.652561, -0.65368, -0.654763, -0.655805, -0.656801,
-0.657747, -0.658639, -0.659472, -0.660243, -0.660947, -0.661581,
-0.662142, -0.662627, -0.663032, -0.663354, -0.663592, -0.663742,
-0.663804, -0.663774, -0.663652, -0.663435, -0.663124, -0.662716,
-0.662213, -0.661612, -0.660914, -0.660119, -0.659228, -0.658241,
-0.657159, -0.655983, -0.654714, -0.653354, -0.651905, -0.650369,
-0.648748, -0.647044, -0.64526, -0.643398, -0.641462, -0.639455,
-0.637381, -0.635241, -0.633041, -0.630784, -0.628473, -0.626113,
-0.623708, -0.621262, -0.618779, -0.616263, -0.613719, -0.611152,
-0.608565, -0.605964, -0.603352, -0.600734, -0.598115, -0.595499,
-0.592891, -0.590295, -0.587715, -0.585156, -0.582621, -0.580116,
-0.577643, -0.575207, -0.572812, -0.570461, -0.568158, -0.565906,
-0.563709, -0.561569, -0.55949, -0.557475, -0.555525, -0.553644,
-0.551833, -0.550095, -0.548432, -0.546844, -0.545335, -0.543904,
-0.542553, -0.541283, -0.540094, -0.538987, -0.537962, -0.537019,
-0.536158, -0.535378, -0.534679, -0.53406, -0.53352, -0.533057,
-0.532671, -0.53236, -0.532121, -0.531953, -0.531854, -0.531822,
-0.531853, -0.531946, -0.532098, -0.532306, -0.532566, -0.532876,
-0.533233, -0.533633, -0.534072, -0.534548, -0.535056, -0.535593,
-0.536155, -0.536738, -0.537339, -0.537954, -0.538579, -0.539209,
-0.539842, -0.540473, -0.541098, -0.541714, -0.542317, -0.542903,
-0.543469, -0.54401, -0.544524, -0.545007, -0.545456, -0.545867,
-0.546237, -0.546564, -0.546844, -0.547075, -0.547254, -0.547378,
-0.547446, -0.547455, -0.547402, -0.547287, -0.547108, -0.546863,
-0.54655, -0.546169, -0.545718, -0.545198, -0.544606, -0.543943,
-0.543208, -0.542402, -0.541525, -0.540576, -0.539556, -0.538466,
-0.537307, -0.53608, -0.534786, -0.533425, -0.532001, -0.530514,
-0.528966, -0.527359, -0.525696, -0.523978, -0.522207, -0.520387,
-0.518521, -0.516609, -0.514656, -0.512665, -0.510638, -0.508578,
-0.506489, -0.504374, -0.502236, -0.500078, -0.497904, -0.495718,
-0.493521, -0.491319, -0.489114, -0.48691, -0.48471, -0.482518,
-0.480337, -0.47817, -0.47602, -0.473892, -0.471787, -0.469708,
-0.46766, -0.465645, -0.463665, -0.461724, -0.459823, -0.457966,
-0.456154, -0.454391, -0.452678, -0.451017, -0.449409, -0.447858,
-0.446364, -0.444928, -0.443552, -0.442237, -0.440984, -0.439794,
-0.438667, -0.437603, -0.436604, -0.435668, -0.434797, -0.43399,
-0.433246, -0.432564, -0.431946, -0.431388, -0.430891, -0.430454,
-0.430074, -0.429751, -0.429482, -0.429267, -0.429104, -0.428989,
-0.428923, -0.428901, -0.428922, -0.428983, -0.429082, -0.429217,
-0.429384, -0.429581, -0.429805, -0.430054, -0.430323, -0.430611,
-0.430913, -0.431228, -0.431553, -0.431883, -0.432216, -0.432549,
-0.432878, -0.433202, -0.433515, -0.433817, -0.434103, -0.434371,
-0.434618, -0.434841, -0.435038, -0.435205, -0.43534, -0.435441,
-0.435505, -0.43553, -0.435514, -0.435455, -0.43535, -0.435198,
-0.434998, -0.434747, -0.434444, -0.434088, -0.433678, -0.433213,
-0.432691, -0.432112, -0.431476, -0.430782, -0.430029, -0.429218,
-0.428348, -0.42742, -0.426434, -0.425391, -0.42429, -0.423133,
-0.421921, -0.420655, -0.419335, -0.417963, -0.416541, -0.415069,
-0.413551, -0.411987, -0.410379, -0.408729, -0.40704, -0.405313,
-0.403552, -0.401757, -0.399932, -0.39808, -0.396202, -0.394301,
-0.392381, -0.390443, -0.388491, -0.386528, -0.384555, -0.382577,
-0.380595, -0.378613, -0.376634, -0.37466, -0.372694, -0.370739,
-0.368798, -0.366873, -0.364967, -0.363083, -0.361223, -0.359389,
-0.357585, -0.355812, -0.354073, -0.352369, -0.350703, -0.349077,
-0.347492, -0.345951, -0.344455, -0.343004, -0.341602, -0.340249,
-0.338945, -0.337693, -0.336493, -0.335346, -0.334251, -0.333211,
-0.332224, -0.331292, -0.330414, -0.32959, -0.32882, -0.328104,
-0.32744, -0.326829, -0.32627, -0.325761, -0.325302, -0.324891,
-0.324527, -0.324209, -0.323936, -0.323705, -0.323515, -0.323364,
-0.32325, -0.323172, -0.323126, -0.323112, -0.323125, -0.323166,
-0.32323, -0.323315, -0.32342, -0.323541, -0.323675, -0.323821,
-0.323976, -0.324137, -0.324301, -0.324465, -0.324628, -0.324786,
-0.324937, -0.325078, -0.325206, -0.325319, -0.325416, -0.325492,
-0.325546, -0.325575, -0.325577, -0.32555, -0.325493, -0.325402,
-0.325276, -0.325112, -0.324911, -0.324668, -0.324384, -0.324057,
-0.323685, -0.323267, -0.322803, -0.32229, -0.321729, -0.321118,
-0.320458, -0.319746, -0.318985, -0.318172, -0.317308, -0.316393,
-0.315428, -0.314412, -0.313346, -0.312231, -0.311067, -0.309856,
-0.308597, -0.307293, -0.305944, -0.304551, -0.303117, -0.301642,
-0.300129, -0.298578, -0.296992, -0.295373, -0.293722, -0.292041,
-0.290334, -0.288601, -0.286845, -0.285069, -0.283275, -0.281465,
-0.279641, -0.277806, -0.275963, -0.274114, -0.272261, -0.270407,
-0.268555, -0.266707, -0.264866, -0.263033, -0.261212, -0.259405,
-0.257614, -0.255841, -0.25409, -0.252361, -0.250658, -0.248982,
-0.247335, -0.245719, -0.244137, -0.242589, -0.241078, -0.239605,
-0.238171, -0.236779, -0.235428, -0.234121, -0.232859, -0.231642,
-0.230471, -0.229347, -0.228271, -0.227242, -0.226262, -0.22533,
-0.224447, -0.223612, -0.222825, -0.222087, -0.221396, -0.220753,
-0.220155, -0.219604, -0.219097, -0.218634, -0.218214, -0.217836,
-0.217497, -0.217198, -0.216935, -0.216709, -0.216516, -0.216355,
-0.216225, -0.216123, -0.216047, -0.215996, -0.215967, -0.215957,
-0.215966, -0.21599, -0.216027, -0.216075, -0.216131, -0.216194,
-0.21626, -0.216327, -0.216393, -0.216455, -0.216512, -0.21656,
-0.216598, -0.216623, -0.216632, -0.216624, -0.216596, -0.216547,
-0.216473, -0.216374, -0.216247, -0.21609, -0.215901, -0.215679,
-0.215423, -0.21513, -0.214799, -0.214429, -0.214018, -0.213566,
-0.213072, -0.212534, -0.211951, -0.211324, -0.210651, -0.209932,
-0.209166, -0.208354, -0.207495, -0.20659, -0.205637, -0.204639,
-0.203595, -0.202505, -0.20137, -0.200192, -0.198969, -0.197705,
-0.196399, -0.195053, -0.193668, -0.192246, -0.190787, -0.189294,
-0.187768, -0.186211, -0.184624, -0.18301, -0.181369, -0.179706,
-0.17802, -0.176315, -0.174593, -0.172855, -0.171104, -0.169343,
-0.167573, -0.165797, -0.164017, -0.162236, -0.160456, -0.158678,
-0.156906, -0.155142, -0.153388, -0.151647, -0.149919, -0.148209,
-0.146517, -0.144846, -0.143198, -0.141575, -0.139979, -0.138411,
-0.136874, -0.135368, -0.133897, -0.13246, -0.13106, -0.129698,
-0.128375, -0.127092, -0.125851, -0.124652, -0.123495, -0.122382,
-0.121314, -0.12029, -0.119311, -0.118378, -0.117489, -0.116647,
-0.115849, -0.115097, -0.11439, -0.113726, -0.113107, -0.11253,
-0.111996, -0.111503, -0.111051, -0.110638, -0.110262, -0.109924,
-0.109621, -0.109352, -0.109115, -0.108909, -0.108732, -0.108582,
-0.108457, -0.108356, -0.108276, -0.108215, -0.108171, -0.108143,
-0.108128, -0.108123, -0.108127, -0.108137, -0.108151, -0.108167,
-0.108183, -0.108195, -0.108203, -0.108203, -0.108193, -0.108172,
-0.108137, -0.108086, -0.108017, -0.107927, -0.107816, -0.10768,
-0.107518, -0.107329, -0.107109, -0.106859, -0.106576, -0.106259,
-0.105906, -0.105516, -0.105088, -0.104621, -0.104113, -0.103564,
-0.102973, -0.102339, -0.101662, -0.100941, -0.100176, -0.0993669,
-0.0985128, -0.0976142, -0.0966711, -0.0956837, -0.0946522, -0.0935772,
-0.0924592, -0.0912987, -0.0900967, -0.0888538, -0.0875712, -0.0862498,
-0.0848909, -0.0834956, -0.0820654, -0.0806016, -0.0791059, -0.0775797,
-0.0760249, -0.0744431, -0.0728362, -0.071206, -0.0695546, -0.0678838,
-0.0661959, -0.0644928, -0.0627767, -0.0610497, -0.0593141, -0.057572,
-0.0558258, -0.0540775, -0.0523295, -0.050584, -0.0488433, -0.0471095,
-0.0453849, -0.0436716, -0.0419718, -0.0402876, -0.0386211, -0.0369743,
-0.0353492, -0.0337477, -0.0321717, -0.0306229, -0.0291032, -0.027614,
-0.0261571, -0.0247339, -0.0233457, -0.021994, -0.0206799, -0.0194046,
-0.0181691, -0.0169743, -0.015821, -0.0147099, -0.0136417, -0.0126168,
-0.0116356, -0.0106985, -0.00980543, -0.0089566, -0.00815189, -0.00739114,
-0.00667404, -0.00600021, -0.00536911, -0.00478013, -0.00423255, -0.00372552,
-0.00325811, -0.00282927, -0.00243787, -0.00208267, -0.00176235, -0.00147549,
-0.00122059, -0.000996069, -0.000800263, -0.000631441, -0.0004878, -0.000367475,
-0.00026854, -0.000189014, -0.000126867, -8.00254e-5, -4.6376e-5, -2.37718e-5,
-1.00377e-5, -2.97603e-6, -3.72146e-7, 2.22045e-16, 3.72146e-7, 2.97603e-6,
1.00377e-5, 2.37718e-5, 4.6376e-5, 8.00254e-5, 0.000126867, 0.000189014,
0.00026854, 0.000367475, 0.0004878, 0.000631441, 0.000800263, 0.000996069,
0.00122059, 0.00147549, 0.00176235, 0.00208267, 0.00243787, 0.00282927,
0.00325811, 0.00372552, 0.00423255, 0.00478013, 0.00536911, 0.00600021,
0.00667404, 0.00739114, 0.00815189, 0.0089566, 0.00980543, 0.0106985,
0.0116356, 0.0126168, 0.0136417, 0.0147099, 0.015821, 0.0169743,
0.0181691, 0.0194046, 0.0206799, 0.021994, 0.0233457, 0.0247339,
0.0261571, 0.027614, 0.0291032, 0.0306229, 0.0321717, 0.0337477,
0.0353492, 0.0369743, 0.0386211, 0.0402876, 0.0419718, 0.0436716,
0.0453849, 0.0471095, 0.0488433, 0.050584, 0.0523295, 0.0540775,
0.0558258, 0.057572, 0.0593141, 0.0610497, 0.0627767, 0.0644928,
0.0661959, 0.0678838, 0.0695546, 0.071206, 0.0728362, 0.0744431,
0.0760249, 0.0775797, 0.0791059, 0.0806016, 0.0820654, 0.0834956,
0.0848909, 0.0862498, 0.0875712, 0.0888538, 0.0900967, 0.0912987,
0.0924592, 0.0935772, 0.0946522, 0.0956837, 0.0966711, 0.0976142,
0.0985128, 0.0993669, 0.100176, 0.100941, 0.101662, 0.102339,
0.102973, 0.103564, 0.104113, 0.104621, 0.105088, 0.105516,
0.105906, 0.106259, 0.106576, 0.106859, 0.107109, 0.107329,
0.107518, 0.10768, 0.107816, 0.107927, 0.108017, 0.108086,
0.108137, 0.108172, 0.108193, 0.108203, 0.108203, 0.108195,
0.108183, 0.108167, 0.108151, 0.108137, 0.108127, 0.108123,
0.108128, 0.108143, 0.108171, 0.108215, 0.108276, 0.108356,
0.108457, 0.108582, 0.108732, 0.108909, 0.109115, 0.109352,
0.109621, 0.109924, 0.110262, 0.110638, 0.111051, 0.111503,
0.111996, 0.11253, 0.113107, 0.113726, 0.11439, 0.115097,
0.115849, 0.116647, 0.117489, 0.118378, 0.119311, 0.12029,
0.121314, 0.122382, 0.123495, 0.124652, 0.125851, 0.127092,
0.128375, 0.129698, 0.13106, 0.13246, 0.133897, 0.135368,
0.136874, 0.138411, 0.139979, 0.141575, 0.143198, 0.144846,
0.146517, 0.148209, 0.149919, 0.151647, 0.153388, 0.155142,
0.156906, 0.158678, 0.160456, 0.162236, 0.164017, 0.165797,
0.167573, 0.169343, 0.171104, 0.172855, 0.174593, 0.176315,
0.17802, 0.179706, 0.181369, 0.18301, 0.184624, 0.186211,
0.187768, 0.189294, 0.190787, 0.192246, 0.193668, 0.195053,
0.196399, 0.197705, 0.198969, 0.200192, 0.20137, 0.202505,
0.203595, 0.204639, 0.205637, 0.20659, 0.207495, 0.208354,
0.209166, 0.209932, 0.210651, 0.211324, 0.211951, 0.212534,
0.213072, 0.213566, 0.214018, 0.214429, 0.214799, 0.21513,
0.215423, 0.215679, 0.215901, 0.21609, 0.216247, 0.216374,
0.216473, 0.216547, 0.216596, 0.216624, 0.216632, 0.216623,
0.216598, 0.21656, 0.216512, 0.216455, 0.216393, 0.216327,
0.21626, 0.216194, 0.216131, 0.216075, 0.216027, 0.21599,
0.215966, 0.215957, 0.215967, 0.215996, 0.216047, 0.216123,
0.216225, 0.216355, 0.216516, 0.216709, 0.216935, 0.217198,
0.217497, 0.217836, 0.218214, 0.218634, 0.219097, 0.219604,
0.220155, 0.220753, 0.221396, 0.222087, 0.222825, 0.223612,
0.224447, 0.22533, 0.226262, 0.227242, 0.228271, 0.229347,
0.230471, 0.231642, 0.232859, 0.234121, 0.235428, 0.236779,
0.238171, 0.239605, 0.241078, 0.242589, 0.244137, 0.245719,
0.247335, 0.248982, 0.250658, 0.252361, 0.25409, 0.255841,
0.257614, 0.259405, 0.261212, 0.263033, 0.264866, 0.266707,
0.268555, 0.270407, 0.272261, 0.274114, 0.275963, 0.277806,
0.279641, 0.281465, 0.283275, 0.285069, 0.286845, 0.288601,
0.290334, 0.292041, 0.293722, 0.295373, 0.296992, 0.298578,
0.300129, 0.301642, 0.303117, 0.304551, 0.305944, 0.307293,
0.308597, 0.309856, 0.311067, 0.312231, 0.313346, 0.314412,
0.315428, 0.316393, 0.317308, 0.318172, 0.318985, 0.319746,
0.320458, 0.321118, 0.321729, 0.32229, 0.322803, 0.323267,
0.323685, 0.324057, 0.324384, 0.324668, 0.324911, 0.325112,
0.325276, 0.325402, 0.325493, 0.32555, 0.325577, 0.325575,
0.325546, 0.325492, 0.325416, 0.325319, 0.325206, 0.325078,
0.324937, 0.324786, 0.324628, 0.324465, 0.324301, 0.324137,
0.323976, 0.323821, 0.323675, 0.323541, 0.32342, 0.323315,
0.32323, 0.323166, 0.323125, 0.323112, 0.323126, 0.323172,
0.32325, 0.323364, 0.323515, 0.323705, 0.323936, 0.324209,
0.324527, 0.324891, 0.325302, 0.325761, 0.32627, 0.326829,
0.32744, 0.328104, 0.32882, 0.32959, 0.330414, 0.331292,
0.332224, 0.333211, 0.334251, 0.335346, 0.336493, 0.337693,
0.338945, 0.340249, 0.341602, 0.343004, 0.344455, 0.345951,
0.347492, 0.349077, 0.350703, 0.352369, 0.354073, 0.355812,
0.357585, 0.359389, 0.361223, 0.363083, 0.364967, 0.366873,
0.368798, 0.370739, 0.372694, 0.37466, 0.376634, 0.378613,
0.380595, 0.382577, 0.384555, 0.386528, 0.388491, 0.390443,
0.392381, 0.394301, 0.396202, 0.39808, 0.399932, 0.401757,
0.403552, 0.405313, 0.40704, 0.408729, 0.410379, 0.411987,
0.413551, 0.415069, 0.416541, 0.417963, 0.419335, 0.420655,
0.421921, 0.423133, 0.42429, 0.425391, 0.426434, 0.42742,
0.428348, 0.429218, 0.430029, 0.430782, 0.431476, 0.432112,
0.432691, 0.433213, 0.433678, 0.434088, 0.434444, 0.434747,
0.434998, 0.435198, 0.43535, 0.435455, 0.435514, 0.43553,
0.435505, 0.435441, 0.43534, 0.435205, 0.435038, 0.434841,
0.434618, 0.434371, 0.434103, 0.433817, 0.433515, 0.433202,
0.432878, 0.432549, 0.432216, 0.431883, 0.431553, 0.431228,
0.430913, 0.430611, 0.430323, 0.430054, 0.429805, 0.429581,
0.429384, 0.429217, 0.429082, 0.428983, 0.428922, 0.428901,
0.428923, 0.428989, 0.429104, 0.429267, 0.429482, 0.429751,
0.430074, 0.430454, 0.430891, 0.431388, 0.431946, 0.432564,
0.433246, 0.43399, 0.434797, 0.435668, 0.436604, 0.437603,
0.438667, 0.439794, 0.440984, 0.442237, 0.443552, 0.444928,
0.446364, 0.447858, 0.449409, 0.451017, 0.452678, 0.454391,
0.456154, 0.457966, 0.459823, 0.461724, 0.463665, 0.465645,
0.46766, 0.469708, 0.471787, 0.473892, 0.47602, 0.47817,
0.480337, 0.482518, 0.48471, 0.48691, 0.489114, 0.491319,
0.493521, 0.495718, 0.497904, 0.500078, 0.502236, 0.504374,
0.506489, 0.508578, 0.510638, 0.512665, 0.514656, 0.516609,
0.518521, 0.520387, 0.522207, 0.523978, 0.525696, 0.527359,
0.528966, 0.530514, 0.532001, 0.533425, 0.534786, 0.53608,
0.537307, 0.538466, 0.539556, 0.540576, 0.541525, 0.542402,
0.543208, 0.543943, 0.544606, 0.545198, 0.545718, 0.546169,
0.54655, 0.546863, 0.547108, 0.547287, 0.547402, 0.547455,
0.547446, 0.547378, 0.547254, 0.547075, 0.546844, 0.546564,
0.546237, 0.545867, 0.545456, 0.545007, 0.544524, 0.54401,
0.543469, 0.542903, 0.542317, 0.541714, 0.541098, 0.540473,
0.539842, 0.539209, 0.538579, 0.537954, 0.537339, 0.536738,
0.536155, 0.535593, 0.535056, 0.534548, 0.534072, 0.533633,
0.533233, 0.532876, 0.532566, 0.532306, 0.532098, 0.531946,
0.531853, 0.531822, 0.531854, 0.531953, 0.532121, 0.53236,
0.532671, 0.533057, 0.53352, 0.53406, 0.534679, 0.535378,
0.536158, 0.537019, 0.537962, 0.538987, 0.540094, 0.541283,
0.542553, 0.543904, 0.545335, 0.546844, 0.548432, 0.550095,
0.551833, 0.553644, 0.555525, 0.557475, 0.55949, 0.561569,
0.563709, 0.565906, 0.568158, 0.570461, 0.572812, 0.575207,
0.577643, 0.580116, 0.582621, 0.585156, 0.587715, 0.590295,
0.592891, 0.595499, 0.598115, 0.600734, 0.603352, 0.605964,
0.608565, 0.611152, 0.613719, 0.616263, 0.618779, 0.621262,
0.623708, 0.626113, 0.628473, 0.630784, 0.633041, 0.635241,
0.637381, 0.639455, 0.641462, 0.643398, 0.64526, 0.647044,
0.648748, 0.650369, 0.651905, 0.653354, 0.654714, 0.655983,
0.657159, 0.658241, 0.659228, 0.660119, 0.660914, 0.661612,
0.662213, 0.662716, 0.663124, 0.663435, 0.663652, 0.663774,
0.663804, 0.663742, 0.663592, 0.663354, 0.663032, 0.662627,
0.662142, 0.661581, 0.660947, 0.660243, 0.659472, 0.658639,
0.657747, 0.656801, 0.655805, 0.654763, 0.65368, 0.652561,
0.65141, 0.650233, 0.649034, 0.64782, 0.646594, 0.645363,
0.644132, 0.642906, 0.64169, 0.64049, 0.639312, 0.638161,
0.637042, 0.635961, 0.634922, 0.633932, 0.632995, 0.632116,
0.6313, 0.630552, 0.629877, 0.629279, 0.628762, 0.628331,
0.627989, 0.627741, 0.62759, 0.627539, 0.627591, 0.627749,
0.628016, 0.628395, 0.628887, 0.629494, 0.630217, 0.631059,
0.63202, 0.6331, 0.634301, 0.635621, 0.637062, 0.638622,
0.640301, 0.642097, 0.644009, 0.646036, 0.648174, 0.650423,
0.652779, 0.655239, 0.657801, 0.66046, 0.663212, 0.666055,
0.668983, 0.671991, 0.675076, 0.678232, 0.681454, 0.684735,
0.688072, 0.691457, 0.694885, 0.698349, 0.701844, 0.705362,
0.708897, 0.712443, 0.715992, 0.719538, 0.723074, 0.726593,
0.730087, 0.733551, 0.736977, 0.740358, 0.743687, 0.746957,
0.750162, 0.753296, 0.756351, 0.759321, 0.7622, 0.764983,
0.767662, 0.770233, 0.77269, 0.775028, 0.777242, 0.779327,
0.781278, 0.783093, 0.784766, 0.786295, 0.787676, 0.788906,
0.789984, 0.790905, 0.79167, 0.792277, 0.792724, 0.793012,
0.793139, 0.793106, 0.792914, 0.792563, 0.792055, 0.791392,
0.790577, 0.78961, 0.788497, 0.78724, 0.785843, 0.78431,
0.782646, 0.780856, 0.778945, 0.776919, 0.774784, 0.772547,
0.770214, 0.767793, 0.76529, 0.762714, 0.760073, 0.757374,
0.754627, 0.751839, 0.749021, 0.74618, 0.743327, 0.740471,
0.737621, 0.734787, 0.731978, 0.729205, 0.726478, 0.723805,
0.721198, 0.718666, 0.716219, 0.713867, 0.711618, 0.709484,
0.707472, 0.705592, 0.703854, 0.702266, 0.700836, 0.699573,
0.698485, 0.697579, 0.696863, 0.696344, 0.696028, 0.695921,
0.69603, 0.696359, 0.696913, 0.697698, 0.698716, 0.699971,
0.701466, 0.703203, 0.705185, 0.707412, 0.709884, 0.712603,
0.715567, 0.718776, 0.722227, 0.725918, 0.729846, 0.734007,
0.738398, 0.743013, 0.747847, 0.752893, 0.758145, 0.763596,
0.769236, 0.775059, 0.781054, 0.787211, 0.793521, 0.799972,
0.806552, 0.81325, 0.820053, 0.826948, 0.833921, 0.840958,
0.848044, 0.855165, 0.862305, 0.869448, 0.876579, 0.88368,
0.890735, 0.897727, 0.904638, 0.91145, 0.918147, 0.92471,
0.931121, 0.937361, 0.943413, 0.949258, 0.954878, 0.960254,
0.965369, 0.970203, 0.974739, 0.978959, 0.982845, 0.98638,
0.989546, 0.992326, 0.994704, 0.996663, 0.998188, 0.999262,
0.999871, 1, 0.999635, 0.998762, 0.997368, 0.99544,
0.992967, 0.989938, 0.986342, 0.982169, 0.977409, 0.972055,
0.966099, 0.959533, 0.952352, 0.94455, 0.936122, 0.927066,
0.917377, 0.907054, 0.896096, 0.884503, 0.872274, 0.859412,
0.845919, 0.831798, 0.817054, 0.80169, 0.785714, 0.769131,
0.75195, 0.734179, 0.715827, 0.696905, 0.677423, 0.657394,
0.636831, 0.615746, 0.594153, 0.572069, 0.549508, 0.526488,
0.503024, 0.479136, 0.454841, 0.430159, 0.405108, 0.37971,
0.353985, 0.327955, 0.30164, 0.275064, 0.248248, 0.221215,
0.19399, 0.166594, 0.139052, 0.111389, 0.0836275, 0.0557926,
0.0279086, 0
};
static const float WAVE_SAW_102[DEFAULT_WAVELEN] = {
-0.0146597, -0.0293159, -0.043965, -0.0586036, -0.0732281, -0.0878351,
-0.102421, -0.116982, -0.131516, -0.146017, -0.160484, -0.174913,
-0.1893, -0.203641, -0.217934, -0.232175, -0.24636, -0.260487,
-0.274552, -0.288552, -0.302483, -0.316342, -0.330127, -0.343833,
-0.357459, -0.371, -0.384453, -0.397816, -0.411086, -0.424259,
-0.437334, -0.450306, -0.463172, -0.475932, -0.48858, -0.501115,
-0.513535, -0.525836, -0.538015, -0.550071, -0.562001, -0.573803,
-0.585473, -0.59701, -0.608412, -0.619676, -0.6308, -0.641782,
-0.65262, -0.663312, -0.673856, -0.68425, -0.694493, -0.704582,
-0.714515, -0.724292, -0.733911, -0.74337, -0.752667, -0.761802,
-0.770772, -0.779578, -0.788216, -0.796687, -0.804989, -0.813122,
-0.821084, -0.828874, -0.836491, -0.843935, -0.851206, -0.858302,
-0.865223, -0.871968, -0.878537, -0.88493, -0.891146, -0.897186,
-0.903048, -0.908733, -0.914241, -0.919572, -0.924725, -0.929702,
-0.934502, -0.939125, -0.943573, -0.947845, -0.951941, -0.955863,
-0.959611, -0.963185, -0.966587, -0.969817, -0.972875, -0.975764,
-0.978483, -0.981034, -0.983417, -0.985635, -0.987688, -0.989577,
-0.991304, -0.992869, -0.994275, -0.995523, -0.996614, -0.99755,
-0.998333, -0.998963, -0.999443, -0.999775, -0.99996, -1,
-0.999897, -0.999653, -0.999269, -0.998749, -0.998093, -0.997304,
-0.996384, -0.995335, -0.994159, -0.992859, -0.991437, -0.989894,
-0.988234, -0.986458, -0.98457, -0.98257, -0.980463, -0.978249,
-0.975932, -0.973515, -0.970998, -0.968386, -0.965681, -0.962884,
-0.959999, -0.957029, -0.953975, -0.950841, -0.947629, -0.944342,
-0.940981, -0.937551, -0.934053, -0.930491, -0.926866, -0.923182,
-0.919441, -0.915645, -0.911798, -0.907903, -0.90396, -0.899974,
-0.895947, -0.891881, -0.88778, -0.883645, -0.879479, -0.875285,
-0.871066, -0.866823, -0.86256, -0.858279, -0.853982, -0.849672,
-0.845351, -0.841022, -0.836687, -0.832348, -0.828009, -0.82367,
-0.819335, -0.815006, -0.810684, -0.806373, -0.802074, -0.797789,
-0.793521, -0.789272, -0.785043, -0.780837, -0.776656, -0.772501,
-0.768375, -0.76428, -0.760216, -0.756187, -0.752193, -0.748237,
-0.74432, -0.740444, -0.73661, -0.73282, -0.729076, -0.725379,
-0.721729, -0.71813, -0.714581, -0.711085, -0.707643, -0.704255,
-0.700923, -0.697648, -0.694431, -0.691273, -0.688175, -0.685138,
-0.682163, -0.67925, -0.676401, -0.673616, -0.670896, -0.668241,
-0.665653, -0.663131, -0.660676, -0.658288, -0.655969, -0.653718,
-0.651535, -0.649421, -0.647377, -0.645402, -0.643496, -0.641659,
-0.639893, -0.638195, -0.636567, -0.635009, -0.633519, -0.632099,
-0.630748, -0.629465, -0.62825, -0.627103, -0.626024, -0.625012,
-0.624067, -0.623187, -0.622373, -0.621624, -0.62094, -0.620319,
-0.619761, -0.619266, -0.618832, -0.618459, -0.618145, -0.617891,
-0.617695, -0.617556, -0.617473, -0.617446, -0.617473, -0.617553,
-0.617686, -0.617869, -0.618103, -0.618385, -0.618715, -0.619092,
-0.619514, -0.619979, -0.620488, -0.621039, -0.621629, -0.622259,
-0.622926, -0.623629, -0.624368, -0.62514, -0.625945, -0.62678,
-0.627645, -0.628538, -0.629457, -0.630402, -0.631371, -0.632362,
-0.633374, -0.634405, -0.635455, -0.636521, -0.637602, -0.638697,
-0.639805, -0.640923, -0.642051, -0.643186, -0.644328, -0.645476,
-0.646626, -0.64778, -0.648933, -0.650087, -0.651238, -0.652386,
-0.653529, -0.654667, -0.655796, -0.656917, -0.658028, -0.659128,
-0.660214, -0.661287, -0.662345, -0.663386, -0.664409, -0.665413,
-0.666398, -0.667361, -0.668301, -0.669218, -0.670111, -0.670978,
-0.671818, -0.67263, -0.673413, -0.674167, -0.67489, -0.675581,
-0.676239, -0.676864, -0.677455, -0.678011, -0.67853, -0.679013,
-0.679459, -0.679866, -0.680234, -0.680563, -0.680852, -0.6811,
-0.681307, -0.681471, -0.681594, -0.681673, -0.68171, -0.681702,
-0.681651, -0.681555, -0.681415, -0.681229, -0.680998, -0.680722,
-0.6804, -0.680032, -0.679618, -0.679158, -0.678651, -0.678099,
-0.6775, -0.676855, -0.676164, -0.675426, -0.674643, -0.673814,
-0.672939, -0.672019, -0.671054, -0.670043, -0.668988, -0.667888,
-0.666745, -0.665557, -0.664327, -0.663053, -0.661737, -0.660379,
-0.65898, -0.65754, -0.656059, -0.654538, -0.652979, -0.651381,
-0.649744, -0.648071, -0.646361, -0.644615, -0.642834, -0.641018,
-0.639169, -0.637287, -0.635373, -0.633427, -0.631451, -0.629446,
-0.627412, -0.62535, -0.623261, -0.621146, -0.619007, -0.616843,
-0.614655, -0.612446, -0.610216, -0.607965, -0.605695, -0.603406,
-0.6011, -0.598779, -0.596441, -0.59409, -0.591726, -0.589349,
-0.586961, -0.584563, -0.582156, -0.579742, -0.57732, -0.574892,
-0.57246, -0.570024, -0.567585, -0.565144, -0.562703, -0.560262,
-0.557822, -0.555385, -0.552952, -0.550522, -0.548099, -0.545681,
-0.543272, -0.54087, -0.538478, -0.536097, -0.533726, -0.531368,
-0.529023, -0.526692, -0.524377, -0.522077, -0.519794, -0.517528,
-0.515281, -0.513053, -0.510846, -0.508659, -0.506494, -0.504351,
-0.502232, -0.500136, -0.498065, -0.496019, -0.494, -0.492007,
-0.490041, -0.488103, -0.486194, -0.484313, -0.482462, -0.480642,
-0.478852, -0.477092, -0.475365, -0.473669, -0.472006, -0.470376,
-0.468778, -0.467215, -0.465685, -0.464189, -0.462727, -0.4613,
-0.459908, -0.458551, -0.457229, -0.455942, -0.454691, -0.453476,
-0.452296, -0.451152, -0.450044, -0.448971, -0.447935, -0.446934,
-0.445968, -0.445038, -0.444144, -0.443285, -0.442461, -0.441672,
-0.440918, -0.440198, -0.439513, -0.438862, -0.438244, -0.43766,
-0.437109, -0.436591, -0.436105, -0.435651, -0.435229, -0.434838,
-0.434477, -0.434147, -0.433846, -0.433575, -0.433332, -0.433117,
-0.43293, -0.43277, -0.432636, -0.432528, -0.432445, -0.432387,
-0.432352, -0.432341, -0.432352, -0.432385, -0.432439, -0.432513,
-0.432607, -0.43272, -0.432851, -0.433, -0.433165, -0.433345,
-0.433541, -0.433751, -0.433975, -0.434211, -0.434459, -0.434718,
-0.434987, -0.435265, -0.435552, -0.435846, -0.436148, -0.436455,
-0.436767, -0.437084, -0.437404, -0.437727, -0.438051, -0.438376,
-0.438701, -0.439026, -0.439349, -0.439669, -0.439986, -0.440299,
-0.440607, -0.440909, -0.441205, -0.441493, -0.441773, -0.442045,
-0.442306, -0.442557, -0.442797, -0.443024, -0.443239, -0.443441,
-0.443628, -0.4438, -0.443957, -0.444097, -0.44422, -0.444326,
-0.444414, -0.444482, -0.444531, -0.44456, -0.444568, -0.444555,
-0.44452, -0.444463, -0.444383, -0.444279, -0.444151, -0.444,
-0.443823, -0.443621, -0.443393, -0.443139, -0.442859, -0.442551,
-0.442217, -0.441855, -0.441465, -0.441048, -0.440601, -0.440126,
-0.439623, -0.43909, -0.438528, -0.437936, -0.437315, -0.436664,
-0.435984, -0.435273, -0.434533, -0.433762, -0.432962, -0.432131,
-0.43127, -0.43038, -0.429459, -0.428508, -0.427528, -0.426518,
-0.425478, -0.424409, -0.423311, -0.422184, -0.421028, -0.419843,
-0.41863, -0.417389, -0.41612, -0.414823, -0.413499, -0.412149,
-0.410772, -0.409369, -0.40794, -0.406485, -0.405006, -0.403502,
-0.401974, -0.400423, -0.398849, -0.397252, -0.395632, -0.393992,
-0.39233, -0.390648, -0.388946, -0.387224, -0.385484, -0.383725,
-0.381949, -0.380156, -0.378347, -0.376522, -0.374682, -0.372828,
-0.37096, -0.369079, -0.367186, -0.365281, -0.363365, -0.361438,
-0.359502, -0.357558, -0.355605, -0.353644, -0.351677, -0.349704,
-0.347726, -0.345743, -0.343757, -0.341767, -0.339775, -0.337781,
-0.335787, -0.333792, -0.331798, -0.329806, -0.327815, -0.325827,
-0.323843, -0.321863, -0.319887, -0.317918, -0.315954, -0.313998,
-0.31205, -0.310109, -0.308178, -0.306257, -0.304346, -0.302447,
-0.300558, -0.298683, -0.29682, -0.294971, -0.293136, -0.291316,
-0.289511, -0.287722, -0.28595, -0.284195, -0.282457, -0.280738,
-0.279037, -0.277355, -0.275693, -0.274052, -0.27243, -0.27083,
-0.269251, -0.267694, -0.266159, -0.264647, -0.263158, -0.261692,
-0.26025, -0.258832, -0.257438, -0.256069, -0.254725, -0.253405,
-0.252111, -0.250843, -0.2496, -0.248383, -0.247193, -0.246028,
-0.24489, -0.243778, -0.242693, -0.241635, -0.240603, -0.239598,
-0.23862, -0.237668, -0.236743, -0.235845, -0.234973, -0.234128,
-0.23331, -0.232517, -0.231752, -0.231012, -0.230298, -0.22961,
-0.228947, -0.22831, -0.227698, -0.227111, -0.226548, -0.22601,
-0.225496, -0.225006, -0.224539, -0.224095, -0.223674, -0.223275,
-0.222899, -0.222543, -0.22221, -0.221897, -0.221604, -0.221331,
-0.221078, -0.220843, -0.220627, -0.220429, -0.220248, -0.220085,
-0.219937, -0.219806, -0.21969, -0.219588, -0.219501, -0.219427,
-0.219367, -0.219319, -0.219282, -0.219257, -0.219242, -0.219237,
-0.219242, -0.219255, -0.219276, -0.219305, -0.21934, -0.219382,
-0.219429, -0.219481, -0.219536, -0.219596, -0.219658, -0.219722,
-0.219788, -0.219854, -0.219921, -0.219987, -0.220051, -0.220114,
-0.220175, -0.220232, -0.220285, -0.220334, -0.220378, -0.220416,
-0.220447, -0.220472, -0.220488, -0.220497, -0.220496, -0.220486,
-0.220466, -0.220435, -0.220393, -0.220338, -0.220272, -0.220192,
-0.220099, -0.219991, -0.219869, -0.219732, -0.219578, -0.219409,
-0.219223, -0.21902, -0.218799, -0.21856, -0.218303, -0.218027,
-0.217731, -0.217415, -0.21708, -0.216724, -0.216347, -0.215948,
-0.215528, -0.215087, -0.214623, -0.214136, -0.213627, -0.213095,
-0.212539, -0.211961, -0.211358, -0.210732, -0.210081, -0.209407,
-0.208708, -0.207985, -0.207237, -0.206464, -0.205667, -0.204845,
-0.203998, -0.203127, -0.20223, -0.201309, -0.200362, -0.199392,
-0.198396, -0.197375, -0.196331, -0.195261, -0.194168, -0.19305,
-0.191908, -0.190742, -0.189553, -0.18834, -0.187104, -0.185845,
-0.184563, -0.183258, -0.181932, -0.180583, -0.179213, -0.177822,
-0.17641, -0.174977, -0.173524, -0.172051, -0.170558, -0.169047,
-0.167517, -0.165969, -0.164403, -0.162819, -0.161219, -0.159602,
-0.15797, -0.156322, -0.15466, -0.152983, -0.151292, -0.149587,
-0.147871, -0.146141, -0.144401, -0.142649, -0.140886, -0.139114,
-0.137332, -0.135542, -0.133743, -0.131937, -0.130124, -0.128305,
-0.12648, -0.12465, -0.122815, -0.120976, -0.119135, -0.11729,
-0.115444, -0.113596, -0.111748, -0.1099, -0.108052, -0.106205,
-0.10436, -0.102518, -0.100679, -0.0988432, -0.097012, -0.0951857,
-0.0933649, -0.0915504, -0.0897425, -0.0879421, -0.0861496, -0.0843657,
-0.0825909, -0.0808258, -0.0790711, -0.0773271, -0.0755946, -0.073874,
-0.0721659, -0.0704708, -0.0687893, -0.0671219, -0.0654689, -0.0638311,
-0.0622088, -0.0606024, -0.0590126, -0.0574396, -0.055884, -0.0543462,
-0.0528266, -0.0513256, -0.0498435, -0.0483808, -0.0469378, -0.0455149,
-0.0441124, -0.0427306, -0.0413699, -0.0400305, -0.0387126, -0.0374167,
-0.0361429, -0.0348914, -0.0336625, -0.0324563, -0.0312732, -0.0301131,
-0.0289764, -0.0278631, -0.0267734, -0.0257073, -0.024665, -0.0236465,
-0.022652, -0.0216814, -0.0207348, -0.0198122, -0.0189135, -0.0180389,
-0.0171882, -0.0163613, -0.0155583, -0.0147791, -0.0140235, -0.0132914,
-0.0125827, -0.0118972, -0.0112348, -0.0105954, -0.00997862, -0.00938438,
-0.00881243, -0.00826252, -0.00773441, -0.00722783, -0.00674248, -0.00627809,
-0.00583433, -0.00541089, -0.00500743, -0.00462359, -0.00425901, -0.00391332,
-0.00358612, -0.00327701, -0.00298558, -0.00271141, -0.00245405, -0.00221305,
-0.00198796, -0.00177831, -0.00158361, -0.00140337, -0.0012371, -0.00108429,
-0.000944406, -0.000816932, -0.000701332, -0.000597059, -0.000503564, -0.000420288,
-0.000346666, -0.000282126, -0.000226089, -0.000177974, -0.000137191, -0.000103146,
-7.52411e-5, -5.28743e-5, -3.54394e-5, -2.23272e-5, -1.29256e-5, -6.61989e-6,
-2.79342e-6, -8.27818e-7, -1.03488e-7, 2.22045e-16, 1.03488e-7, 8.27818e-7,
2.79342e-6, 6.61989e-6, 1.29256e-5, 2.23272e-5, 3.54394e-5, 5.28743e-5,
7.52411e-5, 0.000103146, 0.000137191, 0.000177974, 0.000226089, 0.000282126,
0.000346666, 0.000420288, 0.000503564, 0.000597059, 0.000701332, 0.000816932,
0.000944406, 0.00108429, 0.0012371, 0.00140337, 0.00158361, 0.00177831,
0.00198796, 0.00221305, 0.00245405, 0.00271141, 0.00298558, 0.00327701,
0.00358612, 0.00391332, 0.00425901, 0.00462359, 0.00500743, 0.00541089,
0.00583433, 0.00627809, 0.00674248, 0.00722783, 0.00773441, 0.00826252,
0.00881243, 0.00938438, 0.00997862, 0.0105954, 0.0112348, 0.0118972,
0.0125827, 0.0132914, 0.0140235, 0.0147791, 0.0155583, 0.0163613,
0.0171882, 0.0180389, 0.0189135, 0.0198122, 0.0207348, 0.0216814,
0.022652, 0.0236465, 0.024665, 0.0257073, 0.0267734, 0.0278631,
0.0289764, 0.0301131, 0.0312732, 0.0324563, 0.0336625, 0.0348914,
0.0361429, 0.0374167, 0.0387126, 0.0400305, 0.0413699, 0.0427306,
0.0441124, 0.0455149, 0.0469378, 0.0483808, 0.0498435, 0.0513256,
0.0528266, 0.0543462, 0.055884, 0.0574396, 0.0590126, 0.0606024,
0.0622088, 0.0638311, 0.0654689, 0.0671219, 0.0687893, 0.0704708,
0.0721659, 0.073874, 0.0755946, 0.0773271, 0.0790711, 0.0808258,
0.0825909, 0.0843657, 0.0861496, 0.0879421, 0.0897425, 0.0915504,
0.0933649, 0.0951857, 0.097012, 0.0988432, 0.100679, 0.102518,
0.10436, 0.106205, 0.108052, 0.1099, 0.111748, 0.113596,
0.115444, 0.11729, 0.119135, 0.120976, 0.122815, 0.12465,
0.12648, 0.128305, 0.130124, 0.131937, 0.133743, 0.135542,
0.137332, 0.139114, 0.140886, 0.142649, 0.144401, 0.146141,
0.147871, 0.149587, 0.151292, 0.152983, 0.15466, 0.156322,
0.15797, 0.159602, 0.161219, 0.162819, 0.164403, 0.165969,
0.167517, 0.169047, 0.170558, 0.172051, 0.173524, 0.174977,
0.17641, 0.177822, 0.179213, 0.180583, 0.181932, 0.183258,
0.184563, 0.185845, 0.187104, 0.18834, 0.189553, 0.190742,
0.191908, 0.19305, 0.194168, 0.195261, 0.196331, 0.197375,
0.198396, 0.199392, 0.200362, 0.201309, 0.20223, 0.203127,
0.203998, 0.204845, 0.205667, 0.206464, 0.207237, 0.207985,
0.208708, 0.209407, 0.210081, 0.210732, 0.211358, 0.211961,
0.212539, 0.213095, 0.213627, 0.214136, 0.214623, 0.215087,
0.215528, 0.215948, 0.216347, 0.216724, 0.21708, 0.217415,
0.217731, 0.218027, 0.218303, 0.21856, 0.218799, 0.21902,
0.219223, 0.219409, 0.219578, 0.219732, 0.219869, 0.219991,
0.220099, 0.220192, 0.220272, 0.220338, 0.220393, 0.220435,
0.220466, 0.220486, 0.220496, 0.220497, 0.220488, 0.220472,
0.220447, 0.220416, 0.220378, 0.220334, 0.220285, 0.220232,
0.220175, 0.220114, 0.220051, 0.219987, 0.219921, 0.219854,
0.219788, 0.219722, 0.219658, 0.219596, 0.219536, 0.219481,
0.219429, 0.219382, 0.21934, 0.219305, 0.219276, 0.219255,
0.219242, 0.219237, 0.219242, 0.219257, 0.219282, 0.219319,
0.219367, 0.219427, 0.219501, 0.219588, 0.21969, 0.219806,
0.219937, 0.220085, 0.220248, 0.220429, 0.220627, 0.220843,
0.221078, 0.221331, 0.221604, 0.221897, 0.22221, 0.222543,
0.222899, 0.223275, 0.223674, 0.224095, 0.224539, 0.225006,
0.225496, 0.22601, 0.226548, 0.227111, 0.227698, 0.22831,
0.228947, 0.22961, 0.230298, 0.231012, 0.231752, 0.232517,
0.23331, 0.234128, 0.234973, 0.235845, 0.236743, 0.237668,
0.23862, 0.239598, 0.240603, 0.241635, 0.242693, 0.243778,
0.24489, 0.246028, 0.247193, 0.248383, 0.2496, 0.250843,
0.252111, 0.253405, 0.254725, 0.256069, 0.257438, 0.258832,
0.26025, 0.261692, 0.263158, 0.264647, 0.266159, 0.267694,
0.269251, 0.27083, 0.27243, 0.274052, 0.275693, 0.277355,
0.279037, 0.280738, 0.282457, 0.284195, 0.28595, 0.287722,
0.289511, 0.291316, 0.293136, 0.294971, 0.29682, 0.298683,
0.300558, 0.302447, 0.304346, 0.306257, 0.308178, 0.310109,
0.31205, 0.313998, 0.315954, 0.317918, 0.319887, 0.321863,
0.323843, 0.325827, 0.327815, 0.329806, 0.331798, 0.333792,
0.335787, 0.337781, 0.339775, 0.341767, 0.343757, 0.345743,
0.347726, 0.349704, 0.351677, 0.353644, 0.355605, 0.357558,
0.359502, 0.361438, 0.363365, 0.365281, 0.367186, 0.369079,
0.37096, 0.372828, 0.374682, 0.376522, 0.378347, 0.380156,
0.381949, 0.383725, 0.385484, 0.387224, 0.388946, 0.390648,
0.39233, 0.393992, 0.395632, 0.397252, 0.398849, 0.400423,
0.401974, 0.403502, 0.405006, 0.406485, 0.40794, 0.409369,
0.410772, 0.412149, 0.413499, 0.414823, 0.41612, 0.417389,
0.41863, 0.419843, 0.421028, 0.422184, 0.423311, 0.424409,
0.425478, 0.426518, 0.427528, 0.428508, 0.429459, 0.43038,
0.43127, 0.432131, 0.432962, 0.433762, 0.434533, 0.435273,
0.435984, 0.436664, 0.437315, 0.437936, 0.438528, 0.43909,
0.439623, 0.440126, 0.440601, 0.441048, 0.441465, 0.441855,
0.442217, 0.442551, 0.442859, 0.443139, 0.443393, 0.443621,
0.443823, 0.444, 0.444151, 0.444279, 0.444383, 0.444463,
0.44452, 0.444555, 0.444568, 0.44456, 0.444531, 0.444482,
0.444414, 0.444326, 0.44422, 0.444097, 0.443957, 0.4438,
0.443628, 0.443441, 0.443239, 0.443024, 0.442797, 0.442557,
0.442306, 0.442045, 0.441773, 0.441493, 0.441205, 0.440909,
0.440607, 0.440299, 0.439986, 0.439669, 0.439349, 0.439026,
0.438701, 0.438376, 0.438051, 0.437727, 0.437404, 0.437084,
0.436767, 0.436455, 0.436148, 0.435846, 0.435552, 0.435265,
0.434987, 0.434718, 0.434459, 0.434211, 0.433975, 0.433751,
0.433541, 0.433345, 0.433165, 0.433, 0.432851, 0.43272,
0.432607, 0.432513, 0.432439, 0.432385, 0.432352, 0.432341,
0.432352, 0.432387, 0.432445, 0.432528, 0.432636, 0.43277,
0.43293, 0.433117, 0.433332, 0.433575, 0.433846, 0.434147,
0.434477, 0.434838, 0.435229, 0.435651, 0.436105, 0.436591,
0.437109, 0.43766, 0.438244, 0.438862, 0.439513, 0.440198,
0.440918, 0.441672, 0.442461, 0.443285, 0.444144, 0.445038,
0.445968, 0.446934, 0.447935, 0.448971, 0.450044, 0.451152,
0.452296, 0.453476, 0.454691, 0.455942, 0.457229, 0.458551,
0.459908, 0.4613, 0.462727, 0.464189, 0.465685, 0.467215,
0.468778, 0.470376, 0.472006, 0.473669, 0.475365, 0.477092,
0.478852, 0.480642, 0.482462, 0.484313, 0.486194, 0.488103,
0.490041, 0.492007, 0.494, 0.496019, 0.498065, 0.500136,
0.502232, 0.504351, 0.506494, 0.508659, 0.510846, 0.513053,
0.515281, 0.517528, 0.519794, 0.522077, 0.524377, 0.526692,
0.529023, 0.531368, 0.533726, 0.536097, 0.538478, 0.54087,
0.543272, 0.545681, 0.548099, 0.550522, 0.552952, 0.555385,
0.557822, 0.560262, 0.562703, 0.565144, 0.567585, 0.570024,
0.57246, 0.574892, 0.57732, 0.579742, 0.582156, 0.584563,
0.586961, 0.589349, 0.591726, 0.59409, 0.596441, 0.598779,
0.6011, 0.603406, 0.605695, 0.607965, 0.610216, 0.612446,
0.614655, 0.616843, 0.619007, 0.621146, 0.623261, 0.62535,
0.627412, 0.629446, 0.631451, 0.633427, 0.635373, 0.637287,
0.639169, 0.641018, 0.642834, 0.644615, 0.646361, 0.648071,
0.649744, 0.651381, 0.652979, 0.654538, 0.656059, 0.65754,
0.65898, 0.660379, 0.661737, 0.663053, 0.664327, 0.665557,
0.666745, 0.667888, 0.668988, 0.670043, 0.671054, 0.672019,
0.672939, 0.673814, 0.674643, 0.675426, 0.676164, 0.676855,
0.6775, 0.678099, 0.678651, 0.679158, 0.679618, 0.680032,
0.6804, 0.680722, 0.680998, 0.681229, 0.681415, 0.681555,
0.681651, 0.681702, 0.68171, 0.681673, 0.681594, 0.681471,
0.681307, 0.6811, 0.680852, 0.680563, 0.680234, 0.679866,
0.679459, 0.679013, 0.67853, 0.678011, 0.677455, 0.676864,
0.676239, 0.675581, 0.67489, 0.674167, 0.673413, 0.67263,
0.671818, 0.670978, 0.670111, 0.669218, 0.668301, 0.667361,
0.666398, 0.665413, 0.664409, 0.663386, 0.662345, 0.661287,
0.660214, 0.659128, 0.658028, 0.656917, 0.655796, 0.654667,
0.653529, 0.652386, 0.651238, 0.650087, 0.648933, 0.64778,
0.646626, 0.645476, 0.644328, 0.643186, 0.642051, 0.640923,
0.639805, 0.638697, 0.637602, 0.636521, 0.635455, 0.634405,
0.633374, 0.632362, 0.631371, 0.630402, 0.629457, 0.628538,
0.627645, 0.62678, 0.625945, 0.62514, 0.624368, 0.623629,
0.622926, 0.622259, 0.621629, 0.621039, 0.620488, 0.619979,
0.619514, 0.619092, 0.618715, 0.618385, 0.618103, 0.617869,
0.617686, 0.617553, 0.617473, 0.617446, 0.617473, 0.617556,
0.617695, 0.617891, 0.618145, 0.618459, 0.618832, 0.619266,
0.619761, 0.620319, 0.62094, 0.621624, 0.622373, 0.623187,
0.624067, 0.625012, 0.626024, 0.627103, 0.62825, 0.629465,
0.630748, 0.632099, 0.633519, 0.635009, 0.636567, 0.638195,
0.639893, 0.641659, 0.643496, 0.645402, 0.647377, 0.649421,
0.651535, 0.653718, 0.655969, 0.658288, 0.660676, 0.663131,
0.665653, 0.668241, 0.670896, 0.673616, 0.676401, 0.67925,
0.682163, 0.685138, 0.688175, 0.691273, 0.694431, 0.697648,
0.700923, 0.704255, 0.707643, 0.711085, 0.714581, 0.71813,
0.721729, 0.725379, 0.729076, 0.73282, 0.73661, 0.740444,
0.74432, 0.748237, 0.752193, 0.756187, 0.760216, 0.76428,
0.768375, 0.772501, 0.776656, 0.780837, 0.785043, 0.789272,
0.793521, 0.797789, 0.802074, 0.806373, 0.810684, 0.815006,
0.819335, 0.82367, 0.828009, 0.832348, 0.836687, 0.841022,
0.845351, 0.849672, 0.853982, 0.858279, 0.86256, 0.866823,
0.871066, 0.875285, 0.879479, 0.883645, 0.88778, 0.891881,
0.895947, 0.899974, 0.90396, 0.907903, 0.911798, 0.915645,
0.919441, 0.923182, 0.926866, 0.930491, 0.934053, 0.937551,
0.940981, 0.944342, 0.947629, 0.950841, 0.953975, 0.957029,
0.959999, 0.962884, 0.965681, 0.968386, 0.970998, 0.973515,
0.975932, 0.978249, 0.980463, 0.98257, 0.98457, 0.986458,
0.988234, 0.989894, 0.991437, 0.992859, 0.994159, 0.995335,
0.996384, 0.997304, 0.998093, 0.998749, 0.999269, 0.999653,
0.999897, 1, 0.99996, 0.999775, 0.999443, 0.998963,
0.998333, 0.99755, 0.996614, 0.995523, 0.994275, 0.992869,
0.991304, 0.989577, 0.987688, 0.985635, 0.983417, 0.981034,
0.978483, 0.975764, 0.972875, 0.969817, 0.966587, 0.963185,
0.959611, 0.955863, 0.951941, 0.947845, 0.943573, 0.939125,
0.934502, 0.929702, 0.924725, 0.919572, 0.914241, 0.908733,
0.903048, 0.897186, 0.891146, 0.88493, 0.878537, 0.871968,
0.865223, 0.858302, 0.851206, 0.843935, 0.836491, 0.828874,
0.821084, 0.813122, 0.804989, 0.796687, 0.788216, 0.779578,
0.770772, 0.761802, 0.752667, 0.74337, 0.733911, 0.724292,
0.714515, 0.704582, 0.694493, 0.68425, 0.673856, 0.663312,
0.65262, 0.641782, 0.6308, 0.619676, 0.608412, 0.59701,
0.585473, 0.573803, 0.562001, 0.550071, 0.538015, 0.525836,
0.513535, 0.501115, 0.48858, 0.475932, 0.463172, 0.450306,
0.437334, 0.424259, 0.411086, 0.397816, 0.384453, 0.371,
0.357459, 0.343833, 0.330127, 0.316342, 0.302483, 0.288552,
0.274552, 0.260487, 0.24636, 0.232175, 0.217934, 0.203641,
0.1893, 0.174913, 0.160484, 0.146017, 0.131516, 0.116982,
0.102421, 0.0878351, 0.0732281, 0.0586036, 0.043965, 0.0293159,
0.0146597, 2.22045e-16
};
static const float WAVE_SAW_114[DEFAULT_WAVELEN] = {
-0.00803502, -0.0160695, -0.0241028, -0.0321344, -0.0401638, -0.0481903,
-0.0562134, -0.0642325, -0.0722471, -0.0802567, -0.0882605, -0.0962581,
-0.104249, -0.112232, -0.120208, -0.128175, -0.136133, -0.144082,
-0.15202, -0.159948, -0.167864, -0.175769, -0.183661, -0.19154,
-0.199406, -0.207258, -0.215095, -0.222917, -0.230723, -0.238514,
-0.246287, -0.254043, -0.261782, -0.269502, -0.277203, -0.284885,
-0.292547, -0.300188, -0.307809, -0.315408, -0.322985, -0.330539,
-0.33807, -0.345578, -0.353062, -0.360521, -0.367955, -0.375363,
-0.382746, -0.390101, -0.39743, -0.404731, -0.412004, -0.419249,
-0.426464, -0.433651, -0.440807, -0.447932, -0.455027, -0.462091,
-0.469122, -0.476122, -0.483088, -0.490022, -0.496921, -0.503787,
-0.510618, -0.517415, -0.524176, -0.530901, -0.53759, -0.544242,
-0.550857, -0.557435, -0.563975, -0.570477, -0.57694, -0.583364,
-0.589748, -0.596093, -0.602397, -0.608661, -0.614884, -0.621065,
-0.627205, -0.633303, -0.639358, -0.645371, -0.65134, -0.657266,
-0.663148, -0.668987, -0.67478, -0.680529, -0.686233, -0.691891,
-0.697504, -0.703071, -0.708591, -0.714065, -0.719492, -0.724872,
-0.730204, -0.735488, -0.740725, -0.745913, -0.751053, -0.756144,
-0.761187, -0.766179, -0.771123, -0.776017, -0.78086, -0.785654,
-0.790397, -0.79509, -0.799732, -0.804323, -0.808862, -0.813351,
-0.817788, -0.822173, -0.826506, -0.830787, -0.835016, -0.839193,
-0.843317, -0.847388, -0.851407, -0.855372, -0.859285, -0.863144,
-0.86695, -0.870703, -0.874402, -0.878048, -0.88164, -0.885178,
-0.888662, -0.892092, -0.895468, -0.89879, -0.902058, -0.905271,
-0.908431, -0.911536, -0.914586, -0.917583, -0.920524, -0.923412,
-0.926245, -0.929023, -0.931747, -0.934417, -0.937032, -0.939592,
-0.942098, -0.94455, -0.946948, -0.94929, -0.951579, -0.953813,
-0.955993, -0.958119, -0.960191, -0.962209, -0.964173, -0.966082,
-0.967938, -0.969741, -0.971489, -0.973184, -0.974826, -0.976414,
-0.977949, -0.979431, -0.98086, -0.982236, -0.983559, -0.98483,
-0.986048, -0.987214, -0.988327, -0.989389, -0.990399, -0.991357,
-0.992264, -0.993119, -0.993923, -0.994676, -0.995379, -0.996031,
-0.996632, -0.997184, -0.997685, -0.998137, -0.998539, -0.998891,
-0.999195, -0.99945, -0.999656, -0.999814, -0.999924, -0.999986,
-1, -0.999967, -0.999887, -0.99976, -0.999586, -0.999366,
-0.9991, -0.998788, -0.998431, -0.998029, -0.997582, -0.99709,
-0.996554, -0.995974, -0.99535, -0.994684, -0.993974, -0.993221,
-0.992426, -0.991589, -0.99071, -0.989789, -0.988828, -0.987826,
-0.986783, -0.985701, -0.984578, -0.983417, -0.982216, -0.980977,
-0.979699, -0.978384, -0.977031, -0.975641, -0.974214, -0.972751,
-0.971251, -0.969716, -0.968145, -0.96654, -0.9649, -0.963226,
-0.961518, -0.959777, -0.958003, -0.956196, -0.954357, -0.952486,
-0.950584, -0.948651, -0.946687, -0.944694, -0.94267, -0.940617,
-0.938535, -0.936425, -0.934286, -0.93212, -0.929927, -0.927706,
-0.92546, -0.923187, -0.920889, -0.918565, -0.916217, -0.913844,
-0.911448, -0.909028, -0.906585, -0.904119, -0.901631, -0.899122,
-0.896591, -0.894039, -0.891467, -0.888875, -0.886263, -0.883632,
-0.880983, -0.878315, -0.875629, -0.872925, -0.870205, -0.867468,
-0.864715, -0.861947, -0.859163, -0.856364, -0.853551, -0.850723,
-0.847883, -0.845029, -0.842162, -0.839284, -0.836393, -0.833491,
-0.830578, -0.827654, -0.824721, -0.821777, -0.818825, -0.815863,
-0.812893, -0.809915, -0.80693, -0.803937, -0.800937, -0.797932,
-0.79492, -0.791903, -0.78888, -0.785853, -0.782822, -0.779786,
-0.776747, -0.773706, -0.770661, -0.767614, -0.764565, -0.761515,
-0.758464, -0.755412, -0.752359, -0.749307, -0.746255, -0.743204,
-0.740154, -0.737106, -0.734059, -0.731015, -0.727974, -0.724936,
-0.721901, -0.71887, -0.715843, -0.712821, -0.709803, -0.706791,
-0.703784, -0.700783, -0.697789, -0.694801, -0.69182, -0.688846,
-0.68588, -0.682922, -0.679972, -0.677031, -0.674098, -0.671175,
-0.668262, -0.665358, -0.662464, -0.659581, -0.656708, -0.653847,
-0.650997, -0.648159, -0.645332, -0.642518, -0.639716, -0.636927,
-0.634151, -0.631388, -0.628639, -0.625904, -0.623183, -0.620476,
-0.617783, -0.615106, -0.612444, -0.609797, -0.607165, -0.60455,
-0.60195, -0.599367, -0.5968, -0.59425, -0.591716, -0.5892,
-0.586701, -0.58422, -0.581756, -0.57931, -0.576883, -0.574473,
-0.572083, -0.56971, -0.567357, -0.565023, -0.562707, -0.560411,
-0.558135, -0.555878, -0.553641, -0.551424, -0.549227, -0.54705,
-0.544893, -0.542757, -0.540641, -0.538547, -0.536473, -0.534419,
-0.532387, -0.530377, -0.528387, -0.526419, -0.524472, -0.522546,
-0.520643, -0.518761, -0.5169, -0.515062, -0.513245, -0.511451,
-0.509678, -0.507927, -0.506199, -0.504493, -0.502809, -0.501147,
-0.499507, -0.49789, -0.496295, -0.494723, -0.493173, -0.491645,
-0.49014, -0.488657, -0.487197, -0.485759, -0.484343, -0.48295,
-0.481579, -0.48023, -0.478904, -0.4776, -0.476319, -0.47506,
-0.473823, -0.472608, -0.471415, -0.470245, -0.469096, -0.467969,
-0.466865, -0.465782, -0.464721, -0.463682, -0.462664, -0.461668,
-0.460694, -0.459741, -0.458809, -0.457898, -0.457009, -0.456141,
-0.455293, -0.454467, -0.453661, -0.452876, -0.452111, -0.451367,
-0.450643, -0.449939, -0.449255, -0.448591, -0.447947, -0.447322,
-0.446717, -0.446131, -0.445565, -0.445017, -0.444489, -0.443979,
-0.443488, -0.443015, -0.44256, -0.442124, -0.441705, -0.441304,
-0.440921, -0.440556, -0.440207, -0.439876, -0.439561, -0.439263,
-0.438982, -0.438717, -0.438468, -0.438235, -0.438017, -0.437816,
-0.437629, -0.437458, -0.437302, -0.43716, -0.437033, -0.43692,
-0.436821, -0.436737, -0.436665, -0.436608, -0.436563, -0.436532,
-0.436513, -0.436507, -0.436513, -0.436531, -0.436561, -0.436603,
-0.436656, -0.43672, -0.436796, -0.436881, -0.436978, -0.437085,
-0.437201, -0.437328, -0.437463, -0.437609, -0.437763, -0.437926,
-0.438097, -0.438277, -0.438465, -0.43866, -0.438864, -0.439074,
-0.439291, -0.439516, -0.439747, -0.439984, -0.440227, -0.440476,
-0.44073, -0.44099, -0.441255, -0.441525, -0.441799, -0.442077,
-0.442359, -0.442646, -0.442935, -0.443228, -0.443524, -0.443823,
-0.444124, -0.444428, -0.444734, -0.445041, -0.44535, -0.44566,
-0.445971, -0.446282, -0.446595, -0.446907, -0.44722, -0.447532,
-0.447844, -0.448155, -0.448465, -0.448774, -0.449081, -0.449387,
-0.449691, -0.449992, -0.450291, -0.450588, -0.450881, -0.451171,
-0.451458, -0.451742, -0.452021, -0.452296, -0.452568, -0.452834,
-0.453096, -0.453353, -0.453604, -0.45385, -0.454091, -0.454325,
-0.454554, -0.454776, -0.454991, -0.4552, -0.455402, -0.455596,
-0.455784, -0.455963, -0.456135, -0.456299, -0.456455, -0.456602,
-0.456741, -0.456871, -0.456992, -0.457104, -0.457206, -0.457299,
-0.457382, -0.457455, -0.457518, -0.457571, -0.457613, -0.457645,
-0.457666, -0.457676, -0.457675, -0.457663, -0.457639, -0.457603,
-0.457556, -0.457497, -0.457425, -0.457342, -0.457246, -0.457138,
-0.457017, -0.456883, -0.456736, -0.456576, -0.456403, -0.456217,
-0.456017, -0.455804, -0.455577, -0.455336, -0.455081, -0.454813,
-0.45453, -0.454232, -0.453921, -0.453595, -0.453254, -0.452899,
-0.452529, -0.452144, -0.451745, -0.45133, -0.4509, -0.450455,
-0.449995, -0.449519, -0.449029, -0.448522, -0.448, -0.447463,
-0.44691, -0.446341, -0.445757, -0.445157, -0.444541, -0.443909,
-0.443261, -0.442597, -0.441918, -0.441222, -0.44051, -0.439782,
-0.439039, -0.438279, -0.437503, -0.43671, -0.435902, -0.435078,
-0.434237, -0.43338, -0.432507, -0.431618, -0.430713, -0.429791,
-0.428854, -0.4279, -0.426931, -0.425945, -0.424943, -0.423926,
-0.422892, -0.421842, -0.420777, -0.419695, -0.418598, -0.417485,
-0.416357, -0.415212, -0.414052, -0.412877, -0.411685, -0.410479,
-0.409257, -0.40802, -0.406767, -0.4055, -0.404217, -0.402919,
-0.401606, -0.400279, -0.398936, -0.397579, -0.396208, -0.394822,
-0.393421, -0.392006, -0.390577, -0.389134, -0.387677, -0.386206,
-0.384721, -0.383222, -0.38171, -0.380185, -0.378646, -0.377094,
-0.375529, -0.37395, -0.372359, -0.370756, -0.36914, -0.367511,
-0.36587, -0.364217, -0.362552, -0.360875, -0.359186, -0.357486,
-0.355774, -0.354051, -0.352317, -0.350572, -0.348816, -0.34705,
-0.345273, -0.343485, -0.341688, -0.33988, -0.338062, -0.336235,
-0.334398, -0.332552, -0.330697, -0.328833, -0.32696, -0.325078,
-0.323188, -0.321289, -0.319383, -0.317468, -0.315546, -0.313616,
-0.311678, -0.309734, -0.307782, -0.305824, -0.303859, -0.301887,
-0.29991, -0.297926, -0.295936, -0.293941, -0.29194, -0.289934,
-0.287922, -0.285906, -0.283885, -0.28186, -0.27983, -0.277796,
-0.275758, -0.273717, -0.271672, -0.269623, -0.267572, -0.265518,
-0.26346, -0.261401, -0.259339, -0.257275, -0.255209, -0.253141,
-0.251072, -0.249001, -0.24693, -0.244857, -0.242784, -0.24071,
-0.238636, -0.236562, -0.234488, -0.232414, -0.230341, -0.228269,
-0.226197, -0.224127, -0.222057, -0.21999, -0.217924, -0.21586,
-0.213798, -0.211738, -0.209681, -0.207627, -0.205575, -0.203526,
-0.201481, -0.199439, -0.197401, -0.195367, -0.193337, -0.191311,
-0.189289, -0.187272, -0.18526, -0.183253, -0.181251, -0.179254,
-0.177263, -0.175277, -0.173297, -0.171324, -0.169356, -0.167395,
-0.165441, -0.163493, -0.161552, -0.159619, -0.157692, -0.155773,
-0.153862, -0.151959, -0.150063, -0.148175, -0.146296, -0.144425,
-0.142562, -0.140709, -0.138864, -0.137028, -0.135201, -0.133384,
-0.131576, -0.129778, -0.127989, -0.12621, -0.124442, -0.122683,
-0.120935, -0.119197, -0.117469, -0.115753, -0.114047, -0.112352,
-0.110668, -0.108995, -0.107334, -0.105683, -0.104045, -0.102418,
-0.100802, -0.0991989, -0.0976074, -0.0960279, -0.0944605, -0.0929053,
-0.0913624, -0.089832, -0.0883141, -0.0868087, -0.085316, -0.0838361,
-0.082369, -0.0809149, -0.0794737, -0.0780456, -0.0766307, -0.0752289,
-0.0738404, -0.0724652, -0.0711035, -0.0697552, -0.0684204, -0.0670991,
-0.0657915, -0.0644975, -0.0632173, -0.0619508, -0.060698, -0.0594591,
-0.0582341, -0.057023, -0.0558258, -0.0546425, -0.0534732, -0.052318,
-0.0511767, -0.0500495, -0.0489364, -0.0478373, -0.0467523, -0.0456814,
-0.0446245, -0.0435818, -0.0425532, -0.0415386, -0.0405381, -0.0395517,
-0.0385794, -0.0376211, -0.0366768, -0.0357466, -0.0348303, -0.033928,
-0.0330397, -0.0321653, -0.0313047, -0.030458, -0.0296251, -0.028806,
-0.0280007, -0.027209, -0.0264309, -0.0256665, -0.0249156, -0.0241781,
-0.0234542, -0.0227435, -0.0220462, -0.0213622, -0.0206913, -0.0200335,
-0.0193888, -0.0187571, -0.0181382, -0.0175322, -0.0169389, -0.0163582,
-0.0157902, -0.0152346, -0.0146914, -0.0141605, -0.0136418, -0.0131352,
-0.0126406, -0.012158, -0.0116871, -0.011228, -0.0107805, -0.0103444,
-0.00991978, -0.00950639, -0.00910415, -0.00871295, -0.00833267, -0.00796318,
-0.00760437, -0.00725611, -0.00691827, -0.00659072, -0.00627334, -0.00596599,
-0.00566853, -0.00538084, -0.00510278, -0.00483419, -0.00457496, -0.00432492,
-0.00408394, -0.00385187, -0.00362857, -0.00341388, -0.00320766, -0.00300974,
-0.00281999, -0.00263824, -0.00246434, -0.00229812, -0.00213944, -0.00198812,
-0.00184401, -0.00170695, -0.00157676, -0.00145329, -0.00133637, -0.00122582,
-0.00112148, -0.00102318, -0.000930748, -0.000844011, -0.000762794, -0.000686925,
-0.000616226, -0.000550522, -0.000489636, -0.000433388, -0.000381601, -0.000334094,
-0.000290687, -0.000251198, -0.000215446, -0.000183248, -0.000154421, -0.000128779,
-0.00010614, -8.63184e-5, -6.91281e-5, -5.43832e-5, -4.18976e-5, -3.14842e-5,
-2.29559e-5, -1.61251e-5, -1.0804e-5, -6.80447e-6, -3.93816e-6, -2.0165e-6,
-8.50765e-7, -2.5209e-7, -3.15121e-8, 0, 3.15121e-8, 2.5209e-7,
8.50765e-7, 2.0165e-6, 3.93816e-6, 6.80447e-6, 1.0804e-5, 1.61251e-5,
2.29559e-5, 3.14842e-5, 4.18976e-5, 5.43832e-5, 6.91281e-5, 8.63184e-5,
0.00010614, 0.000128779, 0.000154421, 0.000183248, 0.000215446, 0.000251198,
0.000290687, 0.000334094, 0.000381601, 0.000433388, 0.000489636, 0.000550522,
0.000616226, 0.000686925, 0.000762794, 0.000844011, 0.000930748, 0.00102318,
0.00112148, 0.00122582, 0.00133637, 0.00145329, 0.00157676, 0.00170695,
0.00184401, 0.00198812, 0.00213944, 0.00229812, 0.00246434, 0.00263824,
0.00281999, 0.00300974, 0.00320766, 0.00341388, 0.00362857, 0.00385187,
0.00408394, 0.00432492, 0.00457496, 0.00483419, 0.00510278, 0.00538084,
0.00566853, 0.00596599, 0.00627334, 0.00659072, 0.00691827, 0.00725611,
0.00760437, 0.00796318, 0.00833267, 0.00871295, 0.00910415, 0.00950639,
0.00991978, 0.0103444, 0.0107805, 0.011228, 0.0116871, 0.012158,
0.0126406, 0.0131352, 0.0136418, 0.0141605, 0.0146914, 0.0152346,
0.0157902, 0.0163582, 0.0169389, 0.0175322, 0.0181382, 0.0187571,
0.0193888, 0.0200335, 0.0206913, 0.0213622, 0.0220462, 0.0227435,
0.0234542, 0.0241781, 0.0249156, 0.0256665, 0.0264309, 0.027209,
0.0280007, 0.028806, 0.0296251, 0.030458, 0.0313047, 0.0321653,
0.0330397, 0.033928, 0.0348303, 0.0357466, 0.0366768, 0.0376211,
0.0385794, 0.0395517, 0.0405381, 0.0415386, 0.0425532, 0.0435818,
0.0446245, 0.0456814, 0.0467523, 0.0478373, 0.0489364, 0.0500495,
0.0511767, 0.052318, 0.0534732, 0.0546425, 0.0558258, 0.057023,
0.0582341, 0.0594591, 0.060698, 0.0619508, 0.0632173, 0.0644975,
0.0657915, 0.0670991, 0.0684204, 0.0697552, 0.0711035, 0.0724652,
0.0738404, 0.0752289, 0.0766307, 0.0780456, 0.0794737, 0.0809149,
0.082369, 0.0838361, 0.085316, 0.0868087, 0.0883141, 0.089832,
0.0913624, 0.0929053, 0.0944605, 0.0960279, 0.0976074, 0.0991989,
0.100802, 0.102418, 0.104045, 0.105683, 0.107334, 0.108995,
0.110668, 0.112352, 0.114047, 0.115753, 0.117469, 0.119197,
0.120935, 0.122683, 0.124442, 0.12621, 0.127989, 0.129778,
0.131576, 0.133384, 0.135201, 0.137028, 0.138864, 0.140709,
0.142562, 0.144425, 0.146296, 0.148175, 0.150063, 0.151959,
0.153862, 0.155773, 0.157692, 0.159619, 0.161552, 0.163493,
0.165441, 0.167395, 0.169356, 0.171324, 0.173297, 0.175277,
0.177263, 0.179254, 0.181251, 0.183253, 0.18526, 0.187272,
0.189289, 0.191311, 0.193337, 0.195367, 0.197401, 0.199439,
0.201481, 0.203526, 0.205575, 0.207627, 0.209681, 0.211738,
0.213798, 0.21586, 0.217924, 0.21999, 0.222057, 0.224127,
0.226197, 0.228269, 0.230341, 0.232414, 0.234488, 0.236562,
0.238636, 0.24071, 0.242784, 0.244857, 0.24693, 0.249001,
0.251072, 0.253141, 0.255209, 0.257275, 0.259339, 0.261401,
0.26346, 0.265518, 0.267572, 0.269623, 0.271672, 0.273717,
0.275758, 0.277796, 0.27983, 0.28186, 0.283885, 0.285906,
0.287922, 0.289934, 0.29194, 0.293941, 0.295936, 0.297926,
0.29991, 0.301887, 0.303859, 0.305824, 0.307782, 0.309734,
0.311678, 0.313616, 0.315546, 0.317468, 0.319383, 0.321289,
0.323188, 0.325078, 0.32696, 0.328833, 0.330697, 0.332552,
0.334398, 0.336235, 0.338062, 0.33988, 0.341688, 0.343485,
0.345273, 0.34705, 0.348816, 0.350572, 0.352317, 0.354051,
0.355774, 0.357486, 0.359186, 0.360875, 0.362552, 0.364217,
0.36587, 0.367511, 0.36914, 0.370756, 0.372359, 0.37395,
0.375529, 0.377094, 0.378646, 0.380185, 0.38171, 0.383222,
0.384721, 0.386206, 0.387677, 0.389134, 0.390577, 0.392006,
0.393421, 0.394822, 0.396208, 0.397579, 0.398936, 0.400279,
0.401606, 0.402919, 0.404217, 0.4055, 0.406767, 0.40802,
0.409257, 0.410479, 0.411685, 0.412877, 0.414052, 0.415212,
0.416357, 0.417485, 0.418598, 0.419695, 0.420777, 0.421842,
0.422892, 0.423926, 0.424943, 0.425945, 0.426931, 0.4279,
0.428854, 0.429791, 0.430713, 0.431618, 0.432507, 0.43338,
0.434237, 0.435078, 0.435902, 0.43671, 0.437503, 0.438279,
0.439039, 0.439782, 0.44051, 0.441222, 0.441918, 0.442597,
0.443261, 0.443909, 0.444541, 0.445157, 0.445757, 0.446341,
0.44691, 0.447463, 0.448, 0.448522, 0.449029, 0.449519,
0.449995, 0.450455, 0.4509, 0.45133, 0.451745, 0.452144,
0.452529, 0.452899, 0.453254, 0.453595, 0.453921, 0.454232,
0.45453, 0.454813, 0.455081, 0.455336, 0.455577, 0.455804,
0.456017, 0.456217, 0.456403, 0.456576, 0.456736, 0.456883,
0.457017, 0.457138, 0.457246, 0.457342, 0.457425, 0.457497,
0.457556, 0.457603, 0.457639, 0.457663, 0.457675, 0.457676,
0.457666, 0.457645, 0.457613, 0.457571, 0.457518, 0.457455,
0.457382, 0.457299, 0.457206, 0.457104, 0.456992, 0.456871,
0.456741, 0.456602, 0.456455, 0.456299, 0.456135, 0.455963,
0.455784, 0.455596, 0.455402, 0.4552, 0.454991, 0.454776,
0.454554, 0.454325, 0.454091, 0.45385, 0.453604, 0.453353,
0.453096, 0.452834, 0.452568, 0.452296, 0.452021, 0.451742,
0.451458, 0.451171, 0.450881, 0.450588, 0.450291, 0.449992,
0.449691, 0.449387, 0.449081, 0.448774, 0.448465, 0.448155,
0.447844, 0.447532, 0.44722, 0.446907, 0.446595, 0.446282,
0.445971, 0.44566, 0.44535, 0.445041, 0.444734, 0.444428,
0.444124, 0.443823, 0.443524, 0.443228, 0.442935, 0.442646,
0.442359, 0.442077, 0.441799, 0.441525, 0.441255, 0.44099,
0.44073, 0.440476, 0.440227, 0.439984, 0.439747, 0.439516,
0.439291, 0.439074, 0.438864, 0.43866, 0.438465, 0.438277,
0.438097, 0.437926, 0.437763, 0.437609, 0.437463, 0.437328,
0.437201, 0.437085, 0.436978, 0.436881, 0.436796, 0.43672,
0.436656, 0.436603, 0.436561, 0.436531, 0.436513, 0.436507,
0.436513, 0.436532, 0.436563, 0.436608, 0.436665, 0.436737,
0.436821, 0.43692, 0.437033, 0.43716, 0.437302, 0.437458,
0.437629, 0.437816, 0.438017, 0.438235, 0.438468, 0.438717,
0.438982, 0.439263, 0.439561, 0.439876, 0.440207, 0.440556,
0.440921, 0.441304, 0.441705, 0.442124, 0.44256, 0.443015,
0.443488, 0.443979, 0.444489, 0.445017, 0.445565, 0.446131,
0.446717, 0.447322, 0.447947, 0.448591, 0.449255, 0.449939,
0.450643, 0.451367, 0.452111, 0.452876, 0.453661, 0.454467,
0.455293, 0.456141, 0.457009, 0.457898, 0.458809, 0.459741,
0.460694, 0.461668, 0.462664, 0.463682, 0.464721, 0.465782,
0.466865, 0.467969, 0.469096, 0.470245, 0.471415, 0.472608,
0.473823, 0.47506, 0.476319, 0.4776, 0.478904, 0.48023,
0.481579, 0.48295, 0.484343, 0.485759, 0.487197, 0.488657,
0.49014, 0.491645, 0.493173, 0.494723, 0.496295, 0.49789,
0.499507, 0.501147, 0.502809, 0.504493, 0.506199, 0.507927,
0.509678, 0.511451, 0.513245, 0.515062, 0.5169, 0.518761,
0.520643, 0.522546, 0.524472, 0.526419, 0.528387, 0.530377,
0.532387, 0.534419, 0.536473, 0.538547, 0.540641, 0.542757,
0.544893, 0.54705, 0.549227, 0.551424, 0.553641, 0.555878,
0.558135, 0.560411, 0.562707, 0.565023, 0.567357, 0.56971,
0.572083, 0.574473, 0.576883, 0.57931, 0.581756, 0.58422,
0.586701, 0.5892, 0.591716, 0.59425, 0.5968, 0.599367,
0.60195, 0.60455, 0.607165, 0.609797, 0.612444, 0.615106,
0.617783, 0.620476, 0.623183, 0.625904, 0.628639, 0.631388,
0.634151, 0.636927, 0.639716, 0.642518, 0.645332, 0.648159,
0.650997, 0.653847, 0.656708, 0.659581, 0.662464, 0.665358,
0.668262, 0.671175, 0.674098, 0.677031, 0.679972, 0.682922,
0.68588, 0.688846, 0.69182, 0.694801, 0.697789, 0.700783,
0.703784, 0.706791, 0.709803, 0.712821, 0.715843, 0.71887,
0.721901, 0.724936, 0.727974, 0.731015, 0.734059, 0.737106,
0.740154, 0.743204, 0.746255, 0.749307, 0.752359, 0.755412,
0.758464, 0.761515, 0.764565, 0.767614, 0.770661, 0.773706,
0.776747, 0.779786, 0.782822, 0.785853, 0.78888, 0.791903,
0.79492, 0.797932, 0.800937, 0.803937, 0.80693, 0.809915,
0.812893, 0.815863, 0.818825, 0.821777, 0.824721, 0.827654,
0.830578, 0.833491, 0.836393, 0.839284, 0.842162, 0.845029,
0.847883, 0.850723, 0.853551, 0.856364, 0.859163, 0.861947,
0.864715, 0.867468, 0.870205, 0.872925, 0.875629, 0.878315,
0.880983, 0.883632, 0.886263, 0.888875, 0.891467, 0.894039,
0.896591, 0.899122, 0.901631, 0.904119, 0.906585, 0.909028,
0.911448, 0.913844, 0.916217, 0.918565, 0.920889, 0.923187,
0.92546, 0.927706, 0.929927, 0.93212, 0.934286, 0.936425,
0.938535, 0.940617, 0.94267, 0.944694, 0.946687, 0.948651,
0.950584, 0.952486, 0.954357, 0.956196, 0.958003, 0.959777,
0.961518, 0.963226, 0.9649, 0.96654, 0.968145, 0.969716,
0.971251, 0.972751, 0.974214, 0.975641, 0.977031, 0.978384,
0.979699, 0.980977, 0.982216, 0.983417, 0.984578, 0.985701,
0.986783, 0.987826, 0.988828, 0.989789, 0.99071, 0.991589,
0.992426, 0.993221, 0.993974, 0.994684, 0.99535, 0.995974,
0.996554, 0.99709, 0.997582, 0.998029, 0.998431, 0.998788,
0.9991, 0.999366, 0.999586, 0.99976, 0.999887, 0.999967,
1, 0.999986, 0.999924, 0.999814, 0.999656, 0.99945,
0.999195, 0.998891, 0.998539, 0.998137, 0.997685, 0.997184,
0.996632, 0.996031, 0.995379, 0.994676, 0.993923, 0.993119,
0.992264, 0.991357, 0.990399, 0.989389, 0.988327, 0.987214,
0.986048, 0.98483, 0.983559, 0.982236, 0.98086, 0.979431,
0.977949, 0.976414, 0.974826, 0.973184, 0.971489, 0.969741,
0.967938, 0.966082, 0.964173, 0.962209, 0.960191, 0.958119,
0.955993, 0.953813, 0.951579, 0.94929, 0.946948, 0.94455,
0.942098, 0.939592, 0.937032, 0.934417, 0.931747, 0.929023,
0.926245, 0.923412, 0.920524, 0.917583, 0.914586, 0.911536,
0.908431, 0.905271, 0.902058, 0.89879, 0.895468, 0.892092,
0.888662, 0.885178, 0.88164, 0.878048, 0.874402, 0.870703,
0.86695, 0.863144, 0.859285, 0.855372, 0.851407, 0.847388,
0.843317, 0.839193, 0.835016, 0.830787, 0.826506, 0.822173,
0.817788, 0.813351, 0.808862, 0.804323, 0.799732, 0.79509,
0.790397, 0.785654, 0.78086, 0.776017, 0.771123, 0.766179,
0.761187, 0.756144, 0.751053, 0.745913, 0.740725, 0.735488,
0.730204, 0.724872, 0.719492, 0.714065, 0.708591, 0.703071,
0.697504, 0.691891, 0.686233, 0.680529, 0.67478, 0.668987,
0.663148, 0.657266, 0.65134, 0.645371, 0.639358, 0.633303,
0.627205, 0.621065, 0.614884, 0.608661, 0.602397, 0.596093,
0.589748, 0.583364, 0.57694, 0.570477, 0.563975, 0.557435,
0.550857, 0.544242, 0.53759, 0.530901, 0.524176, 0.517415,
0.510618, 0.503787, 0.496921, 0.490022, 0.483088, 0.476122,
0.469122, 0.462091, 0.455027, 0.447932, 0.440807, 0.433651,
0.426464, 0.419249, 0.412004, 0.404731, 0.39743, 0.390101,
0.382746, 0.375363, 0.367955, 0.360521, 0.353062, 0.345578,
0.33807, 0.330539, 0.322985, 0.315408, 0.307809, 0.300188,
0.292547, 0.284885, 0.277203, 0.269502, 0.261782, 0.254043,
0.246287, 0.238514, 0.230723, 0.222917, 0.215095, 0.207258,
0.199406, 0.19154, 0.183661, 0.175769, 0.167864, 0.159948,
0.15202, 0.144082, 0.136133, 0.128175, 0.120208, 0.112232,
0.104249, 0.0962581, 0.0882605, 0.0802567, 0.0722471, 0.0642325,
0.0562134, 0.0481903, 0.0401638, 0.0321344, 0.0241028, 0.0160695,
0.00803502, 0
};
static const float WAVE_SAW_126[DEFAULT_WAVELEN] = {
-0.00472342, -0.00944673, -0.0141698, -0.0188926, -0.0236149, -0.0283366,
-0.0330577, -0.037778, -0.0424975, -0.0472159, -0.0519332, -0.0566493,
-0.061364, -0.0660774, -0.0707891, -0.0754992, -0.0802075, -0.084914,
-0.0896184, -0.0943207, -0.0990208, -0.103719, -0.108414, -0.113107,
-0.117797, -0.122484, -0.127169, -0.13185, -0.136529, -0.141204,
-0.145876, -0.150544, -0.155209, -0.15987, -0.164528, -0.169181,
-0.173831, -0.178477, -0.183118, -0.187755, -0.192388, -0.197016,
-0.201639, -0.206258, -0.210872, -0.215481, -0.220085, -0.224684,
-0.229278, -0.233866, -0.238448, -0.243025, -0.247597, -0.252162,
-0.256722, -0.261276, -0.265823, -0.270365, -0.2749, -0.279428,
-0.28395, -0.288465, -0.292974, -0.297476, -0.301971, -0.306458,
-0.310939, -0.315412, -0.319878, -0.324337, -0.328787, -0.333231,
-0.337666, -0.342094, -0.346513, -0.350924, -0.355328, -0.359723,
-0.364109, -0.368487, -0.372857, -0.377218, -0.38157, -0.385913,
-0.390247, -0.394572, -0.398888, -0.403194, -0.407491, -0.411779,
-0.416057, -0.420326, -0.424584, -0.428833, -0.433072, -0.437301,
-0.441519, -0.445728, -0.449926, -0.454113, -0.458291, -0.462457,
-0.466613, -0.470758, -0.474892, -0.479015, -0.483127, -0.487227,
-0.491317, -0.495395, -0.499461, -0.503517, -0.50756, -0.511592,
-0.515612, -0.51962, -0.523616, -0.5276, -0.531572, -0.535531,
-0.539478, -0.543413, -0.547335, -0.551245, -0.555142, -0.559026,
-0.562898, -0.566756, -0.570601, -0.574434, -0.578253, -0.582059,
-0.585851, -0.58963, -0.593396, -0.597148, -0.600886, -0.604611,
-0.608321, -0.612018, -0.615701, -0.61937, -0.623024, -0.626665,
-0.630291, -0.633902, -0.6375, -0.641082, -0.64465, -0.648204,
-0.651743, -0.655266, -0.658775, -0.662269, -0.665748, -0.669212,
-0.672661, -0.676094, -0.679512, -0.682915, -0.686302, -0.689674,
-0.69303, -0.69637, -0.699695, -0.703004, -0.706297, -0.709574,
-0.712835, -0.71608, -0.719309, -0.722521, -0.725718, -0.728898,
-0.732062, -0.735209, -0.73834, -0.741454, -0.744551, -0.747632,
-0.750696, -0.753744, -0.756774, -0.759788, -0.762784, -0.765764,
-0.768726, -0.771672, -0.7746, -0.777511, -0.780404, -0.78328,
-0.786139, -0.78898, -0.791804, -0.79461, -0.797399, -0.80017,
-0.802923, -0.805659, -0.808376, -0.811076, -0.813758, -0.816422,
-0.819068, -0.821696, -0.824305, -0.826897, -0.82947, -0.832026,
-0.834562, -0.837081, -0.839581, -0.842063, -0.844527, -0.846972,
-0.849398, -0.851806, -0.854195, -0.856566, -0.858918, -0.861251,
-0.863566, -0.865862, -0.868138, -0.870397, -0.872636, -0.874856,
-0.877058, -0.87924, -0.881403, -0.883548, -0.885673, -0.887779,
-0.889866, -0.891934, -0.893983, -0.896013, -0.898023, -0.900014,
-0.901986, -0.903938, -0.905871, -0.907785, -0.909679, -0.911554,
-0.91341, -0.915246, -0.917063, -0.91886, -0.920637, -0.922396,
-0.924134, -0.925853, -0.927552, -0.929232, -0.930892, -0.932533,
-0.934154, -0.935755, -0.937337, -0.938899, -0.940441, -0.941963,
-0.943466, -0.944949, -0.946412, -0.947856, -0.94928, -0.950684,
-0.952068, -0.953432, -0.954777, -0.956102, -0.957407, -0.958692,
-0.959957, -0.961203, -0.962429, -0.963635, -0.964821, -0.965987,
-0.967134, -0.968261, -0.969367, -0.970455, -0.971522, -0.972569,
-0.973597, -0.974605, -0.975593, -0.976561, -0.977509, -0.978438,
-0.979347, -0.980236, -0.981105, -0.981954, -0.982784, -0.983594,
-0.984384, -0.985155, -0.985906, -0.986637, -0.987348, -0.98804,
-0.988712, -0.989365, -0.989998, -0.990611, -0.991205, -0.991779,
-0.992333, -0.992868, -0.993383, -0.993879, -0.994356, -0.994813,
-0.99525, -0.995668, -0.996067, -0.996446, -0.996806, -0.997146,
-0.997467, -0.997769, -0.998052, -0.998315, -0.998559, -0.998784,
-0.99899, -0.999177, -0.999344, -0.999493, -0.999622, -0.999732,
-0.999824, -0.999896, -0.99995, -0.999984, -1, -0.999997,
-0.999975, -0.999934, -0.999875, -0.999797, -0.9997, -0.999584,
-0.99945, -0.999298, -0.999127, -0.998937, -0.998729, -0.998503,
-0.998258, -0.997995, -0.997714, -0.997414, -0.997096, -0.99676,
-0.996406, -0.996034, -0.995644, -0.995236, -0.99481, -0.994366,
-0.993904, -0.993424, -0.992927, -0.992412, -0.991879, -0.991329,
-0.990761, -0.990175, -0.989573, -0.988952, -0.988315, -0.98766,
-0.986987, -0.986298, -0.985591, -0.984868, -0.984127, -0.983369,
-0.982595, -0.981803, -0.980995, -0.98017, -0.979328, -0.978469,
-0.977594, -0.976702, -0.975794, -0.97487, -0.973929, -0.972971,
-0.971998, -0.971008, -0.970002, -0.96898, -0.967942, -0.966888,
-0.965818, -0.964733, -0.963631, -0.962514, -0.961381, -0.960233,
-0.959069, -0.95789, -0.956695, -0.955485, -0.95426, -0.953019,
-0.951764, -0.950493, -0.949207, -0.947907, -0.946592, -0.945261,
-0.943917, -0.942557, -0.941183, -0.939794, -0.938391, -0.936974,
-0.935542, -0.934096, -0.932636, -0.931162, -0.929674, -0.928172,
-0.926656, -0.925126, -0.923583, -0.922026, -0.920455, -0.918871,
-0.917274, -0.915663, -0.914039, -0.912401, -0.910751, -0.909087,
-0.907411, -0.905722, -0.90402, -0.902305, -0.900577, -0.898837,
-0.897085, -0.89532, -0.893542, -0.891753, -0.889951, -0.888137,
-0.886311, -0.884473, -0.882624, -0.880762, -0.878889, -0.877004,
-0.875108, -0.8732, -0.871281, -0.86935, -0.867409, -0.865456,
-0.863492, -0.861517, -0.859532, -0.857535, -0.855528, -0.85351,
-0.851482, -0.849443, -0.847394, -0.845334, -0.843265, -0.841185,
-0.839095, -0.836995, -0.834885, -0.832766, -0.830637, -0.828498,
-0.82635, -0.824192, -0.822025, -0.819849, -0.817663, -0.815468,
-0.813265, -0.811052, -0.808831, -0.806601, -0.804362, -0.802115,
-0.799859, -0.797595, -0.795322, -0.793041, -0.790752, -0.788455,
-0.786151, -0.783838, -0.781517, -0.779189, -0.776853, -0.77451,
-0.772159, -0.769801, -0.767436, -0.765063, -0.762684, -0.760297,
-0.757904, -0.755504, -0.753097, -0.750683, -0.748263, -0.745837,
-0.743404, -0.740964, -0.738519, -0.736068, -0.73361, -0.731147,
-0.728678, -0.726203, -0.723723, -0.721237, -0.718745, -0.716248,
-0.713746, -0.711239, -0.708726, -0.706209, -0.703686, -0.701159,
-0.698627, -0.696091, -0.69355, -0.691004, -0.688454, -0.6859,
-0.683341, -0.680779, -0.678212, -0.675641, -0.673067, -0.670489,
-0.667907, -0.665321, -0.662732, -0.66014, -0.657544, -0.654946,
-0.652344, -0.649738, -0.64713, -0.64452, -0.641906, -0.639289,
-0.636671, -0.634049, -0.631425, -0.628799, -0.62617, -0.62354,
-0.620907, -0.618272, -0.615635, -0.612997, -0.610356, -0.607715,
-0.605071, -0.602426, -0.59978, -0.597132, -0.594483, -0.591833,
-0.589182, -0.58653, -0.583878, -0.581224, -0.57857, -0.575915,
-0.573259, -0.570603, -0.567947, -0.56529, -0.562634, -0.559977,
-0.55732, -0.554663, -0.552006, -0.54935, -0.546693, -0.544037,
-0.541382, -0.538727, -0.536073, -0.53342, -0.530767, -0.528115,
-0.525464, -0.522814, -0.520166, -0.517518, -0.514872, -0.512227,
-0.509584, -0.506942, -0.504302, -0.501663, -0.499026, -0.496391,
-0.493758, -0.491127, -0.488498, -0.485871, -0.483246, -0.480623,
-0.478003, -0.475386, -0.472771, -0.470158, -0.467548, -0.464941,
-0.462337, -0.459736, -0.457137, -0.454542, -0.45195, -0.449361,
-0.446775, -0.444192, -0.441613, -0.439038, -0.436466, -0.433897,
-0.431333, -0.428772, -0.426215, -0.423662, -0.421112, -0.418567,
-0.416026, -0.413489, -0.410957, -0.408428, -0.405905, -0.403385,
-0.40087, -0.39836, -0.395854, -0.393353, -0.390857, -0.388366,
-0.385879, -0.383398, -0.380921, -0.37845, -0.375984, -0.373523,
-0.371067, -0.368617, -0.366172, -0.363733, -0.361299, -0.358871,
-0.356448, -0.354031, -0.35162, -0.349215, -0.346816, -0.344422,
-0.342035, -0.339654, -0.337279, -0.33491, -0.332547, -0.33019,
-0.32784, -0.325496, -0.323159, -0.320828, -0.318504, -0.316187,
-0.313876, -0.311572, -0.309274, -0.306984, -0.3047, -0.302423,
-0.300153, -0.297891, -0.295635, -0.293386, -0.291145, -0.288911,
-0.286684, -0.284465, -0.282252, -0.280048, -0.27785, -0.27566,
-0.273478, -0.271303, -0.269136, -0.266977, -0.264825, -0.262681,
-0.260545, -0.258417, -0.256297, -0.254184, -0.25208, -0.249983,
-0.247895, -0.245814, -0.243742, -0.241678, -0.239622, -0.237575,
-0.235535, -0.233504, -0.231482, -0.229467, -0.227462, -0.225464,
-0.223475, -0.221495, -0.219523, -0.21756, -0.215605, -0.213659,
-0.211721, -0.209793, -0.207873, -0.205962, -0.204059, -0.202166,
-0.200281, -0.198405, -0.196538, -0.19468, -0.192831, -0.190991,
-0.18916, -0.187338, -0.185525, -0.183721, -0.181926, -0.18014,
-0.178364, -0.176596, -0.174838, -0.173089, -0.17135, -0.169619,
-0.167898, -0.166186, -0.164483, -0.16279, -0.161106, -0.159431,
-0.157766, -0.15611, -0.154463, -0.152826, -0.151199, -0.14958,
-0.147971, -0.146372, -0.144782, -0.143202, -0.141631, -0.14007,
-0.138518, -0.136976, -0.135443, -0.13392, -0.132406, -0.130902,
-0.129407, -0.127922, -0.126447, -0.124981, -0.123525, -0.122079,
-0.120642, -0.119214, -0.117796, -0.116388, -0.11499, -0.113601,
-0.112222, -0.110852, -0.109492, -0.108141, -0.1068, -0.105469,
-0.104148, -0.102836, -0.101533, -0.10024, -0.0989572, -0.0976836,
-0.0964196, -0.0951651, -0.0939203, -0.092685, -0.0914593, -0.0902431,
-0.0890365, -0.0878395, -0.0866519, -0.0854739, -0.0843054, -0.0831465,
-0.081997, -0.080857, -0.0797264, -0.0786054, -0.0774937, -0.0763915,
-0.0752988, -0.0742154, -0.0731414, -0.0720768, -0.0710216, -0.0699757,
-0.0689392, -0.0679119, -0.066894, -0.0658853, -0.0648859, -0.0638958,
-0.0629149, -0.0619431, -0.0609806, -0.0600272, -0.059083, -0.0581478,
-0.0572218, -0.0563049, -0.055397, -0.0544981, -0.0536083, -0.0527274,
-0.0518555, -0.0509926, -0.0501385, -0.0492934, -0.0484571, -0.0476296,
-0.0468109, -0.046001, -0.0451999, -0.0444074, -0.0436237, -0.0428486,
-0.0420822, -0.0413243, -0.0405751, -0.0398344, -0.0391022, -0.0383784,
-0.0376631, -0.0369563, -0.0362578, -0.0355677, -0.0348858, -0.0342123,
-0.033547, -0.0328899, -0.032241, -0.0316002, -0.0309676, -0.030343,
-0.0297264, -0.0291178, -0.0285172, -0.0279245, -0.0273397, -0.0267627,
-0.0261935, -0.0256321, -0.0250784, -0.0245324, -0.023994, -0.0234633,
-0.02294, -0.0224243, -0.0219161, -0.0214153, -0.0209219, -0.0204359,
-0.0199571, -0.0194856, -0.0190213, -0.0185642, -0.0181142, -0.0176713,
-0.0172354, -0.0168065, -0.0163845, -0.0159695, -0.0155613, -0.0151599,
-0.0147652, -0.0143772, -0.0139959, -0.0136212, -0.0132531, -0.0128915,
-0.0125363, -0.0121876, -0.0118452, -0.0115091, -0.0111792, -0.0108556,
-0.0105382, -0.0102268, -0.00992149, -0.00962218, -0.00932881, -0.00904135,
-0.00875972, -0.00848389, -0.00821378, -0.00794936, -0.00769057, -0.00743735,
-0.00718964, -0.0069474, -0.00671056, -0.00647908, -0.00625289, -0.00603195,
-0.00581618, -0.00560555, -0.00539998, -0.00519943, -0.00500383, -0.00481314,
-0.00462728, -0.00444621, -0.00426987, -0.00409819, -0.00393111, -0.00376859,
-0.00361056, -0.00345696, -0.00330773, -0.00316282, -0.00302215, -0.00288568,
-0.00275334, -0.00262507, -0.00250082, -0.00238051, -0.00226409, -0.0021515,
-0.00204268, -0.00193756, -0.00183609, -0.00173819, -0.00164382, -0.0015529,
-0.00146538, -0.00138119, -0.00130026, -0.00122255, -0.00114798, -0.00107649,
-0.00100801, -0.00094249, -0.000879859, -0.000820055, -0.000763012, -0.000708668,
-0.000656957, -0.000607817, -0.000561182, -0.000516989, -0.000475171, -0.000435666,
-0.000398407, -0.00036333, -0.00033037, -0.000299462, -0.000270541, -0.00024354,
-0.000218396, -0.000195042, -0.000173412, -0.000153442, -0.000135064, -0.000118215,
-0.000102827, -8.88341e-5, -7.61711e-5, -6.47716e-5, -5.45695e-5, -4.54985e-5,
-3.74923e-5, -3.04847e-5, -2.44093e-5, -1.91997e-5, -1.47895e-5, -1.11121e-5,
-8.10108e-6, -5.68988e-6, -3.81191e-6, -2.40057e-6, -1.38926e-6, -7.11315e-7,
-3.00091e-7, -8.89169e-8, -1.11147e-8, 0, 1.11147e-8, 8.89169e-8,
3.00091e-7, 7.11315e-7, 1.38926e-6, 2.40057e-6, 3.81191e-6, 5.68988e-6,
8.10108e-6, 1.11121e-5, 1.47895e-5, 1.91997e-5, 2.44093e-5, 3.04847e-5,
3.74923e-5, 4.54985e-5, 5.45695e-5, 6.47716e-5, 7.61711e-5, 8.88341e-5,
0.000102827, 0.000118215, 0.000135064, 0.000153442, 0.000173412, 0.000195042,
0.000218396, 0.00024354, 0.000270541, 0.000299462, 0.00033037, 0.00036333,
0.000398407, 0.000435666, 0.000475171, 0.000516989, 0.000561182, 0.000607817,
0.000656957, 0.000708668, 0.000763012, 0.000820055, 0.000879859, 0.00094249,
0.00100801, 0.00107649, 0.00114798, 0.00122255, 0.00130026, 0.00138119,
0.00146538, 0.0015529, 0.00164382, 0.00173819, 0.00183609, 0.00193756,
0.00204268, 0.0021515, 0.00226409, 0.00238051, 0.00250082, 0.00262507,
0.00275334, 0.00288568, 0.00302215, 0.00316282, 0.00330773, 0.00345696,
0.00361056, 0.00376859, 0.00393111, 0.00409819, 0.00426987, 0.00444621,
0.00462728, 0.00481314, 0.00500383, 0.00519943, 0.00539998, 0.00560555,
0.00581618, 0.00603195, 0.00625289, 0.00647908, 0.00671056, 0.0069474,
0.00718964, 0.00743735, 0.00769057, 0.00794936, 0.00821378, 0.00848389,
0.00875972, 0.00904135, 0.00932881, 0.00962218, 0.00992149, 0.0102268,
0.0105382, 0.0108556, 0.0111792, 0.0115091, 0.0118452, 0.0121876,
0.0125363, 0.0128915, 0.0132531, 0.0136212, 0.0139959, 0.0143772,
0.0147652, 0.0151599, 0.0155613, 0.0159695, 0.0163845, 0.0168065,
0.0172354, 0.0176713, 0.0181142, 0.0185642, 0.0190213, 0.0194856,
0.0199571, 0.0204359, 0.0209219, 0.0214153, 0.0219161, 0.0224243,
0.02294, 0.0234633, 0.023994, 0.0245324, 0.0250784, 0.0256321,
0.0261935, 0.0267627, 0.0273397, 0.0279245, 0.0285172, 0.0291178,
0.0297264, 0.030343, 0.0309676, 0.0316002, 0.032241, 0.0328899,
0.033547, 0.0342123, 0.0348858, 0.0355677, 0.0362578, 0.0369563,
0.0376631, 0.0383784, 0.0391022, 0.0398344, 0.0405751, 0.0413243,
0.0420822, 0.0428486, 0.0436237, 0.0444074, 0.0451999, 0.046001,
0.0468109, 0.0476296, 0.0484571, 0.0492934, 0.0501385, 0.0509926,
0.0518555, 0.0527274, 0.0536083, 0.0544981, 0.055397, 0.0563049,
0.0572218, 0.0581478, 0.059083, 0.0600272, 0.0609806, 0.0619431,
0.0629149, 0.0638958, 0.0648859, 0.0658853, 0.066894, 0.0679119,
0.0689392, 0.0699757, 0.0710216, 0.0720768, 0.0731414, 0.0742154,
0.0752988, 0.0763915, 0.0774937, 0.0786054, 0.0797264, 0.080857,
0.081997, 0.0831465, 0.0843054, 0.0854739, 0.0866519, 0.0878395,
0.0890365, 0.0902431, 0.0914593, 0.092685, 0.0939203, 0.0951651,
0.0964196, 0.0976836, 0.0989572, 0.10024, 0.101533, 0.102836,
0.104148, 0.105469, 0.1068, 0.108141, 0.109492, 0.110852,
0.112222, 0.113601, 0.11499, 0.116388, 0.117796, 0.119214,
0.120642, 0.122079, 0.123525, 0.124981, 0.126447, 0.127922,
0.129407, 0.130902, 0.132406, 0.13392, 0.135443, 0.136976,
0.138518, 0.14007, 0.141631, 0.143202, 0.144782, 0.146372,
0.147971, 0.14958, 0.151199, 0.152826, 0.154463, 0.15611,
0.157766, 0.159431, 0.161106, 0.16279, 0.164483, 0.166186,
0.167898, 0.169619, 0.17135, 0.173089, 0.174838, 0.176596,
0.178364, 0.18014, 0.181926, 0.183721, 0.185525, 0.187338,
0.18916, 0.190991, 0.192831, 0.19468, 0.196538, 0.198405,
0.200281, 0.202166, 0.204059, 0.205962, 0.207873, 0.209793,
0.211721, 0.213659, 0.215605, 0.21756, 0.219523, 0.221495,
0.223475, 0.225464, 0.227462, 0.229467, 0.231482, 0.233504,
0.235535, 0.237575, 0.239622, 0.241678, 0.243742, 0.245814,
0.247895, 0.249983, 0.25208, 0.254184, 0.256297, 0.258417,
0.260545, 0.262681, 0.264825, 0.266977, 0.269136, 0.271303,
0.273478, 0.27566, 0.27785, 0.280048, 0.282252, 0.284465,
0.286684, 0.288911, 0.291145, 0.293386, 0.295635, 0.297891,
0.300153, 0.302423, 0.3047, 0.306984, 0.309274, 0.311572,
0.313876, 0.316187, 0.318504, 0.320828, 0.323159, 0.325496,
0.32784, 0.33019, 0.332547, 0.33491, 0.337279, 0.339654,
0.342035, 0.344422, 0.346816, 0.349215, 0.35162, 0.354031,
0.356448, 0.358871, 0.361299, 0.363733, 0.366172, 0.368617,
0.371067, 0.373523, 0.375984, 0.37845, 0.380921, 0.383398,
0.385879, 0.388366, 0.390857, 0.393353, 0.395854, 0.39836,
0.40087, 0.403385, 0.405905, 0.408428, 0.410957, 0.413489,
0.416026, 0.418567, 0.421112, 0.423662, 0.426215, 0.428772,
0.431333, 0.433897, 0.436466, 0.439038, 0.441613, 0.444192,
0.446775, 0.449361, 0.45195, 0.454542, 0.457137, 0.459736,
0.462337, 0.464941, 0.467548, 0.470158, 0.472771, 0.475386,
0.478003, 0.480623, 0.483246, 0.485871, 0.488498, 0.491127,
0.493758, 0.496391, 0.499026, 0.501663, 0.504302, 0.506942,
0.509584, 0.512227, 0.514872, 0.517518, 0.520166, 0.522814,
0.525464, 0.528115, 0.530767, 0.53342, 0.536073, 0.538727,
0.541382, 0.544037, 0.546693, 0.54935, 0.552006, 0.554663,
0.55732, 0.559977, 0.562634, 0.56529, 0.567947, 0.570603,
0.573259, 0.575915, 0.57857, 0.581224, 0.583878, 0.58653,
0.589182, 0.591833, 0.594483, 0.597132, 0.59978, 0.602426,
0.605071, 0.607715, 0.610356, 0.612997, 0.615635, 0.618272,
0.620907, 0.62354, 0.62617, 0.628799, 0.631425, 0.634049,
0.636671, 0.639289, 0.641906, 0.64452, 0.64713, 0.649738,
0.652344, 0.654946, 0.657544, 0.66014, 0.662732, 0.665321,
0.667907, 0.670489, 0.673067, 0.675641, 0.678212, 0.680779,
0.683341, 0.6859, 0.688454, 0.691004, 0.69355, 0.696091,
0.698627, 0.701159, 0.703686, 0.706209, 0.708726, 0.711239,
0.713746, 0.716248, 0.718745, 0.721237, 0.723723, 0.726203,
0.728678, 0.731147, 0.73361, 0.736068, 0.738519, 0.740964,
0.743404, 0.745837, 0.748263, 0.750683, 0.753097, 0.755504,
0.757904, 0.760297, 0.762684, 0.765063, 0.767436, 0.769801,
0.772159, 0.77451, 0.776853, 0.779189, 0.781517, 0.783838,
0.786151, 0.788455, 0.790752, 0.793041, 0.795322, 0.797595,
0.799859, 0.802115, 0.804362, 0.806601, 0.808831, 0.811052,
0.813265, 0.815468, 0.817663, 0.819849, 0.822025, 0.824192,
0.82635, 0.828498, 0.830637, 0.832766, 0.834885, 0.836995,
0.839095, 0.841185, 0.843265, 0.845334, 0.847394, 0.849443,
0.851482, 0.85351, 0.855528, 0.857535, 0.859532, 0.861517,
0.863492, 0.865456, 0.867409, 0.86935, 0.871281, 0.8732,
0.875108, 0.877004, 0.878889, 0.880762, 0.882624, 0.884473,
0.886311, 0.888137, 0.889951, 0.891753, 0.893542, 0.89532,
0.897085, 0.898837, 0.900577, 0.902305, 0.90402, 0.905722,
0.907411, 0.909087, 0.910751, 0.912401, 0.914039, 0.915663,
0.917274, 0.918871, 0.920455, 0.922026, 0.923583, 0.925126,
0.926656, 0.928172, 0.929674, 0.931162, 0.932636, 0.934096,
0.935542, 0.936974, 0.938391, 0.939794, 0.941183, 0.942557,
0.943917, 0.945261, 0.946592, 0.947907, 0.949207, 0.950493,
0.951764, 0.953019, 0.95426, 0.955485, 0.956695, 0.95789,
0.959069, 0.960233, 0.961381, 0.962514, 0.963631, 0.964733,
0.965818, 0.966888, 0.967942, 0.96898, 0.970002, 0.971008,
0.971998, 0.972971, 0.973929, 0.97487, 0.975794, 0.976702,
0.977594, 0.978469, 0.979328, 0.98017, 0.980995, 0.981803,
0.982595, 0.983369, 0.984127, 0.984868, 0.985591, 0.986298,
0.986987, 0.98766, 0.988315, 0.988952, 0.989573, 0.990175,
0.990761, 0.991329, 0.991879, 0.992412, 0.992927, 0.993424,
0.993904, 0.994366, 0.99481, 0.995236, 0.995644, 0.996034,
0.996406, 0.99676, 0.997096, 0.997414, 0.997714, 0.997995,
0.998258, 0.998503, 0.998729, 0.998937, 0.999127, 0.999298,
0.99945, 0.999584, 0.9997, 0.999797, 0.999875, 0.999934,
0.999975, 0.999997, 1, 0.999984, 0.99995, 0.999896,
0.999824, 0.999732, 0.999622, 0.999493, 0.999344, 0.999177,
0.99899, 0.998784, 0.998559, 0.998315, 0.998052, 0.997769,
0.997467, 0.997146, 0.996806, 0.996446, 0.996067, 0.995668,
0.99525, 0.994813, 0.994356, 0.993879, 0.993383, 0.992868,
0.992333, 0.991779, 0.991205, 0.990611, 0.989998, 0.989365,
0.988712, 0.98804, 0.987348, 0.986637, 0.985906, 0.985155,
0.984384, 0.983594, 0.982784, 0.981954, 0.981105, 0.980236,
0.979347, 0.978438, 0.977509, 0.976561, 0.975593, 0.974605,
0.973597, 0.972569, 0.971522, 0.970455, 0.969367, 0.968261,
0.967134, 0.965987, 0.964821, 0.963635, 0.962429, 0.961203,
0.959957, 0.958692, 0.957407, 0.956102, 0.954777, 0.953432,
0.952068, 0.950684, 0.94928, 0.947856, 0.946412, 0.944949,
0.943466, 0.941963, 0.940441, 0.938899, 0.937337, 0.935755,
0.934154, 0.932533, 0.930892, 0.929232, 0.927552, 0.925853,
0.924134, 0.922396, 0.920637, 0.91886, 0.917063, 0.915246,
0.91341, 0.911554, 0.909679, 0.907785, 0.905871, 0.903938,
0.901986, 0.900014, 0.898023, 0.896013, 0.893983, 0.891934,
0.889866, 0.887779, 0.885673, 0.883548, 0.881403, 0.87924,
0.877058, 0.874856, 0.872636, 0.870397, 0.868138, 0.865862,
0.863566, 0.861251, 0.858918, 0.856566, 0.854195, 0.851806,
0.849398, 0.846972, 0.844527, 0.842063, 0.839581, 0.837081,
0.834562, 0.832026, 0.82947, 0.826897, 0.824305, 0.821696,
0.819068, 0.816422, 0.813758, 0.811076, 0.808376, 0.805659,
0.802923, 0.80017, 0.797399, 0.79461, 0.791804, 0.78898,
0.786139, 0.78328, 0.780404, 0.777511, 0.7746, 0.771672,
0.768726, 0.765764, 0.762784, 0.759788, 0.756774, 0.753744,
0.750696, 0.747632, 0.744551, 0.741454, 0.73834, 0.735209,
0.732062, 0.728898, 0.725718, 0.722521, 0.719309, 0.71608,
0.712835, 0.709574, 0.706297, 0.703004, 0.699695, 0.69637,
0.69303, 0.689674, 0.686302, 0.682915, 0.679512, 0.676094,
0.672661, 0.669212, 0.665748, 0.662269, 0.658775, 0.655266,
0.651743, 0.648204, 0.64465, 0.641082, 0.6375, 0.633902,
0.630291, 0.626665, 0.623024, 0.61937, 0.615701, 0.612018,
0.608321, 0.604611, 0.600886, 0.597148, 0.593396, 0.58963,
0.585851, 0.582059, 0.578253, 0.574434, 0.570601, 0.566756,
0.562898, 0.559026, 0.555142, 0.551245, 0.547335, 0.543413,
0.539478, 0.535531, 0.531572, 0.5276, 0.523616, 0.51962,
0.515612, 0.511592, 0.50756, 0.503517, 0.499461, 0.495395,
0.491317, 0.487227, 0.483127, 0.479015, 0.474892, 0.470758,
0.466613, 0.462457, 0.458291, 0.454113, 0.449926, 0.445728,
0.441519, 0.437301, 0.433072, 0.428833, 0.424584, 0.420326,
0.416057, 0.411779, 0.407491, 0.403194, 0.398888, 0.394572,
0.390247, 0.385913, 0.38157, 0.377218, 0.372857, 0.368487,
0.364109, 0.359723, 0.355328, 0.350924, 0.346513, 0.342094,
0.337666, 0.333231, 0.328787, 0.324337, 0.319878, 0.315412,
0.310939, 0.306458, 0.301971, 0.297476, 0.292974, 0.288465,
0.28395, 0.279428, 0.2749, 0.270365, 0.265823, 0.261276,
0.256722, 0.252162, 0.247597, 0.243025, 0.238448, 0.233866,
0.229278, 0.224684, 0.220085, 0.215481, 0.210872, 0.206258,
0.201639, 0.197016, 0.192388, 0.187755, 0.183118, 0.178477,
0.173831, 0.169181, 0.164528, 0.15987, 0.155209, 0.150544,
0.145876, 0.141204, 0.136529, 0.13185, 0.127169, 0.122484,
0.117797, 0.113107, 0.108414, 0.103719, 0.0990208, 0.0943207,
0.0896184, 0.084914, 0.0802075, 0.0754992, 0.0707891, 0.0660774,
0.061364, 0.0566493, 0.0519332, 0.0472159, 0.0424975, 0.037778,
0.0330577, 0.0283366, 0.0236149, 0.0188926, 0.0141698, 0.00944673,
0.00472342, 0
};
static const float *WAVE_SAWS[DEFAULT_OCTAVES] = {
WAVE_SAW_000, WAVE_SAW_006, WAVE_SAW_018,
WAVE_SAW_030, WAVE_SAW_042, WAVE_SAW_054,
WAVE_SAW_066, WAVE_SAW_078, WAVE_SAW_090,
WAVE_SAW_102, WAVE_SAW_114, WAVE_SAW_126
};
|
jimd1989/boar
|
src/velocity.h
|
#pragma once
#include <stdint.h>
#include "wave.h"
float applyVelocityCurve(const Wave *, const uint16_t);
unsigned int getNote(const uint16_t);
|
jimd1989/boar
|
src/voice.c
|
/* The procedures in this file handle the lifespans of notes. They tell
* new notes to play and kill off old ones. The Voice struct tracks an
* individual note in a polyphonic performance. You can read more about it
* in "voice.h". */
#include <err.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "voice.h"
#include "audio-settings.h"
#include "constants/defaults.h"
#include "constants/errors.h"
#include "envelope.h"
#include "key.h"
#include "noise.h"
#include "synthesis.h"
#include "wave.h"
static Voice * findFreeVoice(Voices *);
static void resetVoice(const Voices *, Voice *, const uint16_t, const bool);
static void setVoicesSettings(Voices *, const AudioSettings *);
static void allocateVoices(Voices *);
static void makeOperator(Operators *, Operator *, float *);
static void makeVoice(Voices *, Voice *, float *, float *);
static void makeOperators(Operators *, const unsigned int);
static Voice *
findFreeVoice(Voices *vs) {
/* Iterates through Voices.All, returning a pointer to the first Voice with
* a Voice.Carrier.Env.Stage value of ENV_FINISHED. If no Voices are free, then
* the active Voice at the initial value of Voices.Current + 1 is stolen. This
* is theoretically simple but perhaps less than ideal during realtime
* performance. The algorithm is subject to change. */
unsigned int i = 0;
Voice *v = NULL;
for (; i < vs->N ; i++) {
v = &vs->All[vs->Current];
if (v->Carrier.Env.Stage == ENV_FINISHED) {
return v;
}
vs->Current = (vs->Current + 1) % vs->N;
}
vs->Current = (vs->Current + 1) % vs->N;
return &vs->All[vs->Current];
}
static void
resetVoice(const Voices *vs, Voice *v, const uint16_t note, const bool soft) {
/* Retriggers keyboard settings and envelopes in a Voice. Notes that are
* turned off then on again without engaging another voice also trigger this
* branch (with `soft` engaged). */
if (soft) {
retriggerEnv(&v->Carrier.Env);
retriggerEnv(&v->Modulator.Env);
} else {
applyKey(&vs->Keyboard, &v->Carrier, &v->Modulator, note);
resetEnv(&v->Carrier.Env);
resetEnv(&v->Modulator.Env);
}
}
void
voiceOn(Voices *vs, const uint16_t n) {
/* Assigns a pitch derived from pitch(note) to the first free Voice in
* Voices.All. The sound output thread only plays Voices with an Env.Stage
* value that != ENV_FINISHED, meaning that atomic switching of this
* value allows for lock-free modification of a Voice. Even if a Voice is in
* the middle of its buffer-filling operation, changing its values has a
* negligible side-effect and is considered acceptable by this program. */
const unsigned int note = getNote(n);
Voice *v = NULL;
if (note >= DEFAULT_KEYS_NUM) {
warnx("Note must be between 0 and %u", DEFAULT_KEYS_NUM - 1);
return;
}
if (vs->Active[note] != NULL) {
resetVoice(vs, vs->Active[note], n, true);
return;
}
v = findFreeVoice(vs);
if (v->Note != DEFAULT_NO_KEY) {
/* The previous note that held this voice remains as an artifact.
* Its entry in Voices.Active must be removed first. This is a
* deliberate design choice that is explained further in voiceOff(). */
vs->Active[v->Note] = NULL;
}
v->Note = note;
vs->Active[note] = v;
resetVoice(vs, v, n, false);
}
void
voiceOff(Voices *vs, const uint16_t n) {
/* Signals a Voice to stop by setting its Env.Stage values to ENV_RELEASE.
* The pointer to the Voice remains in Voices.Active until it is overwritten
* by the next instance of voiceOn() that chances upon the Voice. This
* process is slightly harder to follow, but it ensures that released envelopes
* have a better shot at decaying naturally before their Voices are stolen. */
const unsigned int note = getNote(n);
Voice *v = NULL;
if (vs->Active[note] == NULL) {
return;
}
v = vs->Active[note];
v->Modulator.Env.Stage = ENV_RELEASE;
v->Carrier.Env.Stage = ENV_RELEASE;
}
void
pollVoice(Voice *v) {
/* Generates a cycle of sample data for a voice, if it is active. */
if (v->Carrier.Env.Stage != ENV_FINISHED) {
fillCarrierBuffer(&v->Carrier, &v->Modulator);
}
}
void
setPitchRatio(Voices *vs, const bool isCarrier, const float r) {
/* Sets the pitch ratio for a carrier or modulator. In additon to changing
* the master ratio that all children Operators derive their values from, the
* function must also loop through each voice and reset its pitch manually to
* change any notes that are currently playing. */
unsigned int i = 0;
Voice *v = NULL;
if (isCarrier) {
vs->Carrier.Ratio = r;
} else {
vs->Modulator.Ratio = r;
}
for (; i < vs->N; i++) {
v = &vs->All[i];
applyKey(&vs->Keyboard, &v->Carrier, &v->Modulator, v->Note);
}
}
void
setFixedRate(Voices *vs, const bool isCarrier, const float r) {
/* Changes the Operator.FixedRate setting in a manner similar to that of
* setPitchRatio(), operating in O(n) time upon all children. */
unsigned int i = 0;
Voice *v = NULL;
if (isCarrier) {
vs->Carrier.FixedRate = r;
} else {
vs->Modulator.FixedRate = r;
}
for (; i < vs->N; i++) {
v = &vs->All[i];
applyKey(&vs->Keyboard, &v->Carrier, &v->Modulator, v->Note);
}
}
void
setModulation(Voices *vs, const float m) {
/* Sets modulation index on all voices. Since this variable makes use of
* Osc.Amplitude, which is a local variable for carriers, it must be updated in
* a O(n) loop rather than simple change to a pointer value. Audible
* distortion should not be too much of a problem. */
unsigned int i = 0;
for (; i < vs->N; i++) {
vs->All[i].Modulator.Osc.Amplitude = m;
}
}
static void
setVoicesSettings(Voices *vs, const AudioSettings *aos) {
/* Populates numerical fields of Voices struct with proper playback values. */
vs->N = aos->Polyphony;
vs->Rate = aos->Rate;
vs->Carrier.Ratio = 1.0f;
vs->Modulator.Ratio = 1.0f;
vs->Phase = 0;
vs->Amplitude = 1.0f / (float)vs->N;
}
static void
allocateVoices(Voices *vs) {
/* Allocates memory for all Voice structs in Voices. */
vs->All = calloc(sizeof(*vs->All), vs->N);
if (vs->All == NULL) {
errx(ERROR_ALLOC, "Error initializing voices");
}
}
static void
makeOperator(Operators *os, Operator *op, float *b) {
/* Initializes an Operator type within a voice. */
op->FixedRate = &os->FixedRate;
op->Ratio = &os->Ratio;
op->Osc.Buffer = b;
op->Osc.Wave = &os->Wave;
makeNoise(&op->Osc.Wave->Noise);
makeEnv(&os->Env, &op->Env);
}
static void
makeVoice(Voices *vs, Voice *v, float *cB, float *mB) {
/* Initializes a Voice type within Voices.All. */
v->Note = DEFAULT_NO_KEY;
v->Carrier.Osc.Amplitude = vs->Amplitude;
makeOperator(&vs->Carrier, &v->Carrier, cB);
makeOperator(&vs->Modulator, &v->Modulator, mB);
}
static void
makeOperators(Operators *os, const unsigned int rate) {
/* Initializes a Voices.Operators type. */
makeEnvs(&os->Env, rate);
selectWave(&os->Wave, WAVE_TYPE_SINE);
}
void
makeVoices(Voices *vs, float *carrierBuffer, const AudioSettings *aos) {
/* Initializes a Voices type. Errors are fatal. All voices share the same
* carrier and modulator buffers. The modulator buffer exists internally to
* the struct, while the carrier buffer is a pointer to the main mixing buffer
* used in audio output. */
unsigned int i = 0;
Voice *v = NULL;
setVoicesSettings(vs, aos);
allocateVoices(vs);
makeOperators(&vs->Carrier, aos->Rate);
makeOperators(&vs->Modulator, aos->Rate);
for (; i < vs->N ; i++) {
v = &vs->All[i];
makeVoice(vs, v, carrierBuffer, vs->ModulatorBuffer);
}
makeKeyboard(&vs->Keyboard, vs->Rate, &vs->Phase);
}
void
killVoices(Voices *vs) {
/* Frees memory allocated during initialization of Voices struct. */
free(vs->All);
}
|
jimd1989/boar
|
src/wavetables/flat.h
|
/* A flat signal. Wasteful, but an easy envelope solution. */
#pragma once
#include "../constants/defaults.h"
static const float WAVE_FLAT_000[DEFAULT_WAVELEN] = {
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
1, 1
};
static const float *WAVE_FLATS[DEFAULT_OCTAVES] = {
WAVE_FLAT_000, WAVE_FLAT_000, WAVE_FLAT_000, WAVE_FLAT_000,
WAVE_FLAT_000, WAVE_FLAT_000, WAVE_FLAT_000, WAVE_FLAT_000,
WAVE_FLAT_000, WAVE_FLAT_000, WAVE_FLAT_000, WAVE_FLAT_000
};
|
jimd1989/boar
|
src/amplitude.c
|
<reponame>jimd1989/boar<gh_stars>1-10
/* Functions for the Amplitude type, which provides independent
* channel volumes on the master audio output. */
#include <math.h>
#include "amplitude.h"
#include "numerical.h"
Amplitude
makeAmplitude(void) {
/* Initialize an Amplitude struct with default channel volumes. */
Amplitude a = {1.0f, 0.1f, 1.0f};
return a;
}
void
setBalance(Amplitude *a, const float f) {
/* Sets the stereo balance of the output, where 0.5 represents full amplitude
* on both channels, 0.0 represents full amplitude to the left, and 1.0
* represents full amplitude to the right. */
const float tf = truncateFloat(f, 1.0f);
a->L = truncateFloat(1.0f - (2.0f * (tf - 0.5f)), 1.0f);
a->R = truncateFloat(1.0f - (2.0f * (0.5f - tf)), 1.0f);
}
void
setVolume(Amplitude *a, const float f) {
/* Sets master amplitude without getting too loud. */
a->Master = unipolar(expCurve(truncateFloat(f, 1.0f)));
}
|
jimd1989/boar
|
src/repl.h
|
<gh_stars>1-10
#pragma once
#include <stdint.h>
#include "audio-init.h"
#include "constants/defaults.h"
#include "parse.h"
typedef struct Repl {
/* A struct containing everything needed for a user-facing loop. During every
* cycle of the REPL, user input is read with read() into Repl.Buffer. This
* string is then parsed, and used to populate the fields of Repl.Cmd. An audio
* function is then performed using Repl.Cmd as its argument. */
Cmd Cmd;
char Buffer[DEFAULT_LINESIZE];
Audio * Audio;
} Repl;
void repl(Repl *);
|
jimd1989/boar
|
src/buffers.h
|
#pragma once
#include <stdint.h>
#include <stdlib.h>
#include "audio-settings.h"
#include "constants/defaults.h"
typedef struct Buffer {
/* Two buffers: Mix is always DEFAULT_BUFSIZE frames long, and holds floating
* point sample data. This is for mixing synthesis data generated by each of the
* voices. It is kept short to respond effectively to user input. Output is
* also ideally DEFAULT_BUFSIZE frames in length, but may not be due to hardware
* limitations. Output holds raw bytes to write to sndio. If Output is longer
* than Mix, then Mix will be filled multiple times before Output writes its
* data. The lengths of these buffers do not have to be perfect multiples of one
* another. The internal synthesis data is fundamentally monophonic, but if
* multichannel output is specified, then one sample of Mix will be written
* multiple times to Output, potentially at different final amplitudes. With
* this in mind, the Output buffer needs to track various sizing variables,
* while Mix is only manipulated in terms of frames. */
size_t BytesWritten;
size_t FramesWritten;
size_t SizeFrames;
size_t SizeBytes;
float Mix[DEFAULT_BUFSIZE];
uint8_t * Output;
} Buffer;
Buffer makeBuffer(const size_t);
void killBuffer(Buffer *);
|
jimd1989/boar
|
src/synthesis.c
|
/* These functions contain the actual mathematics that create sound. */
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include "synthesis.h"
#include "constants/defaults.h"
#include "envelope.h"
#include "noise.h"
#include "numerical.h"
#include "wave.h"
static void fillModulatorBuffer(Operator *);
static float hzToPitch(const float, const unsigned int);
static float pitch(const unsigned int, const unsigned int);
static float modulate(Osc *, Osc *, const unsigned int);
static float
hzToPitch(const float hz, const unsigned int rate) {
/* Converts a frequency in Hz to a wavetable increment value. */
return hz * ((float)DEFAULT_WAVELEN / (float)rate);
}
static float
pitch(const unsigned int note, const unsigned int rate) {
/* Calculates the phase increment value for a pitch at the MIDI key number
* "note" with regards to the sample rate given in "rate". */
const float frequency = DEFAULT_LOWEST_FREQUENCY *
powf(2.0f, (float)note / 12.0f);
return hzToPitch(frequency, rate);
}
void
setPitch(Operator *o, const unsigned int note, const unsigned int rate) {
/* Sets the pitch of an Osc derived from a note, or its fixed frequency. */
if (*o->FixedRate) {
o->Osc.Pitch = hzToPitch(*o->FixedRate, rate);
return;
}
o->Osc.Pitch = *o->Ratio * pitch(note, rate);
}
static void
fillModulatorBuffer(Operator *m) {
/* Assigns an interpolated float sample to every index of the Osc buffer,
* derived from Osc.Pitch. This buffer is later used to modulate the carrier
* signal. */
unsigned int i = 0;
Osc *o = &m->Osc;
int tableNo = 1 + (int)ilogb(DEFAULT_OCTAVE_SCALING * o->Pitch);
tableNo = (tableNo < 0) ? 0 : tableNo;
tableNo = (tableNo >= DEFAULT_OCTAVES) ? DEFAULT_OCTAVES - 1 : tableNo;
if (o->Wave->Type == WAVE_TYPE_NOISE) {
for (; i < DEFAULT_BUFSIZE ; i++) {
o->Buffer[i] = readNoise(&o->Wave->Noise, o->Pitch) *
o->Amplitude * applyEnv(&m->Env) * o->KeyMod;
}
} else {
for (; i < DEFAULT_BUFSIZE ; i++) {
o->Phase = fmodf(o->Phase + o->Pitch, (float)DEFAULT_WAVELEN);
o->Buffer[i] = interpolate(o->Wave->Table[tableNo],
DEFAULT_WAVELEN, o->Phase) * o->Amplitude *
applyEnv(&m->Env) * o->KeyMod;
}
}
}
static float
modulate(Osc *c, Osc *m, unsigned int i) {
/* A similar algorithm to the cannonical frequency modulation (FM) formula,
* but operates on the phase of waves. The carrier wave has its phase increased
* by the carrier pitch, then it has this phase further altered by adding
* (or subtracting) the modulation pitch multiplied by its amplitude at the
* discrete point in time i. This distorted carrier phase is then interpolated
* against the carrier Osc's wavetable. */
const float pitch = (c->Pitch * c->Wave->Polarity) +
(m->Pitch * m->Buffer[i]);
int tableNo = 1 + (int)ilogb(DEFAULT_OCTAVE_SCALING * pitch);
tableNo = (tableNo < 0) ? 0 : tableNo;
tableNo = (tableNo >= DEFAULT_OCTAVES) ? DEFAULT_OCTAVES - 1 : tableNo;
if (c->Wave->Type == WAVE_TYPE_NOISE) {
return readNoise(&c->Wave->Noise, pitch);
} else {
c->Phase = fmodf(c->Phase + pitch, (float)DEFAULT_WAVELEN);
return interpolate(c->Wave->Table[tableNo], DEFAULT_WAVELEN, c->Phase);
}
}
void
fillCarrierBuffer(Operator *c, Operator *m) {
/* Calculates the cycle of the modulating wave, then modulates the cycle of
* the carrier wave against it. Sums its final values up in the carrier wave's
* buffer. */
unsigned int i = 0;
fillModulatorBuffer(m);
for (; i < DEFAULT_BUFSIZE ; i++) {
c->Osc.Buffer[i] += modulate(&c->Osc, &m->Osc, i) *
c->Osc.Amplitude * applyEnv(&c->Env) * c->Osc.KeyMod;
}
}
|
jimd1989/boar
|
src/wave.c
|
<gh_stars>1-10
/*Functions for selecting wave types and reading wavetables. */
#include <err.h>
#include <stdlib.h>
#include "wave.h"
#include "constants/defaults.h"
#include "constants/errors.h"
#include "constants/maximums.h"
#include "noise.h"
#include "numerical.h"
#include "wavetables/exponential.h"
#include "wavetables/flat.h"
#include "wavetables/logarithmic.h"
#include "wavetables/saw.h"
#include "wavetables/sine.h"
#include "wavetables/square.h"
#include "wavetables/triangle.h"
void
selectWave(Wave *w, const int wt) {
/* Assigns a WaveType and pointer to wavetable to a Wave. Sets Wave.Polarity
* according to the sign of "wt". */
unsigned int uwt = abs(wt);
switch(uwt) {
case WAVE_TYPE_FLAT:
w->Table = WAVE_FLATS;
break;
case WAVE_TYPE_SINE:
w->Table = WAVE_SINES;
break;
case WAVE_TYPE_SQUARE:
w->Table = WAVE_SQUARES;
break;
case WAVE_TYPE_TRIANGLE:
w->Table = WAVE_TRIANGLES;
break;
case WAVE_TYPE_SAW:
w->Table = WAVE_SAWS;
break;
case WAVE_TYPE_EXPONENTIAL:
w->Table = WAVE_EXPONENTIALS;
break;
case WAVE_TYPE_LOGARITHMIC:
w->Table = WAVE_LOGARITHMICS;
break;
case WAVE_TYPE_NOISE:
break;
default:
warnx("Choose a wave between 0 and %d", WAVE_TYPE_NOISE);
return;
}
w->Type = uwt;
if (wt < 0) {
w->Polarity = -1.0f;
} else {
w->Polarity = 1.0f;
}
}
float
interpolateCycle(const Wave *w, const float phase) {
/* Many wavetable referencing types, such as envelopes, apply a single cycle
* of a wave to a value. This function performs an interpolation over a
* wavetable using a phase between 0.0 and 1.0. */
if (w->Type == WAVE_TYPE_NOISE) {
return (((float)rand() / (float)RAND_MAX));
}
return unipolar(interpolate(w->Table[0], DEFAULT_WAVELEN, phase *
(float)MAX_WAVE_INDEX * w->Polarity));
}
|
jimd1989/boar
|
src/audio-init.h
|
#pragma once
#include "amplitude.h"
#include "audio-settings.h"
#include "buffers.h"
#include "voice.h"
typedef struct Audio {
/* During an audio playback cycle, all synthesis takes place in Audio.Voices.
* The sample values of individual Voices are summed up in Audio.MixingBuffer.
* The samples in the MixingBuffer are multiplied against the master volume
* specified by Audio.Amplitude, then broken down into individual bytes and
* written to Audio.MainBuffer, which is finally converted to sound by
* Audio.Output. */
Amplitude Amplitude;
Buffer Buffer;
struct sio_hdl * Output;
AudioSettings Settings;
Voices Voices;
} Audio;
void makeAudio(Audio *, const int, char **);
void killAudio(Audio *);
|
jimd1989/boar
|
src/constants/errors.h
|
/* Defines return codes for errors */
#pragma once
typedef enum Error {
/* Nothing wrong */
ERROR_OK = 0,
/* Error parsing commands line arguments */
ERROR_ARG,
/* Error allocating memory */
ERROR_ALLOC,
/* Error interfacting with sndio */
ERROR_SIO,
/* Error parsing user input */
ERROR_INPUT,
/* User input function is invalid */
ERROR_FUNCTION,
/* No action taken */
ERROR_NOTHING,
/* Wrong argument type passed to function */
ERROR_TYPE,
/* Signal to close the program */
ERROR_EXIT
} Error;
|
jimd1989/boar
|
src/audio-init.c
|
<reponame>jimd1989/boar<filename>src/audio-init.c
/* Initialization functions for the Audio type, which serves as the link
* between the program and sndio, using the audio settings provided by the user
* in command-line parameters. Most functions are of the void type, since
* initialization errors are fatal anyway. */
#include <err.h>
#include <stdbool.h>
#include <sndio.h>
#include <stdlib.h>
#include <string.h>
#include "audio-init.h"
#include "amplitude.h"
#include "audio-settings.h"
#include "buffers.h"
#include "constants/defaults.h"
#include "constants/errors.h"
#include "constants/maximums.h"
#include "voice.h"
static void populateSettings(const AudioSettings *, struct sio_par *);
static void openOutput(struct sio_hdl **);
static void suggestSettings(struct sio_hdl *, struct sio_par *);
static int roundBuffer(AudioSettings *, const struct sio_par *);
static void setSetting(const unsigned int, const unsigned int,
unsigned int *, const char *);
static void setSettings(AudioSettings *, const struct sio_par *);
static void checkSettings(struct sio_par *);
static void startAudio(struct sio_hdl *);
static void
populateSettings(const AudioSettings *aos, struct sio_par *sp) {
/* Initializes a sio_par struct and provides it with parameters from
* AudioSettings. These settings will be suggested to the sound hardware, but
* won't necessarily be the final playback parameters. */
sio_initpar(sp);
sp->bits = aos->Bits;
sp->appbufsz = aos->BufSizeFrames;
sp->rate = aos->Rate;
sp->pchan = DEFAULT_CHAN;
}
static void
openOutput(struct sio_hdl **o) {
/* Opens a handle to the soundcard. */
*o = sio_open(SIO_DEVANY, SIO_PLAY, false);
if (*o == NULL) {
errx(ERROR_SIO, "Error opening handle to sndio");
}
}
static void
suggestSettings(struct sio_hdl *o, struct sio_par *sp) {
/* Sends user-suggested settings to soundcard, gets soundcard's response. */
if (sio_setpar(o, sp) == 0) {
errx(ERROR_SIO, "Error setting sndio settings");
}
if (sio_getpar(o, sp) == 0) {
errx(ERROR_SIO, "Error retrieving sndio settings");
}
}
static void
setSetting(const unsigned int expected, const unsigned int reality,
unsigned int *field, const char *name) {
/* Assigns the actual hardware-limited parameter to "field", rather than the
* one suggested by the user in the command-line flags. Often the parameters
* are the same, but hardware limitations could make it different. */
if (expected != reality){
warnx("Hardware limitations changed %s from %u to %u", name, expected,
reality);
}
*field = reality;
}
static int
roundBuffer(AudioSettings *aos, const struct sio_par *sp) {
/* Round the buffer size according to hardware suggestions. */
int frames = aos->BufSizeFrames;
frames = frames + sp->round - 1;
frames -= frames % sp->round;
return frames;
}
static void
setSettings(AudioSettings *aos, const struct sio_par *sp) {
/* Runs setSetting() on essential playback parameters. */
setSetting(aos->Bits, sp->bits, &aos->Bits, "bits");
setSetting(aos->BufSizeFrames, roundBuffer(aos, sp), &aos->BufSizeFrames,
"bufsize");
setSetting(aos->Rate, sp->rate, &aos->Rate, "rate");
}
static void
startAudio(struct sio_hdl *o) {
/* Primes the sndio device to start accepting audio output. */
if (sio_start(o) == 0) {
errx(ERROR_SIO, "Error initializing audio output.");
}
}
static void
checkSettings(struct sio_par *sp) {
/* Kill program if certain sndio settings aren't satisfied. */
if (sp->bits != DEFAULT_BITS) {
errx(ERROR_SIO, "Expected %d bit output.", DEFAULT_BITS);
}
if (sp->pchan != DEFAULT_CHAN) {
errx(ERROR_SIO, "Expected %d channels.", DEFAULT_CHAN);
}
}
void
makeAudio(Audio *a, const int argc, char **argv) {
/* Initializes an Audio struct. Opens sndio, applies parameters, allocates
* buffers, starts sndio. */
struct sio_par sp = {0};
makeAudioSettings(&a->Settings, argc, argv);
populateSettings(&a->Settings, &sp);
openOutput(&a->Output);
suggestSettings(a->Output, &sp);
setSettings(&a->Settings, &sp);
checkSettings(&sp);
a->Buffer = makeBuffer(a->Settings.BufSizeFrames);
makeVoices(&a->Voices, a->Buffer.Mix, &a->Settings);
a->Amplitude = makeAmplitude();
startAudio(a->Output);
}
void
killAudio(Audio *a) {
/* Stops sndio. Frees all memory allocated by Audio type. */
sio_close(a->Output);
killBuffer(&a->Buffer);
killVoices(&a->Voices);
}
|
jimd1989/boar
|
src/velocity.c
|
<filename>src/velocity.c
#include <stdint.h>
#include "velocity.h"
#include "constants/maximums.h"
#include "numerical.h"
#include "wave.h"
float
applyVelocityCurve(const Wave *vw, const uint16_t note) {
/* Note is a set of two bytes. The lower byte is a value between 0 ... 127
* representing the actual MIDI note, and the upper byte is a value between
* 0 ... 127 representing the force with which the key was struck. This
* function returns a value between 0.0 and 1.0 based upon the value of the
* note's upper byte, which is used to modify the intensity of various
* touch-sensitive parameters. Note is shifted to the right by 9 places
* intead of the usual 8, since its value cannot exceed 127. */
const float vel = (float)(note >> 9) / (float)MAX_MIDI_VALUE;
return interpolateCycle(vw, truncateFloat(vel, 1.0f));
}
|
jimd1989/boar
|
src/constants/defaults.h
|
/* Defines a set of default numerical constants, which are considered sane
* audio settings. Some of these are constant throughout the lifespan of the
* program. Others are overwritten by user-specified flags. */
#pragma once
#include <math.h>
#include <stdbool.h>
/* Bit depth of an individual sample */
#define DEFAULT_BITS 16
/* Byte depth of an individual sample */
#define DEFAULT_BYTES (DEFAULT_BITS / 8)
/* Sample rate */
#define DEFAULT_RATE 48000
/* Number of times to poll for user input per second */
#define DEFAULT_RESOLUTION 375
/* Ideal audio output buffer size (in frames, not bytes). Even if audio output
* does not respect this size, it will be used for the timing of user input,
* ensuring a resolution of DEFAULT_RESOLUTION */
#define DEFAULT_BUFSIZE (DEFAULT_RATE / DEFAULT_RESOLUTION)
/* Number of channels. Hardcoded to stereo for now. */
#define DEFAULT_CHAN 2
/* Number of simultaneous voices */
#define DEFAULT_POLYPHONY 8
/* Length of wavetable (should be a multiple of UINT_MAX) */
#define DEFAULT_WAVELEN 2048
/* Number of possible MIDI notes */
#define DEFAULT_KEYS_NUM 128
/* Number of octaves, used to segregate band-limited wavetables */
#define DEFAULT_OCTAVES 12
/* Scaling factor to create a unique mapping of octave pitch to wavetable
* index */
#define DEFAULT_OCTAVE_SCALING 4.5f
/* A number greater than the number of possible MIDI notes, for signaling
* that no note is being played */
#define DEFAULT_NO_KEY (DEFAULT_KEYS_NUM + 1)
/* Lowest frequency of all 128 notes (C1) */
#define DEFAULT_LOWEST_FREQUENCY 8.1757989156f
/* ASCII number for "0" */
#define DEFAULT_ASCII_ZERO 48
/* ASCII number for "9" */
#define DEFAULT_ASCII_NINE 57
/* ASCII number for "A" */
#define DEFAULT_ASCII_A 65
/* ASCII number for "Z" */
#define DEFAULT_ASCII_Z 90
/* ASCII number for "a" */
#define DEFAULT_ASCII_A_LOWER 97
/* ASCII number for "z" */
#define DEFAULT_ASCII_Z_LOWER 122
/* Maximum user line input */
#define DEFAULT_LINESIZE 4096
|
jimd1989/boar
|
src/wavetables/logarithmic.h
|
/* A wave of ln x ∈ [0,π]. Intended for envelope use, but can be played. */
#pragma once
#include "../constants/defaults.h"
static const float WAVE_LOGARITHMIC_000[DEFAULT_WAVELEN] = {
-1, -0.551116, -0.453189, -0.368782, -0.290314, -0.24818,
-0.220709, -0.182361, -0.14899, -0.13118, -0.111258, -0.0852653,
-0.0677639, -0.0560404, -0.0382318, -0.0205217, -0.0104454, 0.000526058,
0.0160359, 0.0273538, 0.0347648, 0.0461445, 0.0583082, 0.0654676,
0.0728857, 0.0838769, 0.0923777, 0.0977939, 0.106025, 0.115334,
0.120973, 0.126493, 0.134953, 0.141839, 0.146119, 0.152479,
0.160037, 0.164749, 0.169096, 0.175929, 0.181765, 0.185321,
0.19044, 0.196806, 0.200898, 0.204455, 0.210148, 0.215243,
0.218303, 0.22254, 0.228036, 0.231686, 0.234679, 0.239526,
0.244067, 0.246772, 0.25035, 0.25518, 0.258499, 0.261074,
0.265265, 0.269374, 0.271816, 0.274885, 0.279183, 0.282246,
0.284502, 0.288169, 0.291928, 0.29417, 0.296835, 0.300697,
0.303556, 0.305565, 0.308801, 0.312269, 0.314356, 0.316696,
0.320191, 0.322882, 0.324695, 0.327573, 0.330793, 0.332758,
0.33483, 0.338011, 0.340562, 0.34222, 0.344793, 0.347797,
0.349665, 0.351515, 0.354423, 0.356853, 0.358386, 0.360698,
0.363511, 0.365301, 0.366966, 0.369633, 0.371958, 0.373391,
0.375476, 0.378118, 0.379844, 0.381354, 0.383805, 0.386036,
0.387389, 0.389277, 0.391763, 0.393436, 0.394815, 0.397073,
0.399219, 0.400507, 0.402222, 0.404565, 0.406193, 0.407462,
0.409545, 0.411612, 0.41285, 0.414411, 0.416621, 0.418212,
0.419388, 0.421312, 0.423305, 0.424502, 0.425929, 0.428015,
0.429573, 0.430671, 0.43245, 0.434373, 0.435538, 0.436846,
0.438816, 0.440344, 0.441376, 0.443023, 0.444879, 0.446019,
0.447222, 0.449081, 0.450583, 0.451561, 0.453085, 0.454877,
0.455997, 0.457107, 0.458863, 0.460339, 0.461273, 0.462684,
0.464414, 0.465519, 0.466548, 0.468204, 0.469657, 0.470554,
0.471862, 0.47353, 0.474624, 0.475581, 0.477143, 0.478572,
0.47944, 0.480654, 0.482261, 0.483347, 0.484242, 0.485714,
0.487119, 0.487965, 0.489091, 0.490638, 0.491718, 0.492559,
0.493945, 0.495326, 0.496155, 0.497201, 0.498689, 0.499765,
0.500559, 0.501863, 0.50322, 0.504036, 0.505009, 0.506439,
0.50751, 0.508265, 0.509491, 0.510823, 0.51163, 0.512537,
0.513909, 0.514977, 0.515698, 0.51685, 0.518155, 0.518957,
0.519804, 0.521118, 0.522183, 0.522876, 0.523958, 0.525236,
0.526036, 0.526828, 0.528086, 0.529147, 0.529817, 0.530833,
0.532082, 0.532881, 0.533625, 0.534826, 0.535883, 0.536536,
0.537489, 0.538707, 0.539509, 0.540209, 0.541355, 0.542407,
0.543046, 0.543939, 0.545127, 0.545931, 0.546593, 0.547685,
0.54873, 0.549359, 0.550197, 0.551353, 0.552161, 0.552789,
0.553827, 0.554865, 0.555488, 0.556274, 0.557396, 0.558209,
0.558808, 0.559794, 0.560823, 0.561442, 0.56218, 0.563268,
0.564085, 0.564659, 0.565594, 0.566613, 0.567231, 0.567925,
0.568977, 0.569798, 0.570352, 0.571238, 0.572245, 0.572864,
0.573517, 0.574533, 0.575358, 0.575895, 0.576733, 0.577726,
0.578348, 0.578964, 0.579944, 0.580772, 0.581295, 0.582088,
0.583066, 0.583692, 0.584274, 0.585216, 0.586048, 0.58656,
0.587309, 0.58827, 0.588902, 0.589453, 0.590358, 0.591191,
0.591696, 0.592403, 0.593346, 0.593984, 0.594509, 0.595376,
0.596209, 0.59671, 0.597377, 0.598299, 0.598945, 0.599446,
0.600276, 0.601108, 0.601606, 0.602235, 0.603136, 0.603789,
0.60427, 0.605063, 0.605892, 0.60639, 0.606985, 0.607863,
0.608523, 0.608986, 0.609742, 0.610567, 0.611068, 0.611629,
0.612483, 0.61315, 0.613599, 0.614319, 0.615139, 0.615643,
0.616173, 0.617002, 0.617676, 0.618113, 0.618798, 0.61961,
0.620119, 0.620622, 0.621425, 0.622105, 0.622533, 0.623183,
0.623987, 0.624502, 0.624979, 0.625755, 0.62644, 0.626861,
0.627478, 0.628271, 0.628793, 0.629248, 0.629996, 0.630685,
0.631103, 0.631687, 0.632469, 0.632998, 0.633432, 0.634152,
0.634845, 0.63526, 0.635814, 0.636582, 0.637119, 0.637535,
0.638227, 0.638921, 0.639337, 0.639861, 0.640614, 0.64116,
0.641561, 0.642224, 0.642918, 0.643336, 0.643832, 0.644569,
0.645123, 0.645511, 0.646145, 0.646839, 0.647259, 0.64773,
0.648449, 0.649011, 0.649388, 0.649994, 0.650686, 0.651111,
0.651558, 0.652258, 0.652827, 0.653196, 0.653774, 0.654462,
0.654892, 0.655317, 0.655997, 0.656574, 0.656936, 0.657487,
0.658169, 0.658607, 0.659011, 0.65967, 0.660253, 0.660611,
0.661135, 0.661811, 0.662256, 0.662642, 0.663279, 0.663868,
0.664223, 0.664721, 0.665389, 0.665841, 0.666211, 0.666827,
0.667419, 0.667774, 0.668247, 0.668905, 0.669366, 0.669722,
0.670314, 0.67091, 0.671266, 0.671716, 0.672362, 0.672832,
0.673175, 0.673745, 0.674343, 0.674701, 0.675128, 0.675762,
0.67624, 0.676573, 0.677119, 0.677718, 0.678081, 0.678486,
0.679107, 0.679593, 0.679917, 0.680441, 0.681039, 0.681406,
0.681792, 0.682398, 0.682891, 0.68321, 0.68371, 0.684307,
0.68468, 0.685047, 0.685637, 0.686138, 0.686452, 0.686929,
0.687523, 0.687903, 0.688253, 0.688826, 0.689334, 0.689644,
0.6901, 0.690689, 0.691076, 0.691411, 0.691967, 0.692481,
0.69279, 0.693224, 0.693807, 0.694202, 0.694524, 0.695061,
0.69558, 0.695889, 0.696302, 0.696878, 0.697281, 0.697591,
0.69811, 0.698632, 0.698943, 0.699336, 0.699903, 0.700315,
0.700615, 0.701114, 0.70164, 0.701954, 0.702327, 0.702885,
0.703304, 0.703596, 0.704076, 0.704603, 0.704921, 0.705277,
0.705823, 0.706251, 0.706536, 0.706997, 0.707524, 0.707847,
0.708186, 0.708721, 0.709156, 0.709436, 0.709877, 0.710404,
0.710733, 0.711056, 0.711578, 0.712021, 0.712297, 0.712718,
0.713244, 0.713579, 0.713888, 0.714396, 0.714845, 0.71512,
0.715522, 0.716044, 0.716387, 0.716683, 0.717176, 0.717632,
0.717905, 0.718289, 0.718807, 0.719157, 0.719442, 0.719919,
0.72038, 0.720654, 0.72102, 0.721533, 0.721891, 0.722166,
0.722627, 0.723092, 0.723368, 0.723717, 0.724222, 0.724589,
0.724855, 0.7253, 0.725768, 0.726047, 0.72638, 0.726877,
0.727251, 0.727511, 0.727938, 0.72841, 0.728693, 0.72901,
0.729498, 0.72988, 0.730134, 0.730545, 0.731017, 0.731305,
0.731607, 0.732085, 0.732475, 0.732725, 0.733119, 0.733591,
0.733885, 0.734174, 0.734641, 0.735038, 0.735285, 0.735662,
0.736133, 0.736434, 0.73671, 0.737165, 0.737569, 0.737814,
0.738175, 0.738644, 0.738952, 0.739217, 0.739659, 0.740069,
0.740314, 0.740658, 0.741124, 0.741439, 0.741694, 0.742123,
0.742538, 0.742784, 0.743113, 0.743574, 0.743897, 0.744143,
0.744558, 0.744978, 0.745226, 0.745539, 0.745995, 0.746325,
0.746564, 0.746965, 0.747388, 0.74764, 0.747938, 0.748388,
0.748726, 0.748959, 0.749345, 0.749771, 0.750026, 0.750311,
0.750752, 0.751098, 0.751326, 0.751697, 0.752125, 0.752385,
0.752658, 0.75309, 0.753443, 0.753668, 0.754024, 0.754452,
0.754718, 0.754979, 0.755402, 0.755762, 0.755984, 0.756326,
0.756753, 0.757026, 0.757275, 0.757688, 0.758054, 0.758276,
0.758602, 0.759029, 0.759307, 0.759547, 0.759949, 0.760321,
0.760543, 0.760855, 0.761278, 0.761564, 0.761795, 0.762185,
0.762563, 0.762785, 0.763083, 0.763504, 0.763797, 0.76402,
0.764397, 0.76478, 0.765005, 0.765289, 0.765705, 0.766005,
0.766222, 0.766587, 0.766973, 0.767201, 0.767472, 0.767882,
0.76819, 0.768402, 0.768753, 0.769142, 0.769374, 0.769634,
0.770037, 0.770352, 0.770559, 0.770898, 0.771288, 0.771526,
0.771773, 0.772169, 0.772491, 0.772695, 0.77302, 0.773412,
0.773655, 0.773892, 0.774279, 0.774608, 0.77481, 0.775122,
0.775514, 0.775762, 0.775989, 0.776367, 0.776703, 0.776905,
0.777203, 0.777594, 0.777849, 0.778067, 0.778435, 0.778776,
0.778978, 0.779264, 0.779653, 0.779914, 0.780125, 0.780482,
0.780829, 0.781032, 0.781305, 0.781691, 0.781959, 0.782163,
0.782509, 0.78286, 0.783066, 0.783327, 0.783708, 0.783984,
0.784182, 0.784517, 0.784872, 0.785081, 0.785329, 0.785706,
0.785989, 0.786182, 0.786506, 0.786863, 0.787076, 0.787314,
0.787685, 0.787975, 0.788164, 0.788475, 0.788835, 0.789053,
0.78928, 0.789644, 0.789941, 0.790128, 0.790427, 0.790788,
0.791011, 0.791228, 0.791585, 0.791888, 0.792074, 0.792361,
0.792722, 0.792951, 0.793159, 0.793508, 0.793817, 0.794002,
0.794277, 0.794638, 0.794873, 0.795073, 0.795413, 0.795728,
0.795914, 0.796176, 0.796536, 0.796777, 0.79697, 0.7973,
0.797621, 0.797808, 0.798059, 0.798415, 0.798664, 0.798851,
0.799171, 0.799495, 0.799685, 0.799925, 0.800278, 0.800533,
0.800715, 0.801024, 0.801353, 0.801546, 0.801775, 0.802124,
0.802386, 0.802563, 0.802862, 0.803194, 0.80339, 0.803609,
0.803953, 0.804221, 0.804396, 0.804684, 0.805017, 0.805218,
0.805428, 0.805765, 0.806041, 0.806213, 0.80649, 0.806825,
0.807031, 0.807231, 0.807562, 0.807844, 0.808015, 0.80828,
0.808616, 0.808828, 0.80902, 0.809343, 0.809631, 0.809802,
0.810056, 0.810392, 0.810609, 0.810794, 0.811109, 0.811402,
0.811574, 0.811817, 0.812151, 0.812375, 0.812554, 0.81286,
0.813158, 0.813331, 0.813564, 0.813896, 0.814126, 0.814299,
0.814597, 0.814899, 0.815074, 0.815297, 0.815626, 0.815863,
0.816031, 0.816319, 0.816625, 0.816803, 0.817016, 0.817341,
0.817584, 0.817749, 0.818026, 0.818336, 0.818518, 0.818721,
0.819041, 0.819291, 0.819453, 0.81972, 0.820032, 0.820219,
0.820413, 0.820728, 0.820984, 0.821144, 0.821401, 0.821714,
0.821906, 0.822091, 0.8224, 0.822663, 0.822821, 0.823068,
0.823382, 0.823579, 0.823757, 0.824059, 0.824328, 0.824486,
0.824723, 0.825036, 0.825239, 0.825411, 0.825705, 0.825979,
0.826138, 0.826365, 0.826677, 0.826886, 0.827052, 0.827338,
0.827616, 0.827777, 0.827994, 0.828304, 0.82852, 0.82868,
0.828958, 0.829241, 0.829404, 0.829611, 0.829919, 0.83014,
0.830296, 0.830565, 0.830852, 0.831018, 0.831216, 0.83152,
0.831748, 0.831901, 0.832161, 0.83245, 0.83262, 0.832809,
0.833109, 0.833343, 0.833494, 0.833744, 0.834036, 0.83421,
0.834391, 0.834686, 0.834926, 0.835075, 0.835315, 0.835609,
0.835788, 0.835961, 0.83625, 0.836497, 0.836644, 0.836875,
0.83717, 0.837354, 0.83752, 0.837803, 0.838055, 0.838202,
0.838424, 0.838718, 0.838908, 0.839068, 0.839344, 0.839601,
0.839749, 0.839961, 0.840255, 0.840451, 0.840605, 0.840873,
0.841135, 0.841285, 0.841488, 0.84178, 0.841982, 0.842131,
0.842392, 0.842658, 0.84281, 0.843004, 0.843293, 0.843501,
0.843647, 0.843899, 0.844169, 0.844324, 0.844509, 0.844796,
0.84501, 0.845152, 0.845396, 0.845668, 0.845827, 0.846004,
0.846287, 0.846507, 0.846647, 0.846882, 0.847157, 0.84732,
0.847489, 0.847767, 0.847993, 0.848131, 0.848357, 0.848634,
0.848802, 0.848964, 0.849236, 0.849468, 0.849606, 0.849823,
0.8501, 0.850273, 0.850429, 0.850695, 0.850933, 0.851071,
0.851278, 0.851556, 0.851734, 0.851884, 0.852144, 0.852386,
0.852525, 0.852724, 0.853001, 0.853185, 0.853329, 0.853582,
0.853829, 0.85397, 0.85416, 0.854436, 0.854626, 0.854765,
0.855011, 0.855262, 0.855405, 0.855587, 0.85586, 0.856056,
0.856192, 0.85643, 0.856685, 0.85683, 0.857004, 0.857275,
0.857476, 0.85761, 0.857839, 0.858097, 0.858246, 0.858412,
0.858679, 0.858887, 0.859018, 0.85924, 0.859499, 0.859653,
0.859812, 0.860074, 0.860288, 0.860417, 0.86063, 0.860892,
0.86105, 0.861202, 0.861459, 0.861678, 0.861808, 0.862012,
0.862275, 0.862437, 0.862583, 0.862835, 0.86306, 0.863189,
0.863385, 0.863648, 0.863816, 0.863956, 0.864202, 0.864432,
0.864562, 0.864749, 0.865012, 0.865185, 0.865321, 0.86556,
0.865794, 0.865926, 0.866105, 0.866366, 0.866545, 0.866677,
0.866909, 0.867147, 0.867281, 0.867452, 0.867711, 0.867896,
0.868024, 0.868249, 0.868491, 0.868628, 0.868791, 0.869048,
0.869239, 0.869364, 0.869581, 0.869825, 0.869966, 0.870122,
0.870375, 0.870572, 0.870695, 0.870904, 0.871151, 0.871296,
0.871445, 0.871694, 0.871896, 0.872018, 0.87222, 0.872468,
0.872617, 0.87276, 0.873004, 0.873212, 0.873334, 0.873527,
0.873776, 0.87393, 0.874067, 0.874306, 0.874519, 0.874641,
0.874826, 0.875076, 0.875235, 0.875367, 0.8756, 0.875818,
0.87594, 0.876118, 0.876367, 0.876531, 0.876658, 0.876886,
0.877108, 0.877232, 0.877401, 0.87765, 0.877819, 0.877943,
0.878163, 0.878389, 0.878516, 0.878678, 0.878924, 0.8791,
0.87922, 0.879433, 0.879663, 0.879792, 0.879947, 0.88019,
0.880372, 0.880489, 0.880696, 0.880928, 0.881061, 0.881208,
0.881449, 0.881636, 0.881752, 0.88195, 0.882185, 0.882322,
0.882463, 0.8827, 0.882892, 0.883007, 0.883198, 0.883434,
0.883575, 0.88371, 0.883943, 0.88414, 0.884254, 0.884438,
0.884675, 0.884821, 0.88495, 0.885178, 0.885381, 0.885495,
0.885671, 0.885909, 0.886059, 0.886184, 0.886406, 0.886613,
0.886729, 0.886897, 0.887135, 0.88729, 0.887411, 0.887627,
0.887838, 0.887956, 0.888116, 0.888353, 0.888514, 0.88863,
0.88884, 0.889056, 0.889175, 0.889329, 0.889564, 0.88973,
0.889844, 0.890047, 0.890266, 0.890388, 0.890534, 0.890767,
0.890939, 0.89105, 0.891246, 0.891468, 0.891594, 0.891734,
0.891963, 0.892141, 0.89225, 0.892439, 0.892663, 0.892793,
0.892926, 0.893152, 0.893336, 0.893444, 0.893626, 0.893851,
0.893985, 0.894113, 0.894335, 0.894523, 0.894631, 0.894805,
0.895032, 0.89517, 0.895293, 0.89551, 0.895703, 0.895812,
0.895979, 0.896206, 0.896349, 0.896467, 0.896679, 0.896877,
0.896986, 0.897146, 0.897373, 0.897521, 0.897634, 0.897841,
0.898043, 0.898154, 0.898306, 0.898532, 0.898686, 0.898796,
0.898996, 0.899202, 0.899315, 0.899461, 0.899686, 0.899845,
0.899952, 0.900145, 0.900355, 0.900471, 0.90061, 0.900832,
0.900996, 0.901101, 0.901288, 0.901501, 0.90162, 0.901752,
0.901972, 0.902142, 0.902245, 0.902425, 0.90264, 0.902763,
0.902889, 0.903105, 0.90328, 0.903383, 0.903556, 0.903772,
0.903899, 0.90402, 0.904232, 0.904413, 0.904514, 0.904681,
0.904898, 0.90503, 0.905145, 0.905353, 0.905538, 0.905641,
0.9058, 0.906018, 0.906154, 0.906265, 0.906468, 0.906658,
0.906761, 0.906913, 0.907131, 0.907272, 0.907379, 0.907577,
0.90777, 0.907875, 0.908021, 0.908237, 0.908384, 0.908488,
0.90868, 0.908877, 0.908984, 0.909123, 0.909338, 0.90949,
0.909591, 0.909777, 0.909977, 0.910087, 0.910219, 0.910433,
0.91059, 0.910689, 0.910868, 0.911072, 0.911185, 0.911311,
0.911521, 0.911684, 0.911781, 0.911954, 0.91216, 0.912276,
0.912397, 0.912604, 0.912772, 0.912868, 0.913034, 0.913241,
0.913362, 0.913477, 0.913681, 0.913853, 0.91395, 0.914109,
0.914317, 0.914443, 0.914553, 0.914752, 0.914929, 0.915026,
0.915178, 0.915387, 0.915518, 0.915623, 0.915818, 0.915999,
0.916097, 0.916243, 0.916452, 0.916587, 0.916688, 0.916878,
0.917064, 0.917163, 0.917302, 0.91751, 0.91765, 0.917749,
0.917932, 0.918122, 0.918224, 0.918356, 0.918563, 0.918708,
0.918804, 0.918982, 0.919175, 0.919279, 0.919405, 0.91961,
0.919761, 0.919854, 0.920026, 0.920222, 0.920329, 0.920449,
0.920652, 0.920808, 0.9209, 0.921065, 0.921263, 0.921374,
0.921489, 0.921688, 0.921849, 0.921941, 0.922099, 0.922299,
0.922414, 0.922523, 0.922719, 0.922885, 0.922976, 0.923128,
0.923329, 0.923449, 0.923553, 0.923745, 0.923915, 0.924007,
0.924152, 0.924354, 0.924478, 0.924578, 0.924765, 0.92494,
0.925033, 0.925172, 0.925373, 0.925503, 0.925599, 0.925781,
0.92596, 0.926054, 0.926187, 0.926387, 0.926522, 0.926615,
0.926791, 0.926974, 0.927071, 0.927197, 0.927396, 0.927536,
0.927626, 0.927797, 0.927983, 0.928082, 0.928202, 0.9284,
0.928544, 0.928633, 0.928798, 0.928987, 0.929089, 0.929203,
0.929399, 0.929548, 0.929636, 0.929794, 0.929985, 0.930091,
0.9302, 0.930392, 0.930547, 0.930634, 0.930786, 0.930978,
0.931089, 0.931192, 0.931381, 0.93154, 0.931627, 0.931773,
0.931967, 0.932081, 0.93218, 0.932365, 0.932529, 0.932616,
0.932756, 0.93295, 0.933069, 0.933164, 0.933344, 0.933513,
0.933601, 0.933734, 0.933928, 0.934052, 0.934144, 0.934319,
0.934491, 0.934581, 0.934708, 0.934901, 0.93503, 0.935119,
0.935289, 0.935465, 0.935557, 0.935677, 0.93587, 0.936004,
0.93609, 0.936254, 0.936433, 0.936528, 0.936643, 0.936834,
0.936973, 0.937057, 0.937215, 0.937397, 0.937495, 0.937604,
0.937793, 0.937937, 0.93802, 0.938172, 0.938356, 0.938458,
0.938562, 0.938747, 0.938896, 0.938978, 0.939125, 0.939311,
0.939416, 0.939515, 0.939697, 0.939851, 0.939933, 0.940073,
0.94026, 0.94037, 0.940464, 0.940642, 0.940801, 0.940883,
0.941017, 0.941205, 0.941319, 0.94141, 0.941583, 0.941746,
0.94183, 0.941957, 0.942145, 0.942264, 0.942351, 0.94252,
0.942687, 0.942772, 0.942894, 0.943081, 0.943205, 0.943289,
0.943453, 0.943623, 0.943711, 0.943826, 0.944012, 0.944141,
0.944223, 0.944381, 0.944554, 0.944645, 0.944754, 0.944939,
0.945073, 0.945153, 0.945305, 0.945481, 0.945575, 0.945679,
0.945861, 0.946, 0.946079, 0.946226, 0.946404, 0.946501,
0.9466, 0.946779, 0.946923, 0.947001, 0.947142, 0.947322,
0.947423, 0.947517, 0.947693, 0.947842, 0.94792, 0.948055,
0.948236, 0.948341, 0.948431, 0.948603, 0.948756, 0.948835,
0.948963, 0.949145, 0.949255, 0.949341, 0.949509, 0.949666,
0.949746, 0.949868, 0.95005, 0.950165, 0.950247, 0.950411,
0.950572, 0.950653, 0.95077, 0.950951, 0.95107, 0.95115,
0.951308, 0.951473, 0.951557, 0.951667, 0.951848, 0.951972,
0.95205, 0.952202, 0.95237, 0.952457, 0.952562, 0.95274,
0.952869, 0.952945, 0.953093, 0.953263, 0.953353, 0.953452,
0.953629, 0.953763, 0.953838, 0.953979, 0.954152, 0.954245,
0.95434, 0.954513, 0.954652, 0.954726, 0.954862, 0.955037,
0.955133, 0.955224, 0.955394, 0.955537, 0.955612, 0.955741,
0.955917, 0.956018, 0.956104, 0.956271, 0.956419, 0.956494,
0.956617, 0.956794, 0.956899, 0.956981, 0.957144, 0.957296,
0.957372, 0.95749, 0.957666, 0.957776, 0.957855, 0.958013,
0.958169, 0.958247, 0.958359, 0.958534, 0.958649, 0.958726,
0.958878, 0.959038, 0.959118, 0.959224, 0.959399, 0.959519,
0.959593, 0.959741, 0.959903, 0.959986, 0.960087, 0.96026,
0.960385, 0.960457, 0.960599, 0.960765, 0.96085, 0.960946,
0.961117, 0.961246, 0.961318, 0.961454, 0.961622, 0.961711,
0.961802, 0.96197, 0.962105, 0.962175, 0.962306, 0.962475,
0.962568, 0.962654, 0.96282, 0.962959, 0.963029, 0.963154,
0.963325, 0.963422, 0.963504, 0.963666, 0.963809, 0.96388,
0.964, 0.964171, 0.964273, 0.964351, 0.964508, 0.964656,
0.964728, 0.964842, 0.965013, 0.965119, 0.965194, 0.965347,
0.965499, 0.965573, 0.96568, 0.965851, 0.965962, 0.966035,
0.966183, 0.966338, 0.966414, 0.966516, 0.966686, 0.966802,
0.966872, 0.967015, 0.967173, 0.967252, 0.967349, 0.967517,
0.967638, 0.967707, 0.967844, 0.968005, 0.968087, 0.968179,
0.968345, 0.96847, 0.968538, 0.96867, 0.968833, 0.968919,
0.969005, 0.969169, 0.969299, 0.969366, 0.969493, 0.969658,
0.969747, 0.969829, 0.96999, 0.970125, 0.970192, 0.970312,
0.970479, 0.970572, 0.97065, 0.970807, 0.970946, 0.971014,
0.971129, 0.971296, 0.971394, 0.971468, 0.971621, 0.971765,
0.971834, 0.971943, 0.97211, 0.972212, 0.972283, 0.972432,
0.972579, 0.97265, 0.972753, 0.97292, 0.973027, 0.973096,
0.97324, 0.973391, 0.973463, 0.973561, 0.973727, 0.973839,
0.973905, 0.974044, 0.974198, 0.974274, 0.974366, 0.97453,
0.974647, 0.974712, 0.974846, 0.975002, 0.975081, 0.975168,
0.97533, 0.975452, 0.975516, 0.975644, 0.975803, 0.975885,
0.975968, 0.976127, 0.976254, 0.976317, 0.97644, 0.9766,
0.976686, 0.976765, 0.976921, 0.977052, 0.977116, 0.977232,
0.977394, 0.977484, 0.977559, 0.977712, 0.977847, 0.977911,
0.978022, 0.978185, 0.978279, 0.97835, 0.978499, 0.978639,
0.978704, 0.978809, 0.978972, 0.979071, 0.979139, 0.979283,
0.979427, 0.979494, 0.979594, 0.979756, 0.97986, 0.979925,
0.980065, 0.980212, 0.980281, 0.980376, 0.980537, 0.980646,
0.980709, 0.980843, 0.980994, 0.981066, 0.981155, 0.981315,
0.981428, 0.98149, 0.981619, 0.981772, 0.981847, 0.981931,
0.982089, 0.982207, 0.982268, 0.982392, 0.982547, 0.982626,
0.982705, 0.98286, 0.982983, 0.983044, 0.983162, 0.983319,
0.983402, 0.983477, 0.983629, 0.983756, 0.983817, 0.98393,
0.984088, 0.984175, 0.984246, 0.984394, 0.984526, 0.984587,
0.984695, 0.984853, 0.984944, 0.985012, 0.985157, 0.985293,
0.985355, 0.985457, 0.985616, 0.985711, 0.985776, 0.985917,
0.986057, 0.986121, 0.986217, 0.986375, 0.986476, 0.986538,
0.986673, 0.986817, 0.986883, 0.986974, 0.987131, 0.987237,
0.987297, 0.987428, 0.987574, 0.987643, 0.987729, 0.987885,
0.987995, 0.988053, 0.988179, 0.988328, 0.988401, 0.988481,
0.988635, 0.98875, 0.988808, 0.988928, 0.98908, 0.989155,
0.989231, 0.989383, 0.989502, 0.989559, 0.989674, 0.989828,
0.989907, 0.989979, 0.990127, 0.990252, 0.990309, 0.990418,
0.990573, 0.990656, 0.990724, 0.990869, 0.990998, 0.991056,
0.99116, 0.991315, 0.991403, 0.991467, 0.991608, 0.991741,
0.9918, 0.991899, 0.992054, 0.992147, 0.992208, 0.992345,
0.992482, 0.992543, 0.992635, 0.99279, 0.992888, 0.992946,
0.993079, 0.993219, 0.993282, 0.993369, 0.993523, 0.993626,
0.993682, 0.99381, 0.993953, 0.994019, 0.994101, 0.994254,
0.994361, 0.994416, 0.994539, 0.994685, 0.994754, 0.994831,
0.994982, 0.995094, 0.995148, 0.995265, 0.995413, 0.995486,
0.995559, 0.995707, 0.995823, 0.995877, 0.995989, 0.996139,
0.996215, 0.996284, 0.996429, 0.99655, 0.996605, 0.99671,
0.996862, 0.996942, 0.997007, 0.997149, 0.997274, 0.997329,
0.99743, 0.997582, 0.997667, 0.997728, 0.997866, 0.997996,
0.998052, 0.998147, 0.998299, 0.998389, 0.998447, 0.99858,
0.998714, 0.998772, 0.998861, 0.999013, 0.999108, 0.999164,
0.999292, 0.99943, 0.999491, 0.999574, 0.999724, 0.999825,
0.999879, 1
};
static const float WAVE_LOGARITHMIC_006[DEFAULT_WAVELEN] = {
-1, -0.6545, -0.489904, -0.404418, -0.34421, -0.293024,
-0.257625, -0.220193, -0.195928, -0.165941, -0.147981, -0.122683,
-0.108762, -0.086705, -0.0755758, -0.0559083, -0.0468089, -0.0289895,
-0.0214188, -0.00508299, 0.00130721, 0.0164156, 0.0218779, 0.0359449,
0.040669, 0.0538337, 0.057966, 0.0703345, 0.0739906, 0.0856458,
0.0889188, 0.0999262, 0.102892, 0.113305, 0.116027, 0.125887,
0.128418, 0.137763, 0.140147, 0.149006, 0.151282, 0.15968,
0.161879, 0.169839, 0.171989, 0.179531, 0.181655, 0.188796,
0.190915, 0.19767, 0.1998, 0.206185, 0.208341, 0.214369,
0.216563, 0.222247, 0.224489, 0.229841, 0.232138, 0.237171,
0.23953, 0.244255, 0.246681, 0.25111, 0.253605, 0.25775,
0.260317, 0.264189, 0.266828, 0.270438, 0.27315, 0.27651,
0.279293, 0.282415, 0.285265, 0.288161, 0.291077, 0.293758,
0.296736, 0.299214, 0.302249, 0.304536, 0.307623, 0.309731,
0.312864, 0.314806, 0.317979, 0.319766, 0.322973, 0.324617,
0.327851, 0.329363, 0.332618, 0.334011, 0.337279, 0.338563,
0.341837, 0.343025, 0.346297, 0.3474, 0.350663, 0.351691,
0.354939, 0.355903, 0.359127, 0.360038, 0.363231, 0.364099,
0.367254, 0.368088, 0.3712, 0.372009, 0.37507, 0.375864,
0.378868, 0.379655, 0.382597, 0.383384, 0.386258, 0.387054,
0.389855, 0.390665, 0.393389, 0.394221, 0.396862, 0.397721,
0.400277, 0.401169, 0.403636, 0.404565, 0.406941, 0.407911,
0.410194, 0.411208, 0.413395, 0.414457, 0.416548, 0.41766,
0.419654, 0.420818, 0.422714, 0.423931, 0.42573, 0.427001,
0.428703, 0.430029, 0.431636, 0.433015, 0.434528, 0.43596,
0.437382, 0.438866, 0.440199, 0.441733, 0.44298, 0.444561,
0.445726, 0.447352, 0.448438, 0.450107, 0.451118, 0.452826,
0.453765, 0.455509, 0.456383, 0.458158, 0.45897, 0.460773,
0.461528, 0.463355, 0.464058, 0.465904, 0.466561, 0.468421,
0.469037, 0.470907, 0.471487, 0.473363, 0.473912, 0.475788,
0.476312, 0.478184, 0.478689, 0.480552, 0.481041, 0.482891,
0.483371, 0.485202, 0.485678, 0.487487, 0.487963, 0.489745,
0.490226, 0.491978, 0.492468, 0.494185, 0.494689, 0.496368,
0.496889, 0.498527, 0.49907, 0.500663, 0.50123, 0.502775,
0.50337, 0.504866, 0.505491, 0.506935, 0.507593, 0.508983,
0.509676, 0.51101, 0.51174, 0.513018, 0.513785, 0.515006,
0.515812, 0.516975, 0.51782, 0.518926, 0.519811, 0.520858,
0.521783, 0.522774, 0.523738, 0.524672, 0.525675, 0.526554,
0.527595, 0.52842, 0.529497, 0.530271, 0.531382, 0.532106,
0.533251, 0.533926, 0.535102, 0.535732, 0.536936, 0.537524,
0.538754, 0.539303, 0.540556, 0.541068, 0.542341, 0.54282,
0.54411, 0.544559, 0.545864, 0.546286, 0.547601, 0.548001,
0.549323, 0.549704, 0.55103, 0.551395, 0.552722, 0.553075,
0.554398, 0.554743, 0.55606, 0.5564, 0.557708, 0.558047,
0.559341, 0.559682, 0.560961, 0.561307, 0.562566, 0.562922,
0.564159, 0.564525, 0.565738, 0.566119, 0.567304, 0.567702,
0.568857, 0.569275, 0.570398, 0.570838, 0.571926, 0.572391,
0.573443, 0.573933, 0.574949, 0.575466, 0.576442, 0.576989,
0.577925, 0.578501, 0.579397, 0.580004, 0.580859, 0.581497,
0.58231, 0.582979, 0.583752, 0.584452, 0.585183, 0.585915,
0.586606, 0.587368, 0.588019, 0.588811, 0.589423, 0.590244,
0.590818, 0.591667, 0.592205, 0.59308, 0.593583, 0.594484,
0.594954, 0.595877, 0.596316, 0.597261, 0.597671, 0.598635,
0.599019, 0.599999, 0.600359, 0.601354, 0.601692, 0.602699,
0.603018, 0.604034, 0.604337, 0.60536, 0.605649, 0.606677,
0.606955, 0.607984, 0.608254, 0.609282, 0.609547, 0.61057,
0.610833, 0.61185, 0.612113, 0.613121, 0.613387, 0.614383,
0.614654, 0.615637, 0.615916, 0.616882, 0.617171, 0.618118,
0.61842, 0.619347, 0.619663, 0.620567, 0.6209, 0.62178,
0.622131, 0.622984, 0.623356, 0.624182, 0.624574, 0.625371,
0.625787, 0.626554, 0.626993, 0.62773, 0.628193, 0.628898,
0.629387, 0.63006, 0.630575, 0.631216, 0.631757, 0.632365,
0.632932, 0.633508, 0.6341, 0.634645, 0.635263, 0.635776,
0.636419, 0.636901, 0.637568, 0.638021, 0.638711, 0.639136,
0.639848, 0.640245, 0.640978, 0.641349, 0.642101, 0.642449,
0.643218, 0.643543, 0.644328, 0.644633, 0.645432, 0.645718,
0.64653, 0.646798, 0.64762, 0.647874, 0.648705, 0.648946,
0.649782, 0.650014, 0.650854, 0.651077, 0.651919, 0.652136,
0.652977, 0.653192, 0.65403, 0.654243, 0.655076, 0.65529,
0.656116, 0.656333, 0.65715, 0.657372, 0.658178, 0.658407,
0.6592, 0.659439, 0.660216, 0.660466, 0.661226, 0.661489,
0.662231, 0.662509, 0.663231, 0.663524, 0.664225, 0.664535,
0.665213, 0.665542, 0.666197, 0.666546, 0.667176, 0.667544,
0.668149, 0.668539, 0.669118, 0.66953, 0.670082, 0.670516,
0.671042, 0.671498, 0.671998, 0.672476, 0.672949, 0.673449,
0.673896, 0.674417, 0.674839, 0.675381, 0.675778, 0.676341,
0.676713, 0.677296, 0.677645, 0.678247, 0.678573, 0.679192,
0.679497, 0.680133, 0.680419, 0.68107, 0.681337, 0.682001,
0.682251, 0.682928, 0.683163, 0.68385, 0.684072, 0.684768,
0.684977, 0.68568, 0.68588, 0.686588, 0.68678, 0.687491,
0.687677, 0.68839, 0.688571, 0.689283, 0.689462, 0.690173,
0.690351, 0.691057, 0.691237, 0.691937, 0.69212, 0.692812,
0.693001, 0.693684, 0.693879, 0.69455, 0.694754, 0.695413,
0.695626, 0.696271, 0.696496, 0.697125, 0.697363, 0.697975,
0.698227, 0.698821, 0.699088, 0.699663, 0.699947, 0.700501,
0.700802, 0.701335, 0.701655, 0.702166, 0.702504, 0.702994,
0.70335, 0.703818, 0.704194, 0.704639, 0.705034, 0.705456,
0.705871, 0.706271, 0.706704, 0.707082, 0.707535, 0.70789,
0.708362, 0.708696, 0.709185, 0.709499, 0.710005, 0.710299,
0.710822, 0.711097, 0.711635, 0.711892, 0.712445, 0.712685,
0.713251, 0.713476, 0.714053, 0.714264, 0.714852, 0.71505,
0.715647, 0.715834, 0.716439, 0.716616, 0.717226, 0.717395,
0.71801, 0.718173, 0.718791, 0.718949, 0.719568, 0.719722,
0.720341, 0.720494, 0.721111, 0.721264, 0.721877, 0.722032,
0.72264, 0.722798, 0.723399, 0.723562, 0.724154, 0.724324,
0.724907, 0.725084, 0.725656, 0.725843, 0.726401, 0.726599,
0.727144, 0.727353, 0.727883, 0.728105, 0.728619, 0.728855,
0.729352, 0.729603, 0.730083, 0.730349, 0.73081, 0.731092,
0.731535, 0.731833, 0.732257, 0.732572, 0.732976, 0.733309,
0.733693, 0.734043, 0.734407, 0.734775, 0.735119, 0.735504,
0.735829, 0.73623, 0.736537, 0.736954, 0.737242, 0.737676,
0.737945, 0.738394, 0.738647, 0.73911, 0.739346, 0.739823,
0.740044, 0.740534, 0.74074, 0.741241, 0.741434, 0.741946,
0.742127, 0.742648, 0.742817, 0.743346, 0.743507, 0.744042,
0.744195, 0.744735, 0.744881, 0.745425, 0.745566, 0.746113,
0.746249, 0.746797, 0.746931, 0.747478, 0.747611, 0.748157,
0.74829, 0.748832, 0.748968, 0.749505, 0.749644, 0.750175,
0.750319, 0.750842, 0.750993, 0.751507, 0.751665, 0.752169,
0.752335, 0.752828, 0.753004, 0.753484, 0.753672, 0.754138,
0.754337, 0.75479, 0.755002, 0.755439, 0.755664, 0.756086,
0.756325, 0.756731, 0.756985, 0.757373, 0.757642, 0.758014,
0.758298, 0.758652, 0.758952, 0.759288, 0.759603, 0.759923,
0.760253, 0.760555, 0.760901, 0.761186, 0.761547, 0.761815,
0.762191, 0.762442, 0.762833, 0.763068, 0.763472, 0.763692,
0.764109, 0.764315, 0.764744, 0.764937, 0.765377, 0.765557,
0.766008, 0.766175, 0.766636, 0.766793, 0.767261, 0.767409,
0.767885, 0.768024, 0.768506, 0.768638, 0.769124, 0.769251,
0.76974, 0.769863, 0.770354, 0.770474, 0.770965, 0.771083,
0.771574, 0.771692, 0.772181, 0.772299, 0.772785, 0.772906,
0.773387, 0.773511, 0.773987, 0.774115, 0.774584, 0.774719,
0.775179, 0.775321, 0.775772, 0.775922, 0.776362, 0.776522,
0.776951, 0.77712, 0.777537, 0.777718, 0.778122, 0.778314,
0.778704, 0.778909, 0.779285, 0.779502, 0.779864, 0.780094,
0.780441, 0.780685, 0.781016, 0.781275, 0.781589, 0.781862,
0.782161, 0.782449, 0.782732, 0.783033, 0.783301, 0.783616,
0.783868, 0.784198, 0.784434, 0.784777, 0.784999, 0.785355,
0.785563, 0.785931, 0.786125, 0.786505, 0.786687, 0.787078,
0.787247, 0.787648, 0.787806, 0.788217, 0.788364, 0.788783,
0.788921, 0.789348, 0.789478, 0.78991, 0.790033, 0.790471,
0.790587, 0.791029, 0.791141, 0.791586, 0.791694, 0.79214,
0.792246, 0.792693, 0.792797, 0.793243, 0.793347, 0.793791,
0.793897, 0.794338, 0.794446, 0.794882, 0.794994, 0.795425,
0.795541, 0.795965, 0.796087, 0.796504, 0.796633, 0.797041,
0.797177, 0.797576, 0.797721, 0.798109, 0.798264, 0.79864,
0.798806, 0.79917, 0.799346, 0.799698, 0.799886, 0.800225,
0.800425, 0.80075, 0.800962, 0.801274, 0.801499, 0.801796,
0.802034, 0.802316, 0.802568, 0.802836, 0.803101, 0.803354,
0.803632, 0.803871, 0.804162, 0.804387, 0.80469, 0.804901,
0.805217, 0.805415, 0.805743, 0.805928, 0.806267, 0.80644,
0.80679, 0.80695, 0.807311, 0.80746, 0.80783, 0.80797,
0.808347, 0.808478, 0.808863, 0.808986, 0.809378, 0.809492,
0.80989, 0.809999, 0.810401, 0.810504, 0.81091, 0.811009,
0.811417, 0.811513, 0.811923, 0.812017, 0.812427, 0.81252,
0.812929, 0.813023, 0.813429, 0.813524, 0.813928, 0.814026,
0.814425, 0.814526, 0.81492, 0.815026, 0.815414, 0.815525,
0.815906, 0.816024, 0.816396, 0.816522, 0.816885, 0.817019,
0.817373, 0.817515, 0.817858, 0.818011, 0.818343, 0.818506,
0.818826, 0.819, 0.819308, 0.819493, 0.819788, 0.819985,
0.820267, 0.820476, 0.820745, 0.820966, 0.821222, 0.821456,
0.821698, 0.821944, 0.822172, 0.822431, 0.822646, 0.822916,
0.823119, 0.823401, 0.823591, 0.823884, 0.824062, 0.824366,
0.824532, 0.824847, 0.825001, 0.825326, 0.82547, 0.825804,
0.825938, 0.826281, 0.826405, 0.826756, 0.826872, 0.827229,
0.827338, 0.827702, 0.827804, 0.828172, 0.828269, 0.828641,
0.828733, 0.829109, 0.829197, 0.829575, 0.829661, 0.83004,
0.830124, 0.830503, 0.830587, 0.830965, 0.831049, 0.831425,
0.831511, 0.831883, 0.831972, 0.83234, 0.832433, 0.832796,
0.832893, 0.83325, 0.833353, 0.833703, 0.833812, 0.834154,
0.83427, 0.834604, 0.834728, 0.835053, 0.835186, 0.835501,
0.835643, 0.835947, 0.836099, 0.836392, 0.836554, 0.836836,
0.837009, 0.837278, 0.837463, 0.83772, 0.837916, 0.838161,
0.838368, 0.8386, 0.838819, 0.839039, 0.839269, 0.839477,
0.839719, 0.839914, 0.840167, 0.840351, 0.840614, 0.840786,
0.841061, 0.841221, 0.841506, 0.841655, 0.84195, 0.842089,
0.842393, 0.842522, 0.842834, 0.842954, 0.843274, 0.843386,
0.843713, 0.843817, 0.844151, 0.844248, 0.844588, 0.844679,
0.845023, 0.845109, 0.845457, 0.845539, 0.845889, 0.845968,
0.84632, 0.846397, 0.84675, 0.846826, 0.847178, 0.847254,
0.847605, 0.847682, 0.848031, 0.848109, 0.848456, 0.848537,
0.848879, 0.848963, 0.8493, 0.84939, 0.849721, 0.849816,
0.85014, 0.850241, 0.850558, 0.850666, 0.850975, 0.851091,
0.851391, 0.851515, 0.851806, 0.851939, 0.852219, 0.852362,
0.852632, 0.852784, 0.853043, 0.853206, 0.853454, 0.853627,
0.853864, 0.854048, 0.854272, 0.854467, 0.85468, 0.854886,
0.855087, 0.855304, 0.855494, 0.855721, 0.8559, 0.856138,
0.856305, 0.856553, 0.856709, 0.856968, 0.857113, 0.857381,
0.857516, 0.857793, 0.857919, 0.858205, 0.858321, 0.858615,
0.858723, 0.859024, 0.859125, 0.859432, 0.859526, 0.859839,
0.859926, 0.860245, 0.860327, 0.86065, 0.860727, 0.861053,
0.861127, 0.861455, 0.861526, 0.861856, 0.861925, 0.862256,
0.862324, 0.862654, 0.862723, 0.863052, 0.863121, 0.863448,
0.863519, 0.863843, 0.863917, 0.864237, 0.864315, 0.864629,
0.864712, 0.865021, 0.865109, 0.865411, 0.865505, 0.865801,
0.865902, 0.866189, 0.866297, 0.866576, 0.866693, 0.866963,
0.867088, 0.867348, 0.867482, 0.867732, 0.867876, 0.868116,
0.868269, 0.868499, 0.868662, 0.86888, 0.869054, 0.869262,
0.869446, 0.869642, 0.869837, 0.870022, 0.870227, 0.870401,
0.870616, 0.870779, 0.871005, 0.871157, 0.871393, 0.871535,
0.87178, 0.871912, 0.872166, 0.872288, 0.872551, 0.872664,
0.872935, 0.87304, 0.873318, 0.873415, 0.8737, 0.87379,
0.874081, 0.874165, 0.874462, 0.87454, 0.874841, 0.874914,
0.875219, 0.875288, 0.875596, 0.875662, 0.875971, 0.876035,
0.876346, 0.876408, 0.87672, 0.876782, 0.877092, 0.877155,
0.877464, 0.877527, 0.877834, 0.8779, 0.878204, 0.878272,
0.878572, 0.878644, 0.878939, 0.879016, 0.879305, 0.879387,
0.879671, 0.879759, 0.880035, 0.88013, 0.880398, 0.8805,
0.880761, 0.880871, 0.881122, 0.88124, 0.881483, 0.88161,
0.881843, 0.881979, 0.882202, 0.882348, 0.88256, 0.882716,
0.882918, 0.883083, 0.883275, 0.88345, 0.883631, 0.883817,
0.883987, 0.884182, 0.884342, 0.884547, 0.884697, 0.884912,
0.885051, 0.885275, 0.885405, 0.885638, 0.885758, 0.886,
0.886112, 0.886361, 0.886464, 0.886721, 0.886817, 0.887081,
0.887169, 0.887439, 0.887521, 0.887797, 0.887872, 0.888154,
0.888224, 0.888509, 0.888575, 0.888864, 0.888926, 0.889218,
0.889277, 0.88957, 0.889628, 0.889922, 0.889978, 0.890273,
0.890329, 0.890623, 0.890679, 0.890971, 0.891029, 0.891319,
0.891379, 0.891666, 0.891729, 0.892012, 0.892079, 0.892357,
0.892428, 0.892701, 0.892777, 0.893044, 0.893126, 0.893386,
0.893475, 0.893727, 0.893824, 0.894068, 0.894172, 0.894408,
0.89452, 0.894747, 0.894867, 0.895085, 0.895215, 0.895422,
0.895561, 0.895759, 0.895908, 0.896096, 0.896253, 0.896431,
0.896599, 0.896766, 0.896944, 0.897101, 0.897288, 0.897435,
0.897631, 0.897769, 0.897974, 0.898102, 0.898316, 0.898435,
0.898658, 0.898768, 0.898999, 0.8991, 0.899339, 0.899432,
0.899678, 0.899764, 0.900016, 0.900096, 0.900354, 0.900427,
0.900691, 0.900759, 0.901027, 0.90109, 0.901362, 0.901421,
0.901696, 0.901751, 0.902029, 0.902082, 0.902361, 0.902413,
0.902693, 0.902743, 0.903023, 0.903074, 0.903353, 0.903404,
0.903681, 0.903734, 0.904009, 0.904064, 0.904336, 0.904394,
0.904662, 0.904724, 0.904987, 0.905054, 0.905311, 0.905383,
0.905635, 0.905713, 0.905957, 0.906042, 0.906279, 0.906371,
0.9066, 0.906699, 0.906921, 0.907028, 0.90724, 0.907356,
0.907559, 0.907683, 0.907878, 0.908011, 0.908196, 0.908338,
0.908513, 0.908664, 0.90883, 0.90899, 0.909146, 0.909316,
0.909462, 0.909641, 0.909778, 0.909966, 0.910093, 0.910289,
0.910407, 0.910613, 0.910722, 0.910935, 0.911036, 0.911257,
0.91135, 0.911579, 0.911664, 0.911899, 0.911977, 0.912219,
0.91229, 0.912538, 0.912604, 0.912856, 0.912917, 0.913173,
0.91323, 0.91349, 0.913543, 0.913806, 0.913855, 0.914121,
0.914168, 0.914435, 0.914481, 0.914748, 0.914793, 0.91506,
0.915106, 0.915372, 0.915418, 0.915682, 0.915731, 0.915992,
0.916043, 0.916301, 0.916355, 0.91661, 0.916667, 0.916917,
0.916979, 0.917224, 0.917291, 0.917529, 0.917603, 0.917835,
0.917915, 0.918139, 0.918226, 0.918443, 0.918537, 0.918746,
0.918848, 0.919049, 0.919159, 0.91935, 0.919469, 0.919652,
0.91978, 0.919953, 0.920089, 0.920253, 0.920399, 0.920553,
0.920707, 0.920852, 0.921016, 0.921152, 0.921324, 0.92145,
0.921631, 0.921749, 0.921938, 0.922047, 0.922244, 0.922345,
0.92255, 0.922642, 0.922855, 0.92294, 0.92316, 0.923237,
0.923463, 0.923534, 0.923767, 0.923831, 0.924069, 0.924128,
0.92437, 0.924425, 0.924671, 0.924722, 0.924971, 0.925018,
0.925271, 0.925315, 0.925569, 0.925611, 0.925867, 0.925908,
0.926164, 0.926204, 0.92646, 0.926501, 0.926755, 0.926797,
0.92705, 0.927094, 0.927344, 0.92739, 0.927637, 0.927687,
0.927929, 0.927983, 0.928221, 0.928279, 0.928511, 0.928575,
0.928802, 0.928871, 0.929091, 0.929167, 0.92938, 0.929463,
0.929668, 0.929758, 0.929956, 0.930054, 0.930243, 0.930349,
0.930529, 0.930644, 0.930815, 0.930938, 0.931101, 0.931232,
0.931386, 0.931526, 0.931671, 0.93182, 0.931955, 0.932113,
0.932239, 0.932405, 0.932522, 0.932697, 0.932806, 0.932989,
0.933089, 0.93328, 0.933372, 0.93357, 0.933655, 0.93386,
0.933937, 0.93415, 0.93422, 0.934438, 0.934502, 0.934726,
0.934784, 0.935014, 0.935067, 0.9353, 0.935349, 0.935586,
0.935631, 0.935871, 0.935913, 0.936156, 0.936195, 0.93644,
0.936477, 0.936723, 0.936759, 0.937005, 0.937041, 0.937286,
0.937323, 0.937567, 0.937605, 0.937847, 0.937887, 0.938126,
0.938169, 0.938405, 0.938451, 0.938683, 0.938733, 0.93896,
0.939015, 0.939237, 0.939297, 0.939513, 0.939579, 0.939788,
0.939861, 0.940063, 0.940142, 0.940337, 0.940423, 0.94061,
0.940705, 0.940883, 0.940986, 0.941156, 0.941266, 0.941428,
0.941547, 0.9417, 0.941827, 0.941971, 0.942107, 0.942242,
0.942386, 0.942513, 0.942665, 0.942783, 0.942944, 0.943053,
0.943222, 0.943323, 0.9435, 0.943592, 0.943777, 0.943862,
0.944054, 0.944131, 0.94433, 0.9444, 0.944606, 0.944669,
0.944881, 0.944938, 0.945155, 0.945207, 0.945429, 0.945476,
0.945702, 0.945745, 0.945974, 0.946014, 0.946246, 0.946282,
0.946517, 0.946551, 0.946788, 0.94682, 0.947057, 0.947089,
0.947326, 0.947358, 0.947594, 0.947627, 0.947862, 0.947896,
0.948129, 0.948165, 0.948395, 0.948434, 0.94866, 0.948703,
0.948925, 0.948972, 0.949189, 0.949241, 0.949453, 0.94951,
0.949716, 0.949779, 0.949978, 0.950048, 0.95024, 0.950316,
0.950502, 0.950585, 0.950762, 0.950853, 0.951023, 0.951122,
0.951283, 0.95139, 0.951542, 0.951657, 0.951801, 0.951925,
0.95206, 0.952192, 0.952318, 0.952459, 0.952577, 0.952725,
0.952834, 0.952991, 0.953092, 0.953257, 0.95335, 0.953522,
0.953607, 0.953787, 0.953864, 0.954051, 0.954121, 0.954315,
0.954378, 0.954578, 0.954635, 0.95484, 0.954892, 0.955102,
0.955148, 0.955364, 0.955405, 0.955624, 0.955662, 0.955884,
0.955919, 0.956144, 0.956175, 0.956403, 0.956432, 0.956661,
0.956689, 0.956918, 0.956946, 0.957175, 0.957203, 0.957431,
0.95746, 0.957687, 0.957717, 0.957942, 0.957975, 0.958196,
0.958232, 0.958449, 0.958489, 0.958702, 0.958746, 0.958955,
0.959003, 0.959206, 0.959261, 0.959458, 0.959518, 0.959708,
0.959775, 0.959958, 0.960032, 0.960208, 0.960288, 0.960457,
0.960545, 0.960706, 0.960802, 0.960954, 0.961058, 0.961202,
0.961314, 0.96145, 0.96157, 0.961697, 0.961826, 0.961944,
0.962081, 0.962191, 0.962336, 0.962438, 0.96259, 0.962684,
0.962844, 0.96293, 0.963098, 0.963176, 0.963351, 0.963422,
0.963604, 0.963668, 0.963856, 0.963913, 0.964108, 0.964159,
0.964359, 0.964405, 0.96461, 0.964651, 0.96486, 0.964896,
0.96511, 0.965142, 0.965358, 0.965388, 0.965607, 0.965634,
0.965854, 0.96588, 0.966101, 0.966126, 0.966348, 0.966372,
0.966593, 0.966618, 0.966838, 0.966864, 0.967083, 0.96711,
0.967327, 0.967356, 0.96757, 0.967603, 0.967813, 0.967849,
0.968055, 0.968096, 0.968296, 0.968342, 0.968537, 0.968588,
0.968778, 0.968835, 0.969017, 0.969081, 0.969257, 0.969327,
0.969496, 0.969573, 0.969734, 0.969819, 0.969972, 0.970065,
0.97021, 0.970311, 0.970448, 0.970556, 0.970685, 0.970802,
0.970921, 0.971047, 0.971158, 0.971291, 0.971394, 0.971536,
0.97163, 0.97178, 0.971866, 0.972023, 0.972102, 0.972266,
0.972338, 0.972509, 0.972573, 0.972752, 0.972809, 0.972993,
0.973044, 0.973235, 0.97328, 0.973475, 0.973515, 0.973716,
0.973751, 0.973955, 0.973987, 0.974195, 0.974222, 0.974433,
0.974458, 0.974671, 0.974694, 0.974908, 0.974929, 0.975145,
0.975165, 0.975381, 0.975401, 0.975617, 0.975637, 0.975852,
0.975874, 0.976086, 0.97611, 0.97632, 0.976346, 0.976553,
0.976583, 0.976786, 0.976819, 0.977018, 0.977056, 0.977249,
0.977292, 0.97748, 0.977529, 0.977711, 0.977765, 0.977941,
0.978002, 0.97817, 0.978238, 0.978399, 0.978474, 0.978628,
0.978711, 0.978856, 0.978947, 0.979084, 0.979183, 0.979312,
0.979418, 0.979539, 0.979654, 0.979766, 0.979889, 0.979993,
0.980124, 0.98022, 0.980359, 0.980447, 0.980593, 0.980673,
0.980827, 0.980899, 0.98106, 0.981125, 0.981293, 0.981352,
0.981526, 0.981578, 0.981758, 0.981804, 0.98199, 0.98203,
0.982221, 0.982256, 0.982452, 0.982482, 0.982682, 0.982708,
0.982912, 0.982935, 0.983141, 0.983161, 0.983369, 0.983388,
0.983597, 0.983614, 0.983825, 0.983841, 0.984051, 0.984068,
0.984277, 0.984294, 0.984503, 0.984521, 0.984728, 0.984749,
0.984952, 0.984976, 0.985176, 0.985203, 0.9854, 0.98543,
0.985622, 0.985658, 0.985845, 0.985885, 0.986066, 0.986113,
0.986288, 0.98634, 0.986509, 0.986567, 0.986729, 0.986795,
0.986949, 0.987022, 0.987169, 0.987249, 0.987388, 0.987476,
0.987607, 0.987703, 0.987826, 0.98793, 0.988044, 0.988156,
0.988262, 0.988383, 0.98848, 0.988609, 0.988698, 0.988834,
0.988916, 0.98906, 0.989133, 0.989285, 0.989351, 0.989509,
0.989568, 0.989733, 0.989786, 0.989957, 0.990003, 0.990181,
0.99022, 0.990403, 0.990438, 0.990626, 0.990655, 0.990848,
0.990873, 0.991069, 0.99109, 0.99129, 0.991308, 0.99151,
0.991526, 0.99173, 0.991744, 0.991949, 0.991962, 0.992168,
0.99218, 0.992386, 0.992398, 0.992603, 0.992617, 0.99282,
0.992835, 0.993036, 0.993054, 0.993252, 0.993273, 0.993467,
0.993491, 0.993682, 0.99371, 0.993896, 0.993929, 0.99411,
0.994148, 0.994323, 0.994367, 0.994536, 0.994586, 0.994749,
0.994805, 0.994961, 0.995024, 0.995172, 0.995243, 0.995383,
0.995462, 0.995594, 0.995681, 0.995805, 0.995899, 0.996015,
0.996118, 0.996226, 0.996336, 0.996435, 0.996554, 0.996645,
0.996772, 0.996855, 0.996989, 0.997064, 0.997206, 0.997274,
0.997423, 0.997483, 0.997639, 0.997692, 0.997855, 0.997901,
0.998071, 0.998111, 0.998286, 0.99832, 0.998501, 0.998529,
0.998715, 0.998739, 0.998928, 0.998948, 0.999142, 0.999158,
0.999354, 0.999368, 0.999566, 0.999578, 0.999778, 0.999788,
0.999988, 1
};
static const float WAVE_LOGARITHMIC_018[DEFAULT_WAVELEN] = {
-1, -0.870898, -0.620127, -0.467833, -0.443078, -0.421195,
-0.350966, -0.295888, -0.28627, -0.272882, -0.231073, -0.198446,
-0.193078, -0.182788, -0.152685, -0.130102, -0.126675, -0.117961,
-0.0942935, -0.0774275, -0.0750708, -0.0672973, -0.0477344, -0.0345702,
-0.0328602, -0.0257033, -0.00901073, 0.00155559, 0.00285714, 0.00958212,
0.0241363, 0.0327771, 0.0338178, 0.0402246, 0.0531098, 0.0602662,
0.0611441, 0.067306, 0.0788412, 0.0848197, 0.0856029, 0.091569,
0.101981, 0.107004, 0.107742, 0.113546, 0.123001, 0.127236,
0.127966, 0.13363, 0.142256, 0.145833, 0.146581, 0.152121,
0.160017, 0.163038, 0.163827, 0.169253, 0.176497, 0.179048,
0.179893, 0.185212, 0.191868, 0.194017, 0.194931, 0.200146,
0.206269, 0.208074, 0.209067, 0.21418, 0.219812, 0.221324,
0.222403, 0.227414, 0.232595, 0.233856, 0.235026, 0.239933,
0.244697, 0.245745, 0.247009, 0.251811, 0.256186, 0.257055,
0.258414, 0.263108, 0.267121, 0.267839, 0.269295, 0.273878,
0.277552, 0.278147, 0.279698, 0.284167, 0.287525, 0.288018,
0.289663, 0.294014, 0.297076, 0.29749, 0.299227, 0.303457,
0.306241, 0.306594, 0.30842, 0.312525, 0.315049, 0.315359,
0.317269, 0.321246, 0.323528, 0.323809, 0.3258, 0.329646,
0.3317, 0.331968, 0.334034, 0.337746, 0.339589, 0.339855,
0.341991, 0.345567, 0.347212, 0.347488, 0.349688, 0.353126,
0.354589, 0.354885, 0.357142, 0.360439, 0.361734, 0.362059,
0.364368, 0.367523, 0.368662, 0.369023, 0.371378, 0.37439,
0.375386, 0.375792, 0.378184, 0.381052, 0.381919, 0.382374,
0.384797, 0.387522, 0.388271, 0.388782, 0.391229, 0.39381,
0.394453, 0.395023, 0.397487, 0.399925, 0.400474, 0.401107,
0.40358, 0.405877, 0.406343, 0.407041, 0.409517, 0.411674,
0.412068, 0.412833, 0.415305, 0.417323, 0.417656, 0.418489,
0.42095, 0.422833, 0.423114, 0.424016, 0.426459, 0.428209,
0.428448, 0.429419, 0.431838, 0.433458, 0.433665, 0.434704,
0.437093, 0.438587, 0.438769, 0.439876, 0.442228, 0.4436,
0.443767, 0.444939, 0.447248, 0.448503, 0.448662, 0.449897,
0.452159, 0.453301, 0.45346, 0.454755, 0.456964, 0.457998,
0.458164, 0.459516, 0.461667, 0.462599, 0.462778, 0.464184,
0.466273, 0.467108, 0.467307, 0.468762, 0.470785, 0.471529,
0.471752, 0.473254, 0.475207, 0.475865, 0.476118, 0.477661,
0.479542, 0.480121, 0.480408, 0.481988, 0.483793, 0.484298,
0.484624, 0.486236, 0.487963, 0.488401, 0.488769, 0.490408,
0.492055, 0.492433, 0.492845, 0.494506, 0.496072, 0.496395,
0.496855, 0.498533, 0.500016, 0.500291, 0.500801, 0.50249,
0.50389, 0.504124, 0.504685, 0.50638, 0.507697, 0.507895,
0.508508, 0.510205, 0.511438, 0.511608, 0.512273, 0.513966,
0.515117, 0.515263, 0.515981, 0.517665, 0.518735, 0.518864,
0.519634, 0.521304, 0.522294, 0.522411, 0.523233, 0.524885,
0.525796, 0.525908, 0.52678, 0.528408, 0.529243, 0.529355,
0.530276, 0.531877, 0.532638, 0.532754, 0.533723, 0.535291,
0.535981, 0.536106, 0.537121, 0.538653, 0.539275, 0.539414,
0.540471, 0.541964, 0.542521, 0.542679, 0.543776, 0.545225,
0.545721, 0.545901, 0.547035, 0.548438, 0.548877, 0.549082,
0.550249, 0.551604, 0.551989, 0.552223, 0.553421, 0.554723,
0.555059, 0.555325, 0.55655, 0.557798, 0.558089, 0.55839,
0.559637, 0.56083, 0.56108, 0.561418, 0.562684, 0.56382,
0.564033, 0.564409, 0.565691, 0.566768, 0.566949, 0.567366,
0.568658, 0.569676, 0.56983, 0.570288, 0.571588, 0.572545,
0.572677, 0.573177, 0.574479, 0.575377, 0.57549, 0.576033,
0.577334, 0.578172, 0.578271, 0.578857, 0.580152, 0.580931,
0.58102, 0.581649, 0.582935, 0.583655, 0.583739, 0.584409,
0.585683, 0.586345, 0.586429, 0.58714, 0.588397, 0.589003,
0.58909, 0.58984, 0.591077, 0.591629, 0.591722, 0.592511,
0.593724, 0.594223, 0.594328, 0.595154, 0.596339, 0.596788,
0.596906, 0.597767, 0.598922, 0.599324, 0.599459, 0.600352,
0.601475, 0.601831, 0.601987, 0.60291, 0.603997, 0.60431,
0.60449, 0.60544, 0.606489, 0.606763, 0.606968, 0.607944,
0.608953, 0.60919, 0.609423, 0.61042, 0.611387, 0.611592,
0.611855, 0.612871, 0.613794, 0.61397, 0.614264, 0.615295,
0.616174, 0.616323, 0.616651, 0.617694, 0.618527, 0.618654,
0.619016, 0.620068, 0.620854, 0.620962, 0.621359, 0.622417,
0.623156, 0.623248, 0.623681, 0.624741, 0.625433, 0.625513,
0.625982, 0.627041, 0.627686, 0.627757, 0.628262, 0.629317,
0.629915, 0.629982, 0.630522, 0.631569, 0.632121, 0.632186,
0.632762, 0.633798, 0.634304, 0.634372, 0.634982, 0.636004,
0.636466, 0.636539, 0.637182, 0.638187, 0.638607, 0.638688,
0.639363, 0.640348, 0.640726, 0.640819, 0.641525, 0.642487,
0.642826, 0.642932, 0.643667, 0.644605, 0.644906, 0.645029,
0.645791, 0.646701, 0.646967, 0.647109, 0.647895, 0.648776,
0.649009, 0.649173, 0.649982, 0.650831, 0.651033, 0.65122,
0.652049, 0.652865, 0.65304, 0.653252, 0.654099, 0.65488,
0.655029, 0.655268, 0.65613, 0.656875, 0.657002, 0.657269,
0.658143, 0.658851, 0.658958, 0.659255, 0.660139, 0.660808,
0.660899, 0.661225, 0.662116, 0.662748, 0.662825, 0.663182,
0.664076, 0.664669, 0.664735, 0.665123, 0.666019, 0.666572,
0.666631, 0.66705, 0.667945, 0.668458, 0.668513, 0.668963,
0.669853, 0.670328, 0.670381, 0.670862, 0.671744, 0.672181,
0.672235, 0.672746, 0.673619, 0.674018, 0.674076, 0.674617,
0.675477, 0.67584, 0.675904, 0.676474, 0.677318, 0.677646,
0.67772, 0.678317, 0.679143, 0.679438, 0.679523, 0.680146,
0.680953, 0.681215, 0.681314, 0.681961, 0.682746, 0.682978,
0.683094, 0.683763, 0.684524, 0.684727, 0.684861, 0.685551,
0.686287, 0.686463, 0.686617, 0.687326, 0.688034, 0.688186,
0.688361, 0.689087, 0.689766, 0.689896, 0.690095, 0.690835,
0.691484, 0.691594, 0.691817, 0.69257, 0.693187, 0.69328,
0.693529, 0.694291, 0.694876, 0.694955, 0.695229, 0.695999,
0.696551, 0.696618, 0.696919, 0.697694, 0.698213, 0.698269,
0.698598, 0.699375, 0.699861, 0.69991, 0.700267, 0.701044,
0.701496, 0.701541, 0.701925, 0.702699, 0.703118, 0.703161,
0.703572, 0.704342, 0.704728, 0.704771, 0.70521, 0.705972,
0.706325, 0.706372, 0.706837, 0.707589, 0.707911, 0.707962,
0.708453, 0.709193, 0.709484, 0.709544, 0.710059, 0.710785,
0.711047, 0.711116, 0.711655, 0.712365, 0.712598, 0.712679,
0.71324, 0.713932, 0.714138, 0.714233, 0.714816, 0.715487,
0.715668, 0.715779, 0.71638, 0.71703, 0.717188, 0.717316,
0.717935, 0.718561, 0.718697, 0.718844, 0.719479, 0.720081,
0.720197, 0.720364, 0.721013, 0.721589, 0.721687, 0.721876,
0.722537, 0.723086, 0.723168, 0.72338, 0.72405, 0.724571,
0.72464, 0.724875, 0.725553, 0.726046, 0.726103, 0.726362,
0.727046, 0.72751, 0.727558, 0.727842, 0.728528, 0.728963,
0.729005, 0.729313, 0.730001, 0.730406, 0.730443, 0.730776,
0.731463, 0.731838, 0.731873, 0.732231, 0.732914, 0.733261,
0.733296, 0.733678, 0.734356, 0.734674, 0.734711, 0.735118,
0.735788, 0.736077, 0.736119, 0.736549, 0.737209, 0.737472,
0.73752, 0.737972, 0.738621, 0.738857, 0.738913, 0.739388,
0.740022, 0.740233, 0.7403, 0.740795, 0.741414, 0.7416,
0.74168, 0.742194, 0.742796, 0.74296, 0.743053, 0.743585,
0.744169, 0.744311, 0.744419, 0.744968, 0.745531, 0.745654,
0.745779, 0.746343, 0.746885, 0.746989, 0.747132, 0.74771,
0.748229, 0.748317, 0.748479, 0.749068, 0.749564, 0.749637,
0.74982, 0.750418, 0.75089, 0.750951, 0.751154, 0.75176,
0.752207, 0.752257, 0.752482, 0.753094, 0.753515, 0.753557,
0.753804, 0.75442, 0.754814, 0.75485, 0.75512, 0.755737,
0.756105, 0.756136, 0.756429, 0.757046, 0.757388, 0.757417,
0.757732, 0.758347, 0.758663, 0.758691, 0.759029, 0.75964,
0.75993, 0.759959, 0.760319, 0.760924, 0.761188, 0.761222,
0.761603, 0.7622, 0.76244, 0.762479, 0.762881, 0.763468,
0.763684, 0.76373, 0.764153, 0.764728, 0.764921, 0.764976,
0.765418, 0.76598, 0.76615, 0.766216, 0.766676, 0.767224,
0.767373, 0.767451, 0.767928, 0.768459, 0.768589, 0.768681,
0.769174, 0.769687, 0.769799, 0.769906, 0.770413, 0.770907,
0.771002, 0.771126, 0.771645, 0.77212, 0.772199, 0.77234,
0.772871, 0.773324, 0.773391, 0.77355, 0.77409, 0.774521,
0.774576, 0.774754, 0.775303, 0.775711, 0.775756, 0.775954,
0.776508, 0.776894, 0.77693, 0.777149, 0.777707, 0.778069,
0.778099, 0.778338, 0.778899, 0.779237, 0.779263, 0.779523,
0.780084, 0.780399, 0.780422, 0.780702, 0.781263, 0.781553,
0.781576, 0.781877, 0.782434, 0.782701, 0.782725, 0.783047,
0.783599, 0.783843, 0.783869, 0.784211, 0.784756, 0.784978,
0.785009, 0.78537, 0.785907, 0.786107, 0.786144, 0.786525,
0.787052, 0.787229, 0.787275, 0.787674, 0.788189, 0.788346,
0.788401, 0.788817, 0.78932, 0.789458, 0.789524, 0.789956,
0.790444, 0.790563, 0.790642, 0.791089, 0.791561, 0.791664,
0.791756, 0.792216, 0.792672, 0.792759, 0.792866, 0.793339,
0.793776, 0.793849, 0.793972, 0.794455, 0.794873, 0.794934,
0.795073, 0.795566, 0.795965, 0.796014, 0.796171, 0.796672,
0.79705, 0.797089, 0.797265, 0.797772, 0.798129, 0.79816,
0.798355, 0.798866, 0.799201, 0.799227, 0.79944, 0.799955,
0.800268, 0.800289, 0.800522, 0.801037, 0.801329, 0.801347,
0.8016, 0.802114, 0.802384, 0.802402, 0.802673, 0.803186,
0.803434, 0.803452, 0.803742, 0.804251, 0.804478, 0.804498,
0.804808, 0.805311, 0.805516, 0.805541, 0.805869, 0.806364,
0.80655, 0.80658, 0.806925, 0.807412, 0.807578, 0.807615,
0.807978, 0.808455, 0.808601, 0.808647, 0.809026, 0.809491,
0.809619, 0.809675, 0.810069, 0.810522, 0.810633, 0.8107,
0.811109, 0.811547, 0.811642, 0.811722, 0.812143, 0.812566,
0.812647, 0.81274, 0.813173, 0.81358, 0.813647, 0.813755,
0.814199, 0.814588, 0.814643, 0.814766, 0.81522, 0.815591,
0.815635, 0.815775, 0.816236, 0.816588, 0.816623, 0.81678,
0.817247, 0.81758, 0.817608, 0.817781, 0.818254, 0.818567,
0.818588, 0.81878, 0.819255, 0.819548, 0.819565, 0.819775,
0.820252, 0.820525, 0.820539, 0.820767, 0.821244, 0.821496,
0.821509, 0.821755, 0.82223, 0.822463, 0.822476, 0.82274,
0.823212, 0.823425, 0.82344, 0.823722, 0.824189, 0.824382,
0.8244, 0.8247, 0.825161, 0.825335, 0.825358, 0.825674,
0.826128, 0.826283, 0.826313, 0.826645, 0.82709, 0.827227,
0.827264, 0.827612, 0.828046, 0.828167, 0.828213, 0.828576,
0.828998, 0.829102, 0.829159, 0.829535, 0.829945, 0.830034,
0.830102, 0.830491, 0.830887, 0.830962, 0.831043, 0.831443,
0.831824, 0.831886, 0.831981, 0.832391, 0.832756, 0.832807,
0.832916, 0.833336, 0.833684, 0.833724, 0.833848, 0.834276,
0.834607, 0.834638, 0.834777, 0.835212, 0.835525, 0.835548,
0.835704, 0.836143, 0.836438, 0.836456, 0.836629, 0.837071,
0.837347, 0.83736, 0.83755, 0.837994, 0.838251, 0.838262,
0.838469, 0.838913, 0.839152, 0.83916, 0.839384, 0.839828,
0.840047, 0.840056, 0.840297, 0.840739, 0.840939, 0.840949,
0.841207, 0.841645, 0.841827, 0.84184, 0.842114, 0.842547,
0.84271, 0.842728, 0.843019, 0.843444, 0.84359, 0.843613,
0.84392, 0.844337, 0.844466, 0.844496, 0.844818, 0.845225,
0.845339, 0.845377, 0.845712, 0.84611, 0.846207, 0.846255,
0.846604, 0.84699, 0.847073, 0.847131, 0.847492, 0.847865,
0.847935, 0.848005, 0.848377, 0.848736, 0.848794, 0.848877,
0.849259, 0.849603, 0.849649, 0.849746, 0.850137, 0.850466,
0.850502, 0.850613, 0.851012, 0.851324, 0.851352, 0.851477,
0.851883, 0.852179, 0.852199, 0.85234, 0.85275, 0.853029,
0.853044, 0.8532, 0.853614, 0.853876, 0.853885, 0.854058,
0.854474, 0.854718, 0.854724, 0.854913, 0.855331, 0.855556,
0.855561, 0.855766, 0.856183, 0.856391, 0.856396, 0.856617,
0.857032, 0.857222, 0.857228, 0.857465, 0.857877, 0.85805,
0.858058, 0.858311, 0.858718, 0.858874, 0.858886, 0.859155,
0.859556, 0.859694, 0.859711, 0.859995, 0.860389, 0.860511,
0.860535, 0.860833, 0.861218, 0.861325, 0.861357, 0.861668,
0.862044, 0.862136, 0.862176, 0.862501, 0.862866, 0.862944,
0.862994, 0.863331, 0.863684, 0.863749, 0.86381, 0.864158,
0.864498, 0.864551, 0.864624, 0.864981, 0.865308, 0.865351,
0.865436, 0.865802, 0.866114, 0.866147, 0.866246, 0.86662,
0.866917, 0.866941, 0.867054, 0.867435, 0.867716, 0.867733,
0.86786, 0.868246, 0.868512, 0.868523, 0.868665, 0.869055,
0.869303, 0.86931, 0.869467, 0.86986, 0.870092, 0.870095,
0.870268, 0.870662, 0.870876, 0.870878, 0.871066, 0.87146,
0.871658, 0.871659, 0.871863, 0.872255, 0.872436, 0.872438,
0.872657, 0.873047, 0.873211, 0.873215, 0.873449, 0.873835,
0.873983, 0.87399, 0.874239, 0.87462, 0.874752, 0.874763,
0.875027, 0.875401, 0.875517, 0.875535, 0.875813, 0.876179,
0.87628, 0.876305, 0.876596, 0.876953, 0.87704, 0.877073,
0.877377, 0.877724, 0.877798, 0.87784, 0.878155, 0.878491,
0.878553, 0.878605, 0.878931, 0.879255, 0.879305, 0.879368,
0.879704, 0.880016, 0.880055, 0.88013, 0.880475, 0.880773,
0.880802, 0.88089, 0.881243, 0.881526, 0.881548, 0.881649,
0.882008, 0.882277, 0.882291, 0.882406, 0.882771, 0.883024,
0.883032, 0.883162, 0.88353, 0.883768, 0.883771, 0.883915,
0.884287, 0.884509, 0.884509, 0.884667, 0.885041, 0.885246,
0.885244, 0.885418, 0.885791, 0.885981, 0.885978, 0.886167,
0.886539, 0.886712, 0.88671, 0.886914, 0.887284, 0.887441,
0.88744, 0.887659, 0.888025, 0.888167, 0.888169, 0.888402,
0.888764, 0.88889, 0.888896, 0.889143, 0.889499, 0.88961,
0.889622, 0.889882, 0.890231, 0.890328, 0.890347, 0.89062,
0.89096, 0.891044, 0.89107, 0.891355, 0.891686, 0.891756,
0.891791, 0.892088, 0.892409, 0.892467, 0.892511, 0.892819,
0.893129, 0.893175, 0.89323, 0.893547, 0.893845, 0.893882,
0.893948, 0.894274, 0.894559, 0.894586, 0.894664, 0.894998,
0.895269, 0.895288, 0.895379, 0.895719, 0.895977, 0.895988,
0.896092, 0.896438, 0.896681, 0.896686, 0.896804, 0.897154,
0.897383, 0.897383, 0.897515, 0.897868, 0.898081, 0.898078,
0.898224, 0.898579, 0.898777, 0.898772, 0.898932, 0.899288,
0.89947, 0.899463, 0.899638, 0.899994, 0.90016, 0.900154,
0.900343, 0.900697, 0.900848, 0.900843, 0.901046, 0.901397,
0.901533, 0.90153, 0.901748, 0.902094, 0.902215, 0.902217,
0.902448, 0.902789, 0.902895, 0.902902, 0.903146, 0.903481,
0.903573, 0.903586, 0.903843, 0.904169, 0.904249, 0.904268,
0.904537, 0.904855, 0.904922, 0.90495, 0.90523, 0.905539,
0.905593, 0.90563, 0.905921, 0.906219, 0.906262, 0.906309,
0.90661, 0.906896, 0.906929, 0.906987, 0.907297, 0.907571,
0.907595, 0.907664, 0.907981, 0.908243, 0.908258, 0.90834,
0.908664, 0.908912, 0.90892, 0.909014, 0.909344, 0.909578,
0.909581, 0.909688, 0.910022, 0.910242, 0.910239, 0.91036,
0.910697, 0.910903, 0.910897, 0.911031, 0.911371, 0.911561,
0.911553, 0.911701, 0.912041, 0.912217, 0.912207, 0.91237,
0.91271, 0.91287, 0.91286, 0.913037, 0.913375, 0.913521,
0.913512, 0.913703, 0.914039, 0.91417, 0.914163, 0.914367,
0.914699, 0.914816, 0.914813, 0.91503, 0.915358, 0.91546,
0.915461, 0.915692, 0.916013, 0.916102, 0.916109, 0.916352,
0.916666, 0.916742, 0.916755, 0.91701, 0.917316, 0.917379,
0.917401, 0.917667, 0.917964, 0.918015, 0.918046, 0.918322,
0.918609, 0.918649, 0.918689, 0.918975, 0.919251, 0.919282,
0.919332, 0.919626, 0.919891, 0.919912, 0.919973, 0.920276,
0.920528, 0.920541, 0.920614, 0.920923, 0.921163, 0.921169,
0.921254, 0.921569, 0.921795, 0.921795, 0.921893, 0.922212,
0.922425, 0.92242, 0.92253, 0.922853, 0.923052, 0.923043,
0.923167, 0.923492, 0.923677, 0.923665, 0.923803, 0.924129,
0.924299, 0.924286, 0.924437, 0.924764, 0.924919, 0.924906,
0.925071, 0.925396, 0.925537, 0.925525, 0.925703, 0.926026,
0.926153, 0.926142, 0.926334, 0.926654, 0.926767, 0.926759,
0.926964, 0.92728, 0.927378, 0.927375, 0.927592, 0.927902,
0.927988, 0.92799, 0.92822, 0.928523, 0.928595, 0.928604,
0.928845, 0.929141, 0.929201, 0.929217, 0.92947, 0.929757,
0.929805, 0.929829, 0.930092, 0.93037, 0.930408, 0.930441,
0.930713, 0.930981, 0.931009, 0.931052, 0.931333, 0.931589,
0.931608, 0.931661, 0.93195, 0.932195, 0.932206, 0.932271,
0.932566, 0.932799, 0.932802, 0.932879, 0.933181, 0.9334,
0.933398, 0.933486, 0.933793, 0.933999, 0.933992, 0.934093,
0.934403, 0.934596, 0.934584, 0.934699, 0.935012, 0.93519,
0.935176, 0.935303, 0.935618, 0.935783, 0.935767, 0.935907,
0.936222, 0.936373, 0.936356, 0.93651, 0.936824, 0.936961,
0.936945, 0.937112, 0.937425, 0.937547, 0.937533, 0.937713,
0.938022, 0.938131, 0.938119, 0.938313, 0.938618, 0.938713,
0.938706, 0.938912, 0.939212, 0.939294, 0.939291, 0.939509,
0.939803, 0.939872, 0.939875, 0.940105, 0.940392, 0.940449,
0.940459, 0.9407, 0.940979, 0.941025, 0.941042, 0.941293,
0.941563, 0.941599, 0.941625, 0.941886, 0.942145, 0.942171,
0.942207, 0.942476, 0.942725, 0.942742, 0.942788, 0.943065,
0.943303, 0.943311, 0.943368, 0.943653, 0.943879, 0.94388,
0.943948, 0.944238, 0.944452, 0.944447, 0.944527, 0.944822,
0.945023, 0.945013, 0.945106, 0.945405, 0.945592, 0.945578,
0.945683, 0.945985, 0.946159, 0.946142, 0.94626, 0.946564,
0.946724, 0.946705, 0.946836, 0.947141, 0.947287, 0.947267,
0.947411, 0.947715, 0.947848, 0.947828, 0.947986, 0.948288,
0.948407, 0.948389, 0.948559, 0.948859, 0.948965, 0.948949,
0.949132, 0.949428, 0.94952, 0.949508, 0.949703, 0.949995,
0.950074, 0.950066, 0.950274, 0.950559, 0.950626, 0.950624,
0.950843, 0.951122, 0.951177, 0.951181, 0.951411, 0.951682,
0.951726, 0.951738, 0.951978, 0.95224, 0.952274, 0.952294,
0.952544, 0.952797, 0.95282, 0.952849, 0.953108, 0.953351,
0.953365, 0.953404, 0.953671, 0.953903, 0.953909, 0.953959,
0.954232, 0.954453, 0.954452, 0.954512, 0.954792, 0.955001,
0.954993, 0.955066, 0.955351, 0.955547, 0.955534, 0.955618,
0.955907, 0.95609, 0.956073, 0.95617, 0.956463, 0.956632,
0.956612, 0.956722, 0.957016, 0.957172, 0.95715, 0.957272,
0.957568, 0.957711, 0.957687, 0.957822, 0.958117, 0.958247,
0.958223, 0.958372, 0.958665, 0.958781, 0.958759, 0.95892,
0.959212, 0.959314, 0.959294, 0.959468, 0.959756, 0.959845,
0.959828, 0.960014, 0.960298, 0.960375, 0.960362, 0.96056,
0.960838, 0.960903, 0.960896, 0.961105, 0.961377, 0.96143,
0.961429, 0.961649, 0.961913, 0.961955, 0.961961, 0.962191,
0.962448, 0.962479, 0.962493, 0.962733, 0.96298, 0.963001,
0.963024, 0.963273, 0.963511, 0.963523, 0.963555, 0.963812,
0.964039, 0.964043, 0.964086, 0.96435, 0.964566, 0.964562,
0.964616, 0.964886, 0.96509, 0.96508, 0.965145, 0.965421,
0.965613, 0.965597, 0.965674, 0.965955, 0.966134, 0.966114,
0.966203, 0.966487, 0.966653, 0.966629, 0.966731, 0.967017,
0.96717, 0.967144, 0.967258, 0.967546, 0.967685, 0.967658,
0.967785, 0.968073, 0.968199, 0.968172, 0.968311, 0.968598,
0.968711, 0.968685, 0.968837, 0.969121, 0.969221, 0.969197,
0.969362, 0.969643, 0.96973, 0.969709, 0.969886, 0.970163,
0.970238, 0.97022, 0.970409, 0.970681, 0.970743, 0.970731,
0.970931, 0.971197, 0.971248, 0.971242, 0.971453, 0.971712,
0.971751, 0.971752, 0.971973, 0.972224, 0.972253, 0.972261,
0.972493, 0.972735, 0.972754, 0.972771, 0.973011, 0.973244,
0.973253, 0.97328, 0.973528, 0.973751, 0.973752, 0.973788,
0.974044, 0.974256, 0.97425, 0.974297, 0.974559, 0.974759,
0.974746, 0.974804, 0.975072, 0.975261, 0.975242, 0.975312,
0.975584, 0.97576, 0.975737, 0.975819, 0.976095, 0.976258,
0.976232, 0.976325, 0.976604, 0.976754, 0.976725, 0.976832,
0.977112, 0.977249, 0.977218, 0.977337, 0.977618, 0.977742,
0.977711, 0.977842, 0.978122, 0.978233, 0.978203, 0.978347,
0.978625, 0.978723, 0.978694, 0.978851, 0.979126, 0.979211,
0.979185, 0.979354, 0.979625, 0.979698, 0.979676, 0.979856,
0.980123, 0.980183, 0.980166, 0.980358, 0.980619, 0.980667,
0.980656, 0.980859, 0.981113, 0.98115, 0.981145, 0.981359,
0.981605, 0.981632, 0.981635, 0.981858, 0.982096, 0.982113,
0.982124, 0.982356, 0.982585, 0.982592, 0.982612, 0.982853,
0.983072, 0.983071, 0.983101, 0.983349, 0.983557, 0.983549,
0.983589, 0.983844, 0.984041, 0.984025, 0.984077, 0.984337,
0.984523, 0.984501, 0.984564, 0.98483, 0.985003, 0.984977,
0.985051, 0.985321, 0.985481, 0.985451, 0.985538, 0.98581,
0.985958, 0.985926, 0.986025, 0.986298, 0.986433, 0.986399,
0.986511, 0.986785, 0.986907, 0.986872, 0.986996, 0.98727,
0.987379, 0.987345, 0.987481, 0.987754, 0.98785, 0.987817,
0.987966, 0.988236, 0.988319, 0.988289, 0.98845, 0.988716,
0.988787, 0.98876, 0.988933, 0.989195, 0.989253, 0.989231,
0.989416, 0.989672, 0.989719, 0.989702, 0.989898, 0.990148,
0.990183, 0.990173, 0.990379, 0.990622, 0.990646, 0.990643,
0.990859, 0.991094, 0.991108, 0.991113, 0.991339, 0.991564,
0.991569, 0.991583, 0.991817, 0.992033, 0.992029, 0.992053,
0.992295, 0.9925, 0.992489, 0.992523, 0.992771, 0.992965,
0.992947, 0.992992, 0.993246, 0.993429, 0.993405, 0.993461,
0.993721, 0.993891, 0.993862, 0.99393, 0.994193, 0.994351,
0.994318, 0.994398, 0.994665, 0.99481, 0.994774, 0.994867,
0.995135, 0.995268, 0.99523, 0.995335, 0.995604, 0.995723,
0.995685, 0.995802, 0.996072, 0.996178, 0.996139, 0.99627,
0.996537, 0.996631, 0.996594, 0.996736, 0.997002, 0.997082,
0.997047, 0.997203, 0.997465, 0.997532, 0.997501, 0.997669,
0.997926, 0.997981, 0.997955, 0.998134, 0.998386, 0.998429,
0.998408, 0.998599, 0.998844, 0.998875, 0.998861, 0.999064,
0.9993, 0.999319, 0.999315, 0.999529, 0.999754, 0.99976,
0.999772, 1
};
static const float WAVE_LOGARITHMIC_030[DEFAULT_WAVELEN] = {
-1, -0.961715, -0.858423, -0.72017, -0.583654, -0.478479,
-0.417429, -0.394598, -0.391423, -0.387116, -0.368296, -0.333563,
-0.291601, -0.25467, -0.231373, -0.222436, -0.221279, -0.218459,
-0.207134, -0.186495, -0.16151, -0.139506, -0.125779, -0.120757,
-0.120164, -0.117818, -0.109292, -0.0942823, -0.0764527, -0.0610312,
-0.0516805, -0.0484827, -0.048115, -0.0459746, -0.0389095, -0.0269485,
-0.0130927, -0.00139872, 0.005442, 0.00760217, 0.00787484, 0.00991877,
0.0160871, 0.0261214, 0.0374296, 0.046712, 0.0519259, 0.0534295,
0.0536717, 0.0556727, 0.0612328, 0.0699282, 0.0794505, 0.0870371,
0.091113, 0.0921743, 0.0924225, 0.0944099, 0.099528, 0.10723,
0.115421, 0.121745, 0.124983, 0.125735, 0.126012, 0.128002,
0.132782, 0.139711, 0.146864, 0.152208, 0.154805, 0.155337,
0.155656, 0.157661, 0.16217, 0.168474, 0.174789, 0.179349,
0.181444, 0.181818, 0.18219, 0.184213, 0.188499, 0.194282,
0.199903, 0.20382, 0.205513, 0.205774, 0.206205, 0.208251,
0.212347, 0.217684, 0.222718, 0.226097, 0.227465, 0.227648,
0.228142, 0.230211, 0.23414, 0.23909, 0.243617, 0.24654,
0.247642, 0.247774, 0.248334, 0.250425, 0.254205, 0.258812,
0.262895, 0.265428, 0.26631, 0.266411, 0.267039, 0.269152,
0.272795, 0.277094, 0.280785, 0.282979, 0.283679, 0.283768,
0.284464, 0.286596, 0.290112, 0.29413, 0.297471, 0.29937,
0.29992, 0.300009, 0.300774, 0.302922, 0.306319, 0.310078,
0.313104, 0.314743, 0.315171, 0.315272, 0.316104, 0.318265,
0.321548, 0.325068, 0.327807, 0.329219, 0.329546, 0.329668,
0.330566, 0.332738, 0.335909, 0.339206, 0.341685, 0.342895,
0.343142, 0.343292, 0.344254, 0.346433, 0.349497, 0.352584,
0.354824, 0.355856, 0.356038, 0.356224, 0.357248, 0.35943,
0.362388, 0.365277, 0.367298, 0.368173, 0.368306, 0.368532,
0.369615, 0.371796, 0.374649, 0.377351, 0.379171, 0.379908,
0.380004, 0.380274, 0.381414, 0.383589, 0.38634, 0.388863,
0.390497, 0.391112, 0.391183, 0.3915, 0.392694, 0.39486,
0.397509, 0.399862, 0.401325, 0.401833, 0.401889, 0.402256,
0.4035, 0.405653, 0.4082, 0.410392, 0.411696, 0.41211,
0.41216, 0.41258, 0.41387, 0.416006, 0.418451, 0.420488,
0.421647, 0.42198, 0.422032, 0.422505, 0.423838, 0.425952,
0.428297, 0.430186, 0.43121, 0.431475, 0.431536, 0.432062,
0.433434, 0.435523, 0.437767, 0.439515, 0.440416, 0.440621,
0.440697, 0.441277, 0.442685, 0.444745, 0.446889, 0.448502,
0.449289, 0.449446, 0.449542, 0.450176, 0.451614, 0.453641,
0.455686, 0.45717, 0.457853, 0.45797, 0.458092, 0.458778,
0.460244, 0.462234, 0.46418, 0.465541, 0.466129, 0.466215,
0.466366, 0.467104, 0.468592, 0.470542, 0.47239, 0.473634,
0.474136, 0.474198, 0.474383, 0.475171, 0.476677, 0.478584,
0.480335, 0.481467, 0.481891, 0.481937, 0.482158, 0.482994,
0.484514, 0.486375, 0.48803, 0.489057, 0.489411, 0.489447,
0.489706, 0.490588, 0.492119, 0.49393, 0.49549, 0.496417,
0.496708, 0.496741, 0.49704, 0.497967, 0.499503, 0.501262,
0.502729, 0.503561, 0.503798, 0.503832, 0.504173, 0.505141,
0.506678, 0.508384, 0.509758, 0.510501, 0.51069, 0.510732,
0.511116, 0.512123, 0.513657, 0.515306, 0.51659, 0.517249,
0.517397, 0.517451, 0.517878, 0.518921, 0.520448, 0.522039,
0.523235, 0.523816, 0.523929, 0.523998, 0.52447, 0.525546,
0.527062, 0.528592, 0.529702, 0.53021, 0.530295, 0.530384,
0.5309, 0.532005, 0.533507, 0.534975, 0.536001, 0.536442,
0.536503, 0.536616, 0.537175, 0.538306, 0.53979, 0.541195,
0.54214, 0.542519, 0.542563, 0.542701, 0.543304, 0.544458,
0.545919, 0.547261, 0.548127, 0.548449, 0.54848, 0.548648,
0.549292, 0.550465, 0.551901, 0.553178, 0.553969, 0.554239,
0.554263, 0.554462, 0.555147, 0.556335, 0.557743, 0.558955,
0.559673, 0.559896, 0.559918, 0.56015, 0.560873, 0.562074,
0.563451, 0.564597, 0.565245, 0.565427, 0.56545, 0.565717,
0.566478, 0.567687, 0.569029, 0.570109, 0.570691, 0.570837,
0.570866, 0.571168, 0.571964, 0.573178, 0.574484, 0.575499,
0.576018, 0.576131, 0.57617, 0.576509, 0.577338, 0.578554,
0.579819, 0.58077, 0.58123, 0.581316, 0.581368, 0.581744,
0.582604, 0.583817, 0.585041, 0.585928, 0.586331, 0.586395,
0.586464, 0.586877, 0.587765, 0.588973, 0.590153, 0.590977,
0.591328, 0.591374, 0.591462, 0.591912, 0.592826, 0.594025,
0.59516, 0.595922, 0.596225, 0.596256, 0.596366, 0.596854,
0.59779, 0.598977, 0.600065, 0.600767, 0.601024, 0.601047,
0.601181, 0.601705, 0.602661, 0.603832, 0.604873, 0.605515,
0.605732, 0.605748, 0.605909, 0.606468, 0.607441, 0.608594,
0.609586, 0.610171, 0.610351, 0.610365, 0.610553, 0.611147,
0.612135, 0.613267, 0.614208, 0.614738, 0.614884, 0.6149,
0.615118, 0.615745, 0.616744, 0.617852, 0.618742, 0.61922,
0.619336, 0.619357, 0.619606, 0.620265, 0.621271, 0.622352,
0.623192, 0.623619, 0.62371, 0.623739, 0.624019, 0.624708,
0.625719, 0.626771, 0.62756, 0.62794, 0.628007, 0.628048,
0.62836, 0.629077, 0.63009, 0.631112, 0.63185, 0.632183,
0.632233, 0.632287, 0.632632, 0.633375, 0.634387, 0.635375,
0.636063, 0.636354, 0.636388, 0.636459, 0.636836, 0.637604,
0.638611, 0.639565, 0.640203, 0.640454, 0.640476, 0.640566,
0.640976, 0.641765, 0.642765, 0.643682, 0.644271, 0.644485,
0.6445, 0.644611, 0.645052, 0.645861, 0.646851, 0.64773,
0.648271, 0.648451, 0.648461, 0.648594, 0.649068, 0.649893,
0.650871, 0.65171, 0.652205, 0.652353, 0.652362, 0.652519,
0.653024, 0.653863, 0.654826, 0.655625, 0.656074, 0.656194,
0.656204, 0.656388, 0.656922, 0.657773, 0.658718, 0.659476,
0.659881, 0.659976, 0.659991, 0.660201, 0.660764, 0.661624,
0.662549, 0.663266, 0.663628, 0.663701, 0.663723, 0.663961,
0.664551, 0.665418, 0.66632, 0.666995, 0.667317, 0.667371,
0.667403, 0.667669, 0.668285, 0.669156, 0.670033, 0.670666,
0.67095, 0.670988, 0.671032, 0.671327, 0.671967, 0.672839,
0.67369, 0.674281, 0.674528, 0.674554, 0.674612, 0.674936,
0.675599, 0.676469, 0.677292, 0.677841, 0.678054, 0.67807,
0.678145, 0.678498, 0.679181, 0.680047, 0.68084, 0.681347,
0.681529, 0.681538, 0.681631, 0.682013, 0.682715, 0.683574,
0.684336, 0.684802, 0.684955, 0.68496, 0.685073, 0.685484,
0.686201, 0.687051, 0.68778, 0.688207, 0.688333, 0.688337,
0.688471, 0.68891, 0.689641, 0.69048, 0.691175, 0.691564,
0.691665, 0.69167, 0.691828, 0.692293, 0.693037, 0.693861,
0.694522, 0.694873, 0.694952, 0.694961, 0.695143, 0.695634,
0.696387, 0.697196, 0.697822, 0.698136, 0.698196, 0.698212,
0.698418, 0.698935, 0.699695, 0.700485, 0.701075, 0.701354,
0.701398, 0.701423, 0.701655, 0.702195, 0.70296, 0.70373,
0.704284, 0.70453, 0.70456, 0.704595, 0.704853, 0.705416,
0.706183, 0.706931, 0.707449, 0.707663, 0.707682, 0.70773,
0.708014, 0.708598, 0.709365, 0.71009, 0.710572, 0.710756,
0.710766, 0.71083, 0.71114, 0.711743, 0.712507, 0.713207,
0.713653, 0.713809, 0.713814, 0.713893, 0.71423, 0.71485,
0.71561, 0.716283, 0.716694, 0.716824, 0.716825, 0.716923,
0.717285, 0.717921, 0.718674, 0.719319, 0.719695, 0.719802,
0.719802, 0.719919, 0.720307, 0.720956, 0.721701, 0.722317,
0.722658, 0.722744, 0.722745, 0.722883, 0.723296, 0.723957,
0.72469, 0.725276, 0.725584, 0.725651, 0.725656, 0.725815,
0.726252, 0.726922, 0.727642, 0.728198, 0.728474, 0.728524,
0.728535, 0.728716, 0.729176, 0.729854, 0.730559, 0.731083,
0.731329, 0.731364, 0.731383, 0.731588, 0.732069, 0.732752,
0.73344, 0.733933, 0.734149, 0.734172, 0.7342, 0.734429,
0.734932, 0.735618, 0.736287, 0.736748, 0.736936, 0.736949,
0.736989, 0.737242, 0.737764, 0.738451, 0.739099, 0.739529,
0.73969, 0.739696, 0.739749, 0.740026, 0.740566, 0.741252,
0.741879, 0.742276, 0.742413, 0.742413, 0.742482, 0.742783,
0.743339, 0.744022, 0.744625, 0.744992, 0.745105, 0.745102,
0.745187, 0.745512, 0.746084, 0.746761, 0.74734, 0.747675,
0.747768, 0.747764, 0.747867, 0.748215, 0.748799, 0.749469,
0.750023, 0.750328, 0.750401, 0.750399, 0.75052, 0.750891,
0.751487, 0.752148, 0.752675, 0.75295, 0.753007, 0.753007,
0.753149, 0.753542, 0.754147, 0.754797, 0.755297, 0.755543,
0.755584, 0.75559, 0.755753, 0.756167, 0.75678, 0.757416,
0.757889, 0.758108, 0.758136, 0.758149, 0.758332, 0.758768,
0.759386, 0.760008, 0.760452, 0.760644, 0.760661, 0.760683,
0.760889, 0.761344, 0.761965, 0.762571, 0.762986, 0.763153,
0.763161, 0.763194, 0.763422, 0.763895, 0.764518, 0.765106,
0.765493, 0.765636, 0.765637, 0.765683, 0.765932, 0.766422,
0.767045, 0.767613, 0.767972, 0.768093, 0.768089, 0.768148,
0.76842, 0.768926, 0.769547, 0.770094, 0.770425, 0.770525,
0.770518, 0.770593, 0.770887, 0.771406, 0.772023, 0.772549,
0.772851, 0.772932, 0.772925, 0.773015, 0.773331, 0.773864,
0.774474, 0.774977, 0.775252, 0.775315, 0.775309, 0.775417,
0.775755, 0.776298, 0.7769, 0.77738, 0.777628, 0.777676,
0.777673, 0.777799, 0.778157, 0.77871, 0.779303, 0.779758,
0.77998, 0.780013, 0.780015, 0.780161, 0.780539, 0.781099,
0.78168, 0.782111, 0.782307, 0.782329, 0.782338, 0.782503,
0.782901, 0.783466, 0.784035, 0.784439, 0.784612, 0.784623,
0.78464, 0.784826, 0.785242, 0.785811, 0.786365, 0.786744,
0.786894, 0.786897, 0.786924, 0.78713, 0.787564, 0.788135,
0.788673, 0.789026, 0.789153, 0.78915, 0.789189, 0.789416,
0.789865, 0.790437, 0.790957, 0.791284, 0.791391, 0.791384,
0.791435, 0.791683, 0.792148, 0.792717, 0.793219, 0.793521,
0.793609, 0.793599, 0.793664, 0.793933, 0.79441, 0.794977,
0.795459, 0.795735, 0.795805, 0.795794, 0.795875, 0.796165,
0.796654, 0.797216, 0.797677, 0.797928, 0.797982, 0.797972,
0.798069, 0.798379, 0.798879, 0.799433, 0.799874, 0.800099,
0.800139, 0.800132, 0.800247, 0.800576, 0.801085, 0.801631,
0.802049, 0.80225, 0.802277, 0.802275, 0.802407, 0.802755,
0.803272, 0.803808, 0.804203, 0.804381, 0.804397, 0.804402,
0.804552, 0.804918, 0.80544, 0.805965, 0.806337, 0.806493,
0.806499, 0.806511, 0.806681, 0.807065, 0.807591, 0.808102,
0.80845, 0.808585, 0.808584, 0.808605, 0.808794, 0.809194,
0.809723, 0.810219, 0.810544, 0.810658, 0.810651, 0.810683,
0.810892, 0.811307, 0.811836, 0.812317, 0.812618, 0.812713,
0.812702, 0.812746, 0.812975, 0.813404, 0.813932, 0.814396,
0.814673, 0.81475, 0.814737, 0.814795, 0.815042, 0.815485,
0.81601, 0.816456, 0.816709, 0.81677, 0.816756, 0.816828,
0.817095, 0.817549, 0.81807, 0.818497, 0.818726, 0.818773,
0.81876, 0.818847, 0.819133, 0.819598, 0.820112, 0.82052,
0.820726, 0.820759, 0.820749, 0.820852, 0.821157, 0.82163,
0.822137, 0.822524, 0.822708, 0.822729, 0.822724, 0.822844,
0.823167, 0.823647, 0.824145, 0.82451, 0.824673, 0.824684,
0.824684, 0.824822, 0.825162, 0.825648, 0.826135, 0.826479,
0.826621, 0.826623, 0.826631, 0.826786, 0.827143, 0.827633,
0.828108, 0.82843, 0.828552, 0.828547, 0.828564, 0.828738,
0.82911, 0.829602, 0.830065, 0.830365, 0.830468, 0.830457,
0.830484, 0.830676, 0.831063, 0.831556, 0.832004, 0.832282,
0.832367, 0.832353, 0.832391, 0.832602, 0.833003, 0.833495,
0.833927, 0.834183, 0.834251, 0.834235, 0.834286, 0.834515,
0.834928, 0.835418, 0.835834, 0.836067, 0.836121, 0.836104,
0.836168, 0.836416, 0.83684, 0.837326, 0.837724, 0.837936,
0.837975, 0.837959, 0.838038, 0.838304, 0.838738, 0.839219,
0.839598, 0.839789, 0.839815, 0.839802, 0.839896, 0.84018,
0.840622, 0.841097, 0.841457, 0.841626, 0.841642, 0.841633,
0.841743, 0.842044, 0.842493, 0.842959, 0.8433, 0.843449,
0.843455, 0.843451, 0.843578, 0.843896, 0.844351, 0.844807,
0.845127, 0.845257, 0.845255, 0.845258, 0.845402, 0.845735,
0.846194, 0.84664, 0.84694, 0.847051, 0.847042, 0.847054,
0.847215, 0.847563, 0.848025, 0.848458, 0.848737, 0.84883,
0.848816, 0.848838, 0.849016, 0.849379, 0.849842, 0.850261,
0.85052, 0.850596, 0.850578, 0.850611, 0.850807, 0.851183,
0.851645, 0.85205, 0.852288, 0.852348, 0.852329, 0.852373,
0.852587, 0.852975, 0.853435, 0.853825, 0.854042, 0.854088,
0.854068, 0.854125, 0.854357, 0.854755, 0.855212, 0.855585,
0.855782, 0.855815, 0.855795, 0.855867, 0.856116, 0.856524,
0.856976, 0.857332, 0.857508, 0.857529, 0.857512, 0.857598,
0.857864, 0.85828, 0.858726, 0.859064, 0.859221, 0.859231,
0.859218, 0.859319, 0.859602, 0.860025, 0.860464, 0.860783,
0.86092, 0.860921, 0.860914, 0.861031, 0.86133, 0.861758,
0.862188, 0.862488, 0.862607, 0.8626, 0.8626, 0.862733,
0.863047, 0.86348, 0.863899, 0.86418, 0.864281, 0.864268,
0.864276, 0.864425, 0.864754, 0.865189, 0.865597, 0.865858,
0.865943, 0.865925, 0.865942, 0.866108, 0.86645, 0.866887,
0.867282, 0.867524, 0.867592, 0.867571, 0.867598, 0.867782,
0.868136, 0.868573, 0.868955, 0.869177, 0.86923, 0.869207,
0.869246, 0.869447, 0.869812, 0.870248, 0.870615, 0.870817,
0.870856, 0.870833, 0.870884, 0.871102, 0.871478, 0.87191,
0.872262, 0.872445, 0.872472, 0.87245, 0.872514, 0.872748,
0.873134, 0.873561, 0.873897, 0.87406, 0.874076, 0.874056,
0.874134, 0.874385, 0.874779, 0.875201, 0.875519, 0.875664,
0.87567, 0.875654, 0.875747, 0.876013, 0.876414, 0.876829,
0.877129, 0.877256, 0.877253, 0.877242, 0.87735, 0.877632,
0.878038, 0.878445, 0.878727, 0.878836, 0.878826, 0.878822,
0.878946, 0.879242, 0.879652, 0.880049, 0.880314, 0.880406,
0.880389, 0.880393, 0.880533, 0.880843, 0.881256, 0.881642,
0.881888, 0.881964, 0.881943, 0.881956, 0.882112, 0.882435,
0.88285, 0.883224, 0.883451, 0.883512, 0.883488, 0.88351,
0.883683, 0.884018, 0.884433, 0.884794, 0.885003, 0.885049,
0.885023, 0.885057, 0.885245, 0.885593, 0.886006, 0.886353,
0.886543, 0.886576, 0.88655, 0.886595, 0.8868, 0.887158,
0.887568, 0.887901, 0.888072, 0.888094, 0.888068, 0.888126,
0.888347, 0.888714, 0.88912, 0.889438, 0.88959, 0.889601,
0.889578, 0.88965, 0.889887, 0.890261, 0.890662, 0.890963,
0.891098, 0.891099, 0.89108, 0.891165, 0.891418, 0.891799,
0.892193, 0.892478, 0.892595, 0.892588, 0.892574, 0.892674,
0.892941, 0.893328, 0.893714, 0.893982, 0.894082, 0.894068,
0.89406, 0.894175, 0.894457, 0.894848, 0.895225, 0.895475,
0.895559, 0.895539, 0.895539, 0.895669, 0.895965, 0.896358,
0.896725, 0.896957, 0.897026, 0.897002, 0.89701, 0.897156,
0.897464, 0.89786, 0.898216, 0.89843, 0.898484, 0.898456,
0.898474, 0.898637, 0.898956, 0.899352, 0.899695, 0.899891,
0.899932, 0.899903, 0.899931, 0.90011, 0.90044, 0.900835,
0.901165, 0.901343, 0.901371, 0.901342, 0.901382, 0.901576,
0.901917, 0.902308, 0.902625, 0.902785, 0.902801, 0.902773,
0.902825, 0.903035, 0.903385, 0.903773, 0.904074, 0.904217,
0.904223, 0.904197, 0.904262, 0.904487, 0.904845, 0.905228,
0.905514, 0.905639, 0.905636, 0.905614, 0.905693, 0.905933,
0.906297, 0.906674, 0.906944, 0.907052, 0.907041, 0.907023,
0.907117, 0.907371, 0.907741, 0.90811, 0.908364, 0.908456,
0.908438, 0.908426, 0.908534, 0.908803, 0.909177, 0.909537,
0.909774, 0.909851, 0.909827, 0.909823, 0.909946, 0.910227,
0.910604, 0.910955, 0.911175, 0.911237, 0.911209, 0.911213,
0.911351, 0.911645, 0.912024, 0.912364, 0.912566, 0.912614,
0.912583, 0.912597, 0.91275, 0.913056, 0.913435, 0.913763,
0.913948, 0.913983, 0.913951, 0.913974, 0.914143, 0.91446,
0.914838, 0.915153, 0.915321, 0.915344, 0.915311, 0.915346,
0.91553, 0.915857, 0.916232, 0.916534, 0.916685, 0.916696,
0.916665, 0.916711, 0.916911, 0.917246, 0.917618, 0.917906,
0.91804, 0.918041, 0.918012, 0.918071, 0.918286, 0.918629,
0.918996, 0.919269, 0.919386, 0.919379, 0.919353, 0.919425,
0.919655, 0.920004, 0.920365, 0.920623, 0.920724, 0.920708,
0.920687, 0.920774, 0.921017, 0.921372, 0.921726, 0.921968,
0.922053, 0.922031, 0.922016, 0.922117, 0.922374, 0.922733,
0.923079, 0.923304, 0.923374, 0.923347, 0.923339, 0.923454,
0.923724, 0.924086, 0.924423, 0.924632, 0.924687, 0.924656,
0.924656, 0.924786, 0.925068, 0.925432, 0.925758, 0.925951,
0.925993, 0.925958, 0.925967, 0.926113, 0.926407, 0.926771,
0.927086, 0.927261, 0.92729, 0.927255, 0.927274, 0.927434,
0.927738, 0.928102, 0.928404, 0.928563, 0.928581, 0.928545,
0.928574, 0.92875, 0.929064, 0.929425, 0.929715, 0.929857,
0.929864, 0.929828, 0.92987, 0.930061, 0.930383, 0.930741,
0.931017, 0.931143, 0.931139, 0.931107, 0.931161, 0.931366,
0.931696, 0.932049, 0.932311, 0.93242, 0.932409, 0.932379,
0.932446, 0.932666, 0.933002, 0.93335, 0.933597, 0.93369,
0.933671, 0.933646, 0.933727, 0.93396, 0.934302, 0.934643,
0.934874, 0.934953, 0.934927, 0.934908, 0.935002, 0.935249,
0.935595, 0.935928, 0.936144, 0.936208, 0.936176, 0.936164,
0.936273, 0.936533, 0.936882, 0.937206, 0.937405, 0.937455,
0.93742, 0.937416, 0.937539, 0.937811, 0.938162, 0.938476,
0.938659, 0.938695, 0.938658, 0.938662, 0.938801, 0.939083,
0.939435, 0.939738, 0.939905, 0.939929, 0.93989, 0.939904,
0.940057, 0.94035, 0.940701, 0.940993, 0.941143, 0.941155,
0.941116, 0.941141, 0.941309, 0.941612, 0.941961, 0.942239,
0.942374, 0.942376, 0.942337, 0.942374, 0.942556, 0.942867,
0.943213, 0.943479, 0.943597, 0.943589, 0.943553, 0.943602,
0.943799, 0.944117, 0.944459, 0.94471, 0.944813, 0.944796,
0.944763, 0.944825, 0.945036, 0.945361, 0.945698, 0.945934,
0.946021, 0.945998, 0.945969, 0.946044, 0.946269, 0.9466,
0.946929, 0.947151, 0.947223, 0.947193, 0.94717, 0.947259,
0.947497, 0.947832, 0.948154, 0.94836, 0.948418, 0.948383,
0.948367, 0.94847, 0.94872, 0.949058, 0.949371, 0.949562,
0.949606, 0.949567, 0.949559, 0.949676, 0.949938, 0.950278,
0.950581, 0.950756, 0.950787, 0.950746, 0.950746, 0.950878,
0.951152, 0.951492, 0.951785, 0.951944, 0.951963, 0.95192,
0.95193, 0.952076, 0.95236, 0.9527, 0.952981, 0.953124,
0.953131, 0.953088, 0.953109, 0.95327, 0.953563, 0.953901,
0.95417, 0.954297, 0.954294, 0.954252, 0.954284, 0.954459,
0.954761, 0.955096, 0.955352, 0.955463, 0.955451, 0.955411,
0.955455, 0.955645, 0.955954, 0.956285, 0.956527, 0.956623,
0.956603, 0.956566, 0.956622, 0.956826, 0.957141, 0.957467,
0.957695, 0.957776, 0.957748, 0.957716, 0.957786, 0.958003,
0.958324, 0.958643, 0.958856, 0.958923, 0.958889, 0.958862,
0.958945, 0.959175, 0.9595, 0.959812, 0.960011, 0.960063,
0.960024, 0.960004, 0.960101, 0.960343, 0.960672, 0.960975,
0.961158, 0.961197, 0.961154, 0.961142, 0.961253, 0.961507,
0.961837, 0.962131, 0.962299, 0.962325, 0.962279, 0.962276,
0.962401, 0.962666, 0.962997, 0.963281, 0.963433, 0.963447,
0.9634, 0.963406, 0.963546, 0.963821, 0.964152, 0.964424,
0.96456, 0.964563, 0.964516, 0.964532, 0.964687, 0.964971,
0.9653, 0.965561, 0.965681, 0.965674, 0.965628, 0.965655,
0.965824, 0.966117, 0.966443, 0.966691, 0.966796, 0.966779,
0.966735, 0.966775, 0.966957, 0.967258, 0.96758, 0.967814,
0.967904, 0.967879, 0.967839, 0.96789, 0.968087, 0.968394,
0.968711, 0.968931, 0.969006, 0.968974, 0.968938, 0.969003,
0.969213, 0.969525, 0.969836, 0.970042, 0.970102, 0.970064,
0.970034, 0.970112, 0.970335, 0.970651, 0.970955, 0.971146,
0.971193, 0.97115, 0.971126, 0.971217, 0.971453, 0.971772,
0.972068, 0.972244, 0.972277, 0.97223, 0.972214, 0.97232,
0.972567, 0.972889, 0.973174, 0.973335, 0.973356, 0.973307,
0.973299, 0.973419, 0.973677, 0.973999, 0.974275, 0.97442,
0.974429, 0.974379, 0.97438, 0.974515, 0.974783, 0.975105,
0.97537, 0.975499, 0.975498, 0.975447, 0.975459, 0.975607,
0.975884, 0.976205, 0.976458, 0.976573, 0.976561, 0.976511,
0.976534, 0.976696, 0.976982, 0.9773, 0.977541, 0.97764,
0.977619, 0.977571, 0.977605, 0.977782, 0.978075, 0.97839,
0.978617, 0.978701, 0.978672, 0.978627, 0.978674, 0.978864,
0.979164, 0.979474, 0.979687, 0.979757, 0.97972, 0.97968,
0.97974, 0.979943, 0.980249, 0.980552, 0.980751, 0.980807,
0.980764, 0.98073, 0.980803, 0.981019, 0.981329, 0.981625,
0.981809, 0.981851, 0.981804, 0.981776, 0.981862, 0.982091,
0.982404, 0.982692, 0.982862, 0.98289, 0.982839, 0.982819,
0.982919, 0.98316, 0.983474, 0.983753, 0.983908, 0.983924,
0.983871, 0.983858, 0.983973, 0.984224, 0.98454, 0.984809,
0.984949, 0.984953, 0.984898, 0.984895, 0.985024, 0.985286,
0.985601, 0.985859, 0.985983, 0.985977, 0.985922, 0.985929,
0.986072, 0.986343, 0.986657, 0.986904, 0.987012, 0.986996,
0.986942, 0.98696, 0.987117, 0.987396, 0.987708, 0.987942,
0.988036, 0.988011, 0.987958, 0.987988, 0.988159, 0.988446,
0.988754, 0.988975, 0.989054, 0.989021, 0.988972, 0.989014,
0.989198, 0.989492, 0.989795, 0.990002, 0.990067, 0.990026,
0.989982, 0.990036, 0.990234, 0.990533, 0.99083, 0.991024,
0.991075, 0.991028, 0.990989, 0.991056, 0.991267, 0.99157,
0.99186, 0.99204, 0.992077, 0.992026, 0.991993, 0.992074,
0.992297, 0.992603, 0.992886, 0.99305, 0.993075, 0.993019,
0.992994, 0.993089, 0.993323, 0.993632, 0.993905, 0.994055,
0.994067, 0.994009, 0.993992, 0.994101, 0.994346, 0.994656,
0.99492, 0.995055, 0.995055, 0.994996, 0.994988, 0.99511,
0.995365, 0.995675, 0.995929, 0.996049, 0.996039, 0.995979,
0.99598, 0.996117, 0.996381, 0.99669, 0.996932, 0.997039,
0.997019, 0.99696, 0.996971, 0.99712, 0.997393, 0.997699,
0.997931, 0.998023, 0.997995, 0.997937, 0.997958, 0.99812,
0.998399, 0.998703, 0.998925, 0.999005, 0.99897, 0.998913,
0.998941, 0.999111, 0.999396, 0.999702, 0.999922, 1,
0.999956, 0.99987
};
static const float WAVE_LOGARITHMIC_042[DEFAULT_WAVELEN] = {
-1, -0.98924, -0.957804, -0.908128, -0.843996, -0.770144,
-0.691782, -0.614082, -0.541681, -0.478275, -0.426317, -0.386883,
-0.359682, -0.343223, -0.335109, -0.332398, -0.33201, -0.331111,
-0.327431, -0.319489, -0.306694, -0.289325, -0.268398, -0.245444,
-0.222244, -0.200544, -0.181799, -0.166986, -0.156486, -0.150072,
-0.146979, -0.146045, -0.14591, -0.145221, -0.142831, -0.137956,
-0.130265, -0.119904, -0.107445, -0.0937777, -0.0799587, -0.0670411,
-0.0559167, -0.0471881, -0.04109, -0.0374702, -0.035828, -0.0354049,
-0.0353088, -0.0346542, -0.0326951, -0.0289318, -0.0231763, -0.0155683,
-0.00654069, 0.0032576, 0.013069, 0.0221469, 0.0298698, 0.0358321,
0.0398988, 0.042218, 0.0431891, 0.0433936, 0.0435017, 0.0441664,
0.0459249, 0.0491202, 0.0538546, 0.0599815, 0.0671351, 0.0747936,
0.0823633, 0.0892725, 0.0950584, 0.0994356, 0.102336, 0.103912,
0.104509, 0.104609, 0.104749, 0.105441, 0.107092, 0.109945,
0.114045, 0.119239, 0.125201, 0.131489, 0.137615, 0.14312,
0.14765, 0.150998, 0.153144, 0.154246, 0.154617, 0.154668,
0.15485, 0.155576, 0.157165, 0.15979, 0.163456, 0.168002,
0.173131, 0.178456, 0.183566, 0.188083, 0.191728, 0.194355,
0.195977, 0.196756, 0.196982, 0.197016, 0.197245, 0.19801,
0.199562, 0.202024, 0.205369, 0.209434, 0.213941, 0.218548,
0.222898, 0.226677, 0.229663, 0.231757, 0.232996, 0.233548,
0.23368, 0.233718, 0.233996, 0.2348, 0.236331, 0.238669,
0.241766, 0.245455, 0.249476, 0.25352, 0.257276, 0.26048,
0.262957, 0.264641, 0.265592, 0.265978, 0.266051, 0.266106,
0.266434, 0.267278, 0.268796, 0.271036, 0.273932, 0.277315,
0.280941, 0.284529, 0.287805, 0.290548, 0.292617, 0.293979,
0.294708, 0.294972, 0.29501, 0.295091, 0.29547, 0.296353,
0.297863, 0.300022, 0.30275, 0.305877, 0.309172, 0.31238,
0.315258, 0.31762, 0.319358, 0.32046, 0.321015, 0.32119,
0.321211, 0.321324, 0.321754, 0.322674, 0.324179, 0.326269,
0.328851, 0.331758, 0.33477, 0.337653, 0.340196, 0.342238,
0.3437, 0.344591, 0.345007, 0.345118, 0.345136, 0.345285,
0.345765, 0.346721, 0.348222, 0.35025, 0.352704, 0.355417,
0.358182, 0.360784, 0.363037, 0.364806, 0.366036, 0.366753,
0.367061, 0.367126, 0.367151, 0.36734, 0.367868, 0.368858,
0.370355, 0.372327, 0.374665, 0.377205, 0.37975, 0.382104,
0.384104, 0.385639, 0.386672, 0.387244, 0.387466, 0.387501,
0.387541, 0.387771, 0.388347, 0.389368, 0.390861, 0.39278,
0.395011, 0.397393, 0.39974, 0.401875, 0.403651, 0.404982,
0.405846, 0.406298, 0.406453, 0.40647, 0.406531, 0.406804,
0.407426, 0.408475, 0.409963, 0.411831, 0.413963, 0.4162,
0.418367, 0.420303, 0.421882, 0.423032, 0.423752, 0.424104,
0.424207, 0.424217, 0.424303, 0.42462, 0.425285, 0.42636,
0.427841, 0.42966, 0.431698, 0.4338, 0.435802, 0.437558,
0.438959, 0.439952, 0.440547, 0.440816, 0.440879, 0.44089,
0.441006, 0.441367, 0.442074, 0.443172, 0.444643, 0.446414,
0.448362, 0.450337, 0.452187, 0.453779, 0.45502, 0.455873,
0.45636, 0.45656, 0.456596, 0.456615, 0.456763, 0.457168,
0.457914, 0.459031, 0.460492, 0.462215, 0.464076, 0.465932,
0.46764, 0.469081, 0.470177, 0.470906, 0.4713, 0.471445,
0.471462, 0.471494, 0.471677, 0.472125, 0.472908, 0.474042,
0.47549, 0.477163, 0.47894, 0.480683, 0.482258, 0.48356,
0.484526, 0.485145, 0.485459, 0.485559, 0.485566, 0.485616,
0.485836, 0.486326, 0.487142, 0.48829, 0.489722, 0.491346,
0.493042, 0.494676, 0.496127, 0.497301, 0.498148, 0.498669,
0.498915, 0.498979, 0.498983, 0.499055, 0.499313, 0.499844,
0.500691, 0.501849, 0.503263, 0.504838, 0.506453, 0.507984,
0.509317, 0.510373, 0.511112, 0.511546, 0.511734, 0.511772,
0.511779, 0.511876, 0.512172, 0.512742, 0.513618, 0.514783,
0.516177, 0.517701, 0.519238, 0.520669, 0.521892, 0.522837,
0.523478, 0.523836, 0.523976, 0.523995, 0.524009, 0.524135,
0.52447, 0.525077, 0.525978, 0.527147, 0.528517, 0.52999,
0.53145, 0.532786, 0.533904, 0.534747, 0.5353, 0.53559,
0.535689, 0.535696, 0.535723, 0.53588, 0.536252, 0.536895,
0.537819, 0.538989, 0.540333, 0.541753, 0.543138, 0.544381,
0.545402, 0.54615, 0.546622, 0.546854, 0.54692, 0.546921,
0.546964, 0.547153, 0.547563, 0.548239, 0.549182, 0.55035,
0.551667, 0.553033, 0.554343, 0.555498, 0.556425, 0.557086,
0.557485, 0.557666, 0.557707, 0.557707, 0.55777, 0.557992,
0.558439, 0.559146, 0.560105, 0.561267, 0.562554, 0.563867,
0.565103, 0.566173, 0.567012, 0.567592, 0.567926, 0.568063,
0.568084, 0.568088, 0.568174, 0.56843, 0.568913, 0.569649,
0.57062, 0.571774, 0.573028, 0.574287, 0.575451, 0.576439,
0.577195, 0.5777, 0.577975, 0.578075, 0.578083, 0.578095,
0.578207, 0.578496, 0.579014, 0.579776, 0.580757, 0.581899,
0.583119, 0.584323, 0.585416, 0.586325, 0.587003, 0.58744,
0.587662, 0.587732, 0.587731, 0.587755, 0.587893, 0.588217,
0.588768, 0.589553, 0.590541, 0.591669, 0.592853, 0.594,
0.595025, 0.595858, 0.596462, 0.596836, 0.597012, 0.597057,
0.597053, 0.597092, 0.597259, 0.597617, 0.598199, 0.599004,
0.599995, 0.601106, 0.602252, 0.603344, 0.6043, 0.605061,
0.605596, 0.605912, 0.606049, 0.606073, 0.60607, 0.606128,
0.606324, 0.606716, 0.607328, 0.60815, 0.609142, 0.610233,
0.611339, 0.612375, 0.613264, 0.613955, 0.614426, 0.61469,
0.614792, 0.614802, 0.614804, 0.614882, 0.615109, 0.615534,
0.616173, 0.61701, 0.617999, 0.619067, 0.620133, 0.621112,
0.621937, 0.622561, 0.622972, 0.623189, 0.623262, 0.623262,
0.623272, 0.623373, 0.623631, 0.624087, 0.624751, 0.6256,
0.626583, 0.627627, 0.628651, 0.629574, 0.630335, 0.630897,
0.631252, 0.631427, 0.631475, 0.631469, 0.631491, 0.631616,
0.631905, 0.632392, 0.633079, 0.633937, 0.634912, 0.635929,
0.636908, 0.637776, 0.638476, 0.638977, 0.639281, 0.639418,
0.639446, 0.639439, 0.639475, 0.639627, 0.639947, 0.640463,
0.64117, 0.642034, 0.642997, 0.643985, 0.64492, 0.645733,
0.646373, 0.646818, 0.647075, 0.647179, 0.647192, 0.647186,
0.64724, 0.647418, 0.647769, 0.648312, 0.649037, 0.649905,
0.650854, 0.651811, 0.652701, 0.653459, 0.654042, 0.654433,
0.654646, 0.654722, 0.654724, 0.654724, 0.654796, 0.655003,
0.655384, 0.655952, 0.656692, 0.65756, 0.658493, 0.659417,
0.660261, 0.660965, 0.661493, 0.661834, 0.662008, 0.66206,
0.662054, 0.662063, 0.662156, 0.662391, 0.662802, 0.663394,
0.664147, 0.665012, 0.665926, 0.666815, 0.667613, 0.668265,
0.66874, 0.669034, 0.669173, 0.669205, 0.669195, 0.669215,
0.669331, 0.669595, 0.670033, 0.670647, 0.67141, 0.67227,
0.673162, 0.674016, 0.674767, 0.675367, 0.675792, 0.676043,
0.67615, 0.676166, 0.676156, 0.67619, 0.67633, 0.676622,
0.677088, 0.677721, 0.678491, 0.679343, 0.680212, 0.681029,
0.681734, 0.682283, 0.682659, 0.68287, 0.68295, 0.682953,
0.682946, 0.682996, 0.683162, 0.683482, 0.683973, 0.684624,
0.685398, 0.68624, 0.687083, 0.687862, 0.688521, 0.689022,
0.689352, 0.689526, 0.689582, 0.689577, 0.689576, 0.689644,
0.689835, 0.690183, 0.690698, 0.691364, 0.69214, 0.692969,
0.693785, 0.694525, 0.695138, 0.695591, 0.695878, 0.696019,
0.696055, 0.696044, 0.696052, 0.69614, 0.696357, 0.696732,
0.69727, 0.697948, 0.698723, 0.699537, 0.700324, 0.701025,
0.701592, 0.701999, 0.702247, 0.702357, 0.702377, 0.702364,
0.702382, 0.702491, 0.702735, 0.703137, 0.703695, 0.704383,
0.705155, 0.705951, 0.706708, 0.707368, 0.707891, 0.708254,
0.708464, 0.708548, 0.708554, 0.708542, 0.708574, 0.708705,
0.708976, 0.709403, 0.709979, 0.710675, 0.711441, 0.712217,
0.712942, 0.713563, 0.714041, 0.714363, 0.714538, 0.714599,
0.714595, 0.714586, 0.714634, 0.714788, 0.715085, 0.715536,
0.716129, 0.71683, 0.717588, 0.718342, 0.719034, 0.719614,
0.72005, 0.720333, 0.720476, 0.720516, 0.720505, 0.720503,
0.720567, 0.720746, 0.721069, 0.721542, 0.72215, 0.722853,
0.7236, 0.724331, 0.72499, 0.725529, 0.725924, 0.726168,
0.726283, 0.726306, 0.726291, 0.726297, 0.726381, 0.726584,
0.726932, 0.727427, 0.728046, 0.72875, 0.729484, 0.73019,
0.730813, 0.731313, 0.731667, 0.731877, 0.731965, 0.731974,
0.731958, 0.731975, 0.732079, 0.732307, 0.73268, 0.733194,
0.733823, 0.734525, 0.735244, 0.735923, 0.736511, 0.736971,
0.737287, 0.737463, 0.737528, 0.737526, 0.737512, 0.737542,
0.737667, 0.73792, 0.738316, 0.738848, 0.739485, 0.740182,
0.740884, 0.741535, 0.742087, 0.742509, 0.742787, 0.742933,
0.742978, 0.742967, 0.742958, 0.743003, 0.743149, 0.743427,
0.743846, 0.744393, 0.745036, 0.745726, 0.746409, 0.747031,
0.747547, 0.74793, 0.748174, 0.748292, 0.748319, 0.748303,
0.7483, 0.748361, 0.748531, 0.748833, 0.749273, 0.749834,
0.750479, 0.75116, 0.751822, 0.752414, 0.752894, 0.753241,
0.753451, 0.753543, 0.753555, 0.753537, 0.753543, 0.753622,
0.753815, 0.754141, 0.754601, 0.755173, 0.755819, 0.756489,
0.757129, 0.757689, 0.758134, 0.758444, 0.758623, 0.758692,
0.758692, 0.758674, 0.75869, 0.758789, 0.759005, 0.759355,
0.759832, 0.760414, 0.761059, 0.761715, 0.762331, 0.76286,
0.763269, 0.763545, 0.763694, 0.763743, 0.763734, 0.763718,
0.763747, 0.763866, 0.764106, 0.764477, 0.764972, 0.765561,
0.766202, 0.766843, 0.767433, 0.76793, 0.768304, 0.768547,
0.768668, 0.7687, 0.768684, 0.768673, 0.768717, 0.768857,
0.769119, 0.769512, 0.770021, 0.770616, 0.77125, 0.771875,
0.772439, 0.772903, 0.773243, 0.773453, 0.77355, 0.773566,
0.773546, 0.773542, 0.773602, 0.773763, 0.774049, 0.774462,
0.774984, 0.775581, 0.776208, 0.776814, 0.77735, 0.777782,
0.778088, 0.778269, 0.778343, 0.778346, 0.778325, 0.778329,
0.778406, 0.77859, 0.778898, 0.779329, 0.779863, 0.780461,
0.781078, 0.781663, 0.782171, 0.78257, 0.782844, 0.782996,
0.78305, 0.783042, 0.783022, 0.783038, 0.783133, 0.783339,
0.783669, 0.784117, 0.78466, 0.785257, 0.785861, 0.786425,
0.786904, 0.787271, 0.787513, 0.787639, 0.787674, 0.787659,
0.787642, 0.78767, 0.787785, 0.788013, 0.788364, 0.788828,
0.789377, 0.789971, 0.790562, 0.791102, 0.791552, 0.791886,
0.792099, 0.7922, 0.792219, 0.792199, 0.792187, 0.792229,
0.792364, 0.792614, 0.792985, 0.793463, 0.794018, 0.794607,
0.795182, 0.795697, 0.796117, 0.796421, 0.796604, 0.796682,
0.796689, 0.796665, 0.79666, 0.796718, 0.796873, 0.797146,
0.797535, 0.798026, 0.798583, 0.799165, 0.799722, 0.800213,
0.800603, 0.800875, 0.801031, 0.80109, 0.801085, 0.801061,
0.801065, 0.801139, 0.801316, 0.801609, 0.802017, 0.802517,
0.803076, 0.803648, 0.804187, 0.804651, 0.805011, 0.805254,
0.805384, 0.805424, 0.80541, 0.805388, 0.805403, 0.805495,
0.805692, 0.806006, 0.80643, 0.80694, 0.807498, 0.808058,
0.808577, 0.809014, 0.809345, 0.809558, 0.809664, 0.809688,
0.809668, 0.809649, 0.809676, 0.809787, 0.810006, 0.81034,
0.810779, 0.811295, 0.81185, 0.812398, 0.812895, 0.813305,
0.813606, 0.813792, 0.813875, 0.813885, 0.81386, 0.813847,
0.813888, 0.814018, 0.814258, 0.814611, 0.815063, 0.815584,
0.816134, 0.816667, 0.817142, 0.817524, 0.817796, 0.817956,
0.818019, 0.818016, 0.81799, 0.817984, 0.81804, 0.81819,
0.818451, 0.818822, 0.819286, 0.81981, 0.820353, 0.82087,
0.821321, 0.821675, 0.821918, 0.822053, 0.822097, 0.822085,
0.822059, 0.822062, 0.822135, 0.822305, 0.822586, 0.822974,
0.823447, 0.823972, 0.824506, 0.825006, 0.825432, 0.825759,
0.825975, 0.826085, 0.826113, 0.826094, 0.82607, 0.826084,
0.826174, 0.826364, 0.826665, 0.827068, 0.82755, 0.828074,
0.828597, 0.829078, 0.829479, 0.829778, 0.829967, 0.830056,
0.830069, 0.830044, 0.830024, 0.830051, 0.830158, 0.830369,
0.830689, 0.831106, 0.831594, 0.832116, 0.832627, 0.833087,
0.833463, 0.833735, 0.833898, 0.833966, 0.833967, 0.833938,
0.833924, 0.833964, 0.834091, 0.834322, 0.83466, 0.83509,
0.835582, 0.836099, 0.836596, 0.837035, 0.837385, 0.83763,
0.837768, 0.837818, 0.837808, 0.837778, 0.837772, 0.837827,
0.837973, 0.838224, 0.838579, 0.83902, 0.839515, 0.840025,
0.840507, 0.840924, 0.841248, 0.841465, 0.841581, 0.841613,
0.841595, 0.841566, 0.841569, 0.84164, 0.841805, 0.842076,
0.842447, 0.842897, 0.843393, 0.843894, 0.84436, 0.844754,
0.845051, 0.845243, 0.845337, 0.845354, 0.845329, 0.845303,
0.845317, 0.845405, 0.84559, 0.845879, 0.846265, 0.846723,
0.847218, 0.847709, 0.848157, 0.848527, 0.848799, 0.848966,
0.849039, 0.849043, 0.849014, 0.848992, 0.849018, 0.849123,
0.849328, 0.849636, 0.850035, 0.850499, 0.850991, 0.851471,
0.851899, 0.852245, 0.852491, 0.852634, 0.852688, 0.85268,
0.852649, 0.852634, 0.852673, 0.852797, 0.853021, 0.853346,
0.853757, 0.854225, 0.854712, 0.855179, 0.855587, 0.855909,
0.856129, 0.856249, 0.856286, 0.856269, 0.856237, 0.85623,
0.856284, 0.856426, 0.856669, 0.857011, 0.857432, 0.857903,
0.858384, 0.858836, 0.859223, 0.859519, 0.859715, 0.859813,
0.859835, 0.859811, 0.85978, 0.859782, 0.859852, 0.860013,
0.860275, 0.860632, 0.861062, 0.861533, 0.862006, 0.862442,
0.862807, 0.863079, 0.86325, 0.863328, 0.863336, 0.863306,
0.863279, 0.863292, 0.863378, 0.863558, 0.863838, 0.864209,
0.864646, 0.865116, 0.86558, 0.865998, 0.866341, 0.866588,
0.866736, 0.866795, 0.866791, 0.866757, 0.866735, 0.86676,
0.866864, 0.867063, 0.86736, 0.867744, 0.868187, 0.868654,
0.869106, 0.869506, 0.869826, 0.870049, 0.870174, 0.870216,
0.870201, 0.870166, 0.87015, 0.870189, 0.87031, 0.870528,
0.870842, 0.871237, 0.871684, 0.872146, 0.872586, 0.872967,
0.873263, 0.873462, 0.873565, 0.873591, 0.873568, 0.873533,
0.873525, 0.873579, 0.873718, 0.873955, 0.874285, 0.874689,
0.875138, 0.875595, 0.87602, 0.87638, 0.876653, 0.876828,
0.876912, 0.876923, 0.876894, 0.876861, 0.876862, 0.876931,
0.877089, 0.877344, 0.877688, 0.878101, 0.878551, 0.878999,
0.879409, 0.879748, 0.879998, 0.88015, 0.880214, 0.880213,
0.880179, 0.880149, 0.880162, 0.880247, 0.880423, 0.880696,
0.881054, 0.881473, 0.881922, 0.88236, 0.882754, 0.883072,
0.883297, 0.883427, 0.883474, 0.883462, 0.883425, 0.883401,
0.883426, 0.883528, 0.883722, 0.884012, 0.884382, 0.884806,
0.885252, 0.88568, 0.886055, 0.886351, 0.886554, 0.886662,
0.886693, 0.886671, 0.886633, 0.886616, 0.886654, 0.886774,
0.886987, 0.887292, 0.887673, 0.888101, 0.888542, 0.888957,
0.889314, 0.889588, 0.889767, 0.889856, 0.889871, 0.889842,
0.889805, 0.889796, 0.889849, 0.889986, 0.890217, 0.890537,
0.890927, 0.891358, 0.891792, 0.892194, 0.892531, 0.892782,
0.892939, 0.893009, 0.893011, 0.892976, 0.892941, 0.892943,
0.893011, 0.893166, 0.893414, 0.893748, 0.894147, 0.894577,
0.895004, 0.89539, 0.895707, 0.895936, 0.896071, 0.896123,
0.896113, 0.896075, 0.896044, 0.896056, 0.89614, 0.896313,
0.896579, 0.896926, 0.89733, 0.897759, 0.898177, 0.898547,
0.898843, 0.899049, 0.899164, 0.899199, 0.899179, 0.899138,
0.899113, 0.899138, 0.899239, 0.89943, 0.899712, 0.90007,
0.900479, 0.900905, 0.901312, 0.901665, 0.90194, 0.902124,
0.902218, 0.902237, 0.902209, 0.902168, 0.902151, 0.902189,
0.902306, 0.902515, 0.902813, 0.903181, 0.903594, 0.904015,
0.904409, 0.904745, 0.904998, 0.90516, 0.905235, 0.90524,
0.905206, 0.905166, 0.905157, 0.905209, 0.905345, 0.905571,
0.905883, 0.906261, 0.906675, 0.90709, 0.90747, 0.907787,
0.908018, 0.908159, 0.908215, 0.908209, 0.908169, 0.908133,
0.908133, 0.908201, 0.908354, 0.908597, 0.908923, 0.909308,
0.909722, 0.910129, 0.910495, 0.910792, 0.911001, 0.911121,
0.911161, 0.911143, 0.911101, 0.911068, 0.911081, 0.911164,
0.911335, 0.911595, 0.911932, 0.912323, 0.912736, 0.913134,
0.913484, 0.91376, 0.913948, 0.914048, 0.914072, 0.914045,
0.914001, 0.913975, 0.914, 0.914099, 0.914288, 0.914563,
0.914912, 0.915308, 0.915717, 0.916104, 0.916437, 0.916693,
0.91686, 0.91694, 0.91695, 0.916916, 0.916872, 0.916853,
0.916891, 0.917008, 0.917213, 0.917504, 0.917863, 0.918261,
0.918665, 0.919041, 0.919356, 0.919591, 0.919737, 0.919799,
0.919796, 0.919756, 0.919713, 0.919704, 0.919756, 0.91989,
0.920113, 0.920417, 0.920784, 0.921184, 0.921582, 0.921944,
0.922241, 0.922455, 0.92258, 0.922625, 0.92261, 0.922566,
0.922527, 0.922527, 0.922595, 0.922746, 0.922985, 0.923303,
0.923677, 0.924077, 0.924467, 0.924814, 0.925092, 0.925285,
0.92539, 0.925419, 0.925394, 0.925347, 0.925313, 0.925325,
0.925408, 0.925577, 0.925832, 0.926162, 0.926542, 0.926939,
0.92732, 0.927652, 0.92791, 0.928082, 0.928168, 0.928182,
0.928149, 0.928101, 0.928074, 0.928098, 0.928197, 0.928383,
0.928654, 0.928994, 0.929378, 0.929772, 0.930142, 0.930457,
0.930696, 0.930847, 0.930914, 0.930915, 0.930875, 0.930828,
0.930808, 0.930846, 0.930962, 0.931165, 0.931451, 0.9318,
0.932186, 0.932575, 0.932934, 0.933231, 0.933449, 0.93358,
0.93363, 0.933618, 0.933573, 0.933529, 0.933518, 0.93357,
0.933703, 0.933923, 0.934222, 0.93458, 0.934967, 0.93535,
0.935695, 0.935974, 0.936172, 0.936283, 0.936316, 0.936294,
0.936245, 0.936204, 0.936204, 0.936272, 0.936422, 0.936658,
0.936969, 0.937334, 0.93772, 0.938095, 0.938425, 0.938686,
0.938864, 0.938955, 0.938973, 0.938942, 0.938891, 0.938855,
0.938867, 0.93895, 0.939117, 0.939369, 0.939692, 0.940062,
0.940446, 0.940811, 0.941127, 0.941368, 0.941525, 0.941598,
0.941602, 0.941563, 0.941512, 0.941483, 0.941507, 0.941607,
0.941791, 0.942058, 0.942391, 0.942764, 0.943145, 0.9435,
0.943798, 0.944021, 0.944157, 0.944212, 0.944204, 0.944158,
0.944108, 0.944088, 0.944126, 0.944242, 0.944443, 0.944724,
0.945066, 0.945441, 0.945817, 0.94616, 0.946441, 0.946644,
0.94676, 0.946799, 0.946779, 0.946728, 0.946681, 0.946671,
0.946723, 0.946855, 0.947073, 0.947367, 0.947717, 0.948093,
0.948462, 0.948792, 0.949055, 0.949238, 0.949335, 0.949358,
0.949328, 0.949275, 0.949232, 0.949232, 0.949299, 0.949449,
0.949682, 0.949989, 0.950345, 0.95072, 0.951081, 0.951396,
0.951641, 0.951804, 0.951883, 0.951891, 0.951852, 0.951797,
0.95176, 0.951772, 0.951855, 0.952022, 0.952271, 0.952588,
0.952949, 0.953322, 0.953673, 0.953973, 0.9542, 0.954342,
0.954403, 0.954398, 0.954352, 0.954297, 0.954268, 0.954292,
0.954391, 0.954575, 0.954838, 0.955166, 0.95553, 0.955899,
0.956239, 0.956523, 0.95673, 0.956853, 0.956897, 0.95688,
0.956828, 0.956776, 0.956754, 0.956792, 0.956908, 0.957108,
0.957386, 0.957721, 0.958088, 0.958451, 0.95878, 0.959047,
0.959234, 0.959338, 0.959365, 0.959337, 0.959282, 0.959232,
0.959221, 0.959274, 0.959406, 0.959623, 0.959913, 0.960256,
0.960622, 0.960979, 0.961295, 0.961544, 0.961712, 0.961796,
0.961809, 0.961771, 0.961713, 0.961669, 0.961668, 0.961736,
0.961886, 0.962118, 0.96242, 0.962769, 0.963134, 0.963482,
0.963784, 0.964015, 0.964163, 0.964229, 0.964228, 0.964182,
0.964124, 0.964085, 0.964097, 0.964181, 0.964347, 0.964594,
0.964907, 0.96526, 0.965623, 0.965962, 0.966248, 0.96646,
0.966589, 0.966638, 0.966623, 0.966571, 0.966514, 0.966483,
0.966507, 0.966607, 0.96679, 0.967052, 0.967374, 0.96773,
0.968089, 0.968417, 0.968687, 0.96888, 0.968989, 0.969022,
0.968996, 0.968939, 0.968883, 0.968861, 0.9689, 0.969016,
0.969216, 0.969491, 0.969821, 0.970179, 0.970532, 0.970848,
0.971101, 0.971274, 0.971365, 0.971382, 0.971346, 0.971286,
0.971234, 0.971222, 0.971275, 0.971409, 0.971624, 0.971911,
0.972249, 0.972607, 0.972953, 0.973255, 0.97349, 0.973645,
0.973717, 0.97372, 0.973675, 0.973612, 0.973566, 0.973565,
0.973634, 0.973784, 0.974015, 0.974314, 0.974657, 0.975013,
0.975351, 0.975639, 0.975856, 0.975991, 0.976046, 0.976034,
0.975982, 0.97592, 0.97588, 0.975892, 0.975976, 0.976143,
0.976389, 0.976698, 0.977045, 0.977399, 0.977726, 0.977999,
0.978198, 0.978313, 0.978351, 0.978328, 0.978269, 0.978208,
0.978176, 0.978201, 0.978302, 0.978486, 0.978746, 0.979064,
0.979414, 0.979763, 0.98008, 0.980336, 0.980516, 0.980612,
0.980634, 0.980599, 0.980537, 0.980478, 0.980456, 0.980495,
0.980613, 0.980813, 0.981086, 0.981413, 0.981764, 0.982107,
0.982411, 0.98265, 0.98281, 0.982888, 0.982895, 0.982851,
0.982785, 0.982731, 0.982719, 0.982774, 0.982908, 0.983124,
0.98341, 0.983743, 0.984093, 0.984429, 0.984719, 0.984941,
0.985082, 0.985142, 0.985134, 0.985082, 0.985015, 0.984967,
0.984967, 0.985037, 0.985188, 0.98542, 0.985717, 0.986055,
0.986404, 0.98673, 0.987006, 0.98721, 0.987331, 0.987374,
0.987353, 0.987293, 0.987227, 0.987186, 0.987199, 0.987285,
0.987454, 0.9877, 0.988007, 0.988349, 0.988695, 0.989011,
0.989271, 0.989456, 0.989558, 0.989584, 0.989551, 0.989486,
0.989422, 0.98939, 0.989416, 0.98952, 0.989705, 0.989965,
0.990282, 0.990626, 0.990966, 0.991271, 0.991514, 0.991679,
0.991763, 0.991772, 0.991729, 0.99166, 0.9916, 0.991578,
0.991619, 0.99174, 0.991942, 0.992216, 0.99254, 0.992885,
0.993219, 0.99351, 0.993736, 0.993881, 0.993945, 0.993939,
0.993886, 0.993816, 0.99376, 0.99375, 0.993809, 0.993948,
0.994167, 0.994454, 0.994784, 0.995128, 0.995453, 0.995729,
0.995935, 0.996059, 0.996103, 0.996083, 0.996022, 0.995952,
0.995904, 0.995909, 0.995986, 0.996146, 0.996383, 0.996682,
0.997018, 0.997358, 0.99767, 0.997927, 0.998108, 0.998207,
0.99823, 0.998194, 0.998127, 0.998062, 0.998031, 0.998061,
0.998169, 0.998359, 0.998623, 0.998936, 0.999267, 0.999578,
0.999833, 1
};
static const float WAVE_LOGARITHMIC_054[DEFAULT_WAVELEN] = {
-1, -0.997016, -0.988125, -0.973499, -0.953425, -0.928292,
-0.898584, -0.864864, -0.827763, -0.787964, -0.746179, -0.703139,
-0.659571, -0.616182, -0.573641, -0.532568, -0.493513, -0.456951,
-0.423272, -0.392771, -0.365647, -0.342003, -0.321847, -0.305094,
-0.291577, -0.281055, -0.273221, -0.267717, -0.264149, -0.262096,
-0.261127, -0.260818, -0.260758, -0.260567, -0.259902, -0.25847,
-0.256033, -0.252411, -0.247487, -0.241207, -0.233579, -0.224666,
-0.214584, -0.203494, -0.191595, -0.179111, -0.166287, -0.153372,
-0.140618, -0.128261, -0.116522, -0.105591, -0.0956264, -0.0867489,
-0.079037, -0.0725263, -0.0672097, -0.063039, -0.0599277, -0.0577555,
-0.0563742, -0.0556134, -0.0552881, -0.0552059, -0.0551739, -0.0550067,
-0.0545324, -0.0535988, -0.0520788, -0.0498738, -0.0469172, -0.0431753,
-0.0386482, -0.0333682, -0.0273981, -0.0208277, -0.0137697, -0.00635444,
0.001275, 0.00896916, 0.0165779, 0.0239561, 0.0309695, 0.0374993,
0.0434462, 0.0487344, 0.0533134, 0.0571598, 0.0602772, 0.0626959,
0.0644709, 0.0656794, 0.0664174, 0.0667954, 0.0669344, 0.0669603,
0.0669996, 0.0671745, 0.0675978, 0.0683693, 0.0695721, 0.0712698,
0.0735041, 0.0762943, 0.0796363, 0.0835037, 0.0878493, 0.0926068,
0.0976945, 0.103018, 0.108475, 0.113958, 0.119361, 0.124579,
0.129519, 0.134097, 0.138244, 0.141909, 0.145058, 0.147678,
0.149775, 0.151377, 0.152525, 0.153282, 0.15372, 0.153924,
0.153984, 0.153994, 0.15405, 0.15424, 0.154648, 0.155346,
0.156393, 0.157834, 0.159696, 0.161988, 0.164703, 0.167816,
0.171287, 0.175062, 0.179074, 0.183249, 0.187505, 0.191759,
0.195928, 0.199934, 0.203703, 0.207174, 0.210296, 0.213032,
0.215361, 0.217275, 0.218786, 0.219916, 0.220706, 0.221205,
0.221475, 0.221584, 0.221607, 0.221618, 0.221693, 0.221902,
0.222309, 0.22297, 0.223928, 0.225215, 0.22685, 0.228835,
0.231161, 0.233803, 0.236725, 0.23988, 0.24321, 0.246653,
0.250143, 0.253609, 0.256986, 0.26021, 0.263224, 0.265978,
0.268436, 0.27057, 0.272366, 0.273822, 0.274952, 0.275779,
0.276338, 0.276674, 0.276841, 0.276896, 0.276902, 0.276923,
0.277018, 0.277247, 0.27766, 0.278301, 0.279203, 0.28039,
0.281872, 0.283649, 0.285709, 0.288027, 0.290569, 0.293293,
0.296149, 0.299083, 0.302036, 0.304952, 0.307774, 0.310449,
0.312932, 0.315183, 0.317174, 0.318884, 0.320307, 0.321443,
0.322308, 0.322924, 0.323325, 0.323551, 0.323651, 0.323675,
0.323677, 0.32371, 0.323828, 0.324076, 0.324499, 0.32513,
0.325995, 0.327112, 0.328485, 0.33011, 0.331975, 0.334054,
0.336316, 0.338722, 0.341227, 0.343782, 0.346338, 0.348844,
0.351253, 0.35352, 0.355607, 0.357485, 0.359128, 0.360525,
0.361671, 0.362571, 0.363241, 0.363704, 0.363992, 0.364142,
0.364198, 0.364204, 0.364209, 0.364259, 0.364398, 0.364667,
0.365102, 0.365729, 0.366568, 0.367633, 0.368923, 0.370433,
0.372148, 0.374043, 0.376088, 0.378247, 0.380479, 0.382741,
0.384987, 0.387175, 0.389262, 0.391212, 0.392993, 0.39458,
0.395955, 0.39711, 0.398043, 0.398763, 0.399285, 0.399634,
0.399838, 0.399934, 0.399961, 0.399959, 0.399972, 0.400039,
0.400201, 0.400491, 0.400937, 0.401564, 0.402386, 0.40341,
0.404636, 0.406054, 0.407649, 0.409396, 0.411267, 0.413228,
0.41524, 0.417265, 0.419262, 0.421194, 0.423023, 0.424719,
0.426254, 0.427609, 0.42877, 0.429732, 0.430498, 0.431075,
0.431483, 0.431743, 0.431886, 0.431943, 0.431951, 0.431948,
0.431972, 0.432059, 0.432242, 0.432552, 0.433012, 0.433641,
0.434449, 0.435441, 0.436614, 0.437957, 0.439453, 0.441078,
0.442805, 0.444601, 0.446432, 0.448261, 0.450052, 0.451772,
0.453389, 0.454875, 0.456208, 0.457373, 0.458359, 0.459165,
0.459794, 0.460259, 0.460575, 0.460767, 0.460862, 0.460892,
0.46089, 0.460891, 0.460928, 0.461035, 0.46124, 0.461569,
0.462043, 0.462675, 0.463473, 0.464439, 0.465568, 0.466847,
0.468259, 0.469781, 0.471385, 0.473042, 0.474719, 0.476382,
0.477999, 0.47954, 0.480977, 0.482287, 0.483451, 0.484457,
0.485298, 0.485975, 0.486493, 0.486864, 0.487108, 0.487246,
0.487306, 0.487317, 0.487311, 0.487318, 0.487371, 0.487498,
0.487725, 0.488073, 0.48856, 0.489196, 0.489987, 0.490931,
0.492021, 0.493245, 0.494585, 0.496017, 0.497515, 0.499051,
0.500594, 0.502114, 0.503582, 0.504969, 0.506253, 0.507412,
0.508432, 0.509303, 0.510022, 0.51059, 0.511015, 0.51131,
0.511495, 0.511591, 0.511625, 0.511624, 0.511617, 0.511635,
0.511704, 0.511852, 0.512099, 0.512466, 0.512966, 0.513606,
0.514391, 0.515316, 0.516373, 0.517548, 0.518823, 0.520176,
0.521581, 0.52301, 0.524437, 0.525831, 0.527168, 0.528421,
0.529571, 0.5306, 0.531496, 0.532251, 0.532865, 0.533341,
0.533688, 0.533921, 0.534058, 0.534121, 0.534135, 0.534127,
0.534124, 0.534154, 0.534241, 0.534409, 0.534677, 0.535062,
0.535574, 0.536219, 0.536998, 0.537906, 0.538932, 0.540064,
0.541281, 0.542563, 0.543884, 0.545219, 0.546541, 0.547824,
0.549044, 0.55018, 0.551212, 0.552127, 0.552914, 0.553569,
0.554093, 0.55449, 0.554771, 0.554952, 0.55505, 0.555087,
0.555088, 0.555077, 0.555081, 0.555125, 0.55523, 0.555418,
0.555707, 0.556109, 0.556633, 0.557282, 0.558056, 0.558947,
0.559947, 0.561038, 0.562203, 0.56342, 0.564665, 0.565914,
0.567142, 0.568325, 0.569442, 0.570472, 0.571399, 0.572213,
0.572905, 0.573472, 0.573917, 0.574247, 0.574473, 0.574609,
0.574676, 0.574694, 0.574686, 0.574677, 0.574689, 0.574748,
0.574872, 0.57508, 0.575388, 0.575807, 0.576342, 0.576995,
0.577764, 0.578641, 0.579614, 0.580668, 0.581784, 0.582941,
0.584117, 0.585288, 0.58643, 0.587523, 0.588545, 0.58948,
0.590315, 0.591038, 0.591646, 0.592136, 0.592512, 0.592784,
0.592962, 0.593062, 0.593104, 0.593107, 0.593095, 0.593089,
0.593113, 0.593187, 0.59333, 0.593559, 0.593886, 0.59432,
0.594865, 0.595522, 0.596285, 0.597148, 0.598097, 0.599116,
0.600186, 0.601288, 0.602399, 0.603498, 0.604562, 0.605571,
0.606508, 0.607358, 0.608108, 0.60875, 0.609282, 0.609704,
0.610021, 0.610242, 0.61038, 0.61045, 0.610472, 0.610465,
0.610451, 0.610452, 0.610488, 0.610579, 0.610741, 0.610989,
0.611334, 0.611783, 0.612338, 0.612997, 0.613756, 0.614604,
0.615529, 0.616515, 0.617543, 0.618593, 0.619644, 0.620675,
0.621666, 0.6226, 0.623458, 0.624229, 0.624903, 0.625473,
0.625937, 0.626298, 0.626563, 0.62674, 0.626843, 0.626889,
0.626895, 0.626882, 0.62687, 0.626879, 0.626929, 0.627036,
0.627218, 0.627485, 0.627848, 0.62831, 0.628874, 0.629535,
0.630289, 0.631123, 0.632025, 0.632979, 0.633966, 0.634966,
0.635961, 0.636929, 0.637853, 0.638716, 0.639502, 0.640201,
0.640805, 0.641309, 0.641713, 0.64202, 0.642238, 0.642377,
0.642452, 0.642477, 0.642473, 0.642456, 0.642448, 0.642467,
0.642531, 0.642657, 0.642857, 0.643143, 0.643522, 0.643998,
0.644569, 0.645232, 0.645979, 0.6468, 0.647679, 0.648602,
0.649549, 0.650503, 0.651444, 0.652354, 0.653214, 0.654011,
0.654731, 0.655364, 0.655904, 0.656348, 0.656697, 0.656956,
0.657134, 0.65724, 0.65729, 0.6573, 0.657287, 0.65727,
0.657268, 0.657299, 0.657378, 0.657522, 0.657741, 0.658045,
0.65844, 0.658927, 0.659505, 0.660169, 0.66091, 0.661716,
0.662573, 0.663465, 0.664375, 0.665284, 0.666174, 0.667028,
0.667829, 0.668564, 0.669222, 0.669794, 0.670275, 0.670665,
0.670965, 0.671181, 0.671323, 0.671401, 0.671431, 0.671429,
0.671411, 0.671396, 0.671402, 0.671445, 0.671541, 0.671702,
0.67194, 0.672261, 0.672671, 0.673169, 0.673753, 0.674417,
0.67515, 0.675942, 0.676777, 0.67764, 0.678513, 0.679378,
0.68022, 0.68102, 0.681766, 0.682443, 0.683043, 0.683559,
0.683986, 0.684326, 0.684582, 0.68476, 0.68487, 0.684924,
0.684938, 0.684926, 0.684906, 0.684895, 0.68491, 0.684967,
0.685079, 0.685259, 0.685515, 0.685853, 0.686277, 0.686785,
0.687374, 0.688036, 0.688762, 0.689538, 0.690351, 0.691185,
0.692022, 0.692846, 0.693641, 0.694391, 0.695083, 0.695706,
0.696252, 0.696715, 0.697094, 0.697388, 0.697604, 0.697748,
0.69783, 0.697865, 0.697865, 0.697847, 0.697827, 0.697822,
0.697848, 0.697919, 0.698048, 0.698245, 0.698519, 0.698873,
0.69931, 0.699827, 0.70042, 0.70108, 0.701797, 0.702558,
0.703349, 0.704154, 0.704956, 0.70574, 0.70649, 0.707192,
0.707834, 0.708406, 0.708901, 0.709315, 0.709648, 0.709901,
0.710081, 0.710194, 0.710253, 0.710271, 0.71026, 0.710239,
0.710221, 0.710224, 0.710262, 0.710348, 0.710494, 0.710709,
0.711, 0.711369, 0.711818, 0.712343, 0.712938, 0.713595,
0.714303, 0.715049, 0.715817, 0.716593, 0.717361, 0.718106,
0.718812, 0.719468, 0.720062, 0.720586, 0.721034, 0.721403,
0.721694, 0.721909, 0.722056, 0.722143, 0.722182, 0.722185,
0.722167, 0.722144, 0.722131, 0.722142, 0.722193, 0.722294,
0.722458, 0.72269, 0.722997, 0.723381, 0.723841, 0.724373,
0.72497, 0.725624, 0.726321, 0.72705, 0.727796, 0.728544,
0.729278, 0.729985, 0.73065, 0.731261, 0.73181, 0.732288,
0.732691, 0.733018, 0.73327, 0.733451, 0.733569, 0.733632,
0.733653, 0.733645, 0.733623, 0.7336, 0.733593, 0.733614,
0.733678, 0.733796, 0.733976, 0.734226, 0.734549, 0.734947,
0.735417, 0.735954, 0.736552, 0.737201, 0.737887, 0.7386,
0.739323, 0.740042, 0.740743, 0.741413, 0.742037, 0.742606,
0.743111, 0.743546, 0.743908, 0.744195, 0.744412, 0.744562,
0.744653, 0.744696, 0.744703, 0.744686, 0.74466, 0.74464,
0.74464, 0.744673, 0.744751, 0.744885, 0.745083, 0.745349,
0.745687, 0.746098, 0.746577, 0.747119, 0.747716, 0.748359,
0.749034, 0.749729, 0.750429, 0.75112, 0.751789, 0.752422,
0.753007, 0.753535, 0.753999, 0.754393, 0.754716, 0.754967,
0.75515, 0.755272, 0.75534, 0.755365, 0.75536, 0.755337,
0.75531, 0.755295, 0.755303, 0.755348, 0.755441, 0.755591,
0.755805, 0.756088, 0.756441, 0.756863, 0.75735, 0.757896,
0.758492, 0.759128, 0.75979, 0.760467, 0.761144, 0.761807,
0.762444, 0.763041, 0.763589, 0.764078, 0.764502, 0.764857,
0.765143, 0.76536, 0.765513, 0.765609, 0.765657, 0.765667,
0.765652, 0.765625, 0.765599, 0.765589, 0.765607, 0.765666,
0.765774, 0.76594, 0.766171, 0.76647, 0.766836, 0.767269,
0.767763, 0.768311, 0.768905, 0.769533, 0.770182, 0.770841,
0.771494, 0.772129, 0.772734, 0.773297, 0.773807, 0.774258,
0.774645, 0.774964, 0.775215, 0.775401, 0.775526, 0.775599,
0.775629, 0.775626, 0.775604, 0.775575, 0.775552, 0.775549,
0.775578, 0.775649, 0.775773, 0.775956, 0.776203, 0.776517,
0.776896, 0.777338, 0.777838, 0.778388, 0.778978, 0.779597,
0.780233, 0.780872, 0.781502, 0.78211, 0.782683, 0.783212,
0.783687, 0.784102, 0.784452, 0.784736, 0.784955, 0.785112,
0.785212, 0.785265, 0.785278, 0.785265, 0.785238, 0.785208,
0.78519, 0.785195, 0.785236, 0.785321, 0.785461, 0.78566,
0.785923, 0.786251, 0.786642, 0.787093, 0.787598, 0.788148,
0.788734, 0.789343, 0.789964, 0.790584, 0.79119, 0.79177,
0.792312, 0.792807, 0.793248, 0.793628, 0.793944, 0.794195,
0.794384, 0.794514, 0.794592, 0.794626, 0.794626, 0.794605,
0.794573, 0.794545, 0.794533, 0.794547, 0.7946, 0.794701,
0.794856, 0.795072, 0.79535, 0.795691, 0.796094, 0.796552,
0.797061, 0.79761, 0.79819, 0.798789, 0.799395, 0.799995,
0.800577, 0.801129, 0.80164, 0.802103, 0.80251, 0.802857,
0.80314, 0.803361, 0.803521, 0.803626, 0.803683, 0.803701,
0.80369, 0.803663, 0.80363, 0.803604, 0.803599, 0.803624,
0.80369, 0.803806, 0.803977, 0.804208, 0.804501, 0.804855,
0.805268, 0.805733, 0.806245, 0.806792, 0.807366, 0.807953,
0.808543, 0.809122, 0.80968, 0.810204, 0.810686, 0.811117,
0.811491, 0.811805, 0.812058, 0.812249, 0.812384, 0.812466,
0.812505, 0.812509, 0.812488, 0.812456, 0.812423, 0.812402,
0.812405, 0.812441, 0.812521, 0.812652, 0.812839, 0.813085,
0.813393, 0.813759, 0.814181, 0.814652, 0.815165, 0.815709,
0.816275, 0.816851, 0.817423, 0.817982, 0.818515, 0.819012,
0.819464, 0.819864, 0.820207, 0.82049, 0.820713, 0.820877,
0.820987, 0.821049, 0.821071, 0.821063, 0.821036, 0.821,
0.820969, 0.820954, 0.820966, 0.821014, 0.821108, 0.821254,
0.821457, 0.821719, 0.822039, 0.822417, 0.822847, 0.823323,
0.823836, 0.824377, 0.824934, 0.825496, 0.826052, 0.826589,
0.827097, 0.827567, 0.82799, 0.82836, 0.828673, 0.828926,
0.829121, 0.82926, 0.829347, 0.82939, 0.829398, 0.829379,
0.829346, 0.82931, 0.829282, 0.829274, 0.829295, 0.829357,
0.829465, 0.829626, 0.829845, 0.830121, 0.830455, 0.830843,
0.83128, 0.831759, 0.832272, 0.832807, 0.833355, 0.833904,
0.834441, 0.834957, 0.83544, 0.835883, 0.836277, 0.836618,
0.836901, 0.837126, 0.837295, 0.837409, 0.837476, 0.837503,
0.837497, 0.837471, 0.837434, 0.837398, 0.837374, 0.837374,
0.837407, 0.837481, 0.837604, 0.837781, 0.838014, 0.838305,
0.838651, 0.839048, 0.839492, 0.839973, 0.840484, 0.841014,
0.841551, 0.842085, 0.842604, 0.843098, 0.843557, 0.843972,
0.844338, 0.84465, 0.844905, 0.845103, 0.845247, 0.845339,
0.845387, 0.845398, 0.845382, 0.845349, 0.84531, 0.845276,
0.845258, 0.845267, 0.845311, 0.845399, 0.845537, 0.845729,
0.845977, 0.846281, 0.846639, 0.847045, 0.847493, 0.847976,
0.848484, 0.849007, 0.849533, 0.850052, 0.850552, 0.851023,
0.851457, 0.851846, 0.852185, 0.852468, 0.852696, 0.852869,
0.852989, 0.85306, 0.853091, 0.853089, 0.853064, 0.853026,
0.852986, 0.852955, 0.852944, 0.852963, 0.853019, 0.853122,
0.853275, 0.853482, 0.853745, 0.854061, 0.854429, 0.854843,
0.855296, 0.855779, 0.856283, 0.856798, 0.857311, 0.857814,
0.858294, 0.858744, 0.859153, 0.859516, 0.859827, 0.860084,
0.860285, 0.860433, 0.860531, 0.860584, 0.860599, 0.860586,
0.860553, 0.860511, 0.860472, 0.860446, 0.860443, 0.860472,
0.860542, 0.860659, 0.860827, 0.861049, 0.861325, 0.861654,
0.862032, 0.862452, 0.862908, 0.86339, 0.86389, 0.864395,
0.864896, 0.865382, 0.865842, 0.866269, 0.866653, 0.86699,
0.867275, 0.867506, 0.867682, 0.867807, 0.867884, 0.86792,
0.867921, 0.867897, 0.867859, 0.867815, 0.867778, 0.867758,
0.867763, 0.867804, 0.867888, 0.868019, 0.868202, 0.868439,
0.868729, 0.869069, 0.869455, 0.869881, 0.870339, 0.87082,
0.871313, 0.871809, 0.872296, 0.872764, 0.873204, 0.873608,
0.873968, 0.874279, 0.874538, 0.874744, 0.874896, 0.874999,
0.875057, 0.875077, 0.875066, 0.875034, 0.874991, 0.874947,
0.874913, 0.8749, 0.874915, 0.874968, 0.875065, 0.875211,
0.875409, 0.87566, 0.875963, 0.876314, 0.876708, 0.877138,
0.877597, 0.878075, 0.878561, 0.879046, 0.879519, 0.879969,
0.880389, 0.88077, 0.881105, 0.881391, 0.881625, 0.881806,
0.881936, 0.882018, 0.882059, 0.882064, 0.882042, 0.882003,
0.881957, 0.881914, 0.881885, 0.88188, 0.881906, 0.881972,
0.882083, 0.882244, 0.882456, 0.882721, 0.883036, 0.883396,
0.883797, 0.884232, 0.88469, 0.885164, 0.885643, 0.886116,
0.886573, 0.887005, 0.887404, 0.887762, 0.888073, 0.888334,
0.888544, 0.888701, 0.888809, 0.888873, 0.888896, 0.888888,
0.888858, 0.888813, 0.888766, 0.888726, 0.888702, 0.888705,
0.888743, 0.888822, 0.888948, 0.889123, 0.88935, 0.889628,
0.889954, 0.890324, 0.890731, 0.891168, 0.891625, 0.892094,
0.892564, 0.893024, 0.893466, 0.893879, 0.894256, 0.894591,
0.894879, 0.895116, 0.895301, 0.895437, 0.895524, 0.895569,
0.895578, 0.895559, 0.89552, 0.895472, 0.895425, 0.895388,
0.895372, 0.895384, 0.895434, 0.895527, 0.895667, 0.895857,
0.896098, 0.896389, 0.896726, 0.897103, 0.897515, 0.897954,
0.898409, 0.898872, 0.899331, 0.899779, 0.900203, 0.900598,
0.900954, 0.901266, 0.901529, 0.901743, 0.901905, 0.902019,
0.902087, 0.902116, 0.902111, 0.902082, 0.902037, 0.901986,
0.90194, 0.901908, 0.9019, 0.901923, 0.901985, 0.902092,
0.902246, 0.902451, 0.902706, 0.903009, 0.903356, 0.90374,
0.904156, 0.904595, 0.905047, 0.905503, 0.905952, 0.906385,
0.906793, 0.907167, 0.907502, 0.907791, 0.908031, 0.908221,
0.908362, 0.908455, 0.908505, 0.908518, 0.908501, 0.908464,
0.908414, 0.908362, 0.908319, 0.908293, 0.908293, 0.908328,
0.908403, 0.908523, 0.908693, 0.908912, 0.90918, 0.909494,
0.90985, 0.910241, 0.91066, 0.911098, 0.911546, 0.911994,
0.912431, 0.912849, 0.913239, 0.913594, 0.913907, 0.914173,
0.914391, 0.914558, 0.914678, 0.914751, 0.914784, 0.914783,
0.914756, 0.914711, 0.914658, 0.914606, 0.914567, 0.914547,
0.914557, 0.914604, 0.914693, 0.914828, 0.915012, 0.915245,
0.915525, 0.91585, 0.916214, 0.916611, 0.917032, 0.917468,
0.917911, 0.918349, 0.918774, 0.919177, 0.919549, 0.919883,
0.920174, 0.920418, 0.920613, 0.920759, 0.920858, 0.920913,
0.920931, 0.920917, 0.92088, 0.920829, 0.920774, 0.920724,
0.920689, 0.920678, 0.920699, 0.920757, 0.92086, 0.92101,
0.921208, 0.921455, 0.921748, 0.922083, 0.922454, 0.922855,
0.923277, 0.92371, 0.924146, 0.924575, 0.924987, 0.925374,
0.925727, 0.926041, 0.92631, 0.926532, 0.926705, 0.92683,
0.926909, 0.926947, 0.92695, 0.926924, 0.926879, 0.926824,
0.926768, 0.926721, 0.926692, 0.92669, 0.926722, 0.926793,
0.92691, 0.927074, 0.927287, 0.927547, 0.927851, 0.928195,
0.928573, 0.928977, 0.929399, 0.929829, 0.930258, 0.930676,
0.931074, 0.931443, 0.931778, 0.932071, 0.932319, 0.932519,
0.93267, 0.932775, 0.932835, 0.932857, 0.932846, 0.932811,
0.932759, 0.932701, 0.932646, 0.932603, 0.932581, 0.932588,
0.932631, 0.932717, 0.932848, 0.933026, 0.933253, 0.933526,
0.933841, 0.934194, 0.934577, 0.934983, 0.935404, 0.935829,
0.936249, 0.936656, 0.937039, 0.937392, 0.937707, 0.937979,
0.938205, 0.938384, 0.938514, 0.938599, 0.938642, 0.938649,
0.938626, 0.938582, 0.938525, 0.938465, 0.938411, 0.938373,
0.938359, 0.938377, 0.938433, 0.938532, 0.938677, 0.93887,
0.93911, 0.939395, 0.939721, 0.940081, 0.940469, 0.940877,
0.941295, 0.941714, 0.942125, 0.942519, 0.942887, 0.943222,
0.943517, 0.943769, 0.943974, 0.944131, 0.944241, 0.944307,
0.944334, 0.944326, 0.944293, 0.944241, 0.94418, 0.94412,
0.944069, 0.944037, 0.944032, 0.944061, 0.94413, 0.944243,
0.944403, 0.94461, 0.944864, 0.94516, 0.945495, 0.945862,
0.946254, 0.946662, 0.947076, 0.947489, 0.94789, 0.94827,
0.948622, 0.948939, 0.949215, 0.949445, 0.949629, 0.949765,
0.949856, 0.949904, 0.949915, 0.949895, 0.949852, 0.949793,
0.94973, 0.94967, 0.949624, 0.949599, 0.949604, 0.949645,
0.949727, 0.949855, 0.950029, 0.95025, 0.950516, 0.950824,
0.951167, 0.95154, 0.951935, 0.952342, 0.952752, 0.953157,
0.953547, 0.953913, 0.954248, 0.954546, 0.954802, 0.955012,
0.955175, 0.955291, 0.955362, 0.955394, 0.95539, 0.955358,
0.955306, 0.955243, 0.955178, 0.955121, 0.955079, 0.955063,
0.955078, 0.955132, 0.955228, 0.95537, 0.955559, 0.955794,
0.956072, 0.95639, 0.956742, 0.957119, 0.957515, 0.95792,
0.958325, 0.958721, 0.959099, 0.959451, 0.959769, 0.960048,
0.960283, 0.960472, 0.960615, 0.960711, 0.960765, 0.96078,
0.960762, 0.96072, 0.960661, 0.960594, 0.960529, 0.960475,
0.96044, 0.960432, 0.960459, 0.960526, 0.960636, 0.960793,
0.960996, 0.961245, 0.961535, 0.961862, 0.962221, 0.962602,
0.962998, 0.963401, 0.963799, 0.964186, 0.964551, 0.964887,
0.965187, 0.965447, 0.965662, 0.96583, 0.965952, 0.96603,
0.966066, 0.966066, 0.966036, 0.965985, 0.96592, 0.965851,
0.965786, 0.965736, 0.965709, 0.965711, 0.96575, 0.96583,
0.965956, 0.966127, 0.966344, 0.966606, 0.966907, 0.967244,
0.967608, 0.967992, 0.968388, 0.968786, 0.969178, 0.969553,
0.969904, 0.970224, 0.970506, 0.970746, 0.970941, 0.971089,
0.971191, 0.97125, 0.97127, 0.971255, 0.971214, 0.971155,
0.971085, 0.971015, 0.970953, 0.970909, 0.97089, 0.970903,
0.970955, 0.971049, 0.971189, 0.971375, 0.971607, 0.971881,
0.972193, 0.972537, 0.972907, 0.973293, 0.973687, 0.97408,
0.974463, 0.974827, 0.975164, 0.975467, 0.97573, 0.97595,
0.976124, 0.976252, 0.976335, 0.976376, 0.976379, 0.976352,
0.976301, 0.976234, 0.976162, 0.976091, 0.976033, 0.975995,
0.975986, 0.976011, 0.976076, 0.976185, 0.97634, 0.976541,
0.976787, 0.977073, 0.977395, 0.977747, 0.97812, 0.978507,
0.978899, 0.979286, 0.979659, 0.98001, 0.980331, 0.980616,
0.980861, 0.98106, 0.981214, 0.981321, 0.981385, 0.981409,
0.981397, 0.981358, 0.981298, 0.981226, 0.981151, 0.981082,
0.981029, 0.980999, 0.981, 0.981038, 0.981118, 0.981242,
0.981413, 0.981629, 0.981888, 0.982186, 0.982517, 0.982875,
0.983252, 0.983639, 0.984026, 0.984406, 0.984768, 0.985105,
0.98541, 0.985677, 0.985901, 0.986079, 0.986212, 0.986299,
0.986344, 0.986351, 0.986325, 0.986275, 0.986207, 0.98613,
0.986055, 0.98599, 0.985943, 0.985922, 0.985936, 0.985988,
0.986083, 0.986224, 0.98641, 0.986641, 0.986914, 0.987224,
0.987564, 0.987928, 0.988307, 0.988692, 0.989074, 0.989445,
0.989794, 0.990116, 0.990402, 0.990649, 0.990851, 0.991008,
0.991119, 0.991186, 0.991211, 0.991201, 0.991162, 0.991101,
0.991026, 0.990948, 0.990874, 0.990814, 0.990776, 0.990767,
0.990795, 0.990864, 0.990978, 0.991137, 0.991341, 0.991589,
0.991877, 0.992199, 0.992548, 0.992917, 0.993297, 0.993678,
0.994052, 0.99441, 0.994743, 0.995045, 0.995309, 0.99553,
0.995707, 0.995837, 0.995922, 0.995964, 0.995968, 0.99594,
0.995887, 0.995817, 0.995738, 0.995661, 0.995595, 0.995548,
0.995528, 0.995543, 0.995598, 0.995696, 0.995841, 0.996031,
0.996266, 0.996541, 0.996851, 0.997189, 0.997546, 0.997914,
0.99828, 0.998636, 0.99897, 0.999273, 0.999535, 0.999747,
0.999904, 1
};
static const float WAVE_LOGARITHMIC_066[DEFAULT_WAVELEN] = {
-1, -0.999169, -0.996681, -0.992548, -0.98679, -0.979435,
-0.970519, -0.960085, -0.948183, -0.934872, -0.920214, -0.904279,
-0.887143, -0.868887, -0.849596, -0.829358, -0.808268, -0.786421,
-0.763915, -0.74085, -0.717327, -0.693447, -0.669311, -0.645021,
-0.620676, -0.596372, -0.572205, -0.548266, -0.524643, -0.501421,
-0.478679, -0.456492, -0.434928, -0.414053, -0.393923, -0.374591,
-0.3561, -0.338491, -0.321795, -0.306037, -0.291236, -0.277403,
-0.264544, -0.252658, -0.241736, -0.231766, -0.222728, -0.214597,
-0.207341, -0.200927, -0.195314, -0.190459, -0.186314, -0.182829,
-0.179949, -0.17762, -0.175785, -0.174383, -0.173357, -0.172646,
-0.17219, -0.171931, -0.17181, -0.171771, -0.171759, -0.171723,
-0.171612, -0.171379, -0.170982, -0.17038, -0.169537, -0.168421,
-0.167003, -0.165261, -0.163174, -0.160726, -0.157908, -0.154712,
-0.151136, -0.147183, -0.142857, -0.138168, -0.133131, -0.127761,
-0.122078, -0.116107, -0.109871, -0.1034, -0.0967228, -0.0898713,
-0.0828784, -0.0757783, -0.0686054, -0.061395, -0.054182, -0.047001,
-0.039886, -0.0328701, -0.025985, -0.0192611, -0.0127266, -0.00640814,
-0.000329773, 0.00548673, 0.0110222, 0.0162603, 0.0211873, 0.0257926,
0.0300684, 0.0340102, 0.037616, 0.0408872, 0.0438279, 0.0464449,
0.0487479, 0.0507491, 0.0524632, 0.0539068, 0.0550991, 0.0560606,
0.0568137, 0.0573823, 0.0577911, 0.0580661, 0.0582335, 0.0583203,
0.0583533, 0.0583594, 0.0583651, 0.0583962, 0.0584776, 0.0586333,
0.058886, 0.0592568, 0.0597653, 0.0604293, 0.0612646, 0.0622849,
0.0635018, 0.0649248, 0.0665608, 0.0684147, 0.0704889, 0.0727835,
0.0752963, 0.078023, 0.080957, 0.0840896, 0.0874104, 0.0909069,
0.0945651, 0.0983693, 0.102303, 0.106347, 0.110484, 0.114692,
0.118953, 0.123244, 0.127545, 0.131835, 0.136094, 0.1403,
0.144435, 0.148479, 0.152415, 0.156226, 0.159896, 0.163412,
0.16676, 0.169931, 0.172915, 0.175704, 0.178294, 0.18068,
0.182861, 0.184837, 0.186611, 0.188185, 0.189566, 0.190761,
0.191779, 0.19263, 0.193327, 0.193882, 0.19431, 0.194626,
0.194846, 0.194987, 0.195066, 0.1951, 0.195107, 0.195106,
0.195112, 0.195144, 0.195218, 0.19535, 0.195556, 0.195848,
0.196241, 0.196747, 0.197375, 0.198136, 0.199037, 0.200084,
0.201283, 0.202635, 0.204144, 0.205808, 0.207626, 0.209595,
0.21171, 0.213965, 0.216353, 0.218864, 0.221488, 0.224215,
0.227033, 0.229928, 0.232887, 0.235896, 0.23894, 0.242004,
0.245074, 0.248134, 0.251169, 0.254165, 0.257109, 0.259985,
0.262783, 0.265488, 0.268092, 0.270582, 0.272952, 0.275192,
0.277296, 0.27926, 0.281079, 0.282751, 0.284274, 0.28565,
0.28688, 0.287967, 0.288915, 0.28973, 0.290418, 0.290989,
0.291449, 0.291811, 0.292083, 0.292279, 0.292408, 0.292485,
0.292523, 0.292533, 0.29253, 0.292526, 0.292535, 0.29257,
0.292642, 0.292764, 0.292948, 0.293202, 0.293538, 0.293964,
0.294488, 0.295116, 0.295854, 0.296708, 0.297679, 0.29877,
0.299981, 0.301314, 0.302765, 0.304332, 0.306011, 0.307797,
0.309684, 0.311665, 0.313732, 0.315876, 0.318087, 0.320356,
0.322671, 0.325022, 0.327397, 0.329785, 0.332173, 0.33455,
0.336905, 0.339227, 0.341503, 0.343725, 0.345882, 0.347964,
0.349965, 0.351874, 0.353687, 0.355397, 0.356999, 0.35849,
0.359867, 0.361128, 0.362273, 0.363303, 0.364218, 0.365022,
0.365719, 0.366313, 0.36681, 0.367217, 0.36754, 0.367789,
0.367971, 0.368096, 0.368174, 0.368215, 0.368229, 0.368227,
0.368219, 0.368216, 0.368228, 0.368266, 0.368339, 0.368457,
0.368628, 0.368862, 0.369164, 0.369543, 0.370004, 0.370553,
0.371193, 0.371928, 0.37276, 0.37369, 0.37472, 0.375847,
0.377071, 0.378389, 0.379798, 0.381292, 0.382867, 0.384516,
0.386233, 0.388011, 0.389841, 0.391715, 0.393624, 0.395558,
0.397509, 0.399467, 0.401422, 0.403365, 0.405286, 0.407176,
0.409026, 0.410827, 0.412573, 0.414255, 0.415866, 0.417401,
0.418854, 0.420222, 0.421499, 0.422683, 0.423773, 0.424767,
0.425666, 0.426469, 0.42718, 0.4278, 0.428333, 0.428782,
0.429154, 0.429454, 0.429688, 0.429863, 0.429987, 0.430067,
0.430111, 0.430129, 0.430129, 0.43012, 0.430111, 0.430109,
0.430125, 0.430167, 0.430242, 0.430358, 0.430523, 0.430743,
0.431025, 0.431373, 0.431793, 0.432289, 0.432863, 0.433519,
0.434258, 0.43508, 0.435987, 0.436975, 0.438045, 0.439194,
0.440417, 0.441712, 0.443073, 0.444495, 0.445972, 0.447498,
0.449066, 0.450668, 0.452296, 0.453943, 0.455601, 0.457261,
0.458916, 0.460556, 0.462175, 0.463765, 0.465318, 0.466827,
0.468285, 0.469687, 0.471027, 0.4723, 0.473501, 0.474628,
0.475677, 0.476646, 0.477534, 0.478341, 0.479066, 0.479711,
0.480277, 0.480768, 0.481185, 0.481533, 0.481818, 0.482042,
0.482214, 0.482337, 0.48242, 0.482469, 0.482491, 0.482494,
0.482485, 0.482472, 0.482463, 0.482464, 0.482484, 0.482529,
0.482607, 0.482723, 0.482885, 0.483097, 0.483364, 0.483692,
0.484083, 0.484541, 0.48507, 0.485669, 0.486341, 0.487086,
0.487903, 0.488792, 0.48975, 0.490775, 0.491865, 0.493014,
0.49422, 0.495476, 0.496778, 0.49812, 0.499496, 0.500898,
0.502321, 0.503757, 0.5052, 0.506641, 0.508075, 0.509493,
0.51089, 0.512258, 0.513591, 0.514884, 0.51613, 0.517325,
0.518464, 0.519542, 0.520557, 0.521506, 0.522386, 0.523195,
0.523934, 0.524601, 0.525198, 0.525725, 0.526184, 0.526578,
0.52691, 0.527184, 0.527403, 0.527572, 0.527697, 0.527784,
0.527837, 0.527863, 0.52787, 0.527862, 0.527848, 0.527833,
0.527825, 0.527829, 0.527853, 0.527902, 0.527983, 0.5281,
0.52826, 0.528467, 0.528725, 0.529037, 0.529408, 0.529839,
0.530332, 0.53089, 0.531512, 0.532198, 0.532948, 0.533761,
0.534635, 0.535568, 0.536555, 0.537594, 0.538682, 0.539812,
0.54098, 0.542182, 0.54341, 0.54466, 0.545925, 0.5472,
0.548477, 0.54975, 0.551014, 0.552262, 0.553487, 0.554685,
0.55585, 0.556976, 0.558058, 0.559094, 0.560077, 0.561006,
0.561877, 0.562688, 0.563437, 0.564123, 0.564746, 0.565306,
0.565803, 0.566239, 0.566616, 0.566936, 0.567202, 0.567418,
0.567587, 0.567714, 0.567804, 0.567862, 0.567893, 0.567903,
0.567898, 0.567883, 0.567865, 0.56785, 0.567843, 0.567851,
0.567879, 0.567932, 0.568016, 0.568136, 0.568295, 0.568499,
0.56875, 0.569052, 0.569407, 0.569817, 0.570284, 0.570809,
0.571392, 0.572034, 0.572732, 0.573486, 0.574293, 0.575152,
0.57606, 0.577013, 0.578006, 0.579037, 0.5801, 0.58119,
0.582303, 0.583432, 0.584572, 0.585719, 0.586865, 0.588005,
0.589134, 0.590246, 0.591335, 0.592397, 0.593428, 0.594421,
0.595374, 0.596282, 0.597142, 0.597951, 0.598707, 0.599408,
0.600054, 0.600642, 0.601173, 0.601647, 0.602065, 0.602428,
0.602739, 0.603, 0.603214, 0.603384, 0.603514, 0.603608,
0.60367, 0.603706, 0.60372, 0.603717, 0.603704, 0.603684,
0.603664, 0.603649, 0.603645, 0.603656, 0.603688, 0.603746,
0.603834, 0.603955, 0.604115, 0.604317, 0.604564, 0.604858,
0.605201, 0.605595, 0.606042, 0.606541, 0.607094, 0.607699,
0.608355, 0.609062, 0.609816, 0.610617, 0.611459, 0.612342,
0.61326, 0.61421, 0.615187, 0.616188, 0.617206, 0.618237,
0.619276, 0.620318, 0.621357, 0.622389, 0.623408, 0.624409,
0.625387, 0.626339, 0.62726, 0.628145, 0.628991, 0.629795,
0.630554, 0.631266, 0.631928, 0.63254, 0.6331, 0.633608,
0.634064, 0.634468, 0.634821, 0.635126, 0.635383, 0.635596,
0.635768, 0.635901, 0.635999, 0.636066, 0.636106, 0.636124,
0.636125, 0.636113, 0.636093, 0.63607, 0.636049, 0.636036,
0.636034, 0.636049, 0.636085, 0.636147, 0.636239, 0.636363,
0.636525, 0.636726, 0.636969, 0.637257, 0.637591, 0.637973,
0.638403, 0.638882, 0.63941, 0.639986, 0.640608, 0.641276,
0.641986, 0.642738, 0.643528, 0.644352, 0.645208, 0.646091,
0.646998, 0.647923, 0.648863, 0.649813, 0.650767, 0.651722,
0.652673, 0.653614, 0.654542, 0.655451, 0.656337, 0.657196,
0.658025, 0.65882, 0.659578, 0.660295, 0.66097, 0.6616,
0.662185, 0.662722, 0.663211, 0.663651, 0.664044, 0.66439,
0.66469, 0.664946, 0.665159, 0.665332, 0.665468, 0.665571,
0.665642, 0.665688, 0.66571, 0.665714, 0.665704, 0.665685,
0.66566, 0.665635, 0.665615, 0.665603, 0.665604, 0.665623,
0.665664, 0.66573, 0.665825, 0.665953, 0.666116, 0.666317,
0.666559, 0.666843, 0.66717, 0.667542, 0.667959, 0.668421,
0.668928, 0.669479, 0.670073, 0.670709, 0.671383, 0.672094,
0.672839, 0.673615, 0.674418, 0.675245, 0.676092, 0.676954,
0.677828, 0.678709, 0.679592, 0.680474, 0.681349, 0.682214,
0.683063, 0.683894, 0.684702, 0.685484, 0.686235, 0.686953,
0.687635, 0.688279, 0.688883, 0.689444, 0.689962, 0.690435,
0.690864, 0.691248, 0.691588, 0.691885, 0.692139, 0.692353,
0.692529, 0.692668, 0.692775, 0.692852, 0.692902, 0.692929,
0.692937, 0.692929, 0.692911, 0.692886, 0.692858, 0.692832,
0.692812, 0.692802, 0.692807, 0.69283, 0.692875, 0.692946,
0.693045, 0.693176, 0.693341, 0.693543, 0.693784, 0.694065,
0.694387, 0.69475, 0.695157, 0.695605, 0.696095, 0.696626,
0.697196, 0.697804, 0.698448, 0.699124, 0.699831, 0.700565,
0.701324, 0.702103, 0.702898, 0.703706, 0.704523, 0.705345,
0.706167, 0.706985, 0.707796, 0.708595, 0.709378, 0.710141,
0.710882, 0.711596, 0.71228, 0.712933, 0.71355, 0.71413,
0.714672, 0.715174, 0.715635, 0.716054, 0.716431, 0.716766,
0.71706, 0.717314, 0.71753, 0.717708, 0.717852, 0.717963,
0.718045, 0.7181, 0.718131, 0.718143, 0.718138, 0.718122,
0.718097, 0.718067, 0.718037, 0.718011, 0.717992, 0.717985,
0.717993, 0.71802, 0.71807, 0.718145, 0.718248, 0.718383,
0.718551, 0.718754, 0.718994, 0.719273, 0.719591, 0.719949,
0.720346, 0.720783, 0.721259, 0.721772, 0.722322, 0.722906,
0.723523, 0.72417, 0.724844, 0.725543, 0.726262, 0.726999,
0.72775, 0.728512, 0.729279, 0.73005, 0.730818, 0.731582,
0.732336, 0.733078, 0.733803, 0.734507, 0.735189, 0.735844,
0.73647, 0.737065, 0.737626, 0.738151, 0.738639, 0.739089,
0.7395, 0.739871, 0.740203, 0.740496, 0.74075, 0.740968,
0.741149, 0.741297, 0.741413, 0.741499, 0.741559, 0.741595,
0.741611, 0.74161, 0.741596, 0.741571, 0.741541, 0.741508,
0.741476, 0.74145, 0.741433, 0.741429, 0.741441, 0.741472,
0.741526, 0.741606, 0.741714, 0.741852, 0.742023, 0.742228,
0.742469, 0.742746, 0.743061, 0.743413, 0.743804, 0.744231,
0.744694, 0.745193, 0.745726, 0.74629, 0.746884, 0.747505,
0.74815, 0.748817, 0.749503, 0.750203, 0.750915, 0.751635,
0.75236, 0.753085, 0.753807, 0.754522, 0.755226, 0.755917,
0.756591, 0.757244, 0.757873, 0.758477, 0.759052, 0.759595,
0.760106, 0.760583, 0.761023, 0.761427, 0.761794, 0.762124,
0.762416, 0.762671, 0.762891, 0.763076, 0.763228, 0.763348,
0.76344, 0.763505, 0.763546, 0.763566, 0.763569, 0.763557,
0.763533, 0.763502, 0.763468, 0.763432, 0.7634, 0.763375,
0.76336, 0.763359, 0.763375, 0.763411, 0.763469, 0.763554,
0.763666, 0.763808, 0.763982, 0.764189, 0.764431, 0.764707,
0.76502, 0.765369, 0.765753, 0.766172, 0.766625, 0.767111,
0.767628, 0.768175, 0.768748, 0.769347, 0.769967, 0.770607,
0.771262, 0.77193, 0.772608, 0.773291, 0.773977, 0.774662,
0.775342, 0.776014, 0.776675, 0.77732, 0.777948, 0.778555,
0.779139, 0.779696, 0.780225, 0.780723, 0.78119, 0.781623,
0.782021, 0.782384, 0.782712, 0.783004, 0.783261, 0.783483,
0.783672, 0.783828, 0.783953, 0.78405, 0.78412, 0.784167,
0.784191, 0.784197, 0.784188, 0.784167, 0.784136, 0.7841,
0.784062, 0.784025, 0.783993, 0.783969, 0.783957, 0.783959,
0.783978, 0.784019, 0.784082, 0.784171, 0.784288, 0.784434,
0.784611, 0.784821, 0.785064, 0.785341, 0.785652, 0.785997,
0.786376, 0.786789, 0.787233, 0.787708, 0.788212, 0.788743,
0.789299, 0.789877, 0.790475, 0.79109, 0.791718, 0.792358,
0.793004, 0.793655, 0.794307, 0.794955, 0.795598, 0.796232,
0.796852, 0.797458, 0.798044, 0.79861, 0.799152, 0.799668,
0.800155, 0.800613, 0.801039, 0.801433, 0.801794, 0.80212,
0.802413, 0.802671, 0.802896, 0.803089, 0.80325, 0.80338,
0.803482, 0.803558, 0.803609, 0.803638, 0.803649, 0.803643,
0.803623, 0.803593, 0.803557, 0.803516, 0.803476, 0.803438,
0.803406, 0.803384, 0.803374, 0.80338, 0.803404, 0.803449,
0.803517, 0.80361, 0.803732, 0.803882, 0.804063, 0.804275,
0.80452, 0.804797, 0.805107, 0.805451, 0.805826, 0.806232,
0.806669, 0.807134, 0.807626, 0.808144, 0.808684, 0.809244,
0.809822, 0.810415, 0.811019, 0.811633, 0.812252, 0.812873,
0.813493, 0.814109, 0.814718, 0.815317, 0.815902, 0.81647,
0.81702, 0.817548, 0.818052, 0.81853, 0.81898, 0.819401,
0.819791, 0.82015, 0.820476, 0.820769, 0.82103, 0.821258,
0.821455, 0.82162, 0.821756, 0.821863, 0.821944, 0.822001,
0.822035, 0.822049, 0.822047, 0.82203, 0.822002, 0.821965,
0.821923, 0.821879, 0.821837, 0.821798, 0.821768, 0.821747,
0.82174, 0.82175, 0.821778, 0.821828, 0.821901, 0.821999,
0.822125, 0.82228, 0.822464, 0.822679, 0.822926, 0.823205,
0.823515, 0.823856, 0.824228, 0.824629, 0.825059, 0.825516,
0.825998, 0.826503, 0.827029, 0.827574, 0.828134, 0.828706,
0.829289, 0.829879, 0.830473, 0.831067, 0.831659, 0.832246,
0.832824, 0.83339, 0.833943, 0.834478, 0.834994, 0.835487,
0.835957, 0.836401, 0.836817, 0.837204, 0.837561, 0.837887,
0.838182, 0.838445, 0.838676, 0.838877, 0.839047, 0.839188,
0.839301, 0.839388, 0.83945, 0.839489, 0.839508, 0.839509,
0.839495, 0.839468, 0.839432, 0.839389, 0.839343, 0.839297,
0.839253, 0.839215, 0.839185, 0.839167, 0.839163, 0.839177,
0.839209, 0.839263, 0.839342, 0.839445, 0.839576, 0.839735,
0.839923, 0.840142, 0.840391, 0.840671, 0.840981, 0.841321,
0.84169, 0.842088, 0.842512, 0.842962, 0.843434, 0.843929,
0.844442, 0.844971, 0.845515, 0.84607, 0.846633, 0.847201,
0.847772, 0.848342, 0.848908, 0.849467, 0.850017, 0.850554,
0.851077, 0.851581, 0.852066, 0.852528, 0.852966, 0.853378,
0.853763, 0.854119, 0.854445, 0.854742, 0.855008, 0.855243,
0.855448, 0.855623, 0.85577, 0.855888, 0.85598, 0.856048,
0.856092, 0.856116, 0.856121, 0.85611, 0.856085, 0.85605,
0.856007, 0.85596, 0.85591, 0.855861, 0.855816, 0.855778,
0.85575, 0.855735, 0.855735, 0.855752, 0.855789, 0.855848,
0.855932, 0.85604, 0.856176, 0.856339, 0.856532, 0.856754,
0.857006, 0.857287, 0.857598, 0.857937, 0.858305, 0.858699,
0.859118, 0.859561, 0.860026, 0.86051, 0.861012, 0.861528,
0.862057, 0.862595, 0.86314, 0.863689, 0.864238, 0.864785,
0.865328, 0.865862, 0.866386, 0.866896, 0.867391, 0.867867,
0.868323, 0.868756, 0.869164, 0.869547, 0.869903, 0.87023,
0.870529, 0.870798, 0.871037, 0.871247, 0.871427, 0.871579,
0.871703, 0.871801, 0.871874, 0.871924, 0.871952, 0.871962,
0.871954, 0.871932, 0.871899, 0.871856, 0.871807, 0.871755,
0.871702, 0.871651, 0.871606, 0.871569, 0.871543, 0.871531,
0.871534, 0.871555, 0.871597, 0.871662, 0.87175, 0.871864,
0.872004, 0.872173, 0.872369, 0.872595, 0.87285, 0.873133,
0.873445, 0.873784, 0.87415, 0.874541, 0.874956, 0.875393,
0.875851, 0.876326, 0.876818, 0.877322, 0.877837, 0.87836,
0.878888, 0.879419, 0.879949, 0.880475, 0.880995, 0.881507,
0.882006, 0.882491, 0.88296, 0.88341, 0.883839, 0.884245,
0.884626, 0.884982, 0.88531, 0.885611, 0.885883, 0.886127,
0.886341, 0.886527, 0.886685, 0.886815, 0.886919, 0.886998,
0.887053, 0.887087, 0.8871, 0.887097, 0.887077, 0.887046,
0.887003, 0.886954, 0.8869, 0.886843, 0.886788, 0.886737,
0.886692, 0.886656, 0.886632, 0.886622, 0.886629, 0.886655,
0.886702, 0.886771, 0.886865, 0.886984, 0.88713, 0.887303,
0.887504, 0.887734, 0.887991, 0.888277, 0.88859, 0.888929,
0.889294, 0.889683, 0.890095, 0.890527, 0.890978, 0.891445,
0.891927, 0.892421, 0.892923, 0.893432, 0.893945, 0.894458,
0.89497, 0.895477, 0.895977, 0.896466, 0.896943, 0.897405,
0.89785, 0.898275, 0.898679, 0.899059, 0.899415, 0.899746,
0.900049, 0.900325, 0.900573, 0.900792, 0.900983, 0.901147,
0.901283, 0.901393, 0.901478, 0.901539, 0.901578, 0.901597,
0.901597, 0.901581, 0.901551, 0.90151, 0.901461, 0.901405,
0.901346, 0.901286, 0.901229, 0.901177, 0.901132, 0.901098,
0.901077, 0.90107, 0.901081, 0.901112, 0.901163, 0.901238,
0.901337, 0.901462, 0.901613, 0.901791, 0.901996, 0.90223,
0.902491, 0.902779, 0.903093, 0.903433, 0.903797, 0.904185,
0.904593, 0.905021, 0.905466, 0.905926, 0.906399, 0.906883,
0.907374, 0.90787, 0.908368, 0.908866, 0.909361, 0.909849,
0.91033, 0.910799, 0.911255, 0.911695, 0.912117, 0.912519,
0.912899, 0.913256, 0.913588, 0.913894, 0.914174, 0.914426,
0.914651, 0.914848, 0.915018, 0.915161, 0.915277, 0.915368,
0.915435, 0.915479, 0.915503, 0.915508, 0.915495, 0.915468,
0.915429, 0.915379, 0.915323, 0.915262, 0.915198, 0.915136,
0.915077, 0.915025, 0.914981, 0.914948, 0.91493, 0.914927,
0.914942, 0.914977, 0.915034, 0.915114, 0.915218, 0.915348,
0.915504, 0.915688, 0.915898, 0.916136, 0.9164, 0.916691,
0.917007, 0.917348, 0.917712, 0.918098, 0.918503, 0.918927,
0.919367, 0.919821, 0.920286, 0.92076, 0.92124, 0.921724,
0.922209, 0.922692, 0.923171, 0.923643, 0.924105, 0.924556,
0.924991, 0.925411, 0.925811, 0.926192, 0.92655, 0.926884,
0.927194, 0.927478, 0.927735, 0.927965, 0.928168, 0.928344,
0.928493, 0.928616, 0.928714, 0.928787, 0.928837, 0.928866,
0.928875, 0.928867, 0.928843, 0.928805, 0.928757, 0.9287,
0.928637, 0.928571, 0.928504, 0.928439, 0.928379, 0.928327,
0.928284, 0.928253, 0.928237, 0.928238, 0.928257, 0.928297,
0.928359, 0.928445, 0.928555, 0.92869, 0.928852, 0.92904,
0.929256, 0.929497, 0.929765, 0.930059, 0.930377, 0.930719,
0.931083, 0.931468, 0.931872, 0.932292, 0.932727, 0.933175,
0.933633, 0.934098, 0.934568, 0.935041, 0.935513, 0.935983,
0.936447, 0.936903, 0.937348, 0.93778, 0.938197, 0.938597,
0.938978, 0.939337, 0.939674, 0.939988, 0.940276, 0.940538,
0.940775, 0.940984, 0.941167, 0.941323, 0.941452, 0.941557,
0.941637, 0.941693, 0.941728, 0.941742, 0.941738, 0.941717,
0.941681, 0.941634, 0.941577, 0.941513, 0.941445, 0.941374,
0.941304, 0.941237, 0.941177, 0.941124, 0.941083, 0.941054,
0.941041, 0.941046, 0.941069, 0.941114, 0.941181, 0.941272,
0.941388, 0.941529, 0.941696, 0.94189, 0.94211, 0.942356,
0.942628, 0.942924, 0.943245, 0.943588, 0.943953, 0.944337,
0.944738, 0.945156, 0.945587, 0.946029, 0.94648, 0.946937,
0.947398, 0.94786, 0.948321, 0.948778, 0.949227, 0.949668,
0.950097, 0.950513, 0.950912, 0.951294, 0.951655, 0.951995,
0.952313, 0.952606, 0.952874, 0.953116, 0.953332, 0.953522,
0.953685, 0.953822, 0.953934, 0.954021, 0.954084, 0.954124,
0.954144, 0.954144, 0.954127, 0.954095, 0.95405, 0.953993,
0.953928, 0.953858, 0.953784, 0.953709, 0.953636, 0.953568,
0.953506, 0.953454, 0.953414, 0.953388, 0.953378, 0.953386,
0.953414, 0.953464, 0.953536, 0.953632, 0.953753, 0.9539,
0.954073, 0.954272, 0.954496, 0.954747, 0.955022, 0.955322,
0.955645, 0.95599, 0.956355, 0.956738, 0.957139, 0.957553,
0.957981, 0.958418, 0.958862, 0.959312, 0.959765, 0.960217,
0.960667, 0.961111, 0.961548, 0.961975, 0.962389, 0.962788,
0.963171, 0.963535, 0.963879, 0.964201, 0.964499, 0.964773,
0.965023, 0.965246, 0.965443, 0.965614, 0.965759, 0.965879,
0.965973, 0.966043, 0.966091, 0.966116, 0.966122, 0.966109,
0.96608, 0.966037, 0.965982, 0.965917, 0.965845, 0.965768,
0.965689, 0.965611, 0.965535, 0.965465, 0.965403, 0.965351,
0.965312, 0.965288, 0.965281, 0.965293, 0.965325, 0.965379,
0.965456, 0.965557, 0.965684, 0.965836, 0.966014, 0.966217,
0.966447, 0.966701, 0.96698, 0.967283, 0.967608, 0.967954,
0.96832, 0.968703, 0.969102, 0.969514, 0.969938, 0.97037,
0.97081, 0.971253, 0.971697, 0.97214, 0.97258, 0.973013,
0.973438, 0.973851, 0.974252, 0.974637, 0.975004, 0.975352,
0.97568, 0.975984, 0.976266, 0.976523, 0.976755, 0.97696,
0.97714, 0.977294, 0.977423, 0.977526, 0.977604, 0.977659,
0.977692, 0.977704, 0.977696, 0.977672, 0.977632, 0.977578,
0.977514, 0.977441, 0.977362, 0.977279, 0.977195, 0.977113,
0.977035, 0.976963, 0.9769, 0.976848, 0.97681, 0.976787,
0.976782, 0.976796, 0.976831, 0.976889, 0.97697, 0.977075,
0.977206, 0.977362, 0.977543, 0.977751, 0.977984, 0.978242,
0.978523, 0.978828, 0.979155, 0.979502, 0.979868, 0.98025,
0.980648, 0.981058, 0.981478, 0.981906, 0.98234, 0.982778,
0.983215, 0.983651, 0.984082, 0.984505, 0.98492, 0.985323,
0.985711, 0.986084, 0.986438, 0.986773, 0.987087, 0.987378,
0.987645, 0.987887, 0.988105, 0.988296, 0.988462, 0.988601,
0.988716, 0.988805, 0.98887, 0.988912, 0.988933, 0.988933,
0.988914, 0.988879, 0.988829, 0.988766, 0.988694, 0.988613,
0.988526, 0.988437, 0.988347, 0.98826, 0.988177, 0.988101,
0.988034, 0.987979, 0.987939, 0.987914, 0.987907, 0.98792,
0.987954, 0.98801, 0.98809, 0.988195, 0.988325, 0.98848,
0.988661, 0.988868, 0.9891, 0.989357, 0.989637, 0.989941,
0.990266, 0.990611, 0.990975, 0.991356, 0.991751, 0.992159,
0.992577, 0.993003, 0.993434, 0.993869, 0.994304, 0.994737,
0.995166, 0.995587, 0.996, 0.996401, 0.996788, 0.99716,
0.997513, 0.997848, 0.998161, 0.998452, 0.998719, 0.998962,
0.99918, 0.999372, 0.999537, 0.999677, 0.999791, 0.99988,
0.999943, 0.999983, 1, 0.999995, 0.99997, 0.999926,
0.999866, 0.99979, 0.999701, 0.9996, 0.999491, 0.999375,
0.999253, 0.999129, 0.999005, 0.998882, 0.998762, 0.998647,
0.998539, 0.99844, 0.998351, 0.998273, 0.998208, 0.998156,
0.998119, 0.998096
};
static const float WAVE_LOGARITHMIC_078[DEFAULT_WAVELEN] = {
-1, -0.999761, -0.999044, -0.99785, -0.99618, -0.994037,
-0.991423, -0.988341, -0.984796, -0.980791, -0.976332, -0.971424,
-0.966073, -0.960286, -0.954069, -0.947431, -0.940379, -0.932923,
-0.925071, -0.916832, -0.908217, -0.899237, -0.889901, -0.880222,
-0.87021, -0.859878, -0.849238, -0.838302, -0.827084, -0.815597,
-0.803853, -0.791867, -0.779653, -0.767224, -0.754595, -0.74178,
-0.728793, -0.715649, -0.702363, -0.68895, -0.675424, -0.661799,
-0.648091, -0.634314, -0.620483, -0.606613, -0.592717, -0.57881,
-0.564906, -0.55102, -0.537164, -0.523353, -0.5096, -0.495918,
-0.482319, -0.468816, -0.455422, -0.442149, -0.429007, -0.416009,
-0.403165, -0.390485, -0.377979, -0.365659, -0.353531, -0.341606,
-0.329891, -0.318396, -0.307126, -0.29609, -0.285293, -0.274742,
-0.264443, -0.254399, -0.244617, -0.235101, -0.225853, -0.216877,
-0.208176, -0.199751, -0.191605, -0.183739, -0.176153, -0.168847,
-0.161822, -0.155077, -0.148609, -0.142419, -0.136504, -0.130861,
-0.125487, -0.120379, -0.115534, -0.110947, -0.106614, -0.102529,
-0.0986888, -0.0950864, -0.0917164, -0.0885726, -0.0856487, -0.0829378,
-0.0804332, -0.0781275, -0.0760133, -0.0740831, -0.072329, -0.0707431,
-0.0693173, -0.0680432, -0.0669125, -0.0659168, -0.0650475, -0.064296,
-0.0636536, -0.0631116, -0.0626615, -0.0622944, -0.0620018, -0.061775,
-0.0616054, -0.0614847, -0.0614044, -0.0613562, -0.0613321, -0.0613239,
-0.0613239, -0.0613243, -0.0613176, -0.0612965, -0.0612539, -0.0611828,
-0.0610767, -0.060929, -0.0607336, -0.0604846, -0.0601763, -0.0598032,
-0.0593604, -0.058843, -0.0582465, -0.0575666, -0.0567994, -0.0559414,
-0.0549892, -0.0539399, -0.0527908, -0.0515396, -0.0501842, -0.048723,
-0.0471545, -0.0454777, -0.0436918, -0.0417964, -0.0397913, -0.0376768,
-0.0354532, -0.0331214, -0.0306823, -0.0281374, -0.0254882, -0.0227365,
-0.0198846, -0.0169347, -0.0138896, -0.010752, -0.00752506, -0.00421205,
-0.000816447, 0.00265806, 0.00620762, 0.0098282, 0.0135156, 0.0172655,
0.0210735, 0.0249349, 0.0288452, 0.0327994, 0.0367927, 0.0408202,
0.0448769, 0.0489578, 0.0530577, 0.0571716, 0.0612945, 0.0654211,
0.0695464, 0.0736654, 0.0777731, 0.0818644, 0.0859346, 0.0899789,
0.0939924, 0.0979705, 0.101909, 0.105803, 0.109648, 0.113441,
0.117177, 0.120853, 0.124464, 0.128008, 0.13148, 0.134879,
0.1382, 0.141441, 0.144599, 0.147673, 0.150659, 0.153557,
0.156363, 0.159077, 0.161698, 0.164224, 0.166654, 0.168987,
0.171224, 0.173364, 0.175407, 0.177353, 0.179203, 0.180956,
0.182615, 0.184181, 0.185653, 0.187034, 0.188326, 0.18953,
0.190649, 0.191683, 0.192637, 0.193512, 0.19431, 0.195036,
0.19569, 0.196278, 0.196801, 0.197264, 0.197669, 0.19802,
0.198321, 0.198575, 0.198785, 0.198957, 0.199093, 0.199198,
0.199274, 0.199327, 0.199361, 0.199378, 0.199383, 0.19938,
0.199373, 0.199366, 0.199362, 0.199365, 0.199379, 0.199407,
0.199454, 0.199522, 0.199614, 0.199735, 0.199887, 0.200073,
0.200296, 0.20056, 0.200865, 0.201216, 0.201615, 0.202063,
0.202563, 0.203117, 0.203726, 0.204392, 0.205117, 0.205902,
0.206747, 0.207655, 0.208625, 0.209658, 0.210755, 0.211916,
0.21314, 0.214429, 0.215781, 0.217196, 0.218674, 0.220214,
0.221815, 0.223476, 0.225195, 0.226971, 0.228804, 0.23069,
0.232629, 0.234619, 0.236657, 0.238741, 0.24087, 0.24304,
0.245249, 0.247496, 0.249776, 0.252088, 0.254428, 0.256794,
0.259183, 0.261592, 0.264018, 0.266458, 0.268909, 0.271368,
0.273832, 0.276298, 0.278762, 0.281222, 0.283674, 0.286116,
0.288545, 0.290957, 0.29335, 0.295722, 0.298068, 0.300387,
0.302676, 0.304933, 0.307154, 0.309338, 0.311482, 0.313585,
0.315643, 0.317656, 0.319621, 0.321537, 0.323402, 0.325214,
0.326973, 0.328677, 0.330325, 0.331916, 0.333449, 0.334923,
0.336339, 0.337696, 0.338993, 0.34023, 0.341408, 0.342527,
0.343586, 0.344587, 0.34553, 0.346416, 0.347245, 0.348018,
0.348738, 0.349404, 0.350018, 0.350582, 0.351097, 0.351565,
0.351987, 0.352366, 0.352703, 0.353001, 0.353261, 0.353486,
0.353678, 0.353839, 0.353972, 0.354079, 0.354162, 0.354224,
0.354268, 0.354296, 0.354311, 0.354315, 0.354311, 0.354301,
0.354289, 0.354275, 0.354265, 0.354258, 0.354259, 0.35427,
0.354293, 0.35433, 0.354384, 0.354457, 0.354552, 0.354669,
0.354813, 0.354983, 0.355183, 0.355413, 0.355677, 0.355975,
0.356309, 0.35668, 0.35709, 0.357539, 0.35803, 0.358562,
0.359137, 0.359756, 0.360418, 0.361126, 0.361878, 0.362676,
0.363519, 0.364407, 0.365341, 0.366321, 0.367345, 0.368413,
0.369526, 0.370682, 0.37188, 0.37312, 0.374401, 0.375721,
0.37708, 0.378476, 0.379908, 0.381374, 0.382873, 0.384403,
0.385962, 0.38755, 0.389163, 0.390801, 0.39246, 0.39414,
0.395838, 0.397552, 0.39928, 0.40102, 0.402769, 0.404526,
0.406288, 0.408053, 0.409819, 0.411583, 0.413344, 0.415099,
0.416846, 0.418583, 0.420308, 0.422019, 0.423713, 0.425389,
0.427045, 0.428679, 0.430288, 0.431872, 0.433429, 0.434956,
0.436453, 0.437917, 0.439348, 0.440745, 0.442105, 0.443427,
0.444712, 0.445957, 0.447162, 0.448327, 0.449449, 0.45053,
0.451568, 0.452564, 0.453516, 0.454424, 0.45529, 0.456112,
0.456891, 0.457627, 0.458321, 0.458972, 0.459582, 0.460152,
0.460681, 0.46117, 0.461622, 0.462036, 0.462414, 0.462757,
0.463066, 0.463343, 0.463588, 0.463805, 0.463993, 0.464154,
0.464291, 0.464405, 0.464497, 0.46457, 0.464625, 0.464665,
0.46469, 0.464703, 0.464706, 0.464701, 0.46469, 0.464674,
0.464656, 0.464638, 0.464621, 0.464607, 0.464599, 0.464599,
0.464607, 0.464627, 0.464659, 0.464705, 0.464768, 0.464849,
0.464949, 0.46507, 0.465213, 0.46538, 0.465572, 0.465791,
0.466037, 0.466312, 0.466617, 0.466953, 0.46732, 0.46772,
0.468152, 0.468619, 0.46912, 0.469655, 0.470226, 0.470832,
0.471473, 0.47215, 0.472863, 0.473611, 0.474394, 0.475212,
0.476065, 0.476952, 0.477872, 0.478826, 0.479811, 0.480829,
0.481876, 0.482953, 0.484059, 0.485192, 0.486352, 0.487536,
0.488745, 0.489976, 0.491228, 0.492499, 0.493789, 0.495095,
0.496416, 0.497751, 0.499097, 0.500453, 0.501818, 0.503189,
0.504566, 0.505945, 0.507326, 0.508707, 0.510086, 0.511461,
0.51283, 0.514193, 0.515546, 0.516889, 0.51822, 0.519537,
0.520839, 0.522124, 0.523391, 0.524638, 0.525864, 0.527068,
0.528248, 0.529403, 0.530533, 0.531635, 0.532709, 0.533753,
0.534768, 0.535753, 0.536706, 0.537626, 0.538514, 0.539369,
0.540191, 0.540978, 0.541732, 0.542451, 0.543136, 0.543787,
0.544403, 0.544986, 0.545534, 0.546049, 0.546531, 0.546981,
0.547398, 0.547784, 0.548139, 0.548465, 0.548761, 0.54903,
0.549271, 0.549486, 0.549677, 0.549843, 0.549987, 0.55011,
0.550212, 0.550296, 0.550363, 0.550414, 0.55045, 0.550474,
0.550486, 0.550488, 0.550482, 0.55047, 0.550452, 0.550431,
0.550407, 0.550384, 0.550361, 0.550341, 0.550326, 0.550316,
0.550314, 0.550321, 0.550338, 0.550366, 0.550408, 0.550464,
0.550536, 0.550625, 0.550732, 0.550859, 0.551006, 0.551175,
0.551367, 0.551582, 0.551821, 0.552086, 0.552376, 0.552694,
0.553038, 0.55341, 0.553811, 0.55424, 0.554698, 0.555185,
0.555702, 0.556248, 0.556823, 0.557428, 0.558062, 0.558725,
0.559416, 0.560136, 0.560884, 0.56166, 0.562462, 0.563291,
0.564145, 0.565023, 0.565926, 0.566852, 0.5678, 0.568769,
0.569758, 0.570766, 0.571792, 0.572835, 0.573893, 0.574965,
0.57605, 0.577147, 0.578254, 0.579369, 0.580492, 0.581621,
0.582755, 0.583892, 0.58503, 0.586169, 0.587306, 0.588441,
0.589571, 0.590696, 0.591815, 0.592925, 0.594025, 0.595114,
0.596191, 0.597255, 0.598303, 0.599336, 0.600351, 0.601348,
0.602326, 0.603283, 0.604219, 0.605133, 0.606023, 0.60689,
0.607732, 0.608548, 0.609338, 0.610102, 0.610839, 0.611548,
0.612229, 0.612882, 0.613507, 0.614103, 0.61467, 0.615209,
0.615719, 0.616201, 0.616655, 0.61708, 0.617478, 0.617848,
0.618192, 0.618509, 0.618801, 0.619067, 0.61931, 0.619528,
0.619724, 0.619897, 0.62005, 0.620182, 0.620296, 0.620391,
0.62047, 0.620532, 0.62058, 0.620615, 0.620637, 0.620649,
0.62065, 0.620644, 0.62063, 0.620611, 0.620587, 0.62056,
0.620531, 0.620502, 0.620474, 0.620448, 0.620426, 0.620408,
0.620397, 0.620393, 0.620398, 0.620413, 0.620439, 0.620477,
0.620529, 0.620595, 0.620676, 0.620774, 0.62089, 0.621024,
0.621177, 0.62135, 0.621545, 0.62176, 0.621998, 0.622259,
0.622543, 0.62285, 0.623182, 0.623539, 0.62392, 0.624326,
0.624757, 0.625214, 0.625696, 0.626203, 0.626736, 0.627293,
0.627875, 0.628482, 0.629112, 0.629767, 0.630445, 0.631145,
0.631867, 0.632611, 0.633376, 0.634161, 0.634965, 0.635787,
0.636627, 0.637484, 0.638356, 0.639242, 0.640143, 0.641055,
0.641979, 0.642913, 0.643857, 0.644808, 0.645766, 0.646729,
0.647697, 0.648667, 0.649639, 0.650612, 0.651584, 0.652554,
0.653521, 0.654483, 0.65544, 0.65639, 0.657332, 0.658264,
0.659187, 0.660097, 0.660996, 0.66188, 0.66275, 0.663605,
0.664443, 0.665263, 0.666065, 0.666849, 0.667612, 0.668355,
0.669076, 0.669776, 0.670453, 0.671107, 0.671739, 0.672346,
0.672929, 0.673488, 0.674023, 0.674533, 0.675018, 0.675478,
0.675914, 0.676325, 0.676711, 0.677073, 0.677411, 0.677726,
0.678017, 0.678285, 0.678531, 0.678755, 0.678957, 0.67914,
0.679302, 0.679445, 0.67957, 0.679677, 0.679768, 0.679842,
0.679902, 0.679949, 0.679982, 0.680003, 0.680014, 0.680016,
0.680008, 0.679994, 0.679973, 0.679947, 0.679917, 0.679884,
0.67985, 0.679815, 0.679782, 0.67975, 0.679721, 0.679696,
0.679677, 0.679664, 0.679658, 0.679662, 0.679675, 0.679699,
0.679734, 0.679782, 0.679844, 0.67992, 0.680011, 0.680119,
0.680243, 0.680386, 0.680546, 0.680725, 0.680924, 0.681143,
0.681383, 0.681643, 0.681925, 0.682228, 0.682553, 0.682901,
0.68327, 0.683662, 0.684076, 0.684513, 0.684971, 0.685452,
0.685955, 0.68648, 0.687026, 0.687593, 0.688181, 0.688788,
0.689416, 0.690062, 0.690728, 0.691411, 0.692111, 0.692827,
0.693559, 0.694306, 0.695067, 0.695842, 0.696628, 0.697425,
0.698233, 0.69905, 0.699875, 0.700708, 0.701546, 0.70239,
0.703237, 0.704088, 0.70494, 0.705793, 0.706645, 0.707496,
0.708345, 0.709189, 0.710029, 0.710863, 0.711689, 0.712508,
0.713318, 0.714118, 0.714907, 0.715684, 0.716449, 0.7172,
0.717936, 0.718657, 0.719361, 0.720049, 0.72072, 0.721372,
0.722006, 0.72262, 0.723215, 0.723789, 0.724343, 0.724875,
0.725387, 0.725876, 0.726345, 0.726791, 0.727215, 0.727617,
0.727997, 0.728356, 0.728692, 0.729007, 0.7293, 0.729573,
0.729824, 0.730055, 0.730267, 0.730458, 0.730631, 0.730785,
0.730922, 0.731041, 0.731144, 0.731231, 0.731304, 0.731362,
0.731407, 0.73144, 0.731461, 0.731471, 0.731472, 0.731464,
0.731449, 0.731427, 0.731399, 0.731366, 0.73133, 0.731292,
0.731252, 0.731211, 0.731171, 0.731133, 0.731098, 0.731066,
0.731039, 0.731018, 0.731003, 0.730996, 0.730998, 0.73101,
0.731031, 0.731065, 0.73111, 0.731168, 0.73124, 0.731327,
0.731429, 0.731546, 0.73168, 0.731831, 0.732, 0.732186,
0.732391, 0.732615, 0.732858, 0.733121, 0.733403, 0.733706,
0.734028, 0.734371, 0.734733, 0.735116, 0.735519, 0.735942,
0.736385, 0.736848, 0.73733, 0.737831, 0.738351, 0.738889,
0.739445, 0.740018, 0.740608, 0.741215, 0.741837, 0.742474,
0.743125, 0.74379, 0.744467, 0.745157, 0.745858, 0.746569,
0.747289, 0.748018, 0.748755, 0.749498, 0.750247, 0.751001,
0.751758, 0.752518, 0.75328, 0.754043, 0.754806, 0.755567,
0.756326, 0.757082, 0.757834, 0.75858, 0.759321, 0.760054,
0.760779, 0.761496, 0.762202, 0.762899, 0.763583, 0.764256,
0.764915, 0.765561, 0.766192, 0.766808, 0.767408, 0.767992,
0.768559, 0.769108, 0.76964, 0.770153, 0.770648, 0.771124,
0.77158, 0.772017, 0.772435, 0.772832, 0.773209, 0.773567,
0.773905, 0.774222, 0.77452, 0.774798, 0.775057, 0.775296,
0.775517, 0.775719, 0.775903, 0.776069, 0.776218, 0.77635,
0.776466, 0.776566, 0.776651, 0.776722, 0.776779, 0.776823,
0.776855, 0.776876, 0.776886, 0.776887, 0.776879, 0.776862,
0.776839, 0.776809, 0.776775, 0.776736, 0.776693, 0.776649,
0.776603, 0.776556, 0.77651, 0.776465, 0.776423, 0.776384,
0.77635, 0.77632, 0.776297, 0.776281, 0.776272, 0.776273,
0.776283, 0.776303, 0.776334, 0.776377, 0.776433, 0.776502,
0.776584, 0.776682, 0.776794, 0.776922, 0.777066, 0.777226,
0.777404, 0.777598, 0.777811, 0.778041, 0.778289, 0.778556,
0.778841, 0.779145, 0.779467, 0.779808, 0.780167, 0.780545,
0.780941, 0.781355, 0.781787, 0.782237, 0.782704, 0.783188,
0.783688, 0.784204, 0.784736, 0.785283, 0.785845, 0.78642,
0.787009, 0.78761, 0.788223, 0.788847, 0.789482, 0.790126,
0.790779, 0.79144, 0.792108, 0.792782, 0.793462, 0.794146,
0.794834, 0.795525, 0.796217, 0.79691, 0.797604, 0.798296,
0.798986, 0.799674, 0.800357, 0.801036, 0.80171, 0.802377,
0.803037, 0.803689, 0.804332, 0.804965, 0.805588, 0.8062,
0.8068, 0.807387, 0.807961, 0.808521, 0.809067, 0.809598,
0.810113, 0.810612, 0.811095, 0.81156, 0.812009, 0.81244,
0.812854, 0.813249, 0.813627, 0.813986, 0.814326, 0.814648,
0.814952, 0.815237, 0.815504, 0.815753, 0.815984, 0.816197,
0.816393, 0.816571, 0.816733, 0.816878, 0.817007, 0.817121,
0.817219, 0.817303, 0.817373, 0.81743, 0.817474, 0.817506,
0.817527, 0.817537, 0.817537, 0.817529, 0.817512, 0.817487,
0.817456, 0.817419, 0.817378, 0.817332, 0.817283, 0.817232,
0.817179, 0.817126, 0.817074, 0.817022, 0.816973, 0.816927,
0.816885, 0.816847, 0.816816, 0.81679, 0.816772, 0.816762,
0.816761, 0.816769, 0.816788, 0.816817, 0.816858, 0.816912,
0.816978, 0.817058, 0.817152, 0.81726, 0.817383, 0.817522,
0.817676, 0.817847, 0.818034, 0.818237, 0.818458, 0.818695,
0.81895, 0.819222, 0.819511, 0.819818, 0.820142, 0.820483,
0.820842, 0.821217, 0.821609, 0.822018, 0.822442, 0.822883,
0.823339, 0.82381, 0.824296, 0.824796, 0.825309, 0.825836,
0.826375, 0.826926, 0.827488, 0.82806, 0.828642, 0.829234,
0.829834, 0.830441, 0.831055, 0.831675, 0.832301, 0.83293,
0.833563, 0.834199, 0.834837, 0.835475, 0.836114, 0.836752,
0.837388, 0.838021, 0.838652, 0.839278, 0.839899, 0.840514,
0.841123, 0.841724, 0.842317, 0.8429, 0.843475, 0.844039,
0.844592, 0.845133, 0.845662, 0.846177, 0.84668, 0.847168,
0.847643, 0.848102, 0.848545, 0.848974, 0.849386, 0.849781,
0.85016, 0.850523, 0.850868, 0.851196, 0.851507, 0.851801,
0.852077, 0.852337, 0.852579, 0.852804, 0.853012, 0.853203,
0.853378, 0.853537, 0.85368, 0.853807, 0.85392, 0.854017,
0.854101, 0.854171, 0.854228, 0.854272, 0.854304, 0.854325,
0.854336, 0.854336, 0.854327, 0.854309, 0.854284, 0.854251,
0.854213, 0.854168, 0.854119, 0.854067, 0.854011, 0.853953,
0.853893, 0.853833, 0.853774, 0.853715, 0.853659, 0.853605,
0.853555, 0.853509, 0.853469, 0.853435, 0.853407, 0.853387,
0.853375, 0.853372, 0.853379, 0.853396, 0.853424, 0.853463,
0.853515, 0.853579, 0.853657, 0.853748, 0.853853, 0.853973,
0.854107, 0.854257, 0.854422, 0.854603, 0.8548, 0.855013,
0.855242, 0.855488, 0.85575, 0.856029, 0.856323, 0.856635,
0.856962, 0.857305, 0.857665, 0.85804, 0.85843, 0.858835,
0.859256, 0.85969, 0.860138, 0.8606, 0.861075, 0.861562,
0.862061, 0.862571, 0.863092, 0.863623, 0.864164, 0.864713,
0.86527, 0.865834, 0.866405, 0.866982, 0.867564, 0.86815,
0.86874, 0.869332, 0.869926, 0.870521, 0.871116, 0.87171,
0.872303, 0.872894, 0.873482, 0.874066, 0.874645, 0.875219,
0.875787, 0.876347, 0.8769, 0.877445, 0.87798, 0.878506,
0.879022, 0.879526, 0.880019, 0.8805, 0.880968, 0.881423,
0.881864, 0.882291, 0.882704, 0.883101, 0.883484, 0.883851,
0.884203, 0.884538, 0.884857, 0.885161, 0.885447, 0.885718,
0.885972, 0.88621, 0.886431, 0.886636, 0.886825, 0.886998,
0.887156, 0.887298, 0.887425, 0.887538, 0.887636, 0.88772,
0.887791, 0.887848, 0.887893, 0.887926, 0.887948, 0.887958,
0.887959, 0.88795, 0.887932, 0.887905, 0.887871, 0.887831,
0.887784, 0.887732, 0.887676, 0.887616, 0.887552, 0.887487,
0.88742, 0.887353, 0.887286, 0.887219, 0.887155, 0.887093,
0.887035, 0.886981, 0.886931, 0.886888, 0.88685, 0.88682,
0.886798, 0.886784, 0.886779, 0.886784, 0.8868, 0.886826,
0.886864, 0.886914, 0.886976, 0.887052, 0.887141, 0.887243,
0.88736, 0.887492, 0.887638, 0.887799, 0.887975, 0.888167,
0.888375, 0.888598, 0.888836, 0.889091, 0.889361, 0.889647,
0.889948, 0.890265, 0.890597, 0.890944, 0.891305, 0.891682,
0.892072, 0.892476, 0.892893, 0.893324, 0.893767, 0.894222,
0.894688, 0.895165, 0.895653, 0.89615, 0.896657, 0.897172,
0.897695, 0.898224, 0.898761, 0.899303, 0.899849, 0.9004,
0.900955, 0.901512, 0.902071, 0.902631, 0.903191, 0.903751,
0.90431, 0.904867, 0.905421, 0.905971, 0.906517, 0.907058,
0.907593, 0.908121, 0.908642, 0.909156, 0.90966, 0.910156,
0.910642, 0.911117, 0.911581, 0.912034, 0.912474, 0.912902,
0.913317, 0.913719, 0.914106, 0.91448, 0.914839, 0.915183,
0.915512, 0.915826, 0.916124, 0.916407, 0.916674, 0.916926,
0.917161, 0.917381, 0.917586, 0.917774, 0.917948, 0.918106,
0.918249, 0.918377, 0.91849, 0.91859, 0.918675, 0.918747,
0.918806, 0.918853, 0.918887, 0.91891, 0.918921, 0.918922,
0.918913, 0.918895, 0.918868, 0.918833, 0.918791, 0.918742,
0.918688, 0.918628, 0.918563, 0.918495, 0.918424, 0.91835,
0.918275, 0.9182, 0.918125, 0.91805, 0.917977, 0.917907,
0.917839, 0.917776, 0.917717, 0.917664, 0.917616, 0.917576,
0.917542, 0.917517, 0.917501, 0.917494, 0.917497, 0.91751,
0.917535, 0.917571, 0.917619, 0.91768, 0.917753, 0.91784,
0.91794, 0.918055, 0.918183, 0.918326, 0.918484, 0.918657,
0.918845, 0.919048, 0.919266, 0.919499, 0.919747, 0.920011,
0.92029, 0.920584, 0.920892, 0.921215, 0.921552, 0.921904,
0.922269, 0.922647, 0.923039, 0.923443, 0.923859, 0.924288,
0.924727, 0.925177, 0.925637, 0.926107, 0.926585, 0.927072,
0.927567, 0.928069, 0.928577, 0.929091, 0.929609, 0.930132,
0.930658, 0.931187, 0.931718, 0.932251, 0.932783, 0.933316,
0.933847, 0.934377, 0.934904, 0.935427, 0.935947, 0.936462,
0.936971, 0.937474, 0.937971, 0.93846, 0.93894, 0.939412,
0.939875, 0.940327, 0.940769, 0.9412, 0.941619, 0.942026,
0.94242, 0.942802, 0.94317, 0.943524, 0.943865, 0.944191,
0.944503, 0.9448, 0.945082, 0.945348, 0.9456, 0.945836,
0.946058, 0.946263, 0.946454, 0.94663, 0.94679, 0.946936,
0.947067, 0.947183, 0.947285, 0.947374, 0.947449, 0.94751,
0.947559, 0.947596, 0.947621, 0.947634, 0.947636, 0.947628,
0.94761, 0.947584, 0.947548, 0.947505, 0.947454, 0.947397,
0.947333, 0.947265, 0.947192, 0.947115, 0.947035, 0.946953,
0.946869, 0.946785, 0.9467, 0.946616, 0.946534, 0.946454,
0.946376, 0.946302, 0.946233, 0.946169, 0.94611, 0.946058,
0.946013, 0.945975, 0.945947, 0.945927, 0.945916, 0.945916,
0.945926, 0.945948, 0.945981, 0.946026, 0.946084, 0.946155,
0.946238, 0.946336, 0.946447, 0.946573, 0.946712, 0.946867,
0.947036, 0.947219, 0.947418, 0.947631, 0.947859, 0.948103,
0.94836, 0.948633, 0.94892, 0.949221, 0.949537, 0.949866,
0.950209, 0.950565, 0.950933, 0.951315, 0.951708, 0.952113,
0.952529, 0.952956, 0.953393, 0.95384, 0.954295, 0.954759,
0.95523, 0.955709, 0.956194, 0.956685, 0.957181, 0.957681,
0.958185, 0.958691, 0.9592, 0.959711, 0.960222, 0.960733,
0.961244, 0.961753, 0.962259, 0.962763, 0.963263, 0.963758,
0.964249, 0.964734, 0.965212, 0.965683, 0.966146, 0.966601,
0.967047, 0.967483, 0.967909, 0.968325, 0.968729, 0.969122,
0.969502, 0.96987, 0.970225, 0.970567, 0.970895, 0.971209,
0.971509, 0.971795, 0.972066, 0.972322, 0.972564, 0.97279,
0.973002, 0.973198, 0.97338, 0.973547, 0.973699, 0.973836,
0.973959, 0.974067, 0.974162, 0.974242, 0.97431, 0.974364,
0.974405, 0.974434, 0.974451, 0.974457, 0.974452, 0.974437,
0.974411, 0.974376, 0.974333, 0.974282, 0.974223, 0.974157,
0.974085, 0.974008, 0.973925, 0.973839, 0.97375, 0.973657,
0.973563, 0.973468, 0.973372, 0.973277, 0.973182, 0.973089,
0.972999, 0.972912, 0.972829, 0.97275, 0.972677, 0.97261,
0.972549, 0.972496, 0.972451, 0.972414, 0.972386, 0.972368,
0.97236, 0.972363, 0.972376, 0.972402, 0.97244, 0.97249,
0.972553, 0.972629, 0.972719, 0.972822, 0.97294, 0.973072,
0.973218, 0.973379, 0.973554, 0.973744, 0.973948, 0.974168,
0.974402, 0.97465, 0.974913, 0.975191, 0.975482, 0.975787,
0.976106, 0.976438, 0.976784, 0.977142, 0.977512, 0.977894,
0.978288, 0.978692, 0.979107, 0.979532, 0.979966, 0.980409,
0.980861, 0.98132, 0.981786, 0.982258, 0.982736, 0.983219,
0.983707, 0.984198, 0.984692, 0.985188, 0.985685, 0.986184,
0.986682, 0.98718, 0.987676, 0.988171, 0.988662, 0.98915,
0.989634, 0.990112, 0.990586, 0.991052, 0.991512, 0.991965,
0.992409, 0.992845, 0.993271, 0.993687, 0.994093, 0.994488,
0.994872, 0.995243, 0.995603, 0.99595, 0.996284, 0.996604,
0.996911, 0.997204, 0.997482, 0.997746, 0.997996, 0.998231,
0.998451, 0.998656, 0.998846, 0.999022, 0.999182, 0.999328,
0.999458, 0.999574, 0.999676, 0.999763, 0.999836, 0.999896,
0.999941, 0.999974, 0.999993, 1, 0.999995, 0.999978,
0.999949, 0.99991, 0.99986, 0.999801, 0.999732, 0.999654,
0.999568, 0.999474, 0.999372, 0.999265, 0.999151, 0.999032,
0.998908, 0.99878, 0.998648, 0.998513, 0.998376, 0.998238,
0.998098, 0.997957, 0.997817, 0.997677, 0.997538, 0.997402,
0.997267, 0.997136, 0.997008, 0.996883, 0.996763, 0.996648,
0.996539, 0.996434, 0.996336, 0.996245, 0.99616, 0.996082,
0.996012, 0.995949, 0.995894, 0.995848, 0.995809, 0.995779,
0.995758, 0.995745
};
static const float WAVE_LOGARITHMIC_090[DEFAULT_WAVELEN] = {
-1, -0.999929, -0.999716, -0.999361, -0.998864, -0.998225,
-0.997445, -0.996524, -0.995462, -0.994259, -0.992916, -0.991433,
-0.989811, -0.98805, -0.986151, -0.984114, -0.98194, -0.97963,
-0.977185, -0.974604, -0.97189, -0.969042, -0.966063, -0.962952,
-0.95971, -0.95634, -0.952841, -0.949216, -0.945464, -0.941587,
-0.937588, -0.933465, -0.929222, -0.924859, -0.920378, -0.91578,
-0.911067, -0.90624, -0.9013, -0.896249, -0.891089, -0.885821,
-0.880447, -0.874969, -0.869388, -0.863706, -0.857924, -0.852045,
-0.846071, -0.840002, -0.833842, -0.827591, -0.821252, -0.814827,
-0.808317, -0.801725, -0.795052, -0.788302, -0.781474, -0.774573,
-0.767599, -0.760555, -0.753443, -0.746265, -0.739023, -0.731719,
-0.724355, -0.716935, -0.709459, -0.701929, -0.694349, -0.686721,
-0.679045, -0.671326, -0.663564, -0.655762, -0.647923, -0.640048,
-0.63214, -0.624201, -0.616233, -0.608239, -0.60022, -0.592179,
-0.584118, -0.57604, -0.567946, -0.559838, -0.551719, -0.543592,
-0.535457, -0.527318, -0.519176, -0.511034, -0.502893, -0.494757,
-0.486626, -0.478503, -0.470391, -0.46229, -0.454204, -0.446133,
-0.438081, -0.430049, -0.422039, -0.414054, -0.406094, -0.398161,
-0.390259, -0.382388, -0.37455, -0.366748, -0.358982, -0.351255,
-0.343569, -0.335924, -0.328323, -0.320768, -0.313259, -0.305799,
-0.298389, -0.29103, -0.283725, -0.276474, -0.269279, -0.262141,
-0.255062, -0.248043, -0.241085, -0.23419, -0.227359, -0.220592,
-0.213891, -0.207258, -0.200693, -0.194197, -0.187772, -0.181418,
-0.175136, -0.168927, -0.162792, -0.156732, -0.150747, -0.144839,
-0.139008, -0.133255, -0.12758, -0.121984, -0.116467, -0.111031,
-0.105675, -0.1004, -0.0952061, -0.0900943, -0.0850646, -0.0801173,
-0.0752527, -0.0704709, -0.0657723, -0.0611568, -0.0566247, -0.052176,
-0.0478107, -0.0435289, -0.0393306, -0.0352156, -0.0311838, -0.0272351,
-0.0233694, -0.0195865, -0.015886, -0.0122677, -0.00873133, -0.00527652,
-0.0019029, 0.00138995, 0.00460246, 0.00773511, 0.0107884, 0.0137629,
0.0166591, 0.0194776, 0.0222191, 0.0248842, 0.0274736, 0.029988,
0.0324281, 0.0347947, 0.0370886, 0.0393106, 0.0414616, 0.0435423,
0.0455537, 0.0474968, 0.0493724, 0.0511815, 0.052925, 0.0546041,
0.0562196, 0.0577726, 0.0592643, 0.0606956, 0.0620676, 0.0633816,
0.0646385, 0.0658396, 0.066986, 0.0680788, 0.0691193, 0.0701086,
0.071048, 0.0719387, 0.072782, 0.0735789, 0.0743309, 0.0750392,
0.0757051, 0.0763297, 0.0769145, 0.0774607, 0.0779695, 0.0784424,
0.0788806, 0.0792853, 0.079658, 0.08, 0.0803124, 0.0805968,
0.0808543, 0.0810863, 0.081294, 0.0814789, 0.0816422, 0.0817852,
0.0819092, 0.0820155, 0.0821054, 0.0821801, 0.082241, 0.0822894,
0.0823264, 0.0823533, 0.0823714, 0.0823819, 0.082386, 0.0823849,
0.0823799, 0.0823721, 0.0823627, 0.0823528, 0.0823437, 0.0823364,
0.0823321, 0.0823318, 0.0823367, 0.0823478, 0.0823663, 0.082393,
0.0824291, 0.0824756, 0.0825334, 0.0826035, 0.0826868, 0.0827844,
0.0828971, 0.0830257, 0.0831713, 0.0833345, 0.0835162, 0.0837174,
0.0839386, 0.0841807, 0.0844445, 0.0847306, 0.0850398, 0.0853727,
0.0857299, 0.0861122, 0.0865201, 0.0869541, 0.0874149, 0.0879029,
0.0884187, 0.0889628, 0.0895356, 0.0901375, 0.090769, 0.0914305,
0.0921223, 0.0928447, 0.0935981, 0.0943828, 0.0951989, 0.0960468,
0.0969267, 0.0978388, 0.0987831, 0.09976, 0.100769, 0.101812,
0.102886, 0.103994, 0.105135, 0.106308, 0.107514, 0.108753,
0.110024, 0.111329, 0.112665, 0.114034, 0.115435, 0.116868,
0.118333, 0.11983, 0.121358, 0.122916, 0.124506, 0.126126,
0.127776, 0.129456, 0.131166, 0.132904, 0.134672, 0.136467,
0.13829, 0.140141, 0.142018, 0.143922, 0.145851, 0.147806,
0.149786, 0.15179, 0.153818, 0.155869, 0.157942, 0.160038,
0.162154, 0.164292, 0.166449, 0.168626, 0.170821, 0.173035,
0.175266, 0.177514, 0.179777, 0.182056, 0.18435, 0.186657,
0.188977, 0.19131, 0.193654, 0.19601, 0.198375, 0.20075,
0.203133, 0.205524, 0.207922, 0.210327, 0.212737, 0.215152,
0.217571, 0.219993, 0.222417, 0.224843, 0.22727, 0.229697,
0.232123, 0.234548, 0.23697, 0.23939, 0.241806, 0.244218,
0.246624, 0.249024, 0.251418, 0.253804, 0.256182, 0.258551,
0.26091, 0.263259, 0.265597, 0.267923, 0.270237, 0.272538,
0.274826, 0.277099, 0.279356, 0.281599, 0.283825, 0.286034,
0.288226, 0.290399, 0.292554, 0.29469, 0.296807, 0.298902,
0.300978, 0.303032, 0.305064, 0.307074, 0.309061, 0.311025,
0.312966, 0.314882, 0.316774, 0.318642, 0.320484, 0.3223,
0.324091, 0.325856, 0.327594, 0.329305, 0.330989, 0.332646,
0.334276, 0.335877, 0.337451, 0.338996, 0.340514, 0.342002,
0.343462, 0.344893, 0.346295, 0.347669, 0.349013, 0.350328,
0.351614, 0.352871, 0.354098, 0.355297, 0.356466, 0.357606,
0.358717, 0.359799, 0.360853, 0.361877, 0.362873, 0.363841,
0.36478, 0.365691, 0.366574, 0.36743, 0.368257, 0.369058,
0.369831, 0.370578, 0.371298, 0.371992, 0.37266, 0.373302,
0.373919, 0.374511, 0.375079, 0.375622, 0.376142, 0.376638,
0.377111, 0.377562, 0.37799, 0.378397, 0.378782, 0.379146,
0.379491, 0.379815, 0.38012, 0.380406, 0.380673, 0.380923,
0.381156, 0.381371, 0.381571, 0.381754, 0.381923, 0.382076,
0.382216, 0.382342, 0.382455, 0.382556, 0.382646, 0.382723,
0.382791, 0.382848, 0.382896, 0.382935, 0.382966, 0.382989,
0.383005, 0.383015, 0.383019, 0.383018, 0.383012, 0.383002,
0.382988, 0.382972, 0.382954, 0.382934, 0.382913, 0.382891,
0.38287, 0.382849, 0.38283, 0.382812, 0.382797, 0.382785,
0.382777, 0.382773, 0.382773, 0.382779, 0.38279, 0.382808,
0.382832, 0.382864, 0.382903, 0.382951, 0.383008, 0.383074,
0.38315, 0.383236, 0.383333, 0.383441, 0.383561, 0.383692,
0.383837, 0.383993, 0.384164, 0.384347, 0.384545, 0.384757,
0.384984, 0.385226, 0.385483, 0.385756, 0.386046, 0.386351,
0.386673, 0.387012, 0.387367, 0.387741, 0.388131, 0.38854,
0.388967, 0.389411, 0.389874, 0.390356, 0.390856, 0.391376,
0.391914, 0.392471, 0.393047, 0.393643, 0.394258, 0.394892,
0.395545, 0.396219, 0.396911, 0.397623, 0.398355, 0.399105,
0.399876, 0.400665, 0.401474, 0.402302, 0.40315, 0.404016,
0.404901, 0.405805, 0.406728, 0.407669, 0.408628, 0.409606,
0.410602, 0.411615, 0.412646, 0.413695, 0.41476, 0.415843,
0.416942, 0.418057, 0.419189, 0.420336, 0.421499, 0.422677,
0.42387, 0.425078, 0.4263, 0.427536, 0.428785, 0.430048,
0.431323, 0.432611, 0.433911, 0.435223, 0.436546, 0.43788,
0.439225, 0.440579, 0.441943, 0.443317, 0.444699, 0.44609,
0.447489, 0.448895, 0.450308, 0.451728, 0.453154, 0.454586,
0.456023, 0.457465, 0.458911, 0.460361, 0.461814, 0.46327,
0.464729, 0.466189, 0.467651, 0.469114, 0.470577, 0.472041,
0.473504, 0.474966, 0.476427, 0.477885, 0.479342, 0.480796,
0.482246, 0.483693, 0.485136, 0.486574, 0.488007, 0.489434,
0.490855, 0.49227, 0.493678, 0.495079, 0.496472, 0.497857,
0.499234, 0.500602, 0.50196, 0.503308, 0.504647, 0.505974,
0.507291, 0.508597, 0.509891, 0.511173, 0.512443, 0.5137,
0.514945, 0.516176, 0.517393, 0.518596, 0.519786, 0.52096,
0.52212, 0.523265, 0.524395, 0.525509, 0.526608, 0.52769,
0.528756, 0.529806, 0.530839, 0.531856, 0.532855, 0.533838,
0.534803, 0.53575, 0.53668, 0.537593, 0.538487, 0.539364,
0.540223, 0.541064, 0.541886, 0.542691, 0.543477, 0.544245,
0.544995, 0.545726, 0.546439, 0.547134, 0.547811, 0.548469,
0.54911, 0.549732, 0.550336, 0.550922, 0.55149, 0.552041,
0.552573, 0.553089, 0.553586, 0.554067, 0.55453, 0.554976,
0.555406, 0.555819, 0.556215, 0.556595, 0.556959, 0.557307,
0.55764, 0.557957, 0.558259, 0.558546, 0.558819, 0.559077,
0.559321, 0.559551, 0.559768, 0.559971, 0.560162, 0.56034,
0.560505, 0.560659, 0.560801, 0.560931, 0.561051, 0.56116,
0.561259, 0.561347, 0.561427, 0.561497, 0.561558, 0.56161,
0.561655, 0.561692, 0.561722, 0.561744, 0.561761, 0.561771,
0.561775, 0.561774, 0.561768, 0.561758, 0.561743, 0.561725,
0.561704, 0.561679, 0.561652, 0.561623, 0.561592, 0.56156,
0.561527, 0.561494, 0.56146, 0.561427, 0.561395, 0.561364,
0.561334, 0.561306, 0.561281, 0.561258, 0.561238, 0.561222,
0.56121, 0.561202, 0.561198, 0.561199, 0.561206, 0.561219,
0.561237, 0.561262, 0.561294, 0.561332, 0.561378, 0.561432,
0.561494, 0.561564, 0.561643, 0.56173, 0.561827, 0.561934,
0.56205, 0.562176, 0.562313, 0.56246, 0.562618, 0.562787,
0.562968, 0.56316, 0.563364, 0.563579, 0.563807, 0.564047,
0.5643, 0.564566, 0.564844, 0.565135, 0.56544, 0.565757,
0.566088, 0.566433, 0.566791, 0.567164, 0.567549, 0.567949,
0.568363, 0.568791, 0.569233, 0.569689, 0.570159, 0.570644,
0.571142, 0.571655, 0.572182, 0.572723, 0.573279, 0.573848,
0.574432, 0.57503, 0.575641, 0.576267, 0.576906, 0.57756,
0.578226, 0.578907, 0.5796, 0.580307, 0.581027, 0.581761,
0.582507, 0.583265, 0.584037, 0.58482, 0.585616, 0.586424,
0.587244, 0.588075, 0.588918, 0.589771, 0.590636, 0.591512,
0.592398, 0.593294, 0.5942, 0.595116, 0.596041, 0.596975,
0.597918, 0.59887, 0.59983, 0.600799, 0.601775, 0.602758,
0.603749, 0.604746, 0.60575, 0.60676, 0.607775, 0.608797,
0.609823, 0.610855, 0.611891, 0.612931, 0.613975, 0.615022,
0.616073, 0.617126, 0.618182, 0.61924, 0.6203, 0.621361,
0.622424, 0.623487, 0.62455, 0.625613, 0.626676, 0.627739,
0.6288, 0.62986, 0.630918, 0.631974, 0.633028, 0.634079,
0.635126, 0.636171, 0.637211, 0.638248, 0.639279, 0.640307,
0.641329, 0.642345, 0.643356, 0.644361, 0.645359, 0.646351,
0.647336, 0.648313, 0.649283, 0.650245, 0.651199, 0.652145,
0.653081, 0.654009, 0.654928, 0.655837, 0.656737, 0.657627,
0.658506, 0.659375, 0.660233, 0.661081, 0.661918, 0.662743,
0.663557, 0.664359, 0.66515, 0.665928, 0.666695, 0.667449,
0.66819, 0.668919, 0.669636, 0.670339, 0.67103, 0.671708,
0.672372, 0.673023, 0.673661, 0.674285, 0.674896, 0.675494,
0.676078, 0.676648, 0.677205, 0.677748, 0.678277, 0.678793,
0.679294, 0.679783, 0.680257, 0.680718, 0.681165, 0.681599,
0.682019, 0.682426, 0.682819, 0.683199, 0.683566, 0.68392,
0.684261, 0.684588, 0.684903, 0.685205, 0.685495, 0.685772,
0.686037, 0.68629, 0.68653, 0.686759, 0.686977, 0.687183,
0.687377, 0.687561, 0.687733, 0.687895, 0.688047, 0.688188,
0.688319, 0.68844, 0.688552, 0.688655, 0.688748, 0.688833,
0.688909, 0.688976, 0.689036, 0.689088, 0.689132, 0.68917,
0.6892, 0.689223, 0.68924, 0.689252, 0.689257, 0.689257,
0.689251, 0.689241, 0.689226, 0.689207, 0.689184, 0.689157,
0.689127, 0.689094, 0.689058, 0.689019, 0.688979, 0.688937,
0.688893, 0.688848, 0.688803, 0.688757, 0.68871, 0.688664,
0.688618, 0.688574, 0.68853, 0.688487, 0.688446, 0.688407,
0.688371, 0.688337, 0.688306, 0.688278, 0.688254, 0.688233,
0.688217, 0.688204, 0.688197, 0.688194, 0.688197, 0.688205,
0.688219, 0.688239, 0.688265, 0.688297, 0.688337, 0.688383,
0.688437, 0.688498, 0.688567, 0.688643, 0.688728, 0.688821,
0.688923, 0.689033, 0.689153, 0.689281, 0.689419, 0.689567,
0.689724, 0.68989, 0.690067, 0.690254, 0.690451, 0.690659,
0.690877, 0.691105, 0.691345, 0.691595, 0.691856, 0.692128,
0.692412, 0.692706, 0.693012, 0.693329, 0.693657, 0.693997,
0.694349, 0.694711, 0.695086, 0.695471, 0.695869, 0.696277,
0.696698, 0.69713, 0.697573, 0.698027, 0.698494, 0.698971,
0.69946, 0.69996, 0.700471, 0.700993, 0.701526, 0.702071,
0.702626, 0.703191, 0.703768, 0.704354, 0.704951, 0.705559,
0.706176, 0.706804, 0.707441, 0.708088, 0.708744, 0.70941,
0.710085, 0.710769, 0.711461, 0.712162, 0.712872, 0.713589,
0.714315, 0.715048, 0.715789, 0.716538, 0.717293, 0.718055,
0.718824, 0.719599, 0.72038, 0.721168, 0.72196, 0.722759,
0.723562, 0.72437, 0.725183, 0.726, 0.726821, 0.727646,
0.728475, 0.729307, 0.730141, 0.730979, 0.731818, 0.73266,
0.733504, 0.734349, 0.735196, 0.736043, 0.736891, 0.73774,
0.738589, 0.739437, 0.740285, 0.741132, 0.741979, 0.742824,
0.743667, 0.744508, 0.745347, 0.746184, 0.747018, 0.747849,
0.748677, 0.749501, 0.750322, 0.751138, 0.75195, 0.752757,
0.753559, 0.754357, 0.755148, 0.755935, 0.756715, 0.757489,
0.758257, 0.759018, 0.759773, 0.76052, 0.76126, 0.761993,
0.762718, 0.763435, 0.764144, 0.764844, 0.765536, 0.76622,
0.766895, 0.76756, 0.768217, 0.768864, 0.769501, 0.770129,
0.770747, 0.771355, 0.771953, 0.772541, 0.773119, 0.773686,
0.774243, 0.774789, 0.775324, 0.775849, 0.776362, 0.776865,
0.777357, 0.777837, 0.778307, 0.778765, 0.779212, 0.779648,
0.780072, 0.780486, 0.780888, 0.781279, 0.781658, 0.782026,
0.782383, 0.782729, 0.783063, 0.783387, 0.783699, 0.784,
0.78429, 0.78457, 0.784838, 0.785096, 0.785343, 0.785579,
0.785805, 0.78602, 0.786226, 0.786421, 0.786606, 0.786781,
0.786946, 0.787102, 0.787248, 0.787385, 0.787513, 0.787631,
0.787741, 0.787843, 0.787935, 0.78802, 0.788096, 0.788165,
0.788226, 0.788279, 0.788325, 0.788364, 0.788396, 0.788421,
0.78844, 0.788453, 0.78846, 0.788461, 0.788457, 0.788447,
0.788433, 0.788414, 0.78839, 0.788362, 0.78833, 0.788294,
0.788255, 0.788212, 0.788167, 0.788118, 0.788068, 0.788015,
0.78796, 0.787904, 0.787846, 0.787788, 0.787728, 0.787668,
0.787607, 0.787547, 0.787486, 0.787427, 0.787368, 0.78731,
0.787253, 0.787198, 0.787145, 0.787093, 0.787044, 0.786998,
0.786955, 0.786914, 0.786877, 0.786844, 0.786814, 0.786789,
0.786767, 0.786751, 0.786739, 0.786732, 0.78673, 0.786734,
0.786743, 0.786759, 0.78678, 0.786808, 0.786842, 0.786883,
0.78693, 0.786985, 0.787047, 0.787117, 0.787194, 0.787278,
0.787371, 0.787472, 0.787581, 0.787698, 0.787824, 0.787958,
0.788101, 0.788253, 0.788414, 0.788584, 0.788764, 0.788952,
0.78915, 0.789358, 0.789575, 0.789801, 0.790038, 0.790284,
0.79054, 0.790805, 0.791081, 0.791366, 0.791662, 0.791967,
0.792283, 0.792608, 0.792943, 0.793289, 0.793644, 0.794009,
0.794384, 0.794769, 0.795164, 0.795569, 0.795983, 0.796407,
0.796841, 0.797284, 0.797737, 0.798199, 0.798671, 0.799152,
0.799641, 0.80014, 0.800648, 0.801165, 0.80169, 0.802224,
0.802766, 0.803316, 0.803874, 0.804441, 0.805015, 0.805597,
0.806186, 0.806783, 0.807387, 0.807998, 0.808615, 0.809239,
0.80987, 0.810506, 0.811149, 0.811797, 0.812452, 0.813111,
0.813776, 0.814445, 0.815119, 0.815798, 0.816481, 0.817168,
0.817859, 0.818553, 0.819251, 0.819952, 0.820656, 0.821362,
0.822071, 0.822781, 0.823494, 0.824208, 0.824924, 0.825641,
0.826359, 0.827077, 0.827796, 0.828515, 0.829233, 0.829952,
0.83067, 0.831387, 0.832102, 0.832817, 0.83353, 0.834241,
0.834949, 0.835656, 0.83636, 0.837061, 0.837759, 0.838454,
0.839145, 0.839832, 0.840516, 0.841195, 0.841869, 0.842539,
0.843205, 0.843865, 0.844519, 0.845168, 0.845812, 0.846449,
0.847081, 0.847706, 0.848324, 0.848936, 0.849541, 0.850139,
0.850729, 0.851312, 0.851888, 0.852456, 0.853016, 0.853568,
0.854112, 0.854647, 0.855174, 0.855693, 0.856202, 0.856703,
0.857195, 0.857678, 0.858152, 0.858617, 0.859072, 0.859518,
0.859955, 0.860382, 0.860799, 0.861207, 0.861605, 0.861993,
0.862372, 0.86274, 0.863099, 0.863448, 0.863787, 0.864116,
0.864435, 0.864744, 0.865044, 0.865333, 0.865613, 0.865882,
0.866142, 0.866393, 0.866633, 0.866864, 0.867085, 0.867297,
0.867499, 0.867692, 0.867875, 0.868049, 0.868214, 0.86837,
0.868517, 0.868656, 0.868785, 0.868906, 0.869019, 0.869123,
0.869219, 0.869306, 0.869386, 0.869459, 0.869523, 0.86958,
0.86963, 0.869673, 0.869708, 0.869737, 0.86976, 0.869775,
0.869785, 0.869789, 0.869787, 0.869779, 0.869766, 0.869747,
0.869724, 0.869695, 0.869662, 0.869625, 0.869584, 0.869538,
0.869489, 0.869436, 0.869381, 0.869322, 0.86926, 0.869196,
0.869129, 0.86906, 0.86899, 0.868918, 0.868844, 0.868769,
0.868694, 0.868617, 0.868541, 0.868464, 0.868387, 0.86831,
0.868234, 0.868159, 0.868084, 0.868011, 0.86794, 0.86787,
0.867802, 0.867736, 0.867673, 0.867612, 0.867554, 0.867499,
0.867447, 0.867399, 0.867355, 0.867314, 0.867278, 0.867246,
0.867219, 0.867196, 0.867179, 0.867166, 0.867159, 0.867158,
0.867162, 0.867172, 0.867188, 0.86721, 0.867239, 0.867274,
0.867316, 0.867365, 0.867421, 0.867485, 0.867555, 0.867633,
0.867719, 0.867812, 0.867914, 0.868023, 0.86814, 0.868265,
0.868399, 0.868541, 0.868692, 0.868851, 0.869018, 0.869195,
0.86938, 0.869574, 0.869776, 0.869988, 0.870209, 0.870438,
0.870677, 0.870925, 0.871182, 0.871447, 0.871722, 0.872006,
0.8723, 0.872602, 0.872913, 0.873234, 0.873563, 0.873901,
0.874249, 0.874605, 0.87497, 0.875344, 0.875726, 0.876118,
0.876518, 0.876926, 0.877343, 0.877768, 0.878201, 0.878643,
0.879092, 0.87955, 0.880015, 0.880488, 0.880969, 0.881457,
0.881952, 0.882454, 0.882964, 0.88348, 0.884003, 0.884533,
0.885069, 0.885611, 0.886159, 0.886713, 0.887273, 0.887838,
0.888409, 0.888985, 0.889566, 0.890151, 0.890741, 0.891336,
0.891935, 0.892537, 0.893144, 0.893754, 0.894367, 0.894983,
0.895602, 0.896224, 0.896849, 0.897475, 0.898104, 0.898734,
0.899366, 0.9, 0.900634, 0.901269, 0.901905, 0.902542,
0.903178, 0.903815, 0.904451, 0.905087, 0.905722, 0.906356,
0.906989, 0.90762, 0.90825, 0.908878, 0.909504, 0.910127,
0.910748, 0.911367, 0.911982, 0.912594, 0.913203, 0.913808,
0.914409, 0.915007, 0.9156, 0.916188, 0.916772, 0.917351,
0.917926, 0.918494, 0.919058, 0.919616, 0.920168, 0.920714,
0.921254, 0.921788, 0.922316, 0.922837, 0.923351, 0.923858,
0.924358, 0.924851, 0.925336, 0.925814, 0.926285, 0.926748,
0.927203, 0.927649, 0.928088, 0.928519, 0.928941, 0.929356,
0.929761, 0.930158, 0.930547, 0.930926, 0.931297, 0.931659,
0.932013, 0.932357, 0.932692, 0.933019, 0.933336, 0.933644,
0.933943, 0.934233, 0.934514, 0.934786, 0.935048, 0.935302,
0.935546, 0.935781, 0.936007, 0.936224, 0.936432, 0.936631,
0.936822, 0.937003, 0.937175, 0.937339, 0.937494, 0.93764,
0.937778, 0.937907, 0.938028, 0.93814, 0.938245, 0.938341,
0.938429, 0.93851, 0.938582, 0.938647, 0.938705, 0.938755,
0.938798, 0.938834, 0.938863, 0.938885, 0.9389, 0.938909,
0.938912, 0.938908, 0.938899, 0.938883, 0.938862, 0.938836,
0.938804, 0.938767, 0.938725, 0.938679, 0.938628, 0.938573,
0.938513, 0.93845, 0.938383, 0.938312, 0.938238, 0.938161,
0.938081, 0.937999, 0.937914, 0.937827, 0.937737, 0.937646,
0.937554, 0.93746, 0.937365, 0.937269, 0.937172, 0.937075,
0.936978, 0.93688, 0.936783, 0.936686, 0.93659, 0.936495,
0.936401, 0.936308, 0.936217, 0.936127, 0.93604, 0.935954,
0.935871, 0.935791, 0.935713, 0.935639, 0.935567, 0.935499,
0.935435, 0.935375, 0.935318, 0.935266, 0.935218, 0.935175,
0.935137, 0.935103, 0.935075, 0.935052, 0.935035, 0.935023,
0.935017, 0.935017, 0.935023, 0.935036, 0.935055, 0.93508,
0.935112, 0.935152, 0.935198, 0.935251, 0.935311, 0.935379,
0.935455, 0.935537, 0.935628, 0.935726, 0.935833, 0.935947,
0.936069, 0.936199, 0.936338, 0.936485, 0.93664, 0.936803,
0.936975, 0.937156, 0.937345, 0.937542, 0.937748, 0.937963,
0.938187, 0.938419, 0.938659, 0.938908, 0.939166, 0.939433,
0.939708, 0.939992, 0.940284, 0.940585, 0.940895, 0.941213,
0.941539, 0.941874, 0.942217, 0.942568, 0.942927, 0.943295,
0.943671, 0.944054, 0.944445, 0.944845, 0.945251, 0.945666,
0.946088, 0.946517, 0.946953, 0.947397, 0.947847, 0.948305,
0.948769, 0.94924, 0.949717, 0.9502, 0.95069, 0.951185,
0.951687, 0.952194, 0.952706, 0.953224, 0.953747, 0.954275,
0.954808, 0.955345, 0.955887, 0.956433, 0.956983, 0.957537,
0.958094, 0.958656, 0.95922, 0.959787, 0.960358, 0.960931,
0.961506, 0.962084, 0.962663, 0.963245, 0.963828, 0.964413,
0.964998, 0.965585, 0.966172, 0.96676, 0.967349, 0.967937,
0.968525, 0.969113, 0.969701, 0.970287, 0.970873, 0.971458,
0.972041, 0.972622, 0.973202, 0.973779, 0.974355, 0.974928,
0.975498, 0.976065, 0.97663, 0.977191, 0.977748, 0.978302,
0.978852, 0.979398, 0.97994, 0.980477, 0.981009, 0.981537,
0.98206, 0.982578, 0.98309, 0.983597, 0.984098, 0.984593,
0.985082, 0.985566, 0.986042, 0.986513, 0.986976, 0.987433,
0.987884, 0.988327, 0.988763, 0.989191, 0.989613, 0.990026,
0.990433, 0.990831, 0.991222, 0.991604, 0.991979, 0.992346,
0.992704, 0.993054, 0.993396, 0.993729, 0.994054, 0.994371,
0.994678, 0.994978, 0.995268, 0.99555, 0.995823, 0.996087,
0.996343, 0.996589, 0.996827, 0.997056, 0.997276, 0.997487,
0.99769, 0.997883, 0.998068, 0.998244, 0.998411, 0.99857,
0.99872, 0.998861, 0.998993, 0.999117, 0.999233, 0.99934,
0.999439, 0.999529, 0.999611, 0.999685, 0.999751, 0.999809,
0.999859, 0.999902, 0.999936, 0.999963, 0.999983, 0.999995,
1, 0.999998, 0.999989, 0.999973, 0.99995, 0.99992,
0.999884, 0.999842, 0.999794, 0.999739, 0.999679, 0.999613,
0.999541, 0.999464, 0.999381, 0.999294, 0.999201, 0.999104,
0.999002, 0.998895, 0.998785, 0.99867, 0.998551, 0.998429,
0.998303, 0.998173, 0.998041, 0.997905, 0.997767, 0.997625,
0.997482, 0.997336, 0.997187, 0.997037, 0.996885, 0.996732,
0.996577, 0.996421, 0.996264, 0.996106, 0.995947, 0.995788,
0.995629, 0.995469, 0.995309, 0.99515, 0.994991, 0.994833,
0.994675, 0.994518, 0.994362, 0.994208, 0.994054, 0.993903,
0.993753, 0.993605, 0.993458, 0.993315, 0.993173, 0.993034,
0.992897, 0.992763, 0.992632, 0.992504, 0.992379, 0.992257,
0.992138, 0.992023, 0.991912, 0.991804, 0.9917, 0.9916,
0.991504, 0.991412, 0.991325, 0.991241, 0.991162, 0.991087,
0.991017, 0.990951, 0.99089, 0.990833, 0.990782, 0.990735,
0.990693, 0.990655, 0.990623, 0.990595, 0.990573, 0.990555,
0.990543, 0.990535
};
static const float WAVE_LOGARITHMIC_102[DEFAULT_WAVELEN] = {
-1, -0.999978, -0.999911, -0.9998, -0.999645, -0.999446,
-0.999202, -0.998914, -0.998582, -0.998205, -0.997784, -0.99732,
-0.996811, -0.996257, -0.99566, -0.995019, -0.994334, -0.993605,
-0.992833, -0.992016, -0.991156, -0.990253, -0.989306, -0.988315,
-0.987281, -0.986204, -0.985083, -0.98392, -0.982713, -0.981464,
-0.980172, -0.978837, -0.977459, -0.976039, -0.974577, -0.973073,
-0.971526, -0.969938, -0.968308, -0.966636, -0.964922, -0.963167,
-0.961371, -0.959534, -0.957656, -0.955737, -0.953777, -0.951777,
-0.949737, -0.947656, -0.945536, -0.943376, -0.941176, -0.938937,
-0.936658, -0.934341, -0.931984, -0.929589, -0.927156, -0.924684,
-0.922174, -0.919627, -0.917042, -0.914419, -0.911759, -0.909062,
-0.906329, -0.903559, -0.900752, -0.89791, -0.895032, -0.892118,
-0.889169, -0.886184, -0.883165, -0.880111, -0.877023, -0.873901,
-0.870744, -0.867555, -0.864332, -0.861075, -0.857786, -0.854465,
-0.851111, -0.847725, -0.844307, -0.840858, -0.837378, -0.833867,
-0.830326, -0.826754, -0.823152, -0.81952, -0.815859, -0.812168,
-0.808449, -0.804701, -0.800925, -0.797122, -0.79329, -0.789431,
-0.785545, -0.781633, -0.777694, -0.773729, -0.769738, -0.765722,
-0.76168, -0.757614, -0.753523, -0.749408, -0.74527, -0.741108,
-0.736922, -0.732714, -0.728483, -0.72423, -0.719956, -0.715659,
-0.711342, -0.707004, -0.702645, -0.698266, -0.693867, -0.689449,
-0.685011, -0.680555, -0.676081, -0.671588, -0.667078, -0.66255,
-0.658005, -0.653443, -0.648865, -0.644271, -0.639662, -0.635037,
-0.630397, -0.625742, -0.621074, -0.616391, -0.611695, -0.606986,
-0.602263, -0.597529, -0.592782, -0.588024, -0.583254, -0.578473,
-0.573681, -0.568879, -0.564067, -0.559246, -0.554415, -0.549575,
-0.544727, -0.539871, -0.535006, -0.530134, -0.525256, -0.52037,
-0.515478, -0.51058, -0.505676, -0.500766, -0.495852, -0.490933,
-0.48601, -0.481083, -0.476152, -0.471218, -0.466281, -0.461342,
-0.4564, -0.451456, -0.446511, -0.441565, -0.436618, -0.431671,
-0.426723, -0.421775, -0.416828, -0.411882, -0.406938, -0.401994,
-0.397053, -0.392114, -0.387177, -0.382244, -0.377313, -0.372386,
-0.367463, -0.362545, -0.35763, -0.352721, -0.347817, -0.342918,
-0.338025, -0.333139, -0.328258, -0.323385, -0.318518, -0.313659,
-0.308808, -0.303965, -0.299129, -0.294303, -0.289486, -0.284677,
-0.279879, -0.27509, -0.270311, -0.265542, -0.260784, -0.256038,
-0.251302, -0.246578, -0.241866, -0.237166, -0.232478, -0.227803,
-0.223141, -0.218492, -0.213857, -0.209235, -0.204627, -0.200034,
-0.195455, -0.190891, -0.186342, -0.181808, -0.17729, -0.172787,
-0.168301, -0.16383, -0.159377, -0.15494, -0.15052, -0.146117,
-0.141731, -0.137363, -0.133013, -0.128682, -0.124368, -0.120073,
-0.115797, -0.11154, -0.107302, -0.103083, -0.0988835, -0.0947041,
-0.0905446, -0.0864052, -0.0822862, -0.0781877, -0.0741099, -0.070053,
-0.0660172, -0.0620026, -0.0580094, -0.0540379, -0.050088, -0.0461601,
-0.0422542, -0.0383706, -0.0345094, -0.0306707, -0.0268547, -0.0230615,
-0.0192913, -0.0155442, -0.0118204, -0.00811989, -0.00444293, -0.000789614,
0.00283994, 0.00644561, 0.0100273, 0.0135848, 0.0171182, 0.0206272,
0.0241117, 0.0275717, 0.0310071, 0.0344177, 0.0378035, 0.0411644,
0.0445002, 0.047811, 0.0510966, 0.054357, 0.057592, 0.0608016,
0.0639858, 0.0671444, 0.0702775, 0.0733849, 0.0764666, 0.0795225,
0.0825527, 0.0855569, 0.0885353, 0.0914878, 0.0944143, 0.0973147,
0.100189, 0.103038, 0.10586, 0.108656, 0.111426, 0.11417,
0.116888, 0.119579, 0.122245, 0.124884, 0.127497, 0.130084,
0.132644, 0.135179, 0.137687, 0.140169, 0.142626, 0.145056,
0.14746, 0.149837, 0.152189, 0.154515, 0.156815, 0.159089,
0.161337, 0.163559, 0.165756, 0.167927, 0.170072, 0.172191,
0.174285, 0.176353, 0.178396, 0.180414, 0.182406, 0.184373,
0.186314, 0.188231, 0.190122, 0.191989, 0.193831, 0.195648,
0.19744, 0.199208, 0.200951, 0.20267, 0.204364, 0.206034,
0.207681, 0.209303, 0.210901, 0.212475, 0.214026, 0.215554,
0.217057, 0.218538, 0.219995, 0.221429, 0.222841, 0.224229,
0.225595, 0.226938, 0.228259, 0.229557, 0.230834, 0.232088,
0.23332, 0.234531, 0.23572, 0.236888, 0.238035, 0.23916,
0.240264, 0.241348, 0.242411, 0.243453, 0.244475, 0.245477,
0.246459, 0.247421, 0.248364, 0.249287, 0.25019, 0.251075,
0.25194, 0.252787, 0.253615, 0.254424, 0.255216, 0.255989,
0.256744, 0.257482, 0.258202, 0.258904, 0.25959, 0.260258,
0.26091, 0.261545, 0.262164, 0.262766, 0.263353, 0.263924,
0.264479, 0.265018, 0.265543, 0.266052, 0.266547, 0.267027,
0.267492, 0.267943, 0.268381, 0.268804, 0.269214, 0.269611,
0.269994, 0.270364, 0.270722, 0.271066, 0.271399, 0.271719,
0.272028, 0.272325, 0.27261, 0.272884, 0.273146, 0.273398,
0.273639, 0.27387, 0.274091, 0.274301, 0.274502, 0.274693,
0.274874, 0.275046, 0.27521, 0.275364, 0.27551, 0.275648,
0.275778, 0.275899, 0.276013, 0.27612, 0.276219, 0.276311,
0.276396, 0.276475, 0.276547, 0.276613, 0.276673, 0.276727,
0.276776, 0.276819, 0.276857, 0.27689, 0.276919, 0.276942,
0.276962, 0.276977, 0.276989, 0.276996, 0.277, 0.277001,
0.276999, 0.276994, 0.276986, 0.276975, 0.276963, 0.276948,
0.276931, 0.276913, 0.276893, 0.276871, 0.276849, 0.276826,
0.276802, 0.276777, 0.276752, 0.276727, 0.276702, 0.276677,
0.276652, 0.276628, 0.276605, 0.276583, 0.276562, 0.276542,
0.276524, 0.276507, 0.276492, 0.27648, 0.276469, 0.276461,
0.276455, 0.276452, 0.276452, 0.276455, 0.276461, 0.27647,
0.276483, 0.2765, 0.276521, 0.276545, 0.276574, 0.276607,
0.276644, 0.276686, 0.276733, 0.276785, 0.276841, 0.276903,
0.276971, 0.277044, 0.277122, 0.277206, 0.277296, 0.277392,
0.277495, 0.277603, 0.277718, 0.27784, 0.277968, 0.278103,
0.278245, 0.278393, 0.278549, 0.278713, 0.278884, 0.279062,
0.279248, 0.279441, 0.279642, 0.279852, 0.280069, 0.280294,
0.280528, 0.28077, 0.28102, 0.281279, 0.281546, 0.281822,
0.282107, 0.282401, 0.282703, 0.283015, 0.283336, 0.283666,
0.284005, 0.284353, 0.284711, 0.285078, 0.285455, 0.285841,
0.286237, 0.286643, 0.287059, 0.287484, 0.287919, 0.288364,
0.288819, 0.289284, 0.289759, 0.290244, 0.290739, 0.291245,
0.291761, 0.292287, 0.292823, 0.293369, 0.293926, 0.294494,
0.295071, 0.295659, 0.296258, 0.296867, 0.297486, 0.298116,
0.298757, 0.299408, 0.300069, 0.300742, 0.301424, 0.302117,
0.302821, 0.303535, 0.30426, 0.304995, 0.305741, 0.306497,
0.307264, 0.308041, 0.308829, 0.309627, 0.310436, 0.311255,
0.312084, 0.312924, 0.313774, 0.314635, 0.315505, 0.316386,
0.317278, 0.318179, 0.319091, 0.320012, 0.320944, 0.321886,
0.322838, 0.323799, 0.324771, 0.325752, 0.326743, 0.327744,
0.328755, 0.329775, 0.330805, 0.331844, 0.332893, 0.333951,
0.335019, 0.336096, 0.337181, 0.338277, 0.339381, 0.340494,
0.341616, 0.342747, 0.343886, 0.345034, 0.346191, 0.347357,
0.34853, 0.349713, 0.350903, 0.352102, 0.353308, 0.354523,
0.355746, 0.356976, 0.358214, 0.35946, 0.360714, 0.361974,
0.363243, 0.364518, 0.365801, 0.36709, 0.368387, 0.369691,
0.371001, 0.372318, 0.373641, 0.374971, 0.376307, 0.37765,
0.378998, 0.380353, 0.381713, 0.383079, 0.384451, 0.385829,
0.387212, 0.3886, 0.389993, 0.391392, 0.392795, 0.394204,
0.395617, 0.397034, 0.398457, 0.399883, 0.401314, 0.402749,
0.404188, 0.405631, 0.407078, 0.408528, 0.409982, 0.411439,
0.4129, 0.414363, 0.41583, 0.417299, 0.418772, 0.420247,
0.421724, 0.423204, 0.424686, 0.42617, 0.427657, 0.429145,
0.430635, 0.432126, 0.433619, 0.435114, 0.436609, 0.438106,
0.439604, 0.441102, 0.442601, 0.444101, 0.445602, 0.447102,
0.448603, 0.450104, 0.451605, 0.453105, 0.454606, 0.456106,
0.457605, 0.459104, 0.460602, 0.462099, 0.463594, 0.465089,
0.466582, 0.468074, 0.469565, 0.471053, 0.47254, 0.474025,
0.475507, 0.476988, 0.478466, 0.479942, 0.481415, 0.482886,
0.484354, 0.485819, 0.48728, 0.488739, 0.490194, 0.491646,
0.493095, 0.49454, 0.495981, 0.497418, 0.498851, 0.500281,
0.501706, 0.503126, 0.504543, 0.505955, 0.507362, 0.508764,
0.510162, 0.511554, 0.512942, 0.514325, 0.515702, 0.517073,
0.51844, 0.519801, 0.521156, 0.522505, 0.523848, 0.525186,
0.526517, 0.527843, 0.529162, 0.530475, 0.531781, 0.533081,
0.534374, 0.53566, 0.53694, 0.538213, 0.539479, 0.540738,
0.54199, 0.543234, 0.544471, 0.545701, 0.546924, 0.548139,
0.549347, 0.550546, 0.551738, 0.552923, 0.554099, 0.555268,
0.556428, 0.557581, 0.558725, 0.559861, 0.560989, 0.562109,
0.56322, 0.564323, 0.565417, 0.566503, 0.56758, 0.568649,
0.569709, 0.57076, 0.571803, 0.572836, 0.573861, 0.574877,
0.575884, 0.576881, 0.57787, 0.57885, 0.579821, 0.580782,
0.581734, 0.582677, 0.583611, 0.584536, 0.585451, 0.586357,
0.587254, 0.588141, 0.589019, 0.589888, 0.590747, 0.591596,
0.592436, 0.593267, 0.594088, 0.5949, 0.595702, 0.596495,
0.597278, 0.598052, 0.598816, 0.59957, 0.600315, 0.601051,
0.601777, 0.602493, 0.6032, 0.603898, 0.604586, 0.605264,
0.605933, 0.606592, 0.607242, 0.607883, 0.608514, 0.609136,
0.609748, 0.610351, 0.610945, 0.611529, 0.612104, 0.612669,
0.613226, 0.613773, 0.614311, 0.61484, 0.61536, 0.61587,
0.616372, 0.616864, 0.617348, 0.617822, 0.618288, 0.618745,
0.619193, 0.619632, 0.620063, 0.620484, 0.620898, 0.621302,
0.621698, 0.622086, 0.622465, 0.622836, 0.623198, 0.623552,
0.623898, 0.624236, 0.624566, 0.624887, 0.625201, 0.625507,
0.625805, 0.626095, 0.626378, 0.626652, 0.62692, 0.627179,
0.627432, 0.627677, 0.627914, 0.628145, 0.628368, 0.628584,
0.628794, 0.628996, 0.629191, 0.62938, 0.629562, 0.629738,
0.629907, 0.630069, 0.630225, 0.630375, 0.630519, 0.630656,
0.630788, 0.630913, 0.631033, 0.631147, 0.631256, 0.631358,
0.631456, 0.631548, 0.631634, 0.631716, 0.631792, 0.631863,
0.631929, 0.631991, 0.632048, 0.6321, 0.632147, 0.63219,
0.632229, 0.632263, 0.632294, 0.63232, 0.632342, 0.63236,
0.632375, 0.632386, 0.632393, 0.632397, 0.632398, 0.632395,
0.632389, 0.63238, 0.632368, 0.632353, 0.632335, 0.632315,
0.632292, 0.632267, 0.632239, 0.632209, 0.632177, 0.632143,
0.632107, 0.632069, 0.632029, 0.631988, 0.631945, 0.631901,
0.631855, 0.631808, 0.631761, 0.631712, 0.631662, 0.631611,
0.63156, 0.631507, 0.631455, 0.631402, 0.631349, 0.631295,
0.631242, 0.631188, 0.631135, 0.631081, 0.631028, 0.630976,
0.630923, 0.630872, 0.630821, 0.630771, 0.630722, 0.630674,
0.630627, 0.630581, 0.630536, 0.630493, 0.630451, 0.630411,
0.630372, 0.630335, 0.6303, 0.630267, 0.630236, 0.630207,
0.630181, 0.630156, 0.630134, 0.630115, 0.630098, 0.630084,
0.630072, 0.630063, 0.630057, 0.630055, 0.630055, 0.630058,
0.630065, 0.630075, 0.630088, 0.630105, 0.630126, 0.63015,
0.630178, 0.630209, 0.630245, 0.630284, 0.630328, 0.630376,
0.630427, 0.630484, 0.630544, 0.630609, 0.630678, 0.630752,
0.63083, 0.630913, 0.631001, 0.631094, 0.631191, 0.631293,
0.631401, 0.631513, 0.631631, 0.631753, 0.631881, 0.632014,
0.632153, 0.632296, 0.632446, 0.632601, 0.632761, 0.632927,
0.633098, 0.633276, 0.633459, 0.633647, 0.633842, 0.634042,
0.634249, 0.634461, 0.634679, 0.634904, 0.635134, 0.635371,
0.635613, 0.635862, 0.636117, 0.636378, 0.636646, 0.63692,
0.6372, 0.637486, 0.637779, 0.638079, 0.638384, 0.638697,
0.639015, 0.639341, 0.639672, 0.64001, 0.640355, 0.640707,
0.641065, 0.641429, 0.6418, 0.642178, 0.642562, 0.642953,
0.643351, 0.643755, 0.644166, 0.644584, 0.645008, 0.645439,
0.645877, 0.646321, 0.646772, 0.647229, 0.647694, 0.648164,
0.648642, 0.649126, 0.649617, 0.650114, 0.650618, 0.651128,
0.651645, 0.652169, 0.652699, 0.653236, 0.653779, 0.654329,
0.654885, 0.655448, 0.656017, 0.656592, 0.657174, 0.657762,
0.658356, 0.658957, 0.659564, 0.660177, 0.660796, 0.661422,
0.662054, 0.662691, 0.663335, 0.663985, 0.664641, 0.665302,
0.66597, 0.666644, 0.667323, 0.668008, 0.668699, 0.669395,
0.670098, 0.670805, 0.671519, 0.672237, 0.672962, 0.673691,
0.674426, 0.675167, 0.675912, 0.676663, 0.677419, 0.67818,
0.678946, 0.679717, 0.680492, 0.681273, 0.682059, 0.682849,
0.683644, 0.684443, 0.685247, 0.686056, 0.686868, 0.687686,
0.688507, 0.689333, 0.690163, 0.690997, 0.691835, 0.692677,
0.693522, 0.694372, 0.695225, 0.696082, 0.696943, 0.697807,
0.698674, 0.699545, 0.70042, 0.701297, 0.702177, 0.703061,
0.703948, 0.704837, 0.70573, 0.706625, 0.707522, 0.708423,
0.709326, 0.710231, 0.711139, 0.712049, 0.712961, 0.713875,
0.714792, 0.71571, 0.71663, 0.717552, 0.718476, 0.719401,
0.720328, 0.721257, 0.722186, 0.723117, 0.72405, 0.724983,
0.725918, 0.726853, 0.727789, 0.728726, 0.729664, 0.730603,
0.731542, 0.732481, 0.733421, 0.734361, 0.735301, 0.736242,
0.737182, 0.738122, 0.739063, 0.740003, 0.740943, 0.741882,
0.742821, 0.743759, 0.744697, 0.745634, 0.74657, 0.747505,
0.74844, 0.749373, 0.750305, 0.751236, 0.752165, 0.753094,
0.75402, 0.754946, 0.755869, 0.756791, 0.757711, 0.758629,
0.759545, 0.76046, 0.761372, 0.762282, 0.763189, 0.764095,
0.764997, 0.765898, 0.766796, 0.767691, 0.768583, 0.769473,
0.770359, 0.771243, 0.772124, 0.773001, 0.773876, 0.774747,
0.775615, 0.77648, 0.777341, 0.778198, 0.779052, 0.779902,
0.780749, 0.781591, 0.78243, 0.783265, 0.784096, 0.784923,
0.785745, 0.786564, 0.787378, 0.788188, 0.788994, 0.789795,
0.790591, 0.791383, 0.792171, 0.792953, 0.793731, 0.794505,
0.795273, 0.796036, 0.796795, 0.797548, 0.798297, 0.79904,
0.799778, 0.800511, 0.801239, 0.801962, 0.802679, 0.80339,
0.804096, 0.804797, 0.805492, 0.806182, 0.806866, 0.807545,
0.808217, 0.808884, 0.809545, 0.810201, 0.81085, 0.811494,
0.812132, 0.812764, 0.81339, 0.814009, 0.814623, 0.815231,
0.815833, 0.816428, 0.817018, 0.817601, 0.818178, 0.818749,
0.819313, 0.819872, 0.820424, 0.82097, 0.821509, 0.822042,
0.822569, 0.82309, 0.823604, 0.824111, 0.824612, 0.825107,
0.825596, 0.826078, 0.826553, 0.827022, 0.827485, 0.827941,
0.828391, 0.828834, 0.829271, 0.829702, 0.830126, 0.830543,
0.830954, 0.831358, 0.831757, 0.832148, 0.832533, 0.832912,
0.833285, 0.83365, 0.83401, 0.834363, 0.83471, 0.83505,
0.835384, 0.835712, 0.836034, 0.836349, 0.836657, 0.83696,
0.837256, 0.837546, 0.83783, 0.838108, 0.83838, 0.838645,
0.838905, 0.839158, 0.839405, 0.839646, 0.839882, 0.840111,
0.840334, 0.840552, 0.840763, 0.840969, 0.841169, 0.841364,
0.841552, 0.841735, 0.841912, 0.842084, 0.84225, 0.842411,
0.842566, 0.842716, 0.84286, 0.842999, 0.843133, 0.843261,
0.843384, 0.843503, 0.843616, 0.843724, 0.843827, 0.843925,
0.844018, 0.844106, 0.844189, 0.844268, 0.844342, 0.844411,
0.844476, 0.844537, 0.844592, 0.844644, 0.844691, 0.844734,
0.844772, 0.844807, 0.844837, 0.844863, 0.844885, 0.844904,
0.844918, 0.844929, 0.844936, 0.844939, 0.844939, 0.844935,
0.844928, 0.844917, 0.844903, 0.844885, 0.844865, 0.844841,
0.844815, 0.844785, 0.844752, 0.844717, 0.844678, 0.844637,
0.844594, 0.844548, 0.844499, 0.844448, 0.844394, 0.844338,
0.84428, 0.84422, 0.844158, 0.844094, 0.844028, 0.84396,
0.84389, 0.843819, 0.843746, 0.843671, 0.843595, 0.843518,
0.843439, 0.843359, 0.843278, 0.843196, 0.843113, 0.843029,
0.842944, 0.842858, 0.842771, 0.842684, 0.842596, 0.842508,
0.84242, 0.842331, 0.842242, 0.842152, 0.842063, 0.841973,
0.841884, 0.841794, 0.841705, 0.841616, 0.841528, 0.84144,
0.841352, 0.841265, 0.841179, 0.841093, 0.841008, 0.840924,
0.840841, 0.840759, 0.840678, 0.840598, 0.840519, 0.840442,
0.840366, 0.840292, 0.840219, 0.840148, 0.840078, 0.84001,
0.839944, 0.839879, 0.839817, 0.839757, 0.839698, 0.839642,
0.839588, 0.839536, 0.839487, 0.83944, 0.839396, 0.839354,
0.839314, 0.839278, 0.839244, 0.839213, 0.839184, 0.839159,
0.839136, 0.839117, 0.839101, 0.839088, 0.839078, 0.839071,
0.839068, 0.839068, 0.839071, 0.839078, 0.839089, 0.839103,
0.83912, 0.839142, 0.839167, 0.839196, 0.839229, 0.839266,
0.839307, 0.839352, 0.839401, 0.839454, 0.839511, 0.839572,
0.839638, 0.839708, 0.839782, 0.83986, 0.839943, 0.840031,
0.840123, 0.840219, 0.84032, 0.840426, 0.840536, 0.840651,
0.840771, 0.840895, 0.841025, 0.841159, 0.841298, 0.841442,
0.84159, 0.841744, 0.841903, 0.842066, 0.842235, 0.842409,
0.842587, 0.842771, 0.84296, 0.843155, 0.843354, 0.843558,
0.843768, 0.843983, 0.844203, 0.844429, 0.844659, 0.844896,
0.845137, 0.845383, 0.845635, 0.845893, 0.846155, 0.846423,
0.846697, 0.846976, 0.84726, 0.847549, 0.847844, 0.848145,
0.84845, 0.848761, 0.849078, 0.8494, 0.849727, 0.85006,
0.850398, 0.850742, 0.851091, 0.851445, 0.851805, 0.85217,
0.85254, 0.852916, 0.853297, 0.853683, 0.854075, 0.854472,
0.854875, 0.855282, 0.855695, 0.856114, 0.856537, 0.856966,
0.857399, 0.857838, 0.858283, 0.858732, 0.859186, 0.859646,
0.86011, 0.86058, 0.861054, 0.861534, 0.862019, 0.862508,
0.863002, 0.863502, 0.864006, 0.864515, 0.865028, 0.865547,
0.86607, 0.866598, 0.86713, 0.867667, 0.868209, 0.868755,
0.869306, 0.869861, 0.87042, 0.870984, 0.871553, 0.872125,
0.872702, 0.873283, 0.873868, 0.874457, 0.87505, 0.875648,
0.876249, 0.876854, 0.877463, 0.878076, 0.878693, 0.879313,
0.879937, 0.880565, 0.881196, 0.881831, 0.882469, 0.883111,
0.883756, 0.884404, 0.885056, 0.885711, 0.886369, 0.88703,
0.887694, 0.888361, 0.88903, 0.889703, 0.890379, 0.891057,
0.891738, 0.892421, 0.893108, 0.893796, 0.894487, 0.89518,
0.895876, 0.896574, 0.897274, 0.897976, 0.89868, 0.899386,
0.900095, 0.900804, 0.901516, 0.90223, 0.902945, 0.903661,
0.90438, 0.905099, 0.90582, 0.906542, 0.907266, 0.907991,
0.908717, 0.909444, 0.910172, 0.9109, 0.91163, 0.91236,
0.913092, 0.913823, 0.914556, 0.915288, 0.916022, 0.916755,
0.917489, 0.918223, 0.918958, 0.919692, 0.920426, 0.921161,
0.921895, 0.922629, 0.923363, 0.924096, 0.924829, 0.925562,
0.926293, 0.927025, 0.927756, 0.928486, 0.929215, 0.929943,
0.93067, 0.931396, 0.932122, 0.932846, 0.933569, 0.93429,
0.93501, 0.935729, 0.936446, 0.937162, 0.937876, 0.938588,
0.939299, 0.940008, 0.940715, 0.94142, 0.942123, 0.942824,
0.943522, 0.944219, 0.944913, 0.945605, 0.946294, 0.946982,
0.947666, 0.948348, 0.949027, 0.949704, 0.950378, 0.951049,
0.951717, 0.952382, 0.953045, 0.953704, 0.95436, 0.955013,
0.955663, 0.956309, 0.956952, 0.957592, 0.958228, 0.958861,
0.95949, 0.960116, 0.960738, 0.961356, 0.96197, 0.962581,
0.963188, 0.963791, 0.96439, 0.964985, 0.965576, 0.966163,
0.966745, 0.967324, 0.967898, 0.968468, 0.969034, 0.969595,
0.970152, 0.970705, 0.971253, 0.971796, 0.972335, 0.97287,
0.9734, 0.973925, 0.974445, 0.974961, 0.975472, 0.975978,
0.976479, 0.976975, 0.977467, 0.977953, 0.978435, 0.978911,
0.979383, 0.979849, 0.98031, 0.980767, 0.981218, 0.981664,
0.982105, 0.98254, 0.982971, 0.983396, 0.983816, 0.98423,
0.984639, 0.985043, 0.985442, 0.985835, 0.986223, 0.986605,
0.986983, 0.987354, 0.98772, 0.988081, 0.988437, 0.988786,
0.989131, 0.98947, 0.989803, 0.990131, 0.990454, 0.990771,
0.991082, 0.991388, 0.991688, 0.991983, 0.992273, 0.992556,
0.992835, 0.993108, 0.993375, 0.993637, 0.993893, 0.994144,
0.994389, 0.994629, 0.994863, 0.995092, 0.995315, 0.995533,
0.995746, 0.995953, 0.996154, 0.99635, 0.996541, 0.996727,
0.996907, 0.997081, 0.997251, 0.997415, 0.997574, 0.997727,
0.997875, 0.998018, 0.998156, 0.998288, 0.998416, 0.998538,
0.998655, 0.998767, 0.998874, 0.998976, 0.999072, 0.999164,
0.999251, 0.999333, 0.99941, 0.999482, 0.999549, 0.999612,
0.999669, 0.999722, 0.99977, 0.999814, 0.999853, 0.999887,
0.999916, 0.999941, 0.999962, 0.999978, 0.99999, 0.999997,
1, 0.999999, 0.999993, 0.999983, 0.999969, 0.999951,
0.999928, 0.999902, 0.999872, 0.999837, 0.999799, 0.999757,
0.999711, 0.999661, 0.999607, 0.99955, 0.999489, 0.999425,
0.999357, 0.999285, 0.99921, 0.999132, 0.99905, 0.998965,
0.998877, 0.998785, 0.99869, 0.998593, 0.998492, 0.998388,
0.998281, 0.998172, 0.998059, 0.997944, 0.997826, 0.997705,
0.997582, 0.997456, 0.997328, 0.997197, 0.997064, 0.996928,
0.99679, 0.99665, 0.996508, 0.996364, 0.996217, 0.996069,
0.995919, 0.995766, 0.995612, 0.995456, 0.995299, 0.995139,
0.994979, 0.994816, 0.994652, 0.994487, 0.99432, 0.994152,
0.993983, 0.993812, 0.99364, 0.993468, 0.993294, 0.993119,
0.992943, 0.992767, 0.992589, 0.992411, 0.992232, 0.992053,
0.991873, 0.991692, 0.991511, 0.99133, 0.991148, 0.990966,
0.990783, 0.990601, 0.990418, 0.990235, 0.990053, 0.98987,
0.989687, 0.989505, 0.989322, 0.98914, 0.988958, 0.988777,
0.988596, 0.988415, 0.988235, 0.988056, 0.987877, 0.987698,
0.987521, 0.987344, 0.987168, 0.986993, 0.986819, 0.986646,
0.986474, 0.986302, 0.986132, 0.985963, 0.985796, 0.985629,
0.985464, 0.9853, 0.985138, 0.984977, 0.984817, 0.984659,
0.984503, 0.984348, 0.984195, 0.984043, 0.983893, 0.983745,
0.983599, 0.983455, 0.983312, 0.983172, 0.983033, 0.982896,
0.982762, 0.982629, 0.982498, 0.98237, 0.982244, 0.98212,
0.981998, 0.981879, 0.981762, 0.981647, 0.981534, 0.981424,
0.981316, 0.981211, 0.981108, 0.981008, 0.98091, 0.980815,
0.980723, 0.980633, 0.980545, 0.98046, 0.980378, 0.980299,
0.980222, 0.980148, 0.980077, 0.980008, 0.979943, 0.97988,
0.97982, 0.979763, 0.979708, 0.979657, 0.979608, 0.979562,
0.979519, 0.979479, 0.979442, 0.979408, 0.979377, 0.979349,
0.979324, 0.979301, 0.979282, 0.979266, 0.979252, 0.979242,
0.979234, 0.97923
};
static const float WAVE_LOGARITHMIC_114[DEFAULT_WAVELEN] = {
-1, -0.999993, -0.99997, -0.999933, -0.99988, -0.999813,
-0.999731, -0.999633, -0.999521, -0.999394, -0.999252, -0.999094,
-0.998922, -0.998735, -0.998533, -0.998316, -0.998085, -0.997838,
-0.997576, -0.9973, -0.997008, -0.996702, -0.99638, -0.996044,
-0.995693, -0.995327, -0.994946, -0.994551, -0.99414, -0.993715,
-0.993275, -0.99282, -0.99235, -0.991865, -0.991366, -0.990852,
-0.990323, -0.989779, -0.989221, -0.988648, -0.98806, -0.987457,
-0.98684, -0.986208, -0.985562, -0.984901, -0.984225, -0.983535,
-0.98283, -0.98211, -0.981376, -0.980627, -0.979864, -0.979086,
-0.978294, -0.977488, -0.976667, -0.975831, -0.974981, -0.974117,
-0.973238, -0.972345, -0.971438, -0.970516, -0.96958, -0.96863,
-0.967665, -0.966686, -0.965693, -0.964686, -0.963665, -0.96263,
-0.96158, -0.960516, -0.959439, -0.958347, -0.957241, -0.956122,
-0.954988, -0.95384, -0.952679, -0.951503, -0.950314, -0.949111,
-0.947894, -0.946663, -0.945419, -0.944161, -0.942889, -0.941604,
-0.940305, -0.938992, -0.937666, -0.936326, -0.934972, -0.933606,
-0.932225, -0.930832, -0.929425, -0.928004, -0.926571, -0.925124,
-0.923663, -0.92219, -0.920703, -0.919204, -0.917691, -0.916165,
-0.914626, -0.913074, -0.911508, -0.909931, -0.90834, -0.906736,
-0.905119, -0.90349, -0.901848, -0.900193, -0.898525, -0.896845,
-0.895152, -0.893447, -0.891729, -0.889999, -0.888256, -0.886501,
-0.884733, -0.882953, -0.881161, -0.879356, -0.877539, -0.87571,
-0.873869, -0.872016, -0.870151, -0.868274, -0.866385, -0.864484,
-0.862571, -0.860646, -0.858709, -0.856761, -0.854801, -0.852829,
-0.850846, -0.848851, -0.846845, -0.844827, -0.842798, -0.840757,
-0.838705, -0.836642, -0.834567, -0.832481, -0.830384, -0.828276,
-0.826157, -0.824027, -0.821886, -0.819734, -0.817571, -0.815397,
-0.813213, -0.811018, -0.808812, -0.806595, -0.804368, -0.802131,
-0.799882, -0.797624, -0.795355, -0.793076, -0.790786, -0.788487,
-0.786177, -0.783857, -0.781526, -0.779186, -0.776836, -0.774476,
-0.772106, -0.769727, -0.767337, -0.764938, -0.762529, -0.760111,
-0.757683, -0.755245, -0.752799, -0.750342, -0.747877, -0.745402,
-0.742918, -0.740424, -0.737922, -0.735411, -0.73289, -0.730361,
-0.727823, -0.725275, -0.72272, -0.720155, -0.717582, -0.715,
-0.712409, -0.70981, -0.707203, -0.704587, -0.701963, -0.699331,
-0.69669, -0.694041, -0.691385, -0.68872, -0.686047, -0.683366,
-0.680677, -0.677981, -0.675277, -0.672565, -0.669845, -0.667118,
-0.664384, -0.661642, -0.658892, -0.656135, -0.653371, -0.6506,
-0.647821, -0.645036, -0.642243, -0.639444, -0.636637, -0.633824,
-0.631004, -0.628177, -0.625343, -0.622503, -0.619657, -0.616803,
-0.613944, -0.611078, -0.608205, -0.605327, -0.602442, -0.599551,
-0.596654, -0.593751, -0.590842, -0.587928, -0.585007, -0.582081,
-0.579149, -0.576211, -0.573268, -0.570319, -0.567365, -0.564405,
-0.56144, -0.55847, -0.555495, -0.552514, -0.549529, -0.546538,
-0.543543, -0.540542, -0.537537, -0.534527, -0.531512, -0.528493,
-0.525469, -0.522441, -0.519408, -0.516371, -0.513329, -0.510283,
-0.507233, -0.504179, -0.501121, -0.498059, -0.494993, -0.491923,
-0.488849, -0.485771, -0.48269, -0.479605, -0.476517, -0.473425,
-0.47033, -0.467231, -0.464129, -0.461023, -0.457915, -0.454803,
-0.451689, -0.448571, -0.445451, -0.442327, -0.439201, -0.436072,
-0.43294, -0.429806, -0.426669, -0.42353, -0.420388, -0.417244,
-0.414098, -0.410949, -0.407799, -0.404646, -0.401491, -0.398334,
-0.395175, -0.392015, -0.388852, -0.385688, -0.382522, -0.379355,
-0.376186, -0.373015, -0.369843, -0.36667, -0.363496, -0.36032,
-0.357143, -0.353965, -0.350786, -0.347606, -0.344425, -0.341243,
-0.33806, -0.334877, -0.331693, -0.328509, -0.325323, -0.322138,
-0.318952, -0.315765, -0.312578, -0.309391, -0.306204, -0.303017,
-0.29983, -0.296642, -0.293455, -0.290268, -0.287081, -0.283894,
-0.280708, -0.277522, -0.274336, -0.271151, -0.267967, -0.264783,
-0.261599, -0.258417, -0.255235, -0.252054, -0.248874, -0.245695,
-0.242517, -0.23934, -0.236164, -0.23299, -0.229816, -0.226644,
-0.223474, -0.220304, -0.217137, -0.21397, -0.210806, -0.207643,
-0.204482, -0.201322, -0.198165, -0.195009, -0.191856, -0.188704,
-0.185554, -0.182407, -0.179261, -0.176118, -0.172977, -0.169839,
-0.166703, -0.163569, -0.160438, -0.15731, -0.154184, -0.151061,
-0.14794, -0.144822, -0.141708, -0.138596, -0.135487, -0.132381,
-0.129278, -0.126178, -0.123081, -0.119988, -0.116898, -0.113811,
-0.110727, -0.107647, -0.104571, -0.101498, -0.0984283, -0.0953626,
-0.0923005, -0.0892421, -0.0861876, -0.0831369, -0.0800901, -0.0770472,
-0.0740084, -0.0709736, -0.0679428, -0.0649163, -0.0618939, -0.0588758,
-0.055862, -0.0528525, -0.0498474, -0.0468467, -0.0438506, -0.040859,
-0.0378719, -0.0348895, -0.0319118, -0.0289388, -0.0259706, -0.0230073,
-0.0200487, -0.0170951, -0.0141465, -0.0112029, -0.00826433, -0.00533087,
-0.00240255, 0.000520572, 0.00343846, 0.00635107, 0.00925835, 0.0121603,
0.0150568, 0.0179478, 0.0208333, 0.0237133, 0.0265877, 0.0294565,
0.0323196, 0.035177, 0.0380286, 0.0408745, 0.0437145, 0.0465486,
0.0493768, 0.052199, 0.0550152, 0.0578254, 0.0606295, 0.0634274,
0.0662192, 0.0690048, 0.0717841, 0.0745572, 0.0773239, 0.0800843,
0.0828383, 0.0855858, 0.0883269, 0.0910615, 0.0937895, 0.0965109,
0.0992257, 0.101934, 0.104635, 0.10733, 0.110018, 0.112699,
0.115373, 0.118041, 0.120701, 0.123355, 0.126002, 0.128641,
0.131274, 0.133899, 0.136518, 0.139129, 0.141733, 0.14433,
0.14692, 0.149502, 0.152077, 0.154645, 0.157205, 0.159758,
0.162304, 0.164842, 0.167373, 0.169896, 0.172412, 0.17492,
0.17742, 0.179913, 0.182398, 0.184876, 0.187345, 0.189807,
0.192262, 0.194708, 0.197147, 0.199578, 0.202001, 0.204416,
0.206823, 0.209222, 0.211614, 0.213997, 0.216372, 0.218739,
0.221099, 0.22345, 0.225793, 0.228128, 0.230454, 0.232773,
0.235083, 0.237385, 0.239679, 0.241965, 0.244242, 0.246511,
0.248772, 0.251024, 0.253268, 0.255504, 0.257731, 0.25995,
0.26216, 0.264362, 0.266556, 0.268741, 0.270917, 0.273085,
0.275245, 0.277396, 0.279538, 0.281672, 0.283797, 0.285913,
0.288021, 0.290121, 0.292211, 0.294293, 0.296366, 0.298431,
0.300487, 0.302534, 0.304572, 0.306602, 0.308623, 0.310635,
0.312638, 0.314633, 0.316618, 0.318595, 0.320563, 0.322523,
0.324473, 0.326415, 0.328347, 0.330271, 0.332186, 0.334092,
0.335989, 0.337877, 0.339757, 0.341627, 0.343489, 0.345341,
0.347185, 0.34902, 0.350846, 0.352662, 0.35447, 0.356269,
0.358059, 0.35984, 0.361612, 0.363375, 0.365129, 0.366874,
0.36861, 0.370337, 0.372055, 0.373765, 0.375465, 0.377156,
0.378838, 0.380511, 0.382175, 0.38383, 0.385477, 0.387114,
0.388742, 0.390361, 0.391971, 0.393573, 0.395165, 0.396748,
0.398322, 0.399888, 0.401444, 0.402991, 0.40453, 0.406059,
0.40758, 0.409091, 0.410594, 0.412087, 0.413572, 0.415048,
0.416515, 0.417973, 0.419422, 0.420862, 0.422293, 0.423715,
0.425128, 0.426533, 0.427929, 0.429315, 0.430693, 0.432062,
0.433423, 0.434774, 0.436117, 0.43745, 0.438775, 0.440091,
0.441399, 0.442698, 0.443987, 0.445269, 0.446541, 0.447805,
0.44906, 0.450306, 0.451544, 0.452773, 0.453993, 0.455205,
0.456408, 0.457602, 0.458788, 0.459965, 0.461134, 0.462294,
0.463445, 0.464588, 0.465723, 0.466849, 0.467966, 0.469075,
0.470176, 0.471268, 0.472352, 0.473427, 0.474494, 0.475553,
0.476603, 0.477645, 0.478679, 0.479704, 0.480721, 0.48173,
0.482731, 0.483723, 0.484707, 0.485683, 0.486651, 0.487611,
0.488563, 0.489506, 0.490442, 0.491369, 0.492289, 0.4932,
0.494104, 0.494999, 0.495887, 0.496766, 0.497638, 0.498502,
0.499358, 0.500206, 0.501047, 0.501879, 0.502704, 0.503521,
0.504331, 0.505133, 0.505927, 0.506714, 0.507492, 0.508264,
0.509028, 0.509784, 0.510533, 0.511274, 0.512008, 0.512734,
0.513453, 0.514165, 0.51487, 0.515567, 0.516256, 0.516939,
0.517614, 0.518282, 0.518943, 0.519597, 0.520244, 0.520883,
0.521516, 0.522141, 0.52276, 0.523371, 0.523976, 0.524574,
0.525165, 0.525749, 0.526326, 0.526896, 0.52746, 0.528017,
0.528567, 0.52911, 0.529647, 0.530177, 0.530701, 0.531218,
0.531729, 0.532233, 0.532731, 0.533222, 0.533707, 0.534186,
0.534658, 0.535124, 0.535584, 0.536038, 0.536485, 0.536926,
0.537361, 0.53779, 0.538213, 0.53863, 0.539041, 0.539446,
0.539845, 0.540239, 0.540626, 0.541008, 0.541383, 0.541753,
0.542118, 0.542477, 0.54283, 0.543177, 0.543519, 0.543855,
0.544186, 0.544512, 0.544832, 0.545146, 0.545456, 0.54576,
0.546058, 0.546352, 0.54664, 0.546923, 0.547201, 0.547474,
0.547742, 0.548004, 0.548262, 0.548515, 0.548763, 0.549006,
0.549244, 0.549477, 0.549706, 0.54993, 0.550149, 0.550364,
0.550574, 0.550779, 0.55098, 0.551176, 0.551368, 0.551555,
0.551738, 0.551917, 0.552092, 0.552262, 0.552428, 0.552589,
0.552747, 0.5529, 0.55305, 0.553195, 0.553336, 0.553474,
0.553607, 0.553736, 0.553862, 0.553984, 0.554102, 0.554216,
0.554327, 0.554434, 0.554537, 0.554637, 0.554734, 0.554826,
0.554916, 0.555001, 0.555084, 0.555163, 0.555239, 0.555312,
0.555381, 0.555447, 0.55551, 0.55557, 0.555627, 0.555681,
0.555731, 0.555779, 0.555824, 0.555866, 0.555906, 0.555942,
0.555976, 0.556007, 0.556035, 0.556061, 0.556084, 0.556104,
0.556122, 0.556138, 0.556151, 0.556161, 0.55617, 0.556176,
0.556179, 0.556181, 0.55618, 0.556177, 0.556172, 0.556165,
0.556156, 0.556144, 0.556131, 0.556116, 0.556099, 0.55608,
0.556059, 0.556037, 0.556012, 0.555986, 0.555959, 0.55593,
0.555899, 0.555866, 0.555832, 0.555797, 0.55576, 0.555722,
0.555682, 0.555642, 0.555599, 0.555556, 0.555511, 0.555465,
0.555419, 0.555371, 0.555321, 0.555271, 0.55522, 0.555168,
0.555115, 0.555062, 0.555007, 0.554952, 0.554895, 0.554839,
0.554781, 0.554723, 0.554664, 0.554605, 0.554545, 0.554484,
0.554423, 0.554362, 0.5543, 0.554238, 0.554176, 0.554113,
0.55405, 0.553987, 0.553924, 0.553861, 0.553797, 0.553734,
0.55367, 0.553607, 0.553543, 0.55348, 0.553416, 0.553353,
0.55329, 0.553227, 0.553165, 0.553102, 0.55304, 0.552979,
0.552918, 0.552857, 0.552797, 0.552737, 0.552678, 0.552619,
0.552561, 0.552503, 0.552446, 0.55239, 0.552335, 0.55228,
0.552226, 0.552173, 0.552121, 0.552069, 0.552019, 0.55197,
0.551921, 0.551874, 0.551827, 0.551782, 0.551738, 0.551695,
0.551653, 0.551612, 0.551573, 0.551534, 0.551498, 0.551462,
0.551428, 0.551395, 0.551364, 0.551334, 0.551305, 0.551278,
0.551253, 0.551229, 0.551207, 0.551186, 0.551167, 0.55115,
0.551134, 0.551121, 0.551109, 0.551098, 0.55109, 0.551083,
0.551079, 0.551076, 0.551075, 0.551076, 0.551079, 0.551084,
0.551091, 0.551101, 0.551112, 0.551125, 0.551141, 0.551159,
0.551179, 0.551201, 0.551225, 0.551252, 0.551281, 0.551312,
0.551346, 0.551382, 0.551421, 0.551462, 0.551505, 0.551551,
0.551599, 0.55165, 0.551703, 0.551759, 0.551818, 0.551879,
0.551943, 0.552009, 0.552078, 0.55215, 0.552225, 0.552302,
0.552382, 0.552465, 0.552551, 0.552639, 0.55273, 0.552825,
0.552922, 0.553022, 0.553125, 0.55323, 0.553339, 0.553451,
0.553566, 0.553684, 0.553805, 0.553929, 0.554056, 0.554186,
0.554319, 0.554456, 0.554595, 0.554738, 0.554884, 0.555033,
0.555186, 0.555341, 0.5555, 0.555663, 0.555828, 0.555997,
0.556169, 0.556344, 0.556523, 0.556705, 0.556891, 0.55708,
0.557272, 0.557468, 0.557667, 0.55787, 0.558076, 0.558286,
0.558499, 0.558715, 0.558936, 0.559159, 0.559387, 0.559617,
0.559852, 0.56009, 0.560331, 0.560577, 0.560825, 0.561078,
0.561334, 0.561594, 0.561857, 0.562124, 0.562395, 0.562669,
0.562948, 0.563229, 0.563515, 0.563804, 0.564097, 0.564394,
0.564695, 0.564999, 0.565307, 0.565619, 0.565935, 0.566254,
0.566578, 0.566905, 0.567236, 0.567571, 0.567909, 0.568252,
0.568598, 0.568948, 0.569302, 0.56966, 0.570022, 0.570387,
0.570757, 0.57113, 0.571508, 0.571889, 0.572274, 0.572663,
0.573056, 0.573452, 0.573853, 0.574258, 0.574666, 0.575079,
0.575495, 0.575915, 0.57634, 0.576768, 0.5772, 0.577636,
0.578076, 0.57852, 0.578967, 0.579419, 0.579875, 0.580334,
0.580798, 0.581266, 0.581737, 0.582212, 0.582692, 0.583175,
0.583662, 0.584153, 0.584648, 0.585147, 0.58565, 0.586157,
0.586668, 0.587182, 0.587701, 0.588224, 0.58875, 0.58928,
0.589815, 0.590353, 0.590895, 0.591441, 0.591991, 0.592544,
0.593102, 0.593664, 0.594229, 0.594798, 0.595371, 0.595948,
0.596529, 0.597114, 0.597702, 0.598295, 0.598891, 0.599491,
0.600095, 0.600702, 0.601314, 0.601929, 0.602548, 0.603171,
0.603797, 0.604427, 0.605062, 0.605699, 0.606341, 0.606986,
0.607635, 0.608288, 0.608944, 0.609605, 0.610268, 0.610936,
0.611607, 0.612282, 0.61296, 0.613642, 0.614328, 0.615017,
0.61571, 0.616407, 0.617107, 0.617811, 0.618518, 0.619229,
0.619943, 0.620661, 0.621382, 0.622107, 0.622835, 0.623567,
0.624302, 0.625041, 0.625783, 0.626529, 0.627278, 0.62803,
0.628786, 0.629545, 0.630307, 0.631073, 0.631842, 0.632615,
0.63339, 0.634169, 0.634952, 0.635737, 0.636526, 0.637318,
0.638113, 0.638911, 0.639713, 0.640518, 0.641325, 0.642136,
0.64295, 0.643768, 0.644588, 0.645411, 0.646237, 0.647067,
0.647899, 0.648734, 0.649573, 0.650414, 0.651258, 0.652105,
0.652955, 0.653808, 0.654664, 0.655523, 0.656384, 0.657248,
0.658115, 0.658985, 0.659858, 0.660733, 0.661611, 0.662492,
0.663375, 0.664261, 0.66515, 0.666041, 0.666935, 0.667832,
0.668731, 0.669632, 0.670536, 0.671443, 0.672352, 0.673263,
0.674177, 0.675094, 0.676012, 0.676934, 0.677857, 0.678783,
0.679711, 0.680641, 0.681574, 0.682509, 0.683446, 0.684385,
0.685327, 0.686271, 0.687216, 0.688164, 0.689114, 0.690066,
0.69102, 0.691977, 0.692935, 0.693895, 0.694857, 0.695821,
0.696787, 0.697755, 0.698724, 0.699696, 0.700669, 0.701644,
0.702621, 0.7036, 0.70458, 0.705562, 0.706546, 0.707531,
0.708518, 0.709507, 0.710497, 0.711489, 0.712482, 0.713477,
0.714473, 0.715471, 0.71647, 0.717471, 0.718473, 0.719476,
0.720481, 0.721487, 0.722494, 0.723503, 0.724512, 0.725523,
0.726536, 0.727549, 0.728563, 0.729579, 0.730596, 0.731614,
0.732632, 0.733652, 0.734673, 0.735695, 0.736718, 0.737741,
0.738766, 0.739791, 0.740818, 0.741845, 0.742873, 0.743901,
0.744931, 0.745961, 0.746991, 0.748023, 0.749055, 0.750088,
0.751121, 0.752155, 0.753189, 0.754224, 0.75526, 0.756295,
0.757332, 0.758368, 0.759405, 0.760443, 0.761481, 0.762519,
0.763557, 0.764596, 0.765634, 0.766674, 0.767713, 0.768752,
0.769792, 0.770831, 0.771871, 0.772911, 0.77395, 0.77499,
0.77603, 0.777069, 0.778109, 0.779149, 0.780188, 0.781227,
0.782266, 0.783305, 0.784344, 0.785382, 0.78642, 0.787458,
0.788495, 0.789532, 0.790569, 0.791605, 0.792641, 0.793676,
0.794711, 0.795746, 0.796779, 0.797813, 0.798845, 0.799877,
0.800909, 0.80194, 0.80297, 0.803999, 0.805028, 0.806056,
0.807083, 0.808109, 0.809135, 0.810159, 0.811183, 0.812206,
0.813228, 0.814248, 0.815268, 0.816287, 0.817305, 0.818322,
0.819338, 0.820352, 0.821366, 0.822378, 0.82339, 0.8244,
0.825408, 0.826416, 0.827422, 0.828427, 0.829431, 0.830433,
0.831434, 0.832433, 0.833432, 0.834428, 0.835424, 0.836417,
0.83741, 0.8384, 0.839389, 0.840377, 0.841363, 0.842347,
0.84333, 0.844311, 0.84529, 0.846268, 0.847244, 0.848218,
0.84919, 0.850161, 0.85113, 0.852097, 0.853062, 0.854025,
0.854986, 0.855945, 0.856903, 0.857858, 0.858812, 0.859763,
0.860712, 0.861659, 0.862605, 0.863548, 0.864489, 0.865428,
0.866364, 0.867299, 0.868231, 0.869161, 0.870089, 0.871014,
0.871937, 0.872858, 0.873777, 0.874693, 0.875607, 0.876518,
0.877428, 0.878334, 0.879238, 0.88014, 0.881039, 0.881936,
0.88283, 0.883722, 0.884611, 0.885498, 0.886382, 0.887263,
0.888142, 0.889018, 0.889892, 0.890762, 0.89163, 0.892496,
0.893358, 0.894218, 0.895075, 0.895929, 0.896781, 0.89763,
0.898475, 0.899318, 0.900158, 0.900996, 0.90183, 0.902661,
0.90349, 0.904315, 0.905138, 0.905957, 0.906774, 0.907587,
0.908398, 0.909205, 0.910009, 0.910811, 0.911609, 0.912404,
0.913196, 0.913985, 0.914771, 0.915553, 0.916333, 0.917109,
0.917882, 0.918652, 0.919418, 0.920181, 0.920941, 0.921698,
0.922452, 0.923202, 0.923949, 0.924692, 0.925433, 0.926169,
0.926903, 0.927633, 0.92836, 0.929083, 0.929803, 0.93052,
0.931233, 0.931943, 0.932649, 0.933352, 0.934051, 0.934747,
0.93544, 0.936128, 0.936814, 0.937496, 0.938174, 0.938849,
0.93952, 0.940188, 0.940852, 0.941512, 0.942169, 0.942823,
0.943473, 0.944119, 0.944761, 0.9454, 0.946035, 0.946667,
0.947295, 0.947919, 0.94854, 0.949157, 0.94977, 0.95038,
0.950986, 0.951588, 0.952187, 0.952782, 0.953373, 0.95396,
0.954544, 0.955124, 0.9557, 0.956272, 0.956841, 0.957406,
0.957967, 0.958525, 0.959078, 0.959628, 0.960174, 0.960717,
0.961255, 0.96179, 0.962321, 0.962848, 0.963371, 0.963891,
0.964406, 0.964918, 0.965426, 0.96593, 0.966431, 0.966927,
0.96742, 0.967909, 0.968394, 0.968876, 0.969353, 0.969827,
0.970296, 0.970762, 0.971225, 0.971683, 0.972137, 0.972588,
0.973035, 0.973477, 0.973916, 0.974352, 0.974783, 0.975211,
0.975634, 0.976054, 0.97647, 0.976882, 0.977291, 0.977695,
0.978096, 0.978493, 0.978886, 0.979275, 0.97966, 0.980042,
0.980419, 0.980793, 0.981163, 0.981529, 0.981892, 0.98225,
0.982605, 0.982956, 0.983303, 0.983647, 0.983986, 0.984322,
0.984654, 0.984982, 0.985307, 0.985627, 0.985944, 0.986258,
0.986567, 0.986873, 0.987174, 0.987472, 0.987767, 0.988058,
0.988344, 0.988628, 0.988907, 0.989183, 0.989455, 0.989723,
0.989988, 0.990249, 0.990506, 0.99076, 0.99101, 0.991256,
0.991499, 0.991738, 0.991973, 0.992205, 0.992433, 0.992657,
0.992878, 0.993096, 0.993309, 0.99352, 0.993726, 0.993929,
0.994129, 0.994324, 0.994517, 0.994706, 0.994891, 0.995073,
0.995251, 0.995426, 0.995597, 0.995765, 0.995929, 0.99609,
0.996248, 0.996402, 0.996553, 0.9967, 0.996844, 0.996984,
0.997121, 0.997255, 0.997386, 0.997513, 0.997636, 0.997757,
0.997874, 0.997988, 0.998098, 0.998205, 0.998309, 0.99841,
0.998508, 0.998602, 0.998693, 0.998781, 0.998866, 0.998947,
0.999026, 0.999101, 0.999173, 0.999242, 0.999308, 0.999371,
0.99943, 0.999487, 0.99954, 0.999591, 0.999639, 0.999683,
0.999725, 0.999763, 0.999799, 0.999831, 0.999861, 0.999888,
0.999912, 0.999933, 0.999951, 0.999966, 0.999979, 0.999988,
0.999995, 0.999999, 1, 0.999998, 0.999994, 0.999987,
0.999977, 0.999965, 0.999949, 0.999932, 0.999911, 0.999888,
0.999862, 0.999834, 0.999803, 0.999769, 0.999733, 0.999694,
0.999653, 0.999609, 0.999563, 0.999514, 0.999463, 0.99941,
0.999354, 0.999295, 0.999235, 0.999171, 0.999106, 0.999038,
0.998968, 0.998895, 0.998821, 0.998744, 0.998664, 0.998583,
0.998499, 0.998413, 0.998325, 0.998235, 0.998143, 0.998048,
0.997951, 0.997853, 0.997752, 0.997649, 0.997544, 0.997438,
0.997329, 0.997218, 0.997105, 0.99699, 0.996874, 0.996755,
0.996635, 0.996513, 0.996389, 0.996263, 0.996135, 0.996005,
0.995874, 0.995741, 0.995606, 0.99547, 0.995332, 0.995192,
0.99505, 0.994907, 0.994763, 0.994616, 0.994468, 0.994319,
0.994168, 0.994015, 0.993861, 0.993706, 0.993549, 0.993391,
0.993231, 0.99307, 0.992907, 0.992743, 0.992578, 0.992411,
0.992244, 0.992074, 0.991904, 0.991732, 0.991559, 0.991385,
0.99121, 0.991034, 0.990856, 0.990677, 0.990498, 0.990317,
0.990135, 0.989952, 0.989768, 0.989583, 0.989397, 0.98921,
0.989022, 0.988833, 0.988643, 0.988453, 0.988261, 0.988069,
0.987876, 0.987682, 0.987487, 0.987291, 0.987095, 0.986898,
0.9867, 0.986502, 0.986303, 0.986103, 0.985903, 0.985702,
0.9855, 0.985298, 0.985095, 0.984892, 0.984688, 0.984484,
0.984279, 0.984074, 0.983869, 0.983663, 0.983456, 0.983249,
0.983042, 0.982835, 0.982627, 0.982419, 0.98221, 0.982002,
0.981793, 0.981584, 0.981374, 0.981165, 0.980955, 0.980745,
0.980535, 0.980325, 0.980115, 0.979904, 0.979694, 0.979484,
0.979273, 0.979063, 0.978852, 0.978642, 0.978432, 0.978221,
0.978011, 0.977801, 0.977591, 0.977381, 0.977172, 0.976962,
0.976753, 0.976544, 0.976335, 0.976127, 0.975918, 0.97571,
0.975503, 0.975295, 0.975088, 0.974882, 0.974675, 0.974469,
0.974264, 0.974059, 0.973854, 0.97365, 0.973446, 0.973243,
0.97304, 0.972838, 0.972636, 0.972435, 0.972235, 0.972035,
0.971835, 0.971637, 0.971438, 0.971241, 0.971044, 0.970848,
0.970653, 0.970458, 0.970264, 0.970071, 0.969879, 0.969687,
0.969496, 0.969306, 0.969117, 0.968928, 0.968741, 0.968554,
0.968368, 0.968183, 0.967999, 0.967816, 0.967634, 0.967453,
0.967273, 0.967094, 0.966916, 0.966738, 0.966562, 0.966387,
0.966213, 0.96604, 0.965868, 0.965697, 0.965527, 0.965359,
0.965191, 0.965025, 0.96486, 0.964696, 0.964533, 0.964371,
0.964211, 0.964052, 0.963894, 0.963737, 0.963582, 0.963427,
0.963274, 0.963123, 0.962972, 0.962823, 0.962676, 0.962529,
0.962384, 0.962241, 0.962098, 0.961957, 0.961818, 0.96168,
0.961543, 0.961408, 0.961274, 0.961142, 0.961011, 0.960881,
0.960753, 0.960627, 0.960501, 0.960378, 0.960256, 0.960135,
0.960016, 0.959899, 0.959783, 0.959669, 0.959556, 0.959445,
0.959335, 0.959227, 0.95912, 0.959016, 0.958912, 0.958811,
0.958711, 0.958612, 0.958516, 0.95842, 0.958327, 0.958235,
0.958145, 0.958057, 0.95797, 0.957885, 0.957801, 0.95772,
0.95764, 0.957562, 0.957485, 0.95741, 0.957337, 0.957266,
0.957196, 0.957128, 0.957062, 0.956998, 0.956935, 0.956874,
0.956815, 0.956758, 0.956703, 0.956649, 0.956597, 0.956547,
0.956498, 0.956452, 0.956407, 0.956364, 0.956323, 0.956283,
0.956246, 0.95621, 0.956176, 0.956144, 0.956114, 0.956085,
0.956059, 0.956034, 0.956011, 0.95599, 0.955971, 0.955953,
0.955937, 0.955924, 0.955912, 0.955902, 0.955893, 0.955887,
0.955882, 0.95588
};
static const float WAVE_LOGARITHMIC_126[DEFAULT_WAVELEN] = {
-1, -0.999997, -0.999989, -0.999974, -0.999954, -0.999929,
-0.999898, -0.99986, -0.999818, -0.999769, -0.999715, -0.999656,
-0.99959, -0.999519, -0.999442, -0.999359, -0.999271, -0.999177,
-0.999078, -0.998972, -0.998861, -0.998745, -0.998622, -0.998494,
-0.998361, -0.998221, -0.998076, -0.997925, -0.997769, -0.997607,
-0.997439, -0.997265, -0.997086, -0.996901, -0.996711, -0.996515,
-0.996313, -0.996105, -0.995892, -0.995673, -0.995449, -0.995218,
-0.994983, -0.994741, -0.994494, -0.994241, -0.993983, -0.993718,
-0.993449, -0.993173, -0.992892, -0.992605, -0.992313, -0.992015,
-0.991711, -0.991402, -0.991087, -0.990766, -0.99044, -0.990108,
-0.989771, -0.989428, -0.989079, -0.988725, -0.988365, -0.987999,
-0.987628, -0.987251, -0.986869, -0.98648, -0.986087, -0.985688,
-0.985283, -0.984872, -0.984456, -0.984035, -0.983607, -0.983175,
-0.982736, -0.982292, -0.981843, -0.981388, -0.980927, -0.980461,
-0.979989, -0.979511, -0.979029, -0.97854, -0.978046, -0.977546,
-0.977041, -0.976531, -0.976014, -0.975493, -0.974965, -0.974432,
-0.973894, -0.97335, -0.972801, -0.972246, -0.971686, -0.97112,
-0.970548, -0.969971, -0.969389, -0.968801, -0.968208, -0.967609,
-0.967004, -0.966395, -0.965779, -0.965158, -0.964532, -0.963901,
-0.963263, -0.962621, -0.961973, -0.961319, -0.96066, -0.959996,
-0.959326, -0.958651, -0.95797, -0.957284, -0.956593, -0.955896,
-0.955194, -0.954486, -0.953773, -0.953054, -0.952331, -0.951601,
-0.950867, -0.950127, -0.949381, -0.948631, -0.947875, -0.947113,
-0.946346, -0.945574, -0.944797, -0.944014, -0.943226, -0.942433,
-0.941634, -0.94083, -0.940021, -0.939206, -0.938386, -0.937561,
-0.936731, -0.935895, -0.935054, -0.934207, -0.933356, -0.932499,
-0.931637, -0.93077, -0.929897, -0.929019, -0.928136, -0.927248,
-0.926355, -0.925456, -0.924552, -0.923643, -0.922729, -0.92181,
-0.920885, -0.919955, -0.91902, -0.91808, -0.917135, -0.916185,
-0.915229, -0.914268, -0.913303, -0.912332, -0.911356, -0.910375,
-0.909388, -0.908397, -0.907401, -0.906399, -0.905392, -0.904381,
-0.903364, -0.902342, -0.901315, -0.900284, -0.899247, -0.898205,
-0.897158, -0.896106, -0.895049, -0.893987, -0.89292, -0.891848,
-0.890771, -0.889689, -0.888602, -0.88751, -0.886413, -0.885311,
-0.884205, -0.883093, -0.881976, -0.880855, -0.879729, -0.878597,
-0.877461, -0.87632, -0.875174, -0.874023, -0.872867, -0.871707,
-0.870542, -0.869371, -0.868196, -0.867016, -0.865832, -0.864642,
-0.863448, -0.862248, -0.861045, -0.859836, -0.858622, -0.857404,
-0.856181, -0.854953, -0.853721, -0.852484, -0.851242, -0.849995,
-0.848744, -0.847487, -0.846227, -0.844961, -0.843691, -0.842416,
-0.841137, -0.839853, -0.838564, -0.83727, -0.835972, -0.83467,
-0.833363, -0.832051, -0.830734, -0.829413, -0.828088, -0.826757,
-0.825423, -0.824083, -0.82274, -0.821391, -0.820038, -0.818681,
-0.817319, -0.815953, -0.814582, -0.813207, -0.811827, -0.810442,
-0.809054, -0.807661, -0.806263, -0.804861, -0.803454, -0.802044,
-0.800628, -0.799209, -0.797785, -0.796356, -0.794924, -0.793486,
-0.792045, -0.790599, -0.789149, -0.787695, -0.786236, -0.784773,
-0.783306, -0.781834, -0.780358, -0.778878, -0.777394, -0.775905,
-0.774412, -0.772915, -0.771414, -0.769909, -0.768399, -0.766885,
-0.765367, -0.763845, -0.762319, -0.760788, -0.759254, -0.757715,
-0.756172, -0.754625, -0.753075, -0.751519, -0.74996, -0.748397,
-0.74683, -0.745259, -0.743683, -0.742104, -0.740521, -0.738933,
-0.737342, -0.735746, -0.734147, -0.732544, -0.730937, -0.729326,
-0.72771, -0.726091, -0.724469, -0.722842, -0.721211, -0.719577,
-0.717938, -0.716296, -0.71465, -0.713, -0.711346, -0.709688,
-0.708027, -0.706362, -0.704693, -0.70302, -0.701343, -0.699663,
-0.697979, -0.696291, -0.6946, -0.692905, -0.691206, -0.689504,
-0.687797, -0.686087, -0.684374, -0.682657, -0.680936, -0.679212,
-0.677484, -0.675752, -0.674017, -0.672278, -0.670536, -0.66879,
-0.66704, -0.665287, -0.663531, -0.661771, -0.660007, -0.65824,
-0.65647, -0.654696, -0.652918, -0.651138, -0.649353, -0.647566,
-0.645775, -0.64398, -0.642182, -0.640381, -0.638577, -0.636769,
-0.634957, -0.633143, -0.631325, -0.629504, -0.627679, -0.625851,
-0.62402, -0.622186, -0.620348, -0.618507, -0.616663, -0.614816,
-0.612966, -0.611112, -0.609255, -0.607395, -0.605532, -0.603666,
-0.601796, -0.599924, -0.598048, -0.59617, -0.594288, -0.592403,
-0.590515, -0.588624, -0.58673, -0.584833, -0.582933, -0.58103,
-0.579124, -0.577215, -0.575303, -0.573388, -0.57147, -0.569549,
-0.567625, -0.565699, -0.563769, -0.561837, -0.559902, -0.557964,
-0.556023, -0.554079, -0.552132, -0.550183, -0.548231, -0.546276,
-0.544318, -0.542357, -0.540394, -0.538428, -0.536459, -0.534488,
-0.532514, -0.530537, -0.528558, -0.526575, -0.524591, -0.522603,
-0.520613, -0.51862, -0.516625, -0.514627, -0.512627, -0.510624,
-0.508618, -0.50661, -0.5046, -0.502587, -0.500571, -0.498553,
-0.496533, -0.49451, -0.492484, -0.490456, -0.488426, -0.486393,
-0.484358, -0.482321, -0.480281, -0.478238, -0.476194, -0.474147,
-0.472098, -0.470046, -0.467992, -0.465936, -0.463878, -0.461817,
-0.459754, -0.457689, -0.455621, -0.453552, -0.45148, -0.449406,
-0.44733, -0.445252, -0.443171, -0.441089, -0.439004, -0.436917,
-0.434828, -0.432737, -0.430644, -0.428549, -0.426452, -0.424353,
-0.422252, -0.420149, -0.418043, -0.415936, -0.413827, -0.411716,
-0.409603, -0.407488, -0.405371, -0.403252, -0.401132, -0.399009,
-0.396885, -0.394759, -0.392631, -0.390501, -0.388369, -0.386235,
-0.3841, -0.381963, -0.379824, -0.377684, -0.375541, -0.373397,
-0.371252, -0.369104, -0.366955, -0.364804, -0.362652, -0.360498,
-0.358342, -0.356185, -0.354026, -0.351865, -0.349703, -0.347539,
-0.345374, -0.343208, -0.341039, -0.338869, -0.336698, -0.334525,
-0.332351, -0.330175, -0.327998, -0.32582, -0.32364, -0.321458,
-0.319275, -0.317091, -0.314906, -0.312719, -0.310531, -0.308341,
-0.30615, -0.303958, -0.301764, -0.29957, -0.297373, -0.295176,
-0.292978, -0.290778, -0.288577, -0.286375, -0.284171, -0.281967,
-0.279761, -0.277554, -0.275346, -0.273137, -0.270927, -0.268716,
-0.266503, -0.26429, -0.262075, -0.25986, -0.257643, -0.255426,
-0.253207, -0.250988, -0.248767, -0.246546, -0.244323, -0.2421,
-0.239875, -0.23765, -0.235424, -0.233197, -0.230969, -0.22874,
-0.226511, -0.22428, -0.222049, -0.219817, -0.217584, -0.21535,
-0.213116, -0.210881, -0.208645, -0.206408, -0.204171, -0.201933,
-0.199694, -0.197455, -0.195215, -0.192974, -0.190732, -0.188491,
-0.186248, -0.184005, -0.181761, -0.179517, -0.177272, -0.175026,
-0.17278, -0.170534, -0.168287, -0.166039, -0.163791, -0.161543,
-0.159294, -0.157044, -0.154794, -0.152544, -0.150294, -0.148043,
-0.145791, -0.143539, -0.141287, -0.139035, -0.136782, -0.134529,
-0.132275, -0.130022, -0.127768, -0.125514, -0.123259, -0.121004,
-0.118749, -0.116494, -0.114239, -0.111983, -0.109728, -0.107472,
-0.105216, -0.10296, -0.100703, -0.098447, -0.0961905, -0.0939339,
-0.0916773, -0.0894206, -0.0871638, -0.0849071, -0.0826503, -0.0803935,
-0.0781367, -0.0758799, -0.0736232, -0.0713665, -0.0691098, -0.0668532,
-0.0645967, -0.0623403, -0.060084, -0.0578279, -0.0555718, -0.0533159,
-0.0510602, -0.0488046, -0.0465492, -0.044294, -0.042039, -0.0397842,
-0.0375297, -0.0352754, -0.0330213, -0.0307676, -0.0285141, -0.0262609,
-0.024008, -0.0217554, -0.0195032, -0.0172513, -0.0149998, -0.0127486,
-0.0104978, -0.00824743, -0.00599744, -0.00374787, -0.00149874, 0.000749957,
0.0029982, 0.00524597, 0.00749326, 0.00974006, 0.0119864, 0.0142321,
0.0164774, 0.0187221, 0.0209663, 0.0232098, 0.0254529, 0.0276953,
0.0299371, 0.0321783, 0.0344189, 0.0366588, 0.0388981, 0.0411368,
0.0433747, 0.045612, 0.0478486, 0.0500844, 0.0523196, 0.054554,
0.0567876, 0.0590205, 0.0612527, 0.063484, 0.0657146, 0.0679443,
0.0701732, 0.0724013, 0.0746286, 0.076855, 0.0790805, 0.0813052,
0.083529, 0.0857519, 0.0879738, 0.0901948, 0.0924149, 0.0946341,
0.0968523, 0.0990695, 0.101286, 0.103501, 0.105715, 0.107928,
0.110141, 0.112352, 0.114562, 0.116771, 0.118979, 0.121186,
0.123392, 0.125596, 0.1278, 0.130002, 0.132203, 0.134404,
0.136602, 0.1388, 0.140997, 0.143192, 0.145386, 0.147579,
0.149771, 0.151961, 0.154151, 0.156339, 0.158525, 0.160711,
0.162895, 0.165077, 0.167259, 0.169439, 0.171618, 0.173795,
0.175971, 0.178146, 0.180319, 0.182491, 0.184661, 0.18683,
0.188998, 0.191164, 0.193329, 0.195492, 0.197653, 0.199814,
0.201972, 0.20413, 0.206285, 0.20844, 0.210592, 0.212743,
0.214893, 0.217041, 0.219187, 0.221332, 0.223475, 0.225616,
0.227756, 0.229895, 0.232031, 0.234166, 0.236299, 0.238431,
0.240561, 0.242689, 0.244816, 0.24694, 0.249063, 0.251185,
0.253304, 0.255422, 0.257538, 0.259652, 0.261765, 0.263875,
0.265984, 0.268091, 0.270196, 0.2723, 0.274401, 0.276501,
0.278598, 0.280694, 0.282788, 0.28488, 0.28697, 0.289058,
0.291145, 0.293229, 0.295311, 0.297392, 0.29947, 0.301546,
0.303621, 0.305693, 0.307764, 0.309832, 0.311898, 0.313963,
0.316025, 0.318085, 0.320143, 0.322199, 0.324253, 0.326305,
0.328355, 0.330403, 0.332448, 0.334492, 0.336533, 0.338572,
0.340609, 0.342643, 0.344676, 0.346706, 0.348735, 0.35076,
0.352784, 0.354806, 0.356825, 0.358842, 0.360857, 0.362869,
0.364879, 0.366887, 0.368893, 0.370896, 0.372897, 0.374896,
0.376892, 0.378886, 0.380878, 0.382867, 0.384854, 0.386839,
0.388821, 0.390801, 0.392778, 0.394753, 0.396726, 0.398696,
0.400664, 0.402629, 0.404592, 0.406552, 0.40851, 0.410466,
0.412419, 0.414369, 0.416317, 0.418263, 0.420206, 0.422146,
0.424084, 0.426019, 0.427952, 0.429883, 0.43181, 0.433735,
0.435658, 0.437578, 0.439495, 0.44141, 0.443322, 0.445232,
0.447138, 0.449043, 0.450944, 0.452843, 0.454739, 0.456633,
0.458524, 0.460412, 0.462298, 0.464181, 0.466061, 0.467938,
0.469813, 0.471685, 0.473554, 0.475421, 0.477285, 0.479146,
0.481004, 0.482859, 0.484712, 0.486562, 0.488409, 0.490253,
0.492095, 0.493933, 0.495769, 0.497602, 0.499432, 0.50126,
0.503084, 0.504906, 0.506725, 0.508541, 0.510354, 0.512164,
0.513971, 0.515775, 0.517577, 0.519375, 0.521171, 0.522963,
0.524753, 0.52654, 0.528324, 0.530105, 0.531883, 0.533657,
0.535429, 0.537198, 0.538964, 0.540728, 0.542488, 0.544245,
0.545999, 0.54775, 0.549498, 0.551243, 0.552984, 0.554723,
0.556459, 0.558192, 0.559922, 0.561648, 0.563372, 0.565092,
0.56681, 0.568524, 0.570235, 0.571943, 0.573648, 0.57535,
0.577049, 0.578745, 0.580437, 0.582127, 0.583813, 0.585496,
0.587176, 0.588853, 0.590526, 0.592197, 0.593864, 0.595528,
0.597189, 0.598847, 0.600501, 0.602153, 0.603801, 0.605446,
0.607087, 0.608726, 0.610361, 0.611993, 0.613622, 0.615247,
0.61687, 0.618489, 0.620104, 0.621717, 0.623326, 0.624932,
0.626535, 0.628134, 0.62973, 0.631323, 0.632913, 0.634499,
0.636082, 0.637661, 0.639238, 0.640811, 0.64238, 0.643947,
0.64551, 0.64707, 0.648626, 0.650179, 0.651729, 0.653275,
0.654818, 0.656357, 0.657894, 0.659426, 0.660956, 0.662482,
0.664005, 0.665524, 0.66704, 0.668553, 0.670062, 0.671567,
0.67307, 0.674569, 0.676064, 0.677556, 0.679045, 0.68053,
0.682012, 0.683491, 0.684966, 0.686437, 0.687905, 0.68937,
0.690831, 0.692289, 0.693743, 0.695194, 0.696641, 0.698085,
0.699526, 0.700963, 0.702396, 0.703826, 0.705253, 0.706676,
0.708095, 0.709511, 0.710924, 0.712333, 0.713738, 0.715141,
0.716539, 0.717934, 0.719326, 0.720714, 0.722098, 0.723479,
0.724857, 0.726231, 0.727601, 0.728968, 0.730332, 0.731691,
0.733048, 0.734401, 0.73575, 0.737095, 0.738438, 0.739776,
0.741111, 0.742443, 0.743771, 0.745095, 0.746416, 0.747733,
0.749047, 0.750357, 0.751664, 0.752967, 0.754266, 0.755562,
0.756854, 0.758143, 0.759428, 0.760709, 0.761987, 0.763262,
0.764533, 0.7658, 0.767063, 0.768323, 0.76958, 0.770833,
0.772082, 0.773328, 0.77457, 0.775808, 0.777043, 0.778274,
0.779502, 0.780726, 0.781946, 0.783163, 0.784376, 0.785586,
0.786792, 0.787994, 0.789193, 0.790388, 0.79158, 0.792768,
0.793952, 0.795133, 0.79631, 0.797483, 0.798653, 0.799819,
0.800982, 0.802141, 0.803296, 0.804448, 0.805596, 0.806741,
0.807882, 0.809019, 0.810152, 0.811282, 0.812409, 0.813532,
0.814651, 0.815766, 0.816878, 0.817986, 0.819091, 0.820192,
0.821289, 0.822383, 0.823473, 0.824559, 0.825642, 0.826722,
0.827797, 0.828869, 0.829937, 0.831002, 0.832063, 0.833121,
0.834174, 0.835225, 0.836271, 0.837314, 0.838353, 0.839389,
0.840421, 0.841449, 0.842474, 0.843495, 0.844513, 0.845527,
0.846537, 0.847544, 0.848547, 0.849546, 0.850542, 0.851534,
0.852523, 0.853508, 0.854489, 0.855467, 0.856441, 0.857412,
0.858379, 0.859342, 0.860302, 0.861258, 0.86221, 0.863159,
0.864104, 0.865046, 0.865984, 0.866918, 0.867849, 0.868777,
0.8697, 0.87062, 0.871537, 0.87245, 0.873359, 0.874264,
0.875167, 0.876065, 0.87696, 0.877851, 0.878739, 0.879623,
0.880504, 0.881381, 0.882254, 0.883124, 0.88399, 0.884853,
0.885712, 0.886568, 0.88742, 0.888268, 0.889113, 0.889954,
0.890792, 0.891626, 0.892457, 0.893284, 0.894108, 0.894928,
0.895744, 0.896557, 0.897367, 0.898172, 0.898975, 0.899774,
0.900569, 0.901361, 0.902149, 0.902933, 0.903715, 0.904492,
0.905266, 0.906037, 0.906804, 0.907568, 0.908328, 0.909084,
0.909838, 0.910587, 0.911333, 0.912076, 0.912815, 0.913551,
0.914283, 0.915012, 0.915737, 0.916459, 0.917177, 0.917892,
0.918603, 0.919311, 0.920015, 0.920716, 0.921414, 0.922108,
0.922798, 0.923486, 0.924169, 0.92485, 0.925527, 0.9262,
0.92687, 0.927537, 0.9282, 0.92886, 0.929516, 0.930169,
0.930819, 0.931465, 0.932108, 0.932747, 0.933383, 0.934016,
0.934645, 0.935271, 0.935893, 0.936512, 0.937128, 0.93774,
0.938349, 0.938955, 0.939557, 0.940156, 0.940752, 0.941344,
0.941933, 0.942519, 0.943101, 0.94368, 0.944256, 0.944828,
0.945397, 0.945963, 0.946525, 0.947084, 0.94764, 0.948193,
0.948742, 0.949288, 0.949831, 0.95037, 0.950906, 0.951439,
0.951969, 0.952495, 0.953018, 0.953538, 0.954055, 0.954568,
0.955079, 0.955586, 0.956089, 0.95659, 0.957087, 0.957581,
0.958072, 0.95856, 0.959045, 0.959526, 0.960004, 0.960479,
0.960951, 0.96142, 0.961885, 0.962347, 0.962807, 0.963263,
0.963716, 0.964165, 0.964612, 0.965055, 0.965496, 0.965933,
0.966367, 0.966798, 0.967226, 0.967651, 0.968073, 0.968492,
0.968907, 0.96932, 0.969729, 0.970135, 0.970539, 0.970939,
0.971336, 0.97173, 0.972122, 0.97251, 0.972895, 0.973277,
0.973656, 0.974032, 0.974405, 0.974775, 0.975142, 0.975506,
0.975867, 0.976226, 0.976581, 0.976933, 0.977282, 0.977628,
0.977972, 0.978312, 0.97865, 0.978984, 0.979316, 0.979644,
0.97997, 0.980293, 0.980613, 0.98093, 0.981244, 0.981556,
0.981864, 0.98217, 0.982473, 0.982772, 0.983069, 0.983364,
0.983655, 0.983944, 0.984229, 0.984512, 0.984792, 0.985069,
0.985344, 0.985616, 0.985884, 0.98615, 0.986414, 0.986674,
0.986932, 0.987187, 0.987439, 0.987689, 0.987936, 0.98818,
0.988421, 0.98866, 0.988896, 0.989129, 0.98936, 0.989587,
0.989813, 0.990035, 0.990255, 0.990472, 0.990687, 0.990898,
0.991108, 0.991314, 0.991518, 0.99172, 0.991918, 0.992114,
0.992308, 0.992499, 0.992687, 0.992873, 0.993056, 0.993236,
0.993415, 0.99359, 0.993763, 0.993933, 0.994101, 0.994266,
0.994429, 0.99459, 0.994747, 0.994903, 0.995055, 0.995206,
0.995354, 0.995499, 0.995642, 0.995782, 0.99592, 0.996056,
0.996189, 0.99632, 0.996448, 0.996574, 0.996697, 0.996818,
0.996937, 0.997053, 0.997167, 0.997279, 0.997388, 0.997495,
0.997599, 0.997701, 0.997801, 0.997899, 0.997994, 0.998087,
0.998177, 0.998265, 0.998351, 0.998435, 0.998516, 0.998596,
0.998672, 0.998747, 0.998819, 0.99889, 0.998958, 0.999023,
0.999087, 0.999148, 0.999207, 0.999264, 0.999319, 0.999371,
0.999422, 0.99947, 0.999516, 0.99956, 0.999602, 0.999641,
0.999679, 0.999714, 0.999747, 0.999779, 0.999808, 0.999835,
0.99986, 0.999883, 0.999903, 0.999922, 0.999939, 0.999954,
0.999966, 0.999977, 0.999985, 0.999992, 0.999997, 0.999999,
1, 0.999999, 0.999995, 0.99999, 0.999983, 0.999974,
0.999963, 0.99995, 0.999935, 0.999918, 0.999899, 0.999878,
0.999856, 0.999832, 0.999805, 0.999777, 0.999747, 0.999715,
0.999682, 0.999646, 0.999609, 0.99957, 0.999529, 0.999486,
0.999441, 0.999395, 0.999347, 0.999297, 0.999245, 0.999192,
0.999137, 0.99908, 0.999021, 0.998961, 0.998899, 0.998835,
0.998769, 0.998702, 0.998634, 0.998563, 0.998491, 0.998417,
0.998342, 0.998265, 0.998186, 0.998105, 0.998024, 0.99794,
0.997855, 0.997768, 0.99768, 0.99759, 0.997498, 0.997405,
0.997311, 0.997214, 0.997117, 0.997018, 0.996917, 0.996815,
0.996711, 0.996606, 0.996499, 0.996391, 0.996281, 0.99617,
0.996058, 0.995944, 0.995828, 0.995711, 0.995593, 0.995473,
0.995352, 0.99523, 0.995106, 0.994981, 0.994854, 0.994726,
0.994597, 0.994466, 0.994334, 0.994201, 0.994066, 0.99393,
0.993793, 0.993654, 0.993514, 0.993373, 0.993231, 0.993087,
0.992942, 0.992796, 0.992648, 0.9925, 0.99235, 0.992199,
0.992047, 0.991893, 0.991738, 0.991582, 0.991425, 0.991267,
0.991108, 0.990947, 0.990786, 0.990623, 0.990459, 0.990294,
0.990128, 0.989961, 0.989792, 0.989623, 0.989452, 0.989281,
0.989108, 0.988935, 0.98876, 0.988584, 0.988407, 0.98823,
0.988051, 0.987871, 0.98769, 0.987509, 0.987326, 0.987142,
0.986957, 0.986772, 0.986585, 0.986398, 0.986209, 0.98602,
0.98583, 0.985638, 0.985446, 0.985253, 0.98506, 0.984865,
0.984669, 0.984473, 0.984276, 0.984078, 0.983879, 0.983679,
0.983478, 0.983277, 0.983075, 0.982872, 0.982668, 0.982463,
0.982258, 0.982052, 0.981845, 0.981638, 0.981429, 0.98122,
0.981011, 0.9808, 0.980589, 0.980377, 0.980165, 0.979952,
0.979738, 0.979523, 0.979308, 0.979092, 0.978876, 0.978659,
0.978441, 0.978223, 0.978004, 0.977784, 0.977564, 0.977343,
0.977122, 0.9769, 0.976678, 0.976455, 0.976231, 0.976007,
0.975782, 0.975557, 0.975332, 0.975106, 0.974879, 0.974652,
0.974424, 0.974196, 0.973968, 0.973739, 0.973509, 0.973279,
0.973049, 0.972818, 0.972587, 0.972356, 0.972124, 0.971891,
0.971658, 0.971425, 0.971192, 0.970958, 0.970724, 0.970489,
0.970254, 0.970019, 0.969783, 0.969547, 0.969311, 0.969074,
0.968838, 0.9686, 0.968363, 0.968125, 0.967887, 0.967649,
0.967411, 0.967172, 0.966933, 0.966694, 0.966454, 0.966215,
0.965975, 0.965735, 0.965495, 0.965254, 0.965014, 0.964773,
0.964532, 0.964291, 0.96405, 0.963808, 0.963567, 0.963325,
0.963083, 0.962841, 0.962599, 0.962357, 0.962115, 0.961873,
0.961631, 0.961388, 0.961146, 0.960903, 0.960661, 0.960418,
0.960175, 0.959933, 0.95969, 0.959447, 0.959205, 0.958962,
0.958719, 0.958476, 0.958234, 0.957991, 0.957749, 0.957506,
0.957264, 0.957021, 0.956779, 0.956536, 0.956294, 0.956052,
0.95581, 0.955568, 0.955326, 0.955084, 0.954843, 0.954601,
0.95436, 0.954119, 0.953877, 0.953637, 0.953396, 0.953155,
0.952915, 0.952674, 0.952434, 0.952194, 0.951955, 0.951715,
0.951476, 0.951237, 0.950998, 0.95076, 0.950521, 0.950283,
0.950045, 0.949808, 0.94957, 0.949333, 0.949096, 0.94886,
0.948624, 0.948388, 0.948152, 0.947917, 0.947682, 0.947447,
0.947213, 0.946979, 0.946745, 0.946512, 0.946279, 0.946046,
0.945814, 0.945582, 0.94535, 0.945119, 0.944888, 0.944658,
0.944428, 0.944198, 0.943969, 0.943741, 0.943512, 0.943284,
0.943057, 0.94283, 0.942603, 0.942377, 0.942152, 0.941927,
0.941702, 0.941478, 0.941254, 0.941031, 0.940808, 0.940586,
0.940364, 0.940143, 0.939922, 0.939702, 0.939482, 0.939263,
0.939044, 0.938826, 0.938609, 0.938392, 0.938176, 0.93796,
0.937744, 0.93753, 0.937316, 0.937102, 0.936889, 0.936677,
0.936465, 0.936254, 0.936044, 0.935834, 0.935625, 0.935416,
0.935208, 0.935001, 0.934794, 0.934588, 0.934383, 0.934178,
0.933974, 0.933771, 0.933568, 0.933366, 0.933165, 0.932964,
0.932764, 0.932565, 0.932367, 0.932169, 0.931972, 0.931775,
0.93158, 0.931385, 0.931191, 0.930997, 0.930804, 0.930613,
0.930421, 0.930231, 0.930041, 0.929852, 0.929664, 0.929477,
0.92929, 0.929105, 0.92892, 0.928736, 0.928552, 0.92837,
0.928188, 0.928007, 0.927827, 0.927647, 0.927469, 0.927291,
0.927114, 0.926938, 0.926763, 0.926589, 0.926416, 0.926243,
0.926071, 0.9259, 0.92573, 0.925561, 0.925393, 0.925226,
0.925059, 0.924894, 0.924729, 0.924565, 0.924402, 0.92424,
0.924079, 0.923919, 0.92376, 0.923602, 0.923444, 0.923288,
0.923132, 0.922977, 0.922824, 0.922671, 0.922519, 0.922368,
0.922219, 0.92207, 0.921922, 0.921775, 0.921629, 0.921483,
0.921339, 0.921196, 0.921054, 0.920913, 0.920773, 0.920634,
0.920495, 0.920358, 0.920222, 0.920087, 0.919953, 0.919819,
0.919687, 0.919556, 0.919426, 0.919297, 0.919169, 0.919042,
0.918916, 0.918791, 0.918667, 0.918544, 0.918422, 0.918301,
0.918181, 0.918062, 0.917945, 0.917828, 0.917712, 0.917598,
0.917484, 0.917372, 0.917261, 0.917151, 0.917041, 0.916933,
0.916826, 0.91672, 0.916615, 0.916512, 0.916409, 0.916307,
0.916207, 0.916108, 0.916009, 0.915912, 0.915816, 0.915721,
0.915627, 0.915534, 0.915443, 0.915352, 0.915263, 0.915174,
0.915087, 0.915001, 0.914916, 0.914832, 0.91475, 0.914668,
0.914588, 0.914508, 0.91443, 0.914353, 0.914277, 0.914202,
0.914129, 0.914056, 0.913985, 0.913915, 0.913846, 0.913778,
0.913711, 0.913646, 0.913581, 0.913518, 0.913456, 0.913395,
0.913335, 0.913276, 0.913219, 0.913163, 0.913108, 0.913054,
0.913001, 0.912949, 0.912899, 0.912849, 0.912801, 0.912754,
0.912709, 0.912664, 0.912621, 0.912578, 0.912537, 0.912497,
0.912459, 0.912421, 0.912385, 0.91235, 0.912316, 0.912283,
0.912251, 0.912221, 0.912192, 0.912164, 0.912137, 0.912111,
0.912087, 0.912063, 0.912041, 0.91202, 0.912001, 0.911982,
0.911965, 0.911949, 0.911934, 0.91192, 0.911908, 0.911896,
0.911886, 0.911877, 0.911869, 0.911863, 0.911857, 0.911853,
0.91185, 0.911848
};
static const float *WAVE_LOGARITHMICS[DEFAULT_OCTAVES] = {
WAVE_LOGARITHMIC_000, WAVE_LOGARITHMIC_006, WAVE_LOGARITHMIC_018,
WAVE_LOGARITHMIC_030, WAVE_LOGARITHMIC_042, WAVE_LOGARITHMIC_054,
WAVE_LOGARITHMIC_066, WAVE_LOGARITHMIC_078, WAVE_LOGARITHMIC_090,
WAVE_LOGARITHMIC_102, WAVE_LOGARITHMIC_114, WAVE_LOGARITHMIC_126
};
|
jimd1989/boar
|
src/wavetables/square.h
|
/* A series of tables representing a square wave. */
#pragma once
#include "../constants/defaults.h"
static const float WAVE_SQUARE_000[DEFAULT_WAVELEN] = {
4.88498e-15, 1, 0.922301, 0.949382, 0.945294, 0.936383,
0.952245, 0.933884, 0.951352, 0.937203, 0.946568, 0.942523,
0.941543, 0.946588, 0.938883, 0.947649, 0.939365, 0.945891,
0.941978, 0.942926, 0.944793, 0.94069, 0.94615, 0.940349,
0.945509, 0.941787, 0.94357, 0.943874, 0.941685, 0.945265,
0.940982, 0.945211, 0.941734, 0.943927, 0.943307, 0.942341,
0.944643, 0.941463, 0.944943, 0.94176, 0.944129, 0.94293,
0.942814, 0.944164, 0.941863, 0.944687, 0.941837, 0.944233,
0.942674, 0.943168, 0.94378, 0.942209, 0.944437, 0.941951,
0.944267, 0.942505, 0.943436, 0.943464, 0.942515, 0.944194,
0.942093, 0.944248, 0.942404, 0.943634, 0.943206, 0.942785,
0.943959, 0.942253, 0.944187, 0.942359, 0.943775, 0.942999,
0.943021, 0.943736, 0.942425, 0.944095, 0.942358, 0.943866,
0.942837, 0.943224, 0.943528, 0.942602, 0.943979, 0.942395,
0.943912, 0.942717, 0.943394, 0.943338, 0.942778, 0.943846,
0.942462, 0.94392, 0.942638, 0.943531, 0.94317, 0.942948,
0.943703, 0.942554, 0.943894, 0.942594, 0.943634, 0.943026,
0.943106, 0.943557, 0.942662, 0.943841, 0.942584, 0.943704,
0.942909, 0.94325, 0.943413, 0.942782, 0.943766, 0.942603,
0.943744, 0.942818, 0.943375, 0.943276, 0.942907, 0.943673,
0.942647, 0.943755, 0.942756, 0.943478, 0.943151, 0.943033,
0.943569, 0.942712, 0.943739, 0.94272, 0.943558, 0.943041,
0.943153, 0.943459, 0.942793, 0.943701, 0.94271, 0.943614,
0.942949, 0.943265, 0.943348, 0.942886, 0.943643, 0.942723,
0.943646, 0.942877, 0.943363, 0.94324, 0.942985, 0.94357,
0.942758, 0.943656, 0.942827, 0.943446, 0.943139, 0.943085,
0.943487, 0.94281, 0.943643, 0.942798, 0.943511, 0.94305,
0.943183, 0.943397, 0.942877, 0.943611, 0.94279, 0.943557,
0.942974, 0.943275, 0.943305, 0.942953, 0.943563, 0.942802,
0.943583, 0.942915, 0.943357, 0.943215, 0.943036, 0.943501,
0.942832, 0.94359, 0.942874, 0.943426, 0.94313, 0.943121,
0.94343, 0.942877, 0.943578, 0.94285, 0.94348, 0.943055,
0.943204, 0.943353, 0.942934, 0.94355, 0.942845, 0.943518,
0.942991, 0.943283, 0.943274, 0.943001, 0.943507, 0.942857,
0.943539, 0.942942, 0.943353, 0.943196, 0.943073, 0.943452,
0.942884, 0.943543, 0.942907, 0.943412, 0.943123, 0.943147,
0.943389, 0.942925, 0.943531, 0.942888, 0.943458, 0.943058,
0.94322, 0.943321, 0.942977, 0.943504, 0.942885, 0.943489,
0.943003, 0.943289, 0.943251, 0.943036, 0.943465, 0.942897,
0.943506, 0.94296, 0.94335, 0.943182, 0.943101, 0.943415,
0.942923, 0.943508, 0.942931, 0.943402, 0.943118, 0.943168,
0.943358, 0.942961, 0.943496, 0.942916, 0.943441, 0.94306,
0.943233, 0.943296, 0.943009, 0.94347, 0.942915, 0.943468,
0.943012, 0.943294, 0.943233, 0.943064, 0.943433, 0.942928,
0.943482, 0.942975, 0.943349, 0.94317, 0.943124, 0.943387,
0.942954, 0.943481, 0.94295, 0.943394, 0.943112, 0.943184,
0.943333, 0.94299, 0.943468, 0.942938, 0.943429, 0.943061,
0.943244, 0.943276, 0.943035, 0.943443, 0.942939, 0.943452,
0.943018, 0.9433, 0.943218, 0.943087, 0.943407, 0.942953,
0.943463, 0.942985, 0.943349, 0.94316, 0.943142, 0.943363,
0.942978, 0.94346, 0.942964, 0.943389, 0.943107, 0.943198,
0.943313, 0.943013, 0.943446, 0.942955, 0.94342, 0.94306,
0.943253, 0.943259, 0.943056, 0.943421, 0.942958, 0.94344,
0.943022, 0.943304, 0.943205, 0.943105, 0.943386, 0.942973,
0.943447, 0.942993, 0.943349, 0.943152, 0.943157, 0.943344,
0.942998, 0.943444, 0.942975, 0.943386, 0.943102, 0.94321,
0.943296, 0.943032, 0.943428, 0.942968, 0.943413, 0.943059,
0.943262, 0.943245, 0.943074, 0.943403, 0.942973, 0.94343,
0.943024, 0.943309, 0.943193, 0.943121, 0.943369, 0.942989,
0.943436, 0.942999, 0.943351, 0.943143, 0.943171, 0.943327,
0.943014, 0.94343, 0.942983, 0.943384, 0.943097, 0.943221,
0.943281, 0.943048, 0.943414, 0.942979, 0.943409, 0.943058,
0.94327, 0.943232, 0.943089, 0.943388, 0.942985, 0.943423,
0.943025, 0.943314, 0.943183, 0.943135, 0.943354, 0.943002,
0.943426, 0.943003, 0.943353, 0.943136, 0.943183, 0.943313,
0.943028, 0.943419, 0.94299, 0.943384, 0.943092, 0.943231,
0.943268, 0.943062, 0.943401, 0.942987, 0.943405, 0.943055,
0.943278, 0.943221, 0.943103, 0.943375, 0.942995, 0.943417,
0.943026, 0.94332, 0.943173, 0.943147, 0.943341, 0.943013,
0.943419, 0.943005, 0.943356, 0.943128, 0.943194, 0.943301,
0.94304, 0.94341, 0.942994, 0.943384, 0.943087, 0.943241,
0.943256, 0.943074, 0.943391, 0.942994, 0.943403, 0.943052,
0.943285, 0.94321, 0.943115, 0.943364, 0.943004, 0.943413,
0.943025, 0.943325, 0.943164, 0.943159, 0.943329, 0.943023,
0.943413, 0.943006, 0.943359, 0.94312, 0.943205, 0.943289,
0.94305, 0.943402, 0.942998, 0.943386, 0.943081, 0.94325,
0.943245, 0.943085, 0.943383, 0.942999, 0.943403, 0.943048,
0.943293, 0.9432, 0.943126, 0.943354, 0.94301, 0.943411,
0.943023, 0.943332, 0.943155, 0.943169, 0.943319, 0.943031,
0.943408, 0.943006, 0.943364, 0.943112, 0.943215, 0.943279,
0.943059, 0.943396, 0.943, 0.943388, 0.943074, 0.943259,
0.943235, 0.943095, 0.943375, 0.943003, 0.943404, 0.943043,
0.943301, 0.94319, 0.943136, 0.943346, 0.943015, 0.943409,
0.94302, 0.943338, 0.943145, 0.94318, 0.94331, 0.943037,
0.943405, 0.943005, 0.943369, 0.943104, 0.943225, 0.943269,
0.943067, 0.943392, 0.943, 0.943392, 0.943067, 0.943269,
0.943225, 0.943104, 0.943369, 0.943005, 0.943405, 0.943037,
0.94331, 0.94318, 0.943145, 0.943338, 0.94302, 0.943409,
0.943015, 0.943346, 0.943136, 0.94319, 0.943301, 0.943043,
0.943404, 0.943003, 0.943375, 0.943095, 0.943235, 0.943259,
0.943074, 0.943388, 0.943, 0.943396, 0.943059, 0.943279,
0.943215, 0.943112, 0.943364, 0.943006, 0.943408, 0.943031,
0.943319, 0.943169, 0.943155, 0.943332, 0.943023, 0.943411,
0.94301, 0.943354, 0.943126, 0.9432, 0.943293, 0.943048,
0.943403, 0.942999, 0.943383, 0.943085, 0.943245, 0.94325,
0.943081, 0.943386, 0.942998, 0.943402, 0.94305, 0.943289,
0.943205, 0.94312, 0.943359, 0.943006, 0.943413, 0.943023,
0.943329, 0.943159, 0.943164, 0.943325, 0.943025, 0.943413,
0.943004, 0.943364, 0.943115, 0.94321, 0.943285, 0.943052,
0.943403, 0.942994, 0.943391, 0.943074, 0.943256, 0.943241,
0.943087, 0.943384, 0.942994, 0.94341, 0.94304, 0.943301,
0.943194, 0.943128, 0.943356, 0.943005, 0.943419, 0.943013,
0.943341, 0.943147, 0.943173, 0.94332, 0.943026, 0.943417,
0.942995, 0.943375, 0.943103, 0.943221, 0.943278, 0.943055,
0.943405, 0.942987, 0.943401, 0.943062, 0.943268, 0.943231,
0.943092, 0.943384, 0.94299, 0.943419, 0.943028, 0.943313,
0.943183, 0.943136, 0.943353, 0.943003, 0.943426, 0.943002,
0.943354, 0.943135, 0.943183, 0.943314, 0.943025, 0.943423,
0.942985, 0.943388, 0.943089, 0.943232, 0.94327, 0.943058,
0.943409, 0.942979, 0.943414, 0.943048, 0.943281, 0.943221,
0.943097, 0.943384, 0.942983, 0.94343, 0.943014, 0.943327,
0.943171, 0.943143, 0.943351, 0.942999, 0.943436, 0.942989,
0.943369, 0.943121, 0.943193, 0.943309, 0.943024, 0.94343,
0.942973, 0.943403, 0.943074, 0.943245, 0.943262, 0.943059,
0.943413, 0.942968, 0.943428, 0.943032, 0.943296, 0.94321,
0.943102, 0.943386, 0.942975, 0.943444, 0.942998, 0.943344,
0.943157, 0.943152, 0.943349, 0.942993, 0.943447, 0.942973,
0.943386, 0.943105, 0.943205, 0.943304, 0.943022, 0.94344,
0.942958, 0.943421, 0.943056, 0.943259, 0.943253, 0.94306,
0.94342, 0.942955, 0.943446, 0.943013, 0.943313, 0.943198,
0.943107, 0.943389, 0.942964, 0.94346, 0.942978, 0.943363,
0.943142, 0.94316, 0.943349, 0.942985, 0.943463, 0.942953,
0.943407, 0.943087, 0.943218, 0.9433, 0.943018, 0.943452,
0.942939, 0.943443, 0.943035, 0.943276, 0.943244, 0.943061,
0.943429, 0.942938, 0.943468, 0.94299, 0.943333, 0.943184,
0.943112, 0.943394, 0.94295, 0.943481, 0.942954, 0.943387,
0.943124, 0.94317, 0.943349, 0.942975, 0.943482, 0.942928,
0.943433, 0.943064, 0.943233, 0.943294, 0.943012, 0.943468,
0.942915, 0.94347, 0.943009, 0.943296, 0.943233, 0.94306,
0.943441, 0.942916, 0.943496, 0.942961, 0.943358, 0.943168,
0.943118, 0.943402, 0.942931, 0.943508, 0.942923, 0.943415,
0.943101, 0.943182, 0.94335, 0.94296, 0.943506, 0.942897,
0.943465, 0.943036, 0.943251, 0.943289, 0.943003, 0.943489,
0.942885, 0.943504, 0.942977, 0.943321, 0.94322, 0.943058,
0.943458, 0.942888, 0.943531, 0.942925, 0.943389, 0.943147,
0.943123, 0.943412, 0.942907, 0.943543, 0.942884, 0.943452,
0.943073, 0.943196, 0.943353, 0.942942, 0.943539, 0.942857,
0.943507, 0.943001, 0.943274, 0.943283, 0.942991, 0.943518,
0.942845, 0.94355, 0.942934, 0.943353, 0.943204, 0.943055,
0.94348, 0.94285, 0.943578, 0.942877, 0.94343, 0.943121,
0.94313, 0.943426, 0.942874, 0.94359, 0.942832, 0.943501,
0.943036, 0.943215, 0.943357, 0.942915, 0.943583, 0.942802,
0.943563, 0.942953, 0.943305, 0.943275, 0.942974, 0.943557,
0.94279, 0.943611, 0.942877, 0.943397, 0.943183, 0.94305,
0.943511, 0.942798, 0.943643, 0.94281, 0.943487, 0.943085,
0.943139, 0.943446, 0.942827, 0.943656, 0.942758, 0.94357,
0.942985, 0.94324, 0.943363, 0.942877, 0.943646, 0.942723,
0.943643, 0.942886, 0.943348, 0.943265, 0.942949, 0.943614,
0.94271, 0.943701, 0.942793, 0.943459, 0.943153, 0.943041,
0.943558, 0.94272, 0.943739, 0.942712, 0.943569, 0.943033,
0.943151, 0.943478, 0.942756, 0.943755, 0.942647, 0.943673,
0.942907, 0.943276, 0.943375, 0.942818, 0.943744, 0.942603,
0.943766, 0.942782, 0.943413, 0.94325, 0.942909, 0.943704,
0.942584, 0.943841, 0.942662, 0.943557, 0.943106, 0.943026,
0.943634, 0.942594, 0.943894, 0.942554, 0.943703, 0.942948,
0.94317, 0.943531, 0.942638, 0.94392, 0.942462, 0.943846,
0.942778, 0.943338, 0.943394, 0.942717, 0.943912, 0.942395,
0.943979, 0.942602, 0.943528, 0.943224, 0.942837, 0.943866,
0.942358, 0.944095, 0.942425, 0.943736, 0.943021, 0.942999,
0.943775, 0.942359, 0.944187, 0.942253, 0.943959, 0.942785,
0.943206, 0.943634, 0.942404, 0.944248, 0.942093, 0.944194,
0.942515, 0.943464, 0.943436, 0.942505, 0.944267, 0.941951,
0.944437, 0.942209, 0.94378, 0.943168, 0.942674, 0.944233,
0.941837, 0.944687, 0.941863, 0.944164, 0.942814, 0.94293,
0.944129, 0.94176, 0.944943, 0.941463, 0.944643, 0.942341,
0.943307, 0.943927, 0.941734, 0.945211, 0.940982, 0.945265,
0.941685, 0.943874, 0.94357, 0.941787, 0.945509, 0.940349,
0.94615, 0.94069, 0.944793, 0.942926, 0.941978, 0.945891,
0.939365, 0.947649, 0.938883, 0.946588, 0.941543, 0.942523,
0.946568, 0.937203, 0.951352, 0.933884, 0.952245, 0.936383,
0.945294, 0.949382, 0.922301, 1, 2.22267e-13, -1,
-0.922301, -0.949382, -0.945294, -0.936383, -0.952245, -0.933884,
-0.951352, -0.937203, -0.946568, -0.942523, -0.941543, -0.946588,
-0.938883, -0.947649, -0.939365, -0.945891, -0.941978, -0.942926,
-0.944793, -0.94069, -0.94615, -0.940349, -0.945509, -0.941787,
-0.94357, -0.943874, -0.941685, -0.945265, -0.940982, -0.945211,
-0.941734, -0.943927, -0.943307, -0.942341, -0.944643, -0.941463,
-0.944943, -0.94176, -0.944129, -0.94293, -0.942814, -0.944164,
-0.941863, -0.944687, -0.941837, -0.944233, -0.942674, -0.943168,
-0.94378, -0.942209, -0.944437, -0.941951, -0.944267, -0.942505,
-0.943436, -0.943464, -0.942515, -0.944194, -0.942093, -0.944248,
-0.942404, -0.943634, -0.943206, -0.942785, -0.943959, -0.942253,
-0.944187, -0.942359, -0.943775, -0.942999, -0.943021, -0.943736,
-0.942425, -0.944095, -0.942358, -0.943866, -0.942837, -0.943224,
-0.943528, -0.942602, -0.943979, -0.942395, -0.943912, -0.942717,
-0.943394, -0.943338, -0.942778, -0.943846, -0.942462, -0.94392,
-0.942638, -0.943531, -0.94317, -0.942948, -0.943703, -0.942554,
-0.943894, -0.942594, -0.943634, -0.943026, -0.943106, -0.943557,
-0.942662, -0.943841, -0.942584, -0.943704, -0.942909, -0.94325,
-0.943413, -0.942782, -0.943766, -0.942603, -0.943744, -0.942818,
-0.943375, -0.943276, -0.942907, -0.943673, -0.942647, -0.943755,
-0.942756, -0.943478, -0.943151, -0.943033, -0.943569, -0.942712,
-0.943739, -0.94272, -0.943558, -0.943041, -0.943153, -0.943459,
-0.942793, -0.943701, -0.94271, -0.943614, -0.942949, -0.943265,
-0.943348, -0.942886, -0.943643, -0.942723, -0.943646, -0.942877,
-0.943363, -0.94324, -0.942985, -0.94357, -0.942758, -0.943656,
-0.942827, -0.943446, -0.943139, -0.943085, -0.943487, -0.94281,
-0.943643, -0.942798, -0.943511, -0.94305, -0.943183, -0.943397,
-0.942877, -0.943611, -0.94279, -0.943557, -0.942974, -0.943275,
-0.943305, -0.942953, -0.943563, -0.942802, -0.943583, -0.942915,
-0.943357, -0.943215, -0.943036, -0.943501, -0.942832, -0.94359,
-0.942874, -0.943426, -0.94313, -0.943121, -0.94343, -0.942877,
-0.943578, -0.94285, -0.94348, -0.943055, -0.943204, -0.943353,
-0.942934, -0.94355, -0.942845, -0.943518, -0.942991, -0.943283,
-0.943274, -0.943001, -0.943507, -0.942857, -0.943539, -0.942942,
-0.943353, -0.943196, -0.943073, -0.943452, -0.942884, -0.943543,
-0.942907, -0.943412, -0.943123, -0.943147, -0.943389, -0.942925,
-0.943531, -0.942888, -0.943458, -0.943058, -0.94322, -0.943321,
-0.942977, -0.943504, -0.942885, -0.943489, -0.943003, -0.943289,
-0.943251, -0.943036, -0.943465, -0.942897, -0.943506, -0.94296,
-0.94335, -0.943182, -0.943101, -0.943415, -0.942923, -0.943508,
-0.942931, -0.943402, -0.943118, -0.943168, -0.943358, -0.942961,
-0.943496, -0.942916, -0.943441, -0.94306, -0.943233, -0.943296,
-0.943009, -0.94347, -0.942915, -0.943468, -0.943012, -0.943294,
-0.943233, -0.943064, -0.943433, -0.942928, -0.943482, -0.942975,
-0.943349, -0.94317, -0.943124, -0.943387, -0.942954, -0.943481,
-0.94295, -0.943394, -0.943112, -0.943184, -0.943333, -0.94299,
-0.943468, -0.942938, -0.943429, -0.943061, -0.943244, -0.943276,
-0.943035, -0.943443, -0.942939, -0.943452, -0.943018, -0.9433,
-0.943218, -0.943087, -0.943407, -0.942953, -0.943463, -0.942985,
-0.943349, -0.94316, -0.943142, -0.943363, -0.942978, -0.94346,
-0.942964, -0.943389, -0.943107, -0.943198, -0.943313, -0.943013,
-0.943446, -0.942955, -0.94342, -0.94306, -0.943253, -0.943259,
-0.943056, -0.943421, -0.942958, -0.94344, -0.943022, -0.943304,
-0.943205, -0.943105, -0.943386, -0.942973, -0.943447, -0.942993,
-0.943349, -0.943152, -0.943157, -0.943344, -0.942998, -0.943444,
-0.942975, -0.943386, -0.943102, -0.94321, -0.943296, -0.943032,
-0.943428, -0.942968, -0.943413, -0.943059, -0.943262, -0.943245,
-0.943074, -0.943403, -0.942973, -0.94343, -0.943024, -0.943309,
-0.943193, -0.943121, -0.943369, -0.942989, -0.943436, -0.942999,
-0.943351, -0.943143, -0.943171, -0.943327, -0.943014, -0.94343,
-0.942983, -0.943384, -0.943097, -0.943221, -0.943281, -0.943048,
-0.943414, -0.942979, -0.943409, -0.943058, -0.94327, -0.943232,
-0.943089, -0.943388, -0.942985, -0.943423, -0.943025, -0.943314,
-0.943183, -0.943135, -0.943354, -0.943002, -0.943426, -0.943003,
-0.943353, -0.943136, -0.943183, -0.943313, -0.943028, -0.943419,
-0.94299, -0.943384, -0.943092, -0.943231, -0.943268, -0.943062,
-0.943401, -0.942987, -0.943405, -0.943055, -0.943278, -0.943221,
-0.943103, -0.943375, -0.942995, -0.943417, -0.943026, -0.94332,
-0.943173, -0.943147, -0.943341, -0.943013, -0.943419, -0.943005,
-0.943356, -0.943128, -0.943194, -0.943301, -0.94304, -0.94341,
-0.942994, -0.943384, -0.943087, -0.943241, -0.943256, -0.943074,
-0.943391, -0.942994, -0.943403, -0.943052, -0.943285, -0.94321,
-0.943115, -0.943364, -0.943004, -0.943413, -0.943025, -0.943325,
-0.943164, -0.943159, -0.943329, -0.943023, -0.943413, -0.943006,
-0.943359, -0.94312, -0.943205, -0.943289, -0.94305, -0.943402,
-0.942998, -0.943386, -0.943081, -0.94325, -0.943245, -0.943085,
-0.943383, -0.942999, -0.943403, -0.943048, -0.943293, -0.9432,
-0.943126, -0.943354, -0.94301, -0.943411, -0.943023, -0.943332,
-0.943155, -0.943169, -0.943319, -0.943031, -0.943408, -0.943006,
-0.943364, -0.943112, -0.943215, -0.943279, -0.943059, -0.943396,
-0.943, -0.943388, -0.943074, -0.943259, -0.943235, -0.943095,
-0.943375, -0.943003, -0.943404, -0.943043, -0.943301, -0.94319,
-0.943136, -0.943346, -0.943015, -0.943409, -0.94302, -0.943338,
-0.943145, -0.94318, -0.94331, -0.943037, -0.943405, -0.943005,
-0.943369, -0.943104, -0.943225, -0.943269, -0.943067, -0.943392,
-0.943, -0.943392, -0.943067, -0.943269, -0.943225, -0.943104,
-0.943369, -0.943005, -0.943405, -0.943037, -0.94331, -0.94318,
-0.943145, -0.943338, -0.94302, -0.943409, -0.943015, -0.943346,
-0.943136, -0.94319, -0.943301, -0.943043, -0.943404, -0.943003,
-0.943375, -0.943095, -0.943235, -0.943259, -0.943074, -0.943388,
-0.943, -0.943396, -0.943059, -0.943279, -0.943215, -0.943112,
-0.943364, -0.943006, -0.943408, -0.943031, -0.943319, -0.943169,
-0.943155, -0.943332, -0.943023, -0.943411, -0.94301, -0.943354,
-0.943126, -0.9432, -0.943293, -0.943048, -0.943403, -0.942999,
-0.943383, -0.943085, -0.943245, -0.94325, -0.943081, -0.943386,
-0.942998, -0.943402, -0.94305, -0.943289, -0.943205, -0.94312,
-0.943359, -0.943006, -0.943413, -0.943023, -0.943329, -0.943159,
-0.943164, -0.943325, -0.943025, -0.943413, -0.943004, -0.943364,
-0.943115, -0.94321, -0.943285, -0.943052, -0.943403, -0.942994,
-0.943391, -0.943074, -0.943256, -0.943241, -0.943087, -0.943384,
-0.942994, -0.94341, -0.94304, -0.943301, -0.943194, -0.943128,
-0.943356, -0.943005, -0.943419, -0.943013, -0.943341, -0.943147,
-0.943173, -0.94332, -0.943026, -0.943417, -0.942995, -0.943375,
-0.943103, -0.943221, -0.943278, -0.943055, -0.943405, -0.942987,
-0.943401, -0.943062, -0.943268, -0.943231, -0.943092, -0.943384,
-0.94299, -0.943419, -0.943028, -0.943313, -0.943183, -0.943136,
-0.943353, -0.943003, -0.943426, -0.943002, -0.943354, -0.943135,
-0.943183, -0.943314, -0.943025, -0.943423, -0.942985, -0.943388,
-0.943089, -0.943232, -0.94327, -0.943058, -0.943409, -0.942979,
-0.943414, -0.943048, -0.943281, -0.943221, -0.943097, -0.943384,
-0.942983, -0.94343, -0.943014, -0.943327, -0.943171, -0.943143,
-0.943351, -0.942999, -0.943436, -0.942989, -0.943369, -0.943121,
-0.943193, -0.943309, -0.943024, -0.94343, -0.942973, -0.943403,
-0.943074, -0.943245, -0.943262, -0.943059, -0.943413, -0.942968,
-0.943428, -0.943032, -0.943296, -0.94321, -0.943102, -0.943386,
-0.942975, -0.943444, -0.942998, -0.943344, -0.943157, -0.943152,
-0.943349, -0.942993, -0.943447, -0.942973, -0.943386, -0.943105,
-0.943205, -0.943304, -0.943022, -0.94344, -0.942958, -0.943421,
-0.943056, -0.943259, -0.943253, -0.94306, -0.94342, -0.942955,
-0.943446, -0.943013, -0.943313, -0.943198, -0.943107, -0.943389,
-0.942964, -0.94346, -0.942978, -0.943363, -0.943142, -0.94316,
-0.943349, -0.942985, -0.943463, -0.942953, -0.943407, -0.943087,
-0.943218, -0.9433, -0.943018, -0.943452, -0.942939, -0.943443,
-0.943035, -0.943276, -0.943244, -0.943061, -0.943429, -0.942938,
-0.943468, -0.94299, -0.943333, -0.943184, -0.943112, -0.943394,
-0.94295, -0.943481, -0.942954, -0.943387, -0.943124, -0.94317,
-0.943349, -0.942975, -0.943482, -0.942928, -0.943433, -0.943064,
-0.943233, -0.943294, -0.943012, -0.943468, -0.942915, -0.94347,
-0.943009, -0.943296, -0.943233, -0.94306, -0.943441, -0.942916,
-0.943496, -0.942961, -0.943358, -0.943168, -0.943118, -0.943402,
-0.942931, -0.943508, -0.942923, -0.943415, -0.943101, -0.943182,
-0.94335, -0.94296, -0.943506, -0.942897, -0.943465, -0.943036,
-0.943251, -0.943289, -0.943003, -0.943489, -0.942885, -0.943504,
-0.942977, -0.943321, -0.94322, -0.943058, -0.943458, -0.942888,
-0.943531, -0.942925, -0.943389, -0.943147, -0.943123, -0.943412,
-0.942907, -0.943543, -0.942884, -0.943452, -0.943073, -0.943196,
-0.943353, -0.942942, -0.943539, -0.942857, -0.943507, -0.943001,
-0.943274, -0.943283, -0.942991, -0.943518, -0.942845, -0.94355,
-0.942934, -0.943353, -0.943204, -0.943055, -0.94348, -0.94285,
-0.943578, -0.942877, -0.94343, -0.943121, -0.94313, -0.943426,
-0.942874, -0.94359, -0.942832, -0.943501, -0.943036, -0.943215,
-0.943357, -0.942915, -0.943583, -0.942802, -0.943563, -0.942953,
-0.943305, -0.943275, -0.942974, -0.943557, -0.94279, -0.943611,
-0.942877, -0.943397, -0.943183, -0.94305, -0.943511, -0.942798,
-0.943643, -0.94281, -0.943487, -0.943085, -0.943139, -0.943446,
-0.942827, -0.943656, -0.942758, -0.94357, -0.942985, -0.94324,
-0.943363, -0.942877, -0.943646, -0.942723, -0.943643, -0.942886,
-0.943348, -0.943265, -0.942949, -0.943614, -0.94271, -0.943701,
-0.942793, -0.943459, -0.943153, -0.943041, -0.943558, -0.94272,
-0.943739, -0.942712, -0.943569, -0.943033, -0.943151, -0.943478,
-0.942756, -0.943755, -0.942647, -0.943673, -0.942907, -0.943276,
-0.943375, -0.942818, -0.943744, -0.942603, -0.943766, -0.942782,
-0.943413, -0.94325, -0.942909, -0.943704, -0.942584, -0.943841,
-0.942662, -0.943557, -0.943106, -0.943026, -0.943634, -0.942594,
-0.943894, -0.942554, -0.943703, -0.942948, -0.94317, -0.943531,
-0.942638, -0.94392, -0.942462, -0.943846, -0.942778, -0.943338,
-0.943394, -0.942717, -0.943912, -0.942395, -0.943979, -0.942602,
-0.943528, -0.943224, -0.942837, -0.943866, -0.942358, -0.944095,
-0.942425, -0.943736, -0.943021, -0.942999, -0.943775, -0.942359,
-0.944187, -0.942253, -0.943959, -0.942785, -0.943206, -0.943634,
-0.942404, -0.944248, -0.942093, -0.944194, -0.942515, -0.943464,
-0.943436, -0.942505, -0.944267, -0.941951, -0.944437, -0.942209,
-0.94378, -0.943168, -0.942674, -0.944233, -0.941837, -0.944687,
-0.941863, -0.944164, -0.942814, -0.94293, -0.944129, -0.94176,
-0.944943, -0.941463, -0.944643, -0.942341, -0.943307, -0.943927,
-0.941734, -0.945211, -0.940982, -0.945265, -0.941685, -0.943874,
-0.94357, -0.941787, -0.945509, -0.940349, -0.94615, -0.94069,
-0.944793, -0.942926, -0.941978, -0.945891, -0.939365, -0.947649,
-0.938883, -0.946588, -0.941543, -0.942523, -0.946568, -0.937203,
-0.951352, -0.933884, -0.952245, -0.936383, -0.945294, -0.949382,
-0.922301, -1
};
static const float WAVE_SQUARE_006[DEFAULT_WAVELEN] = {
8.88178e-16, 0.900593, 0.947941, 0.964729, 0.973404, 0.978773,
0.982473, 0.98521, 0.987342, 0.989063, 0.990494, 0.991709,
0.992758, 0.993675, 0.994484, 0.995203, 0.995845, 0.99642,
0.996936, 0.997399, 0.997813, 0.998183, 0.998512, 0.998802,
0.999056, 0.999275, 0.999463, 0.99962, 0.999747, 0.999848,
0.999922, 0.999971, 0.999997, 1, 0.999983, 0.999946,
0.99989, 0.999818, 0.999731, 0.999629, 0.999513, 0.999387,
0.99925, 0.999104, 0.99895, 0.99879, 0.998625, 0.998455,
0.998284, 0.99811, 0.997937, 0.997764, 0.997594, 0.997426,
0.997262, 0.997103, 0.99695, 0.996803, 0.996664, 0.996533,
0.99641, 0.996296, 0.996192, 0.996098, 0.996015, 0.995942,
0.995879, 0.995828, 0.995787, 0.995757, 0.995738, 0.99573,
0.995732, 0.995744, 0.995765, 0.995796, 0.995836, 0.995884,
0.99594, 0.996003, 0.996073, 0.996148, 0.996229, 0.996315,
0.996404, 0.996496, 0.996591, 0.996688, 0.996786, 0.996884,
0.996981, 0.997078, 0.997172, 0.997265, 0.997354, 0.99744,
0.997522, 0.997599, 0.997671, 0.997738, 0.997799, 0.997854,
0.997902, 0.997944, 0.997979, 0.998008, 0.998029, 0.998043,
0.99805, 0.99805, 0.998044, 0.99803, 0.998011, 0.997985,
0.997953, 0.997916, 0.997874, 0.997826, 0.997775, 0.997719,
0.99766, 0.997598, 0.997533, 0.997467, 0.997399, 0.99733,
0.99726, 0.99719, 0.997121, 0.997053, 0.996987, 0.996922,
0.99686, 0.9968, 0.996744, 0.996691, 0.996642, 0.996598,
0.996557, 0.996522, 0.996491, 0.996465, 0.996445, 0.996429,
0.996419, 0.996414, 0.996415, 0.99642, 0.996431, 0.996446,
0.996466, 0.996491, 0.99652, 0.996553, 0.99659, 0.996631,
0.996674, 0.99672, 0.996769, 0.996819, 0.996872, 0.996925,
0.996979, 0.997034, 0.997089, 0.997143, 0.997197, 0.997249,
0.9973, 0.997349, 0.997396, 0.99744, 0.997482, 0.99752,
0.997555, 0.997587, 0.997615, 0.997639, 0.997658, 0.997674,
0.997686, 0.997693, 0.997696, 0.997695, 0.997689, 0.99768,
0.997666, 0.997649, 0.997627, 0.997603, 0.997575, 0.997544,
0.99751, 0.997473, 0.997435, 0.997394, 0.997352, 0.997308,
0.997264, 0.997218, 0.997173, 0.997127, 0.997082, 0.997037,
0.996994, 0.996952, 0.996911, 0.996872, 0.996835, 0.996801,
0.99677, 0.996741, 0.996715, 0.996692, 0.996673, 0.996657,
0.996645, 0.996636, 0.996631, 0.996629, 0.996632, 0.996637,
0.996646, 0.996659, 0.996675, 0.996694, 0.996716, 0.996741,
0.996768, 0.996798, 0.99683, 0.996864, 0.996899, 0.996936,
0.996974, 0.997013, 0.997052, 0.997092, 0.997131, 0.99717,
0.997209, 0.997247, 0.997283, 0.997318, 0.997351, 0.997382,
0.997412, 0.997439, 0.997463, 0.997485, 0.997504, 0.99752,
0.997533, 0.997542, 0.997549, 0.997553, 0.997553, 0.99755,
0.997544, 0.997535, 0.997523, 0.997508, 0.99749, 0.99747,
0.997447, 0.997422, 0.997395, 0.997366, 0.997335, 0.997303,
0.99727, 0.997236, 0.997201, 0.997166, 0.997131, 0.997095,
0.997061, 0.997026, 0.996993, 0.996961, 0.99693, 0.996901,
0.996873, 0.996848, 0.996824, 0.996803, 0.996785, 0.996768,
0.996755, 0.996744, 0.996736, 0.996731, 0.996729, 0.99673,
0.996734, 0.99674, 0.996749, 0.996761, 0.996775, 0.996792,
0.996812, 0.996833, 0.996857, 0.996882, 0.996909, 0.996937,
0.996967, 0.996997, 0.997029, 0.99706, 0.997093, 0.997125,
0.997157, 0.997189, 0.99722, 0.99725, 0.997279, 0.997307,
0.997333, 0.997358, 0.99738, 0.997401, 0.99742, 0.997436,
0.99745, 0.997462, 0.997471, 0.997477, 0.997481, 0.997482,
0.99748, 0.997476, 0.997469, 0.997459, 0.997448, 0.997433,
0.997417, 0.997398, 0.997378, 0.997355, 0.997331, 0.997306,
0.997279, 0.997251, 0.997222, 0.997193, 0.997163, 0.997133,
0.997103, 0.997074, 0.997044, 0.997016, 0.996988, 0.996961,
0.996936, 0.996912, 0.996889, 0.996868, 0.99685, 0.996833,
0.996818, 0.996806, 0.996796, 0.996789, 0.996784, 0.996781,
0.996781, 0.996784, 0.996789, 0.996796, 0.996806, 0.996818,
0.996832, 0.996848, 0.996866, 0.996886, 0.996908, 0.996931,
0.996956, 0.996982, 0.997008, 0.997036, 0.997064, 0.997092,
0.99712, 0.997149, 0.997177, 0.997204, 0.997231, 0.997257,
0.997282, 0.997306, 0.997328, 0.997349, 0.997368, 0.997385,
0.9974, 0.997413, 0.997424, 0.997433, 0.997439, 0.997443,
0.997444, 0.997443, 0.99744, 0.997435, 0.997427, 0.997417,
0.997404, 0.99739, 0.997374, 0.997356, 0.997336, 0.997314,
0.997292, 0.997268, 0.997243, 0.997217, 0.99719, 0.997163,
0.997136, 0.997109, 0.997081, 0.997055, 0.997028, 0.997003,
0.996978, 0.996954, 0.996932, 0.996911, 0.996892, 0.996874,
0.996858, 0.996844, 0.996833, 0.996823, 0.996816, 0.99681,
0.996807, 0.996807, 0.996808, 0.996812, 0.996819, 0.996827,
0.996838, 0.99685, 0.996865, 0.996882, 0.9969, 0.99692,
0.996941, 0.996964, 0.996987, 0.997012, 0.997037, 0.997063,
0.99709, 0.997117, 0.997143, 0.99717, 0.997196, 0.997221,
0.997246, 0.997269, 0.997292, 0.997313, 0.997333, 0.997352,
0.997368, 0.997383, 0.997396, 0.997407, 0.997415, 0.997422,
0.997426, 0.997428, 0.997428, 0.997425, 0.99742, 0.997413,
0.997404, 0.997393, 0.99738, 0.997365, 0.997348, 0.997329,
0.997309, 0.997288, 0.997265, 0.997241, 0.997217, 0.997191,
0.997165, 0.997139, 0.997113, 0.997087, 0.997061, 0.997035,
0.99701, 0.996986, 0.996963, 0.996941, 0.996921, 0.996901,
0.996884, 0.996868, 0.996854, 0.996842, 0.996832, 0.996825,
0.996819, 0.996816, 0.996815, 0.996816, 0.996819, 0.996825,
0.996832, 0.996842, 0.996854, 0.996868, 0.996884, 0.996901,
0.996921, 0.996941, 0.996963, 0.996986, 0.99701, 0.997035,
0.997061, 0.997087, 0.997113, 0.997139, 0.997165, 0.997191,
0.997217, 0.997241, 0.997265, 0.997288, 0.997309, 0.997329,
0.997348, 0.997365, 0.99738, 0.997393, 0.997404, 0.997413,
0.99742, 0.997425, 0.997428, 0.997428, 0.997426, 0.997422,
0.997415, 0.997407, 0.997396, 0.997383, 0.997368, 0.997352,
0.997333, 0.997313, 0.997292, 0.997269, 0.997246, 0.997221,
0.997196, 0.99717, 0.997143, 0.997117, 0.99709, 0.997063,
0.997037, 0.997012, 0.996987, 0.996964, 0.996941, 0.99692,
0.9969, 0.996882, 0.996865, 0.99685, 0.996838, 0.996827,
0.996819, 0.996812, 0.996808, 0.996807, 0.996807, 0.99681,
0.996816, 0.996823, 0.996833, 0.996844, 0.996858, 0.996874,
0.996892, 0.996911, 0.996932, 0.996954, 0.996978, 0.997003,
0.997028, 0.997055, 0.997081, 0.997109, 0.997136, 0.997163,
0.99719, 0.997217, 0.997243, 0.997268, 0.997292, 0.997314,
0.997336, 0.997356, 0.997374, 0.99739, 0.997404, 0.997417,
0.997427, 0.997435, 0.99744, 0.997443, 0.997444, 0.997443,
0.997439, 0.997433, 0.997424, 0.997413, 0.9974, 0.997385,
0.997368, 0.997349, 0.997328, 0.997306, 0.997282, 0.997257,
0.997231, 0.997204, 0.997177, 0.997149, 0.99712, 0.997092,
0.997064, 0.997036, 0.997008, 0.996982, 0.996956, 0.996931,
0.996908, 0.996886, 0.996866, 0.996848, 0.996832, 0.996818,
0.996806, 0.996796, 0.996789, 0.996784, 0.996781, 0.996781,
0.996784, 0.996789, 0.996796, 0.996806, 0.996818, 0.996833,
0.99685, 0.996868, 0.996889, 0.996912, 0.996936, 0.996961,
0.996988, 0.997016, 0.997044, 0.997074, 0.997103, 0.997133,
0.997163, 0.997193, 0.997222, 0.997251, 0.997279, 0.997306,
0.997331, 0.997355, 0.997378, 0.997398, 0.997417, 0.997433,
0.997448, 0.997459, 0.997469, 0.997476, 0.99748, 0.997482,
0.997481, 0.997477, 0.997471, 0.997462, 0.99745, 0.997436,
0.99742, 0.997401, 0.99738, 0.997358, 0.997333, 0.997307,
0.997279, 0.99725, 0.99722, 0.997189, 0.997157, 0.997125,
0.997093, 0.99706, 0.997029, 0.996997, 0.996967, 0.996937,
0.996909, 0.996882, 0.996857, 0.996833, 0.996812, 0.996792,
0.996775, 0.996761, 0.996749, 0.99674, 0.996734, 0.99673,
0.996729, 0.996731, 0.996736, 0.996744, 0.996755, 0.996768,
0.996785, 0.996803, 0.996824, 0.996848, 0.996873, 0.996901,
0.99693, 0.996961, 0.996993, 0.997026, 0.997061, 0.997095,
0.997131, 0.997166, 0.997201, 0.997236, 0.99727, 0.997303,
0.997335, 0.997366, 0.997395, 0.997422, 0.997447, 0.99747,
0.99749, 0.997508, 0.997523, 0.997535, 0.997544, 0.99755,
0.997553, 0.997553, 0.997549, 0.997542, 0.997533, 0.99752,
0.997504, 0.997485, 0.997463, 0.997439, 0.997412, 0.997382,
0.997351, 0.997318, 0.997283, 0.997247, 0.997209, 0.99717,
0.997131, 0.997092, 0.997052, 0.997013, 0.996974, 0.996936,
0.996899, 0.996864, 0.99683, 0.996798, 0.996768, 0.996741,
0.996716, 0.996694, 0.996675, 0.996659, 0.996646, 0.996637,
0.996632, 0.996629, 0.996631, 0.996636, 0.996645, 0.996657,
0.996673, 0.996692, 0.996715, 0.996741, 0.99677, 0.996801,
0.996835, 0.996872, 0.996911, 0.996952, 0.996994, 0.997037,
0.997082, 0.997127, 0.997173, 0.997218, 0.997264, 0.997308,
0.997352, 0.997394, 0.997435, 0.997473, 0.99751, 0.997544,
0.997575, 0.997603, 0.997627, 0.997649, 0.997666, 0.99768,
0.997689, 0.997695, 0.997696, 0.997693, 0.997686, 0.997674,
0.997658, 0.997639, 0.997615, 0.997587, 0.997555, 0.99752,
0.997482, 0.99744, 0.997396, 0.997349, 0.9973, 0.997249,
0.997197, 0.997143, 0.997089, 0.997034, 0.996979, 0.996925,
0.996872, 0.996819, 0.996769, 0.99672, 0.996674, 0.996631,
0.99659, 0.996553, 0.99652, 0.996491, 0.996466, 0.996446,
0.996431, 0.99642, 0.996415, 0.996414, 0.996419, 0.996429,
0.996445, 0.996465, 0.996491, 0.996522, 0.996557, 0.996598,
0.996642, 0.996691, 0.996744, 0.9968, 0.99686, 0.996922,
0.996987, 0.997053, 0.997121, 0.99719, 0.99726, 0.99733,
0.997399, 0.997467, 0.997533, 0.997598, 0.99766, 0.997719,
0.997775, 0.997826, 0.997874, 0.997916, 0.997953, 0.997985,
0.998011, 0.99803, 0.998044, 0.99805, 0.99805, 0.998043,
0.998029, 0.998008, 0.997979, 0.997944, 0.997902, 0.997854,
0.997799, 0.997738, 0.997671, 0.997599, 0.997522, 0.99744,
0.997354, 0.997265, 0.997172, 0.997078, 0.996981, 0.996884,
0.996786, 0.996688, 0.996591, 0.996496, 0.996404, 0.996315,
0.996229, 0.996148, 0.996073, 0.996003, 0.99594, 0.995884,
0.995836, 0.995796, 0.995765, 0.995744, 0.995732, 0.99573,
0.995738, 0.995757, 0.995787, 0.995828, 0.995879, 0.995942,
0.996015, 0.996098, 0.996192, 0.996296, 0.99641, 0.996533,
0.996664, 0.996803, 0.99695, 0.997103, 0.997262, 0.997426,
0.997594, 0.997764, 0.997937, 0.99811, 0.998284, 0.998455,
0.998625, 0.99879, 0.99895, 0.999104, 0.99925, 0.999387,
0.999513, 0.999629, 0.999731, 0.999818, 0.99989, 0.999946,
0.999983, 1, 0.999997, 0.999971, 0.999922, 0.999848,
0.999747, 0.99962, 0.999463, 0.999275, 0.999056, 0.998802,
0.998512, 0.998183, 0.997813, 0.997399, 0.996936, 0.99642,
0.995845, 0.995203, 0.994484, 0.993675, 0.992758, 0.991709,
0.990494, 0.989063, 0.987342, 0.98521, 0.982473, 0.978773,
0.973404, 0.964729, 0.947941, 0.900593, 1.63203e-13, -0.900593,
-0.947941, -0.964729, -0.973404, -0.978773, -0.982473, -0.98521,
-0.987342, -0.989063, -0.990494, -0.991709, -0.992758, -0.993675,
-0.994484, -0.995203, -0.995845, -0.99642, -0.996936, -0.997399,
-0.997813, -0.998183, -0.998512, -0.998802, -0.999056, -0.999275,
-0.999463, -0.99962, -0.999747, -0.999848, -0.999922, -0.999971,
-0.999997, -1, -0.999983, -0.999946, -0.99989, -0.999818,
-0.999731, -0.999629, -0.999513, -0.999387, -0.99925, -0.999104,
-0.99895, -0.99879, -0.998625, -0.998455, -0.998284, -0.99811,
-0.997937, -0.997764, -0.997594, -0.997426, -0.997262, -0.997103,
-0.99695, -0.996803, -0.996664, -0.996533, -0.99641, -0.996296,
-0.996192, -0.996098, -0.996015, -0.995942, -0.995879, -0.995828,
-0.995787, -0.995757, -0.995738, -0.99573, -0.995732, -0.995744,
-0.995765, -0.995796, -0.995836, -0.995884, -0.99594, -0.996003,
-0.996073, -0.996148, -0.996229, -0.996315, -0.996404, -0.996496,
-0.996591, -0.996688, -0.996786, -0.996884, -0.996981, -0.997078,
-0.997172, -0.997265, -0.997354, -0.99744, -0.997522, -0.997599,
-0.997671, -0.997738, -0.997799, -0.997854, -0.997902, -0.997944,
-0.997979, -0.998008, -0.998029, -0.998043, -0.99805, -0.99805,
-0.998044, -0.99803, -0.998011, -0.997985, -0.997953, -0.997916,
-0.997874, -0.997826, -0.997775, -0.997719, -0.99766, -0.997598,
-0.997533, -0.997467, -0.997399, -0.99733, -0.99726, -0.99719,
-0.997121, -0.997053, -0.996987, -0.996922, -0.99686, -0.9968,
-0.996744, -0.996691, -0.996642, -0.996598, -0.996557, -0.996522,
-0.996491, -0.996465, -0.996445, -0.996429, -0.996419, -0.996414,
-0.996415, -0.99642, -0.996431, -0.996446, -0.996466, -0.996491,
-0.99652, -0.996553, -0.99659, -0.996631, -0.996674, -0.99672,
-0.996769, -0.996819, -0.996872, -0.996925, -0.996979, -0.997034,
-0.997089, -0.997143, -0.997197, -0.997249, -0.9973, -0.997349,
-0.997396, -0.99744, -0.997482, -0.99752, -0.997555, -0.997587,
-0.997615, -0.997639, -0.997658, -0.997674, -0.997686, -0.997693,
-0.997696, -0.997695, -0.997689, -0.99768, -0.997666, -0.997649,
-0.997627, -0.997603, -0.997575, -0.997544, -0.99751, -0.997473,
-0.997435, -0.997394, -0.997352, -0.997308, -0.997264, -0.997218,
-0.997173, -0.997127, -0.997082, -0.997037, -0.996994, -0.996952,
-0.996911, -0.996872, -0.996835, -0.996801, -0.99677, -0.996741,
-0.996715, -0.996692, -0.996673, -0.996657, -0.996645, -0.996636,
-0.996631, -0.996629, -0.996632, -0.996637, -0.996646, -0.996659,
-0.996675, -0.996694, -0.996716, -0.996741, -0.996768, -0.996798,
-0.99683, -0.996864, -0.996899, -0.996936, -0.996974, -0.997013,
-0.997052, -0.997092, -0.997131, -0.99717, -0.997209, -0.997247,
-0.997283, -0.997318, -0.997351, -0.997382, -0.997412, -0.997439,
-0.997463, -0.997485, -0.997504, -0.99752, -0.997533, -0.997542,
-0.997549, -0.997553, -0.997553, -0.99755, -0.997544, -0.997535,
-0.997523, -0.997508, -0.99749, -0.99747, -0.997447, -0.997422,
-0.997395, -0.997366, -0.997335, -0.997303, -0.99727, -0.997236,
-0.997201, -0.997166, -0.997131, -0.997095, -0.997061, -0.997026,
-0.996993, -0.996961, -0.99693, -0.996901, -0.996873, -0.996848,
-0.996824, -0.996803, -0.996785, -0.996768, -0.996755, -0.996744,
-0.996736, -0.996731, -0.996729, -0.99673, -0.996734, -0.99674,
-0.996749, -0.996761, -0.996775, -0.996792, -0.996812, -0.996833,
-0.996857, -0.996882, -0.996909, -0.996937, -0.996967, -0.996997,
-0.997029, -0.99706, -0.997093, -0.997125, -0.997157, -0.997189,
-0.99722, -0.99725, -0.997279, -0.997307, -0.997333, -0.997358,
-0.99738, -0.997401, -0.99742, -0.997436, -0.99745, -0.997462,
-0.997471, -0.997477, -0.997481, -0.997482, -0.99748, -0.997476,
-0.997469, -0.997459, -0.997448, -0.997433, -0.997417, -0.997398,
-0.997378, -0.997355, -0.997331, -0.997306, -0.997279, -0.997251,
-0.997222, -0.997193, -0.997163, -0.997133, -0.997103, -0.997074,
-0.997044, -0.997016, -0.996988, -0.996961, -0.996936, -0.996912,
-0.996889, -0.996868, -0.99685, -0.996833, -0.996818, -0.996806,
-0.996796, -0.996789, -0.996784, -0.996781, -0.996781, -0.996784,
-0.996789, -0.996796, -0.996806, -0.996818, -0.996832, -0.996848,
-0.996866, -0.996886, -0.996908, -0.996931, -0.996956, -0.996982,
-0.997008, -0.997036, -0.997064, -0.997092, -0.99712, -0.997149,
-0.997177, -0.997204, -0.997231, -0.997257, -0.997282, -0.997306,
-0.997328, -0.997349, -0.997368, -0.997385, -0.9974, -0.997413,
-0.997424, -0.997433, -0.997439, -0.997443, -0.997444, -0.997443,
-0.99744, -0.997435, -0.997427, -0.997417, -0.997404, -0.99739,
-0.997374, -0.997356, -0.997336, -0.997314, -0.997292, -0.997268,
-0.997243, -0.997217, -0.99719, -0.997163, -0.997136, -0.997109,
-0.997081, -0.997055, -0.997028, -0.997003, -0.996978, -0.996954,
-0.996932, -0.996911, -0.996892, -0.996874, -0.996858, -0.996844,
-0.996833, -0.996823, -0.996816, -0.99681, -0.996807, -0.996807,
-0.996808, -0.996812, -0.996819, -0.996827, -0.996838, -0.99685,
-0.996865, -0.996882, -0.9969, -0.99692, -0.996941, -0.996964,
-0.996987, -0.997012, -0.997037, -0.997063, -0.99709, -0.997117,
-0.997143, -0.99717, -0.997196, -0.997221, -0.997246, -0.997269,
-0.997292, -0.997313, -0.997333, -0.997352, -0.997368, -0.997383,
-0.997396, -0.997407, -0.997415, -0.997422, -0.997426, -0.997428,
-0.997428, -0.997425, -0.99742, -0.997413, -0.997404, -0.997393,
-0.99738, -0.997365, -0.997348, -0.997329, -0.997309, -0.997288,
-0.997265, -0.997241, -0.997217, -0.997191, -0.997165, -0.997139,
-0.997113, -0.997087, -0.997061, -0.997035, -0.99701, -0.996986,
-0.996963, -0.996941, -0.996921, -0.996901, -0.996884, -0.996868,
-0.996854, -0.996842, -0.996832, -0.996825, -0.996819, -0.996816,
-0.996815, -0.996816, -0.996819, -0.996825, -0.996832, -0.996842,
-0.996854, -0.996868, -0.996884, -0.996901, -0.996921, -0.996941,
-0.996963, -0.996986, -0.99701, -0.997035, -0.997061, -0.997087,
-0.997113, -0.997139, -0.997165, -0.997191, -0.997217, -0.997241,
-0.997265, -0.997288, -0.997309, -0.997329, -0.997348, -0.997365,
-0.99738, -0.997393, -0.997404, -0.997413, -0.99742, -0.997425,
-0.997428, -0.997428, -0.997426, -0.997422, -0.997415, -0.997407,
-0.997396, -0.997383, -0.997368, -0.997352, -0.997333, -0.997313,
-0.997292, -0.997269, -0.997246, -0.997221, -0.997196, -0.99717,
-0.997143, -0.997117, -0.99709, -0.997063, -0.997037, -0.997012,
-0.996987, -0.996964, -0.996941, -0.99692, -0.9969, -0.996882,
-0.996865, -0.99685, -0.996838, -0.996827, -0.996819, -0.996812,
-0.996808, -0.996807, -0.996807, -0.99681, -0.996816, -0.996823,
-0.996833, -0.996844, -0.996858, -0.996874, -0.996892, -0.996911,
-0.996932, -0.996954, -0.996978, -0.997003, -0.997028, -0.997055,
-0.997081, -0.997109, -0.997136, -0.997163, -0.99719, -0.997217,
-0.997243, -0.997268, -0.997292, -0.997314, -0.997336, -0.997356,
-0.997374, -0.99739, -0.997404, -0.997417, -0.997427, -0.997435,
-0.99744, -0.997443, -0.997444, -0.997443, -0.997439, -0.997433,
-0.997424, -0.997413, -0.9974, -0.997385, -0.997368, -0.997349,
-0.997328, -0.997306, -0.997282, -0.997257, -0.997231, -0.997204,
-0.997177, -0.997149, -0.99712, -0.997092, -0.997064, -0.997036,
-0.997008, -0.996982, -0.996956, -0.996931, -0.996908, -0.996886,
-0.996866, -0.996848, -0.996832, -0.996818, -0.996806, -0.996796,
-0.996789, -0.996784, -0.996781, -0.996781, -0.996784, -0.996789,
-0.996796, -0.996806, -0.996818, -0.996833, -0.99685, -0.996868,
-0.996889, -0.996912, -0.996936, -0.996961, -0.996988, -0.997016,
-0.997044, -0.997074, -0.997103, -0.997133, -0.997163, -0.997193,
-0.997222, -0.997251, -0.997279, -0.997306, -0.997331, -0.997355,
-0.997378, -0.997398, -0.997417, -0.997433, -0.997448, -0.997459,
-0.997469, -0.997476, -0.99748, -0.997482, -0.997481, -0.997477,
-0.997471, -0.997462, -0.99745, -0.997436, -0.99742, -0.997401,
-0.99738, -0.997358, -0.997333, -0.997307, -0.997279, -0.99725,
-0.99722, -0.997189, -0.997157, -0.997125, -0.997093, -0.99706,
-0.997029, -0.996997, -0.996967, -0.996937, -0.996909, -0.996882,
-0.996857, -0.996833, -0.996812, -0.996792, -0.996775, -0.996761,
-0.996749, -0.99674, -0.996734, -0.99673, -0.996729, -0.996731,
-0.996736, -0.996744, -0.996755, -0.996768, -0.996785, -0.996803,
-0.996824, -0.996848, -0.996873, -0.996901, -0.99693, -0.996961,
-0.996993, -0.997026, -0.997061, -0.997095, -0.997131, -0.997166,
-0.997201, -0.997236, -0.99727, -0.997303, -0.997335, -0.997366,
-0.997395, -0.997422, -0.997447, -0.99747, -0.99749, -0.997508,
-0.997523, -0.997535, -0.997544, -0.99755, -0.997553, -0.997553,
-0.997549, -0.997542, -0.997533, -0.99752, -0.997504, -0.997485,
-0.997463, -0.997439, -0.997412, -0.997382, -0.997351, -0.997318,
-0.997283, -0.997247, -0.997209, -0.99717, -0.997131, -0.997092,
-0.997052, -0.997013, -0.996974, -0.996936, -0.996899, -0.996864,
-0.99683, -0.996798, -0.996768, -0.996741, -0.996716, -0.996694,
-0.996675, -0.996659, -0.996646, -0.996637, -0.996632, -0.996629,
-0.996631, -0.996636, -0.996645, -0.996657, -0.996673, -0.996692,
-0.996715, -0.996741, -0.99677, -0.996801, -0.996835, -0.996872,
-0.996911, -0.996952, -0.996994, -0.997037, -0.997082, -0.997127,
-0.997173, -0.997218, -0.997264, -0.997308, -0.997352, -0.997394,
-0.997435, -0.997473, -0.99751, -0.997544, -0.997575, -0.997603,
-0.997627, -0.997649, -0.997666, -0.99768, -0.997689, -0.997695,
-0.997696, -0.997693, -0.997686, -0.997674, -0.997658, -0.997639,
-0.997615, -0.997587, -0.997555, -0.99752, -0.997482, -0.99744,
-0.997396, -0.997349, -0.9973, -0.997249, -0.997197, -0.997143,
-0.997089, -0.997034, -0.996979, -0.996925, -0.996872, -0.996819,
-0.996769, -0.99672, -0.996674, -0.996631, -0.99659, -0.996553,
-0.99652, -0.996491, -0.996466, -0.996446, -0.996431, -0.99642,
-0.996415, -0.996414, -0.996419, -0.996429, -0.996445, -0.996465,
-0.996491, -0.996522, -0.996557, -0.996598, -0.996642, -0.996691,
-0.996744, -0.9968, -0.99686, -0.996922, -0.996987, -0.997053,
-0.997121, -0.99719, -0.99726, -0.99733, -0.997399, -0.997467,
-0.997533, -0.997598, -0.99766, -0.997719, -0.997775, -0.997826,
-0.997874, -0.997916, -0.997953, -0.997985, -0.998011, -0.99803,
-0.998044, -0.99805, -0.99805, -0.998043, -0.998029, -0.998008,
-0.997979, -0.997944, -0.997902, -0.997854, -0.997799, -0.997738,
-0.997671, -0.997599, -0.997522, -0.99744, -0.997354, -0.997265,
-0.997172, -0.997078, -0.996981, -0.996884, -0.996786, -0.996688,
-0.996591, -0.996496, -0.996404, -0.996315, -0.996229, -0.996148,
-0.996073, -0.996003, -0.99594, -0.995884, -0.995836, -0.995796,
-0.995765, -0.995744, -0.995732, -0.99573, -0.995738, -0.995757,
-0.995787, -0.995828, -0.995879, -0.995942, -0.996015, -0.996098,
-0.996192, -0.996296, -0.99641, -0.996533, -0.996664, -0.996803,
-0.99695, -0.997103, -0.997262, -0.997426, -0.997594, -0.997764,
-0.997937, -0.99811, -0.998284, -0.998455, -0.998625, -0.99879,
-0.99895, -0.999104, -0.99925, -0.999387, -0.999513, -0.999629,
-0.999731, -0.999818, -0.99989, -0.999946, -0.999983, -1,
-0.999997, -0.999971, -0.999922, -0.999848, -0.999747, -0.99962,
-0.999463, -0.999275, -0.999056, -0.998802, -0.998512, -0.998183,
-0.997813, -0.997399, -0.996936, -0.99642, -0.995845, -0.995203,
-0.994484, -0.993675, -0.992758, -0.991709, -0.990494, -0.989063,
-0.987342, -0.98521, -0.982473, -0.978773, -0.973404, -0.964729,
-0.947941, -0.900593
};
static const float WAVE_SQUARE_018[DEFAULT_WAVELEN] = {
6.66134e-16, 1, 0.7662, 0.904002, 0.806482, 0.881657,
0.820765, 0.871693, 0.828145, 0.865983, 0.832713, 0.862232,
0.83586, 0.859544, 0.838189, 0.857501, 0.840002, 0.855877,
0.841467, 0.854546, 0.842684, 0.853427, 0.843718, 0.852469,
0.84461, 0.851635, 0.84539, 0.850903, 0.846079, 0.850254,
0.846691, 0.849676, 0.847238, 0.849159, 0.847728, 0.848695,
0.848167, 0.848278, 0.848562, 0.847905, 0.848915, 0.847571,
0.84923, 0.847273, 0.849511, 0.84701, 0.849758, 0.846778,
0.849975, 0.846575, 0.850163, 0.846402, 0.850323, 0.846254,
0.850458, 0.846132, 0.850567, 0.846035, 0.850654, 0.84596,
0.850718, 0.845907, 0.85076, 0.845874, 0.850783, 0.845861,
0.850787, 0.845866, 0.850773, 0.845889, 0.850742, 0.845928,
0.850695, 0.845982, 0.850634, 0.846049, 0.85056, 0.84613,
0.850473, 0.846222, 0.850375, 0.846325, 0.850268, 0.846438,
0.850151, 0.846559, 0.850026, 0.846687, 0.849895, 0.846821,
0.849758, 0.84696, 0.849617, 0.847104, 0.849472, 0.84725,
0.849325, 0.847398, 0.849176, 0.847547, 0.849027, 0.847695,
0.848879, 0.847843, 0.848732, 0.847989, 0.848587, 0.848132,
0.848446, 0.848271, 0.848309, 0.848406, 0.848177, 0.848535,
0.84805, 0.848659, 0.847929, 0.848776, 0.847816, 0.848887,
0.847709, 0.848989, 0.84761, 0.849084, 0.84752, 0.84917,
0.847438, 0.849248, 0.847365, 0.849316, 0.847301, 0.849376,
0.847246, 0.849426, 0.847201, 0.849467, 0.847165, 0.849498,
0.847138, 0.84952, 0.847121, 0.849533, 0.847112, 0.849536,
0.847113, 0.849531, 0.847123, 0.849517, 0.847141, 0.849495,
0.847167, 0.849465, 0.847201, 0.849427, 0.847242, 0.849383,
0.84729, 0.849331, 0.847345, 0.849274, 0.847405, 0.849211,
0.847471, 0.849143, 0.847541, 0.84907, 0.847616, 0.848994,
0.847694, 0.848914, 0.847775, 0.848832, 0.847858, 0.848748,
0.847943, 0.848662, 0.848029, 0.848576, 0.848115, 0.84849,
0.848201, 0.848404, 0.848286, 0.84832, 0.84837, 0.848237,
0.848452, 0.848156, 0.848532, 0.848078, 0.848608, 0.848003,
0.848681, 0.847932, 0.84875, 0.847865, 0.848815, 0.847802,
0.848875, 0.847745, 0.84893, 0.847693, 0.84898, 0.847646,
0.849023, 0.847605, 0.849062, 0.84757, 0.849094, 0.847541,
0.84912, 0.847518, 0.84914, 0.847501, 0.849153, 0.847491,
0.84916, 0.847486, 0.849161, 0.847488, 0.849156, 0.847496,
0.849145, 0.84751, 0.849129, 0.84753, 0.849106, 0.847555,
0.849078, 0.847586, 0.849045, 0.847621, 0.849008, 0.847661,
0.848966, 0.847705, 0.848919, 0.847753, 0.848869, 0.847805,
0.848816, 0.84786, 0.84876, 0.847917, 0.848702, 0.847977,
0.848641, 0.848038, 0.848579, 0.848101, 0.848516, 0.848164,
0.848452, 0.848228, 0.848388, 0.848292, 0.848325, 0.848355,
0.848262, 0.848417, 0.8482, 0.848478, 0.848141, 0.848537,
0.848083, 0.848593, 0.848027, 0.848648, 0.847975, 0.848699,
0.847925, 0.848746, 0.847879, 0.848791, 0.847837, 0.848831,
0.847799, 0.848867, 0.847765, 0.848899, 0.847735, 0.848926,
0.84771, 0.848949, 0.84769, 0.848967, 0.847674, 0.848979,
0.847664, 0.848987, 0.847658, 0.848991, 0.847658, 0.848989,
0.847662, 0.848982, 0.847671, 0.848971, 0.847685, 0.848955,
0.847703, 0.848934, 0.847726, 0.848909, 0.847753, 0.848881,
0.847783, 0.848848, 0.847818, 0.848812, 0.847855, 0.848773,
0.847896, 0.84873, 0.84794, 0.848685, 0.847986, 0.848638,
0.848034, 0.848589, 0.848084, 0.848538, 0.848135, 0.848487,
0.848188, 0.848434, 0.84824, 0.848381, 0.848293, 0.848328,
0.848346, 0.848276, 0.848398, 0.848224, 0.84845, 0.848173,
0.8485, 0.848124, 0.848548, 0.848076, 0.848594, 0.848031,
0.848639, 0.847988, 0.84868, 0.847948, 0.848719, 0.847911,
0.848754, 0.847878, 0.848786, 0.847847, 0.848814, 0.847821,
0.848839, 0.847798, 0.84886, 0.847779, 0.848876, 0.847765,
0.848889, 0.847754, 0.848897, 0.847748, 0.848901, 0.847746,
0.848901, 0.847749, 0.848897, 0.847755, 0.848888, 0.847766,
0.848876, 0.84778, 0.848859, 0.847799, 0.848839, 0.847821,
0.848815, 0.847847, 0.848787, 0.847876, 0.848756, 0.847908,
0.848722, 0.847944, 0.848686, 0.847981, 0.848647, 0.848022,
0.848606, 0.848064, 0.848563, 0.848108, 0.848518, 0.848153,
0.848472, 0.848199, 0.848426, 0.848246, 0.848378, 0.848293,
0.848331, 0.848341, 0.848284, 0.848388, 0.848237, 0.848434,
0.848191, 0.84848, 0.848146, 0.848524, 0.848103, 0.848566,
0.848062, 0.848607, 0.848022, 0.848645, 0.847985, 0.848681,
0.847951, 0.848714, 0.847919, 0.848744, 0.847891, 0.848771,
0.847865, 0.848794, 0.847843, 0.848814, 0.847825, 0.84883,
0.847811, 0.848843, 0.8478, 0.848852, 0.847793, 0.848857,
0.84779, 0.848858, 0.847791, 0.848855, 0.847796, 0.848848,
0.847805, 0.848837, 0.847818, 0.848823, 0.847834, 0.848805,
0.847854, 0.848783, 0.847877, 0.848758, 0.847903, 0.84873,
0.847933, 0.8487, 0.847965, 0.848666, 0.848, 0.84863,
0.848037, 0.848592, 0.848076, 0.848552, 0.848117, 0.84851,
0.848159, 0.848467, 0.848203, 0.848423, 0.848247, 0.848379,
0.848292, 0.848334, 0.848337, 0.848289, 0.848382, 0.848244,
0.848426, 0.8482, 0.84847, 0.848157, 0.848512, 0.848115,
0.848553, 0.848075, 0.848592, 0.848037, 0.848629, 0.848001,
0.848664, 0.847967, 0.848697, 0.847936, 0.848727, 0.847908,
0.848753, 0.847882, 0.848777, 0.84786, 0.848797, 0.847842,
0.848814, 0.847827, 0.848827, 0.847816, 0.848837, 0.847808,
0.848842, 0.847804, 0.848844, 0.847804, 0.848842, 0.847808,
0.848837, 0.847816, 0.848827, 0.847827, 0.848814, 0.847842,
0.848797, 0.84786, 0.848777, 0.847882, 0.848753, 0.847908,
0.848727, 0.847936, 0.848697, 0.847967, 0.848664, 0.848001,
0.848629, 0.848037, 0.848592, 0.848075, 0.848553, 0.848115,
0.848512, 0.848157, 0.84847, 0.8482, 0.848426, 0.848244,
0.848382, 0.848289, 0.848337, 0.848334, 0.848292, 0.848379,
0.848247, 0.848423, 0.848203, 0.848467, 0.848159, 0.84851,
0.848117, 0.848552, 0.848076, 0.848592, 0.848037, 0.84863,
0.848, 0.848666, 0.847965, 0.8487, 0.847933, 0.84873,
0.847903, 0.848758, 0.847877, 0.848783, 0.847854, 0.848805,
0.847834, 0.848823, 0.847818, 0.848837, 0.847805, 0.848848,
0.847796, 0.848855, 0.847791, 0.848858, 0.84779, 0.848857,
0.847793, 0.848852, 0.8478, 0.848843, 0.847811, 0.84883,
0.847825, 0.848814, 0.847843, 0.848794, 0.847865, 0.848771,
0.847891, 0.848744, 0.847919, 0.848714, 0.847951, 0.848681,
0.847985, 0.848645, 0.848022, 0.848607, 0.848062, 0.848566,
0.848103, 0.848524, 0.848146, 0.84848, 0.848191, 0.848434,
0.848237, 0.848388, 0.848284, 0.848341, 0.848331, 0.848293,
0.848378, 0.848246, 0.848426, 0.848199, 0.848472, 0.848153,
0.848518, 0.848108, 0.848563, 0.848064, 0.848606, 0.848022,
0.848647, 0.847981, 0.848686, 0.847944, 0.848722, 0.847908,
0.848756, 0.847876, 0.848787, 0.847847, 0.848815, 0.847821,
0.848839, 0.847799, 0.848859, 0.84778, 0.848876, 0.847766,
0.848888, 0.847755, 0.848897, 0.847749, 0.848901, 0.847746,
0.848901, 0.847748, 0.848897, 0.847754, 0.848889, 0.847765,
0.848876, 0.847779, 0.84886, 0.847798, 0.848839, 0.847821,
0.848814, 0.847847, 0.848786, 0.847878, 0.848754, 0.847911,
0.848719, 0.847948, 0.84868, 0.847988, 0.848639, 0.848031,
0.848594, 0.848076, 0.848548, 0.848124, 0.8485, 0.848173,
0.84845, 0.848224, 0.848398, 0.848276, 0.848346, 0.848328,
0.848293, 0.848381, 0.84824, 0.848434, 0.848188, 0.848487,
0.848135, 0.848538, 0.848084, 0.848589, 0.848034, 0.848638,
0.847986, 0.848685, 0.84794, 0.84873, 0.847896, 0.848773,
0.847855, 0.848812, 0.847818, 0.848848, 0.847783, 0.848881,
0.847753, 0.848909, 0.847726, 0.848934, 0.847703, 0.848955,
0.847685, 0.848971, 0.847671, 0.848982, 0.847662, 0.848989,
0.847658, 0.848991, 0.847658, 0.848987, 0.847664, 0.848979,
0.847674, 0.848967, 0.84769, 0.848949, 0.84771, 0.848926,
0.847735, 0.848899, 0.847765, 0.848867, 0.847799, 0.848831,
0.847837, 0.848791, 0.847879, 0.848746, 0.847925, 0.848699,
0.847975, 0.848648, 0.848027, 0.848593, 0.848083, 0.848537,
0.848141, 0.848478, 0.8482, 0.848417, 0.848262, 0.848355,
0.848325, 0.848292, 0.848388, 0.848228, 0.848452, 0.848164,
0.848516, 0.848101, 0.848579, 0.848038, 0.848641, 0.847977,
0.848702, 0.847917, 0.84876, 0.84786, 0.848816, 0.847805,
0.848869, 0.847753, 0.848919, 0.847705, 0.848966, 0.847661,
0.849008, 0.847621, 0.849045, 0.847586, 0.849078, 0.847555,
0.849106, 0.84753, 0.849129, 0.84751, 0.849145, 0.847496,
0.849156, 0.847488, 0.849161, 0.847486, 0.84916, 0.847491,
0.849153, 0.847501, 0.84914, 0.847518, 0.84912, 0.847541,
0.849094, 0.84757, 0.849062, 0.847605, 0.849023, 0.847646,
0.84898, 0.847693, 0.84893, 0.847745, 0.848875, 0.847802,
0.848815, 0.847865, 0.84875, 0.847932, 0.848681, 0.848003,
0.848608, 0.848078, 0.848532, 0.848156, 0.848452, 0.848237,
0.84837, 0.84832, 0.848286, 0.848404, 0.848201, 0.84849,
0.848115, 0.848576, 0.848029, 0.848662, 0.847943, 0.848748,
0.847858, 0.848832, 0.847775, 0.848914, 0.847694, 0.848994,
0.847616, 0.84907, 0.847541, 0.849143, 0.847471, 0.849211,
0.847405, 0.849274, 0.847345, 0.849331, 0.84729, 0.849383,
0.847242, 0.849427, 0.847201, 0.849465, 0.847167, 0.849495,
0.847141, 0.849517, 0.847123, 0.849531, 0.847113, 0.849536,
0.847112, 0.849533, 0.847121, 0.84952, 0.847138, 0.849498,
0.847165, 0.849467, 0.847201, 0.849426, 0.847246, 0.849376,
0.847301, 0.849316, 0.847365, 0.849248, 0.847438, 0.84917,
0.84752, 0.849084, 0.84761, 0.848989, 0.847709, 0.848887,
0.847816, 0.848776, 0.847929, 0.848659, 0.84805, 0.848535,
0.848177, 0.848406, 0.848309, 0.848271, 0.848446, 0.848132,
0.848587, 0.847989, 0.848732, 0.847843, 0.848879, 0.847695,
0.849027, 0.847547, 0.849176, 0.847398, 0.849325, 0.84725,
0.849472, 0.847104, 0.849617, 0.84696, 0.849758, 0.846821,
0.849895, 0.846687, 0.850026, 0.846559, 0.850151, 0.846438,
0.850268, 0.846325, 0.850375, 0.846222, 0.850473, 0.84613,
0.85056, 0.846049, 0.850634, 0.845982, 0.850695, 0.845928,
0.850742, 0.845889, 0.850773, 0.845866, 0.850787, 0.845861,
0.850783, 0.845874, 0.85076, 0.845907, 0.850718, 0.84596,
0.850654, 0.846035, 0.850567, 0.846132, 0.850458, 0.846254,
0.850323, 0.846402, 0.850163, 0.846575, 0.849975, 0.846778,
0.849758, 0.84701, 0.849511, 0.847273, 0.84923, 0.847571,
0.848915, 0.847905, 0.848562, 0.848278, 0.848167, 0.848695,
0.847728, 0.849159, 0.847238, 0.849676, 0.846691, 0.850254,
0.846079, 0.850903, 0.84539, 0.851635, 0.84461, 0.852469,
0.843718, 0.853427, 0.842684, 0.854546, 0.841467, 0.855877,
0.840002, 0.857501, 0.838189, 0.859544, 0.83586, 0.862232,
0.832713, 0.865983, 0.828145, 0.871693, 0.820765, 0.881657,
0.806482, 0.904002, 0.7662, 1, 6.99441e-14, -1,
-0.7662, -0.904002, -0.806482, -0.881657, -0.820765, -0.871693,
-0.828145, -0.865983, -0.832713, -0.862232, -0.83586, -0.859544,
-0.838189, -0.857501, -0.840002, -0.855877, -0.841467, -0.854546,
-0.842684, -0.853427, -0.843718, -0.852469, -0.84461, -0.851635,
-0.84539, -0.850903, -0.846079, -0.850254, -0.846691, -0.849676,
-0.847238, -0.849159, -0.847728, -0.848695, -0.848167, -0.848278,
-0.848562, -0.847905, -0.848915, -0.847571, -0.84923, -0.847273,
-0.849511, -0.84701, -0.849758, -0.846778, -0.849975, -0.846575,
-0.850163, -0.846402, -0.850323, -0.846254, -0.850458, -0.846132,
-0.850567, -0.846035, -0.850654, -0.84596, -0.850718, -0.845907,
-0.85076, -0.845874, -0.850783, -0.845861, -0.850787, -0.845866,
-0.850773, -0.845889, -0.850742, -0.845928, -0.850695, -0.845982,
-0.850634, -0.846049, -0.85056, -0.84613, -0.850473, -0.846222,
-0.850375, -0.846325, -0.850268, -0.846438, -0.850151, -0.846559,
-0.850026, -0.846687, -0.849895, -0.846821, -0.849758, -0.84696,
-0.849617, -0.847104, -0.849472, -0.84725, -0.849325, -0.847398,
-0.849176, -0.847547, -0.849027, -0.847695, -0.848879, -0.847843,
-0.848732, -0.847989, -0.848587, -0.848132, -0.848446, -0.848271,
-0.848309, -0.848406, -0.848177, -0.848535, -0.84805, -0.848659,
-0.847929, -0.848776, -0.847816, -0.848887, -0.847709, -0.848989,
-0.84761, -0.849084, -0.84752, -0.84917, -0.847438, -0.849248,
-0.847365, -0.849316, -0.847301, -0.849376, -0.847246, -0.849426,
-0.847201, -0.849467, -0.847165, -0.849498, -0.847138, -0.84952,
-0.847121, -0.849533, -0.847112, -0.849536, -0.847113, -0.849531,
-0.847123, -0.849517, -0.847141, -0.849495, -0.847167, -0.849465,
-0.847201, -0.849427, -0.847242, -0.849383, -0.84729, -0.849331,
-0.847345, -0.849274, -0.847405, -0.849211, -0.847471, -0.849143,
-0.847541, -0.84907, -0.847616, -0.848994, -0.847694, -0.848914,
-0.847775, -0.848832, -0.847858, -0.848748, -0.847943, -0.848662,
-0.848029, -0.848576, -0.848115, -0.84849, -0.848201, -0.848404,
-0.848286, -0.84832, -0.84837, -0.848237, -0.848452, -0.848156,
-0.848532, -0.848078, -0.848608, -0.848003, -0.848681, -0.847932,
-0.84875, -0.847865, -0.848815, -0.847802, -0.848875, -0.847745,
-0.84893, -0.847693, -0.84898, -0.847646, -0.849023, -0.847605,
-0.849062, -0.84757, -0.849094, -0.847541, -0.84912, -0.847518,
-0.84914, -0.847501, -0.849153, -0.847491, -0.84916, -0.847486,
-0.849161, -0.847488, -0.849156, -0.847496, -0.849145, -0.84751,
-0.849129, -0.84753, -0.849106, -0.847555, -0.849078, -0.847586,
-0.849045, -0.847621, -0.849008, -0.847661, -0.848966, -0.847705,
-0.848919, -0.847753, -0.848869, -0.847805, -0.848816, -0.84786,
-0.84876, -0.847917, -0.848702, -0.847977, -0.848641, -0.848038,
-0.848579, -0.848101, -0.848516, -0.848164, -0.848452, -0.848228,
-0.848388, -0.848292, -0.848325, -0.848355, -0.848262, -0.848417,
-0.8482, -0.848478, -0.848141, -0.848537, -0.848083, -0.848593,
-0.848027, -0.848648, -0.847975, -0.848699, -0.847925, -0.848746,
-0.847879, -0.848791, -0.847837, -0.848831, -0.847799, -0.848867,
-0.847765, -0.848899, -0.847735, -0.848926, -0.84771, -0.848949,
-0.84769, -0.848967, -0.847674, -0.848979, -0.847664, -0.848987,
-0.847658, -0.848991, -0.847658, -0.848989, -0.847662, -0.848982,
-0.847671, -0.848971, -0.847685, -0.848955, -0.847703, -0.848934,
-0.847726, -0.848909, -0.847753, -0.848881, -0.847783, -0.848848,
-0.847818, -0.848812, -0.847855, -0.848773, -0.847896, -0.84873,
-0.84794, -0.848685, -0.847986, -0.848638, -0.848034, -0.848589,
-0.848084, -0.848538, -0.848135, -0.848487, -0.848188, -0.848434,
-0.84824, -0.848381, -0.848293, -0.848328, -0.848346, -0.848276,
-0.848398, -0.848224, -0.84845, -0.848173, -0.8485, -0.848124,
-0.848548, -0.848076, -0.848594, -0.848031, -0.848639, -0.847988,
-0.84868, -0.847948, -0.848719, -0.847911, -0.848754, -0.847878,
-0.848786, -0.847847, -0.848814, -0.847821, -0.848839, -0.847798,
-0.84886, -0.847779, -0.848876, -0.847765, -0.848889, -0.847754,
-0.848897, -0.847748, -0.848901, -0.847746, -0.848901, -0.847749,
-0.848897, -0.847755, -0.848888, -0.847766, -0.848876, -0.84778,
-0.848859, -0.847799, -0.848839, -0.847821, -0.848815, -0.847847,
-0.848787, -0.847876, -0.848756, -0.847908, -0.848722, -0.847944,
-0.848686, -0.847981, -0.848647, -0.848022, -0.848606, -0.848064,
-0.848563, -0.848108, -0.848518, -0.848153, -0.848472, -0.848199,
-0.848426, -0.848246, -0.848378, -0.848293, -0.848331, -0.848341,
-0.848284, -0.848388, -0.848237, -0.848434, -0.848191, -0.84848,
-0.848146, -0.848524, -0.848103, -0.848566, -0.848062, -0.848607,
-0.848022, -0.848645, -0.847985, -0.848681, -0.847951, -0.848714,
-0.847919, -0.848744, -0.847891, -0.848771, -0.847865, -0.848794,
-0.847843, -0.848814, -0.847825, -0.84883, -0.847811, -0.848843,
-0.8478, -0.848852, -0.847793, -0.848857, -0.84779, -0.848858,
-0.847791, -0.848855, -0.847796, -0.848848, -0.847805, -0.848837,
-0.847818, -0.848823, -0.847834, -0.848805, -0.847854, -0.848783,
-0.847877, -0.848758, -0.847903, -0.84873, -0.847933, -0.8487,
-0.847965, -0.848666, -0.848, -0.84863, -0.848037, -0.848592,
-0.848076, -0.848552, -0.848117, -0.84851, -0.848159, -0.848467,
-0.848203, -0.848423, -0.848247, -0.848379, -0.848292, -0.848334,
-0.848337, -0.848289, -0.848382, -0.848244, -0.848426, -0.8482,
-0.84847, -0.848157, -0.848512, -0.848115, -0.848553, -0.848075,
-0.848592, -0.848037, -0.848629, -0.848001, -0.848664, -0.847967,
-0.848697, -0.847936, -0.848727, -0.847908, -0.848753, -0.847882,
-0.848777, -0.84786, -0.848797, -0.847842, -0.848814, -0.847827,
-0.848827, -0.847816, -0.848837, -0.847808, -0.848842, -0.847804,
-0.848844, -0.847804, -0.848842, -0.847808, -0.848837, -0.847816,
-0.848827, -0.847827, -0.848814, -0.847842, -0.848797, -0.84786,
-0.848777, -0.847882, -0.848753, -0.847908, -0.848727, -0.847936,
-0.848697, -0.847967, -0.848664, -0.848001, -0.848629, -0.848037,
-0.848592, -0.848075, -0.848553, -0.848115, -0.848512, -0.848157,
-0.84847, -0.8482, -0.848426, -0.848244, -0.848382, -0.848289,
-0.848337, -0.848334, -0.848292, -0.848379, -0.848247, -0.848423,
-0.848203, -0.848467, -0.848159, -0.84851, -0.848117, -0.848552,
-0.848076, -0.848592, -0.848037, -0.84863, -0.848, -0.848666,
-0.847965, -0.8487, -0.847933, -0.84873, -0.847903, -0.848758,
-0.847877, -0.848783, -0.847854, -0.848805, -0.847834, -0.848823,
-0.847818, -0.848837, -0.847805, -0.848848, -0.847796, -0.848855,
-0.847791, -0.848858, -0.84779, -0.848857, -0.847793, -0.848852,
-0.8478, -0.848843, -0.847811, -0.84883, -0.847825, -0.848814,
-0.847843, -0.848794, -0.847865, -0.848771, -0.847891, -0.848744,
-0.847919, -0.848714, -0.847951, -0.848681, -0.847985, -0.848645,
-0.848022, -0.848607, -0.848062, -0.848566, -0.848103, -0.848524,
-0.848146, -0.84848, -0.848191, -0.848434, -0.848237, -0.848388,
-0.848284, -0.848341, -0.848331, -0.848293, -0.848378, -0.848246,
-0.848426, -0.848199, -0.848472, -0.848153, -0.848518, -0.848108,
-0.848563, -0.848064, -0.848606, -0.848022, -0.848647, -0.847981,
-0.848686, -0.847944, -0.848722, -0.847908, -0.848756, -0.847876,
-0.848787, -0.847847, -0.848815, -0.847821, -0.848839, -0.847799,
-0.848859, -0.84778, -0.848876, -0.847766, -0.848888, -0.847755,
-0.848897, -0.847749, -0.848901, -0.847746, -0.848901, -0.847748,
-0.848897, -0.847754, -0.848889, -0.847765, -0.848876, -0.847779,
-0.84886, -0.847798, -0.848839, -0.847821, -0.848814, -0.847847,
-0.848786, -0.847878, -0.848754, -0.847911, -0.848719, -0.847948,
-0.84868, -0.847988, -0.848639, -0.848031, -0.848594, -0.848076,
-0.848548, -0.848124, -0.8485, -0.848173, -0.84845, -0.848224,
-0.848398, -0.848276, -0.848346, -0.848328, -0.848293, -0.848381,
-0.84824, -0.848434, -0.848188, -0.848487, -0.848135, -0.848538,
-0.848084, -0.848589, -0.848034, -0.848638, -0.847986, -0.848685,
-0.84794, -0.84873, -0.847896, -0.848773, -0.847855, -0.848812,
-0.847818, -0.848848, -0.847783, -0.848881, -0.847753, -0.848909,
-0.847726, -0.848934, -0.847703, -0.848955, -0.847685, -0.848971,
-0.847671, -0.848982, -0.847662, -0.848989, -0.847658, -0.848991,
-0.847658, -0.848987, -0.847664, -0.848979, -0.847674, -0.848967,
-0.84769, -0.848949, -0.84771, -0.848926, -0.847735, -0.848899,
-0.847765, -0.848867, -0.847799, -0.848831, -0.847837, -0.848791,
-0.847879, -0.848746, -0.847925, -0.848699, -0.847975, -0.848648,
-0.848027, -0.848593, -0.848083, -0.848537, -0.848141, -0.848478,
-0.8482, -0.848417, -0.848262, -0.848355, -0.848325, -0.848292,
-0.848388, -0.848228, -0.848452, -0.848164, -0.848516, -0.848101,
-0.848579, -0.848038, -0.848641, -0.847977, -0.848702, -0.847917,
-0.84876, -0.84786, -0.848816, -0.847805, -0.848869, -0.847753,
-0.848919, -0.847705, -0.848966, -0.847661, -0.849008, -0.847621,
-0.849045, -0.847586, -0.849078, -0.847555, -0.849106, -0.84753,
-0.849129, -0.84751, -0.849145, -0.847496, -0.849156, -0.847488,
-0.849161, -0.847486, -0.84916, -0.847491, -0.849153, -0.847501,
-0.84914, -0.847518, -0.84912, -0.847541, -0.849094, -0.84757,
-0.849062, -0.847605, -0.849023, -0.847646, -0.84898, -0.847693,
-0.84893, -0.847745, -0.848875, -0.847802, -0.848815, -0.847865,
-0.84875, -0.847932, -0.848681, -0.848003, -0.848608, -0.848078,
-0.848532, -0.848156, -0.848452, -0.848237, -0.84837, -0.84832,
-0.848286, -0.848404, -0.848201, -0.84849, -0.848115, -0.848576,
-0.848029, -0.848662, -0.847943, -0.848748, -0.847858, -0.848832,
-0.847775, -0.848914, -0.847694, -0.848994, -0.847616, -0.84907,
-0.847541, -0.849143, -0.847471, -0.849211, -0.847405, -0.849274,
-0.847345, -0.849331, -0.84729, -0.849383, -0.847242, -0.849427,
-0.847201, -0.849465, -0.847167, -0.849495, -0.847141, -0.849517,
-0.847123, -0.849531, -0.847113, -0.849536, -0.847112, -0.849533,
-0.847121, -0.84952, -0.847138, -0.849498, -0.847165, -0.849467,
-0.847201, -0.849426, -0.847246, -0.849376, -0.847301, -0.849316,
-0.847365, -0.849248, -0.847438, -0.84917, -0.84752, -0.849084,
-0.84761, -0.848989, -0.847709, -0.848887, -0.847816, -0.848776,
-0.847929, -0.848659, -0.84805, -0.848535, -0.848177, -0.848406,
-0.848309, -0.848271, -0.848446, -0.848132, -0.848587, -0.847989,
-0.848732, -0.847843, -0.848879, -0.847695, -0.849027, -0.847547,
-0.849176, -0.847398, -0.849325, -0.84725, -0.849472, -0.847104,
-0.849617, -0.84696, -0.849758, -0.846821, -0.849895, -0.846687,
-0.850026, -0.846559, -0.850151, -0.846438, -0.850268, -0.846325,
-0.850375, -0.846222, -0.850473, -0.84613, -0.85056, -0.846049,
-0.850634, -0.845982, -0.850695, -0.845928, -0.850742, -0.845889,
-0.850773, -0.845866, -0.850787, -0.845861, -0.850783, -0.845874,
-0.85076, -0.845907, -0.850718, -0.84596, -0.850654, -0.846035,
-0.850567, -0.846132, -0.850458, -0.846254, -0.850323, -0.846402,
-0.850163, -0.846575, -0.849975, -0.846778, -0.849758, -0.84701,
-0.849511, -0.847273, -0.84923, -0.847571, -0.848915, -0.847905,
-0.848562, -0.848278, -0.848167, -0.848695, -0.847728, -0.849159,
-0.847238, -0.849676, -0.846691, -0.850254, -0.846079, -0.850903,
-0.84539, -0.851635, -0.84461, -0.852469, -0.843718, -0.853427,
-0.842684, -0.854546, -0.841467, -0.855877, -0.840002, -0.857501,
-0.838189, -0.859544, -0.83586, -0.862232, -0.832713, -0.865983,
-0.828145, -0.871693, -0.820765, -0.881657, -0.806482, -0.904002,
-0.7662, -1
};
static const float WAVE_SQUARE_030[DEFAULT_WAVELEN] = {
-3.33067e-16, 0.746554, 1, 0.862292, 0.766083, 0.84649,
0.90409, 0.846286, 0.80628, 0.851925, 0.88183, 0.843812,
0.820479, 0.853245, 0.871948, 0.843036, 0.827778, 0.85373,
0.866319, 0.842722, 0.832266, 0.853936, 0.862646, 0.842589,
0.835336, 0.854018, 0.860033, 0.842544, 0.837592, 0.854035,
0.858061, 0.842549, 0.839336, 0.854011, 0.856505, 0.842588,
0.840735, 0.853959, 0.855237, 0.842651, 0.841891, 0.853886,
0.854177, 0.842733, 0.842869, 0.853797, 0.853271, 0.84283,
0.843711, 0.853693, 0.852486, 0.84294, 0.844446, 0.853577,
0.851796, 0.843062, 0.845096, 0.85345, 0.851183, 0.843194,
0.845675, 0.853313, 0.850634, 0.843335, 0.846196, 0.853167,
0.85014, 0.843485, 0.846666, 0.853013, 0.849692, 0.843643,
0.847092, 0.852852, 0.849285, 0.843807, 0.847481, 0.852684,
0.848914, 0.843978, 0.847835, 0.85251, 0.848576, 0.844155,
0.848158, 0.852331, 0.848268, 0.844337, 0.848453, 0.852147,
0.847986, 0.844523, 0.848722, 0.851958, 0.847729, 0.844713,
0.848966, 0.851766, 0.847496, 0.844907, 0.849189, 0.851572,
0.847285, 0.845103, 0.849389, 0.851374, 0.847094, 0.845301,
0.84957, 0.851175, 0.846923, 0.845501, 0.849732, 0.850975,
0.84677, 0.845702, 0.849876, 0.850774, 0.846635, 0.845903,
0.850002, 0.850573, 0.846517, 0.846103, 0.850112, 0.850373,
0.846416, 0.846303, 0.850205, 0.850174, 0.84633, 0.846502,
0.850284, 0.849976, 0.846259, 0.846698, 0.850348, 0.849781,
0.846202, 0.846892, 0.850398, 0.849589, 0.846159, 0.847083,
0.850434, 0.849399, 0.846129, 0.84727, 0.850457, 0.849214,
0.846112, 0.847453, 0.850468, 0.849033, 0.846107, 0.847632,
0.850468, 0.848856, 0.846113, 0.847806, 0.850456, 0.848685,
0.846131, 0.847975, 0.850433, 0.848519, 0.846158, 0.848137,
0.8504, 0.84836, 0.846196, 0.848294, 0.850358, 0.848206,
0.846243, 0.848444, 0.850307, 0.84806, 0.846298, 0.848587,
0.850247, 0.84792, 0.846362, 0.848723, 0.85018, 0.847788,
0.846433, 0.848852, 0.850105, 0.847663, 0.846511, 0.848972,
0.850024, 0.847547, 0.846595, 0.849085, 0.849936, 0.847438,
0.846686, 0.84919, 0.849844, 0.847337, 0.846781, 0.849286,
0.849746, 0.847245, 0.846881, 0.849374, 0.849644, 0.847161,
0.846985, 0.849454, 0.849538, 0.847086, 0.847092, 0.849525,
0.849429, 0.84702, 0.847202, 0.849587, 0.849318, 0.846962,
0.847315, 0.84964, 0.849204, 0.846912, 0.847429, 0.849685,
0.849089, 0.846872, 0.847545, 0.849722, 0.848974, 0.84684,
0.84766, 0.84975, 0.848858, 0.846816, 0.847776, 0.849769,
0.848742, 0.8468, 0.847892, 0.84978, 0.848627, 0.846793,
0.848007, 0.849784, 0.848513, 0.846794, 0.84812, 0.849779,
0.848401, 0.846802, 0.848231, 0.849767, 0.848291, 0.846818,
0.848339, 0.849747, 0.848184, 0.846842, 0.848445, 0.84972,
0.84808, 0.846872, 0.848548, 0.849687, 0.847979, 0.846909,
0.848646, 0.849646, 0.847882, 0.846952, 0.848741, 0.8496,
0.84779, 0.847002, 0.848831, 0.849548, 0.847702, 0.847057,
0.848917, 0.84949, 0.847618, 0.847117, 0.848997, 0.849427,
0.847541, 0.847182, 0.849073, 0.84936, 0.847468, 0.847252,
0.849142, 0.849288, 0.847402, 0.847326, 0.849206, 0.849212,
0.847341, 0.847403, 0.849264, 0.849133, 0.847286, 0.847484,
0.849315, 0.849051, 0.847237, 0.847567, 0.849361, 0.848967,
0.847195, 0.847653, 0.8494, 0.84888, 0.84716, 0.84774,
0.849432, 0.848792, 0.84713, 0.847829, 0.849458, 0.848702,
0.847108, 0.847919, 0.849478, 0.848612, 0.847091, 0.848009,
0.84949, 0.848522, 0.847082, 0.8481, 0.849497, 0.848431,
0.847079, 0.84819, 0.849497, 0.848341, 0.847082, 0.848279,
0.84949, 0.848253, 0.847091, 0.848368, 0.849478, 0.848165,
0.847107, 0.848454, 0.849459, 0.84808, 0.847128, 0.848538,
0.849435, 0.847996, 0.847156, 0.848621, 0.849405, 0.847916,
0.847189, 0.8487, 0.849369, 0.847838, 0.847227, 0.848776,
0.849328, 0.847763, 0.847271, 0.848849, 0.849282, 0.847693,
0.847319, 0.848918, 0.849232, 0.847626, 0.847372, 0.848982,
0.849177, 0.847563, 0.847429, 0.849043, 0.849118, 0.847505,
0.84749, 0.849099, 0.849055, 0.847451, 0.847554, 0.84915,
0.848989, 0.847402, 0.847622, 0.849196, 0.848919, 0.847359,
0.847692, 0.849237, 0.848848, 0.847321, 0.847765, 0.849273,
0.848773, 0.847288, 0.847841, 0.849303, 0.848697, 0.847261,
0.847918, 0.849327, 0.84862, 0.847239, 0.847996, 0.849346,
0.848541, 0.847223, 0.848075, 0.849359, 0.848461, 0.847213,
0.848155, 0.849367, 0.848382, 0.847208, 0.848234, 0.849368,
0.848302, 0.847209, 0.848314, 0.849364, 0.848223, 0.847216,
0.848393, 0.849355, 0.848144, 0.847228, 0.848471, 0.84934,
0.848067, 0.847246, 0.848547, 0.849319, 0.847991, 0.847269,
0.848622, 0.849293, 0.847918, 0.847298, 0.848695, 0.849262,
0.847846, 0.847332, 0.848765, 0.849226, 0.847778, 0.84737,
0.848832, 0.849185, 0.847712, 0.847413, 0.848896, 0.84914,
0.84765, 0.847461, 0.848957, 0.84909, 0.847591, 0.847512,
0.849013, 0.849037, 0.847536, 0.847568, 0.849066, 0.848979,
0.847485, 0.847627, 0.849115, 0.848918, 0.847439, 0.84769,
0.849159, 0.848854, 0.847397, 0.847755, 0.849199, 0.848787,
0.84736, 0.847824, 0.849233, 0.848718, 0.847328, 0.847894,
0.849263, 0.848646, 0.847301, 0.847967, 0.849287, 0.848573,
0.847279, 0.848041, 0.849306, 0.848498, 0.847263, 0.848116,
0.84932, 0.848422, 0.847252, 0.848192, 0.849328, 0.848346,
0.847246, 0.848269, 0.849331, 0.848269, 0.847246, 0.848346,
0.849328, 0.848192, 0.847252, 0.848422, 0.84932, 0.848116,
0.847263, 0.848498, 0.849306, 0.848041, 0.847279, 0.848573,
0.849287, 0.847967, 0.847301, 0.848646, 0.849263, 0.847894,
0.847328, 0.848718, 0.849233, 0.847824, 0.84736, 0.848787,
0.849199, 0.847755, 0.847397, 0.848854, 0.849159, 0.84769,
0.847439, 0.848918, 0.849115, 0.847627, 0.847485, 0.848979,
0.849066, 0.847568, 0.847536, 0.849037, 0.849013, 0.847512,
0.847591, 0.84909, 0.848957, 0.847461, 0.84765, 0.84914,
0.848896, 0.847413, 0.847712, 0.849185, 0.848832, 0.84737,
0.847778, 0.849226, 0.848765, 0.847332, 0.847846, 0.849262,
0.848695, 0.847298, 0.847918, 0.849293, 0.848622, 0.847269,
0.847991, 0.849319, 0.848547, 0.847246, 0.848067, 0.84934,
0.848471, 0.847228, 0.848144, 0.849355, 0.848393, 0.847216,
0.848223, 0.849364, 0.848314, 0.847209, 0.848302, 0.849368,
0.848234, 0.847208, 0.848382, 0.849367, 0.848155, 0.847213,
0.848461, 0.849359, 0.848075, 0.847223, 0.848541, 0.849346,
0.847996, 0.847239, 0.84862, 0.849327, 0.847918, 0.847261,
0.848697, 0.849303, 0.847841, 0.847288, 0.848773, 0.849273,
0.847765, 0.847321, 0.848848, 0.849237, 0.847692, 0.847359,
0.848919, 0.849196, 0.847622, 0.847402, 0.848989, 0.84915,
0.847554, 0.847451, 0.849055, 0.849099, 0.84749, 0.847505,
0.849118, 0.849043, 0.847429, 0.847563, 0.849177, 0.848982,
0.847372, 0.847626, 0.849232, 0.848918, 0.847319, 0.847693,
0.849282, 0.848849, 0.847271, 0.847763, 0.849328, 0.848776,
0.847227, 0.847838, 0.849369, 0.8487, 0.847189, 0.847916,
0.849405, 0.848621, 0.847156, 0.847996, 0.849435, 0.848538,
0.847128, 0.84808, 0.849459, 0.848454, 0.847107, 0.848165,
0.849478, 0.848368, 0.847091, 0.848253, 0.84949, 0.848279,
0.847082, 0.848341, 0.849497, 0.84819, 0.847079, 0.848431,
0.849497, 0.8481, 0.847082, 0.848522, 0.84949, 0.848009,
0.847091, 0.848612, 0.849478, 0.847919, 0.847108, 0.848702,
0.849458, 0.847829, 0.84713, 0.848792, 0.849432, 0.84774,
0.84716, 0.84888, 0.8494, 0.847653, 0.847195, 0.848967,
0.849361, 0.847567, 0.847237, 0.849051, 0.849315, 0.847484,
0.847286, 0.849133, 0.849264, 0.847403, 0.847341, 0.849212,
0.849206, 0.847326, 0.847402, 0.849288, 0.849142, 0.847252,
0.847468, 0.84936, 0.849073, 0.847182, 0.847541, 0.849427,
0.848997, 0.847117, 0.847618, 0.84949, 0.848917, 0.847057,
0.847702, 0.849548, 0.848831, 0.847002, 0.84779, 0.8496,
0.848741, 0.846952, 0.847882, 0.849646, 0.848646, 0.846909,
0.847979, 0.849687, 0.848548, 0.846872, 0.84808, 0.84972,
0.848445, 0.846842, 0.848184, 0.849747, 0.848339, 0.846818,
0.848291, 0.849767, 0.848231, 0.846802, 0.848401, 0.849779,
0.84812, 0.846794, 0.848513, 0.849784, 0.848007, 0.846793,
0.848627, 0.84978, 0.847892, 0.8468, 0.848742, 0.849769,
0.847776, 0.846816, 0.848858, 0.84975, 0.84766, 0.84684,
0.848974, 0.849722, 0.847545, 0.846872, 0.849089, 0.849685,
0.847429, 0.846912, 0.849204, 0.84964, 0.847315, 0.846962,
0.849318, 0.849587, 0.847202, 0.84702, 0.849429, 0.849525,
0.847092, 0.847086, 0.849538, 0.849454, 0.846985, 0.847161,
0.849644, 0.849374, 0.846881, 0.847245, 0.849746, 0.849286,
0.846781, 0.847337, 0.849844, 0.84919, 0.846686, 0.847438,
0.849936, 0.849085, 0.846595, 0.847547, 0.850024, 0.848972,
0.846511, 0.847663, 0.850105, 0.848852, 0.846433, 0.847788,
0.85018, 0.848723, 0.846362, 0.84792, 0.850247, 0.848587,
0.846298, 0.84806, 0.850307, 0.848444, 0.846243, 0.848206,
0.850358, 0.848294, 0.846196, 0.84836, 0.8504, 0.848137,
0.846158, 0.848519, 0.850433, 0.847975, 0.846131, 0.848685,
0.850456, 0.847806, 0.846113, 0.848856, 0.850468, 0.847632,
0.846107, 0.849033, 0.850468, 0.847453, 0.846112, 0.849214,
0.850457, 0.84727, 0.846129, 0.849399, 0.850434, 0.847083,
0.846159, 0.849589, 0.850398, 0.846892, 0.846202, 0.849781,
0.850348, 0.846698, 0.846259, 0.849976, 0.850284, 0.846502,
0.84633, 0.850174, 0.850205, 0.846303, 0.846416, 0.850373,
0.850112, 0.846103, 0.846517, 0.850573, 0.850002, 0.845903,
0.846635, 0.850774, 0.849876, 0.845702, 0.84677, 0.850975,
0.849732, 0.845501, 0.846923, 0.851175, 0.84957, 0.845301,
0.847094, 0.851374, 0.849389, 0.845103, 0.847285, 0.851572,
0.849189, 0.844907, 0.847496, 0.851766, 0.848966, 0.844713,
0.847729, 0.851958, 0.848722, 0.844523, 0.847986, 0.852147,
0.848453, 0.844337, 0.848268, 0.852331, 0.848158, 0.844155,
0.848576, 0.85251, 0.847835, 0.843978, 0.848914, 0.852684,
0.847481, 0.843807, 0.849285, 0.852852, 0.847092, 0.843643,
0.849692, 0.853013, 0.846666, 0.843485, 0.85014, 0.853167,
0.846196, 0.843335, 0.850634, 0.853313, 0.845675, 0.843194,
0.851183, 0.85345, 0.845096, 0.843062, 0.851796, 0.853577,
0.844446, 0.84294, 0.852486, 0.853693, 0.843711, 0.84283,
0.853271, 0.853797, 0.842869, 0.842733, 0.854177, 0.853886,
0.841891, 0.842651, 0.855237, 0.853959, 0.840735, 0.842588,
0.856505, 0.854011, 0.839336, 0.842549, 0.858061, 0.854035,
0.837592, 0.842544, 0.860033, 0.854018, 0.835336, 0.842589,
0.862646, 0.853936, 0.832266, 0.842722, 0.866319, 0.85373,
0.827778, 0.843036, 0.871948, 0.853245, 0.820479, 0.843812,
0.88183, 0.851925, 0.80628, 0.846286, 0.90409, 0.84649,
0.766083, 0.862292, 1, 0.746554, 3.4861e-14, -0.746554,
-1, -0.862292, -0.766083, -0.84649, -0.90409, -0.846286,
-0.80628, -0.851925, -0.88183, -0.843812, -0.820479, -0.853245,
-0.871948, -0.843036, -0.827778, -0.85373, -0.866319, -0.842722,
-0.832266, -0.853936, -0.862646, -0.842589, -0.835336, -0.854018,
-0.860033, -0.842544, -0.837592, -0.854035, -0.858061, -0.842549,
-0.839336, -0.854011, -0.856505, -0.842588, -0.840735, -0.853959,
-0.855237, -0.842651, -0.841891, -0.853886, -0.854177, -0.842733,
-0.842869, -0.853797, -0.853271, -0.84283, -0.843711, -0.853693,
-0.852486, -0.84294, -0.844446, -0.853577, -0.851796, -0.843062,
-0.845096, -0.85345, -0.851183, -0.843194, -0.845675, -0.853313,
-0.850634, -0.843335, -0.846196, -0.853167, -0.85014, -0.843485,
-0.846666, -0.853013, -0.849692, -0.843643, -0.847092, -0.852852,
-0.849285, -0.843807, -0.847481, -0.852684, -0.848914, -0.843978,
-0.847835, -0.85251, -0.848576, -0.844155, -0.848158, -0.852331,
-0.848268, -0.844337, -0.848453, -0.852147, -0.847986, -0.844523,
-0.848722, -0.851958, -0.847729, -0.844713, -0.848966, -0.851766,
-0.847496, -0.844907, -0.849189, -0.851572, -0.847285, -0.845103,
-0.849389, -0.851374, -0.847094, -0.845301, -0.84957, -0.851175,
-0.846923, -0.845501, -0.849732, -0.850975, -0.84677, -0.845702,
-0.849876, -0.850774, -0.846635, -0.845903, -0.850002, -0.850573,
-0.846517, -0.846103, -0.850112, -0.850373, -0.846416, -0.846303,
-0.850205, -0.850174, -0.84633, -0.846502, -0.850284, -0.849976,
-0.846259, -0.846698, -0.850348, -0.849781, -0.846202, -0.846892,
-0.850398, -0.849589, -0.846159, -0.847083, -0.850434, -0.849399,
-0.846129, -0.84727, -0.850457, -0.849214, -0.846112, -0.847453,
-0.850468, -0.849033, -0.846107, -0.847632, -0.850468, -0.848856,
-0.846113, -0.847806, -0.850456, -0.848685, -0.846131, -0.847975,
-0.850433, -0.848519, -0.846158, -0.848137, -0.8504, -0.84836,
-0.846196, -0.848294, -0.850358, -0.848206, -0.846243, -0.848444,
-0.850307, -0.84806, -0.846298, -0.848587, -0.850247, -0.84792,
-0.846362, -0.848723, -0.85018, -0.847788, -0.846433, -0.848852,
-0.850105, -0.847663, -0.846511, -0.848972, -0.850024, -0.847547,
-0.846595, -0.849085, -0.849936, -0.847438, -0.846686, -0.84919,
-0.849844, -0.847337, -0.846781, -0.849286, -0.849746, -0.847245,
-0.846881, -0.849374, -0.849644, -0.847161, -0.846985, -0.849454,
-0.849538, -0.847086, -0.847092, -0.849525, -0.849429, -0.84702,
-0.847202, -0.849587, -0.849318, -0.846962, -0.847315, -0.84964,
-0.849204, -0.846912, -0.847429, -0.849685, -0.849089, -0.846872,
-0.847545, -0.849722, -0.848974, -0.84684, -0.84766, -0.84975,
-0.848858, -0.846816, -0.847776, -0.849769, -0.848742, -0.8468,
-0.847892, -0.84978, -0.848627, -0.846793, -0.848007, -0.849784,
-0.848513, -0.846794, -0.84812, -0.849779, -0.848401, -0.846802,
-0.848231, -0.849767, -0.848291, -0.846818, -0.848339, -0.849747,
-0.848184, -0.846842, -0.848445, -0.84972, -0.84808, -0.846872,
-0.848548, -0.849687, -0.847979, -0.846909, -0.848646, -0.849646,
-0.847882, -0.846952, -0.848741, -0.8496, -0.84779, -0.847002,
-0.848831, -0.849548, -0.847702, -0.847057, -0.848917, -0.84949,
-0.847618, -0.847117, -0.848997, -0.849427, -0.847541, -0.847182,
-0.849073, -0.84936, -0.847468, -0.847252, -0.849142, -0.849288,
-0.847402, -0.847326, -0.849206, -0.849212, -0.847341, -0.847403,
-0.849264, -0.849133, -0.847286, -0.847484, -0.849315, -0.849051,
-0.847237, -0.847567, -0.849361, -0.848967, -0.847195, -0.847653,
-0.8494, -0.84888, -0.84716, -0.84774, -0.849432, -0.848792,
-0.84713, -0.847829, -0.849458, -0.848702, -0.847108, -0.847919,
-0.849478, -0.848612, -0.847091, -0.848009, -0.84949, -0.848522,
-0.847082, -0.8481, -0.849497, -0.848431, -0.847079, -0.84819,
-0.849497, -0.848341, -0.847082, -0.848279, -0.84949, -0.848253,
-0.847091, -0.848368, -0.849478, -0.848165, -0.847107, -0.848454,
-0.849459, -0.84808, -0.847128, -0.848538, -0.849435, -0.847996,
-0.847156, -0.848621, -0.849405, -0.847916, -0.847189, -0.8487,
-0.849369, -0.847838, -0.847227, -0.848776, -0.849328, -0.847763,
-0.847271, -0.848849, -0.849282, -0.847693, -0.847319, -0.848918,
-0.849232, -0.847626, -0.847372, -0.848982, -0.849177, -0.847563,
-0.847429, -0.849043, -0.849118, -0.847505, -0.84749, -0.849099,
-0.849055, -0.847451, -0.847554, -0.84915, -0.848989, -0.847402,
-0.847622, -0.849196, -0.848919, -0.847359, -0.847692, -0.849237,
-0.848848, -0.847321, -0.847765, -0.849273, -0.848773, -0.847288,
-0.847841, -0.849303, -0.848697, -0.847261, -0.847918, -0.849327,
-0.84862, -0.847239, -0.847996, -0.849346, -0.848541, -0.847223,
-0.848075, -0.849359, -0.848461, -0.847213, -0.848155, -0.849367,
-0.848382, -0.847208, -0.848234, -0.849368, -0.848302, -0.847209,
-0.848314, -0.849364, -0.848223, -0.847216, -0.848393, -0.849355,
-0.848144, -0.847228, -0.848471, -0.84934, -0.848067, -0.847246,
-0.848547, -0.849319, -0.847991, -0.847269, -0.848622, -0.849293,
-0.847918, -0.847298, -0.848695, -0.849262, -0.847846, -0.847332,
-0.848765, -0.849226, -0.847778, -0.84737, -0.848832, -0.849185,
-0.847712, -0.847413, -0.848896, -0.84914, -0.84765, -0.847461,
-0.848957, -0.84909, -0.847591, -0.847512, -0.849013, -0.849037,
-0.847536, -0.847568, -0.849066, -0.848979, -0.847485, -0.847627,
-0.849115, -0.848918, -0.847439, -0.84769, -0.849159, -0.848854,
-0.847397, -0.847755, -0.849199, -0.848787, -0.84736, -0.847824,
-0.849233, -0.848718, -0.847328, -0.847894, -0.849263, -0.848646,
-0.847301, -0.847967, -0.849287, -0.848573, -0.847279, -0.848041,
-0.849306, -0.848498, -0.847263, -0.848116, -0.84932, -0.848422,
-0.847252, -0.848192, -0.849328, -0.848346, -0.847246, -0.848269,
-0.849331, -0.848269, -0.847246, -0.848346, -0.849328, -0.848192,
-0.847252, -0.848422, -0.84932, -0.848116, -0.847263, -0.848498,
-0.849306, -0.848041, -0.847279, -0.848573, -0.849287, -0.847967,
-0.847301, -0.848646, -0.849263, -0.847894, -0.847328, -0.848718,
-0.849233, -0.847824, -0.84736, -0.848787, -0.849199, -0.847755,
-0.847397, -0.848854, -0.849159, -0.84769, -0.847439, -0.848918,
-0.849115, -0.847627, -0.847485, -0.848979, -0.849066, -0.847568,
-0.847536, -0.849037, -0.849013, -0.847512, -0.847591, -0.84909,
-0.848957, -0.847461, -0.84765, -0.84914, -0.848896, -0.847413,
-0.847712, -0.849185, -0.848832, -0.84737, -0.847778, -0.849226,
-0.848765, -0.847332, -0.847846, -0.849262, -0.848695, -0.847298,
-0.847918, -0.849293, -0.848622, -0.847269, -0.847991, -0.849319,
-0.848547, -0.847246, -0.848067, -0.84934, -0.848471, -0.847228,
-0.848144, -0.849355, -0.848393, -0.847216, -0.848223, -0.849364,
-0.848314, -0.847209, -0.848302, -0.849368, -0.848234, -0.847208,
-0.848382, -0.849367, -0.848155, -0.847213, -0.848461, -0.849359,
-0.848075, -0.847223, -0.848541, -0.849346, -0.847996, -0.847239,
-0.84862, -0.849327, -0.847918, -0.847261, -0.848697, -0.849303,
-0.847841, -0.847288, -0.848773, -0.849273, -0.847765, -0.847321,
-0.848848, -0.849237, -0.847692, -0.847359, -0.848919, -0.849196,
-0.847622, -0.847402, -0.848989, -0.84915, -0.847554, -0.847451,
-0.849055, -0.849099, -0.84749, -0.847505, -0.849118, -0.849043,
-0.847429, -0.847563, -0.849177, -0.848982, -0.847372, -0.847626,
-0.849232, -0.848918, -0.847319, -0.847693, -0.849282, -0.848849,
-0.847271, -0.847763, -0.849328, -0.848776, -0.847227, -0.847838,
-0.849369, -0.8487, -0.847189, -0.847916, -0.849405, -0.848621,
-0.847156, -0.847996, -0.849435, -0.848538, -0.847128, -0.84808,
-0.849459, -0.848454, -0.847107, -0.848165, -0.849478, -0.848368,
-0.847091, -0.848253, -0.84949, -0.848279, -0.847082, -0.848341,
-0.849497, -0.84819, -0.847079, -0.848431, -0.849497, -0.8481,
-0.847082, -0.848522, -0.84949, -0.848009, -0.847091, -0.848612,
-0.849478, -0.847919, -0.847108, -0.848702, -0.849458, -0.847829,
-0.84713, -0.848792, -0.849432, -0.84774, -0.84716, -0.84888,
-0.8494, -0.847653, -0.847195, -0.848967, -0.849361, -0.847567,
-0.847237, -0.849051, -0.849315, -0.847484, -0.847286, -0.849133,
-0.849264, -0.847403, -0.847341, -0.849212, -0.849206, -0.847326,
-0.847402, -0.849288, -0.849142, -0.847252, -0.847468, -0.84936,
-0.849073, -0.847182, -0.847541, -0.849427, -0.848997, -0.847117,
-0.847618, -0.84949, -0.848917, -0.847057, -0.847702, -0.849548,
-0.848831, -0.847002, -0.84779, -0.8496, -0.848741, -0.846952,
-0.847882, -0.849646, -0.848646, -0.846909, -0.847979, -0.849687,
-0.848548, -0.846872, -0.84808, -0.84972, -0.848445, -0.846842,
-0.848184, -0.849747, -0.848339, -0.846818, -0.848291, -0.849767,
-0.848231, -0.846802, -0.848401, -0.849779, -0.84812, -0.846794,
-0.848513, -0.849784, -0.848007, -0.846793, -0.848627, -0.84978,
-0.847892, -0.8468, -0.848742, -0.849769, -0.847776, -0.846816,
-0.848858, -0.84975, -0.84766, -0.84684, -0.848974, -0.849722,
-0.847545, -0.846872, -0.849089, -0.849685, -0.847429, -0.846912,
-0.849204, -0.84964, -0.847315, -0.846962, -0.849318, -0.849587,
-0.847202, -0.84702, -0.849429, -0.849525, -0.847092, -0.847086,
-0.849538, -0.849454, -0.846985, -0.847161, -0.849644, -0.849374,
-0.846881, -0.847245, -0.849746, -0.849286, -0.846781, -0.847337,
-0.849844, -0.84919, -0.846686, -0.847438, -0.849936, -0.849085,
-0.846595, -0.847547, -0.850024, -0.848972, -0.846511, -0.847663,
-0.850105, -0.848852, -0.846433, -0.847788, -0.85018, -0.848723,
-0.846362, -0.84792, -0.850247, -0.848587, -0.846298, -0.84806,
-0.850307, -0.848444, -0.846243, -0.848206, -0.850358, -0.848294,
-0.846196, -0.84836, -0.8504, -0.848137, -0.846158, -0.848519,
-0.850433, -0.847975, -0.846131, -0.848685, -0.850456, -0.847806,
-0.846113, -0.848856, -0.850468, -0.847632, -0.846107, -0.849033,
-0.850468, -0.847453, -0.846112, -0.849214, -0.850457, -0.84727,
-0.846129, -0.849399, -0.850434, -0.847083, -0.846159, -0.849589,
-0.850398, -0.846892, -0.846202, -0.849781, -0.850348, -0.846698,
-0.846259, -0.849976, -0.850284, -0.846502, -0.84633, -0.850174,
-0.850205, -0.846303, -0.846416, -0.850373, -0.850112, -0.846103,
-0.846517, -0.850573, -0.850002, -0.845903, -0.846635, -0.850774,
-0.849876, -0.845702, -0.84677, -0.850975, -0.849732, -0.845501,
-0.846923, -0.851175, -0.84957, -0.845301, -0.847094, -0.851374,
-0.849389, -0.845103, -0.847285, -0.851572, -0.849189, -0.844907,
-0.847496, -0.851766, -0.848966, -0.844713, -0.847729, -0.851958,
-0.848722, -0.844523, -0.847986, -0.852147, -0.848453, -0.844337,
-0.848268, -0.852331, -0.848158, -0.844155, -0.848576, -0.85251,
-0.847835, -0.843978, -0.848914, -0.852684, -0.847481, -0.843807,
-0.849285, -0.852852, -0.847092, -0.843643, -0.849692, -0.853013,
-0.846666, -0.843485, -0.85014, -0.853167, -0.846196, -0.843335,
-0.850634, -0.853313, -0.845675, -0.843194, -0.851183, -0.85345,
-0.845096, -0.843062, -0.851796, -0.853577, -0.844446, -0.84294,
-0.852486, -0.853693, -0.843711, -0.84283, -0.853271, -0.853797,
-0.842869, -0.842733, -0.854177, -0.853886, -0.841891, -0.842651,
-0.855237, -0.853959, -0.840735, -0.842588, -0.856505, -0.854011,
-0.839336, -0.842549, -0.858061, -0.854035, -0.837592, -0.842544,
-0.860033, -0.854018, -0.835336, -0.842589, -0.862646, -0.853936,
-0.832266, -0.842722, -0.866319, -0.85373, -0.827778, -0.843036,
-0.871948, -0.853245, -0.820479, -0.843812, -0.88183, -0.851925,
-0.80628, -0.846286, -0.90409, -0.84649, -0.766083, -0.862292,
-1, -0.746554
};
static const float WAVE_SQUARE_042[DEFAULT_WAVELEN] = {
-2.22045e-16, 0.415868, 0.7487, 0.945424, 1, 0.950765,
0.860288, 0.78772, 0.766322, 0.795426, 0.848634, 0.892258,
0.90391, 0.882237, 0.844298, 0.813665, 0.806693, 0.824467,
0.854045, 0.877262, 0.881478, 0.866125, 0.841856, 0.823458,
0.821062, 0.83475, 0.855327, 0.870324, 0.871428, 0.858968,
0.841125, 0.828665, 0.828527, 0.840035, 0.85576, 0.866244,
0.865635, 0.854895, 0.84087, 0.831972, 0.833177, 0.843277,
0.8559, 0.86349, 0.861803, 0.852248, 0.840808, 0.834318,
0.836403, 0.845481, 0.855904, 0.861455, 0.859038, 0.850383,
0.840848, 0.836111, 0.838808, 0.84708, 0.85583, 0.859853,
0.85692, 0.848998, 0.84095, 0.837559, 0.840693, 0.848291,
0.855704, 0.858531, 0.855227, 0.847932, 0.841097, 0.838776,
0.842225, 0.849235, 0.855538, 0.857401, 0.853831, 0.847092,
0.841279, 0.839832, 0.843505, 0.849985, 0.855341, 0.856409,
0.852651, 0.846421, 0.84149, 0.84077, 0.844596, 0.850586,
0.855118, 0.855519, 0.851638, 0.845881, 0.841725, 0.841617,
0.84554, 0.85107, 0.854872, 0.854709, 0.850756, 0.845448,
0.841981, 0.842394, 0.846366, 0.851458, 0.854606, 0.853963,
0.849982, 0.845102, 0.842257, 0.843113, 0.847094, 0.851765,
0.854322, 0.853269, 0.849297, 0.84483, 0.842549, 0.843783,
0.847738, 0.852004, 0.854022, 0.85262, 0.848689, 0.844622,
0.842855, 0.844412, 0.848311, 0.852182, 0.853709, 0.85201,
0.84815, 0.844471, 0.843175, 0.845004, 0.848819, 0.852308,
0.853384, 0.851435, 0.847671, 0.84437, 0.843505, 0.845562,
0.84927, 0.852386, 0.853049, 0.850893, 0.847247, 0.844314,
0.843844, 0.846089, 0.849668, 0.852421, 0.852706, 0.850382,
0.846873, 0.844299, 0.844191, 0.846586, 0.850018, 0.852417,
0.852356, 0.849899, 0.846547, 0.84432, 0.844543, 0.847054,
0.850322, 0.852379, 0.852002, 0.849445, 0.846264, 0.844375,
0.844898, 0.847495, 0.850584, 0.852308, 0.851646, 0.849018,
0.846023, 0.844461, 0.845256, 0.847908, 0.850806, 0.852209,
0.851288, 0.848619, 0.84582, 0.844574, 0.845613, 0.848293,
0.85099, 0.852083, 0.850931, 0.848246, 0.845655, 0.844712,
0.845969, 0.848652, 0.851137, 0.851933, 0.850577, 0.847901,
0.845525, 0.844872, 0.846322, 0.848984, 0.85125, 0.851762,
0.850226, 0.847583, 0.845428, 0.845053, 0.846669, 0.849289,
0.851331, 0.851572, 0.849882, 0.847291, 0.845363, 0.845252,
0.84701, 0.849567, 0.85138, 0.851365, 0.849545, 0.847026,
0.845329, 0.845466, 0.847343, 0.849818, 0.8514, 0.851144,
0.849217, 0.846789, 0.845323, 0.845694, 0.847666, 0.850043,
0.851392, 0.850911, 0.848899, 0.846578, 0.845344, 0.845933,
0.847978, 0.85024, 0.851358, 0.850667, 0.848593, 0.846394,
0.845391, 0.846181, 0.848277, 0.850411, 0.851299, 0.850415,
0.848301, 0.846236, 0.845462, 0.846436, 0.848563, 0.850555,
0.851217, 0.850156, 0.848022, 0.846105, 0.845555, 0.846697,
0.848833, 0.850674, 0.851113, 0.849894, 0.84776, 0.845999,
0.845669, 0.846961, 0.849088, 0.850766, 0.850989, 0.849629,
0.847514, 0.845919, 0.845802, 0.847226, 0.849325, 0.850834,
0.850847, 0.849364, 0.847285, 0.845864, 0.845953, 0.84749,
0.849544, 0.850877, 0.850689, 0.849101, 0.847075, 0.845833,
0.846119, 0.847752, 0.849745, 0.850896, 0.850516, 0.848841,
0.846885, 0.845826, 0.846298, 0.84801, 0.849926, 0.850891,
0.85033, 0.848586, 0.846714, 0.845842, 0.84649, 0.848262,
0.850086, 0.850864, 0.850132, 0.848337, 0.846564, 0.84588,
0.846693, 0.848507, 0.850226, 0.850816, 0.849926, 0.848097,
0.846434, 0.845938, 0.846903, 0.848742, 0.850345, 0.850748,
0.849711, 0.847866, 0.846326, 0.846017, 0.847121, 0.848968,
0.850443, 0.85066, 0.849491, 0.847646, 0.846238, 0.846114,
0.847343, 0.849181, 0.85052, 0.850554, 0.849267, 0.847439,
0.846173, 0.846228, 0.847569, 0.849382, 0.850575, 0.850431,
0.849041, 0.847246, 0.846128, 0.846359, 0.847795, 0.849568,
0.850609, 0.850292, 0.848814, 0.847067, 0.846105, 0.846505,
0.848022, 0.84974, 0.850622, 0.85014, 0.848588, 0.846903,
0.846102, 0.846664, 0.848247, 0.849895, 0.850615, 0.849975,
0.848365, 0.846757, 0.846119, 0.846834, 0.848468, 0.850033,
0.850587, 0.849799, 0.848146, 0.846627, 0.846156, 0.847015,
0.848683, 0.850153, 0.85054, 0.849613, 0.847934, 0.846516,
0.846213, 0.847205, 0.848892, 0.850256, 0.850475, 0.84942,
0.847729, 0.846423, 0.846287, 0.847402, 0.849093, 0.850339,
0.850391, 0.84922, 0.847533, 0.846349, 0.846379, 0.847605,
0.849284, 0.850404, 0.850291, 0.849015, 0.847347, 0.846294,
0.846488, 0.847811, 0.849464, 0.850449, 0.850174, 0.848807,
0.847173, 0.846258, 0.846612, 0.84802, 0.849632, 0.850475,
0.850043, 0.848598, 0.847012, 0.846242, 0.84675, 0.848229,
0.849786, 0.850482, 0.849898, 0.848389, 0.846865, 0.846245,
0.846902, 0.848438, 0.849926, 0.850469, 0.849741, 0.848182,
0.846732, 0.846267, 0.847065, 0.848643, 0.85005, 0.850438,
0.849573, 0.847978, 0.846616, 0.846308, 0.847238, 0.848845,
0.850159, 0.850388, 0.849395, 0.847779, 0.846516, 0.846367,
0.84742, 0.849041, 0.85025, 0.85032, 0.849208, 0.847587,
0.846433, 0.846443, 0.84761, 0.849229, 0.850324, 0.850235,
0.849016, 0.847402, 0.846368, 0.846537, 0.847805, 0.849409,
0.85038, 0.850133, 0.848818, 0.847227, 0.846322, 0.846646,
0.848005, 0.849579, 0.850417, 0.850016, 0.848616, 0.847063,
0.846293, 0.846771, 0.848208, 0.849737, 0.850436, 0.849883,
0.848412, 0.846911, 0.846284, 0.846911, 0.848412, 0.849883,
0.850436, 0.849737, 0.848208, 0.846771, 0.846293, 0.847063,
0.848616, 0.850016, 0.850417, 0.849579, 0.848005, 0.846646,
0.846322, 0.847227, 0.848818, 0.850133, 0.85038, 0.849409,
0.847805, 0.846537, 0.846368, 0.847402, 0.849016, 0.850235,
0.850324, 0.849229, 0.84761, 0.846443, 0.846433, 0.847587,
0.849208, 0.85032, 0.85025, 0.849041, 0.84742, 0.846367,
0.846516, 0.847779, 0.849395, 0.850388, 0.850159, 0.848845,
0.847238, 0.846308, 0.846616, 0.847978, 0.849573, 0.850438,
0.85005, 0.848643, 0.847065, 0.846267, 0.846732, 0.848182,
0.849741, 0.850469, 0.849926, 0.848438, 0.846902, 0.846245,
0.846865, 0.848389, 0.849898, 0.850482, 0.849786, 0.848229,
0.84675, 0.846242, 0.847012, 0.848598, 0.850043, 0.850475,
0.849632, 0.84802, 0.846612, 0.846258, 0.847173, 0.848807,
0.850174, 0.850449, 0.849464, 0.847811, 0.846488, 0.846294,
0.847347, 0.849015, 0.850291, 0.850404, 0.849284, 0.847605,
0.846379, 0.846349, 0.847533, 0.84922, 0.850391, 0.850339,
0.849093, 0.847402, 0.846287, 0.846423, 0.847729, 0.84942,
0.850475, 0.850256, 0.848892, 0.847205, 0.846213, 0.846516,
0.847934, 0.849613, 0.85054, 0.850153, 0.848683, 0.847015,
0.846156, 0.846627, 0.848146, 0.849799, 0.850587, 0.850033,
0.848468, 0.846834, 0.846119, 0.846757, 0.848365, 0.849975,
0.850615, 0.849895, 0.848247, 0.846664, 0.846102, 0.846903,
0.848588, 0.85014, 0.850622, 0.84974, 0.848022, 0.846505,
0.846105, 0.847067, 0.848814, 0.850292, 0.850609, 0.849568,
0.847795, 0.846359, 0.846128, 0.847246, 0.849041, 0.850431,
0.850575, 0.849382, 0.847569, 0.846228, 0.846173, 0.847439,
0.849267, 0.850554, 0.85052, 0.849181, 0.847343, 0.846114,
0.846238, 0.847646, 0.849491, 0.85066, 0.850443, 0.848968,
0.847121, 0.846017, 0.846326, 0.847866, 0.849711, 0.850748,
0.850345, 0.848742, 0.846903, 0.845938, 0.846434, 0.848097,
0.849926, 0.850816, 0.850226, 0.848507, 0.846693, 0.84588,
0.846564, 0.848337, 0.850132, 0.850864, 0.850086, 0.848262,
0.84649, 0.845842, 0.846714, 0.848586, 0.85033, 0.850891,
0.849926, 0.84801, 0.846298, 0.845826, 0.846885, 0.848841,
0.850516, 0.850896, 0.849745, 0.847752, 0.846119, 0.845833,
0.847075, 0.849101, 0.850689, 0.850877, 0.849544, 0.84749,
0.845953, 0.845864, 0.847285, 0.849364, 0.850847, 0.850834,
0.849325, 0.847226, 0.845802, 0.845919, 0.847514, 0.849629,
0.850989, 0.850766, 0.849088, 0.846961, 0.845669, 0.845999,
0.84776, 0.849894, 0.851113, 0.850674, 0.848833, 0.846697,
0.845555, 0.846105, 0.848022, 0.850156, 0.851217, 0.850555,
0.848563, 0.846436, 0.845462, 0.846236, 0.848301, 0.850415,
0.851299, 0.850411, 0.848277, 0.846181, 0.845391, 0.846394,
0.848593, 0.850667, 0.851358, 0.85024, 0.847978, 0.845933,
0.845344, 0.846578, 0.848899, 0.850911, 0.851392, 0.850043,
0.847666, 0.845694, 0.845323, 0.846789, 0.849217, 0.851144,
0.8514, 0.849818, 0.847343, 0.845466, 0.845329, 0.847026,
0.849545, 0.851365, 0.85138, 0.849567, 0.84701, 0.845252,
0.845363, 0.847291, 0.849882, 0.851572, 0.851331, 0.849289,
0.846669, 0.845053, 0.845428, 0.847583, 0.850226, 0.851762,
0.85125, 0.848984, 0.846322, 0.844872, 0.845525, 0.847901,
0.850577, 0.851933, 0.851137, 0.848652, 0.845969, 0.844712,
0.845655, 0.848246, 0.850931, 0.852083, 0.85099, 0.848293,
0.845613, 0.844574, 0.84582, 0.848619, 0.851288, 0.852209,
0.850806, 0.847908, 0.845256, 0.844461, 0.846023, 0.849018,
0.851646, 0.852308, 0.850584, 0.847495, 0.844898, 0.844375,
0.846264, 0.849445, 0.852002, 0.852379, 0.850322, 0.847054,
0.844543, 0.84432, 0.846547, 0.849899, 0.852356, 0.852417,
0.850018, 0.846586, 0.844191, 0.844299, 0.846873, 0.850382,
0.852706, 0.852421, 0.849668, 0.846089, 0.843844, 0.844314,
0.847247, 0.850893, 0.853049, 0.852386, 0.84927, 0.845562,
0.843505, 0.84437, 0.847671, 0.851435, 0.853384, 0.852308,
0.848819, 0.845004, 0.843175, 0.844471, 0.84815, 0.85201,
0.853709, 0.852182, 0.848311, 0.844412, 0.842855, 0.844622,
0.848689, 0.85262, 0.854022, 0.852004, 0.847738, 0.843783,
0.842549, 0.84483, 0.849297, 0.853269, 0.854322, 0.851765,
0.847094, 0.843113, 0.842257, 0.845102, 0.849982, 0.853963,
0.854606, 0.851458, 0.846366, 0.842394, 0.841981, 0.845448,
0.850756, 0.854709, 0.854872, 0.85107, 0.84554, 0.841617,
0.841725, 0.845881, 0.851638, 0.855519, 0.855118, 0.850586,
0.844596, 0.84077, 0.84149, 0.846421, 0.852651, 0.856409,
0.855341, 0.849985, 0.843505, 0.839832, 0.841279, 0.847092,
0.853831, 0.857401, 0.855538, 0.849235, 0.842225, 0.838776,
0.841097, 0.847932, 0.855227, 0.858531, 0.855704, 0.848291,
0.840693, 0.837559, 0.84095, 0.848998, 0.85692, 0.859853,
0.85583, 0.84708, 0.838808, 0.836111, 0.840848, 0.850383,
0.859038, 0.861455, 0.855904, 0.845481, 0.836403, 0.834318,
0.840808, 0.852248, 0.861803, 0.86349, 0.8559, 0.843277,
0.833177, 0.831972, 0.84087, 0.854895, 0.865635, 0.866244,
0.85576, 0.840035, 0.828527, 0.828665, 0.841125, 0.858968,
0.871428, 0.870324, 0.855327, 0.83475, 0.821062, 0.823458,
0.841856, 0.866125, 0.881478, 0.877262, 0.854045, 0.824467,
0.806693, 0.813665, 0.844298, 0.882237, 0.90391, 0.892258,
0.848634, 0.795426, 0.766322, 0.78772, 0.860288, 0.950765,
1, 0.945424, 0.7487, 0.415868, 1.75415e-14, -0.415868,
-0.7487, -0.945424, -1, -0.950765, -0.860288, -0.78772,
-0.766322, -0.795426, -0.848634, -0.892258, -0.90391, -0.882237,
-0.844298, -0.813665, -0.806693, -0.824467, -0.854045, -0.877262,
-0.881478, -0.866125, -0.841856, -0.823458, -0.821062, -0.83475,
-0.855327, -0.870324, -0.871428, -0.858968, -0.841125, -0.828665,
-0.828527, -0.840035, -0.85576, -0.866244, -0.865635, -0.854895,
-0.84087, -0.831972, -0.833177, -0.843277, -0.8559, -0.86349,
-0.861803, -0.852248, -0.840808, -0.834318, -0.836403, -0.845481,
-0.855904, -0.861455, -0.859038, -0.850383, -0.840848, -0.836111,
-0.838808, -0.84708, -0.85583, -0.859853, -0.85692, -0.848998,
-0.84095, -0.837559, -0.840693, -0.848291, -0.855704, -0.858531,
-0.855227, -0.847932, -0.841097, -0.838776, -0.842225, -0.849235,
-0.855538, -0.857401, -0.853831, -0.847092, -0.841279, -0.839832,
-0.843505, -0.849985, -0.855341, -0.856409, -0.852651, -0.846421,
-0.84149, -0.84077, -0.844596, -0.850586, -0.855118, -0.855519,
-0.851638, -0.845881, -0.841725, -0.841617, -0.84554, -0.85107,
-0.854872, -0.854709, -0.850756, -0.845448, -0.841981, -0.842394,
-0.846366, -0.851458, -0.854606, -0.853963, -0.849982, -0.845102,
-0.842257, -0.843113, -0.847094, -0.851765, -0.854322, -0.853269,
-0.849297, -0.84483, -0.842549, -0.843783, -0.847738, -0.852004,
-0.854022, -0.85262, -0.848689, -0.844622, -0.842855, -0.844412,
-0.848311, -0.852182, -0.853709, -0.85201, -0.84815, -0.844471,
-0.843175, -0.845004, -0.848819, -0.852308, -0.853384, -0.851435,
-0.847671, -0.84437, -0.843505, -0.845562, -0.84927, -0.852386,
-0.853049, -0.850893, -0.847247, -0.844314, -0.843844, -0.846089,
-0.849668, -0.852421, -0.852706, -0.850382, -0.846873, -0.844299,
-0.844191, -0.846586, -0.850018, -0.852417, -0.852356, -0.849899,
-0.846547, -0.84432, -0.844543, -0.847054, -0.850322, -0.852379,
-0.852002, -0.849445, -0.846264, -0.844375, -0.844898, -0.847495,
-0.850584, -0.852308, -0.851646, -0.849018, -0.846023, -0.844461,
-0.845256, -0.847908, -0.850806, -0.852209, -0.851288, -0.848619,
-0.84582, -0.844574, -0.845613, -0.848293, -0.85099, -0.852083,
-0.850931, -0.848246, -0.845655, -0.844712, -0.845969, -0.848652,
-0.851137, -0.851933, -0.850577, -0.847901, -0.845525, -0.844872,
-0.846322, -0.848984, -0.85125, -0.851762, -0.850226, -0.847583,
-0.845428, -0.845053, -0.846669, -0.849289, -0.851331, -0.851572,
-0.849882, -0.847291, -0.845363, -0.845252, -0.84701, -0.849567,
-0.85138, -0.851365, -0.849545, -0.847026, -0.845329, -0.845466,
-0.847343, -0.849818, -0.8514, -0.851144, -0.849217, -0.846789,
-0.845323, -0.845694, -0.847666, -0.850043, -0.851392, -0.850911,
-0.848899, -0.846578, -0.845344, -0.845933, -0.847978, -0.85024,
-0.851358, -0.850667, -0.848593, -0.846394, -0.845391, -0.846181,
-0.848277, -0.850411, -0.851299, -0.850415, -0.848301, -0.846236,
-0.845462, -0.846436, -0.848563, -0.850555, -0.851217, -0.850156,
-0.848022, -0.846105, -0.845555, -0.846697, -0.848833, -0.850674,
-0.851113, -0.849894, -0.84776, -0.845999, -0.845669, -0.846961,
-0.849088, -0.850766, -0.850989, -0.849629, -0.847514, -0.845919,
-0.845802, -0.847226, -0.849325, -0.850834, -0.850847, -0.849364,
-0.847285, -0.845864, -0.845953, -0.84749, -0.849544, -0.850877,
-0.850689, -0.849101, -0.847075, -0.845833, -0.846119, -0.847752,
-0.849745, -0.850896, -0.850516, -0.848841, -0.846885, -0.845826,
-0.846298, -0.84801, -0.849926, -0.850891, -0.85033, -0.848586,
-0.846714, -0.845842, -0.84649, -0.848262, -0.850086, -0.850864,
-0.850132, -0.848337, -0.846564, -0.84588, -0.846693, -0.848507,
-0.850226, -0.850816, -0.849926, -0.848097, -0.846434, -0.845938,
-0.846903, -0.848742, -0.850345, -0.850748, -0.849711, -0.847866,
-0.846326, -0.846017, -0.847121, -0.848968, -0.850443, -0.85066,
-0.849491, -0.847646, -0.846238, -0.846114, -0.847343, -0.849181,
-0.85052, -0.850554, -0.849267, -0.847439, -0.846173, -0.846228,
-0.847569, -0.849382, -0.850575, -0.850431, -0.849041, -0.847246,
-0.846128, -0.846359, -0.847795, -0.849568, -0.850609, -0.850292,
-0.848814, -0.847067, -0.846105, -0.846505, -0.848022, -0.84974,
-0.850622, -0.85014, -0.848588, -0.846903, -0.846102, -0.846664,
-0.848247, -0.849895, -0.850615, -0.849975, -0.848365, -0.846757,
-0.846119, -0.846834, -0.848468, -0.850033, -0.850587, -0.849799,
-0.848146, -0.846627, -0.846156, -0.847015, -0.848683, -0.850153,
-0.85054, -0.849613, -0.847934, -0.846516, -0.846213, -0.847205,
-0.848892, -0.850256, -0.850475, -0.84942, -0.847729, -0.846423,
-0.846287, -0.847402, -0.849093, -0.850339, -0.850391, -0.84922,
-0.847533, -0.846349, -0.846379, -0.847605, -0.849284, -0.850404,
-0.850291, -0.849015, -0.847347, -0.846294, -0.846488, -0.847811,
-0.849464, -0.850449, -0.850174, -0.848807, -0.847173, -0.846258,
-0.846612, -0.84802, -0.849632, -0.850475, -0.850043, -0.848598,
-0.847012, -0.846242, -0.84675, -0.848229, -0.849786, -0.850482,
-0.849898, -0.848389, -0.846865, -0.846245, -0.846902, -0.848438,
-0.849926, -0.850469, -0.849741, -0.848182, -0.846732, -0.846267,
-0.847065, -0.848643, -0.85005, -0.850438, -0.849573, -0.847978,
-0.846616, -0.846308, -0.847238, -0.848845, -0.850159, -0.850388,
-0.849395, -0.847779, -0.846516, -0.846367, -0.84742, -0.849041,
-0.85025, -0.85032, -0.849208, -0.847587, -0.846433, -0.846443,
-0.84761, -0.849229, -0.850324, -0.850235, -0.849016, -0.847402,
-0.846368, -0.846537, -0.847805, -0.849409, -0.85038, -0.850133,
-0.848818, -0.847227, -0.846322, -0.846646, -0.848005, -0.849579,
-0.850417, -0.850016, -0.848616, -0.847063, -0.846293, -0.846771,
-0.848208, -0.849737, -0.850436, -0.849883, -0.848412, -0.846911,
-0.846284, -0.846911, -0.848412, -0.849883, -0.850436, -0.849737,
-0.848208, -0.846771, -0.846293, -0.847063, -0.848616, -0.850016,
-0.850417, -0.849579, -0.848005, -0.846646, -0.846322, -0.847227,
-0.848818, -0.850133, -0.85038, -0.849409, -0.847805, -0.846537,
-0.846368, -0.847402, -0.849016, -0.850235, -0.850324, -0.849229,
-0.84761, -0.846443, -0.846433, -0.847587, -0.849208, -0.85032,
-0.85025, -0.849041, -0.84742, -0.846367, -0.846516, -0.847779,
-0.849395, -0.850388, -0.850159, -0.848845, -0.847238, -0.846308,
-0.846616, -0.847978, -0.849573, -0.850438, -0.85005, -0.848643,
-0.847065, -0.846267, -0.846732, -0.848182, -0.849741, -0.850469,
-0.849926, -0.848438, -0.846902, -0.846245, -0.846865, -0.848389,
-0.849898, -0.850482, -0.849786, -0.848229, -0.84675, -0.846242,
-0.847012, -0.848598, -0.850043, -0.850475, -0.849632, -0.84802,
-0.846612, -0.846258, -0.847173, -0.848807, -0.850174, -0.850449,
-0.849464, -0.847811, -0.846488, -0.846294, -0.847347, -0.849015,
-0.850291, -0.850404, -0.849284, -0.847605, -0.846379, -0.846349,
-0.847533, -0.84922, -0.850391, -0.850339, -0.849093, -0.847402,
-0.846287, -0.846423, -0.847729, -0.84942, -0.850475, -0.850256,
-0.848892, -0.847205, -0.846213, -0.846516, -0.847934, -0.849613,
-0.85054, -0.850153, -0.848683, -0.847015, -0.846156, -0.846627,
-0.848146, -0.849799, -0.850587, -0.850033, -0.848468, -0.846834,
-0.846119, -0.846757, -0.848365, -0.849975, -0.850615, -0.849895,
-0.848247, -0.846664, -0.846102, -0.846903, -0.848588, -0.85014,
-0.850622, -0.84974, -0.848022, -0.846505, -0.846105, -0.847067,
-0.848814, -0.850292, -0.850609, -0.849568, -0.847795, -0.846359,
-0.846128, -0.847246, -0.849041, -0.850431, -0.850575, -0.849382,
-0.847569, -0.846228, -0.846173, -0.847439, -0.849267, -0.850554,
-0.85052, -0.849181, -0.847343, -0.846114, -0.846238, -0.847646,
-0.849491, -0.85066, -0.850443, -0.848968, -0.847121, -0.846017,
-0.846326, -0.847866, -0.849711, -0.850748, -0.850345, -0.848742,
-0.846903, -0.845938, -0.846434, -0.848097, -0.849926, -0.850816,
-0.850226, -0.848507, -0.846693, -0.84588, -0.846564, -0.848337,
-0.850132, -0.850864, -0.850086, -0.848262, -0.84649, -0.845842,
-0.846714, -0.848586, -0.85033, -0.850891, -0.849926, -0.84801,
-0.846298, -0.845826, -0.846885, -0.848841, -0.850516, -0.850896,
-0.849745, -0.847752, -0.846119, -0.845833, -0.847075, -0.849101,
-0.850689, -0.850877, -0.849544, -0.84749, -0.845953, -0.845864,
-0.847285, -0.849364, -0.850847, -0.850834, -0.849325, -0.847226,
-0.845802, -0.845919, -0.847514, -0.849629, -0.850989, -0.850766,
-0.849088, -0.846961, -0.845669, -0.845999, -0.84776, -0.849894,
-0.851113, -0.850674, -0.848833, -0.846697, -0.845555, -0.846105,
-0.848022, -0.850156, -0.851217, -0.850555, -0.848563, -0.846436,
-0.845462, -0.846236, -0.848301, -0.850415, -0.851299, -0.850411,
-0.848277, -0.846181, -0.845391, -0.846394, -0.848593, -0.850667,
-0.851358, -0.85024, -0.847978, -0.845933, -0.845344, -0.846578,
-0.848899, -0.850911, -0.851392, -0.850043, -0.847666, -0.845694,
-0.845323, -0.846789, -0.849217, -0.851144, -0.8514, -0.849818,
-0.847343, -0.845466, -0.845329, -0.847026, -0.849545, -0.851365,
-0.85138, -0.849567, -0.84701, -0.845252, -0.845363, -0.847291,
-0.849882, -0.851572, -0.851331, -0.849289, -0.846669, -0.845053,
-0.845428, -0.847583, -0.850226, -0.851762, -0.85125, -0.848984,
-0.846322, -0.844872, -0.845525, -0.847901, -0.850577, -0.851933,
-0.851137, -0.848652, -0.845969, -0.844712, -0.845655, -0.848246,
-0.850931, -0.852083, -0.85099, -0.848293, -0.845613, -0.844574,
-0.84582, -0.848619, -0.851288, -0.852209, -0.850806, -0.847908,
-0.845256, -0.844461, -0.846023, -0.849018, -0.851646, -0.852308,
-0.850584, -0.847495, -0.844898, -0.844375, -0.846264, -0.849445,
-0.852002, -0.852379, -0.850322, -0.847054, -0.844543, -0.84432,
-0.846547, -0.849899, -0.852356, -0.852417, -0.850018, -0.846586,
-0.844191, -0.844299, -0.846873, -0.850382, -0.852706, -0.852421,
-0.849668, -0.846089, -0.843844, -0.844314, -0.847247, -0.850893,
-0.853049, -0.852386, -0.84927, -0.845562, -0.843505, -0.84437,
-0.847671, -0.851435, -0.853384, -0.852308, -0.848819, -0.845004,
-0.843175, -0.844471, -0.84815, -0.85201, -0.853709, -0.852182,
-0.848311, -0.844412, -0.842855, -0.844622, -0.848689, -0.85262,
-0.854022, -0.852004, -0.847738, -0.843783, -0.842549, -0.84483,
-0.849297, -0.853269, -0.854322, -0.851765, -0.847094, -0.843113,
-0.842257, -0.845102, -0.849982, -0.853963, -0.854606, -0.851458,
-0.846366, -0.842394, -0.841981, -0.845448, -0.850756, -0.854709,
-0.854872, -0.85107, -0.84554, -0.841617, -0.841725, -0.845881,
-0.851638, -0.855519, -0.855118, -0.850586, -0.844596, -0.84077,
-0.84149, -0.846421, -0.852651, -0.856409, -0.855341, -0.849985,
-0.843505, -0.839832, -0.841279, -0.847092, -0.853831, -0.857401,
-0.855538, -0.849235, -0.842225, -0.838776, -0.841097, -0.847932,
-0.855227, -0.858531, -0.855704, -0.848291, -0.840693, -0.837559,
-0.84095, -0.848998, -0.85692, -0.859853, -0.85583, -0.84708,
-0.838808, -0.836111, -0.840848, -0.850383, -0.859038, -0.861455,
-0.855904, -0.845481, -0.836403, -0.834318, -0.840808, -0.852248,
-0.861803, -0.86349, -0.8559, -0.843277, -0.833177, -0.831972,
-0.84087, -0.854895, -0.865635, -0.866244, -0.85576, -0.840035,
-0.828527, -0.828665, -0.841125, -0.858968, -0.871428, -0.870324,
-0.855327, -0.83475, -0.821062, -0.823458, -0.841856, -0.866125,
-0.881478, -0.877262, -0.854045, -0.824467, -0.806693, -0.813665,
-0.844298, -0.882237, -0.90391, -0.892258, -0.848634, -0.795426,
-0.766322, -0.78772, -0.860288, -0.950765, -1, -0.945424,
-0.7487, -0.415868
};
static const float WAVE_SQUARE_054[DEFAULT_WAVELEN] = {
2.22045e-16, 0.213507, 0.415863, 0.596966, 0.748695, 0.865621,
0.945422, 0.988955, 1, 0.984696, 0.950761, 0.906577,
0.860272, 0.818878, 0.787691, 0.769862, 0.766287, 0.775765,
0.795402, 0.82118, 0.848631, 0.873491, 0.892278, 0.902712,
0.903936, 0.896515, 0.882247, 0.863803, 0.844276, 0.826702,
0.813613, 0.806704, 0.806633, 0.812993, 0.824431, 0.83891,
0.85405, 0.867504, 0.877305, 0.882143, 0.881528, 0.875822,
0.866144, 0.854163, 0.841823, 0.831033, 0.823382, 0.819911,
0.82098, 0.826237, 0.834707, 0.844958, 0.855346, 0.864264,
0.870393, 0.87289, 0.8715, 0.866573, 0.858992, 0.850015,
0.841076, 0.833553, 0.828562, 0.826794, 0.828423, 0.833093,
0.839989, 0.84798, 0.855797, 0.862236, 0.86634, 0.867539,
0.865726, 0.861266, 0.854919, 0.847718, 0.840801, 0.835232,
0.831841, 0.831099, 0.833055, 0.83734, 0.843234, 0.849784,
0.855959, 0.86081, 0.863614, 0.863982, 0.861911, 0.857777,
0.852267, 0.846265, 0.840715, 0.836468, 0.834158, 0.834103,
0.836266, 0.840266, 0.845445, 0.850975, 0.85599, 0.859719,
0.861608, 0.861397, 0.859159, 0.85528, 0.850392, 0.845274,
0.840726, 0.837447, 0.835923, 0.836361, 0.83866, 0.842429,
0.847057, 0.85181, 0.855945, 0.85883, 0.860034, 0.859398,
0.857051, 0.853384, 0.84899, 0.844565, 0.840797, 0.838265,
0.837343, 0.838151, 0.840538, 0.844108, 0.848287, 0.852416,
0.855852, 0.858069, 0.858739, 0.857779, 0.855362, 0.851885,
0.847903, 0.844045, 0.84091, 0.838978, 0.838534, 0.839628,
0.842068, 0.845457, 0.849255, 0.852863, 0.855722, 0.857394,
0.857634, 0.856422, 0.853965, 0.850661, 0.847037, 0.84366,
0.841056, 0.839621, 0.839566, 0.840883, 0.843351, 0.846572,
0.850034, 0.853194, 0.855562, 0.856778, 0.856665, 0.855254,
0.85278, 0.849641, 0.846334, 0.843377, 0.841229, 0.840215,
0.840483, 0.841977, 0.844451, 0.84751, 0.850669, 0.853434,
0.855377, 0.856203, 0.855794, 0.854226, 0.851755, 0.848775,
0.845758, 0.843175, 0.841425, 0.840774, 0.841313, 0.842947,
0.845411, 0.848311, 0.851192, 0.853602, 0.85517, 0.855658,
0.855, 0.853307, 0.850855, 0.848032, 0.845283, 0.843038,
0.841642, 0.841307, 0.842076, 0.84382, 0.846258, 0.849002,
0.851623, 0.85371, 0.854943, 0.855135, 0.854264, 0.852475,
0.850055, 0.847388, 0.844892, 0.842956, 0.841879, 0.841822,
0.842787, 0.844615, 0.847013, 0.849603, 0.851978, 0.853767,
0.854697, 0.854627, 0.853575, 0.851714, 0.84934, 0.846828,
0.844572, 0.842922, 0.842134, 0.842324, 0.843455, 0.845345,
0.847692, 0.850127, 0.852267, 0.85378, 0.854433, 0.854131,
0.852925, 0.851012, 0.848695, 0.846338, 0.844312, 0.84293,
0.842406, 0.842815, 0.844088, 0.84602, 0.848305, 0.850584,
0.852498, 0.853753, 0.854153, 0.853644, 0.852308, 0.850361,
0.848111, 0.845911, 0.844106, 0.842976, 0.842694, 0.843298,
0.844691, 0.846648, 0.848861, 0.850982, 0.852679, 0.85369,
0.853858, 0.853164, 0.85172, 0.849755, 0.847582, 0.84554,
0.843949, 0.843056, 0.842996, 0.843775, 0.845267, 0.847234,
0.849366, 0.851328, 0.852814, 0.853594, 0.853549, 0.85269,
0.851156, 0.849189, 0.847101, 0.845219, 0.843836, 0.843166,
0.843312, 0.844246, 0.845819, 0.847781, 0.849824, 0.851626,
0.852907, 0.853469, 0.853226, 0.852221, 0.850614, 0.848659,
0.846665, 0.844943, 0.843762, 0.843306, 0.843641, 0.844713,
0.84635, 0.848294, 0.850239, 0.85188, 0.852961, 0.853316,
0.852891, 0.851757, 0.850093, 0.848163, 0.84627, 0.84471,
0.843727, 0.843472, 0.843982, 0.845175, 0.846861, 0.848774,
0.850614, 0.852092, 0.852979, 0.853137, 0.852545, 0.851297,
0.849592, 0.847699, 0.845914, 0.844517, 0.843726, 0.843663,
0.844334, 0.845632, 0.847353, 0.849223, 0.850951, 0.852266,
0.852963, 0.852934, 0.852188, 0.850842, 0.84911, 0.847264,
0.845595, 0.844362, 0.843759, 0.843877, 0.844696, 0.846085,
0.847826, 0.849643, 0.851253, 0.852403, 0.852914, 0.852709,
0.851821, 0.850391, 0.848646, 0.846859, 0.845311, 0.844243,
0.843823, 0.844113, 0.845067, 0.846533, 0.848281, 0.850035,
0.85152, 0.852505, 0.852836, 0.852462, 0.851446, 0.849946,
0.8482, 0.846482, 0.84506, 0.844159, 0.843916, 0.84437,
0.845446, 0.846976, 0.848718, 0.850398, 0.851753, 0.852572,
0.852728, 0.852196, 0.851063, 0.849506, 0.847772, 0.846132,
0.844843, 0.844107, 0.844038, 0.844646, 0.845833, 0.847413,
0.849137, 0.850734, 0.851954, 0.852608, 0.852592, 0.851911,
0.850673, 0.849073, 0.847362, 0.84581, 0.844658, 0.844088,
0.844187, 0.84494, 0.846226, 0.847843, 0.849537, 0.851043,
0.852124, 0.852611, 0.852429, 0.851608, 0.850277, 0.848646,
0.846971, 0.845514, 0.844505, 0.8441, 0.844363, 0.845251,
0.846624, 0.848266, 0.849919, 0.851324, 0.852261, 0.852584,
0.852241, 0.851289, 0.849877, 0.848227, 0.846598, 0.845246,
0.844383, 0.844143, 0.844563, 0.845577, 0.847026, 0.848681,
0.850282, 0.851579, 0.852368, 0.852526, 0.852029, 0.850955,
0.849473, 0.847816, 0.846245, 0.845005, 0.844291, 0.844215,
0.844788, 0.845919, 0.847431, 0.849087, 0.850626, 0.851806,
0.852444, 0.852439, 0.851792, 0.850606, 0.849066, 0.847415,
0.845911, 0.844791, 0.844231, 0.844317, 0.845036, 0.846275,
0.847839, 0.849483, 0.850949, 0.852006, 0.85249, 0.852323,
0.851533, 0.850244, 0.848658, 0.847024, 0.845598, 0.844605,
0.8442, 0.844447, 0.845306, 0.846643, 0.848248, 0.849869,
0.851252, 0.852179, 0.852505, 0.852179, 0.851252, 0.849869,
0.848248, 0.846643, 0.845306, 0.844447, 0.8442, 0.844605,
0.845598, 0.847024, 0.848658, 0.850244, 0.851533, 0.852323,
0.85249, 0.852006, 0.850949, 0.849483, 0.847839, 0.846275,
0.845036, 0.844317, 0.844231, 0.844791, 0.845911, 0.847415,
0.849066, 0.850606, 0.851792, 0.852439, 0.852444, 0.851806,
0.850626, 0.849087, 0.847431, 0.845919, 0.844788, 0.844215,
0.844291, 0.845005, 0.846245, 0.847816, 0.849473, 0.850955,
0.852029, 0.852526, 0.852368, 0.851579, 0.850282, 0.848681,
0.847026, 0.845577, 0.844563, 0.844143, 0.844383, 0.845246,
0.846598, 0.848227, 0.849877, 0.851289, 0.852241, 0.852584,
0.852261, 0.851324, 0.849919, 0.848266, 0.846624, 0.845251,
0.844363, 0.8441, 0.844505, 0.845514, 0.846971, 0.848646,
0.850277, 0.851608, 0.852429, 0.852611, 0.852124, 0.851043,
0.849537, 0.847843, 0.846226, 0.84494, 0.844187, 0.844088,
0.844658, 0.84581, 0.847362, 0.849073, 0.850673, 0.851911,
0.852592, 0.852608, 0.851954, 0.850734, 0.849137, 0.847413,
0.845833, 0.844646, 0.844038, 0.844107, 0.844843, 0.846132,
0.847772, 0.849506, 0.851063, 0.852196, 0.852728, 0.852572,
0.851753, 0.850398, 0.848718, 0.846976, 0.845446, 0.84437,
0.843916, 0.844159, 0.84506, 0.846482, 0.8482, 0.849946,
0.851446, 0.852462, 0.852836, 0.852505, 0.85152, 0.850035,
0.848281, 0.846533, 0.845067, 0.844113, 0.843823, 0.844243,
0.845311, 0.846859, 0.848646, 0.850391, 0.851821, 0.852709,
0.852914, 0.852403, 0.851253, 0.849643, 0.847826, 0.846085,
0.844696, 0.843877, 0.843759, 0.844362, 0.845595, 0.847264,
0.84911, 0.850842, 0.852188, 0.852934, 0.852963, 0.852266,
0.850951, 0.849223, 0.847353, 0.845632, 0.844334, 0.843663,
0.843726, 0.844517, 0.845914, 0.847699, 0.849592, 0.851297,
0.852545, 0.853137, 0.852979, 0.852092, 0.850614, 0.848774,
0.846861, 0.845175, 0.843982, 0.843472, 0.843727, 0.84471,
0.84627, 0.848163, 0.850093, 0.851757, 0.852891, 0.853316,
0.852961, 0.85188, 0.850239, 0.848294, 0.84635, 0.844713,
0.843641, 0.843306, 0.843762, 0.844943, 0.846665, 0.848659,
0.850614, 0.852221, 0.853226, 0.853469, 0.852907, 0.851626,
0.849824, 0.847781, 0.845819, 0.844246, 0.843312, 0.843166,
0.843836, 0.845219, 0.847101, 0.849189, 0.851156, 0.85269,
0.853549, 0.853594, 0.852814, 0.851328, 0.849366, 0.847234,
0.845267, 0.843775, 0.842996, 0.843056, 0.843949, 0.84554,
0.847582, 0.849755, 0.85172, 0.853164, 0.853858, 0.85369,
0.852679, 0.850982, 0.848861, 0.846648, 0.844691, 0.843298,
0.842694, 0.842976, 0.844106, 0.845911, 0.848111, 0.850361,
0.852308, 0.853644, 0.854153, 0.853753, 0.852498, 0.850584,
0.848305, 0.84602, 0.844088, 0.842815, 0.842406, 0.84293,
0.844312, 0.846338, 0.848695, 0.851012, 0.852925, 0.854131,
0.854433, 0.85378, 0.852267, 0.850127, 0.847692, 0.845345,
0.843455, 0.842324, 0.842134, 0.842922, 0.844572, 0.846828,
0.84934, 0.851714, 0.853575, 0.854627, 0.854697, 0.853767,
0.851978, 0.849603, 0.847013, 0.844615, 0.842787, 0.841822,
0.841879, 0.842956, 0.844892, 0.847388, 0.850055, 0.852475,
0.854264, 0.855135, 0.854943, 0.85371, 0.851623, 0.849002,
0.846258, 0.84382, 0.842076, 0.841307, 0.841642, 0.843038,
0.845283, 0.848032, 0.850855, 0.853307, 0.855, 0.855658,
0.85517, 0.853602, 0.851192, 0.848311, 0.845411, 0.842947,
0.841313, 0.840774, 0.841425, 0.843175, 0.845758, 0.848775,
0.851755, 0.854226, 0.855794, 0.856203, 0.855377, 0.853434,
0.850669, 0.84751, 0.844451, 0.841977, 0.840483, 0.840215,
0.841229, 0.843377, 0.846334, 0.849641, 0.85278, 0.855254,
0.856665, 0.856778, 0.855562, 0.853194, 0.850034, 0.846572,
0.843351, 0.840883, 0.839566, 0.839621, 0.841056, 0.84366,
0.847037, 0.850661, 0.853965, 0.856422, 0.857634, 0.857394,
0.855722, 0.852863, 0.849255, 0.845457, 0.842068, 0.839628,
0.838534, 0.838978, 0.84091, 0.844045, 0.847903, 0.851885,
0.855362, 0.857779, 0.858739, 0.858069, 0.855852, 0.852416,
0.848287, 0.844108, 0.840538, 0.838151, 0.837343, 0.838265,
0.840797, 0.844565, 0.84899, 0.853384, 0.857051, 0.859398,
0.860034, 0.85883, 0.855945, 0.85181, 0.847057, 0.842429,
0.83866, 0.836361, 0.835923, 0.837447, 0.840726, 0.845274,
0.850392, 0.85528, 0.859159, 0.861397, 0.861608, 0.859719,
0.85599, 0.850975, 0.845445, 0.840266, 0.836266, 0.834103,
0.834158, 0.836468, 0.840715, 0.846265, 0.852267, 0.857777,
0.861911, 0.863982, 0.863614, 0.86081, 0.855959, 0.849784,
0.843234, 0.83734, 0.833055, 0.831099, 0.831841, 0.835232,
0.840801, 0.847718, 0.854919, 0.861266, 0.865726, 0.867539,
0.86634, 0.862236, 0.855797, 0.84798, 0.839989, 0.833093,
0.828423, 0.826794, 0.828562, 0.833553, 0.841076, 0.850015,
0.858992, 0.866573, 0.8715, 0.87289, 0.870393, 0.864264,
0.855346, 0.844958, 0.834707, 0.826237, 0.82098, 0.819911,
0.823382, 0.831033, 0.841823, 0.854163, 0.866144, 0.875822,
0.881528, 0.882143, 0.877305, 0.867504, 0.85405, 0.83891,
0.824431, 0.812993, 0.806633, 0.806704, 0.813613, 0.826702,
0.844276, 0.863803, 0.882247, 0.896515, 0.903936, 0.902712,
0.892278, 0.873491, 0.848631, 0.82118, 0.795402, 0.775765,
0.766287, 0.769862, 0.787691, 0.818878, 0.860272, 0.906577,
0.950761, 0.984696, 1, 0.988955, 0.945422, 0.865621,
0.748695, 0.596966, 0.415863, 0.213507, 9.10383e-15, -0.213507,
-0.415863, -0.596966, -0.748695, -0.865621, -0.945422, -0.988955,
-1, -0.984696, -0.950761, -0.906577, -0.860272, -0.818878,
-0.787691, -0.769862, -0.766287, -0.775765, -0.795402, -0.82118,
-0.848631, -0.873491, -0.892278, -0.902712, -0.903936, -0.896515,
-0.882247, -0.863803, -0.844276, -0.826702, -0.813613, -0.806704,
-0.806633, -0.812993, -0.824431, -0.83891, -0.85405, -0.867504,
-0.877305, -0.882143, -0.881528, -0.875822, -0.866144, -0.854163,
-0.841823, -0.831033, -0.823382, -0.819911, -0.82098, -0.826237,
-0.834707, -0.844958, -0.855346, -0.864264, -0.870393, -0.87289,
-0.8715, -0.866573, -0.858992, -0.850015, -0.841076, -0.833553,
-0.828562, -0.826794, -0.828423, -0.833093, -0.839989, -0.84798,
-0.855797, -0.862236, -0.86634, -0.867539, -0.865726, -0.861266,
-0.854919, -0.847718, -0.840801, -0.835232, -0.831841, -0.831099,
-0.833055, -0.83734, -0.843234, -0.849784, -0.855959, -0.86081,
-0.863614, -0.863982, -0.861911, -0.857777, -0.852267, -0.846265,
-0.840715, -0.836468, -0.834158, -0.834103, -0.836266, -0.840266,
-0.845445, -0.850975, -0.85599, -0.859719, -0.861608, -0.861397,
-0.859159, -0.85528, -0.850392, -0.845274, -0.840726, -0.837447,
-0.835923, -0.836361, -0.83866, -0.842429, -0.847057, -0.85181,
-0.855945, -0.85883, -0.860034, -0.859398, -0.857051, -0.853384,
-0.84899, -0.844565, -0.840797, -0.838265, -0.837343, -0.838151,
-0.840538, -0.844108, -0.848287, -0.852416, -0.855852, -0.858069,
-0.858739, -0.857779, -0.855362, -0.851885, -0.847903, -0.844045,
-0.84091, -0.838978, -0.838534, -0.839628, -0.842068, -0.845457,
-0.849255, -0.852863, -0.855722, -0.857394, -0.857634, -0.856422,
-0.853965, -0.850661, -0.847037, -0.84366, -0.841056, -0.839621,
-0.839566, -0.840883, -0.843351, -0.846572, -0.850034, -0.853194,
-0.855562, -0.856778, -0.856665, -0.855254, -0.85278, -0.849641,
-0.846334, -0.843377, -0.841229, -0.840215, -0.840483, -0.841977,
-0.844451, -0.84751, -0.850669, -0.853434, -0.855377, -0.856203,
-0.855794, -0.854226, -0.851755, -0.848775, -0.845758, -0.843175,
-0.841425, -0.840774, -0.841313, -0.842947, -0.845411, -0.848311,
-0.851192, -0.853602, -0.85517, -0.855658, -0.855, -0.853307,
-0.850855, -0.848032, -0.845283, -0.843038, -0.841642, -0.841307,
-0.842076, -0.84382, -0.846258, -0.849002, -0.851623, -0.85371,
-0.854943, -0.855135, -0.854264, -0.852475, -0.850055, -0.847388,
-0.844892, -0.842956, -0.841879, -0.841822, -0.842787, -0.844615,
-0.847013, -0.849603, -0.851978, -0.853767, -0.854697, -0.854627,
-0.853575, -0.851714, -0.84934, -0.846828, -0.844572, -0.842922,
-0.842134, -0.842324, -0.843455, -0.845345, -0.847692, -0.850127,
-0.852267, -0.85378, -0.854433, -0.854131, -0.852925, -0.851012,
-0.848695, -0.846338, -0.844312, -0.84293, -0.842406, -0.842815,
-0.844088, -0.84602, -0.848305, -0.850584, -0.852498, -0.853753,
-0.854153, -0.853644, -0.852308, -0.850361, -0.848111, -0.845911,
-0.844106, -0.842976, -0.842694, -0.843298, -0.844691, -0.846648,
-0.848861, -0.850982, -0.852679, -0.85369, -0.853858, -0.853164,
-0.85172, -0.849755, -0.847582, -0.84554, -0.843949, -0.843056,
-0.842996, -0.843775, -0.845267, -0.847234, -0.849366, -0.851328,
-0.852814, -0.853594, -0.853549, -0.85269, -0.851156, -0.849189,
-0.847101, -0.845219, -0.843836, -0.843166, -0.843312, -0.844246,
-0.845819, -0.847781, -0.849824, -0.851626, -0.852907, -0.853469,
-0.853226, -0.852221, -0.850614, -0.848659, -0.846665, -0.844943,
-0.843762, -0.843306, -0.843641, -0.844713, -0.84635, -0.848294,
-0.850239, -0.85188, -0.852961, -0.853316, -0.852891, -0.851757,
-0.850093, -0.848163, -0.84627, -0.84471, -0.843727, -0.843472,
-0.843982, -0.845175, -0.846861, -0.848774, -0.850614, -0.852092,
-0.852979, -0.853137, -0.852545, -0.851297, -0.849592, -0.847699,
-0.845914, -0.844517, -0.843726, -0.843663, -0.844334, -0.845632,
-0.847353, -0.849223, -0.850951, -0.852266, -0.852963, -0.852934,
-0.852188, -0.850842, -0.84911, -0.847264, -0.845595, -0.844362,
-0.843759, -0.843877, -0.844696, -0.846085, -0.847826, -0.849643,
-0.851253, -0.852403, -0.852914, -0.852709, -0.851821, -0.850391,
-0.848646, -0.846859, -0.845311, -0.844243, -0.843823, -0.844113,
-0.845067, -0.846533, -0.848281, -0.850035, -0.85152, -0.852505,
-0.852836, -0.852462, -0.851446, -0.849946, -0.8482, -0.846482,
-0.84506, -0.844159, -0.843916, -0.84437, -0.845446, -0.846976,
-0.848718, -0.850398, -0.851753, -0.852572, -0.852728, -0.852196,
-0.851063, -0.849506, -0.847772, -0.846132, -0.844843, -0.844107,
-0.844038, -0.844646, -0.845833, -0.847413, -0.849137, -0.850734,
-0.851954, -0.852608, -0.852592, -0.851911, -0.850673, -0.849073,
-0.847362, -0.84581, -0.844658, -0.844088, -0.844187, -0.84494,
-0.846226, -0.847843, -0.849537, -0.851043, -0.852124, -0.852611,
-0.852429, -0.851608, -0.850277, -0.848646, -0.846971, -0.845514,
-0.844505, -0.8441, -0.844363, -0.845251, -0.846624, -0.848266,
-0.849919, -0.851324, -0.852261, -0.852584, -0.852241, -0.851289,
-0.849877, -0.848227, -0.846598, -0.845246, -0.844383, -0.844143,
-0.844563, -0.845577, -0.847026, -0.848681, -0.850282, -0.851579,
-0.852368, -0.852526, -0.852029, -0.850955, -0.849473, -0.847816,
-0.846245, -0.845005, -0.844291, -0.844215, -0.844788, -0.845919,
-0.847431, -0.849087, -0.850626, -0.851806, -0.852444, -0.852439,
-0.851792, -0.850606, -0.849066, -0.847415, -0.845911, -0.844791,
-0.844231, -0.844317, -0.845036, -0.846275, -0.847839, -0.849483,
-0.850949, -0.852006, -0.85249, -0.852323, -0.851533, -0.850244,
-0.848658, -0.847024, -0.845598, -0.844605, -0.8442, -0.844447,
-0.845306, -0.846643, -0.848248, -0.849869, -0.851252, -0.852179,
-0.852505, -0.852179, -0.851252, -0.849869, -0.848248, -0.846643,
-0.845306, -0.844447, -0.8442, -0.844605, -0.845598, -0.847024,
-0.848658, -0.850244, -0.851533, -0.852323, -0.85249, -0.852006,
-0.850949, -0.849483, -0.847839, -0.846275, -0.845036, -0.844317,
-0.844231, -0.844791, -0.845911, -0.847415, -0.849066, -0.850606,
-0.851792, -0.852439, -0.852444, -0.851806, -0.850626, -0.849087,
-0.847431, -0.845919, -0.844788, -0.844215, -0.844291, -0.845005,
-0.846245, -0.847816, -0.849473, -0.850955, -0.852029, -0.852526,
-0.852368, -0.851579, -0.850282, -0.848681, -0.847026, -0.845577,
-0.844563, -0.844143, -0.844383, -0.845246, -0.846598, -0.848227,
-0.849877, -0.851289, -0.852241, -0.852584, -0.852261, -0.851324,
-0.849919, -0.848266, -0.846624, -0.845251, -0.844363, -0.8441,
-0.844505, -0.845514, -0.846971, -0.848646, -0.850277, -0.851608,
-0.852429, -0.852611, -0.852124, -0.851043, -0.849537, -0.847843,
-0.846226, -0.84494, -0.844187, -0.844088, -0.844658, -0.84581,
-0.847362, -0.849073, -0.850673, -0.851911, -0.852592, -0.852608,
-0.851954, -0.850734, -0.849137, -0.847413, -0.845833, -0.844646,
-0.844038, -0.844107, -0.844843, -0.846132, -0.847772, -0.849506,
-0.851063, -0.852196, -0.852728, -0.852572, -0.851753, -0.850398,
-0.848718, -0.846976, -0.845446, -0.84437, -0.843916, -0.844159,
-0.84506, -0.846482, -0.8482, -0.849946, -0.851446, -0.852462,
-0.852836, -0.852505, -0.85152, -0.850035, -0.848281, -0.846533,
-0.845067, -0.844113, -0.843823, -0.844243, -0.845311, -0.846859,
-0.848646, -0.850391, -0.851821, -0.852709, -0.852914, -0.852403,
-0.851253, -0.849643, -0.847826, -0.846085, -0.844696, -0.843877,
-0.843759, -0.844362, -0.845595, -0.847264, -0.84911, -0.850842,
-0.852188, -0.852934, -0.852963, -0.852266, -0.850951, -0.849223,
-0.847353, -0.845632, -0.844334, -0.843663, -0.843726, -0.844517,
-0.845914, -0.847699, -0.849592, -0.851297, -0.852545, -0.853137,
-0.852979, -0.852092, -0.850614, -0.848774, -0.846861, -0.845175,
-0.843982, -0.843472, -0.843727, -0.84471, -0.84627, -0.848163,
-0.850093, -0.851757, -0.852891, -0.853316, -0.852961, -0.85188,
-0.850239, -0.848294, -0.84635, -0.844713, -0.843641, -0.843306,
-0.843762, -0.844943, -0.846665, -0.848659, -0.850614, -0.852221,
-0.853226, -0.853469, -0.852907, -0.851626, -0.849824, -0.847781,
-0.845819, -0.844246, -0.843312, -0.843166, -0.843836, -0.845219,
-0.847101, -0.849189, -0.851156, -0.85269, -0.853549, -0.853594,
-0.852814, -0.851328, -0.849366, -0.847234, -0.845267, -0.843775,
-0.842996, -0.843056, -0.843949, -0.84554, -0.847582, -0.849755,
-0.85172, -0.853164, -0.853858, -0.85369, -0.852679, -0.850982,
-0.848861, -0.846648, -0.844691, -0.843298, -0.842694, -0.842976,
-0.844106, -0.845911, -0.848111, -0.850361, -0.852308, -0.853644,
-0.854153, -0.853753, -0.852498, -0.850584, -0.848305, -0.84602,
-0.844088, -0.842815, -0.842406, -0.84293, -0.844312, -0.846338,
-0.848695, -0.851012, -0.852925, -0.854131, -0.854433, -0.85378,
-0.852267, -0.850127, -0.847692, -0.845345, -0.843455, -0.842324,
-0.842134, -0.842922, -0.844572, -0.846828, -0.84934, -0.851714,
-0.853575, -0.854627, -0.854697, -0.853767, -0.851978, -0.849603,
-0.847013, -0.844615, -0.842787, -0.841822, -0.841879, -0.842956,
-0.844892, -0.847388, -0.850055, -0.852475, -0.854264, -0.855135,
-0.854943, -0.85371, -0.851623, -0.849002, -0.846258, -0.84382,
-0.842076, -0.841307, -0.841642, -0.843038, -0.845283, -0.848032,
-0.850855, -0.853307, -0.855, -0.855658, -0.85517, -0.853602,
-0.851192, -0.848311, -0.845411, -0.842947, -0.841313, -0.840774,
-0.841425, -0.843175, -0.845758, -0.848775, -0.851755, -0.854226,
-0.855794, -0.856203, -0.855377, -0.853434, -0.850669, -0.84751,
-0.844451, -0.841977, -0.840483, -0.840215, -0.841229, -0.843377,
-0.846334, -0.849641, -0.85278, -0.855254, -0.856665, -0.856778,
-0.855562, -0.853194, -0.850034, -0.846572, -0.843351, -0.840883,
-0.839566, -0.839621, -0.841056, -0.84366, -0.847037, -0.850661,
-0.853965, -0.856422, -0.857634, -0.857394, -0.855722, -0.852863,
-0.849255, -0.845457, -0.842068, -0.839628, -0.838534, -0.838978,
-0.84091, -0.844045, -0.847903, -0.851885, -0.855362, -0.857779,
-0.858739, -0.858069, -0.855852, -0.852416, -0.848287, -0.844108,
-0.840538, -0.838151, -0.837343, -0.838265, -0.840797, -0.844565,
-0.84899, -0.853384, -0.857051, -0.859398, -0.860034, -0.85883,
-0.855945, -0.85181, -0.847057, -0.842429, -0.83866, -0.836361,
-0.835923, -0.837447, -0.840726, -0.845274, -0.850392, -0.85528,
-0.859159, -0.861397, -0.861608, -0.859719, -0.85599, -0.850975,
-0.845445, -0.840266, -0.836266, -0.834103, -0.834158, -0.836468,
-0.840715, -0.846265, -0.852267, -0.857777, -0.861911, -0.863982,
-0.863614, -0.86081, -0.855959, -0.849784, -0.843234, -0.83734,
-0.833055, -0.831099, -0.831841, -0.835232, -0.840801, -0.847718,
-0.854919, -0.861266, -0.865726, -0.867539, -0.86634, -0.862236,
-0.855797, -0.84798, -0.839989, -0.833093, -0.828423, -0.826794,
-0.828562, -0.833553, -0.841076, -0.850015, -0.858992, -0.866573,
-0.8715, -0.87289, -0.870393, -0.864264, -0.855346, -0.844958,
-0.834707, -0.826237, -0.82098, -0.819911, -0.823382, -0.831033,
-0.841823, -0.854163, -0.866144, -0.875822, -0.881528, -0.882143,
-0.877305, -0.867504, -0.85405, -0.83891, -0.824431, -0.812993,
-0.806633, -0.806704, -0.813613, -0.826702, -0.844276, -0.863803,
-0.882247, -0.896515, -0.903936, -0.902712, -0.892278, -0.873491,
-0.848631, -0.82118, -0.795402, -0.775765, -0.766287, -0.769862,
-0.787691, -0.818878, -0.860272, -0.906577, -0.950761, -0.984696,
-1, -0.988955, -0.945422, -0.865621, -0.748695, -0.596966,
-0.415863, -0.213507
};
static const float WAVE_SQUARE_066[DEFAULT_WAVELEN] = {
-1.11022e-16, 0.10579, 0.210225, 0.311984, 0.409803, 0.502513,
0.589057, 0.668521, 0.740148, 0.803355, 0.857742, 0.9031,
0.939408, 0.966832, 0.985712, 0.996552, 1, 0.996828,
0.987907, 0.974183, 0.956649, 0.936317, 0.914194, 0.89125,
0.868399, 0.846477, 0.82622, 0.808252, 0.793072, 0.781048,
0.772412, 0.767265, 0.765576, 0.767196, 0.771868, 0.779242,
0.788889, 0.800326, 0.81303, 0.826459, 0.840074, 0.853356,
0.865822, 0.877043, 0.886654, 0.894367, 0.899974, 0.903355,
0.904475, 0.903385, 0.900215, 0.895166, 0.8885, 0.88053,
0.871605, 0.862096, 0.852383, 0.842839, 0.83382, 0.825648,
0.818604, 0.812917, 0.808758, 0.806237, 0.805397, 0.80622,
0.808623, 0.812469, 0.817571, 0.823698, 0.83059, 0.837964,
0.845527, 0.852989, 0.860068, 0.866506, 0.872076, 0.876589,
0.8799, 0.881914, 0.882587, 0.881925, 0.879986, 0.876874,
0.872734, 0.867748, 0.862124, 0.85609, 0.849884, 0.843747,
0.83791, 0.832588, 0.827973, 0.824225, 0.821468, 0.819788,
0.819226, 0.81978, 0.821409, 0.824028, 0.827518, 0.83173,
0.83649, 0.841607, 0.846878, 0.852101, 0.857077, 0.861622,
0.86557, 0.868782, 0.871147, 0.872592, 0.873076, 0.872597,
0.871191, 0.868926, 0.865902, 0.862249, 0.858114, 0.853663,
0.849072, 0.844517, 0.840171, 0.836197, 0.83274, 0.829925,
0.827848, 0.826579, 0.826154, 0.826575, 0.827815, 0.829815,
0.832487, 0.83572, 0.839383, 0.843329, 0.847405, 0.851452,
0.855318, 0.858856, 0.861937, 0.864448, 0.866302, 0.867436,
0.867817, 0.86744, 0.866328, 0.864534, 0.862135, 0.859229,
0.855935, 0.852383, 0.848711, 0.845061, 0.841573, 0.838377,
0.835593, 0.833321, 0.831643, 0.830615, 0.83027, 0.830613,
0.831622, 0.833252, 0.835434, 0.838078, 0.841078, 0.844315,
0.847663, 0.850993, 0.854178, 0.857098, 0.859644, 0.861722,
0.863259, 0.8642, 0.864517, 0.864202, 0.863276, 0.861779,
0.859774, 0.857343, 0.854583, 0.851604, 0.84852, 0.845451,
0.842514, 0.83982, 0.83747, 0.83555, 0.83413, 0.83326,
0.832967, 0.833258, 0.834116, 0.835503, 0.837362, 0.839617,
0.842178, 0.844944, 0.847809, 0.850661, 0.853392, 0.855898,
0.858085, 0.859872, 0.861195, 0.862006, 0.862279, 0.862008,
0.861207, 0.859912, 0.858175, 0.856068, 0.853674, 0.851086,
0.848406, 0.845736, 0.843179, 0.840831, 0.838781, 0.837105,
0.835864, 0.835103, 0.834847, 0.835102, 0.835854, 0.837071,
0.838704, 0.840686, 0.842939, 0.845375, 0.847899, 0.850415,
0.852825, 0.855038, 0.856972, 0.858553, 0.859724, 0.860443,
0.860685, 0.860444, 0.859733, 0.858581, 0.857037, 0.855162,
0.85303, 0.850723, 0.848333, 0.84595, 0.843665, 0.841567,
0.839733, 0.838233, 0.837122, 0.83644, 0.83621, 0.836439,
0.837115, 0.838209, 0.839677, 0.84146, 0.843489, 0.845684,
0.84796, 0.850229, 0.852405, 0.854404, 0.856152, 0.857582,
0.858641, 0.859292, 0.859511, 0.859293, 0.858648, 0.857603,
0.8562, 0.854496, 0.852557, 0.850459, 0.848282, 0.846112,
0.84403, 0.842116, 0.840443, 0.839073, 0.838058, 0.837435,
0.837225, 0.837434, 0.838053, 0.839055, 0.8404, 0.842036,
0.843897, 0.845912, 0.848002, 0.850088, 0.852088, 0.853927,
0.855535, 0.856852, 0.857829, 0.858428, 0.858631, 0.858429,
0.857833, 0.856868, 0.855572, 0.853997, 0.852203, 0.850261,
0.848246, 0.846235, 0.844305, 0.842531, 0.840979, 0.839708,
0.838765, 0.838186, 0.837991, 0.838185, 0.838761, 0.839694,
0.840947, 0.84247, 0.844205, 0.846084, 0.848034, 0.84998,
0.851848, 0.853566, 0.855069, 0.8563, 0.857214, 0.857775,
0.857964, 0.857775, 0.857217, 0.856313, 0.855097, 0.853619,
0.851935, 0.850111, 0.848218, 0.846328, 0.844514, 0.842845,
0.841384, 0.840188, 0.8393, 0.838754, 0.83857, 0.838754,
0.839297, 0.840177, 0.84136, 0.842799, 0.844438, 0.846214,
0.848058, 0.849899, 0.851667, 0.853294, 0.854718, 0.855884,
0.85675, 0.857282, 0.857462, 0.857283, 0.856753, 0.855893,
0.854739, 0.853333, 0.851733, 0.849998, 0.848196, 0.846397,
0.844669, 0.843079, 0.841687, 0.840547, 0.8397, 0.839179,
0.839004, 0.839179, 0.839698, 0.840539, 0.84167, 0.843046,
0.844614, 0.846313, 0.848078, 0.849841, 0.851534, 0.853093,
0.854458, 0.855577, 0.856407, 0.856918, 0.85709, 0.856918,
0.856409, 0.855583, 0.854473, 0.853122, 0.851582, 0.849912,
0.848178, 0.846446, 0.844781, 0.843249, 0.841907, 0.840807,
0.839991, 0.839488, 0.839319, 0.839488, 0.839989, 0.840802,
0.841895, 0.843225, 0.844742, 0.846386, 0.848095, 0.849802,
0.851442, 0.852952, 0.854275, 0.855359, 0.856165, 0.85666,
0.856827, 0.85666, 0.856166, 0.855364, 0.854285, 0.852971,
0.851474, 0.84985, 0.848163, 0.846476, 0.844856, 0.843364,
0.842056, 0.840984, 0.840188, 0.839698, 0.839533, 0.839698,
0.840187, 0.840981, 0.842048, 0.843348, 0.844831, 0.846438,
0.848109, 0.849779, 0.851384, 0.852863, 0.854158, 0.85522,
0.856009, 0.856495, 0.856659, 0.856495, 0.85601, 0.855223,
0.854164, 0.852874, 0.851403, 0.849807, 0.848149, 0.846491,
0.844897, 0.843429, 0.842142, 0.841087, 0.840303, 0.83982,
0.839657, 0.83982, 0.840302, 0.841085, 0.842138, 0.843421,
0.844885, 0.846472, 0.848123, 0.849773, 0.851359, 0.852821,
0.854102, 0.855153, 0.855934, 0.856415, 0.856577, 0.856415,
0.855934, 0.855154, 0.854104, 0.852825, 0.851365, 0.849782,
0.848136, 0.846489, 0.844906, 0.843448, 0.842169, 0.84112,
0.84034, 0.83986, 0.839698, 0.83986, 0.84034, 0.84112,
0.842169, 0.843448, 0.844906, 0.846489, 0.848136, 0.849782,
0.851365, 0.852825, 0.854104, 0.855154, 0.855934, 0.856415,
0.856577, 0.856415, 0.855934, 0.855153, 0.854102, 0.852821,
0.851359, 0.849773, 0.848123, 0.846472, 0.844885, 0.843421,
0.842138, 0.841085, 0.840302, 0.83982, 0.839657, 0.83982,
0.840303, 0.841087, 0.842142, 0.843429, 0.844897, 0.846491,
0.848149, 0.849807, 0.851403, 0.852874, 0.854164, 0.855223,
0.85601, 0.856495, 0.856659, 0.856495, 0.856009, 0.85522,
0.854158, 0.852863, 0.851384, 0.849779, 0.848109, 0.846438,
0.844831, 0.843348, 0.842048, 0.840981, 0.840187, 0.839698,
0.839533, 0.839698, 0.840188, 0.840984, 0.842056, 0.843364,
0.844856, 0.846476, 0.848163, 0.84985, 0.851474, 0.852971,
0.854285, 0.855364, 0.856166, 0.85666, 0.856827, 0.85666,
0.856165, 0.855359, 0.854275, 0.852952, 0.851442, 0.849802,
0.848095, 0.846386, 0.844742, 0.843225, 0.841895, 0.840802,
0.839989, 0.839488, 0.839319, 0.839488, 0.839991, 0.840807,
0.841907, 0.843249, 0.844781, 0.846446, 0.848178, 0.849912,
0.851582, 0.853122, 0.854473, 0.855583, 0.856409, 0.856918,
0.85709, 0.856918, 0.856407, 0.855577, 0.854458, 0.853093,
0.851534, 0.849841, 0.848078, 0.846313, 0.844614, 0.843046,
0.84167, 0.840539, 0.839698, 0.839179, 0.839004, 0.839179,
0.8397, 0.840547, 0.841687, 0.843079, 0.844669, 0.846397,
0.848196, 0.849998, 0.851733, 0.853333, 0.854739, 0.855893,
0.856753, 0.857283, 0.857462, 0.857282, 0.85675, 0.855884,
0.854718, 0.853294, 0.851667, 0.849899, 0.848058, 0.846214,
0.844438, 0.842799, 0.84136, 0.840177, 0.839297, 0.838754,
0.83857, 0.838754, 0.8393, 0.840188, 0.841384, 0.842845,
0.844514, 0.846328, 0.848218, 0.850111, 0.851935, 0.853619,
0.855097, 0.856313, 0.857217, 0.857775, 0.857964, 0.857775,
0.857214, 0.8563, 0.855069, 0.853566, 0.851848, 0.84998,
0.848034, 0.846084, 0.844205, 0.84247, 0.840947, 0.839694,
0.838761, 0.838185, 0.837991, 0.838186, 0.838765, 0.839708,
0.840979, 0.842531, 0.844305, 0.846235, 0.848246, 0.850261,
0.852203, 0.853997, 0.855572, 0.856868, 0.857833, 0.858429,
0.858631, 0.858428, 0.857829, 0.856852, 0.855535, 0.853927,
0.852088, 0.850088, 0.848002, 0.845912, 0.843897, 0.842036,
0.8404, 0.839055, 0.838053, 0.837434, 0.837225, 0.837435,
0.838058, 0.839073, 0.840443, 0.842116, 0.84403, 0.846112,
0.848282, 0.850459, 0.852557, 0.854496, 0.8562, 0.857603,
0.858648, 0.859293, 0.859511, 0.859292, 0.858641, 0.857582,
0.856152, 0.854404, 0.852405, 0.850229, 0.84796, 0.845684,
0.843489, 0.84146, 0.839677, 0.838209, 0.837115, 0.836439,
0.83621, 0.83644, 0.837122, 0.838233, 0.839733, 0.841567,
0.843665, 0.84595, 0.848333, 0.850723, 0.85303, 0.855162,
0.857037, 0.858581, 0.859733, 0.860444, 0.860685, 0.860443,
0.859724, 0.858553, 0.856972, 0.855038, 0.852825, 0.850415,
0.847899, 0.845375, 0.842939, 0.840686, 0.838704, 0.837071,
0.835854, 0.835102, 0.834847, 0.835103, 0.835864, 0.837105,
0.838781, 0.840831, 0.843179, 0.845736, 0.848406, 0.851086,
0.853674, 0.856068, 0.858175, 0.859912, 0.861207, 0.862008,
0.862279, 0.862006, 0.861195, 0.859872, 0.858085, 0.855898,
0.853392, 0.850661, 0.847809, 0.844944, 0.842178, 0.839617,
0.837362, 0.835503, 0.834116, 0.833258, 0.832967, 0.83326,
0.83413, 0.83555, 0.83747, 0.83982, 0.842514, 0.845451,
0.84852, 0.851604, 0.854583, 0.857343, 0.859774, 0.861779,
0.863276, 0.864202, 0.864517, 0.8642, 0.863259, 0.861722,
0.859644, 0.857098, 0.854178, 0.850993, 0.847663, 0.844315,
0.841078, 0.838078, 0.835434, 0.833252, 0.831622, 0.830613,
0.83027, 0.830615, 0.831643, 0.833321, 0.835593, 0.838377,
0.841573, 0.845061, 0.848711, 0.852383, 0.855935, 0.859229,
0.862135, 0.864534, 0.866328, 0.86744, 0.867817, 0.867436,
0.866302, 0.864448, 0.861937, 0.858856, 0.855318, 0.851452,
0.847405, 0.843329, 0.839383, 0.83572, 0.832487, 0.829815,
0.827815, 0.826575, 0.826154, 0.826579, 0.827848, 0.829925,
0.83274, 0.836197, 0.840171, 0.844517, 0.849072, 0.853663,
0.858114, 0.862249, 0.865902, 0.868926, 0.871191, 0.872597,
0.873076, 0.872592, 0.871147, 0.868782, 0.86557, 0.861622,
0.857077, 0.852101, 0.846878, 0.841607, 0.83649, 0.83173,
0.827518, 0.824028, 0.821409, 0.81978, 0.819226, 0.819788,
0.821468, 0.824225, 0.827973, 0.832588, 0.83791, 0.843747,
0.849884, 0.85609, 0.862124, 0.867748, 0.872734, 0.876874,
0.879986, 0.881925, 0.882587, 0.881914, 0.8799, 0.876589,
0.872076, 0.866506, 0.860068, 0.852989, 0.845527, 0.837964,
0.83059, 0.823698, 0.817571, 0.812469, 0.808623, 0.80622,
0.805397, 0.806237, 0.808758, 0.812917, 0.818604, 0.825648,
0.83382, 0.842839, 0.852383, 0.862096, 0.871605, 0.88053,
0.8885, 0.895166, 0.900215, 0.903385, 0.904475, 0.903355,
0.899974, 0.894367, 0.886654, 0.877043, 0.865822, 0.853356,
0.840074, 0.826459, 0.81303, 0.800326, 0.788889, 0.779242,
0.771868, 0.767196, 0.765576, 0.767265, 0.772412, 0.781048,
0.793072, 0.808252, 0.82622, 0.846477, 0.868399, 0.89125,
0.914194, 0.936317, 0.956649, 0.974183, 0.987907, 0.996828,
1, 0.996552, 0.985712, 0.966832, 0.939408, 0.9031,
0.857742, 0.803355, 0.740148, 0.668521, 0.589057, 0.502513,
0.409803, 0.311984, 0.210225, 0.10579, 4.44089e-15, -0.10579,
-0.210225, -0.311984, -0.409803, -0.502513, -0.589057, -0.668521,
-0.740148, -0.803355, -0.857742, -0.9031, -0.939408, -0.966832,
-0.985712, -0.996552, -1, -0.996828, -0.987907, -0.974183,
-0.956649, -0.936317, -0.914194, -0.89125, -0.868399, -0.846477,
-0.82622, -0.808252, -0.793072, -0.781048, -0.772412, -0.767265,
-0.765576, -0.767196, -0.771868, -0.779242, -0.788889, -0.800326,
-0.81303, -0.826459, -0.840074, -0.853356, -0.865822, -0.877043,
-0.886654, -0.894367, -0.899974, -0.903355, -0.904475, -0.903385,
-0.900215, -0.895166, -0.8885, -0.88053, -0.871605, -0.862096,
-0.852383, -0.842839, -0.83382, -0.825648, -0.818604, -0.812917,
-0.808758, -0.806237, -0.805397, -0.80622, -0.808623, -0.812469,
-0.817571, -0.823698, -0.83059, -0.837964, -0.845527, -0.852989,
-0.860068, -0.866506, -0.872076, -0.876589, -0.8799, -0.881914,
-0.882587, -0.881925, -0.879986, -0.876874, -0.872734, -0.867748,
-0.862124, -0.85609, -0.849884, -0.843747, -0.83791, -0.832588,
-0.827973, -0.824225, -0.821468, -0.819788, -0.819226, -0.81978,
-0.821409, -0.824028, -0.827518, -0.83173, -0.83649, -0.841607,
-0.846878, -0.852101, -0.857077, -0.861622, -0.86557, -0.868782,
-0.871147, -0.872592, -0.873076, -0.872597, -0.871191, -0.868926,
-0.865902, -0.862249, -0.858114, -0.853663, -0.849072, -0.844517,
-0.840171, -0.836197, -0.83274, -0.829925, -0.827848, -0.826579,
-0.826154, -0.826575, -0.827815, -0.829815, -0.832487, -0.83572,
-0.839383, -0.843329, -0.847405, -0.851452, -0.855318, -0.858856,
-0.861937, -0.864448, -0.866302, -0.867436, -0.867817, -0.86744,
-0.866328, -0.864534, -0.862135, -0.859229, -0.855935, -0.852383,
-0.848711, -0.845061, -0.841573, -0.838377, -0.835593, -0.833321,
-0.831643, -0.830615, -0.83027, -0.830613, -0.831622, -0.833252,
-0.835434, -0.838078, -0.841078, -0.844315, -0.847663, -0.850993,
-0.854178, -0.857098, -0.859644, -0.861722, -0.863259, -0.8642,
-0.864517, -0.864202, -0.863276, -0.861779, -0.859774, -0.857343,
-0.854583, -0.851604, -0.84852, -0.845451, -0.842514, -0.83982,
-0.83747, -0.83555, -0.83413, -0.83326, -0.832967, -0.833258,
-0.834116, -0.835503, -0.837362, -0.839617, -0.842178, -0.844944,
-0.847809, -0.850661, -0.853392, -0.855898, -0.858085, -0.859872,
-0.861195, -0.862006, -0.862279, -0.862008, -0.861207, -0.859912,
-0.858175, -0.856068, -0.853674, -0.851086, -0.848406, -0.845736,
-0.843179, -0.840831, -0.838781, -0.837105, -0.835864, -0.835103,
-0.834847, -0.835102, -0.835854, -0.837071, -0.838704, -0.840686,
-0.842939, -0.845375, -0.847899, -0.850415, -0.852825, -0.855038,
-0.856972, -0.858553, -0.859724, -0.860443, -0.860685, -0.860444,
-0.859733, -0.858581, -0.857037, -0.855162, -0.85303, -0.850723,
-0.848333, -0.84595, -0.843665, -0.841567, -0.839733, -0.838233,
-0.837122, -0.83644, -0.83621, -0.836439, -0.837115, -0.838209,
-0.839677, -0.84146, -0.843489, -0.845684, -0.84796, -0.850229,
-0.852405, -0.854404, -0.856152, -0.857582, -0.858641, -0.859292,
-0.859511, -0.859293, -0.858648, -0.857603, -0.8562, -0.854496,
-0.852557, -0.850459, -0.848282, -0.846112, -0.84403, -0.842116,
-0.840443, -0.839073, -0.838058, -0.837435, -0.837225, -0.837434,
-0.838053, -0.839055, -0.8404, -0.842036, -0.843897, -0.845912,
-0.848002, -0.850088, -0.852088, -0.853927, -0.855535, -0.856852,
-0.857829, -0.858428, -0.858631, -0.858429, -0.857833, -0.856868,
-0.855572, -0.853997, -0.852203, -0.850261, -0.848246, -0.846235,
-0.844305, -0.842531, -0.840979, -0.839708, -0.838765, -0.838186,
-0.837991, -0.838185, -0.838761, -0.839694, -0.840947, -0.84247,
-0.844205, -0.846084, -0.848034, -0.84998, -0.851848, -0.853566,
-0.855069, -0.8563, -0.857214, -0.857775, -0.857964, -0.857775,
-0.857217, -0.856313, -0.855097, -0.853619, -0.851935, -0.850111,
-0.848218, -0.846328, -0.844514, -0.842845, -0.841384, -0.840188,
-0.8393, -0.838754, -0.83857, -0.838754, -0.839297, -0.840177,
-0.84136, -0.842799, -0.844438, -0.846214, -0.848058, -0.849899,
-0.851667, -0.853294, -0.854718, -0.855884, -0.85675, -0.857282,
-0.857462, -0.857283, -0.856753, -0.855893, -0.854739, -0.853333,
-0.851733, -0.849998, -0.848196, -0.846397, -0.844669, -0.843079,
-0.841687, -0.840547, -0.8397, -0.839179, -0.839004, -0.839179,
-0.839698, -0.840539, -0.84167, -0.843046, -0.844614, -0.846313,
-0.848078, -0.849841, -0.851534, -0.853093, -0.854458, -0.855577,
-0.856407, -0.856918, -0.85709, -0.856918, -0.856409, -0.855583,
-0.854473, -0.853122, -0.851582, -0.849912, -0.848178, -0.846446,
-0.844781, -0.843249, -0.841907, -0.840807, -0.839991, -0.839488,
-0.839319, -0.839488, -0.839989, -0.840802, -0.841895, -0.843225,
-0.844742, -0.846386, -0.848095, -0.849802, -0.851442, -0.852952,
-0.854275, -0.855359, -0.856165, -0.85666, -0.856827, -0.85666,
-0.856166, -0.855364, -0.854285, -0.852971, -0.851474, -0.84985,
-0.848163, -0.846476, -0.844856, -0.843364, -0.842056, -0.840984,
-0.840188, -0.839698, -0.839533, -0.839698, -0.840187, -0.840981,
-0.842048, -0.843348, -0.844831, -0.846438, -0.848109, -0.849779,
-0.851384, -0.852863, -0.854158, -0.85522, -0.856009, -0.856495,
-0.856659, -0.856495, -0.85601, -0.855223, -0.854164, -0.852874,
-0.851403, -0.849807, -0.848149, -0.846491, -0.844897, -0.843429,
-0.842142, -0.841087, -0.840303, -0.83982, -0.839657, -0.83982,
-0.840302, -0.841085, -0.842138, -0.843421, -0.844885, -0.846472,
-0.848123, -0.849773, -0.851359, -0.852821, -0.854102, -0.855153,
-0.855934, -0.856415, -0.856577, -0.856415, -0.855934, -0.855154,
-0.854104, -0.852825, -0.851365, -0.849782, -0.848136, -0.846489,
-0.844906, -0.843448, -0.842169, -0.84112, -0.84034, -0.83986,
-0.839698, -0.83986, -0.84034, -0.84112, -0.842169, -0.843448,
-0.844906, -0.846489, -0.848136, -0.849782, -0.851365, -0.852825,
-0.854104, -0.855154, -0.855934, -0.856415, -0.856577, -0.856415,
-0.855934, -0.855153, -0.854102, -0.852821, -0.851359, -0.849773,
-0.848123, -0.846472, -0.844885, -0.843421, -0.842138, -0.841085,
-0.840302, -0.83982, -0.839657, -0.83982, -0.840303, -0.841087,
-0.842142, -0.843429, -0.844897, -0.846491, -0.848149, -0.849807,
-0.851403, -0.852874, -0.854164, -0.855223, -0.85601, -0.856495,
-0.856659, -0.856495, -0.856009, -0.85522, -0.854158, -0.852863,
-0.851384, -0.849779, -0.848109, -0.846438, -0.844831, -0.843348,
-0.842048, -0.840981, -0.840187, -0.839698, -0.839533, -0.839698,
-0.840188, -0.840984, -0.842056, -0.843364, -0.844856, -0.846476,
-0.848163, -0.84985, -0.851474, -0.852971, -0.854285, -0.855364,
-0.856166, -0.85666, -0.856827, -0.85666, -0.856165, -0.855359,
-0.854275, -0.852952, -0.851442, -0.849802, -0.848095, -0.846386,
-0.844742, -0.843225, -0.841895, -0.840802, -0.839989, -0.839488,
-0.839319, -0.839488, -0.839991, -0.840807, -0.841907, -0.843249,
-0.844781, -0.846446, -0.848178, -0.849912, -0.851582, -0.853122,
-0.854473, -0.855583, -0.856409, -0.856918, -0.85709, -0.856918,
-0.856407, -0.855577, -0.854458, -0.853093, -0.851534, -0.849841,
-0.848078, -0.846313, -0.844614, -0.843046, -0.84167, -0.840539,
-0.839698, -0.839179, -0.839004, -0.839179, -0.8397, -0.840547,
-0.841687, -0.843079, -0.844669, -0.846397, -0.848196, -0.849998,
-0.851733, -0.853333, -0.854739, -0.855893, -0.856753, -0.857283,
-0.857462, -0.857282, -0.85675, -0.855884, -0.854718, -0.853294,
-0.851667, -0.849899, -0.848058, -0.846214, -0.844438, -0.842799,
-0.84136, -0.840177, -0.839297, -0.838754, -0.83857, -0.838754,
-0.8393, -0.840188, -0.841384, -0.842845, -0.844514, -0.846328,
-0.848218, -0.850111, -0.851935, -0.853619, -0.855097, -0.856313,
-0.857217, -0.857775, -0.857964, -0.857775, -0.857214, -0.8563,
-0.855069, -0.853566, -0.851848, -0.84998, -0.848034, -0.846084,
-0.844205, -0.84247, -0.840947, -0.839694, -0.838761, -0.838185,
-0.837991, -0.838186, -0.838765, -0.839708, -0.840979, -0.842531,
-0.844305, -0.846235, -0.848246, -0.850261, -0.852203, -0.853997,
-0.855572, -0.856868, -0.857833, -0.858429, -0.858631, -0.858428,
-0.857829, -0.856852, -0.855535, -0.853927, -0.852088, -0.850088,
-0.848002, -0.845912, -0.843897, -0.842036, -0.8404, -0.839055,
-0.838053, -0.837434, -0.837225, -0.837435, -0.838058, -0.839073,
-0.840443, -0.842116, -0.84403, -0.846112, -0.848282, -0.850459,
-0.852557, -0.854496, -0.8562, -0.857603, -0.858648, -0.859293,
-0.859511, -0.859292, -0.858641, -0.857582, -0.856152, -0.854404,
-0.852405, -0.850229, -0.84796, -0.845684, -0.843489, -0.84146,
-0.839677, -0.838209, -0.837115, -0.836439, -0.83621, -0.83644,
-0.837122, -0.838233, -0.839733, -0.841567, -0.843665, -0.84595,
-0.848333, -0.850723, -0.85303, -0.855162, -0.857037, -0.858581,
-0.859733, -0.860444, -0.860685, -0.860443, -0.859724, -0.858553,
-0.856972, -0.855038, -0.852825, -0.850415, -0.847899, -0.845375,
-0.842939, -0.840686, -0.838704, -0.837071, -0.835854, -0.835102,
-0.834847, -0.835103, -0.835864, -0.837105, -0.838781, -0.840831,
-0.843179, -0.845736, -0.848406, -0.851086, -0.853674, -0.856068,
-0.858175, -0.859912, -0.861207, -0.862008, -0.862279, -0.862006,
-0.861195, -0.859872, -0.858085, -0.855898, -0.853392, -0.850661,
-0.847809, -0.844944, -0.842178, -0.839617, -0.837362, -0.835503,
-0.834116, -0.833258, -0.832967, -0.83326, -0.83413, -0.83555,
-0.83747, -0.83982, -0.842514, -0.845451, -0.84852, -0.851604,
-0.854583, -0.857343, -0.859774, -0.861779, -0.863276, -0.864202,
-0.864517, -0.8642, -0.863259, -0.861722, -0.859644, -0.857098,
-0.854178, -0.850993, -0.847663, -0.844315, -0.841078, -0.838078,
-0.835434, -0.833252, -0.831622, -0.830613, -0.83027, -0.830615,
-0.831643, -0.833321, -0.835593, -0.838377, -0.841573, -0.845061,
-0.848711, -0.852383, -0.855935, -0.859229, -0.862135, -0.864534,
-0.866328, -0.86744, -0.867817, -0.867436, -0.866302, -0.864448,
-0.861937, -0.858856, -0.855318, -0.851452, -0.847405, -0.843329,
-0.839383, -0.83572, -0.832487, -0.829815, -0.827815, -0.826575,
-0.826154, -0.826579, -0.827848, -0.829925, -0.83274, -0.836197,
-0.840171, -0.844517, -0.849072, -0.853663, -0.858114, -0.862249,
-0.865902, -0.868926, -0.871191, -0.872597, -0.873076, -0.872592,
-0.871147, -0.868782, -0.86557, -0.861622, -0.857077, -0.852101,
-0.846878, -0.841607, -0.83649, -0.83173, -0.827518, -0.824028,
-0.821409, -0.81978, -0.819226, -0.819788, -0.821468, -0.824225,
-0.827973, -0.832588, -0.83791, -0.843747, -0.849884, -0.85609,
-0.862124, -0.867748, -0.872734, -0.876874, -0.879986, -0.881925,
-0.882587, -0.881914, -0.8799, -0.876589, -0.872076, -0.866506,
-0.860068, -0.852989, -0.845527, -0.837964, -0.83059, -0.823698,
-0.817571, -0.812469, -0.808623, -0.80622, -0.805397, -0.806237,
-0.808758, -0.812917, -0.818604, -0.825648, -0.83382, -0.842839,
-0.852383, -0.862096, -0.871605, -0.88053, -0.8885, -0.895166,
-0.900215, -0.903385, -0.904475, -0.903355, -0.899974, -0.894367,
-0.886654, -0.877043, -0.865822, -0.853356, -0.840074, -0.826459,
-0.81303, -0.800326, -0.788889, -0.779242, -0.771868, -0.767196,
-0.765576, -0.767265, -0.772412, -0.781048, -0.793072, -0.808252,
-0.82622, -0.846477, -0.868399, -0.89125, -0.914194, -0.936317,
-0.956649, -0.974183, -0.987907, -0.996828, -1, -0.996552,
-0.985712, -0.966832, -0.939408, -0.9031, -0.857742, -0.803355,
-0.740148, -0.668521, -0.589057, -0.502513, -0.409803, -0.311984,
-0.210225, -0.10579
};
static const float WAVE_SQUARE_078[DEFAULT_WAVELEN] = {
-2.22045e-16, 0.052969, 0.105768, 0.158228, 0.210183, 0.261468,
0.311923, 0.361393, 0.409728, 0.456785, 0.502427, 0.546528,
0.588966, 0.629634, 0.66843, 0.705265, 0.740061, 0.77275,
0.803276, 0.831595, 0.857675, 0.881495, 0.903047, 0.922334,
0.93937, 0.954183, 0.966808, 0.977295, 0.985701, 0.992093,
0.996549, 0.999154, 1, 0.999188, 0.996824, 0.99302,
0.987892, 0.98156, 0.974149, 0.965782, 0.956587, 0.94669,
0.936219, 0.925299, 0.914052, 0.9026, 0.891058, 0.87954,
0.868153, 0.856999, 0.846173, 0.835766, 0.825859, 0.816526,
0.807835, 0.799844, 0.792604, 0.786156, 0.780536, 0.775767,
0.771867, 0.768843, 0.766697, 0.765422, 0.765001, 0.765413,
0.766629, 0.768614, 0.771325, 0.774717, 0.778739, 0.783333,
0.788442, 0.794002, 0.799949, 0.806215, 0.812734, 0.819437,
0.826255, 0.833121, 0.839968, 0.846732, 0.85335, 0.859763,
0.865915, 0.871753, 0.87723, 0.8823, 0.886925, 0.891071,
0.894708, 0.897814, 0.900369, 0.902362, 0.903784, 0.904634,
0.904916, 0.904638, 0.903814, 0.902463, 0.900608, 0.898276,
0.895498, 0.89231, 0.88875, 0.884857, 0.880677, 0.876253,
0.871632, 0.866862, 0.86199, 0.857066, 0.852137, 0.84725,
0.84245, 0.837783, 0.833291, 0.829013, 0.824987, 0.821248,
0.817826, 0.814748, 0.81204, 0.809721, 0.807807, 0.806311,
0.805239, 0.804597, 0.804384, 0.804595, 0.805223, 0.806255,
0.807675, 0.809465, 0.811602, 0.814061, 0.816814, 0.81983,
0.823078, 0.826522, 0.830128, 0.833858, 0.837676, 0.841544,
0.845424, 0.849279, 0.853072, 0.856768, 0.860333, 0.863735,
0.866942, 0.869927, 0.872664, 0.875129, 0.877303, 0.879168,
0.880709, 0.881917, 0.882783, 0.883303, 0.883476, 0.883304,
0.882793, 0.881952, 0.880792, 0.879329, 0.877578, 0.875561,
0.8733, 0.870818, 0.868142, 0.8653, 0.86232, 0.859232,
0.856068, 0.852858, 0.849633, 0.846425, 0.843264, 0.84018,
0.837201, 0.834355, 0.831668, 0.829165, 0.826866, 0.824793,
0.822963, 0.821391, 0.82009, 0.819069, 0.818337, 0.817896,
0.81775, 0.817896, 0.81833, 0.819045, 0.820033, 0.821282,
0.822776, 0.8245, 0.826435, 0.82856, 0.830855, 0.833294,
0.835854, 0.83851, 0.841234, 0.844, 0.846781, 0.849551,
0.852283, 0.854952, 0.857531, 0.859998, 0.862329, 0.864503,
0.866501, 0.868304, 0.869898, 0.871268, 0.872403, 0.873294,
0.873934, 0.874319, 0.874448, 0.87432, 0.873939, 0.873311,
0.872443, 0.871346, 0.870031, 0.868513, 0.866808, 0.864934,
0.862909, 0.860754, 0.858491, 0.856142, 0.85373, 0.851279,
0.848813, 0.846355, 0.843929, 0.841557, 0.839263, 0.837068,
0.834992, 0.833054, 0.831272, 0.829662, 0.828239, 0.827014,
0.825999, 0.825202, 0.824629, 0.824283, 0.824168, 0.824283,
0.824625, 0.825189, 0.82597, 0.826957, 0.828141, 0.829508,
0.831046, 0.832737, 0.834565, 0.836511, 0.838557, 0.840681,
0.842864, 0.845083, 0.847318, 0.849547, 0.851747, 0.8539,
0.855983, 0.857978, 0.859866, 0.861629, 0.863252, 0.864718,
0.866015, 0.867132, 0.868058, 0.868786, 0.86931, 0.869625,
0.869731, 0.869626, 0.869313, 0.868796, 0.86808, 0.867175,
0.866089, 0.864833, 0.863422, 0.861867, 0.860187, 0.858396,
0.856514, 0.854557, 0.852546, 0.850501, 0.84844, 0.846383,
0.844351, 0.842363, 0.840438, 0.838593, 0.836847, 0.835215,
0.833713, 0.832355, 0.831153, 0.830117, 0.829258, 0.828582,
0.828096, 0.827803, 0.827705, 0.827803, 0.828094, 0.828575,
0.829241, 0.830085, 0.831097, 0.832268, 0.833585, 0.835035,
0.836605, 0.838277, 0.840037, 0.841866, 0.843747, 0.845661,
0.847591, 0.849517, 0.851421, 0.853285, 0.85509, 0.856821,
0.85846, 0.859993, 0.861404, 0.86268, 0.863811, 0.864785,
0.865593, 0.866229, 0.866688, 0.866964, 0.867056, 0.866964,
0.866689, 0.866235, 0.865606, 0.864809, 0.863853, 0.862746,
0.861501, 0.860128, 0.858643, 0.857059, 0.855393, 0.85366,
0.851877, 0.850061, 0.848231, 0.846403, 0.844596, 0.842825,
0.84111, 0.839465, 0.837906, 0.836449, 0.835106, 0.833891,
0.832814, 0.831886, 0.831116, 0.830509, 0.830073, 0.829809,
0.829721, 0.829809, 0.830071, 0.830505, 0.831106, 0.831868,
0.832783, 0.833842, 0.835034, 0.836348, 0.837771, 0.839288,
0.840886, 0.842548, 0.844258, 0.846, 0.847758, 0.849513,
0.851249, 0.85295, 0.854599, 0.856181, 0.857681, 0.859083,
0.860376, 0.861546, 0.862583, 0.863477, 0.86422, 0.864805,
0.865226, 0.86548, 0.865565, 0.86548, 0.865227, 0.864807,
0.864227, 0.86349, 0.862605, 0.86158, 0.860426, 0.859154,
0.857776, 0.856306, 0.854758, 0.853146, 0.851488, 0.849797,
0.848092, 0.846388, 0.844702, 0.84305, 0.841447, 0.839909,
0.838451, 0.837087, 0.83583, 0.83469, 0.833681, 0.83281,
0.832086, 0.831516, 0.831106, 0.830858, 0.830775, 0.830858,
0.831105, 0.831514, 0.832082, 0.832802, 0.833667, 0.834668,
0.835797, 0.837042, 0.83839, 0.83983, 0.841346, 0.842924,
0.844549, 0.846206, 0.847878, 0.849549, 0.851204, 0.852825,
0.854399, 0.855909, 0.857341, 0.858681, 0.859918, 0.861038,
0.862031, 0.862887, 0.8636, 0.864161, 0.864565, 0.86481,
0.864891, 0.86481, 0.864566, 0.864162, 0.863602, 0.862891,
0.862038, 0.861048, 0.859933, 0.858704, 0.857371, 0.855948,
0.854448, 0.852887, 0.851278, 0.849638, 0.847983, 0.846327,
0.844688, 0.843081, 0.841521, 0.840023, 0.838603, 0.837272,
0.836045, 0.834933, 0.833947, 0.833096, 0.832388, 0.83183,
0.831428, 0.831185, 0.831104, 0.831185, 0.831428, 0.83183,
0.832388, 0.833096, 0.833947, 0.834933, 0.836045, 0.837272,
0.838603, 0.840023, 0.841521, 0.843081, 0.844688, 0.846327,
0.847983, 0.849638, 0.851278, 0.852887, 0.854448, 0.855948,
0.857371, 0.858704, 0.859933, 0.861048, 0.862038, 0.862891,
0.863602, 0.864162, 0.864566, 0.86481, 0.864891, 0.86481,
0.864565, 0.864161, 0.8636, 0.862887, 0.862031, 0.861038,
0.859918, 0.858681, 0.857341, 0.855909, 0.854399, 0.852825,
0.851204, 0.849549, 0.847878, 0.846206, 0.844549, 0.842924,
0.841346, 0.83983, 0.83839, 0.837042, 0.835797, 0.834668,
0.833667, 0.832802, 0.832082, 0.831514, 0.831105, 0.830858,
0.830775, 0.830858, 0.831106, 0.831516, 0.832086, 0.83281,
0.833681, 0.83469, 0.83583, 0.837087, 0.838451, 0.839909,
0.841447, 0.84305, 0.844702, 0.846388, 0.848092, 0.849797,
0.851488, 0.853146, 0.854758, 0.856306, 0.857776, 0.859154,
0.860426, 0.86158, 0.862605, 0.86349, 0.864227, 0.864807,
0.865227, 0.86548, 0.865565, 0.86548, 0.865226, 0.864805,
0.86422, 0.863477, 0.862583, 0.861546, 0.860376, 0.859083,
0.857681, 0.856181, 0.854599, 0.85295, 0.851249, 0.849513,
0.847758, 0.846, 0.844258, 0.842548, 0.840886, 0.839288,
0.837771, 0.836348, 0.835034, 0.833842, 0.832783, 0.831868,
0.831106, 0.830505, 0.830071, 0.829809, 0.829721, 0.829809,
0.830073, 0.830509, 0.831116, 0.831886, 0.832814, 0.833891,
0.835106, 0.836449, 0.837906, 0.839465, 0.84111, 0.842825,
0.844596, 0.846403, 0.848231, 0.850061, 0.851877, 0.85366,
0.855393, 0.857059, 0.858643, 0.860128, 0.861501, 0.862746,
0.863853, 0.864809, 0.865606, 0.866235, 0.866689, 0.866964,
0.867056, 0.866964, 0.866688, 0.866229, 0.865593, 0.864785,
0.863811, 0.86268, 0.861404, 0.859993, 0.85846, 0.856821,
0.85509, 0.853285, 0.851421, 0.849517, 0.847591, 0.845661,
0.843747, 0.841866, 0.840037, 0.838277, 0.836605, 0.835035,
0.833585, 0.832268, 0.831097, 0.830085, 0.829241, 0.828575,
0.828094, 0.827803, 0.827705, 0.827803, 0.828096, 0.828582,
0.829258, 0.830117, 0.831153, 0.832355, 0.833713, 0.835215,
0.836847, 0.838593, 0.840438, 0.842363, 0.844351, 0.846383,
0.84844, 0.850501, 0.852546, 0.854557, 0.856514, 0.858396,
0.860187, 0.861867, 0.863422, 0.864833, 0.866089, 0.867175,
0.86808, 0.868796, 0.869313, 0.869626, 0.869731, 0.869625,
0.86931, 0.868786, 0.868058, 0.867132, 0.866015, 0.864718,
0.863252, 0.861629, 0.859866, 0.857978, 0.855983, 0.8539,
0.851747, 0.849547, 0.847318, 0.845083, 0.842864, 0.840681,
0.838557, 0.836511, 0.834565, 0.832737, 0.831046, 0.829508,
0.828141, 0.826957, 0.82597, 0.825189, 0.824625, 0.824283,
0.824168, 0.824283, 0.824629, 0.825202, 0.825999, 0.827014,
0.828239, 0.829662, 0.831272, 0.833054, 0.834992, 0.837068,
0.839263, 0.841557, 0.843929, 0.846355, 0.848813, 0.851279,
0.85373, 0.856142, 0.858491, 0.860754, 0.862909, 0.864934,
0.866808, 0.868513, 0.870031, 0.871346, 0.872443, 0.873311,
0.873939, 0.87432, 0.874448, 0.874319, 0.873934, 0.873294,
0.872403, 0.871268, 0.869898, 0.868304, 0.866501, 0.864503,
0.862329, 0.859998, 0.857531, 0.854952, 0.852283, 0.849551,
0.846781, 0.844, 0.841234, 0.83851, 0.835854, 0.833294,
0.830855, 0.82856, 0.826435, 0.8245, 0.822776, 0.821282,
0.820033, 0.819045, 0.81833, 0.817896, 0.81775, 0.817896,
0.818337, 0.819069, 0.82009, 0.821391, 0.822963, 0.824793,
0.826866, 0.829165, 0.831668, 0.834355, 0.837201, 0.84018,
0.843264, 0.846425, 0.849633, 0.852858, 0.856068, 0.859232,
0.86232, 0.8653, 0.868142, 0.870818, 0.8733, 0.875561,
0.877578, 0.879329, 0.880792, 0.881952, 0.882793, 0.883304,
0.883476, 0.883303, 0.882783, 0.881917, 0.880709, 0.879168,
0.877303, 0.875129, 0.872664, 0.869927, 0.866942, 0.863735,
0.860333, 0.856768, 0.853072, 0.849279, 0.845424, 0.841544,
0.837676, 0.833858, 0.830128, 0.826522, 0.823078, 0.81983,
0.816814, 0.814061, 0.811602, 0.809465, 0.807675, 0.806255,
0.805223, 0.804595, 0.804384, 0.804597, 0.805239, 0.806311,
0.807807, 0.809721, 0.81204, 0.814748, 0.817826, 0.821248,
0.824987, 0.829013, 0.833291, 0.837783, 0.84245, 0.84725,
0.852137, 0.857066, 0.86199, 0.866862, 0.871632, 0.876253,
0.880677, 0.884857, 0.88875, 0.89231, 0.895498, 0.898276,
0.900608, 0.902463, 0.903814, 0.904638, 0.904916, 0.904634,
0.903784, 0.902362, 0.900369, 0.897814, 0.894708, 0.891071,
0.886925, 0.8823, 0.87723, 0.871753, 0.865915, 0.859763,
0.85335, 0.846732, 0.839968, 0.833121, 0.826255, 0.819437,
0.812734, 0.806215, 0.799949, 0.794002, 0.788442, 0.783333,
0.778739, 0.774717, 0.771325, 0.768614, 0.766629, 0.765413,
0.765001, 0.765422, 0.766697, 0.768843, 0.771867, 0.775767,
0.780536, 0.786156, 0.792604, 0.799844, 0.807835, 0.816526,
0.825859, 0.835766, 0.846173, 0.856999, 0.868153, 0.87954,
0.891058, 0.9026, 0.914052, 0.925299, 0.936219, 0.94669,
0.956587, 0.965782, 0.974149, 0.98156, 0.987892, 0.99302,
0.996824, 0.999188, 1, 0.999154, 0.996549, 0.992093,
0.985701, 0.977295, 0.966808, 0.954183, 0.93937, 0.922334,
0.903047, 0.881495, 0.857675, 0.831595, 0.803276, 0.77275,
0.740061, 0.705265, 0.66843, 0.629634, 0.588966, 0.546528,
0.502427, 0.456785, 0.409728, 0.361393, 0.311923, 0.261468,
0.210183, 0.158228, 0.105768, 0.052969, 2.22045e-15, -0.052969,
-0.105768, -0.158228, -0.210183, -0.261468, -0.311923, -0.361393,
-0.409728, -0.456785, -0.502427, -0.546528, -0.588966, -0.629634,
-0.66843, -0.705265, -0.740061, -0.77275, -0.803276, -0.831595,
-0.857675, -0.881495, -0.903047, -0.922334, -0.93937, -0.954183,
-0.966808, -0.977295, -0.985701, -0.992093, -0.996549, -0.999154,
-1, -0.999188, -0.996824, -0.99302, -0.987892, -0.98156,
-0.974149, -0.965782, -0.956587, -0.94669, -0.936219, -0.925299,
-0.914052, -0.9026, -0.891058, -0.87954, -0.868153, -0.856999,
-0.846173, -0.835766, -0.825859, -0.816526, -0.807835, -0.799844,
-0.792604, -0.786156, -0.780536, -0.775767, -0.771867, -0.768843,
-0.766697, -0.765422, -0.765001, -0.765413, -0.766629, -0.768614,
-0.771325, -0.774717, -0.778739, -0.783333, -0.788442, -0.794002,
-0.799949, -0.806215, -0.812734, -0.819437, -0.826255, -0.833121,
-0.839968, -0.846732, -0.85335, -0.859763, -0.865915, -0.871753,
-0.87723, -0.8823, -0.886925, -0.891071, -0.894708, -0.897814,
-0.900369, -0.902362, -0.903784, -0.904634, -0.904916, -0.904638,
-0.903814, -0.902463, -0.900608, -0.898276, -0.895498, -0.89231,
-0.88875, -0.884857, -0.880677, -0.876253, -0.871632, -0.866862,
-0.86199, -0.857066, -0.852137, -0.84725, -0.84245, -0.837783,
-0.833291, -0.829013, -0.824987, -0.821248, -0.817826, -0.814748,
-0.81204, -0.809721, -0.807807, -0.806311, -0.805239, -0.804597,
-0.804384, -0.804595, -0.805223, -0.806255, -0.807675, -0.809465,
-0.811602, -0.814061, -0.816814, -0.81983, -0.823078, -0.826522,
-0.830128, -0.833858, -0.837676, -0.841544, -0.845424, -0.849279,
-0.853072, -0.856768, -0.860333, -0.863735, -0.866942, -0.869927,
-0.872664, -0.875129, -0.877303, -0.879168, -0.880709, -0.881917,
-0.882783, -0.883303, -0.883476, -0.883304, -0.882793, -0.881952,
-0.880792, -0.879329, -0.877578, -0.875561, -0.8733, -0.870818,
-0.868142, -0.8653, -0.86232, -0.859232, -0.856068, -0.852858,
-0.849633, -0.846425, -0.843264, -0.84018, -0.837201, -0.834355,
-0.831668, -0.829165, -0.826866, -0.824793, -0.822963, -0.821391,
-0.82009, -0.819069, -0.818337, -0.817896, -0.81775, -0.817896,
-0.81833, -0.819045, -0.820033, -0.821282, -0.822776, -0.8245,
-0.826435, -0.82856, -0.830855, -0.833294, -0.835854, -0.83851,
-0.841234, -0.844, -0.846781, -0.849551, -0.852283, -0.854952,
-0.857531, -0.859998, -0.862329, -0.864503, -0.866501, -0.868304,
-0.869898, -0.871268, -0.872403, -0.873294, -0.873934, -0.874319,
-0.874448, -0.87432, -0.873939, -0.873311, -0.872443, -0.871346,
-0.870031, -0.868513, -0.866808, -0.864934, -0.862909, -0.860754,
-0.858491, -0.856142, -0.85373, -0.851279, -0.848813, -0.846355,
-0.843929, -0.841557, -0.839263, -0.837068, -0.834992, -0.833054,
-0.831272, -0.829662, -0.828239, -0.827014, -0.825999, -0.825202,
-0.824629, -0.824283, -0.824168, -0.824283, -0.824625, -0.825189,
-0.82597, -0.826957, -0.828141, -0.829508, -0.831046, -0.832737,
-0.834565, -0.836511, -0.838557, -0.840681, -0.842864, -0.845083,
-0.847318, -0.849547, -0.851747, -0.8539, -0.855983, -0.857978,
-0.859866, -0.861629, -0.863252, -0.864718, -0.866015, -0.867132,
-0.868058, -0.868786, -0.86931, -0.869625, -0.869731, -0.869626,
-0.869313, -0.868796, -0.86808, -0.867175, -0.866089, -0.864833,
-0.863422, -0.861867, -0.860187, -0.858396, -0.856514, -0.854557,
-0.852546, -0.850501, -0.84844, -0.846383, -0.844351, -0.842363,
-0.840438, -0.838593, -0.836847, -0.835215, -0.833713, -0.832355,
-0.831153, -0.830117, -0.829258, -0.828582, -0.828096, -0.827803,
-0.827705, -0.827803, -0.828094, -0.828575, -0.829241, -0.830085,
-0.831097, -0.832268, -0.833585, -0.835035, -0.836605, -0.838277,
-0.840037, -0.841866, -0.843747, -0.845661, -0.847591, -0.849517,
-0.851421, -0.853285, -0.85509, -0.856821, -0.85846, -0.859993,
-0.861404, -0.86268, -0.863811, -0.864785, -0.865593, -0.866229,
-0.866688, -0.866964, -0.867056, -0.866964, -0.866689, -0.866235,
-0.865606, -0.864809, -0.863853, -0.862746, -0.861501, -0.860128,
-0.858643, -0.857059, -0.855393, -0.85366, -0.851877, -0.850061,
-0.848231, -0.846403, -0.844596, -0.842825, -0.84111, -0.839465,
-0.837906, -0.836449, -0.835106, -0.833891, -0.832814, -0.831886,
-0.831116, -0.830509, -0.830073, -0.829809, -0.829721, -0.829809,
-0.830071, -0.830505, -0.831106, -0.831868, -0.832783, -0.833842,
-0.835034, -0.836348, -0.837771, -0.839288, -0.840886, -0.842548,
-0.844258, -0.846, -0.847758, -0.849513, -0.851249, -0.85295,
-0.854599, -0.856181, -0.857681, -0.859083, -0.860376, -0.861546,
-0.862583, -0.863477, -0.86422, -0.864805, -0.865226, -0.86548,
-0.865565, -0.86548, -0.865227, -0.864807, -0.864227, -0.86349,
-0.862605, -0.86158, -0.860426, -0.859154, -0.857776, -0.856306,
-0.854758, -0.853146, -0.851488, -0.849797, -0.848092, -0.846388,
-0.844702, -0.84305, -0.841447, -0.839909, -0.838451, -0.837087,
-0.83583, -0.83469, -0.833681, -0.83281, -0.832086, -0.831516,
-0.831106, -0.830858, -0.830775, -0.830858, -0.831105, -0.831514,
-0.832082, -0.832802, -0.833667, -0.834668, -0.835797, -0.837042,
-0.83839, -0.83983, -0.841346, -0.842924, -0.844549, -0.846206,
-0.847878, -0.849549, -0.851204, -0.852825, -0.854399, -0.855909,
-0.857341, -0.858681, -0.859918, -0.861038, -0.862031, -0.862887,
-0.8636, -0.864161, -0.864565, -0.86481, -0.864891, -0.86481,
-0.864566, -0.864162, -0.863602, -0.862891, -0.862038, -0.861048,
-0.859933, -0.858704, -0.857371, -0.855948, -0.854448, -0.852887,
-0.851278, -0.849638, -0.847983, -0.846327, -0.844688, -0.843081,
-0.841521, -0.840023, -0.838603, -0.837272, -0.836045, -0.834933,
-0.833947, -0.833096, -0.832388, -0.83183, -0.831428, -0.831185,
-0.831104, -0.831185, -0.831428, -0.83183, -0.832388, -0.833096,
-0.833947, -0.834933, -0.836045, -0.837272, -0.838603, -0.840023,
-0.841521, -0.843081, -0.844688, -0.846327, -0.847983, -0.849638,
-0.851278, -0.852887, -0.854448, -0.855948, -0.857371, -0.858704,
-0.859933, -0.861048, -0.862038, -0.862891, -0.863602, -0.864162,
-0.864566, -0.86481, -0.864891, -0.86481, -0.864565, -0.864161,
-0.8636, -0.862887, -0.862031, -0.861038, -0.859918, -0.858681,
-0.857341, -0.855909, -0.854399, -0.852825, -0.851204, -0.849549,
-0.847878, -0.846206, -0.844549, -0.842924, -0.841346, -0.83983,
-0.83839, -0.837042, -0.835797, -0.834668, -0.833667, -0.832802,
-0.832082, -0.831514, -0.831105, -0.830858, -0.830775, -0.830858,
-0.831106, -0.831516, -0.832086, -0.83281, -0.833681, -0.83469,
-0.83583, -0.837087, -0.838451, -0.839909, -0.841447, -0.84305,
-0.844702, -0.846388, -0.848092, -0.849797, -0.851488, -0.853146,
-0.854758, -0.856306, -0.857776, -0.859154, -0.860426, -0.86158,
-0.862605, -0.86349, -0.864227, -0.864807, -0.865227, -0.86548,
-0.865565, -0.86548, -0.865226, -0.864805, -0.86422, -0.863477,
-0.862583, -0.861546, -0.860376, -0.859083, -0.857681, -0.856181,
-0.854599, -0.85295, -0.851249, -0.849513, -0.847758, -0.846,
-0.844258, -0.842548, -0.840886, -0.839288, -0.837771, -0.836348,
-0.835034, -0.833842, -0.832783, -0.831868, -0.831106, -0.830505,
-0.830071, -0.829809, -0.829721, -0.829809, -0.830073, -0.830509,
-0.831116, -0.831886, -0.832814, -0.833891, -0.835106, -0.836449,
-0.837906, -0.839465, -0.84111, -0.842825, -0.844596, -0.846403,
-0.848231, -0.850061, -0.851877, -0.85366, -0.855393, -0.857059,
-0.858643, -0.860128, -0.861501, -0.862746, -0.863853, -0.864809,
-0.865606, -0.866235, -0.866689, -0.866964, -0.867056, -0.866964,
-0.866688, -0.866229, -0.865593, -0.864785, -0.863811, -0.86268,
-0.861404, -0.859993, -0.85846, -0.856821, -0.85509, -0.853285,
-0.851421, -0.849517, -0.847591, -0.845661, -0.843747, -0.841866,
-0.840037, -0.838277, -0.836605, -0.835035, -0.833585, -0.832268,
-0.831097, -0.830085, -0.829241, -0.828575, -0.828094, -0.827803,
-0.827705, -0.827803, -0.828096, -0.828582, -0.829258, -0.830117,
-0.831153, -0.832355, -0.833713, -0.835215, -0.836847, -0.838593,
-0.840438, -0.842363, -0.844351, -0.846383, -0.84844, -0.850501,
-0.852546, -0.854557, -0.856514, -0.858396, -0.860187, -0.861867,
-0.863422, -0.864833, -0.866089, -0.867175, -0.86808, -0.868796,
-0.869313, -0.869626, -0.869731, -0.869625, -0.86931, -0.868786,
-0.868058, -0.867132, -0.866015, -0.864718, -0.863252, -0.861629,
-0.859866, -0.857978, -0.855983, -0.8539, -0.851747, -0.849547,
-0.847318, -0.845083, -0.842864, -0.840681, -0.838557, -0.836511,
-0.834565, -0.832737, -0.831046, -0.829508, -0.828141, -0.826957,
-0.82597, -0.825189, -0.824625, -0.824283, -0.824168, -0.824283,
-0.824629, -0.825202, -0.825999, -0.827014, -0.828239, -0.829662,
-0.831272, -0.833054, -0.834992, -0.837068, -0.839263, -0.841557,
-0.843929, -0.846355, -0.848813, -0.851279, -0.85373, -0.856142,
-0.858491, -0.860754, -0.862909, -0.864934, -0.866808, -0.868513,
-0.870031, -0.871346, -0.872443, -0.873311, -0.873939, -0.87432,
-0.874448, -0.874319, -0.873934, -0.873294, -0.872403, -0.871268,
-0.869898, -0.868304, -0.866501, -0.864503, -0.862329, -0.859998,
-0.857531, -0.854952, -0.852283, -0.849551, -0.846781, -0.844,
-0.841234, -0.83851, -0.835854, -0.833294, -0.830855, -0.82856,
-0.826435, -0.8245, -0.822776, -0.821282, -0.820033, -0.819045,
-0.81833, -0.817896, -0.81775, -0.817896, -0.818337, -0.819069,
-0.82009, -0.821391, -0.822963, -0.824793, -0.826866, -0.829165,
-0.831668, -0.834355, -0.837201, -0.84018, -0.843264, -0.846425,
-0.849633, -0.852858, -0.856068, -0.859232, -0.86232, -0.8653,
-0.868142, -0.870818, -0.8733, -0.875561, -0.877578, -0.879329,
-0.880792, -0.881952, -0.882793, -0.883304, -0.883476, -0.883303,
-0.882783, -0.881917, -0.880709, -0.879168, -0.877303, -0.875129,
-0.872664, -0.869927, -0.866942, -0.863735, -0.860333, -0.856768,
-0.853072, -0.849279, -0.845424, -0.841544, -0.837676, -0.833858,
-0.830128, -0.826522, -0.823078, -0.81983, -0.816814, -0.814061,
-0.811602, -0.809465, -0.807675, -0.806255, -0.805223, -0.804595,
-0.804384, -0.804597, -0.805239, -0.806311, -0.807807, -0.809721,
-0.81204, -0.814748, -0.817826, -0.821248, -0.824987, -0.829013,
-0.833291, -0.837783, -0.84245, -0.84725, -0.852137, -0.857066,
-0.86199, -0.866862, -0.871632, -0.876253, -0.880677, -0.884857,
-0.88875, -0.89231, -0.895498, -0.898276, -0.900608, -0.902463,
-0.903814, -0.904638, -0.904916, -0.904634, -0.903784, -0.902362,
-0.900369, -0.897814, -0.894708, -0.891071, -0.886925, -0.8823,
-0.87723, -0.871753, -0.865915, -0.859763, -0.85335, -0.846732,
-0.839968, -0.833121, -0.826255, -0.819437, -0.812734, -0.806215,
-0.799949, -0.794002, -0.788442, -0.783333, -0.778739, -0.774717,
-0.771325, -0.768614, -0.766629, -0.765413, -0.765001, -0.765422,
-0.766697, -0.768843, -0.771867, -0.775767, -0.780536, -0.786156,
-0.792604, -0.799844, -0.807835, -0.816526, -0.825859, -0.835766,
-0.846173, -0.856999, -0.868153, -0.87954, -0.891058, -0.9026,
-0.914052, -0.925299, -0.936219, -0.94669, -0.956587, -0.965782,
-0.974149, -0.98156, -0.987892, -0.99302, -0.996824, -0.999188,
-1, -0.999154, -0.996549, -0.992093, -0.985701, -0.977295,
-0.966808, -0.954183, -0.93937, -0.922334, -0.903047, -0.881495,
-0.857675, -0.831595, -0.803276, -0.77275, -0.740061, -0.705265,
-0.66843, -0.629634, -0.588966, -0.546528, -0.502427, -0.456785,
-0.409728, -0.361393, -0.311923, -0.261468, -0.210183, -0.158228,
-0.105768, -0.052969
};
static const float WAVE_SQUARE_090[DEFAULT_WAVELEN] = {
2.22045e-16, 0.0264731, 0.0529251, 0.0793348, 0.105681, 0.131943,
0.158099, 0.18413, 0.210014, 0.235731, 0.261261, 0.286585,
0.311682, 0.336534, 0.361121, 0.385425, 0.409428, 0.433113,
0.456462, 0.479459, 0.502086, 0.524329, 0.546173, 0.567602,
0.588603, 0.609162, 0.629266, 0.648904, 0.668063, 0.686734,
0.704905, 0.722567, 0.739711, 0.756329, 0.772415, 0.78796,
0.802959, 0.817408, 0.831301, 0.844634, 0.857406, 0.869612,
0.881253, 0.892327, 0.902834, 0.912775, 0.922151, 0.930964,
0.939217, 0.946914, 0.954059, 0.960657, 0.966713, 0.972234,
0.977226, 0.981697, 0.985654, 0.989108, 0.992066, 0.994539,
0.996536, 0.99807, 0.99915, 0.99979, 1, 0.999794,
0.999185, 0.998185, 0.99681, 0.995073, 0.992988, 0.99057,
0.987833, 0.984794, 0.981467, 0.977868, 0.974012, 0.969915,
0.965594, 0.961063, 0.956338, 0.951437, 0.946373, 0.941164,
0.935826, 0.930372, 0.924821, 0.919186, 0.913482, 0.907726,
0.901932, 0.896114, 0.890287, 0.884464, 0.87866, 0.872888,
0.867161, 0.861491, 0.855891, 0.850373, 0.844949, 0.839629,
0.834424, 0.829344, 0.8244, 0.8196, 0.814953, 0.810467,
0.80615, 0.80201, 0.798053, 0.794286, 0.790713, 0.787341,
0.784173, 0.781215, 0.778469, 0.775938, 0.773626, 0.771534,
0.769663, 0.768015, 0.76659, 0.765387, 0.764407, 0.763648,
0.763108, 0.762787, 0.76268, 0.762786, 0.7631, 0.76362,
0.76434, 0.765257, 0.766365, 0.767659, 0.769133, 0.770782,
0.772599, 0.774577, 0.77671, 0.77899, 0.781411, 0.783963,
0.78664, 0.789434, 0.792336, 0.795338, 0.798432, 0.801609,
0.804861, 0.808178, 0.811553, 0.814976, 0.818439, 0.821933,
0.825448, 0.828978, 0.832512, 0.836043, 0.839562, 0.843061,
0.846532, 0.849967, 0.853357, 0.856696, 0.859976, 0.86319,
0.86633, 0.869391, 0.872365, 0.875247, 0.878031, 0.88071,
0.883281, 0.885737, 0.888074, 0.890287, 0.892373, 0.894329,
0.896149, 0.897833, 0.899376, 0.900777, 0.902033, 0.903144,
0.904107, 0.904922, 0.905588, 0.906106, 0.906475, 0.906696,
0.906769, 0.906696, 0.906478, 0.906118, 0.905617, 0.904978,
0.904203, 0.903296, 0.902259, 0.901097, 0.899814, 0.898413,
0.896898, 0.895275, 0.893549, 0.891723, 0.889804, 0.887796,
0.885706, 0.883539, 0.8813, 0.878996, 0.876633, 0.874216,
0.871753, 0.869248, 0.86671, 0.864143, 0.861554, 0.85895,
0.856337, 0.853721, 0.851109, 0.848506, 0.84592, 0.843355,
0.840818, 0.838315, 0.835852, 0.833433, 0.831066, 0.828754,
0.826503, 0.824318, 0.822204, 0.820166, 0.818207, 0.816331,
0.814544, 0.812848, 0.811247, 0.809743, 0.808341, 0.807043,
0.80585, 0.804766, 0.803792, 0.80293, 0.802181, 0.801546,
0.801026, 0.800621, 0.800333, 0.80016, 0.800102, 0.800159,
0.800331, 0.800615, 0.801011, 0.801516, 0.80213, 0.80285,
0.803673, 0.804598, 0.805621, 0.806739, 0.807948, 0.809247,
0.810631, 0.812095, 0.813637, 0.815252, 0.816936, 0.818685,
0.820493, 0.822356, 0.82427, 0.82623, 0.82823, 0.830266,
0.832333, 0.834425, 0.836538, 0.838666, 0.840804, 0.842946,
0.845089, 0.847226, 0.849353, 0.851464, 0.853555, 0.85562,
0.857655, 0.859655, 0.861616, 0.863532, 0.8654, 0.867216,
0.868974, 0.870672, 0.872306, 0.873871, 0.875364, 0.876783,
0.878124, 0.879385, 0.880562, 0.881653, 0.882656, 0.883568,
0.88439, 0.885117, 0.88575, 0.886287, 0.886727, 0.88707,
0.887315, 0.887461, 0.88751, 0.887462, 0.887316, 0.887073,
0.886735, 0.886303, 0.885779, 0.885162, 0.884457, 0.883664,
0.882786, 0.881825, 0.880785, 0.879667, 0.878474, 0.877211,
0.875879, 0.874483, 0.873027, 0.871513, 0.869946, 0.868329,
0.866667, 0.864964, 0.863224, 0.861451, 0.85965, 0.857825,
0.855981, 0.854122, 0.852252, 0.850376, 0.848499, 0.846625,
0.844759, 0.842904, 0.841066, 0.839249, 0.837456, 0.835693,
0.833964, 0.832272, 0.830621, 0.829015, 0.827458, 0.825954,
0.824506, 0.823117, 0.82179, 0.820529, 0.819336, 0.818214,
0.817165, 0.816192, 0.815297, 0.814482, 0.813748, 0.813097,
0.81253, 0.812049, 0.811654, 0.811347, 0.811127, 0.810995,
0.810951, 0.810995, 0.811126, 0.811345, 0.81165, 0.81204,
0.812514, 0.813072, 0.81371, 0.814428, 0.815224, 0.816096,
0.817041, 0.818057, 0.819141, 0.820291, 0.821503, 0.822775,
0.824104, 0.825485, 0.826917, 0.828394, 0.829914, 0.831473,
0.833067, 0.834692, 0.836344, 0.83802, 0.839714, 0.841423,
0.843143, 0.84487, 0.846599, 0.848327, 0.850049, 0.851761,
0.85346, 0.85514, 0.856798, 0.85843, 0.860033, 0.861602,
0.863133, 0.864624, 0.86607, 0.867468, 0.868816, 0.870109,
0.871345, 0.872521, 0.873633, 0.874681, 0.87566, 0.87657,
0.877407, 0.878171, 0.878858, 0.879468, 0.88, 0.880451,
0.880822, 0.881111, 0.881318, 0.881442, 0.881483, 0.881442,
0.881318, 0.881112, 0.880824, 0.880455, 0.880007, 0.87948,
0.878875, 0.878195, 0.87744, 0.876614, 0.875717, 0.874752,
0.873722, 0.872628, 0.871475, 0.870263, 0.868998, 0.86768,
0.866315, 0.864905, 0.863453, 0.861963, 0.860438, 0.858883,
0.857301, 0.855695, 0.854071, 0.852431, 0.850779, 0.849121,
0.847458, 0.845796, 0.844139, 0.84249, 0.840853, 0.839233,
0.837633, 0.836057, 0.834509, 0.832993, 0.831511, 0.830068,
0.828668, 0.827312, 0.826006, 0.824751, 0.823551, 0.822409,
0.821327, 0.820308, 0.819355, 0.818469, 0.817653, 0.816909,
0.816238, 0.815643, 0.815123, 0.814682, 0.814319, 0.814037,
0.813834, 0.813712, 0.813672, 0.813712, 0.813834, 0.814037,
0.814319, 0.814682, 0.815123, 0.815643, 0.816238, 0.816909,
0.817653, 0.818469, 0.819355, 0.820308, 0.821327, 0.822409,
0.823551, 0.824751, 0.826006, 0.827312, 0.828668, 0.830068,
0.831511, 0.832993, 0.834509, 0.836057, 0.837633, 0.839233,
0.840853, 0.84249, 0.844139, 0.845796, 0.847458, 0.849121,
0.850779, 0.852431, 0.854071, 0.855695, 0.857301, 0.858883,
0.860438, 0.861963, 0.863453, 0.864905, 0.866315, 0.86768,
0.868998, 0.870263, 0.871475, 0.872628, 0.873722, 0.874752,
0.875717, 0.876614, 0.87744, 0.878195, 0.878875, 0.87948,
0.880007, 0.880455, 0.880824, 0.881112, 0.881318, 0.881442,
0.881483, 0.881442, 0.881318, 0.881111, 0.880822, 0.880451,
0.88, 0.879468, 0.878858, 0.878171, 0.877407, 0.87657,
0.87566, 0.874681, 0.873633, 0.872521, 0.871345, 0.870109,
0.868816, 0.867468, 0.86607, 0.864624, 0.863133, 0.861602,
0.860033, 0.85843, 0.856798, 0.85514, 0.85346, 0.851761,
0.850049, 0.848327, 0.846599, 0.84487, 0.843143, 0.841423,
0.839714, 0.83802, 0.836344, 0.834692, 0.833067, 0.831473,
0.829914, 0.828394, 0.826917, 0.825485, 0.824104, 0.822775,
0.821503, 0.820291, 0.819141, 0.818057, 0.817041, 0.816096,
0.815224, 0.814428, 0.81371, 0.813072, 0.812514, 0.81204,
0.81165, 0.811345, 0.811126, 0.810995, 0.810951, 0.810995,
0.811127, 0.811347, 0.811654, 0.812049, 0.81253, 0.813097,
0.813748, 0.814482, 0.815297, 0.816192, 0.817165, 0.818214,
0.819336, 0.820529, 0.82179, 0.823117, 0.824506, 0.825954,
0.827458, 0.829015, 0.830621, 0.832272, 0.833964, 0.835693,
0.837456, 0.839249, 0.841066, 0.842904, 0.844759, 0.846625,
0.848499, 0.850376, 0.852252, 0.854122, 0.855981, 0.857825,
0.85965, 0.861451, 0.863224, 0.864964, 0.866667, 0.868329,
0.869946, 0.871513, 0.873027, 0.874483, 0.875879, 0.877211,
0.878474, 0.879667, 0.880785, 0.881825, 0.882786, 0.883664,
0.884457, 0.885162, 0.885779, 0.886303, 0.886735, 0.887073,
0.887316, 0.887462, 0.88751, 0.887461, 0.887315, 0.88707,
0.886727, 0.886287, 0.88575, 0.885117, 0.88439, 0.883568,
0.882656, 0.881653, 0.880562, 0.879385, 0.878124, 0.876783,
0.875364, 0.873871, 0.872306, 0.870672, 0.868974, 0.867216,
0.8654, 0.863532, 0.861616, 0.859655, 0.857655, 0.85562,
0.853555, 0.851464, 0.849353, 0.847226, 0.845089, 0.842946,
0.840804, 0.838666, 0.836538, 0.834425, 0.832333, 0.830266,
0.82823, 0.82623, 0.82427, 0.822356, 0.820493, 0.818685,
0.816936, 0.815252, 0.813637, 0.812095, 0.810631, 0.809247,
0.807948, 0.806739, 0.805621, 0.804598, 0.803673, 0.80285,
0.80213, 0.801516, 0.801011, 0.800615, 0.800331, 0.800159,
0.800102, 0.80016, 0.800333, 0.800621, 0.801026, 0.801546,
0.802181, 0.80293, 0.803792, 0.804766, 0.80585, 0.807043,
0.808341, 0.809743, 0.811247, 0.812848, 0.814544, 0.816331,
0.818207, 0.820166, 0.822204, 0.824318, 0.826503, 0.828754,
0.831066, 0.833433, 0.835852, 0.838315, 0.840818, 0.843355,
0.84592, 0.848506, 0.851109, 0.853721, 0.856337, 0.85895,
0.861554, 0.864143, 0.86671, 0.869248, 0.871753, 0.874216,
0.876633, 0.878996, 0.8813, 0.883539, 0.885706, 0.887796,
0.889804, 0.891723, 0.893549, 0.895275, 0.896898, 0.898413,
0.899814, 0.901097, 0.902259, 0.903296, 0.904203, 0.904978,
0.905617, 0.906118, 0.906478, 0.906696, 0.906769, 0.906696,
0.906475, 0.906106, 0.905588, 0.904922, 0.904107, 0.903144,
0.902033, 0.900777, 0.899376, 0.897833, 0.896149, 0.894329,
0.892373, 0.890287, 0.888074, 0.885737, 0.883281, 0.88071,
0.878031, 0.875247, 0.872365, 0.869391, 0.86633, 0.86319,
0.859976, 0.856696, 0.853357, 0.849967, 0.846532, 0.843061,
0.839562, 0.836043, 0.832512, 0.828978, 0.825448, 0.821933,
0.818439, 0.814976, 0.811553, 0.808178, 0.804861, 0.801609,
0.798432, 0.795338, 0.792336, 0.789434, 0.78664, 0.783963,
0.781411, 0.77899, 0.77671, 0.774577, 0.772599, 0.770782,
0.769133, 0.767659, 0.766365, 0.765257, 0.76434, 0.76362,
0.7631, 0.762786, 0.76268, 0.762787, 0.763108, 0.763648,
0.764407, 0.765387, 0.76659, 0.768015, 0.769663, 0.771534,
0.773626, 0.775938, 0.778469, 0.781215, 0.784173, 0.787341,
0.790713, 0.794286, 0.798053, 0.80201, 0.80615, 0.810467,
0.814953, 0.8196, 0.8244, 0.829344, 0.834424, 0.839629,
0.844949, 0.850373, 0.855891, 0.861491, 0.867161, 0.872888,
0.87866, 0.884464, 0.890287, 0.896114, 0.901932, 0.907726,
0.913482, 0.919186, 0.924821, 0.930372, 0.935826, 0.941164,
0.946373, 0.951437, 0.956338, 0.961063, 0.965594, 0.969915,
0.974012, 0.977868, 0.981467, 0.984794, 0.987833, 0.99057,
0.992988, 0.995073, 0.99681, 0.998185, 0.999185, 0.999794,
1, 0.99979, 0.99915, 0.99807, 0.996536, 0.994539,
0.992066, 0.989108, 0.985654, 0.981697, 0.977226, 0.972234,
0.966713, 0.960657, 0.954059, 0.946914, 0.939217, 0.930964,
0.922151, 0.912775, 0.902834, 0.892327, 0.881253, 0.869612,
0.857406, 0.844634, 0.831301, 0.817408, 0.802959, 0.78796,
0.772415, 0.756329, 0.739711, 0.722567, 0.704905, 0.686734,
0.668063, 0.648904, 0.629266, 0.609162, 0.588603, 0.567602,
0.546173, 0.524329, 0.502086, 0.479459, 0.456462, 0.433113,
0.409428, 0.385425, 0.361121, 0.336534, 0.311682, 0.286585,
0.261261, 0.235731, 0.210014, 0.18413, 0.158099, 0.131943,
0.105681, 0.0793348, 0.0529251, 0.0264731, 1.55431e-15, -0.0264731,
-0.0529251, -0.0793348, -0.105681, -0.131943, -0.158099, -0.18413,
-0.210014, -0.235731, -0.261261, -0.286585, -0.311682, -0.336534,
-0.361121, -0.385425, -0.409428, -0.433113, -0.456462, -0.479459,
-0.502086, -0.524329, -0.546173, -0.567602, -0.588603, -0.609162,
-0.629266, -0.648904, -0.668063, -0.686734, -0.704905, -0.722567,
-0.739711, -0.756329, -0.772415, -0.78796, -0.802959, -0.817408,
-0.831301, -0.844634, -0.857406, -0.869612, -0.881253, -0.892327,
-0.902834, -0.912775, -0.922151, -0.930964, -0.939217, -0.946914,
-0.954059, -0.960657, -0.966713, -0.972234, -0.977226, -0.981697,
-0.985654, -0.989108, -0.992066, -0.994539, -0.996536, -0.99807,
-0.99915, -0.99979, -1, -0.999794, -0.999185, -0.998185,
-0.99681, -0.995073, -0.992988, -0.99057, -0.987833, -0.984794,
-0.981467, -0.977868, -0.974012, -0.969915, -0.965594, -0.961063,
-0.956338, -0.951437, -0.946373, -0.941164, -0.935826, -0.930372,
-0.924821, -0.919186, -0.913482, -0.907726, -0.901932, -0.896114,
-0.890287, -0.884464, -0.87866, -0.872888, -0.867161, -0.861491,
-0.855891, -0.850373, -0.844949, -0.839629, -0.834424, -0.829344,
-0.8244, -0.8196, -0.814953, -0.810467, -0.80615, -0.80201,
-0.798053, -0.794286, -0.790713, -0.787341, -0.784173, -0.781215,
-0.778469, -0.775938, -0.773626, -0.771534, -0.769663, -0.768015,
-0.76659, -0.765387, -0.764407, -0.763648, -0.763108, -0.762787,
-0.76268, -0.762786, -0.7631, -0.76362, -0.76434, -0.765257,
-0.766365, -0.767659, -0.769133, -0.770782, -0.772599, -0.774577,
-0.77671, -0.77899, -0.781411, -0.783963, -0.78664, -0.789434,
-0.792336, -0.795338, -0.798432, -0.801609, -0.804861, -0.808178,
-0.811553, -0.814976, -0.818439, -0.821933, -0.825448, -0.828978,
-0.832512, -0.836043, -0.839562, -0.843061, -0.846532, -0.849967,
-0.853357, -0.856696, -0.859976, -0.86319, -0.86633, -0.869391,
-0.872365, -0.875247, -0.878031, -0.88071, -0.883281, -0.885737,
-0.888074, -0.890287, -0.892373, -0.894329, -0.896149, -0.897833,
-0.899376, -0.900777, -0.902033, -0.903144, -0.904107, -0.904922,
-0.905588, -0.906106, -0.906475, -0.906696, -0.906769, -0.906696,
-0.906478, -0.906118, -0.905617, -0.904978, -0.904203, -0.903296,
-0.902259, -0.901097, -0.899814, -0.898413, -0.896898, -0.895275,
-0.893549, -0.891723, -0.889804, -0.887796, -0.885706, -0.883539,
-0.8813, -0.878996, -0.876633, -0.874216, -0.871753, -0.869248,
-0.86671, -0.864143, -0.861554, -0.85895, -0.856337, -0.853721,
-0.851109, -0.848506, -0.84592, -0.843355, -0.840818, -0.838315,
-0.835852, -0.833433, -0.831066, -0.828754, -0.826503, -0.824318,
-0.822204, -0.820166, -0.818207, -0.816331, -0.814544, -0.812848,
-0.811247, -0.809743, -0.808341, -0.807043, -0.80585, -0.804766,
-0.803792, -0.80293, -0.802181, -0.801546, -0.801026, -0.800621,
-0.800333, -0.80016, -0.800102, -0.800159, -0.800331, -0.800615,
-0.801011, -0.801516, -0.80213, -0.80285, -0.803673, -0.804598,
-0.805621, -0.806739, -0.807948, -0.809247, -0.810631, -0.812095,
-0.813637, -0.815252, -0.816936, -0.818685, -0.820493, -0.822356,
-0.82427, -0.82623, -0.82823, -0.830266, -0.832333, -0.834425,
-0.836538, -0.838666, -0.840804, -0.842946, -0.845089, -0.847226,
-0.849353, -0.851464, -0.853555, -0.85562, -0.857655, -0.859655,
-0.861616, -0.863532, -0.8654, -0.867216, -0.868974, -0.870672,
-0.872306, -0.873871, -0.875364, -0.876783, -0.878124, -0.879385,
-0.880562, -0.881653, -0.882656, -0.883568, -0.88439, -0.885117,
-0.88575, -0.886287, -0.886727, -0.88707, -0.887315, -0.887461,
-0.88751, -0.887462, -0.887316, -0.887073, -0.886735, -0.886303,
-0.885779, -0.885162, -0.884457, -0.883664, -0.882786, -0.881825,
-0.880785, -0.879667, -0.878474, -0.877211, -0.875879, -0.874483,
-0.873027, -0.871513, -0.869946, -0.868329, -0.866667, -0.864964,
-0.863224, -0.861451, -0.85965, -0.857825, -0.855981, -0.854122,
-0.852252, -0.850376, -0.848499, -0.846625, -0.844759, -0.842904,
-0.841066, -0.839249, -0.837456, -0.835693, -0.833964, -0.832272,
-0.830621, -0.829015, -0.827458, -0.825954, -0.824506, -0.823117,
-0.82179, -0.820529, -0.819336, -0.818214, -0.817165, -0.816192,
-0.815297, -0.814482, -0.813748, -0.813097, -0.81253, -0.812049,
-0.811654, -0.811347, -0.811127, -0.810995, -0.810951, -0.810995,
-0.811126, -0.811345, -0.81165, -0.81204, -0.812514, -0.813072,
-0.81371, -0.814428, -0.815224, -0.816096, -0.817041, -0.818057,
-0.819141, -0.820291, -0.821503, -0.822775, -0.824104, -0.825485,
-0.826917, -0.828394, -0.829914, -0.831473, -0.833067, -0.834692,
-0.836344, -0.83802, -0.839714, -0.841423, -0.843143, -0.84487,
-0.846599, -0.848327, -0.850049, -0.851761, -0.85346, -0.85514,
-0.856798, -0.85843, -0.860033, -0.861602, -0.863133, -0.864624,
-0.86607, -0.867468, -0.868816, -0.870109, -0.871345, -0.872521,
-0.873633, -0.874681, -0.87566, -0.87657, -0.877407, -0.878171,
-0.878858, -0.879468, -0.88, -0.880451, -0.880822, -0.881111,
-0.881318, -0.881442, -0.881483, -0.881442, -0.881318, -0.881112,
-0.880824, -0.880455, -0.880007, -0.87948, -0.878875, -0.878195,
-0.87744, -0.876614, -0.875717, -0.874752, -0.873722, -0.872628,
-0.871475, -0.870263, -0.868998, -0.86768, -0.866315, -0.864905,
-0.863453, -0.861963, -0.860438, -0.858883, -0.857301, -0.855695,
-0.854071, -0.852431, -0.850779, -0.849121, -0.847458, -0.845796,
-0.844139, -0.84249, -0.840853, -0.839233, -0.837633, -0.836057,
-0.834509, -0.832993, -0.831511, -0.830068, -0.828668, -0.827312,
-0.826006, -0.824751, -0.823551, -0.822409, -0.821327, -0.820308,
-0.819355, -0.818469, -0.817653, -0.816909, -0.816238, -0.815643,
-0.815123, -0.814682, -0.814319, -0.814037, -0.813834, -0.813712,
-0.813672, -0.813712, -0.813834, -0.814037, -0.814319, -0.814682,
-0.815123, -0.815643, -0.816238, -0.816909, -0.817653, -0.818469,
-0.819355, -0.820308, -0.821327, -0.822409, -0.823551, -0.824751,
-0.826006, -0.827312, -0.828668, -0.830068, -0.831511, -0.832993,
-0.834509, -0.836057, -0.837633, -0.839233, -0.840853, -0.84249,
-0.844139, -0.845796, -0.847458, -0.849121, -0.850779, -0.852431,
-0.854071, -0.855695, -0.857301, -0.858883, -0.860438, -0.861963,
-0.863453, -0.864905, -0.866315, -0.86768, -0.868998, -0.870263,
-0.871475, -0.872628, -0.873722, -0.874752, -0.875717, -0.876614,
-0.87744, -0.878195, -0.878875, -0.87948, -0.880007, -0.880455,
-0.880824, -0.881112, -0.881318, -0.881442, -0.881483, -0.881442,
-0.881318, -0.881111, -0.880822, -0.880451, -0.88, -0.879468,
-0.878858, -0.878171, -0.877407, -0.87657, -0.87566, -0.874681,
-0.873633, -0.872521, -0.871345, -0.870109, -0.868816, -0.867468,
-0.86607, -0.864624, -0.863133, -0.861602, -0.860033, -0.85843,
-0.856798, -0.85514, -0.85346, -0.851761, -0.850049, -0.848327,
-0.846599, -0.84487, -0.843143, -0.841423, -0.839714, -0.83802,
-0.836344, -0.834692, -0.833067, -0.831473, -0.829914, -0.828394,
-0.826917, -0.825485, -0.824104, -0.822775, -0.821503, -0.820291,
-0.819141, -0.818057, -0.817041, -0.816096, -0.815224, -0.814428,
-0.81371, -0.813072, -0.812514, -0.81204, -0.81165, -0.811345,
-0.811126, -0.810995, -0.810951, -0.810995, -0.811127, -0.811347,
-0.811654, -0.812049, -0.81253, -0.813097, -0.813748, -0.814482,
-0.815297, -0.816192, -0.817165, -0.818214, -0.819336, -0.820529,
-0.82179, -0.823117, -0.824506, -0.825954, -0.827458, -0.829015,
-0.830621, -0.832272, -0.833964, -0.835693, -0.837456, -0.839249,
-0.841066, -0.842904, -0.844759, -0.846625, -0.848499, -0.850376,
-0.852252, -0.854122, -0.855981, -0.857825, -0.85965, -0.861451,
-0.863224, -0.864964, -0.866667, -0.868329, -0.869946, -0.871513,
-0.873027, -0.874483, -0.875879, -0.877211, -0.878474, -0.879667,
-0.880785, -0.881825, -0.882786, -0.883664, -0.884457, -0.885162,
-0.885779, -0.886303, -0.886735, -0.887073, -0.887316, -0.887462,
-0.88751, -0.887461, -0.887315, -0.88707, -0.886727, -0.886287,
-0.88575, -0.885117, -0.88439, -0.883568, -0.882656, -0.881653,
-0.880562, -0.879385, -0.878124, -0.876783, -0.875364, -0.873871,
-0.872306, -0.870672, -0.868974, -0.867216, -0.8654, -0.863532,
-0.861616, -0.859655, -0.857655, -0.85562, -0.853555, -0.851464,
-0.849353, -0.847226, -0.845089, -0.842946, -0.840804, -0.838666,
-0.836538, -0.834425, -0.832333, -0.830266, -0.82823, -0.82623,
-0.82427, -0.822356, -0.820493, -0.818685, -0.816936, -0.815252,
-0.813637, -0.812095, -0.810631, -0.809247, -0.807948, -0.806739,
-0.805621, -0.804598, -0.803673, -0.80285, -0.80213, -0.801516,
-0.801011, -0.800615, -0.800331, -0.800159, -0.800102, -0.80016,
-0.800333, -0.800621, -0.801026, -0.801546, -0.802181, -0.80293,
-0.803792, -0.804766, -0.80585, -0.807043, -0.808341, -0.809743,
-0.811247, -0.812848, -0.814544, -0.816331, -0.818207, -0.820166,
-0.822204, -0.824318, -0.826503, -0.828754, -0.831066, -0.833433,
-0.835852, -0.838315, -0.840818, -0.843355, -0.84592, -0.848506,
-0.851109, -0.853721, -0.856337, -0.85895, -0.861554, -0.864143,
-0.86671, -0.869248, -0.871753, -0.874216, -0.876633, -0.878996,
-0.8813, -0.883539, -0.885706, -0.887796, -0.889804, -0.891723,
-0.893549, -0.895275, -0.896898, -0.898413, -0.899814, -0.901097,
-0.902259, -0.903296, -0.904203, -0.904978, -0.905617, -0.906118,
-0.906478, -0.906696, -0.906769, -0.906696, -0.906475, -0.906106,
-0.905588, -0.904922, -0.904107, -0.903144, -0.902033, -0.900777,
-0.899376, -0.897833, -0.896149, -0.894329, -0.892373, -0.890287,
-0.888074, -0.885737, -0.883281, -0.88071, -0.878031, -0.875247,
-0.872365, -0.869391, -0.86633, -0.86319, -0.859976, -0.856696,
-0.853357, -0.849967, -0.846532, -0.843061, -0.839562, -0.836043,
-0.832512, -0.828978, -0.825448, -0.821933, -0.818439, -0.814976,
-0.811553, -0.808178, -0.804861, -0.801609, -0.798432, -0.795338,
-0.792336, -0.789434, -0.78664, -0.783963, -0.781411, -0.77899,
-0.77671, -0.774577, -0.772599, -0.770782, -0.769133, -0.767659,
-0.766365, -0.765257, -0.76434, -0.76362, -0.7631, -0.762786,
-0.76268, -0.762787, -0.763108, -0.763648, -0.764407, -0.765387,
-0.76659, -0.768015, -0.769663, -0.771534, -0.773626, -0.775938,
-0.778469, -0.781215, -0.784173, -0.787341, -0.790713, -0.794286,
-0.798053, -0.80201, -0.80615, -0.810467, -0.814953, -0.8196,
-0.8244, -0.829344, -0.834424, -0.839629, -0.844949, -0.850373,
-0.855891, -0.861491, -0.867161, -0.872888, -0.87866, -0.884464,
-0.890287, -0.896114, -0.901932, -0.907726, -0.913482, -0.919186,
-0.924821, -0.930372, -0.935826, -0.941164, -0.946373, -0.951437,
-0.956338, -0.961063, -0.965594, -0.969915, -0.974012, -0.977868,
-0.981467, -0.984794, -0.987833, -0.99057, -0.992988, -0.995073,
-0.99681, -0.998185, -0.999185, -0.999794, -1, -0.99979,
-0.99915, -0.99807, -0.996536, -0.994539, -0.992066, -0.989108,
-0.985654, -0.981697, -0.977226, -0.972234, -0.966713, -0.960657,
-0.954059, -0.946914, -0.939217, -0.930964, -0.922151, -0.912775,
-0.902834, -0.892327, -0.881253, -0.869612, -0.857406, -0.844634,
-0.831301, -0.817408, -0.802959, -0.78796, -0.772415, -0.756329,
-0.739711, -0.722567, -0.704905, -0.686734, -0.668063, -0.648904,
-0.629266, -0.609162, -0.588603, -0.567602, -0.546173, -0.524329,
-0.502086, -0.479459, -0.456462, -0.433113, -0.409428, -0.385425,
-0.361121, -0.336534, -0.311682, -0.286585, -0.261261, -0.235731,
-0.210014, -0.18413, -0.158099, -0.131943, -0.105681, -0.0793348,
-0.0529251, -0.0264731
};
static const float WAVE_SQUARE_102[DEFAULT_WAVELEN] = {
4.44089e-16, 0.0131938, 0.0263851, 0.0395711, 0.0527493, 0.0659171,
0.0790719, 0.092211, 0.105332, 0.118432, 0.131509, 0.14456,
0.157582, 0.170574, 0.183531, 0.196453, 0.209336, 0.222178,
0.234976, 0.247729, 0.260432, 0.273085, 0.285685, 0.298228,
0.310714, 0.323139, 0.335501, 0.347798, 0.360027, 0.372187,
0.384275, 0.396288, 0.408225, 0.420084, 0.431862, 0.443556,
0.455166, 0.466689, 0.478123, 0.489466, 0.500716, 0.511871,
0.522929, 0.533888, 0.544747, 0.555504, 0.566156, 0.576702,
0.587141, 0.597471, 0.60769, 0.617797, 0.627789, 0.637666,
0.647426, 0.657068, 0.66659, 0.675991, 0.68527, 0.694425,
0.703455, 0.712359, 0.721135, 0.729784, 0.738303, 0.746691,
0.754948, 0.763073, 0.771065, 0.778923, 0.786646, 0.794233,
0.801685, 0.808999, 0.816176, 0.823214, 0.830114, 0.836875,
0.843497, 0.849978, 0.85632, 0.86252, 0.86858, 0.874499,
0.880277, 0.885913, 0.891408, 0.896762, 0.901974, 0.907045,
0.911975, 0.916764, 0.921412, 0.925919, 0.930286, 0.934512,
0.9386, 0.942548, 0.946357, 0.950028, 0.953561, 0.956957,
0.960216, 0.96334, 0.966328, 0.969182, 0.971903, 0.97449,
0.976946, 0.979271, 0.981465, 0.98353, 0.985467, 0.987278,
0.988962, 0.990521, 0.991957, 0.99327, 0.994461, 0.995533,
0.996486, 0.997322, 0.998041, 0.998646, 0.999137, 0.999517,
0.999786, 0.999947, 1, 0.999947, 0.999791, 0.999531,
0.999171, 0.998711, 0.998154, 0.997501, 0.996753, 0.995913,
0.994982, 0.993963, 0.992856, 0.991664, 0.990389, 0.989031,
0.987594, 0.98608, 0.984489, 0.982824, 0.981087, 0.979279,
0.977404, 0.975462, 0.973455, 0.971387, 0.969257, 0.967069,
0.964825, 0.962526, 0.960175, 0.957773, 0.955323, 0.952826,
0.950284, 0.9477, 0.945076, 0.942413, 0.939714, 0.936979,
0.934213, 0.931416, 0.92859, 0.925738, 0.922861, 0.919961,
0.917041, 0.914102, 0.911145, 0.908174, 0.90519, 0.902195,
0.89919, 0.896179, 0.893161, 0.89014, 0.887116, 0.884093,
0.881072, 0.878053, 0.87504, 0.872034, 0.869037, 0.86605,
0.863074, 0.860113, 0.857167, 0.854237, 0.851326, 0.848435,
0.845566, 0.842719, 0.839897, 0.837101, 0.834332, 0.831592,
0.828883, 0.826204, 0.823559, 0.820948, 0.818372, 0.815832,
0.813331, 0.810868, 0.808445, 0.806064, 0.803725, 0.801429,
0.799178, 0.796971, 0.794812, 0.792699, 0.790634, 0.788619,
0.786653, 0.784737, 0.782873, 0.781061, 0.779301, 0.777595,
0.775943, 0.774345, 0.772802, 0.771315, 0.769884, 0.76851,
0.767192, 0.765932, 0.764729, 0.763584, 0.762498, 0.76147,
0.760501, 0.75959, 0.758739, 0.757947, 0.757214, 0.75654,
0.755925, 0.75537, 0.754874, 0.754437, 0.754059, 0.753739,
0.753479, 0.753276, 0.753132, 0.753046, 0.753017, 0.753046,
0.753131, 0.753273, 0.753471, 0.753725, 0.754033, 0.754397,
0.754814, 0.755285, 0.755809, 0.756385, 0.757013, 0.757692,
0.758421, 0.7592, 0.760027, 0.760903, 0.761826, 0.762796,
0.763811, 0.764871, 0.765975, 0.767122, 0.768312, 0.769542,
0.770813, 0.772123, 0.773472, 0.774858, 0.77628, 0.777738,
0.779229, 0.780755, 0.782312, 0.7839, 0.785519, 0.787166,
0.788841, 0.790542, 0.79227, 0.794021, 0.795796, 0.797592,
0.79941, 0.801247, 0.803103, 0.804977, 0.806866, 0.80877,
0.810688, 0.812619, 0.814561, 0.816513, 0.818475, 0.820444,
0.822419, 0.8244, 0.826386, 0.828374, 0.830364, 0.832354,
0.834344, 0.836333, 0.838318, 0.840299, 0.842276, 0.844245,
0.846208, 0.848161, 0.850105, 0.852038, 0.853959, 0.855867,
0.857761, 0.859639, 0.861502, 0.863347, 0.865173, 0.866981,
0.868768, 0.870533, 0.872277, 0.873997, 0.875693, 0.877364,
0.879008, 0.880626, 0.882217, 0.883778, 0.885311, 0.886813,
0.888284, 0.889723, 0.89113, 0.892503, 0.893843, 0.895148,
0.896417, 0.897651, 0.898848, 0.900008, 0.901131, 0.902215,
0.90326, 0.904266, 0.905233, 0.906159, 0.907044, 0.907889,
0.908692, 0.909454, 0.910173, 0.91085, 0.911484, 0.912076,
0.912624, 0.913129, 0.91359, 0.914008, 0.914382, 0.914712,
0.914998, 0.91524, 0.915437, 0.915591, 0.915701, 0.915767,
0.915789, 0.915767, 0.915701, 0.915592, 0.91544, 0.915244,
0.915006, 0.914724, 0.914401, 0.914035, 0.913627, 0.913178,
0.912687, 0.912156, 0.911585, 0.910974, 0.910323, 0.909633,
0.908905, 0.908139, 0.907335, 0.906494, 0.905618, 0.904705,
0.903757, 0.902775, 0.901759, 0.90071, 0.899629, 0.898515,
0.897371, 0.896196, 0.894992, 0.893759, 0.892498, 0.89121,
0.889896, 0.888556, 0.887191, 0.885802, 0.88439, 0.882957,
0.881502, 0.880026, 0.878531, 0.877018, 0.875487, 0.87394,
0.872376, 0.870798, 0.869206, 0.867602, 0.865985, 0.864358,
0.86272, 0.861074, 0.85942, 0.857759, 0.856092, 0.854419,
0.852743, 0.851064, 0.849383, 0.847701, 0.846019, 0.844339,
0.84266, 0.840984, 0.839312, 0.837645, 0.835984, 0.83433,
0.832684, 0.831047, 0.82942, 0.827803, 0.826198, 0.824606,
0.823028, 0.821464, 0.819915, 0.818383, 0.816869, 0.815372,
0.813894, 0.812436, 0.810999, 0.809584, 0.808191, 0.806821,
0.805474, 0.804153, 0.802857, 0.801588, 0.800346, 0.799131,
0.797945, 0.796787, 0.79566, 0.794563, 0.793497, 0.792463,
0.791461, 0.790492, 0.789556, 0.788654, 0.787787, 0.786955,
0.786158, 0.785397, 0.784673, 0.783985, 0.783334, 0.782721,
0.782146, 0.781609, 0.78111, 0.780651, 0.78023, 0.779849,
0.779507, 0.779205, 0.778943, 0.778721, 0.77854, 0.778398,
0.778297, 0.778236, 0.778216, 0.778236, 0.778297, 0.778398,
0.77854, 0.778721, 0.778943, 0.779205, 0.779507, 0.779849,
0.78023, 0.780651, 0.78111, 0.781609, 0.782146, 0.782721,
0.783334, 0.783985, 0.784673, 0.785397, 0.786158, 0.786955,
0.787787, 0.788654, 0.789556, 0.790492, 0.791461, 0.792463,
0.793497, 0.794563, 0.79566, 0.796787, 0.797945, 0.799131,
0.800346, 0.801588, 0.802857, 0.804153, 0.805474, 0.806821,
0.808191, 0.809584, 0.810999, 0.812436, 0.813894, 0.815372,
0.816869, 0.818383, 0.819915, 0.821464, 0.823028, 0.824606,
0.826198, 0.827803, 0.82942, 0.831047, 0.832684, 0.83433,
0.835984, 0.837645, 0.839312, 0.840984, 0.84266, 0.844339,
0.846019, 0.847701, 0.849383, 0.851064, 0.852743, 0.854419,
0.856092, 0.857759, 0.85942, 0.861074, 0.86272, 0.864358,
0.865985, 0.867602, 0.869206, 0.870798, 0.872376, 0.87394,
0.875487, 0.877018, 0.878531, 0.880026, 0.881502, 0.882957,
0.88439, 0.885802, 0.887191, 0.888556, 0.889896, 0.89121,
0.892498, 0.893759, 0.894992, 0.896196, 0.897371, 0.898515,
0.899629, 0.90071, 0.901759, 0.902775, 0.903757, 0.904705,
0.905618, 0.906494, 0.907335, 0.908139, 0.908905, 0.909633,
0.910323, 0.910974, 0.911585, 0.912156, 0.912687, 0.913178,
0.913627, 0.914035, 0.914401, 0.914724, 0.915006, 0.915244,
0.91544, 0.915592, 0.915701, 0.915767, 0.915789, 0.915767,
0.915701, 0.915591, 0.915437, 0.91524, 0.914998, 0.914712,
0.914382, 0.914008, 0.91359, 0.913129, 0.912624, 0.912076,
0.911484, 0.91085, 0.910173, 0.909454, 0.908692, 0.907889,
0.907044, 0.906159, 0.905233, 0.904266, 0.90326, 0.902215,
0.901131, 0.900008, 0.898848, 0.897651, 0.896417, 0.895148,
0.893843, 0.892503, 0.89113, 0.889723, 0.888284, 0.886813,
0.885311, 0.883778, 0.882217, 0.880626, 0.879008, 0.877364,
0.875693, 0.873997, 0.872277, 0.870533, 0.868768, 0.866981,
0.865173, 0.863347, 0.861502, 0.859639, 0.857761, 0.855867,
0.853959, 0.852038, 0.850105, 0.848161, 0.846208, 0.844245,
0.842276, 0.840299, 0.838318, 0.836333, 0.834344, 0.832354,
0.830364, 0.828374, 0.826386, 0.8244, 0.822419, 0.820444,
0.818475, 0.816513, 0.814561, 0.812619, 0.810688, 0.80877,
0.806866, 0.804977, 0.803103, 0.801247, 0.79941, 0.797592,
0.795796, 0.794021, 0.79227, 0.790542, 0.788841, 0.787166,
0.785519, 0.7839, 0.782312, 0.780755, 0.779229, 0.777738,
0.77628, 0.774858, 0.773472, 0.772123, 0.770813, 0.769542,
0.768312, 0.767122, 0.765975, 0.764871, 0.763811, 0.762796,
0.761826, 0.760903, 0.760027, 0.7592, 0.758421, 0.757692,
0.757013, 0.756385, 0.755809, 0.755285, 0.754814, 0.754397,
0.754033, 0.753725, 0.753471, 0.753273, 0.753131, 0.753046,
0.753017, 0.753046, 0.753132, 0.753276, 0.753479, 0.753739,
0.754059, 0.754437, 0.754874, 0.75537, 0.755925, 0.75654,
0.757214, 0.757947, 0.758739, 0.75959, 0.760501, 0.76147,
0.762498, 0.763584, 0.764729, 0.765932, 0.767192, 0.76851,
0.769884, 0.771315, 0.772802, 0.774345, 0.775943, 0.777595,
0.779301, 0.781061, 0.782873, 0.784737, 0.786653, 0.788619,
0.790634, 0.792699, 0.794812, 0.796971, 0.799178, 0.801429,
0.803725, 0.806064, 0.808445, 0.810868, 0.813331, 0.815832,
0.818372, 0.820948, 0.823559, 0.826204, 0.828883, 0.831592,
0.834332, 0.837101, 0.839897, 0.842719, 0.845566, 0.848435,
0.851326, 0.854237, 0.857167, 0.860113, 0.863074, 0.86605,
0.869037, 0.872034, 0.87504, 0.878053, 0.881072, 0.884093,
0.887116, 0.89014, 0.893161, 0.896179, 0.89919, 0.902195,
0.90519, 0.908174, 0.911145, 0.914102, 0.917041, 0.919961,
0.922861, 0.925738, 0.92859, 0.931416, 0.934213, 0.936979,
0.939714, 0.942413, 0.945076, 0.9477, 0.950284, 0.952826,
0.955323, 0.957773, 0.960175, 0.962526, 0.964825, 0.967069,
0.969257, 0.971387, 0.973455, 0.975462, 0.977404, 0.979279,
0.981087, 0.982824, 0.984489, 0.98608, 0.987594, 0.989031,
0.990389, 0.991664, 0.992856, 0.993963, 0.994982, 0.995913,
0.996753, 0.997501, 0.998154, 0.998711, 0.999171, 0.999531,
0.999791, 0.999947, 1, 0.999947, 0.999786, 0.999517,
0.999137, 0.998646, 0.998041, 0.997322, 0.996486, 0.995533,
0.994461, 0.99327, 0.991957, 0.990521, 0.988962, 0.987278,
0.985467, 0.98353, 0.981465, 0.979271, 0.976946, 0.97449,
0.971903, 0.969182, 0.966328, 0.96334, 0.960216, 0.956957,
0.953561, 0.950028, 0.946357, 0.942548, 0.9386, 0.934512,
0.930286, 0.925919, 0.921412, 0.916764, 0.911975, 0.907045,
0.901974, 0.896762, 0.891408, 0.885913, 0.880277, 0.874499,
0.86858, 0.86252, 0.85632, 0.849978, 0.843497, 0.836875,
0.830114, 0.823214, 0.816176, 0.808999, 0.801685, 0.794233,
0.786646, 0.778923, 0.771065, 0.763073, 0.754948, 0.746691,
0.738303, 0.729784, 0.721135, 0.712359, 0.703455, 0.694425,
0.68527, 0.675991, 0.66659, 0.657068, 0.647426, 0.637666,
0.627789, 0.617797, 0.60769, 0.597471, 0.587141, 0.576702,
0.566156, 0.555504, 0.544747, 0.533888, 0.522929, 0.511871,
0.500716, 0.489466, 0.478123, 0.466689, 0.455166, 0.443556,
0.431862, 0.420084, 0.408225, 0.396288, 0.384275, 0.372187,
0.360027, 0.347798, 0.335501, 0.323139, 0.310714, 0.298228,
0.285685, 0.273085, 0.260432, 0.247729, 0.234976, 0.222178,
0.209336, 0.196453, 0.183531, 0.170574, 0.157582, 0.14456,
0.131509, 0.118432, 0.105332, 0.092211, 0.0790719, 0.0659171,
0.0527493, 0.0395711, 0.0263851, 0.0131938, 8.88178e-16, -0.0131938,
-0.0263851, -0.0395711, -0.0527493, -0.0659171, -0.0790719, -0.092211,
-0.105332, -0.118432, -0.131509, -0.14456, -0.157582, -0.170574,
-0.183531, -0.196453, -0.209336, -0.222178, -0.234976, -0.247729,
-0.260432, -0.273085, -0.285685, -0.298228, -0.310714, -0.323139,
-0.335501, -0.347798, -0.360027, -0.372187, -0.384275, -0.396288,
-0.408225, -0.420084, -0.431862, -0.443556, -0.455166, -0.466689,
-0.478123, -0.489466, -0.500716, -0.511871, -0.522929, -0.533888,
-0.544747, -0.555504, -0.566156, -0.576702, -0.587141, -0.597471,
-0.60769, -0.617797, -0.627789, -0.637666, -0.647426, -0.657068,
-0.66659, -0.675991, -0.68527, -0.694425, -0.703455, -0.712359,
-0.721135, -0.729784, -0.738303, -0.746691, -0.754948, -0.763073,
-0.771065, -0.778923, -0.786646, -0.794233, -0.801685, -0.808999,
-0.816176, -0.823214, -0.830114, -0.836875, -0.843497, -0.849978,
-0.85632, -0.86252, -0.86858, -0.874499, -0.880277, -0.885913,
-0.891408, -0.896762, -0.901974, -0.907045, -0.911975, -0.916764,
-0.921412, -0.925919, -0.930286, -0.934512, -0.9386, -0.942548,
-0.946357, -0.950028, -0.953561, -0.956957, -0.960216, -0.96334,
-0.966328, -0.969182, -0.971903, -0.97449, -0.976946, -0.979271,
-0.981465, -0.98353, -0.985467, -0.987278, -0.988962, -0.990521,
-0.991957, -0.99327, -0.994461, -0.995533, -0.996486, -0.997322,
-0.998041, -0.998646, -0.999137, -0.999517, -0.999786, -0.999947,
-1, -0.999947, -0.999791, -0.999531, -0.999171, -0.998711,
-0.998154, -0.997501, -0.996753, -0.995913, -0.994982, -0.993963,
-0.992856, -0.991664, -0.990389, -0.989031, -0.987594, -0.98608,
-0.984489, -0.982824, -0.981087, -0.979279, -0.977404, -0.975462,
-0.973455, -0.971387, -0.969257, -0.967069, -0.964825, -0.962526,
-0.960175, -0.957773, -0.955323, -0.952826, -0.950284, -0.9477,
-0.945076, -0.942413, -0.939714, -0.936979, -0.934213, -0.931416,
-0.92859, -0.925738, -0.922861, -0.919961, -0.917041, -0.914102,
-0.911145, -0.908174, -0.90519, -0.902195, -0.89919, -0.896179,
-0.893161, -0.89014, -0.887116, -0.884093, -0.881072, -0.878053,
-0.87504, -0.872034, -0.869037, -0.86605, -0.863074, -0.860113,
-0.857167, -0.854237, -0.851326, -0.848435, -0.845566, -0.842719,
-0.839897, -0.837101, -0.834332, -0.831592, -0.828883, -0.826204,
-0.823559, -0.820948, -0.818372, -0.815832, -0.813331, -0.810868,
-0.808445, -0.806064, -0.803725, -0.801429, -0.799178, -0.796971,
-0.794812, -0.792699, -0.790634, -0.788619, -0.786653, -0.784737,
-0.782873, -0.781061, -0.779301, -0.777595, -0.775943, -0.774345,
-0.772802, -0.771315, -0.769884, -0.76851, -0.767192, -0.765932,
-0.764729, -0.763584, -0.762498, -0.76147, -0.760501, -0.75959,
-0.758739, -0.757947, -0.757214, -0.75654, -0.755925, -0.75537,
-0.754874, -0.754437, -0.754059, -0.753739, -0.753479, -0.753276,
-0.753132, -0.753046, -0.753017, -0.753046, -0.753131, -0.753273,
-0.753471, -0.753725, -0.754033, -0.754397, -0.754814, -0.755285,
-0.755809, -0.756385, -0.757013, -0.757692, -0.758421, -0.7592,
-0.760027, -0.760903, -0.761826, -0.762796, -0.763811, -0.764871,
-0.765975, -0.767122, -0.768312, -0.769542, -0.770813, -0.772123,
-0.773472, -0.774858, -0.77628, -0.777738, -0.779229, -0.780755,
-0.782312, -0.7839, -0.785519, -0.787166, -0.788841, -0.790542,
-0.79227, -0.794021, -0.795796, -0.797592, -0.79941, -0.801247,
-0.803103, -0.804977, -0.806866, -0.80877, -0.810688, -0.812619,
-0.814561, -0.816513, -0.818475, -0.820444, -0.822419, -0.8244,
-0.826386, -0.828374, -0.830364, -0.832354, -0.834344, -0.836333,
-0.838318, -0.840299, -0.842276, -0.844245, -0.846208, -0.848161,
-0.850105, -0.852038, -0.853959, -0.855867, -0.857761, -0.859639,
-0.861502, -0.863347, -0.865173, -0.866981, -0.868768, -0.870533,
-0.872277, -0.873997, -0.875693, -0.877364, -0.879008, -0.880626,
-0.882217, -0.883778, -0.885311, -0.886813, -0.888284, -0.889723,
-0.89113, -0.892503, -0.893843, -0.895148, -0.896417, -0.897651,
-0.898848, -0.900008, -0.901131, -0.902215, -0.90326, -0.904266,
-0.905233, -0.906159, -0.907044, -0.907889, -0.908692, -0.909454,
-0.910173, -0.91085, -0.911484, -0.912076, -0.912624, -0.913129,
-0.91359, -0.914008, -0.914382, -0.914712, -0.914998, -0.91524,
-0.915437, -0.915591, -0.915701, -0.915767, -0.915789, -0.915767,
-0.915701, -0.915592, -0.91544, -0.915244, -0.915006, -0.914724,
-0.914401, -0.914035, -0.913627, -0.913178, -0.912687, -0.912156,
-0.911585, -0.910974, -0.910323, -0.909633, -0.908905, -0.908139,
-0.907335, -0.906494, -0.905618, -0.904705, -0.903757, -0.902775,
-0.901759, -0.90071, -0.899629, -0.898515, -0.897371, -0.896196,
-0.894992, -0.893759, -0.892498, -0.89121, -0.889896, -0.888556,
-0.887191, -0.885802, -0.88439, -0.882957, -0.881502, -0.880026,
-0.878531, -0.877018, -0.875487, -0.87394, -0.872376, -0.870798,
-0.869206, -0.867602, -0.865985, -0.864358, -0.86272, -0.861074,
-0.85942, -0.857759, -0.856092, -0.854419, -0.852743, -0.851064,
-0.849383, -0.847701, -0.846019, -0.844339, -0.84266, -0.840984,
-0.839312, -0.837645, -0.835984, -0.83433, -0.832684, -0.831047,
-0.82942, -0.827803, -0.826198, -0.824606, -0.823028, -0.821464,
-0.819915, -0.818383, -0.816869, -0.815372, -0.813894, -0.812436,
-0.810999, -0.809584, -0.808191, -0.806821, -0.805474, -0.804153,
-0.802857, -0.801588, -0.800346, -0.799131, -0.797945, -0.796787,
-0.79566, -0.794563, -0.793497, -0.792463, -0.791461, -0.790492,
-0.789556, -0.788654, -0.787787, -0.786955, -0.786158, -0.785397,
-0.784673, -0.783985, -0.783334, -0.782721, -0.782146, -0.781609,
-0.78111, -0.780651, -0.78023, -0.779849, -0.779507, -0.779205,
-0.778943, -0.778721, -0.77854, -0.778398, -0.778297, -0.778236,
-0.778216, -0.778236, -0.778297, -0.778398, -0.77854, -0.778721,
-0.778943, -0.779205, -0.779507, -0.779849, -0.78023, -0.780651,
-0.78111, -0.781609, -0.782146, -0.782721, -0.783334, -0.783985,
-0.784673, -0.785397, -0.786158, -0.786955, -0.787787, -0.788654,
-0.789556, -0.790492, -0.791461, -0.792463, -0.793497, -0.794563,
-0.79566, -0.796787, -0.797945, -0.799131, -0.800346, -0.801588,
-0.802857, -0.804153, -0.805474, -0.806821, -0.808191, -0.809584,
-0.810999, -0.812436, -0.813894, -0.815372, -0.816869, -0.818383,
-0.819915, -0.821464, -0.823028, -0.824606, -0.826198, -0.827803,
-0.82942, -0.831047, -0.832684, -0.83433, -0.835984, -0.837645,
-0.839312, -0.840984, -0.84266, -0.844339, -0.846019, -0.847701,
-0.849383, -0.851064, -0.852743, -0.854419, -0.856092, -0.857759,
-0.85942, -0.861074, -0.86272, -0.864358, -0.865985, -0.867602,
-0.869206, -0.870798, -0.872376, -0.87394, -0.875487, -0.877018,
-0.878531, -0.880026, -0.881502, -0.882957, -0.88439, -0.885802,
-0.887191, -0.888556, -0.889896, -0.89121, -0.892498, -0.893759,
-0.894992, -0.896196, -0.897371, -0.898515, -0.899629, -0.90071,
-0.901759, -0.902775, -0.903757, -0.904705, -0.905618, -0.906494,
-0.907335, -0.908139, -0.908905, -0.909633, -0.910323, -0.910974,
-0.911585, -0.912156, -0.912687, -0.913178, -0.913627, -0.914035,
-0.914401, -0.914724, -0.915006, -0.915244, -0.91544, -0.915592,
-0.915701, -0.915767, -0.915789, -0.915767, -0.915701, -0.915591,
-0.915437, -0.91524, -0.914998, -0.914712, -0.914382, -0.914008,
-0.91359, -0.913129, -0.912624, -0.912076, -0.911484, -0.91085,
-0.910173, -0.909454, -0.908692, -0.907889, -0.907044, -0.906159,
-0.905233, -0.904266, -0.90326, -0.902215, -0.901131, -0.900008,
-0.898848, -0.897651, -0.896417, -0.895148, -0.893843, -0.892503,
-0.89113, -0.889723, -0.888284, -0.886813, -0.885311, -0.883778,
-0.882217, -0.880626, -0.879008, -0.877364, -0.875693, -0.873997,
-0.872277, -0.870533, -0.868768, -0.866981, -0.865173, -0.863347,
-0.861502, -0.859639, -0.857761, -0.855867, -0.853959, -0.852038,
-0.850105, -0.848161, -0.846208, -0.844245, -0.842276, -0.840299,
-0.838318, -0.836333, -0.834344, -0.832354, -0.830364, -0.828374,
-0.826386, -0.8244, -0.822419, -0.820444, -0.818475, -0.816513,
-0.814561, -0.812619, -0.810688, -0.80877, -0.806866, -0.804977,
-0.803103, -0.801247, -0.79941, -0.797592, -0.795796, -0.794021,
-0.79227, -0.790542, -0.788841, -0.787166, -0.785519, -0.7839,
-0.782312, -0.780755, -0.779229, -0.777738, -0.77628, -0.774858,
-0.773472, -0.772123, -0.770813, -0.769542, -0.768312, -0.767122,
-0.765975, -0.764871, -0.763811, -0.762796, -0.761826, -0.760903,
-0.760027, -0.7592, -0.758421, -0.757692, -0.757013, -0.756385,
-0.755809, -0.755285, -0.754814, -0.754397, -0.754033, -0.753725,
-0.753471, -0.753273, -0.753131, -0.753046, -0.753017, -0.753046,
-0.753132, -0.753276, -0.753479, -0.753739, -0.754059, -0.754437,
-0.754874, -0.75537, -0.755925, -0.75654, -0.757214, -0.757947,
-0.758739, -0.75959, -0.760501, -0.76147, -0.762498, -0.763584,
-0.764729, -0.765932, -0.767192, -0.76851, -0.769884, -0.771315,
-0.772802, -0.774345, -0.775943, -0.777595, -0.779301, -0.781061,
-0.782873, -0.784737, -0.786653, -0.788619, -0.790634, -0.792699,
-0.794812, -0.796971, -0.799178, -0.801429, -0.803725, -0.806064,
-0.808445, -0.810868, -0.813331, -0.815832, -0.818372, -0.820948,
-0.823559, -0.826204, -0.828883, -0.831592, -0.834332, -0.837101,
-0.839897, -0.842719, -0.845566, -0.848435, -0.851326, -0.854237,
-0.857167, -0.860113, -0.863074, -0.86605, -0.869037, -0.872034,
-0.87504, -0.878053, -0.881072, -0.884093, -0.887116, -0.89014,
-0.893161, -0.896179, -0.89919, -0.902195, -0.90519, -0.908174,
-0.911145, -0.914102, -0.917041, -0.919961, -0.922861, -0.925738,
-0.92859, -0.931416, -0.934213, -0.936979, -0.939714, -0.942413,
-0.945076, -0.9477, -0.950284, -0.952826, -0.955323, -0.957773,
-0.960175, -0.962526, -0.964825, -0.967069, -0.969257, -0.971387,
-0.973455, -0.975462, -0.977404, -0.979279, -0.981087, -0.982824,
-0.984489, -0.98608, -0.987594, -0.989031, -0.990389, -0.991664,
-0.992856, -0.993963, -0.994982, -0.995913, -0.996753, -0.997501,
-0.998154, -0.998711, -0.999171, -0.999531, -0.999791, -0.999947,
-1, -0.999947, -0.999786, -0.999517, -0.999137, -0.998646,
-0.998041, -0.997322, -0.996486, -0.995533, -0.994461, -0.99327,
-0.991957, -0.990521, -0.988962, -0.987278, -0.985467, -0.98353,
-0.981465, -0.979271, -0.976946, -0.97449, -0.971903, -0.969182,
-0.966328, -0.96334, -0.960216, -0.956957, -0.953561, -0.950028,
-0.946357, -0.942548, -0.9386, -0.934512, -0.930286, -0.925919,
-0.921412, -0.916764, -0.911975, -0.907045, -0.901974, -0.896762,
-0.891408, -0.885913, -0.880277, -0.874499, -0.86858, -0.86252,
-0.85632, -0.849978, -0.843497, -0.836875, -0.830114, -0.823214,
-0.816176, -0.808999, -0.801685, -0.794233, -0.786646, -0.778923,
-0.771065, -0.763073, -0.754948, -0.746691, -0.738303, -0.729784,
-0.721135, -0.712359, -0.703455, -0.694425, -0.68527, -0.675991,
-0.66659, -0.657068, -0.647426, -0.637666, -0.627789, -0.617797,
-0.60769, -0.597471, -0.587141, -0.576702, -0.566156, -0.555504,
-0.544747, -0.533888, -0.522929, -0.511871, -0.500716, -0.489466,
-0.478123, -0.466689, -0.455166, -0.443556, -0.431862, -0.420084,
-0.408225, -0.396288, -0.384275, -0.372187, -0.360027, -0.347798,
-0.335501, -0.323139, -0.310714, -0.298228, -0.285685, -0.273085,
-0.260432, -0.247729, -0.234976, -0.222178, -0.209336, -0.196453,
-0.183531, -0.170574, -0.157582, -0.14456, -0.131509, -0.118432,
-0.105332, -0.092211, -0.0790719, -0.0659171, -0.0527493, -0.0395711,
-0.0263851, -0.0131938
};
static const float WAVE_SQUARE_114[DEFAULT_WAVELEN] = {
2.22045e-16, 0.00650808, 0.0130159, 0.019523, 0.0260293, 0.0325343,
0.0390378, 0.0455394, 0.0520389, 0.058536, 0.0650303, 0.0715215,
0.0780094, 0.0844936, 0.0909738, 0.0974498, 0.103921, 0.110388,
0.116849, 0.123305, 0.129755, 0.136199, 0.142636, 0.149067,
0.155491, 0.161908, 0.168316, 0.174718, 0.18111, 0.187495,
0.19387, 0.200237, 0.206594, 0.212941, 0.219279, 0.225606,
0.231923, 0.238229, 0.244523, 0.250807, 0.257078, 0.263338,
0.269585, 0.27582, 0.282042, 0.28825, 0.294446, 0.300627,
0.306795, 0.312948, 0.319087, 0.325211, 0.33132, 0.337413,
0.343491, 0.349553, 0.355598, 0.361627, 0.36764, 0.373635,
0.379614, 0.385574, 0.391517, 0.397442, 0.403348, 0.409236,
0.415105, 0.420955, 0.426786, 0.432597, 0.438388, 0.444159,
0.449909, 0.455639, 0.461348, 0.467036, 0.472703, 0.478348,
0.483971, 0.489572, 0.495151, 0.500708, 0.506241, 0.511752,
0.517239, 0.522703, 0.528143, 0.533559, 0.538952, 0.544319,
0.549663, 0.554981, 0.560274, 0.565543, 0.570785, 0.576003,
0.581194, 0.586359, 0.591498, 0.596611, 0.601697, 0.606756,
0.611788, 0.616792, 0.62177, 0.626719, 0.631641, 0.636535,
0.641401, 0.646238, 0.651047, 0.655827, 0.660579, 0.665301,
0.669994, 0.674657, 0.679291, 0.683896, 0.68847, 0.693015,
0.697529, 0.702013, 0.706466, 0.710889, 0.715281, 0.719642,
0.723972, 0.72827, 0.732538, 0.736774, 0.740978, 0.74515,
0.749291, 0.7534, 0.757476, 0.76152, 0.765532, 0.769512,
0.773458, 0.777372, 0.781254, 0.785102, 0.788917, 0.7927,
0.796448, 0.800164, 0.803846, 0.807495, 0.81111, 0.814692,
0.818239, 0.821753, 0.825233, 0.828679, 0.832091, 0.835469,
0.838812, 0.842121, 0.845396, 0.848637, 0.851843, 0.855014,
0.858151, 0.861253, 0.864321, 0.867354, 0.870352, 0.873316,
0.876244, 0.879138, 0.881997, 0.884821, 0.88761, 0.890364,
0.893083, 0.895767, 0.898416, 0.90103, 0.903609, 0.906152,
0.908661, 0.911135, 0.913573, 0.915977, 0.918345, 0.920679,
0.922977, 0.92524, 0.927468, 0.929661, 0.93182, 0.933943,
0.936031, 0.938085, 0.940103, 0.942087, 0.944035, 0.945949,
0.947829, 0.949673, 0.951483, 0.953258, 0.954999, 0.956705,
0.958377, 0.960014, 0.961617, 0.963186, 0.964721, 0.966221,
0.967687, 0.96912, 0.970518, 0.971882, 0.973213, 0.97451,
0.975774, 0.977004, 0.9782, 0.979363, 0.980493, 0.98159,
0.982653, 0.983684, 0.984682, 0.985647, 0.98658, 0.987479,
0.988347, 0.989182, 0.989985, 0.990756, 0.991495, 0.992202,
0.992878, 0.993522, 0.994134, 0.994716, 0.995266, 0.995785,
0.996273, 0.99673, 0.997157, 0.997553, 0.997919, 0.998254,
0.99856, 0.998836, 0.999082, 0.999298, 0.999486, 0.999643,
0.999772, 0.999872, 0.999943, 0.999986, 1, 0.999986,
0.999944, 0.999874, 0.999776, 0.999651, 0.999498, 0.999318,
0.999112, 0.998878, 0.998618, 0.998331, 0.998018, 0.99768,
0.997315, 0.996925, 0.996509, 0.996068, 0.995602, 0.995111,
0.994596, 0.994056, 0.993492, 0.992903, 0.992291, 0.991656,
0.990997, 0.990315, 0.98961, 0.988882, 0.988132, 0.98736,
0.986565, 0.985749, 0.984911, 0.984052, 0.983171, 0.98227,
0.981348, 0.980405, 0.979442, 0.978459, 0.977457, 0.976434,
0.975393, 0.974332, 0.973253, 0.972155, 0.971039, 0.969904,
0.968752, 0.967582, 0.966395, 0.96519, 0.963969, 0.962731,
0.961477, 0.960206, 0.95892, 0.957618, 0.9563, 0.954968,
0.95362, 0.952258, 0.950882, 0.949491, 0.948086, 0.946668,
0.945236, 0.943792, 0.942334, 0.940864, 0.939381, 0.937887,
0.93638, 0.934862, 0.933332, 0.931792, 0.930241, 0.928679,
0.927107, 0.925524, 0.923932, 0.922331, 0.92072, 0.919101,
0.917472, 0.915835, 0.91419, 0.912537, 0.910876, 0.909208,
0.907533, 0.90585, 0.904161, 0.902466, 0.900764, 0.899057,
0.897344, 0.895626, 0.893903, 0.892174, 0.890442, 0.888704,
0.886963, 0.885218, 0.88347, 0.881718, 0.879963, 0.878206,
0.876446, 0.874683, 0.872919, 0.871153, 0.869385, 0.867616,
0.865847, 0.864076, 0.862305, 0.860534, 0.858763, 0.856992,
0.855221, 0.853452, 0.851683, 0.849915, 0.84815, 0.846385,
0.844623, 0.842863, 0.841106, 0.839351, 0.837599, 0.835851,
0.834106, 0.832364, 0.830627, 0.828893, 0.827164, 0.82544,
0.82372, 0.822006, 0.820297, 0.818593, 0.816896, 0.815204,
0.813518, 0.811839, 0.810167, 0.808501, 0.806842, 0.805191,
0.803548, 0.801912, 0.800284, 0.798664, 0.797053, 0.795451,
0.793857, 0.792272, 0.790697, 0.789131, 0.787574, 0.786028,
0.784491, 0.782965, 0.781449, 0.779944, 0.778449, 0.776966,
0.775494, 0.774033, 0.772584, 0.771147, 0.769722, 0.768309,
0.766908, 0.765519, 0.764144, 0.762781, 0.761431, 0.760095,
0.758771, 0.757462, 0.756166, 0.754884, 0.753616, 0.752362,
0.751122, 0.749897, 0.748687, 0.747492, 0.746311, 0.745146,
0.743995, 0.742861, 0.741741, 0.740638, 0.73955, 0.738478,
0.737423, 0.736383, 0.73536, 0.734353, 0.733363, 0.73239,
0.731434, 0.730494, 0.729572, 0.728666, 0.727779, 0.726908,
0.726055, 0.72522, 0.724402, 0.723603, 0.722821, 0.722057,
0.721311, 0.720584, 0.719875, 0.719184, 0.718512, 0.717858,
0.717223, 0.716607, 0.71601, 0.715431, 0.714871, 0.714331,
0.713809, 0.713307, 0.712823, 0.71236, 0.711915, 0.71149,
0.711084, 0.710698, 0.710331, 0.709983, 0.709656, 0.709348,
0.70906, 0.708791, 0.708542, 0.708313, 0.708104, 0.707915,
0.707745, 0.707596, 0.707466, 0.707356, 0.707266, 0.707197,
0.707147, 0.707117, 0.707107, 0.707117, 0.707147, 0.707197,
0.707266, 0.707356, 0.707466, 0.707596, 0.707745, 0.707915,
0.708104, 0.708313, 0.708542, 0.708791, 0.70906, 0.709348,
0.709656, 0.709983, 0.710331, 0.710698, 0.711084, 0.71149,
0.711915, 0.71236, 0.712823, 0.713307, 0.713809, 0.714331,
0.714871, 0.715431, 0.71601, 0.716607, 0.717223, 0.717858,
0.718512, 0.719184, 0.719875, 0.720584, 0.721311, 0.722057,
0.722821, 0.723603, 0.724402, 0.72522, 0.726055, 0.726908,
0.727779, 0.728666, 0.729572, 0.730494, 0.731434, 0.73239,
0.733363, 0.734353, 0.73536, 0.736383, 0.737423, 0.738478,
0.73955, 0.740638, 0.741741, 0.742861, 0.743995, 0.745146,
0.746311, 0.747492, 0.748687, 0.749897, 0.751122, 0.752362,
0.753616, 0.754884, 0.756166, 0.757462, 0.758771, 0.760095,
0.761431, 0.762781, 0.764144, 0.765519, 0.766908, 0.768309,
0.769722, 0.771147, 0.772584, 0.774033, 0.775494, 0.776966,
0.778449, 0.779944, 0.781449, 0.782965, 0.784491, 0.786028,
0.787574, 0.789131, 0.790697, 0.792272, 0.793857, 0.795451,
0.797053, 0.798664, 0.800284, 0.801912, 0.803548, 0.805191,
0.806842, 0.808501, 0.810167, 0.811839, 0.813518, 0.815204,
0.816896, 0.818593, 0.820297, 0.822006, 0.82372, 0.82544,
0.827164, 0.828893, 0.830627, 0.832364, 0.834106, 0.835851,
0.837599, 0.839351, 0.841106, 0.842863, 0.844623, 0.846385,
0.84815, 0.849915, 0.851683, 0.853452, 0.855221, 0.856992,
0.858763, 0.860534, 0.862305, 0.864076, 0.865847, 0.867616,
0.869385, 0.871153, 0.872919, 0.874683, 0.876446, 0.878206,
0.879963, 0.881718, 0.88347, 0.885218, 0.886963, 0.888704,
0.890442, 0.892174, 0.893903, 0.895626, 0.897344, 0.899057,
0.900764, 0.902466, 0.904161, 0.90585, 0.907533, 0.909208,
0.910876, 0.912537, 0.91419, 0.915835, 0.917472, 0.919101,
0.92072, 0.922331, 0.923932, 0.925524, 0.927107, 0.928679,
0.930241, 0.931792, 0.933332, 0.934862, 0.93638, 0.937887,
0.939381, 0.940864, 0.942334, 0.943792, 0.945236, 0.946668,
0.948086, 0.949491, 0.950882, 0.952258, 0.95362, 0.954968,
0.9563, 0.957618, 0.95892, 0.960206, 0.961477, 0.962731,
0.963969, 0.96519, 0.966395, 0.967582, 0.968752, 0.969904,
0.971039, 0.972155, 0.973253, 0.974332, 0.975393, 0.976434,
0.977457, 0.978459, 0.979442, 0.980405, 0.981348, 0.98227,
0.983171, 0.984052, 0.984911, 0.985749, 0.986565, 0.98736,
0.988132, 0.988882, 0.98961, 0.990315, 0.990997, 0.991656,
0.992291, 0.992903, 0.993492, 0.994056, 0.994596, 0.995111,
0.995602, 0.996068, 0.996509, 0.996925, 0.997315, 0.99768,
0.998018, 0.998331, 0.998618, 0.998878, 0.999112, 0.999318,
0.999498, 0.999651, 0.999776, 0.999874, 0.999944, 0.999986,
1, 0.999986, 0.999943, 0.999872, 0.999772, 0.999643,
0.999486, 0.999298, 0.999082, 0.998836, 0.99856, 0.998254,
0.997919, 0.997553, 0.997157, 0.99673, 0.996273, 0.995785,
0.995266, 0.994716, 0.994134, 0.993522, 0.992878, 0.992202,
0.991495, 0.990756, 0.989985, 0.989182, 0.988347, 0.987479,
0.98658, 0.985647, 0.984682, 0.983684, 0.982653, 0.98159,
0.980493, 0.979363, 0.9782, 0.977004, 0.975774, 0.97451,
0.973213, 0.971882, 0.970518, 0.96912, 0.967687, 0.966221,
0.964721, 0.963186, 0.961617, 0.960014, 0.958377, 0.956705,
0.954999, 0.953258, 0.951483, 0.949673, 0.947829, 0.945949,
0.944035, 0.942087, 0.940103, 0.938085, 0.936031, 0.933943,
0.93182, 0.929661, 0.927468, 0.92524, 0.922977, 0.920679,
0.918345, 0.915977, 0.913573, 0.911135, 0.908661, 0.906152,
0.903609, 0.90103, 0.898416, 0.895767, 0.893083, 0.890364,
0.88761, 0.884821, 0.881997, 0.879138, 0.876244, 0.873316,
0.870352, 0.867354, 0.864321, 0.861253, 0.858151, 0.855014,
0.851843, 0.848637, 0.845396, 0.842121, 0.838812, 0.835469,
0.832091, 0.828679, 0.825233, 0.821753, 0.818239, 0.814692,
0.81111, 0.807495, 0.803846, 0.800164, 0.796448, 0.7927,
0.788917, 0.785102, 0.781254, 0.777372, 0.773458, 0.769512,
0.765532, 0.76152, 0.757476, 0.7534, 0.749291, 0.74515,
0.740978, 0.736774, 0.732538, 0.72827, 0.723972, 0.719642,
0.715281, 0.710889, 0.706466, 0.702013, 0.697529, 0.693015,
0.68847, 0.683896, 0.679291, 0.674657, 0.669994, 0.665301,
0.660579, 0.655827, 0.651047, 0.646238, 0.641401, 0.636535,
0.631641, 0.626719, 0.62177, 0.616792, 0.611788, 0.606756,
0.601697, 0.596611, 0.591498, 0.586359, 0.581194, 0.576003,
0.570785, 0.565543, 0.560274, 0.554981, 0.549663, 0.544319,
0.538952, 0.533559, 0.528143, 0.522703, 0.517239, 0.511752,
0.506241, 0.500708, 0.495151, 0.489572, 0.483971, 0.478348,
0.472703, 0.467036, 0.461348, 0.455639, 0.449909, 0.444159,
0.438388, 0.432597, 0.426786, 0.420955, 0.415105, 0.409236,
0.403348, 0.397442, 0.391517, 0.385574, 0.379614, 0.373635,
0.36764, 0.361627, 0.355598, 0.349553, 0.343491, 0.337413,
0.33132, 0.325211, 0.319087, 0.312948, 0.306795, 0.300627,
0.294446, 0.28825, 0.282042, 0.27582, 0.269585, 0.263338,
0.257078, 0.250807, 0.244523, 0.238229, 0.231923, 0.225606,
0.219279, 0.212941, 0.206594, 0.200237, 0.19387, 0.187495,
0.18111, 0.174718, 0.168316, 0.161908, 0.155491, 0.149067,
0.142636, 0.136199, 0.129755, 0.123305, 0.116849, 0.110388,
0.103921, 0.0974498, 0.0909738, 0.0844936, 0.0780094, 0.0715215,
0.0650303, 0.058536, 0.0520389, 0.0455394, 0.0390378, 0.0325343,
0.0260293, 0.019523, 0.0130159, 0.00650808, 4.44089e-16, -0.00650808,
-0.0130159, -0.019523, -0.0260293, -0.0325343, -0.0390378, -0.0455394,
-0.0520389, -0.058536, -0.0650303, -0.0715215, -0.0780094, -0.0844936,
-0.0909738, -0.0974498, -0.103921, -0.110388, -0.116849, -0.123305,
-0.129755, -0.136199, -0.142636, -0.149067, -0.155491, -0.161908,
-0.168316, -0.174718, -0.18111, -0.187495, -0.19387, -0.200237,
-0.206594, -0.212941, -0.219279, -0.225606, -0.231923, -0.238229,
-0.244523, -0.250807, -0.257078, -0.263338, -0.269585, -0.27582,
-0.282042, -0.28825, -0.294446, -0.300627, -0.306795, -0.312948,
-0.319087, -0.325211, -0.33132, -0.337413, -0.343491, -0.349553,
-0.355598, -0.361627, -0.36764, -0.373635, -0.379614, -0.385574,
-0.391517, -0.397442, -0.403348, -0.409236, -0.415105, -0.420955,
-0.426786, -0.432597, -0.438388, -0.444159, -0.449909, -0.455639,
-0.461348, -0.467036, -0.472703, -0.478348, -0.483971, -0.489572,
-0.495151, -0.500708, -0.506241, -0.511752, -0.517239, -0.522703,
-0.528143, -0.533559, -0.538952, -0.544319, -0.549663, -0.554981,
-0.560274, -0.565543, -0.570785, -0.576003, -0.581194, -0.586359,
-0.591498, -0.596611, -0.601697, -0.606756, -0.611788, -0.616792,
-0.62177, -0.626719, -0.631641, -0.636535, -0.641401, -0.646238,
-0.651047, -0.655827, -0.660579, -0.665301, -0.669994, -0.674657,
-0.679291, -0.683896, -0.68847, -0.693015, -0.697529, -0.702013,
-0.706466, -0.710889, -0.715281, -0.719642, -0.723972, -0.72827,
-0.732538, -0.736774, -0.740978, -0.74515, -0.749291, -0.7534,
-0.757476, -0.76152, -0.765532, -0.769512, -0.773458, -0.777372,
-0.781254, -0.785102, -0.788917, -0.7927, -0.796448, -0.800164,
-0.803846, -0.807495, -0.81111, -0.814692, -0.818239, -0.821753,
-0.825233, -0.828679, -0.832091, -0.835469, -0.838812, -0.842121,
-0.845396, -0.848637, -0.851843, -0.855014, -0.858151, -0.861253,
-0.864321, -0.867354, -0.870352, -0.873316, -0.876244, -0.879138,
-0.881997, -0.884821, -0.88761, -0.890364, -0.893083, -0.895767,
-0.898416, -0.90103, -0.903609, -0.906152, -0.908661, -0.911135,
-0.913573, -0.915977, -0.918345, -0.920679, -0.922977, -0.92524,
-0.927468, -0.929661, -0.93182, -0.933943, -0.936031, -0.938085,
-0.940103, -0.942087, -0.944035, -0.945949, -0.947829, -0.949673,
-0.951483, -0.953258, -0.954999, -0.956705, -0.958377, -0.960014,
-0.961617, -0.963186, -0.964721, -0.966221, -0.967687, -0.96912,
-0.970518, -0.971882, -0.973213, -0.97451, -0.975774, -0.977004,
-0.9782, -0.979363, -0.980493, -0.98159, -0.982653, -0.983684,
-0.984682, -0.985647, -0.98658, -0.987479, -0.988347, -0.989182,
-0.989985, -0.990756, -0.991495, -0.992202, -0.992878, -0.993522,
-0.994134, -0.994716, -0.995266, -0.995785, -0.996273, -0.99673,
-0.997157, -0.997553, -0.997919, -0.998254, -0.99856, -0.998836,
-0.999082, -0.999298, -0.999486, -0.999643, -0.999772, -0.999872,
-0.999943, -0.999986, -1, -0.999986, -0.999944, -0.999874,
-0.999776, -0.999651, -0.999498, -0.999318, -0.999112, -0.998878,
-0.998618, -0.998331, -0.998018, -0.99768, -0.997315, -0.996925,
-0.996509, -0.996068, -0.995602, -0.995111, -0.994596, -0.994056,
-0.993492, -0.992903, -0.992291, -0.991656, -0.990997, -0.990315,
-0.98961, -0.988882, -0.988132, -0.98736, -0.986565, -0.985749,
-0.984911, -0.984052, -0.983171, -0.98227, -0.981348, -0.980405,
-0.979442, -0.978459, -0.977457, -0.976434, -0.975393, -0.974332,
-0.973253, -0.972155, -0.971039, -0.969904, -0.968752, -0.967582,
-0.966395, -0.96519, -0.963969, -0.962731, -0.961477, -0.960206,
-0.95892, -0.957618, -0.9563, -0.954968, -0.95362, -0.952258,
-0.950882, -0.949491, -0.948086, -0.946668, -0.945236, -0.943792,
-0.942334, -0.940864, -0.939381, -0.937887, -0.93638, -0.934862,
-0.933332, -0.931792, -0.930241, -0.928679, -0.927107, -0.925524,
-0.923932, -0.922331, -0.92072, -0.919101, -0.917472, -0.915835,
-0.91419, -0.912537, -0.910876, -0.909208, -0.907533, -0.90585,
-0.904161, -0.902466, -0.900764, -0.899057, -0.897344, -0.895626,
-0.893903, -0.892174, -0.890442, -0.888704, -0.886963, -0.885218,
-0.88347, -0.881718, -0.879963, -0.878206, -0.876446, -0.874683,
-0.872919, -0.871153, -0.869385, -0.867616, -0.865847, -0.864076,
-0.862305, -0.860534, -0.858763, -0.856992, -0.855221, -0.853452,
-0.851683, -0.849915, -0.84815, -0.846385, -0.844623, -0.842863,
-0.841106, -0.839351, -0.837599, -0.835851, -0.834106, -0.832364,
-0.830627, -0.828893, -0.827164, -0.82544, -0.82372, -0.822006,
-0.820297, -0.818593, -0.816896, -0.815204, -0.813518, -0.811839,
-0.810167, -0.808501, -0.806842, -0.805191, -0.803548, -0.801912,
-0.800284, -0.798664, -0.797053, -0.795451, -0.793857, -0.792272,
-0.790697, -0.789131, -0.787574, -0.786028, -0.784491, -0.782965,
-0.781449, -0.779944, -0.778449, -0.776966, -0.775494, -0.774033,
-0.772584, -0.771147, -0.769722, -0.768309, -0.766908, -0.765519,
-0.764144, -0.762781, -0.761431, -0.760095, -0.758771, -0.757462,
-0.756166, -0.754884, -0.753616, -0.752362, -0.751122, -0.749897,
-0.748687, -0.747492, -0.746311, -0.745146, -0.743995, -0.742861,
-0.741741, -0.740638, -0.73955, -0.738478, -0.737423, -0.736383,
-0.73536, -0.734353, -0.733363, -0.73239, -0.731434, -0.730494,
-0.729572, -0.728666, -0.727779, -0.726908, -0.726055, -0.72522,
-0.724402, -0.723603, -0.722821, -0.722057, -0.721311, -0.720584,
-0.719875, -0.719184, -0.718512, -0.717858, -0.717223, -0.716607,
-0.71601, -0.715431, -0.714871, -0.714331, -0.713809, -0.713307,
-0.712823, -0.71236, -0.711915, -0.71149, -0.711084, -0.710698,
-0.710331, -0.709983, -0.709656, -0.709348, -0.70906, -0.708791,
-0.708542, -0.708313, -0.708104, -0.707915, -0.707745, -0.707596,
-0.707466, -0.707356, -0.707266, -0.707197, -0.707147, -0.707117,
-0.707107, -0.707117, -0.707147, -0.707197, -0.707266, -0.707356,
-0.707466, -0.707596, -0.707745, -0.707915, -0.708104, -0.708313,
-0.708542, -0.708791, -0.70906, -0.709348, -0.709656, -0.709983,
-0.710331, -0.710698, -0.711084, -0.71149, -0.711915, -0.71236,
-0.712823, -0.713307, -0.713809, -0.714331, -0.714871, -0.715431,
-0.71601, -0.716607, -0.717223, -0.717858, -0.718512, -0.719184,
-0.719875, -0.720584, -0.721311, -0.722057, -0.722821, -0.723603,
-0.724402, -0.72522, -0.726055, -0.726908, -0.727779, -0.728666,
-0.729572, -0.730494, -0.731434, -0.73239, -0.733363, -0.734353,
-0.73536, -0.736383, -0.737423, -0.738478, -0.73955, -0.740638,
-0.741741, -0.742861, -0.743995, -0.745146, -0.746311, -0.747492,
-0.748687, -0.749897, -0.751122, -0.752362, -0.753616, -0.754884,
-0.756166, -0.757462, -0.758771, -0.760095, -0.761431, -0.762781,
-0.764144, -0.765519, -0.766908, -0.768309, -0.769722, -0.771147,
-0.772584, -0.774033, -0.775494, -0.776966, -0.778449, -0.779944,
-0.781449, -0.782965, -0.784491, -0.786028, -0.787574, -0.789131,
-0.790697, -0.792272, -0.793857, -0.795451, -0.797053, -0.798664,
-0.800284, -0.801912, -0.803548, -0.805191, -0.806842, -0.808501,
-0.810167, -0.811839, -0.813518, -0.815204, -0.816896, -0.818593,
-0.820297, -0.822006, -0.82372, -0.82544, -0.827164, -0.828893,
-0.830627, -0.832364, -0.834106, -0.835851, -0.837599, -0.839351,
-0.841106, -0.842863, -0.844623, -0.846385, -0.84815, -0.849915,
-0.851683, -0.853452, -0.855221, -0.856992, -0.858763, -0.860534,
-0.862305, -0.864076, -0.865847, -0.867616, -0.869385, -0.871153,
-0.872919, -0.874683, -0.876446, -0.878206, -0.879963, -0.881718,
-0.88347, -0.885218, -0.886963, -0.888704, -0.890442, -0.892174,
-0.893903, -0.895626, -0.897344, -0.899057, -0.900764, -0.902466,
-0.904161, -0.90585, -0.907533, -0.909208, -0.910876, -0.912537,
-0.91419, -0.915835, -0.917472, -0.919101, -0.92072, -0.922331,
-0.923932, -0.925524, -0.927107, -0.928679, -0.930241, -0.931792,
-0.933332, -0.934862, -0.93638, -0.937887, -0.939381, -0.940864,
-0.942334, -0.943792, -0.945236, -0.946668, -0.948086, -0.949491,
-0.950882, -0.952258, -0.95362, -0.954968, -0.9563, -0.957618,
-0.95892, -0.960206, -0.961477, -0.962731, -0.963969, -0.96519,
-0.966395, -0.967582, -0.968752, -0.969904, -0.971039, -0.972155,
-0.973253, -0.974332, -0.975393, -0.976434, -0.977457, -0.978459,
-0.979442, -0.980405, -0.981348, -0.98227, -0.983171, -0.984052,
-0.984911, -0.985749, -0.986565, -0.98736, -0.988132, -0.988882,
-0.98961, -0.990315, -0.990997, -0.991656, -0.992291, -0.992903,
-0.993492, -0.994056, -0.994596, -0.995111, -0.995602, -0.996068,
-0.996509, -0.996925, -0.997315, -0.99768, -0.998018, -0.998331,
-0.998618, -0.998878, -0.999112, -0.999318, -0.999498, -0.999651,
-0.999776, -0.999874, -0.999944, -0.999986, -1, -0.999986,
-0.999943, -0.999872, -0.999772, -0.999643, -0.999486, -0.999298,
-0.999082, -0.998836, -0.99856, -0.998254, -0.997919, -0.997553,
-0.997157, -0.99673, -0.996273, -0.995785, -0.995266, -0.994716,
-0.994134, -0.993522, -0.992878, -0.992202, -0.991495, -0.990756,
-0.989985, -0.989182, -0.988347, -0.987479, -0.98658, -0.985647,
-0.984682, -0.983684, -0.982653, -0.98159, -0.980493, -0.979363,
-0.9782, -0.977004, -0.975774, -0.97451, -0.973213, -0.971882,
-0.970518, -0.96912, -0.967687, -0.966221, -0.964721, -0.963186,
-0.961617, -0.960014, -0.958377, -0.956705, -0.954999, -0.953258,
-0.951483, -0.949673, -0.947829, -0.945949, -0.944035, -0.942087,
-0.940103, -0.938085, -0.936031, -0.933943, -0.93182, -0.929661,
-0.927468, -0.92524, -0.922977, -0.920679, -0.918345, -0.915977,
-0.913573, -0.911135, -0.908661, -0.906152, -0.903609, -0.90103,
-0.898416, -0.895767, -0.893083, -0.890364, -0.88761, -0.884821,
-0.881997, -0.879138, -0.876244, -0.873316, -0.870352, -0.867354,
-0.864321, -0.861253, -0.858151, -0.855014, -0.851843, -0.848637,
-0.845396, -0.842121, -0.838812, -0.835469, -0.832091, -0.828679,
-0.825233, -0.821753, -0.818239, -0.814692, -0.81111, -0.807495,
-0.803846, -0.800164, -0.796448, -0.7927, -0.788917, -0.785102,
-0.781254, -0.777372, -0.773458, -0.769512, -0.765532, -0.76152,
-0.757476, -0.7534, -0.749291, -0.74515, -0.740978, -0.736774,
-0.732538, -0.72827, -0.723972, -0.719642, -0.715281, -0.710889,
-0.706466, -0.702013, -0.697529, -0.693015, -0.68847, -0.683896,
-0.679291, -0.674657, -0.669994, -0.665301, -0.660579, -0.655827,
-0.651047, -0.646238, -0.641401, -0.636535, -0.631641, -0.626719,
-0.62177, -0.616792, -0.611788, -0.606756, -0.601697, -0.596611,
-0.591498, -0.586359, -0.581194, -0.576003, -0.570785, -0.565543,
-0.560274, -0.554981, -0.549663, -0.544319, -0.538952, -0.533559,
-0.528143, -0.522703, -0.517239, -0.511752, -0.506241, -0.500708,
-0.495151, -0.489572, -0.483971, -0.478348, -0.472703, -0.467036,
-0.461348, -0.455639, -0.449909, -0.444159, -0.438388, -0.432597,
-0.426786, -0.420955, -0.415105, -0.409236, -0.403348, -0.397442,
-0.391517, -0.385574, -0.379614, -0.373635, -0.36764, -0.361627,
-0.355598, -0.349553, -0.343491, -0.337413, -0.33132, -0.325211,
-0.319087, -0.312948, -0.306795, -0.300627, -0.294446, -0.28825,
-0.282042, -0.27582, -0.269585, -0.263338, -0.257078, -0.250807,
-0.244523, -0.238229, -0.231923, -0.225606, -0.219279, -0.212941,
-0.206594, -0.200237, -0.19387, -0.187495, -0.18111, -0.174718,
-0.168316, -0.161908, -0.155491, -0.149067, -0.142636, -0.136199,
-0.129755, -0.123305, -0.116849, -0.110388, -0.103921, -0.0974498,
-0.0909738, -0.0844936, -0.0780094, -0.0715215, -0.0650303, -0.058536,
-0.0520389, -0.0455394, -0.0390378, -0.0325343, -0.0260293, -0.019523,
-0.0130159, -0.00650808
};
static const float WAVE_SQUARE_126[DEFAULT_WAVELEN] = {
0, 0.00306796, 0.00613588, 0.00920375, 0.0122715, 0.0153392,
0.0184067, 0.0214741, 0.0245412, 0.0276081, 0.0306748, 0.0337412,
0.0368072, 0.0398729, 0.0429383, 0.0460032, 0.0490677, 0.0521317,
0.0551952, 0.0582583, 0.0613207, 0.0643826, 0.0674439, 0.0705046,
0.0735646, 0.0766239, 0.0796824, 0.0827403, 0.0857973, 0.0888536,
0.091909, 0.0949635, 0.0980171, 0.10107, 0.104122, 0.107172,
0.110222, 0.113271, 0.116319, 0.119365, 0.122411, 0.125455,
0.128498, 0.13154, 0.134581, 0.13762, 0.140658, 0.143695,
0.14673, 0.149765, 0.152797, 0.155828, 0.158858, 0.161886,
0.164913, 0.167938, 0.170962, 0.173984, 0.177004, 0.180023,
0.18304, 0.186055, 0.189069, 0.19208, 0.19509, 0.198098,
0.201105, 0.204109, 0.207111, 0.210112, 0.21311, 0.216107,
0.219101, 0.222094, 0.225084, 0.228072, 0.231058, 0.234042,
0.237024, 0.240003, 0.24298, 0.245955, 0.248928, 0.251898,
0.254866, 0.257831, 0.260794, 0.263755, 0.266713, 0.269668,
0.272621, 0.275572, 0.27852, 0.281465, 0.284408, 0.287347,
0.290285, 0.293219, 0.296151, 0.29908, 0.302006, 0.304929,
0.30785, 0.310767, 0.313682, 0.316593, 0.319502, 0.322408,
0.32531, 0.32821, 0.331106, 0.334, 0.33689, 0.339777,
0.342661, 0.345541, 0.348419, 0.351293, 0.354164, 0.357031,
0.359895, 0.362756, 0.365613, 0.368467, 0.371317, 0.374164,
0.377007, 0.379847, 0.382683, 0.385516, 0.388345, 0.39117,
0.393992, 0.39681, 0.399624, 0.402435, 0.405241, 0.408044,
0.410843, 0.413638, 0.41643, 0.419217, 0.422, 0.42478,
0.427555, 0.430326, 0.433094, 0.435857, 0.438616, 0.441371,
0.444122, 0.446869, 0.449611, 0.45235, 0.455084, 0.457813,
0.460539, 0.46326, 0.465976, 0.468689, 0.471397, 0.4741,
0.476799, 0.479494, 0.482184, 0.484869, 0.48755, 0.490226,
0.492898, 0.495565, 0.498228, 0.500885, 0.503538, 0.506187,
0.50883, 0.511469, 0.514103, 0.516732, 0.519356, 0.521975,
0.52459, 0.527199, 0.529804, 0.532403, 0.534998, 0.537587,
0.540171, 0.542751, 0.545325, 0.547894, 0.550458, 0.553017,
0.55557, 0.558119, 0.560662, 0.563199, 0.565732, 0.568259,
0.570781, 0.573297, 0.575808, 0.578314, 0.580814, 0.583309,
0.585798, 0.588282, 0.59076, 0.593232, 0.595699, 0.598161,
0.600616, 0.603067, 0.605511, 0.60795, 0.610383, 0.61281,
0.615232, 0.617647, 0.620057, 0.622461, 0.624859, 0.627252,
0.629638, 0.632019, 0.634393, 0.636762, 0.639124, 0.641481,
0.643832, 0.646176, 0.648514, 0.650847, 0.653173, 0.655493,
0.657807, 0.660114, 0.662416, 0.664711, 0.667, 0.669283,
0.671559, 0.673829, 0.676093, 0.67835, 0.680601, 0.682846,
0.685084, 0.687315, 0.689541, 0.691759, 0.693971, 0.696177,
0.698376, 0.700569, 0.702755, 0.704934, 0.707107, 0.709273,
0.711432, 0.713585, 0.715731, 0.71787, 0.720003, 0.722128,
0.724247, 0.726359, 0.728464, 0.730563, 0.732654, 0.734739,
0.736817, 0.738887, 0.740951, 0.743008, 0.745058, 0.747101,
0.749136, 0.751165, 0.753187, 0.755201, 0.757209, 0.759209,
0.761202, 0.763188, 0.765167, 0.767139, 0.769103, 0.771061,
0.77301, 0.774953, 0.776888, 0.778817, 0.780737, 0.782651,
0.784557, 0.786455, 0.788346, 0.79023, 0.792107, 0.793975,
0.795837, 0.797691, 0.799537, 0.801376, 0.803208, 0.805031,
0.806848, 0.808656, 0.810457, 0.812251, 0.814036, 0.815814,
0.817585, 0.819348, 0.821103, 0.82285, 0.824589, 0.826321,
0.828045, 0.829761, 0.83147, 0.83317, 0.834863, 0.836548,
0.838225, 0.839894, 0.841555, 0.843208, 0.844854, 0.846491,
0.84812, 0.849742, 0.851355, 0.852961, 0.854558, 0.856147,
0.857729, 0.859302, 0.860867, 0.862424, 0.863973, 0.865514,
0.867046, 0.868571, 0.870087, 0.871595, 0.873095, 0.874587,
0.87607, 0.877545, 0.879012, 0.880471, 0.881921, 0.883363,
0.884797, 0.886223, 0.88764, 0.889048, 0.890449, 0.891841,
0.893224, 0.894599, 0.895966, 0.897325, 0.898674, 0.900016,
0.901349, 0.902673, 0.903989, 0.905297, 0.906596, 0.907886,
0.909168, 0.910441, 0.911706, 0.912962, 0.91421, 0.915449,
0.916679, 0.917901, 0.919114, 0.920318, 0.921514, 0.922701,
0.92388, 0.925049, 0.92621, 0.927363, 0.928506, 0.929641,
0.930767, 0.931884, 0.932993, 0.934093, 0.935184, 0.936266,
0.937339, 0.938404, 0.939459, 0.940506, 0.941544, 0.942573,
0.943593, 0.944605, 0.945607, 0.946601, 0.947586, 0.948561,
0.949528, 0.950486, 0.951435, 0.952375, 0.953306, 0.954228,
0.955141, 0.956045, 0.95694, 0.957826, 0.958703, 0.959572,
0.960431, 0.96128, 0.962121, 0.962953, 0.963776, 0.96459,
0.965394, 0.96619, 0.966976, 0.967754, 0.968522, 0.969281,
0.970031, 0.970772, 0.971504, 0.972226, 0.97294, 0.973644,
0.974339, 0.975025, 0.975702, 0.97637, 0.977028, 0.977677,
0.978317, 0.978948, 0.97957, 0.980182, 0.980785, 0.981379,
0.981964, 0.982539, 0.983105, 0.983662, 0.98421, 0.984749,
0.985278, 0.985798, 0.986308, 0.986809, 0.987301, 0.987784,
0.988258, 0.988722, 0.989177, 0.989622, 0.990058, 0.990485,
0.990903, 0.991311, 0.99171, 0.992099, 0.99248, 0.99285,
0.993212, 0.993564, 0.993907, 0.99424, 0.994565, 0.994879,
0.995185, 0.995481, 0.995767, 0.996045, 0.996313, 0.996571,
0.99682, 0.99706, 0.99729, 0.997511, 0.997723, 0.997925,
0.998118, 0.998302, 0.998476, 0.99864, 0.998795, 0.998941,
0.999078, 0.999205, 0.999322, 0.999431, 0.999529, 0.999619,
0.999699, 0.999769, 0.999831, 0.999882, 0.999925, 0.999958,
0.999981, 0.999995, 1, 0.999995, 0.999981, 0.999958,
0.999925, 0.999882, 0.999831, 0.999769, 0.999699, 0.999619,
0.999529, 0.999431, 0.999322, 0.999205, 0.999078, 0.998941,
0.998795, 0.99864, 0.998476, 0.998302, 0.998118, 0.997925,
0.997723, 0.997511, 0.99729, 0.99706, 0.99682, 0.996571,
0.996313, 0.996045, 0.995767, 0.995481, 0.995185, 0.994879,
0.994565, 0.99424, 0.993907, 0.993564, 0.993212, 0.99285,
0.99248, 0.992099, 0.99171, 0.991311, 0.990903, 0.990485,
0.990058, 0.989622, 0.989177, 0.988722, 0.988258, 0.987784,
0.987301, 0.986809, 0.986308, 0.985798, 0.985278, 0.984749,
0.98421, 0.983662, 0.983105, 0.982539, 0.981964, 0.981379,
0.980785, 0.980182, 0.97957, 0.978948, 0.978317, 0.977677,
0.977028, 0.97637, 0.975702, 0.975025, 0.974339, 0.973644,
0.97294, 0.972226, 0.971504, 0.970772, 0.970031, 0.969281,
0.968522, 0.967754, 0.966976, 0.96619, 0.965394, 0.96459,
0.963776, 0.962953, 0.962121, 0.96128, 0.960431, 0.959572,
0.958703, 0.957826, 0.95694, 0.956045, 0.955141, 0.954228,
0.953306, 0.952375, 0.951435, 0.950486, 0.949528, 0.948561,
0.947586, 0.946601, 0.945607, 0.944605, 0.943593, 0.942573,
0.941544, 0.940506, 0.939459, 0.938404, 0.937339, 0.936266,
0.935184, 0.934093, 0.932993, 0.931884, 0.930767, 0.929641,
0.928506, 0.927363, 0.92621, 0.925049, 0.92388, 0.922701,
0.921514, 0.920318, 0.919114, 0.917901, 0.916679, 0.915449,
0.91421, 0.912962, 0.911706, 0.910441, 0.909168, 0.907886,
0.906596, 0.905297, 0.903989, 0.902673, 0.901349, 0.900016,
0.898674, 0.897325, 0.895966, 0.894599, 0.893224, 0.891841,
0.890449, 0.889048, 0.88764, 0.886223, 0.884797, 0.883363,
0.881921, 0.880471, 0.879012, 0.877545, 0.87607, 0.874587,
0.873095, 0.871595, 0.870087, 0.868571, 0.867046, 0.865514,
0.863973, 0.862424, 0.860867, 0.859302, 0.857729, 0.856147,
0.854558, 0.852961, 0.851355, 0.849742, 0.84812, 0.846491,
0.844854, 0.843208, 0.841555, 0.839894, 0.838225, 0.836548,
0.834863, 0.83317, 0.83147, 0.829761, 0.828045, 0.826321,
0.824589, 0.82285, 0.821103, 0.819348, 0.817585, 0.815814,
0.814036, 0.812251, 0.810457, 0.808656, 0.806848, 0.805031,
0.803208, 0.801376, 0.799537, 0.797691, 0.795837, 0.793975,
0.792107, 0.79023, 0.788346, 0.786455, 0.784557, 0.782651,
0.780737, 0.778817, 0.776888, 0.774953, 0.77301, 0.771061,
0.769103, 0.767139, 0.765167, 0.763188, 0.761202, 0.759209,
0.757209, 0.755201, 0.753187, 0.751165, 0.749136, 0.747101,
0.745058, 0.743008, 0.740951, 0.738887, 0.736817, 0.734739,
0.732654, 0.730563, 0.728464, 0.726359, 0.724247, 0.722128,
0.720003, 0.71787, 0.715731, 0.713585, 0.711432, 0.709273,
0.707107, 0.704934, 0.702755, 0.700569, 0.698376, 0.696177,
0.693971, 0.691759, 0.689541, 0.687315, 0.685084, 0.682846,
0.680601, 0.67835, 0.676093, 0.673829, 0.671559, 0.669283,
0.667, 0.664711, 0.662416, 0.660114, 0.657807, 0.655493,
0.653173, 0.650847, 0.648514, 0.646176, 0.643832, 0.641481,
0.639124, 0.636762, 0.634393, 0.632019, 0.629638, 0.627252,
0.624859, 0.622461, 0.620057, 0.617647, 0.615232, 0.61281,
0.610383, 0.60795, 0.605511, 0.603067, 0.600616, 0.598161,
0.595699, 0.593232, 0.59076, 0.588282, 0.585798, 0.583309,
0.580814, 0.578314, 0.575808, 0.573297, 0.570781, 0.568259,
0.565732, 0.563199, 0.560662, 0.558119, 0.55557, 0.553017,
0.550458, 0.547894, 0.545325, 0.542751, 0.540171, 0.537587,
0.534998, 0.532403, 0.529804, 0.527199, 0.52459, 0.521975,
0.519356, 0.516732, 0.514103, 0.511469, 0.50883, 0.506187,
0.503538, 0.500885, 0.498228, 0.495565, 0.492898, 0.490226,
0.48755, 0.484869, 0.482184, 0.479494, 0.476799, 0.4741,
0.471397, 0.468689, 0.465976, 0.46326, 0.460539, 0.457813,
0.455084, 0.45235, 0.449611, 0.446869, 0.444122, 0.441371,
0.438616, 0.435857, 0.433094, 0.430326, 0.427555, 0.42478,
0.422, 0.419217, 0.41643, 0.413638, 0.410843, 0.408044,
0.405241, 0.402435, 0.399624, 0.39681, 0.393992, 0.39117,
0.388345, 0.385516, 0.382683, 0.379847, 0.377007, 0.374164,
0.371317, 0.368467, 0.365613, 0.362756, 0.359895, 0.357031,
0.354164, 0.351293, 0.348419, 0.345541, 0.342661, 0.339777,
0.33689, 0.334, 0.331106, 0.32821, 0.32531, 0.322408,
0.319502, 0.316593, 0.313682, 0.310767, 0.30785, 0.304929,
0.302006, 0.29908, 0.296151, 0.293219, 0.290285, 0.287347,
0.284408, 0.281465, 0.27852, 0.275572, 0.272621, 0.269668,
0.266713, 0.263755, 0.260794, 0.257831, 0.254866, 0.251898,
0.248928, 0.245955, 0.24298, 0.240003, 0.237024, 0.234042,
0.231058, 0.228072, 0.225084, 0.222094, 0.219101, 0.216107,
0.21311, 0.210112, 0.207111, 0.204109, 0.201105, 0.198098,
0.19509, 0.19208, 0.189069, 0.186055, 0.18304, 0.180023,
0.177004, 0.173984, 0.170962, 0.167938, 0.164913, 0.161886,
0.158858, 0.155828, 0.152797, 0.149765, 0.14673, 0.143695,
0.140658, 0.13762, 0.134581, 0.13154, 0.128498, 0.125455,
0.122411, 0.119365, 0.116319, 0.113271, 0.110222, 0.107172,
0.104122, 0.10107, 0.0980171, 0.0949635, 0.091909, 0.0888536,
0.0857973, 0.0827403, 0.0796824, 0.0766239, 0.0735646, 0.0705046,
0.0674439, 0.0643826, 0.0613207, 0.0582583, 0.0551952, 0.0521317,
0.0490677, 0.0460032, 0.0429383, 0.0398729, 0.0368072, 0.0337412,
0.0306748, 0.0276081, 0.0245412, 0.0214741, 0.0184067, 0.0153392,
0.0122715, 0.00920375, 0.00613588, 0.00306796, 2.22045e-16, -0.00306796,
-0.00613588, -0.00920375, -0.0122715, -0.0153392, -0.0184067, -0.0214741,
-0.0245412, -0.0276081, -0.0306748, -0.0337412, -0.0368072, -0.0398729,
-0.0429383, -0.0460032, -0.0490677, -0.0521317, -0.0551952, -0.0582583,
-0.0613207, -0.0643826, -0.0674439, -0.0705046, -0.0735646, -0.0766239,
-0.0796824, -0.0827403, -0.0857973, -0.0888536, -0.091909, -0.0949635,
-0.0980171, -0.10107, -0.104122, -0.107172, -0.110222, -0.113271,
-0.116319, -0.119365, -0.122411, -0.125455, -0.128498, -0.13154,
-0.134581, -0.13762, -0.140658, -0.143695, -0.14673, -0.149765,
-0.152797, -0.155828, -0.158858, -0.161886, -0.164913, -0.167938,
-0.170962, -0.173984, -0.177004, -0.180023, -0.18304, -0.186055,
-0.189069, -0.19208, -0.19509, -0.198098, -0.201105, -0.204109,
-0.207111, -0.210112, -0.21311, -0.216107, -0.219101, -0.222094,
-0.225084, -0.228072, -0.231058, -0.234042, -0.237024, -0.240003,
-0.24298, -0.245955, -0.248928, -0.251898, -0.254866, -0.257831,
-0.260794, -0.263755, -0.266713, -0.269668, -0.272621, -0.275572,
-0.27852, -0.281465, -0.284408, -0.287347, -0.290285, -0.293219,
-0.296151, -0.29908, -0.302006, -0.304929, -0.30785, -0.310767,
-0.313682, -0.316593, -0.319502, -0.322408, -0.32531, -0.32821,
-0.331106, -0.334, -0.33689, -0.339777, -0.342661, -0.345541,
-0.348419, -0.351293, -0.354164, -0.357031, -0.359895, -0.362756,
-0.365613, -0.368467, -0.371317, -0.374164, -0.377007, -0.379847,
-0.382683, -0.385516, -0.388345, -0.39117, -0.393992, -0.39681,
-0.399624, -0.402435, -0.405241, -0.408044, -0.410843, -0.413638,
-0.41643, -0.419217, -0.422, -0.42478, -0.427555, -0.430326,
-0.433094, -0.435857, -0.438616, -0.441371, -0.444122, -0.446869,
-0.449611, -0.45235, -0.455084, -0.457813, -0.460539, -0.46326,
-0.465976, -0.468689, -0.471397, -0.4741, -0.476799, -0.479494,
-0.482184, -0.484869, -0.48755, -0.490226, -0.492898, -0.495565,
-0.498228, -0.500885, -0.503538, -0.506187, -0.50883, -0.511469,
-0.514103, -0.516732, -0.519356, -0.521975, -0.52459, -0.527199,
-0.529804, -0.532403, -0.534998, -0.537587, -0.540171, -0.542751,
-0.545325, -0.547894, -0.550458, -0.553017, -0.55557, -0.558119,
-0.560662, -0.563199, -0.565732, -0.568259, -0.570781, -0.573297,
-0.575808, -0.578314, -0.580814, -0.583309, -0.585798, -0.588282,
-0.59076, -0.593232, -0.595699, -0.598161, -0.600616, -0.603067,
-0.605511, -0.60795, -0.610383, -0.61281, -0.615232, -0.617647,
-0.620057, -0.622461, -0.624859, -0.627252, -0.629638, -0.632019,
-0.634393, -0.636762, -0.639124, -0.641481, -0.643832, -0.646176,
-0.648514, -0.650847, -0.653173, -0.655493, -0.657807, -0.660114,
-0.662416, -0.664711, -0.667, -0.669283, -0.671559, -0.673829,
-0.676093, -0.67835, -0.680601, -0.682846, -0.685084, -0.687315,
-0.689541, -0.691759, -0.693971, -0.696177, -0.698376, -0.700569,
-0.702755, -0.704934, -0.707107, -0.709273, -0.711432, -0.713585,
-0.715731, -0.71787, -0.720003, -0.722128, -0.724247, -0.726359,
-0.728464, -0.730563, -0.732654, -0.734739, -0.736817, -0.738887,
-0.740951, -0.743008, -0.745058, -0.747101, -0.749136, -0.751165,
-0.753187, -0.755201, -0.757209, -0.759209, -0.761202, -0.763188,
-0.765167, -0.767139, -0.769103, -0.771061, -0.77301, -0.774953,
-0.776888, -0.778817, -0.780737, -0.782651, -0.784557, -0.786455,
-0.788346, -0.79023, -0.792107, -0.793975, -0.795837, -0.797691,
-0.799537, -0.801376, -0.803208, -0.805031, -0.806848, -0.808656,
-0.810457, -0.812251, -0.814036, -0.815814, -0.817585, -0.819348,
-0.821103, -0.82285, -0.824589, -0.826321, -0.828045, -0.829761,
-0.83147, -0.83317, -0.834863, -0.836548, -0.838225, -0.839894,
-0.841555, -0.843208, -0.844854, -0.846491, -0.84812, -0.849742,
-0.851355, -0.852961, -0.854558, -0.856147, -0.857729, -0.859302,
-0.860867, -0.862424, -0.863973, -0.865514, -0.867046, -0.868571,
-0.870087, -0.871595, -0.873095, -0.874587, -0.87607, -0.877545,
-0.879012, -0.880471, -0.881921, -0.883363, -0.884797, -0.886223,
-0.88764, -0.889048, -0.890449, -0.891841, -0.893224, -0.894599,
-0.895966, -0.897325, -0.898674, -0.900016, -0.901349, -0.902673,
-0.903989, -0.905297, -0.906596, -0.907886, -0.909168, -0.910441,
-0.911706, -0.912962, -0.91421, -0.915449, -0.916679, -0.917901,
-0.919114, -0.920318, -0.921514, -0.922701, -0.92388, -0.925049,
-0.92621, -0.927363, -0.928506, -0.929641, -0.930767, -0.931884,
-0.932993, -0.934093, -0.935184, -0.936266, -0.937339, -0.938404,
-0.939459, -0.940506, -0.941544, -0.942573, -0.943593, -0.944605,
-0.945607, -0.946601, -0.947586, -0.948561, -0.949528, -0.950486,
-0.951435, -0.952375, -0.953306, -0.954228, -0.955141, -0.956045,
-0.95694, -0.957826, -0.958703, -0.959572, -0.960431, -0.96128,
-0.962121, -0.962953, -0.963776, -0.96459, -0.965394, -0.96619,
-0.966976, -0.967754, -0.968522, -0.969281, -0.970031, -0.970772,
-0.971504, -0.972226, -0.97294, -0.973644, -0.974339, -0.975025,
-0.975702, -0.97637, -0.977028, -0.977677, -0.978317, -0.978948,
-0.97957, -0.980182, -0.980785, -0.981379, -0.981964, -0.982539,
-0.983105, -0.983662, -0.98421, -0.984749, -0.985278, -0.985798,
-0.986308, -0.986809, -0.987301, -0.987784, -0.988258, -0.988722,
-0.989177, -0.989622, -0.990058, -0.990485, -0.990903, -0.991311,
-0.99171, -0.992099, -0.99248, -0.99285, -0.993212, -0.993564,
-0.993907, -0.99424, -0.994565, -0.994879, -0.995185, -0.995481,
-0.995767, -0.996045, -0.996313, -0.996571, -0.99682, -0.99706,
-0.99729, -0.997511, -0.997723, -0.997925, -0.998118, -0.998302,
-0.998476, -0.99864, -0.998795, -0.998941, -0.999078, -0.999205,
-0.999322, -0.999431, -0.999529, -0.999619, -0.999699, -0.999769,
-0.999831, -0.999882, -0.999925, -0.999958, -0.999981, -0.999995,
-1, -0.999995, -0.999981, -0.999958, -0.999925, -0.999882,
-0.999831, -0.999769, -0.999699, -0.999619, -0.999529, -0.999431,
-0.999322, -0.999205, -0.999078, -0.998941, -0.998795, -0.99864,
-0.998476, -0.998302, -0.998118, -0.997925, -0.997723, -0.997511,
-0.99729, -0.99706, -0.99682, -0.996571, -0.996313, -0.996045,
-0.995767, -0.995481, -0.995185, -0.994879, -0.994565, -0.99424,
-0.993907, -0.993564, -0.993212, -0.99285, -0.99248, -0.992099,
-0.99171, -0.991311, -0.990903, -0.990485, -0.990058, -0.989622,
-0.989177, -0.988722, -0.988258, -0.987784, -0.987301, -0.986809,
-0.986308, -0.985798, -0.985278, -0.984749, -0.98421, -0.983662,
-0.983105, -0.982539, -0.981964, -0.981379, -0.980785, -0.980182,
-0.97957, -0.978948, -0.978317, -0.977677, -0.977028, -0.97637,
-0.975702, -0.975025, -0.974339, -0.973644, -0.97294, -0.972226,
-0.971504, -0.970772, -0.970031, -0.969281, -0.968522, -0.967754,
-0.966976, -0.96619, -0.965394, -0.96459, -0.963776, -0.962953,
-0.962121, -0.96128, -0.960431, -0.959572, -0.958703, -0.957826,
-0.95694, -0.956045, -0.955141, -0.954228, -0.953306, -0.952375,
-0.951435, -0.950486, -0.949528, -0.948561, -0.947586, -0.946601,
-0.945607, -0.944605, -0.943593, -0.942573, -0.941544, -0.940506,
-0.939459, -0.938404, -0.937339, -0.936266, -0.935184, -0.934093,
-0.932993, -0.931884, -0.930767, -0.929641, -0.928506, -0.927363,
-0.92621, -0.925049, -0.92388, -0.922701, -0.921514, -0.920318,
-0.919114, -0.917901, -0.916679, -0.915449, -0.91421, -0.912962,
-0.911706, -0.910441, -0.909168, -0.907886, -0.906596, -0.905297,
-0.903989, -0.902673, -0.901349, -0.900016, -0.898674, -0.897325,
-0.895966, -0.894599, -0.893224, -0.891841, -0.890449, -0.889048,
-0.88764, -0.886223, -0.884797, -0.883363, -0.881921, -0.880471,
-0.879012, -0.877545, -0.87607, -0.874587, -0.873095, -0.871595,
-0.870087, -0.868571, -0.867046, -0.865514, -0.863973, -0.862424,
-0.860867, -0.859302, -0.857729, -0.856147, -0.854558, -0.852961,
-0.851355, -0.849742, -0.84812, -0.846491, -0.844854, -0.843208,
-0.841555, -0.839894, -0.838225, -0.836548, -0.834863, -0.83317,
-0.83147, -0.829761, -0.828045, -0.826321, -0.824589, -0.82285,
-0.821103, -0.819348, -0.817585, -0.815814, -0.814036, -0.812251,
-0.810457, -0.808656, -0.806848, -0.805031, -0.803208, -0.801376,
-0.799537, -0.797691, -0.795837, -0.793975, -0.792107, -0.79023,
-0.788346, -0.786455, -0.784557, -0.782651, -0.780737, -0.778817,
-0.776888, -0.774953, -0.77301, -0.771061, -0.769103, -0.767139,
-0.765167, -0.763188, -0.761202, -0.759209, -0.757209, -0.755201,
-0.753187, -0.751165, -0.749136, -0.747101, -0.745058, -0.743008,
-0.740951, -0.738887, -0.736817, -0.734739, -0.732654, -0.730563,
-0.728464, -0.726359, -0.724247, -0.722128, -0.720003, -0.71787,
-0.715731, -0.713585, -0.711432, -0.709273, -0.707107, -0.704934,
-0.702755, -0.700569, -0.698376, -0.696177, -0.693971, -0.691759,
-0.689541, -0.687315, -0.685084, -0.682846, -0.680601, -0.67835,
-0.676093, -0.673829, -0.671559, -0.669283, -0.667, -0.664711,
-0.662416, -0.660114, -0.657807, -0.655493, -0.653173, -0.650847,
-0.648514, -0.646176, -0.643832, -0.641481, -0.639124, -0.636762,
-0.634393, -0.632019, -0.629638, -0.627252, -0.624859, -0.622461,
-0.620057, -0.617647, -0.615232, -0.61281, -0.610383, -0.60795,
-0.605511, -0.603067, -0.600616, -0.598161, -0.595699, -0.593232,
-0.59076, -0.588282, -0.585798, -0.583309, -0.580814, -0.578314,
-0.575808, -0.573297, -0.570781, -0.568259, -0.565732, -0.563199,
-0.560662, -0.558119, -0.55557, -0.553017, -0.550458, -0.547894,
-0.545325, -0.542751, -0.540171, -0.537587, -0.534998, -0.532403,
-0.529804, -0.527199, -0.52459, -0.521975, -0.519356, -0.516732,
-0.514103, -0.511469, -0.50883, -0.506187, -0.503538, -0.500885,
-0.498228, -0.495565, -0.492898, -0.490226, -0.48755, -0.484869,
-0.482184, -0.479494, -0.476799, -0.4741, -0.471397, -0.468689,
-0.465976, -0.46326, -0.460539, -0.457813, -0.455084, -0.45235,
-0.449611, -0.446869, -0.444122, -0.441371, -0.438616, -0.435857,
-0.433094, -0.430326, -0.427555, -0.42478, -0.422, -0.419217,
-0.41643, -0.413638, -0.410843, -0.408044, -0.405241, -0.402435,
-0.399624, -0.39681, -0.393992, -0.39117, -0.388345, -0.385516,
-0.382683, -0.379847, -0.377007, -0.374164, -0.371317, -0.368467,
-0.365613, -0.362756, -0.359895, -0.357031, -0.354164, -0.351293,
-0.348419, -0.345541, -0.342661, -0.339777, -0.33689, -0.334,
-0.331106, -0.32821, -0.32531, -0.322408, -0.319502, -0.316593,
-0.313682, -0.310767, -0.30785, -0.304929, -0.302006, -0.29908,
-0.296151, -0.293219, -0.290285, -0.287347, -0.284408, -0.281465,
-0.27852, -0.275572, -0.272621, -0.269668, -0.266713, -0.263755,
-0.260794, -0.257831, -0.254866, -0.251898, -0.248928, -0.245955,
-0.24298, -0.240003, -0.237024, -0.234042, -0.231058, -0.228072,
-0.225084, -0.222094, -0.219101, -0.216107, -0.21311, -0.210112,
-0.207111, -0.204109, -0.201105, -0.198098, -0.19509, -0.19208,
-0.189069, -0.186055, -0.18304, -0.180023, -0.177004, -0.173984,
-0.170962, -0.167938, -0.164913, -0.161886, -0.158858, -0.155828,
-0.152797, -0.149765, -0.14673, -0.143695, -0.140658, -0.13762,
-0.134581, -0.13154, -0.128498, -0.125455, -0.122411, -0.119365,
-0.116319, -0.113271, -0.110222, -0.107172, -0.104122, -0.10107,
-0.0980171, -0.0949635, -0.091909, -0.0888536, -0.0857973, -0.0827403,
-0.0796824, -0.0766239, -0.0735646, -0.0705046, -0.0674439, -0.0643826,
-0.0613207, -0.0582583, -0.0551952, -0.0521317, -0.0490677, -0.0460032,
-0.0429383, -0.0398729, -0.0368072, -0.0337412, -0.0306748, -0.0276081,
-0.0245412, -0.0214741, -0.0184067, -0.0153392, -0.0122715, -0.00920375,
-0.00613588, -0.00306796
};
static const float *WAVE_SQUARES[DEFAULT_OCTAVES] = {
WAVE_SQUARE_000, WAVE_SQUARE_006, WAVE_SQUARE_018,
WAVE_SQUARE_030, WAVE_SQUARE_042, WAVE_SQUARE_054,
WAVE_SQUARE_066, WAVE_SQUARE_078, WAVE_SQUARE_090,
WAVE_SQUARE_102, WAVE_SQUARE_114, WAVE_SQUARE_126
};
|
jimd1989/boar
|
src/constants/maximums.h
|
/* Defines constant maximum values of various variables, used to bound
* certain operations */
#pragma once
/* The maximum sample rate allowed */
#define MAX_RATE 384000
/* The maximum polyphony allowed */
#define MAX_POLYPHONY 128
/* The maximum command line flag length (currently "polyphony") */
#define MAX_FLAG_LEN 10
/* The maximum amount of time, in seconds, an envelope stage runs for */
#define MAX_ENV_TIME 10.0f
/* The final index of a wavetable. */
#define MAX_WAVE_INDEX 2047
/* The smallest float value. Used to avoid zeroes. */
#define MIN_FLOAT 0.000001f
/* The maximum MIDI parameter value */
#define MAX_MIDI_VALUE 127
|
jimd1989/boar
|
src/audio-settings.h
|
<reponame>jimd1989/boar
#pragma once
#include "constants/errors.h"
typedef struct AudioSettings {
/* Contains all the constant settings that govern audio playback. Some
* fields in this struct do not have to be referenced after initializing the
* handle to the soundcard, but they are kept here in case future iterations
* of this code need to make use of any of them. Other structs might contain
* pointers to or local copies of these read-only values. */
unsigned int Bits;
unsigned int BufSizeFrames;
unsigned int Rate;
unsigned int Polyphony;
} AudioSettings;
void makeAudioSettings(AudioSettings *, const int, char **);
|
jimd1989/boar
|
src/parse.c
|
<filename>src/parse.c
/* Parses text from stdin into proper boar commands and their arguments. boar
* functions are always monadic or niladic, and expect an argument of a
* specific type. Numerical parameters can be cast from ints to floats, and
* vice-versa. Please read "types.h" for more information. */
#include <ctype.h>
#include <err.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include "parse.h"
#include "constants/defaults.h"
#include "constants/errors.h"
#include "constants/types.h"
static int readArg(unsigned int *, char *);
static bool isValidArg(const unsigned int, const unsigned int);
static int parseFunc(Cmd *, char *);
static void parseArg(Cmd *, const unsigned int, char *);
static char * printArg(unsigned int);
static int flushCmd(char *);
#define ACTIVATE_FLAG(n, x) (n | x)
#define IS_FLAG_ACTIVE(n, x) ((bool)(n & x))
#define IS_DELIMETER(c) (c == ';' || c == '\n' || c == '\0')
static int
readArg(unsigned int *t, char *line) {
/* Reads a line of input, and engages relevant TYPE_FLAG_* bits of t based upon
* characters it encounters. It will not break early even if contradictory
* flags are engaged. The task of actually making sense of the returned type
* value falls upon isValidArg(). Adds a null terminator to the delimeter index
* so that the argument can be parsed even if more commands were issued on the
* same line. Returns number of bytes read, including the delimeter, to aid in
* further parsing. */
int span = 0;
*t = TYPE_NIL;
while (!IS_DELIMETER(*line)) {
if (isblank((int)*line)) {
;
} else if (*line == '-') {
*t = ACTIVATE_FLAG(*t, TYPE_FLAG_SIGNED);
}else if (*line == '.') {
*t = ACTIVATE_FLAG(*t, TYPE_FLAG_FLOATING);
} else if (isdigit((int)*line)) {
*t = ACTIVATE_FLAG(*t, TYPE_FLAG_NUMBER);
} else if (isalpha((int)*line)) {
*t = ACTIVATE_FLAG(*t, TYPE_FLAG_TEXT);
} else {
*t = ACTIVATE_FLAG(*t, TYPE_FLAG_MISC);
}
line++;
span++;
}
if (*line == '\0') {
return span;
} else {
*line = '\0';
return ++span;
}
}
static bool
isValidArg(const unsigned int expected, const unsigned int t) {
/* Compares a parsed type against an expected type, and determines if they
* match one another. There are various instances where slightly different
* types can still be a valid combination. */
if (t == TYPE_NIL && expected != TYPE_NIL) {
return false;
}
if (expected == t || expected == TYPE_ANY) {
return true;
}
if (IS_FLAG_ACTIVE(t, TYPE_FLAG_MISC)) {
/* All non-alphanumeric characters are unacceptable unless the expected
* type is TYPE_ANY. */
return false;
}
if (IS_FLAG_ACTIVE(t, TYPE_FLAG_SIGNED) &&
(expected == TYPE_UFLOAT || expected == TYPE_UINT)) {
/* A negative value cannot satisfy functions that expect unipolar
* integers and floats. */
return false;
}
if (IS_FLAG_ACTIVE(t, TYPE_FLAG_TEXT) && t != TYPE_TEXT) {
/* TYPE_TEXT only expects alphabetical characters. */
return false;
}
if ((IS_FLAG_ACTIVE(t, TYPE_FLAG_NUMBER) && expected == TYPE_TEXT) ||
(IS_FLAG_ACTIVE(t, TYPE_FLAG_TEXT) &&
IS_FLAG_ACTIVE(expected, TYPE_FLAG_NUMBER))) {
/* Numerical characters and alphabetical characters cannot intermingle
* unless the expected type is TYPE_ANY. */
return false;
}
if (t != TYPE_NIL && expected == TYPE_NIL) {
/* It's most likely needlessly pedantic, as arguments can simply be
* ignored, but TYPE_NIL demands no arguments whatsoever. */
return false;
}
return true;
}
static int
parseFunc(Cmd *c, char *line) {
/* Populates a Cmd struct with the Func and Type of the command depicted in
* line. Returns the length of command (and trailing whitespace) to aid further
* parsing. Returns -1 if the command is invalid, but the success of this
* operation is checked with Cmd.Error. */
int span = 1;
unsigned int type = TYPE_UNDEFINED;
unsigned int typeIndex = 26; /* defaults to always undefined index */
for (; isblank((int)*line); line++, span++) {
/* chew up any leading whitespace before command */
;
}
if (!isalpha((int)line[0])) {
c->Error = ERROR_FUNCTION;
return -1;
}
typeIndex = line[0] - DEFAULT_ASCII_A;
if (typeIndex > 57) {
/* prevent out of bounds access */
c->Error = ERROR_FUNCTION;
return -1;
}
switch (line[1]) {
case '.':
type = TYPE_SIGNATURES_PERIOD[typeIndex];
c->Func = typeIndex | TYPE_PERIOD;
span++;
break;
case ':':
type = TYPE_SIGNATURES_COLON[typeIndex];
c->Func = typeIndex | TYPE_COLON;
span++;
break;
default:
type = TYPE_SIGNATURES_PURE[typeIndex];
c->Func = typeIndex;
}
if (type == TYPE_UNDEFINED) {
c->Error = ERROR_FUNCTION;
return -1;
}
c->Type = type;
for (line += 2; isblank((int)*line); line++, span++) {
/* chew up any trailing whitespace after command */
;
}
return span;
}
static void
parseArg(Cmd *c, const unsigned int t, char *line) {
/* After isValidArg() has ruled out any contradictory type flags, parseArg()
* reads the user input into an actual numerical value that can be used by
* boar commands. Floats and ints can be cast to one another to meet function
* argument expectations.*/
if (IS_FLAG_ACTIVE(t, TYPE_FLAG_FLOATING) &&
(! IS_FLAG_ACTIVE(c->Type, TYPE_FLAG_FLOATING)) &&
(c->Type != TYPE_ANY)) {
/* If an integer is c->Type but a float is provided, the float is
* truncated and converted to an int. */
if (sscanf(line, "%f", &c->Arg.F) == 0) {
c->Error = ERROR_INPUT;
}
c->Arg.I = floorf(c->Arg.F);
} else if (IS_FLAG_ACTIVE(c->Type, TYPE_FLAG_FLOATING)) {
if (sscanf(line, "%f", &c->Arg.F) == 0) {
c->Error = ERROR_INPUT;
}
} else if (IS_FLAG_ACTIVE(c->Type, TYPE_FLAG_NUMBER)) {
if (sscanf(line, "%d", &c->Arg.I) == 0) {
c->Error = ERROR_INPUT;
}
} else {
/* "line" is the REPL's buffer. Because no value of Cmd.Arg needs to live
* in long-term memory, it is acceptable to point Cmd.Arg.S directly to
* the buffer, which is guaranteed not be overwritten during the lifetime
* of function evaluation. */
c->Arg.S = line;
}
}
static int
flushCmd(char *line) {
/* If user input does not represent a valid command, iterate until a delimeter
* is encountered without any further parsing. Return number of bytes so the
* parser can skip over these garbage inputs. */
int span = 0;
while (!IS_DELIMETER(*line)) {
line++;
span++;
}
return ++span;
}
int
parseCmd(Cmd *c, char *line) {
/* Reads a single command worth of user input into a Cmd struct, along with any
* errors it encounters. Returns the number of bytes read, including the
* delimeter, to aid in the parsing of other commands issued on the same
* line. */
int span = 0;
unsigned int t = TYPE_UNDEFINED;
c->Error = ERROR_OK;
span = parseFunc(c, line);
if (c->Error != ERROR_OK) {
span = flushCmd(line);
return span;
}
line += span;
span += readArg(&t, line);
if (!isValidArg(c->Type, t)) {
warnx("Invalid argument %s. Expected %s, got %s", line,
printArg(c->Type), printArg(t));
c->Error = ERROR_ARG;
return span;
}
parseArg(c, t, line);
return span;
}
static char *
printArg(unsigned int t) {
/* Returns TYPE_* in plaintext for error messages. */
switch (t) {
case TYPE_NIL:
return "nil";
case TYPE_UINT:
return "unipolar int";
case TYPE_INT:
return "bipolar int";
case TYPE_UFLOAT:
return "unipolar float";
case TYPE_FLOAT:
return "bipolar float";
case TYPE_TEXT:
return "char";
default:
return "generic text";
}
}
|
jimd1989/boar
|
src/synthesis.h
|
<gh_stars>1-10
#pragma once
#include "envelope.h"
#include "wave.h"
typedef struct Osc {
/* The primitive sound generating type. For every sound sample value generated,
* Osc.Phase is incremented by Osc.Pitch, which serves as the index of
* WAVE_SINE where the sample resides. Osc.Amplitude governs the depth of
* modulation or the volume of the note, depending upon whether Osc is a
* modulator or carrier. Osc.KeyMod is the aggregate values of the velocity
* and key follow settings of the struck key that engaged the Osc. At step i of
* every buffer-filling cycle, Osc.Phase * Osc.Amplitude * Osc.KeyMod is
* written to Osc.Buffer[i]. */
float KeyMod;
float Amplitude;
float Phase;
float Pitch;
float * Buffer;
Wave * Wave;
} Osc;
typedef struct Operator {
/* Couples an Osc with an Env for organization's sake. Contains pointers to
* values in a parent Operators struct, which govern the fixed rate and pitch
* ratio values of the Operator. */
float * FixedRate;
float * Ratio;
Osc Osc;
Env Env;
} Operator;
typedef struct Operators {
/* A master Operator that contains the wave and envelope settings that
* individual child Operators point to. No oscillator information is contained
* here, as that is decided on a Voice by Voice basis. */
float FixedRate;
float Ratio;
Wave Wave;
Envs Env;
} Operators;
void setPitch(Operator *, const unsigned int, const unsigned int);
void fillCarrierBuffer(Operator *, Operator *m);
|
jimd1989/boar
|
src/wave.h
|
<reponame>jimd1989/boar
#pragma once
#include "noise.h"
typedef enum WaveType {
/* The type of a wave. */
WAVE_TYPE_FLAT = 0,
WAVE_TYPE_SINE,
WAVE_TYPE_SQUARE,
WAVE_TYPE_TRIANGLE,
WAVE_TYPE_SAW,
WAVE_TYPE_EXPONENTIAL,
WAVE_TYPE_LOGARITHMIC,
WAVE_TYPE_NOISE
} WaveType;
typedef struct Wave {
/* A wrapper around the actual wavetable with type information. Wave. Polarity
* marks the direction a wavetable should be read in. */
float Polarity;
WaveType Type;
const float ** Table;
Noise Noise;
} Wave;
void selectWave(Wave *, const int);
float interpolateCycle(const Wave *, const float);
|
jimd1989/boar
|
src/buffers.c
|
/* Functions that initialize, fill, and clear buffer types. Initialization
* errors are fatal. */
#include <err.h>
#include <stdlib.h>
#include "buffers.h"
#include "constants/defaults.h"
#include "constants/errors.h"
Buffer
makeBuffer(const size_t size) {
/* Sets Buffer size constants, and allocates Output array. */
Buffer b = {0};
b.SizeFrames = size;
b.SizeBytes = size * DEFAULT_CHAN * DEFAULT_BYTES;
b.Output = malloc(sizeof(*b.Output) * b.SizeBytes);
if (b.Output == NULL) {
errx(ERROR_ALLOC, "Error initializing audio buffer");
}
return b;
}
void
killBuffer(Buffer *b) {
/* Free the Buffer's Output array allocation. */
free(b->Output);
}
|
jimd1989/boar
|
src/main.c
|
/* Initializes the Audio struct, then starts a REPL to accept user input. */
#include "audio-init.h"
#include "audio-output.h"
#include "repl.h"
int main(int argc, char **argv) {
Audio a = {{0}};
Repl r = {{0}};
makeAudio(&a, argc, argv);
r.Audio = &a;
repl(&r);
killAudio(&a);
return 0;
}
|
jimd1989/boar
|
src/amplitude.h
|
#pragma once
typedef struct Amplitude {
/* Amplitudes for master output, as well as left/right channel balance. */
float L;
float Master;
float R;
} Amplitude;
Amplitude makeAmplitude(void);
void setBalance(Amplitude *, const float);
void setVolume(Amplitude *, const float);
|
jimd1989/boar
|
src/audio-settings.c
|
<gh_stars>1-10
/* Functions for parsing command-line flags and assigning them to the
* AudioSettings type, which serves as a read-only record of playback
* information. */
#include <err.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "audio-settings.h"
#include "constants/defaults.h"
#include "constants/errors.h"
#include "constants/maximums.h"
static bool isFlag(const char *, const char *);
static void parseFlag(const char *, const char *, const unsigned int,
const unsigned int, unsigned int *);
static bool
isFlag(const char *arg, const char *flag) {
/* Returns a boolean value indicating if arg matches flag. */
const size_t l1 = strnlen(arg, MAX_FLAG_LEN);
const size_t l2 = strnlen(flag, MAX_FLAG_LEN);
if (l1 != l2) {
return false;
}
return ! strncmp(arg, flag, l1);
}
static void
parseFlag(const char *flag, const char *val, const unsigned int min,
const unsigned int max, unsigned int *field) {
/* Changes flag's value to integer and assigns it to field. */
*field = strtonum(val, min, max, NULL);
if (! *field) {
errx(ERROR_ARG, "invalid value for %s", flag);
}
}
void
makeAudioSettings(AudioSettings *aos, const int argc, char **argv) {
/* Parses user flags into AudioSettings struct. Errors are fatal. */
int i = 1;
char *arg = NULL;
aos->Bits = DEFAULT_BITS;
aos->BufSizeFrames = DEFAULT_BUFSIZE;
aos->Rate = DEFAULT_RATE;
aos->Polyphony = DEFAULT_POLYPHONY;
for (; i < argc ; i++) {
arg = argv[i];
if (isFlag(arg, "-rate") && i+1 < argc) {
parseFlag(arg, argv[++i], 1, MAX_RATE, &aos->Rate);
} else if (isFlag(arg, "-polyphony") && i+1 < argc) {
parseFlag(arg, argv[++i], 1, MAX_POLYPHONY, &aos->Polyphony);
} else {
errx(ERROR_ARG, "Malformed parameter: %s", arg);
}
}
}
|
jimd1989/boar
|
src/constants/types.h
|
# pragma once
/* TYPE_FLAG_* is an individual bit that is set when parsing a string of user
* input. This input can have multiple attributes, such as being negative and
* a floating point number, so different combinations of engaged bits will
* describe the full nature of the input's type. */
/* Engaged when a numerical value (0 ... 9) is encountered. */
#define TYPE_FLAG_NUMBER (unsigned int)(1 << 0)
/* Engaged when a decimal (.) is encountered. */
#define TYPE_FLAG_FLOATING (unsigned int)(1 << 1)
/* Engaged when a negative sign (-) is encountered. */
#define TYPE_FLAG_SIGNED (unsigned int)(1 << 2)
/* Engaged when an alphabetic character (A ... z) is encountered. */
#define TYPE_FLAG_TEXT (unsigned int)(1 << 3)
/* Engaged when any other character is encountered. */
#define TYPE_FLAG_MISC (unsigned int)(1 << 4)
/* TYPE_* is a composite value of TYPE_FLAG_* values. These are the values that
* define the type signatures of boar's functions. */
/* No argument whatsoever. */
#define TYPE_NIL (unsigned int)0
/* An integer n, where n >= 0. */
#define TYPE_UINT TYPE_FLAG_NUMBER
/* A positive or negative integer. */
#define TYPE_INT (TYPE_FLAG_NUMBER | TYPE_FLAG_SIGNED)
/* A float n, where n >= 0.0. */
#define TYPE_UFLOAT (TYPE_FLAG_NUMBER | TYPE_FLAG_FLOATING)
/* A positive or negative float. */
#define TYPE_FLOAT (TYPE_FLAG_NUMBER | TYPE_FLAG_SIGNED | TYPE_FLAG_FLOATING)
/* A line of text made up exclusively of alphabetic characters and whitespace.
* No digits or symbols are permitted. In almost all cases, only the first
* character is relevant, making this more of a char type. */
#define TYPE_TEXT TYPE_FLAG_TEXT
/* A placeholder used to signify that a function and argument have yet to be
* defined for a command character. This is given a high bit value to
* segregate it from the bits used in parsing. */
#define TYPE_UNDEFINED (unsigned int)(1 << 31)
/* Signifies that any and all input is valid for a function. */
#define TYPE_ANY (unsigned int)(1 << 30)
/* A command with no adornment */
#define TYPE_NORMAL 0
/* A command with a "." adornment */
#define TYPE_PERIOD (unsigned int)(1 << 7)
/* A command with a ":" adornment */
#define TYPE_COLON (unsigned int)(1 << 8)
/* An array of expected argument types for commands with an unadorned
* character such as (a), (d), etc */
static const unsigned int TYPE_SIGNATURES_PURE[58] = {
TYPE_UFLOAT, /* A */
TYPE_UNDEFINED, /* B */
TYPE_UNDEFINED, /* C */
TYPE_UFLOAT, /* D */
TYPE_UNDEFINED, /* E */
TYPE_UNDEFINED, /* F */
TYPE_UNDEFINED, /* G */
TYPE_UNDEFINED, /* H */
TYPE_UNDEFINED, /* I */
TYPE_UNDEFINED, /* J */
TYPE_INT, /* K */
TYPE_UFLOAT, /* L */
TYPE_UNDEFINED, /* M */
TYPE_UNDEFINED, /* N */
TYPE_UNDEFINED, /* O */
TYPE_UFLOAT, /* P */
TYPE_UNDEFINED, /* Q */
TYPE_UFLOAT, /* R */
TYPE_UFLOAT, /* S */
TYPE_INT, /* T */
TYPE_UINT, /* U */
TYPE_UNDEFINED, /* V */
TYPE_INT, /* W */
TYPE_UFLOAT, /* X */
TYPE_UNDEFINED, /* Y */
TYPE_UNDEFINED, /* Z */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* ignored */
TYPE_UFLOAT, /* a */
TYPE_UFLOAT, /* b */
TYPE_UNDEFINED, /* c */
TYPE_UFLOAT, /* d */
TYPE_UNDEFINED, /* e */
TYPE_UNDEFINED, /* f */
TYPE_UNDEFINED, /* g */
TYPE_UNDEFINED, /* h */
TYPE_UNDEFINED, /* i */
TYPE_UNDEFINED, /* j */
TYPE_INT, /* k */
TYPE_UFLOAT, /* l */
TYPE_UNDEFINED, /* m */
TYPE_UINT, /* n */
TYPE_UINT, /* o */
TYPE_UFLOAT, /* p */
TYPE_NIL, /* q */
TYPE_UFLOAT, /* r */
TYPE_UFLOAT, /* s */
TYPE_INT, /* t */
TYPE_UFLOAT, /* u */
TYPE_UNDEFINED, /* v */
TYPE_INT, /* w */
TYPE_UFLOAT, /* x */
TYPE_UNDEFINED, /* y */
TYPE_UNDEFINED, /* z */
};
/* An array of expected argument types for commands with period-adorned
* characters such as (a.), (d.), etc */
static const unsigned int TYPE_SIGNATURES_PERIOD[58] = {
TYPE_INT, /* A. */
TYPE_UNDEFINED, /* B. */
TYPE_UNDEFINED, /* C. */
TYPE_INT, /* D. */
TYPE_UNDEFINED, /* E. */
TYPE_UNDEFINED, /* F. */
TYPE_UNDEFINED, /* G. */
TYPE_UNDEFINED, /* H. */
TYPE_UNDEFINED, /* I. */
TYPE_UNDEFINED, /* J. */
TYPE_UNDEFINED, /* K. */
TYPE_UNDEFINED, /* L. */
TYPE_UNDEFINED, /* M. */
TYPE_UNDEFINED, /* N. */
TYPE_UNDEFINED, /* O. */
TYPE_UNDEFINED, /* P. */
TYPE_UNDEFINED, /* Q. */
TYPE_INT, /* R. */
TYPE_UFLOAT, /* S. */
TYPE_UNDEFINED, /* T. */
TYPE_UNDEFINED, /* U. */
TYPE_UNDEFINED, /* V. */
TYPE_UNDEFINED, /* W. */
TYPE_UNDEFINED, /* X. */
TYPE_UNDEFINED, /* Y. */
TYPE_UNDEFINED, /* Z. */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* ignored */
TYPE_INT, /* a. */
TYPE_UNDEFINED, /* b. */
TYPE_UNDEFINED, /* c. */
TYPE_INT, /* d. */
TYPE_UNDEFINED, /* e. */
TYPE_UNDEFINED, /* f. */
TYPE_UNDEFINED, /* g. */
TYPE_UNDEFINED, /* h. */
TYPE_UNDEFINED, /* i. */
TYPE_UNDEFINED, /* j. */
TYPE_UNDEFINED, /* k. */
TYPE_UNDEFINED, /* l. */
TYPE_UNDEFINED, /* m. */
TYPE_UNDEFINED, /* n. */
TYPE_UNDEFINED, /* o. */
TYPE_UNDEFINED, /* p. */
TYPE_UNDEFINED, /* q. */
TYPE_INT, /* r. */
TYPE_UFLOAT, /* s. */
TYPE_UNDEFINED, /* t. */
TYPE_INT, /* u. */
TYPE_UNDEFINED, /* v. */
TYPE_UNDEFINED, /* w. */
TYPE_UNDEFINED, /* x. */
TYPE_UNDEFINED, /* y. */
TYPE_UNDEFINED, /* z. */
};
/* An array of expected argument types for commands with colon-adorned
* characters such as (a:), (d:), etc */
static const unsigned int TYPE_SIGNATURES_COLON[58] = {
TYPE_UNDEFINED, /* A: */
TYPE_UNDEFINED, /* B: */
TYPE_UNDEFINED, /* C: */
TYPE_UINT, /* D: */
TYPE_UNDEFINED, /* E: */
TYPE_UNDEFINED, /* F: */
TYPE_UNDEFINED, /* G: */
TYPE_UNDEFINED, /* H: */
TYPE_UNDEFINED, /* I: */
TYPE_UNDEFINED, /* J: */
TYPE_UNDEFINED, /* K: */
TYPE_UNDEFINED, /* L: */
TYPE_UNDEFINED, /* M: */
TYPE_UNDEFINED, /* N: */
TYPE_UNDEFINED, /* O: */
TYPE_UNDEFINED, /* P: */
TYPE_UNDEFINED, /* Q: */
TYPE_UNDEFINED, /* R: */
TYPE_UNDEFINED, /* S: */
TYPE_UNDEFINED, /* T: */
TYPE_UNDEFINED, /* U: */
TYPE_UNDEFINED, /* V: */
TYPE_UNDEFINED, /* W: */
TYPE_UNDEFINED, /* X: */
TYPE_UNDEFINED, /* Y: */
TYPE_UNDEFINED, /* Z: */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* ignored */
TYPE_UNDEFINED, /* a: */
TYPE_UNDEFINED, /* b: */
TYPE_UNDEFINED, /* c: */
TYPE_UINT, /* d: */
TYPE_UNDEFINED, /* e: */
TYPE_UNDEFINED, /* f: */
TYPE_UNDEFINED, /* g: */
TYPE_UNDEFINED, /* h: */
TYPE_UNDEFINED, /* i: */
TYPE_UNDEFINED, /* j: */
TYPE_UNDEFINED, /* k: */
TYPE_UNDEFINED, /* l: */
TYPE_UNDEFINED, /* m: */
TYPE_UNDEFINED, /* n: */
TYPE_UNDEFINED, /* o: */
TYPE_UNDEFINED, /* p: */
TYPE_UNDEFINED, /* q: */
TYPE_UNDEFINED, /* r: */
TYPE_UNDEFINED, /* s: */
TYPE_UNDEFINED, /* t: */
TYPE_UNDEFINED, /* u: */
TYPE_UNDEFINED, /* v: */
TYPE_UNDEFINED, /* w: */
TYPE_UNDEFINED, /* x: */
TYPE_UNDEFINED, /* y: */
TYPE_UNDEFINED, /* z: */
};
|
jimd1989/boar
|
src/wavetables/triangle.h
|
<filename>src/wavetables/triangle.h<gh_stars>1-10
/* A triangle wave. */
#pragma once
#include "../constants/defaults.h"
static const float WAVE_TRIANGLE_000[DEFAULT_WAVELEN] = {
0, 0.00195338, 0.00390682, 0.00586014, 0.00781363, 0.00976693,
0.0117204, 0.0136738, 0.0156271, 0.0175806, 0.0195339, 0.0214874,
0.0234407, 0.0253942, 0.0273475, 0.0293009, 0.0312543, 0.0332077,
0.0351611, 0.0371145, 0.0390679, 0.0410213, 0.0429747, 0.0449281,
0.0468814, 0.0488349, 0.0507882, 0.0527417, 0.054695, 0.0566485,
0.0586018, 0.0605552, 0.0625087, 0.064462, 0.0664155, 0.0683688,
0.0703222, 0.0722756, 0.074229, 0.0761824, 0.0781357, 0.0800892,
0.0820425, 0.083996, 0.0859493, 0.0879028, 0.0898562, 0.0918095,
0.093763, 0.0957163, 0.0976698, 0.0996231, 0.101577, 0.10353,
0.105483, 0.107437, 0.10939, 0.111344, 0.113297, 0.11525,
0.117204, 0.119157, 0.121111, 0.123064, 0.125017, 0.126971,
0.128924, 0.130877, 0.132831, 0.134784, 0.136738, 0.138691,
0.140644, 0.142598, 0.144551, 0.146505, 0.148458, 0.150411,
0.152365, 0.154318, 0.156272, 0.158225, 0.160178, 0.162132,
0.164085, 0.166039, 0.167992, 0.169945, 0.171899, 0.173852,
0.175806, 0.177759, 0.179712, 0.181666, 0.183619, 0.185572,
0.187526, 0.189479, 0.191433, 0.193386, 0.195339, 0.197293,
0.199246, 0.2012, 0.203153, 0.205106, 0.20706, 0.209013,
0.210967, 0.21292, 0.214873, 0.216827, 0.21878, 0.220734,
0.222687, 0.22464, 0.226594, 0.228547, 0.230501, 0.232454,
0.234407, 0.236361, 0.238314, 0.240267, 0.242221, 0.244174,
0.246128, 0.248081, 0.250035, 0.251988, 0.253941, 0.255895,
0.257848, 0.259802, 0.261755, 0.263708, 0.265662, 0.267615,
0.269569, 0.271522, 0.273475, 0.275429, 0.277382, 0.279335,
0.281289, 0.283242, 0.285196, 0.287149, 0.289102, 0.291056,
0.293009, 0.294963, 0.296916, 0.298869, 0.300823, 0.302776,
0.30473, 0.306683, 0.308636, 0.31059, 0.312543, 0.314497,
0.31645, 0.318403, 0.320357, 0.32231, 0.324264, 0.326217,
0.32817, 0.330124, 0.332077, 0.33403, 0.335984, 0.337937,
0.339891, 0.341844, 0.343797, 0.345751, 0.347704, 0.349658,
0.351611, 0.353564, 0.355518, 0.357471, 0.359425, 0.361378,
0.363331, 0.365285, 0.367238, 0.369192, 0.371145, 0.373098,
0.375052, 0.377005, 0.378959, 0.380912, 0.382865, 0.384819,
0.386772, 0.388725, 0.390679, 0.392632, 0.394586, 0.396539,
0.398492, 0.400446, 0.402399, 0.404353, 0.406306, 0.40826,
0.410213, 0.412166, 0.41412, 0.416073, 0.418027, 0.41998,
0.421933, 0.423887, 0.42584, 0.427793, 0.429747, 0.4317,
0.433654, 0.435607, 0.43756, 0.439514, 0.441467, 0.443421,
0.445374, 0.447327, 0.449281, 0.451234, 0.453188, 0.455141,
0.457094, 0.459048, 0.461001, 0.462955, 0.464908, 0.466861,
0.468815, 0.470768, 0.472722, 0.474675, 0.476628, 0.478582,
0.480535, 0.482488, 0.484442, 0.486395, 0.488349, 0.490302,
0.492255, 0.494209, 0.496162, 0.498116, 0.500069, 0.502022,
0.503976, 0.505929, 0.507883, 0.509836, 0.511789, 0.513743,
0.515696, 0.51765, 0.519603, 0.521556, 0.52351, 0.525463,
0.527417, 0.52937, 0.531323, 0.533277, 0.53523, 0.537183,
0.539137, 0.54109, 0.543044, 0.544997, 0.54695, 0.548904,
0.550857, 0.552811, 0.554764, 0.556718, 0.558671, 0.560624,
0.562578, 0.564531, 0.566485, 0.568438, 0.570391, 0.572345,
0.574298, 0.576251, 0.578205, 0.580158, 0.582112, 0.584065,
0.586018, 0.587972, 0.589925, 0.591879, 0.593832, 0.595785,
0.597739, 0.599692, 0.601646, 0.603599, 0.605552, 0.607506,
0.609459, 0.611413, 0.613366, 0.615319, 0.617273, 0.619226,
0.62118, 0.623133, 0.625086, 0.62704, 0.628993, 0.630946,
0.6329, 0.634853, 0.636807, 0.63876, 0.640713, 0.642667,
0.64462, 0.646574, 0.648527, 0.65048, 0.652434, 0.654387,
0.656341, 0.658294, 0.660247, 0.662201, 0.664154, 0.666108,
0.668061, 0.670014, 0.671968, 0.673921, 0.675875, 0.677828,
0.679781, 0.681735, 0.683688, 0.685641, 0.687595, 0.689548,
0.691502, 0.693455, 0.695408, 0.697362, 0.699315, 0.701269,
0.703222, 0.705175, 0.707129, 0.709082, 0.711036, 0.712989,
0.714943, 0.716896, 0.718849, 0.720803, 0.722756, 0.724709,
0.726663, 0.728616, 0.730569, 0.732523, 0.734476, 0.73643,
0.738383, 0.740336, 0.74229, 0.744243, 0.746197, 0.74815,
0.750104, 0.752057, 0.75401, 0.755964, 0.757917, 0.759871,
0.761824, 0.763777, 0.765731, 0.767684, 0.769638, 0.771591,
0.773544, 0.775498, 0.777451, 0.779404, 0.781358, 0.783311,
0.785265, 0.787218, 0.789171, 0.791125, 0.793078, 0.795032,
0.796985, 0.798938, 0.800892, 0.802845, 0.804799, 0.806752,
0.808705, 0.810659, 0.812612, 0.814566, 0.816519, 0.818473,
0.820426, 0.822379, 0.824333, 0.826286, 0.828239, 0.830193,
0.832146, 0.834099, 0.836053, 0.838006, 0.83996, 0.841913,
0.843866, 0.84582, 0.847773, 0.849727, 0.85168, 0.853633,
0.855587, 0.85754, 0.859494, 0.861447, 0.863401, 0.865354,
0.867307, 0.869261, 0.871214, 0.873168, 0.875121, 0.877074,
0.879027, 0.880981, 0.882934, 0.884888, 0.886841, 0.888794,
0.890748, 0.892701, 0.894655, 0.896608, 0.898561, 0.900515,
0.902468, 0.904422, 0.906375, 0.908329, 0.910282, 0.912235,
0.914189, 0.916142, 0.918096, 0.920049, 0.922003, 0.923955,
0.925909, 0.927863, 0.929816, 0.93177, 0.933722, 0.935676,
0.937629, 0.939583, 0.941536, 0.943489, 0.945443, 0.947396,
0.94935, 0.951303, 0.953257, 0.95521, 0.957163, 0.959117,
0.961069, 0.963024, 0.964976, 0.966931, 0.968883, 0.970837,
0.972791, 0.974743, 0.976699, 0.978649, 0.980605, 0.982556,
0.984511, 0.986465, 0.988416, 0.990374, 0.992321, 0.994283,
0.996225, 0.998193, 1, 0.998193, 0.996225, 0.994283,
0.992321, 0.990374, 0.988416, 0.986465, 0.984511, 0.982556,
0.980605, 0.978649, 0.976699, 0.974743, 0.972791, 0.970837,
0.968883, 0.966931, 0.964976, 0.963024, 0.961069, 0.959117,
0.957163, 0.95521, 0.953257, 0.951303, 0.94935, 0.947396,
0.945443, 0.943489, 0.941536, 0.939583, 0.937629, 0.935676,
0.933722, 0.93177, 0.929816, 0.927863, 0.925909, 0.923955,
0.922003, 0.920049, 0.918096, 0.916142, 0.914189, 0.912235,
0.910282, 0.908329, 0.906375, 0.904422, 0.902468, 0.900515,
0.898561, 0.896608, 0.894655, 0.892701, 0.890748, 0.888794,
0.886841, 0.884888, 0.882934, 0.880981, 0.879027, 0.877074,
0.875121, 0.873168, 0.871214, 0.869261, 0.867307, 0.865354,
0.863401, 0.861447, 0.859494, 0.85754, 0.855587, 0.853633,
0.85168, 0.849727, 0.847773, 0.84582, 0.843866, 0.841913,
0.83996, 0.838006, 0.836053, 0.834099, 0.832146, 0.830193,
0.828239, 0.826286, 0.824333, 0.822379, 0.820426, 0.818473,
0.816519, 0.814566, 0.812612, 0.810659, 0.808705, 0.806752,
0.804799, 0.802845, 0.800892, 0.798938, 0.796985, 0.795032,
0.793078, 0.791125, 0.789171, 0.787218, 0.785265, 0.783311,
0.781358, 0.779404, 0.777451, 0.775498, 0.773544, 0.771591,
0.769638, 0.767684, 0.765731, 0.763777, 0.761824, 0.759871,
0.757917, 0.755964, 0.75401, 0.752057, 0.750104, 0.74815,
0.746197, 0.744243, 0.74229, 0.740336, 0.738383, 0.73643,
0.734476, 0.732523, 0.730569, 0.728616, 0.726663, 0.724709,
0.722756, 0.720803, 0.718849, 0.716896, 0.714943, 0.712989,
0.711036, 0.709082, 0.707129, 0.705175, 0.703222, 0.701269,
0.699315, 0.697362, 0.695408, 0.693455, 0.691502, 0.689548,
0.687595, 0.685641, 0.683688, 0.681735, 0.679781, 0.677828,
0.675875, 0.673921, 0.671968, 0.670014, 0.668061, 0.666108,
0.664154, 0.662201, 0.660247, 0.658294, 0.656341, 0.654387,
0.652434, 0.65048, 0.648527, 0.646574, 0.64462, 0.642667,
0.640713, 0.63876, 0.636807, 0.634853, 0.6329, 0.630946,
0.628993, 0.62704, 0.625086, 0.623133, 0.62118, 0.619226,
0.617273, 0.615319, 0.613366, 0.611413, 0.609459, 0.607506,
0.605552, 0.603599, 0.601646, 0.599692, 0.597739, 0.595785,
0.593832, 0.591879, 0.589925, 0.587972, 0.586018, 0.584065,
0.582112, 0.580158, 0.578205, 0.576251, 0.574298, 0.572345,
0.570391, 0.568438, 0.566485, 0.564531, 0.562578, 0.560624,
0.558671, 0.556718, 0.554764, 0.552811, 0.550857, 0.548904,
0.54695, 0.544997, 0.543044, 0.54109, 0.539137, 0.537183,
0.53523, 0.533277, 0.531323, 0.52937, 0.527417, 0.525463,
0.52351, 0.521556, 0.519603, 0.51765, 0.515696, 0.513743,
0.511789, 0.509836, 0.507883, 0.505929, 0.503976, 0.502022,
0.500069, 0.498116, 0.496162, 0.494209, 0.492255, 0.490302,
0.488349, 0.486395, 0.484442, 0.482488, 0.480535, 0.478582,
0.476628, 0.474675, 0.472722, 0.470768, 0.468815, 0.466861,
0.464908, 0.462955, 0.461001, 0.459048, 0.457094, 0.455141,
0.453188, 0.451234, 0.449281, 0.447327, 0.445374, 0.443421,
0.441467, 0.439514, 0.43756, 0.435607, 0.433654, 0.4317,
0.429747, 0.427793, 0.42584, 0.423887, 0.421933, 0.41998,
0.418027, 0.416073, 0.41412, 0.412166, 0.410213, 0.40826,
0.406306, 0.404353, 0.402399, 0.400446, 0.398492, 0.396539,
0.394586, 0.392632, 0.390679, 0.388725, 0.386772, 0.384819,
0.382865, 0.380912, 0.378959, 0.377005, 0.375052, 0.373098,
0.371145, 0.369192, 0.367238, 0.365285, 0.363331, 0.361378,
0.359425, 0.357471, 0.355518, 0.353564, 0.351611, 0.349658,
0.347704, 0.345751, 0.343797, 0.341844, 0.339891, 0.337937,
0.335984, 0.33403, 0.332077, 0.330124, 0.32817, 0.326217,
0.324264, 0.32231, 0.320357, 0.318403, 0.31645, 0.314497,
0.312543, 0.31059, 0.308636, 0.306683, 0.30473, 0.302776,
0.300823, 0.298869, 0.296916, 0.294963, 0.293009, 0.291056,
0.289102, 0.287149, 0.285196, 0.283242, 0.281289, 0.279335,
0.277382, 0.275429, 0.273475, 0.271522, 0.269569, 0.267615,
0.265662, 0.263708, 0.261755, 0.259802, 0.257848, 0.255895,
0.253941, 0.251988, 0.250035, 0.248081, 0.246128, 0.244174,
0.242221, 0.240267, 0.238314, 0.236361, 0.234407, 0.232454,
0.230501, 0.228547, 0.226594, 0.22464, 0.222687, 0.220734,
0.21878, 0.216827, 0.214873, 0.21292, 0.210967, 0.209013,
0.20706, 0.205106, 0.203153, 0.2012, 0.199246, 0.197293,
0.195339, 0.193386, 0.191433, 0.189479, 0.187526, 0.185572,
0.183619, 0.181666, 0.179712, 0.177759, 0.175806, 0.173852,
0.171899, 0.169945, 0.167992, 0.166039, 0.164085, 0.162132,
0.160178, 0.158225, 0.156272, 0.154318, 0.152365, 0.150411,
0.148458, 0.146505, 0.144551, 0.142598, 0.140644, 0.138691,
0.136738, 0.134784, 0.132831, 0.130877, 0.128924, 0.126971,
0.125017, 0.123064, 0.121111, 0.119157, 0.117204, 0.11525,
0.113297, 0.111344, 0.10939, 0.107437, 0.105483, 0.10353,
0.101577, 0.0996231, 0.0976698, 0.0957163, 0.093763, 0.0918095,
0.0898562, 0.0879028, 0.0859493, 0.083996, 0.0820425, 0.0800892,
0.0781357, 0.0761824, 0.074229, 0.0722756, 0.0703222, 0.0683688,
0.0664155, 0.064462, 0.0625087, 0.0605552, 0.0586018, 0.0566485,
0.054695, 0.0527417, 0.0507882, 0.0488349, 0.0468814, 0.0449281,
0.0429747, 0.0410213, 0.0390679, 0.0371145, 0.0351611, 0.0332077,
0.0312543, 0.0293009, 0.0273475, 0.0253942, 0.0234407, 0.0214874,
0.0195339, 0.0175806, 0.0156271, 0.0136738, 0.0117204, 0.00976693,
0.00781363, 0.00586014, 0.00390682, 0.00195338, 0, -0.00195338,
-0.00390682, -0.00586014, -0.00781363, -0.00976693, -0.0117204, -0.0136738,
-0.0156271, -0.0175806, -0.0195339, -0.0214874, -0.0234407, -0.0253942,
-0.0273475, -0.0293009, -0.0312543, -0.0332077, -0.0351611, -0.0371145,
-0.0390679, -0.0410213, -0.0429747, -0.0449281, -0.0468814, -0.0488349,
-0.0507882, -0.0527417, -0.054695, -0.0566485, -0.0586018, -0.0605552,
-0.0625087, -0.064462, -0.0664155, -0.0683688, -0.0703222, -0.0722756,
-0.074229, -0.0761824, -0.0781357, -0.0800892, -0.0820425, -0.083996,
-0.0859493, -0.0879028, -0.0898562, -0.0918095, -0.093763, -0.0957163,
-0.0976698, -0.0996231, -0.101577, -0.10353, -0.105483, -0.107437,
-0.10939, -0.111344, -0.113297, -0.11525, -0.117204, -0.119157,
-0.121111, -0.123064, -0.125017, -0.126971, -0.128924, -0.130877,
-0.132831, -0.134784, -0.136738, -0.138691, -0.140644, -0.142598,
-0.144551, -0.146505, -0.148458, -0.150411, -0.152365, -0.154318,
-0.156272, -0.158225, -0.160178, -0.162132, -0.164085, -0.166039,
-0.167992, -0.169945, -0.171899, -0.173852, -0.175806, -0.177759,
-0.179712, -0.181666, -0.183619, -0.185572, -0.187526, -0.189479,
-0.191433, -0.193386, -0.195339, -0.197293, -0.199246, -0.2012,
-0.203153, -0.205106, -0.20706, -0.209013, -0.210967, -0.21292,
-0.214873, -0.216827, -0.21878, -0.220734, -0.222687, -0.22464,
-0.226594, -0.228547, -0.230501, -0.232454, -0.234407, -0.236361,
-0.238314, -0.240267, -0.242221, -0.244174, -0.246128, -0.248081,
-0.250035, -0.251988, -0.253941, -0.255895, -0.257848, -0.259802,
-0.261755, -0.263708, -0.265662, -0.267615, -0.269569, -0.271522,
-0.273475, -0.275429, -0.277382, -0.279335, -0.281289, -0.283242,
-0.285196, -0.287149, -0.289102, -0.291056, -0.293009, -0.294963,
-0.296916, -0.298869, -0.300823, -0.302776, -0.30473, -0.306683,
-0.308636, -0.31059, -0.312543, -0.314497, -0.31645, -0.318403,
-0.320357, -0.32231, -0.324264, -0.326217, -0.32817, -0.330124,
-0.332077, -0.33403, -0.335984, -0.337937, -0.339891, -0.341844,
-0.343797, -0.345751, -0.347704, -0.349658, -0.351611, -0.353564,
-0.355518, -0.357471, -0.359425, -0.361378, -0.363331, -0.365285,
-0.367238, -0.369192, -0.371145, -0.373098, -0.375052, -0.377005,
-0.378959, -0.380912, -0.382865, -0.384819, -0.386772, -0.388725,
-0.390679, -0.392632, -0.394586, -0.396539, -0.398492, -0.400446,
-0.402399, -0.404353, -0.406306, -0.40826, -0.410213, -0.412166,
-0.41412, -0.416073, -0.418027, -0.41998, -0.421933, -0.423887,
-0.42584, -0.427793, -0.429747, -0.4317, -0.433654, -0.435607,
-0.43756, -0.439514, -0.441467, -0.443421, -0.445374, -0.447327,
-0.449281, -0.451234, -0.453188, -0.455141, -0.457094, -0.459048,
-0.461001, -0.462955, -0.464908, -0.466861, -0.468815, -0.470768,
-0.472722, -0.474675, -0.476628, -0.478582, -0.480535, -0.482488,
-0.484442, -0.486395, -0.488349, -0.490302, -0.492255, -0.494209,
-0.496162, -0.498116, -0.500069, -0.502022, -0.503976, -0.505929,
-0.507883, -0.509836, -0.511789, -0.513743, -0.515696, -0.51765,
-0.519603, -0.521556, -0.52351, -0.525463, -0.527417, -0.52937,
-0.531323, -0.533277, -0.53523, -0.537183, -0.539137, -0.54109,
-0.543044, -0.544997, -0.54695, -0.548904, -0.550857, -0.552811,
-0.554764, -0.556718, -0.558671, -0.560624, -0.562578, -0.564531,
-0.566485, -0.568438, -0.570391, -0.572345, -0.574298, -0.576251,
-0.578205, -0.580158, -0.582112, -0.584065, -0.586018, -0.587972,
-0.589925, -0.591879, -0.593832, -0.595785, -0.597739, -0.599692,
-0.601646, -0.603599, -0.605552, -0.607506, -0.609459, -0.611413,
-0.613366, -0.615319, -0.617273, -0.619226, -0.62118, -0.623133,
-0.625086, -0.62704, -0.628993, -0.630946, -0.6329, -0.634853,
-0.636807, -0.63876, -0.640713, -0.642667, -0.64462, -0.646574,
-0.648527, -0.65048, -0.652434, -0.654387, -0.656341, -0.658294,
-0.660247, -0.662201, -0.664154, -0.666108, -0.668061, -0.670014,
-0.671968, -0.673921, -0.675875, -0.677828, -0.679781, -0.681735,
-0.683688, -0.685641, -0.687595, -0.689548, -0.691502, -0.693455,
-0.695408, -0.697362, -0.699315, -0.701269, -0.703222, -0.705175,
-0.707129, -0.709082, -0.711036, -0.712989, -0.714943, -0.716896,
-0.718849, -0.720803, -0.722756, -0.724709, -0.726663, -0.728616,
-0.730569, -0.732523, -0.734476, -0.73643, -0.738383, -0.740336,
-0.74229, -0.744243, -0.746197, -0.74815, -0.750104, -0.752057,
-0.75401, -0.755964, -0.757917, -0.759871, -0.761824, -0.763777,
-0.765731, -0.767684, -0.769638, -0.771591, -0.773544, -0.775498,
-0.777451, -0.779404, -0.781358, -0.783311, -0.785265, -0.787218,
-0.789171, -0.791125, -0.793078, -0.795032, -0.796985, -0.798938,
-0.800892, -0.802845, -0.804799, -0.806752, -0.808705, -0.810659,
-0.812612, -0.814566, -0.816519, -0.818473, -0.820426, -0.822379,
-0.824333, -0.826286, -0.828239, -0.830193, -0.832146, -0.834099,
-0.836053, -0.838006, -0.83996, -0.841913, -0.843866, -0.84582,
-0.847773, -0.849727, -0.85168, -0.853633, -0.855587, -0.85754,
-0.859494, -0.861447, -0.863401, -0.865354, -0.867307, -0.869261,
-0.871214, -0.873168, -0.875121, -0.877074, -0.879027, -0.880981,
-0.882934, -0.884888, -0.886841, -0.888794, -0.890748, -0.892701,
-0.894655, -0.896608, -0.898561, -0.900515, -0.902468, -0.904422,
-0.906375, -0.908329, -0.910282, -0.912235, -0.914189, -0.916142,
-0.918096, -0.920049, -0.922003, -0.923955, -0.925909, -0.927863,
-0.929816, -0.93177, -0.933722, -0.935676, -0.937629, -0.939583,
-0.941536, -0.943489, -0.945443, -0.947396, -0.94935, -0.951303,
-0.953257, -0.95521, -0.957163, -0.959117, -0.961069, -0.963024,
-0.964976, -0.966931, -0.968883, -0.970837, -0.972791, -0.974743,
-0.976699, -0.978649, -0.980605, -0.982556, -0.984511, -0.986465,
-0.988416, -0.990374, -0.992321, -0.994283, -0.996225, -0.998193,
-1, -0.998193, -0.996225, -0.994283, -0.992321, -0.990374,
-0.988416, -0.986465, -0.984511, -0.982556, -0.980605, -0.978649,
-0.976699, -0.974743, -0.972791, -0.970837, -0.968883, -0.966931,
-0.964976, -0.963024, -0.961069, -0.959117, -0.957163, -0.95521,
-0.953257, -0.951303, -0.94935, -0.947396, -0.945443, -0.943489,
-0.941536, -0.939583, -0.937629, -0.935676, -0.933722, -0.93177,
-0.929816, -0.927863, -0.925909, -0.923955, -0.922003, -0.920049,
-0.918096, -0.916142, -0.914189, -0.912235, -0.910282, -0.908329,
-0.906375, -0.904422, -0.902468, -0.900515, -0.898561, -0.896608,
-0.894655, -0.892701, -0.890748, -0.888794, -0.886841, -0.884888,
-0.882934, -0.880981, -0.879027, -0.877074, -0.875121, -0.873168,
-0.871214, -0.869261, -0.867307, -0.865354, -0.863401, -0.861447,
-0.859494, -0.85754, -0.855587, -0.853633, -0.85168, -0.849727,
-0.847773, -0.84582, -0.843866, -0.841913, -0.83996, -0.838006,
-0.836053, -0.834099, -0.832146, -0.830193, -0.828239, -0.826286,
-0.824333, -0.822379, -0.820426, -0.818473, -0.816519, -0.814566,
-0.812612, -0.810659, -0.808705, -0.806752, -0.804799, -0.802845,
-0.800892, -0.798938, -0.796985, -0.795032, -0.793078, -0.791125,
-0.789171, -0.787218, -0.785265, -0.783311, -0.781358, -0.779404,
-0.777451, -0.775498, -0.773544, -0.771591, -0.769638, -0.767684,
-0.765731, -0.763777, -0.761824, -0.759871, -0.757917, -0.755964,
-0.75401, -0.752057, -0.750104, -0.74815, -0.746197, -0.744243,
-0.74229, -0.740336, -0.738383, -0.73643, -0.734476, -0.732523,
-0.730569, -0.728616, -0.726663, -0.724709, -0.722756, -0.720803,
-0.718849, -0.716896, -0.714943, -0.712989, -0.711036, -0.709082,
-0.707129, -0.705175, -0.703222, -0.701269, -0.699315, -0.697362,
-0.695408, -0.693455, -0.691502, -0.689548, -0.687595, -0.685641,
-0.683688, -0.681735, -0.679781, -0.677828, -0.675875, -0.673921,
-0.671968, -0.670014, -0.668061, -0.666108, -0.664154, -0.662201,
-0.660247, -0.658294, -0.656341, -0.654387, -0.652434, -0.65048,
-0.648527, -0.646574, -0.64462, -0.642667, -0.640713, -0.63876,
-0.636807, -0.634853, -0.6329, -0.630946, -0.628993, -0.62704,
-0.625086, -0.623133, -0.62118, -0.619226, -0.617273, -0.615319,
-0.613366, -0.611413, -0.609459, -0.607506, -0.605552, -0.603599,
-0.601646, -0.599692, -0.597739, -0.595785, -0.593832, -0.591879,
-0.589925, -0.587972, -0.586018, -0.584065, -0.582112, -0.580158,
-0.578205, -0.576251, -0.574298, -0.572345, -0.570391, -0.568438,
-0.566485, -0.564531, -0.562578, -0.560624, -0.558671, -0.556718,
-0.554764, -0.552811, -0.550857, -0.548904, -0.54695, -0.544997,
-0.543044, -0.54109, -0.539137, -0.537183, -0.53523, -0.533277,
-0.531323, -0.52937, -0.527417, -0.525463, -0.52351, -0.521556,
-0.519603, -0.51765, -0.515696, -0.513743, -0.511789, -0.509836,
-0.507883, -0.505929, -0.503976, -0.502022, -0.500069, -0.498116,
-0.496162, -0.494209, -0.492255, -0.490302, -0.488349, -0.486395,
-0.484442, -0.482488, -0.480535, -0.478582, -0.476628, -0.474675,
-0.472722, -0.470768, -0.468815, -0.466861, -0.464908, -0.462955,
-0.461001, -0.459048, -0.457094, -0.455141, -0.453188, -0.451234,
-0.449281, -0.447327, -0.445374, -0.443421, -0.441467, -0.439514,
-0.43756, -0.435607, -0.433654, -0.4317, -0.429747, -0.427793,
-0.42584, -0.423887, -0.421933, -0.41998, -0.418027, -0.416073,
-0.41412, -0.412166, -0.410213, -0.40826, -0.406306, -0.404353,
-0.402399, -0.400446, -0.398492, -0.396539, -0.394586, -0.392632,
-0.390679, -0.388725, -0.386772, -0.384819, -0.382865, -0.380912,
-0.378959, -0.377005, -0.375052, -0.373098, -0.371145, -0.369192,
-0.367238, -0.365285, -0.363331, -0.361378, -0.359425, -0.357471,
-0.355518, -0.353564, -0.351611, -0.349658, -0.347704, -0.345751,
-0.343797, -0.341844, -0.339891, -0.337937, -0.335984, -0.33403,
-0.332077, -0.330124, -0.32817, -0.326217, -0.324264, -0.32231,
-0.320357, -0.318403, -0.31645, -0.314497, -0.312543, -0.31059,
-0.308636, -0.306683, -0.30473, -0.302776, -0.300823, -0.298869,
-0.296916, -0.294963, -0.293009, -0.291056, -0.289102, -0.287149,
-0.285196, -0.283242, -0.281289, -0.279335, -0.277382, -0.275429,
-0.273475, -0.271522, -0.269569, -0.267615, -0.265662, -0.263708,
-0.261755, -0.259802, -0.257848, -0.255895, -0.253941, -0.251988,
-0.250035, -0.248081, -0.246128, -0.244174, -0.242221, -0.240267,
-0.238314, -0.236361, -0.234407, -0.232454, -0.230501, -0.228547,
-0.226594, -0.22464, -0.222687, -0.220734, -0.21878, -0.216827,
-0.214873, -0.21292, -0.210967, -0.209013, -0.20706, -0.205106,
-0.203153, -0.2012, -0.199246, -0.197293, -0.195339, -0.193386,
-0.191433, -0.189479, -0.187526, -0.185572, -0.183619, -0.181666,
-0.179712, -0.177759, -0.175806, -0.173852, -0.171899, -0.169945,
-0.167992, -0.166039, -0.164085, -0.162132, -0.160178, -0.158225,
-0.156272, -0.154318, -0.152365, -0.150411, -0.148458, -0.146505,
-0.144551, -0.142598, -0.140644, -0.138691, -0.136738, -0.134784,
-0.132831, -0.130877, -0.128924, -0.126971, -0.125017, -0.123064,
-0.121111, -0.119157, -0.117204, -0.11525, -0.113297, -0.111344,
-0.10939, -0.107437, -0.105483, -0.10353, -0.101577, -0.0996231,
-0.0976698, -0.0957163, -0.093763, -0.0918095, -0.0898562, -0.0879028,
-0.0859493, -0.083996, -0.0820425, -0.0800892, -0.0781357, -0.0761824,
-0.074229, -0.0722756, -0.0703222, -0.0683688, -0.0664155, -0.064462,
-0.0625087, -0.0605552, -0.0586018, -0.0566485, -0.054695, -0.0527417,
-0.0507882, -0.0488349, -0.0468814, -0.0449281, -0.0429747, -0.0410213,
-0.0390679, -0.0371145, -0.0351611, -0.0332077, -0.0312543, -0.0293009,
-0.0273475, -0.0253942, -0.0234407, -0.0214874, -0.0195339, -0.0175806,
-0.0156271, -0.0136738, -0.0117204, -0.00976693, -0.00781363, -0.00586014,
-0.00390682, -0.00195338
};
static const float WAVE_TRIANGLE_006[DEFAULT_WAVELEN] = {
0, 0.0019535, 0.003907, 0.0058605, 0.00781399, 0.00976749,
0.011721, 0.0136745, 0.015628, 0.0175815, 0.019535, 0.0214885,
0.023442, 0.0253955, 0.027349, 0.0293025, 0.031256, 0.0332095,
0.035163, 0.0371165, 0.03907, 0.0410235, 0.0429771, 0.0449306,
0.0468841, 0.0488376, 0.0507911, 0.0527446, 0.0546981, 0.0566516,
0.0586051, 0.0605587, 0.0625122, 0.0644657, 0.0664192, 0.0683727,
0.0703262, 0.0722797, 0.0742333, 0.0761868, 0.0781403, 0.0800938,
0.0820473, 0.0840008, 0.0859543, 0.0879078, 0.0898614, 0.0918149,
0.0937684, 0.0957219, 0.0976754, 0.0996289, 0.101582, 0.103536,
0.105489, 0.107443, 0.109396, 0.11135, 0.113303, 0.115257,
0.11721, 0.119164, 0.121117, 0.123071, 0.125024, 0.126978,
0.128931, 0.130885, 0.132838, 0.134792, 0.136745, 0.138699,
0.140652, 0.142606, 0.144559, 0.146513, 0.148466, 0.15042,
0.152373, 0.154327, 0.15628, 0.158234, 0.160187, 0.162141,
0.164094, 0.166048, 0.168001, 0.169955, 0.171908, 0.173862,
0.175815, 0.177769, 0.179722, 0.181676, 0.18363, 0.185583,
0.187537, 0.18949, 0.191444, 0.193397, 0.195351, 0.197304,
0.199258, 0.201211, 0.203165, 0.205118, 0.207072, 0.209025,
0.210979, 0.212932, 0.214886, 0.216839, 0.218793, 0.220746,
0.2227, 0.224653, 0.226607, 0.22856, 0.230514, 0.232467,
0.234421, 0.236374, 0.238328, 0.240281, 0.242235, 0.244188,
0.246142, 0.248095, 0.250049, 0.252002, 0.253956, 0.255909,
0.257863, 0.259816, 0.26177, 0.263723, 0.265677, 0.26763,
0.269584, 0.271537, 0.273491, 0.275444, 0.277398, 0.279351,
0.281305, 0.283258, 0.285212, 0.287165, 0.289119, 0.291072,
0.293026, 0.294979, 0.296933, 0.298886, 0.30084, 0.302793,
0.304747, 0.3067, 0.308654, 0.310607, 0.312561, 0.314514,
0.316468, 0.318421, 0.320375, 0.322328, 0.324282, 0.326235,
0.328189, 0.330142, 0.332096, 0.334049, 0.336003, 0.337957,
0.33991, 0.341864, 0.343817, 0.345771, 0.347724, 0.349678,
0.351631, 0.353585, 0.355538, 0.357492, 0.359445, 0.361399,
0.363352, 0.365306, 0.367259, 0.369213, 0.371166, 0.37312,
0.375073, 0.377027, 0.37898, 0.380934, 0.382887, 0.384841,
0.386794, 0.388748, 0.390701, 0.392655, 0.394608, 0.396562,
0.398515, 0.400469, 0.402422, 0.404376, 0.406329, 0.408283,
0.410236, 0.41219, 0.414143, 0.416097, 0.41805, 0.420004,
0.421957, 0.423911, 0.425864, 0.427818, 0.429771, 0.431725,
0.433678, 0.435632, 0.437585, 0.439539, 0.441492, 0.443446,
0.445399, 0.447353, 0.449306, 0.45126, 0.453213, 0.455167,
0.45712, 0.459074, 0.461027, 0.462981, 0.464934, 0.466888,
0.468841, 0.470795, 0.472748, 0.474702, 0.476655, 0.478609,
0.480562, 0.482516, 0.484469, 0.486423, 0.488377, 0.49033,
0.492284, 0.494237, 0.496191, 0.498144, 0.500098, 0.502051,
0.504005, 0.505958, 0.507912, 0.509865, 0.511819, 0.513772,
0.515726, 0.517679, 0.519633, 0.521586, 0.52354, 0.525493,
0.527447, 0.5294, 0.531354, 0.533307, 0.535261, 0.537214,
0.539168, 0.541121, 0.543075, 0.545028, 0.546982, 0.548935,
0.550889, 0.552842, 0.554796, 0.556749, 0.558703, 0.560656,
0.56261, 0.564563, 0.566517, 0.56847, 0.570424, 0.572377,
0.574331, 0.576284, 0.578238, 0.580191, 0.582145, 0.584098,
0.586052, 0.588005, 0.589959, 0.591912, 0.593866, 0.595819,
0.597773, 0.599726, 0.60168, 0.603633, 0.605587, 0.60754,
0.609494, 0.611447, 0.613401, 0.615354, 0.617308, 0.619261,
0.621215, 0.623168, 0.625122, 0.627075, 0.629029, 0.630982,
0.632936, 0.63489, 0.636843, 0.638797, 0.64075, 0.642704,
0.644657, 0.646611, 0.648564, 0.650518, 0.652471, 0.654425,
0.656378, 0.658332, 0.660285, 0.662239, 0.664192, 0.666146,
0.668099, 0.670053, 0.672006, 0.67396, 0.675913, 0.677867,
0.67982, 0.681774, 0.683727, 0.685681, 0.687634, 0.689588,
0.691541, 0.693495, 0.695448, 0.697402, 0.699355, 0.701309,
0.703262, 0.705216, 0.707169, 0.709123, 0.711076, 0.71303,
0.714983, 0.716937, 0.71889, 0.720844, 0.722797, 0.724751,
0.726704, 0.728658, 0.730611, 0.732565, 0.734518, 0.736472,
0.738425, 0.740379, 0.742332, 0.744286, 0.746239, 0.748193,
0.750146, 0.7521, 0.754053, 0.756007, 0.75796, 0.759914,
0.761867, 0.763821, 0.765774, 0.767728, 0.769681, 0.771635,
0.773588, 0.775542, 0.777495, 0.779449, 0.781402, 0.783356,
0.78531, 0.787263, 0.789217, 0.79117, 0.793124, 0.795077,
0.797031, 0.798984, 0.800938, 0.802891, 0.804845, 0.806798,
0.808752, 0.810705, 0.812659, 0.814612, 0.816566, 0.81852,
0.820473, 0.822427, 0.82438, 0.826334, 0.828287, 0.830241,
0.832194, 0.834148, 0.836101, 0.838055, 0.840008, 0.841961,
0.843915, 0.845868, 0.847822, 0.849775, 0.851729, 0.853682,
0.855636, 0.857589, 0.859543, 0.861496, 0.86345, 0.865403,
0.867357, 0.86931, 0.871264, 0.873217, 0.875171, 0.877124,
0.879077, 0.881031, 0.882984, 0.884938, 0.886891, 0.888845,
0.890798, 0.892752, 0.894705, 0.896659, 0.898612, 0.900566,
0.902519, 0.904473, 0.906426, 0.90838, 0.910333, 0.912287,
0.914241, 0.916194, 0.918148, 0.920101, 0.922055, 0.924008,
0.925962, 0.927916, 0.929869, 0.931823, 0.933776, 0.93573,
0.937683, 0.939637, 0.941591, 0.943544, 0.945498, 0.947451,
0.949405, 0.951359, 0.953312, 0.955266, 0.957219, 0.959173,
0.961127, 0.96308, 0.965034, 0.966987, 0.968941, 0.970895,
0.972848, 0.974802, 0.976755, 0.978709, 0.980662, 0.982616,
0.98457, 0.986523, 0.988477, 0.99043, 0.992383, 0.994336,
0.996289, 0.998236, 1, 0.998236, 0.996289, 0.994336,
0.992383, 0.99043, 0.988477, 0.986523, 0.98457, 0.982616,
0.980662, 0.978709, 0.976755, 0.974802, 0.972848, 0.970895,
0.968941, 0.966987, 0.965034, 0.96308, 0.961127, 0.959173,
0.957219, 0.955266, 0.953312, 0.951359, 0.949405, 0.947451,
0.945498, 0.943544, 0.941591, 0.939637, 0.937683, 0.93573,
0.933776, 0.931823, 0.929869, 0.927916, 0.925962, 0.924008,
0.922055, 0.920101, 0.918148, 0.916194, 0.914241, 0.912287,
0.910333, 0.90838, 0.906426, 0.904473, 0.902519, 0.900566,
0.898612, 0.896659, 0.894705, 0.892752, 0.890798, 0.888845,
0.886891, 0.884938, 0.882984, 0.881031, 0.879077, 0.877124,
0.875171, 0.873217, 0.871264, 0.86931, 0.867357, 0.865403,
0.86345, 0.861496, 0.859543, 0.857589, 0.855636, 0.853682,
0.851729, 0.849775, 0.847822, 0.845868, 0.843915, 0.841961,
0.840008, 0.838055, 0.836101, 0.834148, 0.832194, 0.830241,
0.828287, 0.826334, 0.82438, 0.822427, 0.820473, 0.81852,
0.816566, 0.814612, 0.812659, 0.810705, 0.808752, 0.806798,
0.804845, 0.802891, 0.800938, 0.798984, 0.797031, 0.795077,
0.793124, 0.79117, 0.789217, 0.787263, 0.78531, 0.783356,
0.781402, 0.779449, 0.777495, 0.775542, 0.773588, 0.771635,
0.769681, 0.767728, 0.765774, 0.763821, 0.761867, 0.759914,
0.75796, 0.756007, 0.754053, 0.7521, 0.750146, 0.748193,
0.746239, 0.744286, 0.742332, 0.740379, 0.738425, 0.736472,
0.734518, 0.732565, 0.730611, 0.728658, 0.726704, 0.724751,
0.722797, 0.720844, 0.71889, 0.716937, 0.714983, 0.71303,
0.711076, 0.709123, 0.707169, 0.705216, 0.703262, 0.701309,
0.699355, 0.697402, 0.695448, 0.693495, 0.691541, 0.689588,
0.687634, 0.685681, 0.683727, 0.681774, 0.67982, 0.677867,
0.675913, 0.67396, 0.672006, 0.670053, 0.668099, 0.666146,
0.664192, 0.662239, 0.660285, 0.658332, 0.656378, 0.654425,
0.652471, 0.650518, 0.648564, 0.646611, 0.644657, 0.642704,
0.64075, 0.638797, 0.636843, 0.63489, 0.632936, 0.630982,
0.629029, 0.627075, 0.625122, 0.623168, 0.621215, 0.619261,
0.617308, 0.615354, 0.613401, 0.611447, 0.609494, 0.60754,
0.605587, 0.603633, 0.60168, 0.599726, 0.597773, 0.595819,
0.593866, 0.591912, 0.589959, 0.588005, 0.586052, 0.584098,
0.582145, 0.580191, 0.578238, 0.576284, 0.574331, 0.572377,
0.570424, 0.56847, 0.566517, 0.564563, 0.56261, 0.560656,
0.558703, 0.556749, 0.554796, 0.552842, 0.550889, 0.548935,
0.546982, 0.545028, 0.543075, 0.541121, 0.539168, 0.537214,
0.535261, 0.533307, 0.531354, 0.5294, 0.527447, 0.525493,
0.52354, 0.521586, 0.519633, 0.517679, 0.515726, 0.513772,
0.511819, 0.509865, 0.507912, 0.505958, 0.504005, 0.502051,
0.500098, 0.498144, 0.496191, 0.494237, 0.492284, 0.49033,
0.488377, 0.486423, 0.484469, 0.482516, 0.480562, 0.478609,
0.476655, 0.474702, 0.472748, 0.470795, 0.468841, 0.466888,
0.464934, 0.462981, 0.461027, 0.459074, 0.45712, 0.455167,
0.453213, 0.45126, 0.449306, 0.447353, 0.445399, 0.443446,
0.441492, 0.439539, 0.437585, 0.435632, 0.433678, 0.431725,
0.429771, 0.427818, 0.425864, 0.423911, 0.421957, 0.420004,
0.41805, 0.416097, 0.414143, 0.41219, 0.410236, 0.408283,
0.406329, 0.404376, 0.402422, 0.400469, 0.398515, 0.396562,
0.394608, 0.392655, 0.390701, 0.388748, 0.386794, 0.384841,
0.382887, 0.380934, 0.37898, 0.377027, 0.375073, 0.37312,
0.371166, 0.369213, 0.367259, 0.365306, 0.363352, 0.361399,
0.359445, 0.357492, 0.355538, 0.353585, 0.351631, 0.349678,
0.347724, 0.345771, 0.343817, 0.341864, 0.33991, 0.337957,
0.336003, 0.334049, 0.332096, 0.330142, 0.328189, 0.326235,
0.324282, 0.322328, 0.320375, 0.318421, 0.316468, 0.314514,
0.312561, 0.310607, 0.308654, 0.3067, 0.304747, 0.302793,
0.30084, 0.298886, 0.296933, 0.294979, 0.293026, 0.291072,
0.289119, 0.287165, 0.285212, 0.283258, 0.281305, 0.279351,
0.277398, 0.275444, 0.273491, 0.271537, 0.269584, 0.26763,
0.265677, 0.263723, 0.26177, 0.259816, 0.257863, 0.255909,
0.253956, 0.252002, 0.250049, 0.248095, 0.246142, 0.244188,
0.242235, 0.240281, 0.238328, 0.236374, 0.234421, 0.232467,
0.230514, 0.22856, 0.226607, 0.224653, 0.2227, 0.220746,
0.218793, 0.216839, 0.214886, 0.212932, 0.210979, 0.209025,
0.207072, 0.205118, 0.203165, 0.201211, 0.199258, 0.197304,
0.195351, 0.193397, 0.191444, 0.18949, 0.187537, 0.185583,
0.18363, 0.181676, 0.179722, 0.177769, 0.175815, 0.173862,
0.171908, 0.169955, 0.168001, 0.166048, 0.164094, 0.162141,
0.160187, 0.158234, 0.15628, 0.154327, 0.152373, 0.15042,
0.148466, 0.146513, 0.144559, 0.142606, 0.140652, 0.138699,
0.136745, 0.134792, 0.132838, 0.130885, 0.128931, 0.126978,
0.125024, 0.123071, 0.121117, 0.119164, 0.11721, 0.115257,
0.113303, 0.11135, 0.109396, 0.107443, 0.105489, 0.103536,
0.101582, 0.0996289, 0.0976754, 0.0957219, 0.0937684, 0.0918149,
0.0898614, 0.0879078, 0.0859543, 0.0840008, 0.0820473, 0.0800938,
0.0781403, 0.0761868, 0.0742333, 0.0722797, 0.0703262, 0.0683727,
0.0664192, 0.0644657, 0.0625122, 0.0605587, 0.0586051, 0.0566516,
0.0546981, 0.0527446, 0.0507911, 0.0488376, 0.0468841, 0.0449306,
0.0429771, 0.0410235, 0.03907, 0.0371165, 0.035163, 0.0332095,
0.031256, 0.0293025, 0.027349, 0.0253955, 0.023442, 0.0214885,
0.019535, 0.0175815, 0.015628, 0.0136745, 0.011721, 0.00976749,
0.00781399, 0.0058605, 0.003907, 0.0019535, 0, -0.0019535,
-0.003907, -0.0058605, -0.00781399, -0.00976749, -0.011721, -0.0136745,
-0.015628, -0.0175815, -0.019535, -0.0214885, -0.023442, -0.0253955,
-0.027349, -0.0293025, -0.031256, -0.0332095, -0.035163, -0.0371165,
-0.03907, -0.0410235, -0.0429771, -0.0449306, -0.0468841, -0.0488376,
-0.0507911, -0.0527446, -0.0546981, -0.0566516, -0.0586051, -0.0605587,
-0.0625122, -0.0644657, -0.0664192, -0.0683727, -0.0703262, -0.0722797,
-0.0742333, -0.0761868, -0.0781403, -0.0800938, -0.0820473, -0.0840008,
-0.0859543, -0.0879078, -0.0898614, -0.0918149, -0.0937684, -0.0957219,
-0.0976754, -0.0996289, -0.101582, -0.103536, -0.105489, -0.107443,
-0.109396, -0.11135, -0.113303, -0.115257, -0.11721, -0.119164,
-0.121117, -0.123071, -0.125024, -0.126978, -0.128931, -0.130885,
-0.132838, -0.134792, -0.136745, -0.138699, -0.140652, -0.142606,
-0.144559, -0.146513, -0.148466, -0.15042, -0.152373, -0.154327,
-0.15628, -0.158234, -0.160187, -0.162141, -0.164094, -0.166048,
-0.168001, -0.169955, -0.171908, -0.173862, -0.175815, -0.177769,
-0.179722, -0.181676, -0.18363, -0.185583, -0.187537, -0.18949,
-0.191444, -0.193397, -0.195351, -0.197304, -0.199258, -0.201211,
-0.203165, -0.205118, -0.207072, -0.209025, -0.210979, -0.212932,
-0.214886, -0.216839, -0.218793, -0.220746, -0.2227, -0.224653,
-0.226607, -0.22856, -0.230514, -0.232467, -0.234421, -0.236374,
-0.238328, -0.240281, -0.242235, -0.244188, -0.246142, -0.248095,
-0.250049, -0.252002, -0.253956, -0.255909, -0.257863, -0.259816,
-0.26177, -0.263723, -0.265677, -0.26763, -0.269584, -0.271537,
-0.273491, -0.275444, -0.277398, -0.279351, -0.281305, -0.283258,
-0.285212, -0.287165, -0.289119, -0.291072, -0.293026, -0.294979,
-0.296933, -0.298886, -0.30084, -0.302793, -0.304747, -0.3067,
-0.308654, -0.310607, -0.312561, -0.314514, -0.316468, -0.318421,
-0.320375, -0.322328, -0.324282, -0.326235, -0.328189, -0.330142,
-0.332096, -0.334049, -0.336003, -0.337957, -0.33991, -0.341864,
-0.343817, -0.345771, -0.347724, -0.349678, -0.351631, -0.353585,
-0.355538, -0.357492, -0.359445, -0.361399, -0.363352, -0.365306,
-0.367259, -0.369213, -0.371166, -0.37312, -0.375073, -0.377027,
-0.37898, -0.380934, -0.382887, -0.384841, -0.386794, -0.388748,
-0.390701, -0.392655, -0.394608, -0.396562, -0.398515, -0.400469,
-0.402422, -0.404376, -0.406329, -0.408283, -0.410236, -0.41219,
-0.414143, -0.416097, -0.41805, -0.420004, -0.421957, -0.423911,
-0.425864, -0.427818, -0.429771, -0.431725, -0.433678, -0.435632,
-0.437585, -0.439539, -0.441492, -0.443446, -0.445399, -0.447353,
-0.449306, -0.45126, -0.453213, -0.455167, -0.45712, -0.459074,
-0.461027, -0.462981, -0.464934, -0.466888, -0.468841, -0.470795,
-0.472748, -0.474702, -0.476655, -0.478609, -0.480562, -0.482516,
-0.484469, -0.486423, -0.488377, -0.49033, -0.492284, -0.494237,
-0.496191, -0.498144, -0.500098, -0.502051, -0.504005, -0.505958,
-0.507912, -0.509865, -0.511819, -0.513772, -0.515726, -0.517679,
-0.519633, -0.521586, -0.52354, -0.525493, -0.527447, -0.5294,
-0.531354, -0.533307, -0.535261, -0.537214, -0.539168, -0.541121,
-0.543075, -0.545028, -0.546982, -0.548935, -0.550889, -0.552842,
-0.554796, -0.556749, -0.558703, -0.560656, -0.56261, -0.564563,
-0.566517, -0.56847, -0.570424, -0.572377, -0.574331, -0.576284,
-0.578238, -0.580191, -0.582145, -0.584098, -0.586052, -0.588005,
-0.589959, -0.591912, -0.593866, -0.595819, -0.597773, -0.599726,
-0.60168, -0.603633, -0.605587, -0.60754, -0.609494, -0.611447,
-0.613401, -0.615354, -0.617308, -0.619261, -0.621215, -0.623168,
-0.625122, -0.627075, -0.629029, -0.630982, -0.632936, -0.63489,
-0.636843, -0.638797, -0.64075, -0.642704, -0.644657, -0.646611,
-0.648564, -0.650518, -0.652471, -0.654425, -0.656378, -0.658332,
-0.660285, -0.662239, -0.664192, -0.666146, -0.668099, -0.670053,
-0.672006, -0.67396, -0.675913, -0.677867, -0.67982, -0.681774,
-0.683727, -0.685681, -0.687634, -0.689588, -0.691541, -0.693495,
-0.695448, -0.697402, -0.699355, -0.701309, -0.703262, -0.705216,
-0.707169, -0.709123, -0.711076, -0.71303, -0.714983, -0.716937,
-0.71889, -0.720844, -0.722797, -0.724751, -0.726704, -0.728658,
-0.730611, -0.732565, -0.734518, -0.736472, -0.738425, -0.740379,
-0.742332, -0.744286, -0.746239, -0.748193, -0.750146, -0.7521,
-0.754053, -0.756007, -0.75796, -0.759914, -0.761867, -0.763821,
-0.765774, -0.767728, -0.769681, -0.771635, -0.773588, -0.775542,
-0.777495, -0.779449, -0.781402, -0.783356, -0.78531, -0.787263,
-0.789217, -0.79117, -0.793124, -0.795077, -0.797031, -0.798984,
-0.800938, -0.802891, -0.804845, -0.806798, -0.808752, -0.810705,
-0.812659, -0.814612, -0.816566, -0.81852, -0.820473, -0.822427,
-0.82438, -0.826334, -0.828287, -0.830241, -0.832194, -0.834148,
-0.836101, -0.838055, -0.840008, -0.841961, -0.843915, -0.845868,
-0.847822, -0.849775, -0.851729, -0.853682, -0.855636, -0.857589,
-0.859543, -0.861496, -0.86345, -0.865403, -0.867357, -0.86931,
-0.871264, -0.873217, -0.875171, -0.877124, -0.879077, -0.881031,
-0.882984, -0.884938, -0.886891, -0.888845, -0.890798, -0.892752,
-0.894705, -0.896659, -0.898612, -0.900566, -0.902519, -0.904473,
-0.906426, -0.90838, -0.910333, -0.912287, -0.914241, -0.916194,
-0.918148, -0.920101, -0.922055, -0.924008, -0.925962, -0.927916,
-0.929869, -0.931823, -0.933776, -0.93573, -0.937683, -0.939637,
-0.941591, -0.943544, -0.945498, -0.947451, -0.949405, -0.951359,
-0.953312, -0.955266, -0.957219, -0.959173, -0.961127, -0.96308,
-0.965034, -0.966987, -0.968941, -0.970895, -0.972848, -0.974802,
-0.976755, -0.978709, -0.980662, -0.982616, -0.98457, -0.986523,
-0.988477, -0.99043, -0.992383, -0.994336, -0.996289, -0.998236,
-1, -0.998236, -0.996289, -0.994336, -0.992383, -0.99043,
-0.988477, -0.986523, -0.98457, -0.982616, -0.980662, -0.978709,
-0.976755, -0.974802, -0.972848, -0.970895, -0.968941, -0.966987,
-0.965034, -0.96308, -0.961127, -0.959173, -0.957219, -0.955266,
-0.953312, -0.951359, -0.949405, -0.947451, -0.945498, -0.943544,
-0.941591, -0.939637, -0.937683, -0.93573, -0.933776, -0.931823,
-0.929869, -0.927916, -0.925962, -0.924008, -0.922055, -0.920101,
-0.918148, -0.916194, -0.914241, -0.912287, -0.910333, -0.90838,
-0.906426, -0.904473, -0.902519, -0.900566, -0.898612, -0.896659,
-0.894705, -0.892752, -0.890798, -0.888845, -0.886891, -0.884938,
-0.882984, -0.881031, -0.879077, -0.877124, -0.875171, -0.873217,
-0.871264, -0.86931, -0.867357, -0.865403, -0.86345, -0.861496,
-0.859543, -0.857589, -0.855636, -0.853682, -0.851729, -0.849775,
-0.847822, -0.845868, -0.843915, -0.841961, -0.840008, -0.838055,
-0.836101, -0.834148, -0.832194, -0.830241, -0.828287, -0.826334,
-0.82438, -0.822427, -0.820473, -0.81852, -0.816566, -0.814612,
-0.812659, -0.810705, -0.808752, -0.806798, -0.804845, -0.802891,
-0.800938, -0.798984, -0.797031, -0.795077, -0.793124, -0.79117,
-0.789217, -0.787263, -0.78531, -0.783356, -0.781402, -0.779449,
-0.777495, -0.775542, -0.773588, -0.771635, -0.769681, -0.767728,
-0.765774, -0.763821, -0.761867, -0.759914, -0.75796, -0.756007,
-0.754053, -0.7521, -0.750146, -0.748193, -0.746239, -0.744286,
-0.742332, -0.740379, -0.738425, -0.736472, -0.734518, -0.732565,
-0.730611, -0.728658, -0.726704, -0.724751, -0.722797, -0.720844,
-0.71889, -0.716937, -0.714983, -0.71303, -0.711076, -0.709123,
-0.707169, -0.705216, -0.703262, -0.701309, -0.699355, -0.697402,
-0.695448, -0.693495, -0.691541, -0.689588, -0.687634, -0.685681,
-0.683727, -0.681774, -0.67982, -0.677867, -0.675913, -0.67396,
-0.672006, -0.670053, -0.668099, -0.666146, -0.664192, -0.662239,
-0.660285, -0.658332, -0.656378, -0.654425, -0.652471, -0.650518,
-0.648564, -0.646611, -0.644657, -0.642704, -0.64075, -0.638797,
-0.636843, -0.63489, -0.632936, -0.630982, -0.629029, -0.627075,
-0.625122, -0.623168, -0.621215, -0.619261, -0.617308, -0.615354,
-0.613401, -0.611447, -0.609494, -0.60754, -0.605587, -0.603633,
-0.60168, -0.599726, -0.597773, -0.595819, -0.593866, -0.591912,
-0.589959, -0.588005, -0.586052, -0.584098, -0.582145, -0.580191,
-0.578238, -0.576284, -0.574331, -0.572377, -0.570424, -0.56847,
-0.566517, -0.564563, -0.56261, -0.560656, -0.558703, -0.556749,
-0.554796, -0.552842, -0.550889, -0.548935, -0.546982, -0.545028,
-0.543075, -0.541121, -0.539168, -0.537214, -0.535261, -0.533307,
-0.531354, -0.5294, -0.527447, -0.525493, -0.52354, -0.521586,
-0.519633, -0.517679, -0.515726, -0.513772, -0.511819, -0.509865,
-0.507912, -0.505958, -0.504005, -0.502051, -0.500098, -0.498144,
-0.496191, -0.494237, -0.492284, -0.49033, -0.488377, -0.486423,
-0.484469, -0.482516, -0.480562, -0.478609, -0.476655, -0.474702,
-0.472748, -0.470795, -0.468841, -0.466888, -0.464934, -0.462981,
-0.461027, -0.459074, -0.45712, -0.455167, -0.453213, -0.45126,
-0.449306, -0.447353, -0.445399, -0.443446, -0.441492, -0.439539,
-0.437585, -0.435632, -0.433678, -0.431725, -0.429771, -0.427818,
-0.425864, -0.423911, -0.421957, -0.420004, -0.41805, -0.416097,
-0.414143, -0.41219, -0.410236, -0.408283, -0.406329, -0.404376,
-0.402422, -0.400469, -0.398515, -0.396562, -0.394608, -0.392655,
-0.390701, -0.388748, -0.386794, -0.384841, -0.382887, -0.380934,
-0.37898, -0.377027, -0.375073, -0.37312, -0.371166, -0.369213,
-0.367259, -0.365306, -0.363352, -0.361399, -0.359445, -0.357492,
-0.355538, -0.353585, -0.351631, -0.349678, -0.347724, -0.345771,
-0.343817, -0.341864, -0.33991, -0.337957, -0.336003, -0.334049,
-0.332096, -0.330142, -0.328189, -0.326235, -0.324282, -0.322328,
-0.320375, -0.318421, -0.316468, -0.314514, -0.312561, -0.310607,
-0.308654, -0.3067, -0.304747, -0.302793, -0.30084, -0.298886,
-0.296933, -0.294979, -0.293026, -0.291072, -0.289119, -0.287165,
-0.285212, -0.283258, -0.281305, -0.279351, -0.277398, -0.275444,
-0.273491, -0.271537, -0.269584, -0.26763, -0.265677, -0.263723,
-0.26177, -0.259816, -0.257863, -0.255909, -0.253956, -0.252002,
-0.250049, -0.248095, -0.246142, -0.244188, -0.242235, -0.240281,
-0.238328, -0.236374, -0.234421, -0.232467, -0.230514, -0.22856,
-0.226607, -0.224653, -0.2227, -0.220746, -0.218793, -0.216839,
-0.214886, -0.212932, -0.210979, -0.209025, -0.207072, -0.205118,
-0.203165, -0.201211, -0.199258, -0.197304, -0.195351, -0.193397,
-0.191444, -0.18949, -0.187537, -0.185583, -0.18363, -0.181676,
-0.179722, -0.177769, -0.175815, -0.173862, -0.171908, -0.169955,
-0.168001, -0.166048, -0.164094, -0.162141, -0.160187, -0.158234,
-0.15628, -0.154327, -0.152373, -0.15042, -0.148466, -0.146513,
-0.144559, -0.142606, -0.140652, -0.138699, -0.136745, -0.134792,
-0.132838, -0.130885, -0.128931, -0.126978, -0.125024, -0.123071,
-0.121117, -0.119164, -0.11721, -0.115257, -0.113303, -0.11135,
-0.109396, -0.107443, -0.105489, -0.103536, -0.101582, -0.0996289,
-0.0976754, -0.0957219, -0.0937684, -0.0918149, -0.0898614, -0.0879078,
-0.0859543, -0.0840008, -0.0820473, -0.0800938, -0.0781403, -0.0761868,
-0.0742333, -0.0722797, -0.0703262, -0.0683727, -0.0664192, -0.0644657,
-0.0625122, -0.0605587, -0.0586051, -0.0566516, -0.0546981, -0.0527446,
-0.0507911, -0.0488376, -0.0468841, -0.0449306, -0.0429771, -0.0410235,
-0.03907, -0.0371165, -0.035163, -0.0332095, -0.031256, -0.0293025,
-0.027349, -0.0253955, -0.023442, -0.0214885, -0.019535, -0.0175815,
-0.015628, -0.0136745, -0.011721, -0.00976749, -0.00781399, -0.0058605,
-0.003907, -0.0019535
};
static const float WAVE_TRIANGLE_018[DEFAULT_WAVELEN] = {
0, 0.00195387, 0.00390781, 0.00586162, 0.00781562, 0.00976936,
0.0117234, 0.0136771, 0.0156312, 0.0175848, 0.019539, 0.0214926,
0.0234468, 0.0254003, 0.0273546, 0.0293081, 0.0312624, 0.0332158,
0.0351702, 0.0371236, 0.039078, 0.0410313, 0.0429858, 0.0449391,
0.0468936, 0.0488469, 0.0508014, 0.0527546, 0.0547092, 0.0566624,
0.058617, 0.0605702, 0.0625248, 0.0644779, 0.0664326, 0.0683857,
0.0703403, 0.0722935, 0.0742481, 0.0762013, 0.0781559, 0.080109,
0.0820637, 0.0840168, 0.0859714, 0.0879246, 0.0898792, 0.0918324,
0.093787, 0.0957402, 0.0976947, 0.099648, 0.101602, 0.103556,
0.10551, 0.107464, 0.109418, 0.111371, 0.113326, 0.115279,
0.117233, 0.119187, 0.121141, 0.123095, 0.125049, 0.127003,
0.128957, 0.13091, 0.132864, 0.134818, 0.136772, 0.138726,
0.14068, 0.142634, 0.144588, 0.146542, 0.148495, 0.150449,
0.152403, 0.154357, 0.156311, 0.158265, 0.160219, 0.162173,
0.164126, 0.166081, 0.168034, 0.169988, 0.171942, 0.173896,
0.17585, 0.177804, 0.179757, 0.181712, 0.183665, 0.18562,
0.187573, 0.189527, 0.191481, 0.193435, 0.195388, 0.197343,
0.199296, 0.201251, 0.203204, 0.205159, 0.207112, 0.209066,
0.211019, 0.212974, 0.214927, 0.216882, 0.218835, 0.22079,
0.222743, 0.224697, 0.226651, 0.228605, 0.230558, 0.232513,
0.234466, 0.236421, 0.238374, 0.240329, 0.242282, 0.244236,
0.24619, 0.248144, 0.250097, 0.252052, 0.254005, 0.25596,
0.257913, 0.259867, 0.261821, 0.263775, 0.265729, 0.267683,
0.269636, 0.271591, 0.273544, 0.275498, 0.277452, 0.279406,
0.28136, 0.283314, 0.285268, 0.287222, 0.289175, 0.291129,
0.293083, 0.295037, 0.296991, 0.298945, 0.300899, 0.302852,
0.304807, 0.30676, 0.308714, 0.310668, 0.312622, 0.314576,
0.31653, 0.318483, 0.320438, 0.322391, 0.324346, 0.326299,
0.328254, 0.330207, 0.332161, 0.334114, 0.336069, 0.338022,
0.339977, 0.34193, 0.343885, 0.345838, 0.347792, 0.349745,
0.3517, 0.353653, 0.355608, 0.357561, 0.359516, 0.361469,
0.363424, 0.365377, 0.367331, 0.369284, 0.371239, 0.373192,
0.375147, 0.3771, 0.379055, 0.381008, 0.382962, 0.384916,
0.38687, 0.388823, 0.390778, 0.392731, 0.394686, 0.396639,
0.398593, 0.400547, 0.402501, 0.404455, 0.406409, 0.408362,
0.410317, 0.41227, 0.414224, 0.416178, 0.418132, 0.420086,
0.42204, 0.423994, 0.425948, 0.427901, 0.429855, 0.431809,
0.433763, 0.435717, 0.437671, 0.439625, 0.441579, 0.443533,
0.445486, 0.447441, 0.449394, 0.451348, 0.453302, 0.455256,
0.457209, 0.459164, 0.461117, 0.463072, 0.465025, 0.46698,
0.468933, 0.470887, 0.47284, 0.474795, 0.476748, 0.478703,
0.480656, 0.482611, 0.484564, 0.486519, 0.488471, 0.490426,
0.492379, 0.494334, 0.496287, 0.498242, 0.500195, 0.50215,
0.504103, 0.506057, 0.50801, 0.509965, 0.511918, 0.513873,
0.515826, 0.517781, 0.519734, 0.521689, 0.523641, 0.525596,
0.527549, 0.529504, 0.531457, 0.533412, 0.535365, 0.53732,
0.539273, 0.541227, 0.54318, 0.545135, 0.547088, 0.549043,
0.550996, 0.552951, 0.554904, 0.556858, 0.558812, 0.560766,
0.56272, 0.564674, 0.566627, 0.568581, 0.570535, 0.572489,
0.574443, 0.576397, 0.578351, 0.580305, 0.582259, 0.584212,
0.586167, 0.58812, 0.590074, 0.592028, 0.593982, 0.595935,
0.59789, 0.599843, 0.601798, 0.603751, 0.605706, 0.607659,
0.609614, 0.611566, 0.613521, 0.615474, 0.617429, 0.619382,
0.621337, 0.62329, 0.625245, 0.627197, 0.629153, 0.631105,
0.63306, 0.635013, 0.636968, 0.638921, 0.640876, 0.642828,
0.644784, 0.646736, 0.648691, 0.650644, 0.652599, 0.654552,
0.656507, 0.65846, 0.660415, 0.662367, 0.664323, 0.666275,
0.66823, 0.670183, 0.672138, 0.674091, 0.676046, 0.677999,
0.679954, 0.681906, 0.683861, 0.685814, 0.687769, 0.689722,
0.691677, 0.69363, 0.695584, 0.697538, 0.699492, 0.701446,
0.7034, 0.705353, 0.707308, 0.709261, 0.711215, 0.713169,
0.715123, 0.717077, 0.719031, 0.720985, 0.722938, 0.724893,
0.726846, 0.7288, 0.730754, 0.732708, 0.734661, 0.736616,
0.738569, 0.740524, 0.742477, 0.744432, 0.746385, 0.74834,
0.750292, 0.752248, 0.7542, 0.756155, 0.758108, 0.760063,
0.762015, 0.763971, 0.765923, 0.767879, 0.769831, 0.771787,
0.773739, 0.775695, 0.777646, 0.779602, 0.781554, 0.78351,
0.785462, 0.787418, 0.78937, 0.791326, 0.793277, 0.795234,
0.797185, 0.799141, 0.801093, 0.803049, 0.805001, 0.806957,
0.808908, 0.810865, 0.812816, 0.814772, 0.816724, 0.81868,
0.820632, 0.822588, 0.82454, 0.826495, 0.828448, 0.830403,
0.832355, 0.834311, 0.836263, 0.838219, 0.840171, 0.842126,
0.844079, 0.846034, 0.847987, 0.849941, 0.851895, 0.853849,
0.855803, 0.857757, 0.859711, 0.861664, 0.863619, 0.865572,
0.867527, 0.86948, 0.871435, 0.873387, 0.875343, 0.877295,
0.87925, 0.881202, 0.883158, 0.88511, 0.887066, 0.889018,
0.890974, 0.892925, 0.894882, 0.896833, 0.89879, 0.90074,
0.902698, 0.904648, 0.906606, 0.908555, 0.910514, 0.912463,
0.914422, 0.916371, 0.91833, 0.920278, 0.922238, 0.924186,
0.926146, 0.928093, 0.930054, 0.932001, 0.933962, 0.935909,
0.93787, 0.939816, 0.941778, 0.943724, 0.945686, 0.947632,
0.949594, 0.951539, 0.953502, 0.955447, 0.957409, 0.959354,
0.961317, 0.963262, 0.965225, 0.96717, 0.969133, 0.971078,
0.973041, 0.974985, 0.976949, 0.978893, 0.980856, 0.982801,
0.984764, 0.98671, 0.98867, 0.990619, 0.992576, 0.994532,
0.996472, 0.998478, 1, 0.998478, 0.996472, 0.994532,
0.992576, 0.990619, 0.98867, 0.98671, 0.984764, 0.982801,
0.980856, 0.978893, 0.976949, 0.974985, 0.973041, 0.971078,
0.969133, 0.96717, 0.965225, 0.963262, 0.961317, 0.959354,
0.957409, 0.955447, 0.953502, 0.951539, 0.949594, 0.947632,
0.945686, 0.943724, 0.941778, 0.939816, 0.93787, 0.935909,
0.933962, 0.932001, 0.930054, 0.928093, 0.926146, 0.924186,
0.922238, 0.920278, 0.91833, 0.916371, 0.914422, 0.912463,
0.910514, 0.908555, 0.906606, 0.904648, 0.902698, 0.90074,
0.89879, 0.896833, 0.894882, 0.892925, 0.890974, 0.889018,
0.887066, 0.88511, 0.883158, 0.881202, 0.87925, 0.877295,
0.875343, 0.873387, 0.871435, 0.86948, 0.867527, 0.865572,
0.863619, 0.861664, 0.859711, 0.857757, 0.855803, 0.853849,
0.851895, 0.849941, 0.847987, 0.846034, 0.844079, 0.842126,
0.840171, 0.838219, 0.836263, 0.834311, 0.832355, 0.830403,
0.828448, 0.826495, 0.82454, 0.822588, 0.820632, 0.81868,
0.816724, 0.814772, 0.812816, 0.810865, 0.808908, 0.806957,
0.805001, 0.803049, 0.801093, 0.799141, 0.797185, 0.795234,
0.793277, 0.791326, 0.78937, 0.787418, 0.785462, 0.78351,
0.781554, 0.779602, 0.777646, 0.775695, 0.773739, 0.771787,
0.769831, 0.767879, 0.765923, 0.763971, 0.762015, 0.760063,
0.758108, 0.756155, 0.7542, 0.752248, 0.750292, 0.74834,
0.746385, 0.744432, 0.742477, 0.740524, 0.738569, 0.736616,
0.734661, 0.732708, 0.730754, 0.7288, 0.726846, 0.724893,
0.722938, 0.720985, 0.719031, 0.717077, 0.715123, 0.713169,
0.711215, 0.709261, 0.707308, 0.705353, 0.7034, 0.701446,
0.699492, 0.697538, 0.695584, 0.69363, 0.691677, 0.689722,
0.687769, 0.685814, 0.683861, 0.681906, 0.679954, 0.677999,
0.676046, 0.674091, 0.672138, 0.670183, 0.66823, 0.666275,
0.664323, 0.662367, 0.660415, 0.65846, 0.656507, 0.654552,
0.652599, 0.650644, 0.648691, 0.646736, 0.644784, 0.642828,
0.640876, 0.638921, 0.636968, 0.635013, 0.63306, 0.631105,
0.629153, 0.627197, 0.625245, 0.62329, 0.621337, 0.619382,
0.617429, 0.615474, 0.613521, 0.611566, 0.609614, 0.607659,
0.605706, 0.603751, 0.601798, 0.599843, 0.59789, 0.595935,
0.593982, 0.592028, 0.590074, 0.58812, 0.586167, 0.584212,
0.582259, 0.580305, 0.578351, 0.576397, 0.574443, 0.572489,
0.570535, 0.568581, 0.566627, 0.564674, 0.56272, 0.560766,
0.558812, 0.556858, 0.554904, 0.552951, 0.550996, 0.549043,
0.547088, 0.545135, 0.54318, 0.541227, 0.539273, 0.53732,
0.535365, 0.533412, 0.531457, 0.529504, 0.527549, 0.525596,
0.523641, 0.521689, 0.519734, 0.517781, 0.515826, 0.513873,
0.511918, 0.509965, 0.50801, 0.506057, 0.504103, 0.50215,
0.500195, 0.498242, 0.496287, 0.494334, 0.492379, 0.490426,
0.488471, 0.486519, 0.484564, 0.482611, 0.480656, 0.478703,
0.476748, 0.474795, 0.47284, 0.470887, 0.468933, 0.46698,
0.465025, 0.463072, 0.461117, 0.459164, 0.457209, 0.455256,
0.453302, 0.451348, 0.449394, 0.447441, 0.445486, 0.443533,
0.441579, 0.439625, 0.437671, 0.435717, 0.433763, 0.431809,
0.429855, 0.427901, 0.425948, 0.423994, 0.42204, 0.420086,
0.418132, 0.416178, 0.414224, 0.41227, 0.410317, 0.408362,
0.406409, 0.404455, 0.402501, 0.400547, 0.398593, 0.396639,
0.394686, 0.392731, 0.390778, 0.388823, 0.38687, 0.384916,
0.382962, 0.381008, 0.379055, 0.3771, 0.375147, 0.373192,
0.371239, 0.369284, 0.367331, 0.365377, 0.363424, 0.361469,
0.359516, 0.357561, 0.355608, 0.353653, 0.3517, 0.349745,
0.347792, 0.345838, 0.343885, 0.34193, 0.339977, 0.338022,
0.336069, 0.334114, 0.332161, 0.330207, 0.328254, 0.326299,
0.324346, 0.322391, 0.320438, 0.318483, 0.31653, 0.314576,
0.312622, 0.310668, 0.308714, 0.30676, 0.304807, 0.302852,
0.300899, 0.298945, 0.296991, 0.295037, 0.293083, 0.291129,
0.289175, 0.287222, 0.285268, 0.283314, 0.28136, 0.279406,
0.277452, 0.275498, 0.273544, 0.271591, 0.269636, 0.267683,
0.265729, 0.263775, 0.261821, 0.259867, 0.257913, 0.25596,
0.254005, 0.252052, 0.250097, 0.248144, 0.24619, 0.244236,
0.242282, 0.240329, 0.238374, 0.236421, 0.234466, 0.232513,
0.230558, 0.228605, 0.226651, 0.224697, 0.222743, 0.22079,
0.218835, 0.216882, 0.214927, 0.212974, 0.211019, 0.209066,
0.207112, 0.205159, 0.203204, 0.201251, 0.199296, 0.197343,
0.195388, 0.193435, 0.191481, 0.189527, 0.187573, 0.18562,
0.183665, 0.181712, 0.179757, 0.177804, 0.17585, 0.173896,
0.171942, 0.169988, 0.168034, 0.166081, 0.164126, 0.162173,
0.160219, 0.158265, 0.156311, 0.154357, 0.152403, 0.150449,
0.148495, 0.146542, 0.144588, 0.142634, 0.14068, 0.138726,
0.136772, 0.134818, 0.132864, 0.13091, 0.128957, 0.127003,
0.125049, 0.123095, 0.121141, 0.119187, 0.117233, 0.115279,
0.113326, 0.111371, 0.109418, 0.107464, 0.10551, 0.103556,
0.101602, 0.099648, 0.0976947, 0.0957402, 0.093787, 0.0918324,
0.0898792, 0.0879246, 0.0859714, 0.0840168, 0.0820637, 0.080109,
0.0781559, 0.0762013, 0.0742481, 0.0722935, 0.0703403, 0.0683857,
0.0664326, 0.0644779, 0.0625248, 0.0605702, 0.058617, 0.0566624,
0.0547092, 0.0527546, 0.0508014, 0.0488469, 0.0468936, 0.0449391,
0.0429858, 0.0410313, 0.039078, 0.0371236, 0.0351702, 0.0332158,
0.0312624, 0.0293081, 0.0273546, 0.0254003, 0.0234468, 0.0214926,
0.019539, 0.0175848, 0.0156312, 0.0136771, 0.0117234, 0.00976936,
0.00781562, 0.00586162, 0.00390781, 0.00195387, 0, -0.00195387,
-0.00390781, -0.00586162, -0.00781562, -0.00976936, -0.0117234, -0.0136771,
-0.0156312, -0.0175848, -0.019539, -0.0214926, -0.0234468, -0.0254003,
-0.0273546, -0.0293081, -0.0312624, -0.0332158, -0.0351702, -0.0371236,
-0.039078, -0.0410313, -0.0429858, -0.0449391, -0.0468936, -0.0488469,
-0.0508014, -0.0527546, -0.0547092, -0.0566624, -0.058617, -0.0605702,
-0.0625248, -0.0644779, -0.0664326, -0.0683857, -0.0703403, -0.0722935,
-0.0742481, -0.0762013, -0.0781559, -0.080109, -0.0820637, -0.0840168,
-0.0859714, -0.0879246, -0.0898792, -0.0918324, -0.093787, -0.0957402,
-0.0976947, -0.099648, -0.101602, -0.103556, -0.10551, -0.107464,
-0.109418, -0.111371, -0.113326, -0.115279, -0.117233, -0.119187,
-0.121141, -0.123095, -0.125049, -0.127003, -0.128957, -0.13091,
-0.132864, -0.134818, -0.136772, -0.138726, -0.14068, -0.142634,
-0.144588, -0.146542, -0.148495, -0.150449, -0.152403, -0.154357,
-0.156311, -0.158265, -0.160219, -0.162173, -0.164126, -0.166081,
-0.168034, -0.169988, -0.171942, -0.173896, -0.17585, -0.177804,
-0.179757, -0.181712, -0.183665, -0.18562, -0.187573, -0.189527,
-0.191481, -0.193435, -0.195388, -0.197343, -0.199296, -0.201251,
-0.203204, -0.205159, -0.207112, -0.209066, -0.211019, -0.212974,
-0.214927, -0.216882, -0.218835, -0.22079, -0.222743, -0.224697,
-0.226651, -0.228605, -0.230558, -0.232513, -0.234466, -0.236421,
-0.238374, -0.240329, -0.242282, -0.244236, -0.24619, -0.248144,
-0.250097, -0.252052, -0.254005, -0.25596, -0.257913, -0.259867,
-0.261821, -0.263775, -0.265729, -0.267683, -0.269636, -0.271591,
-0.273544, -0.275498, -0.277452, -0.279406, -0.28136, -0.283314,
-0.285268, -0.287222, -0.289175, -0.291129, -0.293083, -0.295037,
-0.296991, -0.298945, -0.300899, -0.302852, -0.304807, -0.30676,
-0.308714, -0.310668, -0.312622, -0.314576, -0.31653, -0.318483,
-0.320438, -0.322391, -0.324346, -0.326299, -0.328254, -0.330207,
-0.332161, -0.334114, -0.336069, -0.338022, -0.339977, -0.34193,
-0.343885, -0.345838, -0.347792, -0.349745, -0.3517, -0.353653,
-0.355608, -0.357561, -0.359516, -0.361469, -0.363424, -0.365377,
-0.367331, -0.369284, -0.371239, -0.373192, -0.375147, -0.3771,
-0.379055, -0.381008, -0.382962, -0.384916, -0.38687, -0.388823,
-0.390778, -0.392731, -0.394686, -0.396639, -0.398593, -0.400547,
-0.402501, -0.404455, -0.406409, -0.408362, -0.410317, -0.41227,
-0.414224, -0.416178, -0.418132, -0.420086, -0.42204, -0.423994,
-0.425948, -0.427901, -0.429855, -0.431809, -0.433763, -0.435717,
-0.437671, -0.439625, -0.441579, -0.443533, -0.445486, -0.447441,
-0.449394, -0.451348, -0.453302, -0.455256, -0.457209, -0.459164,
-0.461117, -0.463072, -0.465025, -0.46698, -0.468933, -0.470887,
-0.47284, -0.474795, -0.476748, -0.478703, -0.480656, -0.482611,
-0.484564, -0.486519, -0.488471, -0.490426, -0.492379, -0.494334,
-0.496287, -0.498242, -0.500195, -0.50215, -0.504103, -0.506057,
-0.50801, -0.509965, -0.511918, -0.513873, -0.515826, -0.517781,
-0.519734, -0.521689, -0.523641, -0.525596, -0.527549, -0.529504,
-0.531457, -0.533412, -0.535365, -0.53732, -0.539273, -0.541227,
-0.54318, -0.545135, -0.547088, -0.549043, -0.550996, -0.552951,
-0.554904, -0.556858, -0.558812, -0.560766, -0.56272, -0.564674,
-0.566627, -0.568581, -0.570535, -0.572489, -0.574443, -0.576397,
-0.578351, -0.580305, -0.582259, -0.584212, -0.586167, -0.58812,
-0.590074, -0.592028, -0.593982, -0.595935, -0.59789, -0.599843,
-0.601798, -0.603751, -0.605706, -0.607659, -0.609614, -0.611566,
-0.613521, -0.615474, -0.617429, -0.619382, -0.621337, -0.62329,
-0.625245, -0.627197, -0.629153, -0.631105, -0.63306, -0.635013,
-0.636968, -0.638921, -0.640876, -0.642828, -0.644784, -0.646736,
-0.648691, -0.650644, -0.652599, -0.654552, -0.656507, -0.65846,
-0.660415, -0.662367, -0.664323, -0.666275, -0.66823, -0.670183,
-0.672138, -0.674091, -0.676046, -0.677999, -0.679954, -0.681906,
-0.683861, -0.685814, -0.687769, -0.689722, -0.691677, -0.69363,
-0.695584, -0.697538, -0.699492, -0.701446, -0.7034, -0.705353,
-0.707308, -0.709261, -0.711215, -0.713169, -0.715123, -0.717077,
-0.719031, -0.720985, -0.722938, -0.724893, -0.726846, -0.7288,
-0.730754, -0.732708, -0.734661, -0.736616, -0.738569, -0.740524,
-0.742477, -0.744432, -0.746385, -0.74834, -0.750292, -0.752248,
-0.7542, -0.756155, -0.758108, -0.760063, -0.762015, -0.763971,
-0.765923, -0.767879, -0.769831, -0.771787, -0.773739, -0.775695,
-0.777646, -0.779602, -0.781554, -0.78351, -0.785462, -0.787418,
-0.78937, -0.791326, -0.793277, -0.795234, -0.797185, -0.799141,
-0.801093, -0.803049, -0.805001, -0.806957, -0.808908, -0.810865,
-0.812816, -0.814772, -0.816724, -0.81868, -0.820632, -0.822588,
-0.82454, -0.826495, -0.828448, -0.830403, -0.832355, -0.834311,
-0.836263, -0.838219, -0.840171, -0.842126, -0.844079, -0.846034,
-0.847987, -0.849941, -0.851895, -0.853849, -0.855803, -0.857757,
-0.859711, -0.861664, -0.863619, -0.865572, -0.867527, -0.86948,
-0.871435, -0.873387, -0.875343, -0.877295, -0.87925, -0.881202,
-0.883158, -0.88511, -0.887066, -0.889018, -0.890974, -0.892925,
-0.894882, -0.896833, -0.89879, -0.90074, -0.902698, -0.904648,
-0.906606, -0.908555, -0.910514, -0.912463, -0.914422, -0.916371,
-0.91833, -0.920278, -0.922238, -0.924186, -0.926146, -0.928093,
-0.930054, -0.932001, -0.933962, -0.935909, -0.93787, -0.939816,
-0.941778, -0.943724, -0.945686, -0.947632, -0.949594, -0.951539,
-0.953502, -0.955447, -0.957409, -0.959354, -0.961317, -0.963262,
-0.965225, -0.96717, -0.969133, -0.971078, -0.973041, -0.974985,
-0.976949, -0.978893, -0.980856, -0.982801, -0.984764, -0.98671,
-0.98867, -0.990619, -0.992576, -0.994532, -0.996472, -0.998478,
-1, -0.998478, -0.996472, -0.994532, -0.992576, -0.990619,
-0.98867, -0.98671, -0.984764, -0.982801, -0.980856, -0.978893,
-0.976949, -0.974985, -0.973041, -0.971078, -0.969133, -0.96717,
-0.965225, -0.963262, -0.961317, -0.959354, -0.957409, -0.955447,
-0.953502, -0.951539, -0.949594, -0.947632, -0.945686, -0.943724,
-0.941778, -0.939816, -0.93787, -0.935909, -0.933962, -0.932001,
-0.930054, -0.928093, -0.926146, -0.924186, -0.922238, -0.920278,
-0.91833, -0.916371, -0.914422, -0.912463, -0.910514, -0.908555,
-0.906606, -0.904648, -0.902698, -0.90074, -0.89879, -0.896833,
-0.894882, -0.892925, -0.890974, -0.889018, -0.887066, -0.88511,
-0.883158, -0.881202, -0.87925, -0.877295, -0.875343, -0.873387,
-0.871435, -0.86948, -0.867527, -0.865572, -0.863619, -0.861664,
-0.859711, -0.857757, -0.855803, -0.853849, -0.851895, -0.849941,
-0.847987, -0.846034, -0.844079, -0.842126, -0.840171, -0.838219,
-0.836263, -0.834311, -0.832355, -0.830403, -0.828448, -0.826495,
-0.82454, -0.822588, -0.820632, -0.81868, -0.816724, -0.814772,
-0.812816, -0.810865, -0.808908, -0.806957, -0.805001, -0.803049,
-0.801093, -0.799141, -0.797185, -0.795234, -0.793277, -0.791326,
-0.78937, -0.787418, -0.785462, -0.78351, -0.781554, -0.779602,
-0.777646, -0.775695, -0.773739, -0.771787, -0.769831, -0.767879,
-0.765923, -0.763971, -0.762015, -0.760063, -0.758108, -0.756155,
-0.7542, -0.752248, -0.750292, -0.74834, -0.746385, -0.744432,
-0.742477, -0.740524, -0.738569, -0.736616, -0.734661, -0.732708,
-0.730754, -0.7288, -0.726846, -0.724893, -0.722938, -0.720985,
-0.719031, -0.717077, -0.715123, -0.713169, -0.711215, -0.709261,
-0.707308, -0.705353, -0.7034, -0.701446, -0.699492, -0.697538,
-0.695584, -0.69363, -0.691677, -0.689722, -0.687769, -0.685814,
-0.683861, -0.681906, -0.679954, -0.677999, -0.676046, -0.674091,
-0.672138, -0.670183, -0.66823, -0.666275, -0.664323, -0.662367,
-0.660415, -0.65846, -0.656507, -0.654552, -0.652599, -0.650644,
-0.648691, -0.646736, -0.644784, -0.642828, -0.640876, -0.638921,
-0.636968, -0.635013, -0.63306, -0.631105, -0.629153, -0.627197,
-0.625245, -0.62329, -0.621337, -0.619382, -0.617429, -0.615474,
-0.613521, -0.611566, -0.609614, -0.607659, -0.605706, -0.603751,
-0.601798, -0.599843, -0.59789, -0.595935, -0.593982, -0.592028,
-0.590074, -0.58812, -0.586167, -0.584212, -0.582259, -0.580305,
-0.578351, -0.576397, -0.574443, -0.572489, -0.570535, -0.568581,
-0.566627, -0.564674, -0.56272, -0.560766, -0.558812, -0.556858,
-0.554904, -0.552951, -0.550996, -0.549043, -0.547088, -0.545135,
-0.54318, -0.541227, -0.539273, -0.53732, -0.535365, -0.533412,
-0.531457, -0.529504, -0.527549, -0.525596, -0.523641, -0.521689,
-0.519734, -0.517781, -0.515826, -0.513873, -0.511918, -0.509965,
-0.50801, -0.506057, -0.504103, -0.50215, -0.500195, -0.498242,
-0.496287, -0.494334, -0.492379, -0.490426, -0.488471, -0.486519,
-0.484564, -0.482611, -0.480656, -0.478703, -0.476748, -0.474795,
-0.47284, -0.470887, -0.468933, -0.46698, -0.465025, -0.463072,
-0.461117, -0.459164, -0.457209, -0.455256, -0.453302, -0.451348,
-0.449394, -0.447441, -0.445486, -0.443533, -0.441579, -0.439625,
-0.437671, -0.435717, -0.433763, -0.431809, -0.429855, -0.427901,
-0.425948, -0.423994, -0.42204, -0.420086, -0.418132, -0.416178,
-0.414224, -0.41227, -0.410317, -0.408362, -0.406409, -0.404455,
-0.402501, -0.400547, -0.398593, -0.396639, -0.394686, -0.392731,
-0.390778, -0.388823, -0.38687, -0.384916, -0.382962, -0.381008,
-0.379055, -0.3771, -0.375147, -0.373192, -0.371239, -0.369284,
-0.367331, -0.365377, -0.363424, -0.361469, -0.359516, -0.357561,
-0.355608, -0.353653, -0.3517, -0.349745, -0.347792, -0.345838,
-0.343885, -0.34193, -0.339977, -0.338022, -0.336069, -0.334114,
-0.332161, -0.330207, -0.328254, -0.326299, -0.324346, -0.322391,
-0.320438, -0.318483, -0.31653, -0.314576, -0.312622, -0.310668,
-0.308714, -0.30676, -0.304807, -0.302852, -0.300899, -0.298945,
-0.296991, -0.295037, -0.293083, -0.291129, -0.289175, -0.287222,
-0.285268, -0.283314, -0.28136, -0.279406, -0.277452, -0.275498,
-0.273544, -0.271591, -0.269636, -0.267683, -0.265729, -0.263775,
-0.261821, -0.259867, -0.257913, -0.25596, -0.254005, -0.252052,
-0.250097, -0.248144, -0.24619, -0.244236, -0.242282, -0.240329,
-0.238374, -0.236421, -0.234466, -0.232513, -0.230558, -0.228605,
-0.226651, -0.224697, -0.222743, -0.22079, -0.218835, -0.216882,
-0.214927, -0.212974, -0.211019, -0.209066, -0.207112, -0.205159,
-0.203204, -0.201251, -0.199296, -0.197343, -0.195388, -0.193435,
-0.191481, -0.189527, -0.187573, -0.18562, -0.183665, -0.181712,
-0.179757, -0.177804, -0.17585, -0.173896, -0.171942, -0.169988,
-0.168034, -0.166081, -0.164126, -0.162173, -0.160219, -0.158265,
-0.156311, -0.154357, -0.152403, -0.150449, -0.148495, -0.146542,
-0.144588, -0.142634, -0.14068, -0.138726, -0.136772, -0.134818,
-0.132864, -0.13091, -0.128957, -0.127003, -0.125049, -0.123095,
-0.121141, -0.119187, -0.117233, -0.115279, -0.113326, -0.111371,
-0.109418, -0.107464, -0.10551, -0.103556, -0.101602, -0.099648,
-0.0976947, -0.0957402, -0.093787, -0.0918324, -0.0898792, -0.0879246,
-0.0859714, -0.0840168, -0.0820637, -0.080109, -0.0781559, -0.0762013,
-0.0742481, -0.0722935, -0.0703403, -0.0683857, -0.0664326, -0.0644779,
-0.0625248, -0.0605702, -0.058617, -0.0566624, -0.0547092, -0.0527546,
-0.0508014, -0.0488469, -0.0468936, -0.0449391, -0.0429858, -0.0410313,
-0.039078, -0.0371236, -0.0351702, -0.0332158, -0.0312624, -0.0293081,
-0.0273546, -0.0254003, -0.0234468, -0.0214926, -0.019539, -0.0175848,
-0.0156312, -0.0136771, -0.0117234, -0.00976936, -0.00781562, -0.00586162,
-0.00390781, -0.00195387
};
static const float WAVE_TRIANGLE_030[DEFAULT_WAVELEN] = {
0, 0.00195617, 0.00390925, 0.00586245, 0.00781873, 0.00977478,
0.0117278, 0.0136811, 0.0156375, 0.0175934, 0.0195463, 0.0214997,
0.0234562, 0.025412, 0.0273648, 0.0293184, 0.0312749, 0.0332306,
0.0351833, 0.037137, 0.0390936, 0.0410491, 0.0430018, 0.0449557,
0.0469124, 0.0488677, 0.0508203, 0.0527743, 0.0547311, 0.0566863,
0.0586388, 0.060593, 0.0625498, 0.0645048, 0.0664574, 0.0684117,
0.0703685, 0.0723234, 0.0742759, 0.0762304, 0.0781872, 0.0801419,
0.0820944, 0.0840491, 0.0860059, 0.0879605, 0.089913, 0.0918678,
0.0938246, 0.095779, 0.0977315, 0.0996865, 0.101643, 0.103598,
0.10555, 0.107505, 0.109462, 0.111416, 0.113369, 0.115324,
0.117281, 0.119235, 0.121187, 0.123143, 0.125099, 0.127053,
0.129006, 0.130961, 0.132918, 0.134872, 0.136824, 0.13878,
0.140737, 0.14269, 0.144643, 0.146599, 0.148555, 0.150509,
0.152461, 0.154418, 0.156374, 0.158327, 0.16028, 0.162236,
0.164193, 0.166146, 0.168099, 0.170055, 0.172011, 0.173964,
0.175917, 0.177874, 0.17983, 0.181783, 0.183736, 0.185692,
0.187648, 0.189601, 0.191555, 0.193511, 0.195467, 0.19742,
0.199373, 0.20133, 0.203286, 0.205238, 0.207192, 0.209149,
0.211104, 0.213057, 0.215011, 0.216967, 0.218923, 0.220875,
0.222829, 0.224786, 0.226741, 0.228694, 0.230648, 0.232605,
0.23456, 0.236512, 0.238467, 0.240424, 0.242378, 0.244331,
0.246285, 0.248242, 0.250197, 0.252149, 0.254104, 0.256061,
0.258015, 0.259968, 0.261923, 0.26388, 0.265834, 0.267786,
0.269741, 0.271698, 0.273652, 0.275605, 0.27756, 0.279517,
0.281471, 0.283423, 0.285379, 0.287336, 0.28929, 0.291242,
0.293198, 0.295154, 0.297108, 0.299061, 0.301016, 0.302973,
0.304927, 0.306879, 0.308835, 0.310792, 0.312745, 0.314698,
0.316654, 0.31861, 0.320564, 0.322516, 0.324472, 0.326429,
0.328382, 0.330335, 0.332291, 0.334248, 0.3362, 0.338153,
0.34011, 0.342066, 0.344019, 0.345972, 0.347929, 0.349885,
0.351837, 0.353791, 0.355747, 0.357703, 0.359656, 0.361609,
0.363566, 0.365522, 0.367474, 0.369428, 0.371385, 0.373341,
0.375293, 0.377247, 0.379204, 0.381159, 0.383111, 0.385065,
0.387022, 0.388978, 0.39093, 0.392884, 0.394841, 0.396796,
0.398748, 0.400703, 0.40266, 0.404615, 0.406567, 0.408521,
0.410479, 0.412433, 0.414385, 0.41634, 0.418297, 0.420252,
0.422204, 0.424159, 0.426116, 0.428071, 0.430022, 0.431977,
0.433935, 0.435889, 0.437841, 0.439796, 0.441754, 0.443708,
0.445659, 0.447615, 0.449572, 0.451526, 0.453478, 0.455434,
0.457391, 0.459345, 0.461297, 0.463252, 0.46521, 0.467163,
0.469115, 0.471071, 0.473028, 0.474981, 0.476934, 0.47889,
0.480847, 0.4828, 0.484752, 0.486709, 0.488666, 0.490618,
0.492571, 0.494527, 0.496484, 0.498437, 0.500389, 0.502346,
0.504303, 0.506255, 0.508208, 0.510165, 0.512122, 0.514074,
0.516027, 0.517984, 0.51994, 0.521892, 0.523845, 0.525803,
0.527759, 0.529711, 0.531664, 0.533621, 0.535577, 0.537529,
0.539482, 0.54144, 0.543396, 0.545348, 0.547301, 0.549259,
0.551215, 0.553166, 0.55512, 0.557078, 0.559033, 0.560984,
0.562938, 0.564896, 0.566852, 0.568803, 0.570757, 0.572715,
0.57467, 0.576621, 0.578576, 0.580534, 0.582489, 0.58444,
0.586395, 0.588353, 0.590307, 0.592258, 0.594213, 0.596172,
0.598126, 0.600077, 0.602032, 0.60399, 0.605944, 0.607895,
0.609851, 0.611809, 0.613763, 0.615714, 0.61767, 0.619628,
0.621581, 0.623532, 0.625488, 0.627447, 0.6294, 0.631351,
0.633307, 0.635265, 0.637218, 0.639169, 0.641126, 0.643084,
0.645037, 0.646988, 0.648945, 0.650903, 0.652855, 0.654806,
0.656764, 0.658721, 0.660673, 0.662625, 0.664582, 0.66654,
0.668492, 0.670443, 0.672401, 0.674359, 0.67631, 0.678262,
0.68022, 0.682177, 0.684128, 0.686081, 0.688039, 0.689996,
0.691947, 0.693899, 0.695858, 0.697815, 0.699765, 0.701718,
0.703677, 0.705633, 0.707584, 0.709536, 0.711496, 0.713452,
0.715402, 0.717355, 0.719314, 0.721271, 0.72322, 0.725174,
0.727133, 0.729089, 0.731039, 0.732992, 0.734952, 0.736908,
0.738857, 0.740811, 0.742771, 0.744726, 0.746675, 0.74863,
0.75059, 0.752545, 0.754494, 0.756449, 0.758409, 0.760363,
0.762312, 0.764267, 0.766228, 0.768182, 0.77013, 0.772086,
0.774047, 0.776, 0.777949, 0.779905, 0.781866, 0.783818,
0.785767, 0.787724, 0.789685, 0.791637, 0.793585, 0.795543,
0.797504, 0.799455, 0.801404, 0.803362, 0.805322, 0.807273,
0.809222, 0.811181, 0.813141, 0.815092, 0.81704, 0.818999,
0.82096, 0.82291, 0.824859, 0.826818, 0.828779, 0.830728,
0.832677, 0.834638, 0.836598, 0.838546, 0.840495, 0.842457,
0.844417, 0.846364, 0.848314, 0.850276, 0.852236, 0.854183,
0.856132, 0.858095, 0.860055, 0.862001, 0.86395, 0.865914,
0.867873, 0.869819, 0.871769, 0.873733, 0.875692, 0.877637,
0.879587, 0.881553, 0.883511, 0.885454, 0.887406, 0.889372,
0.89133, 0.893272, 0.895224, 0.897192, 0.899149, 0.90109,
0.903043, 0.905011, 0.906967, 0.908907, 0.910861, 0.912831,
0.914786, 0.916725, 0.91868, 0.920651, 0.922605, 0.924542,
0.926498, 0.928471, 0.930424, 0.932359, 0.934317, 0.936292,
0.938242, 0.940175, 0.942135, 0.944113, 0.946061, 0.947991,
0.949954, 0.951935, 0.953879, 0.955806, 0.957773, 0.959757,
0.961697, 0.96362, 0.965592, 0.967582, 0.969515, 0.971431,
0.973412, 0.97541, 0.977332, 0.979238, 0.981233, 0.983245,
0.985146, 0.987032, 0.989062, 0.991102, 0.992941, 0.994779,
0.996957, 0.999077, 1, 0.999077, 0.996957, 0.994779,
0.992941, 0.991102, 0.989062, 0.987032, 0.985146, 0.983245,
0.981233, 0.979238, 0.977332, 0.97541, 0.973412, 0.971431,
0.969515, 0.967582, 0.965592, 0.96362, 0.961697, 0.959757,
0.957773, 0.955806, 0.953879, 0.951935, 0.949954, 0.947991,
0.946061, 0.944113, 0.942135, 0.940175, 0.938242, 0.936292,
0.934317, 0.932359, 0.930424, 0.928471, 0.926498, 0.924542,
0.922605, 0.920651, 0.91868, 0.916725, 0.914786, 0.912831,
0.910861, 0.908907, 0.906967, 0.905011, 0.903043, 0.90109,
0.899149, 0.897192, 0.895224, 0.893272, 0.89133, 0.889372,
0.887406, 0.885454, 0.883511, 0.881553, 0.879587, 0.877637,
0.875692, 0.873733, 0.871769, 0.869819, 0.867873, 0.865914,
0.86395, 0.862001, 0.860055, 0.858095, 0.856132, 0.854183,
0.852236, 0.850276, 0.848314, 0.846364, 0.844417, 0.842457,
0.840495, 0.838546, 0.836598, 0.834638, 0.832677, 0.830728,
0.828779, 0.826818, 0.824859, 0.82291, 0.82096, 0.818999,
0.81704, 0.815092, 0.813141, 0.811181, 0.809222, 0.807273,
0.805322, 0.803362, 0.801404, 0.799455, 0.797504, 0.795543,
0.793585, 0.791637, 0.789685, 0.787724, 0.785767, 0.783818,
0.781866, 0.779905, 0.777949, 0.776, 0.774047, 0.772086,
0.77013, 0.768182, 0.766228, 0.764267, 0.762312, 0.760363,
0.758409, 0.756449, 0.754494, 0.752545, 0.75059, 0.74863,
0.746675, 0.744726, 0.742771, 0.740811, 0.738857, 0.736908,
0.734952, 0.732992, 0.731039, 0.729089, 0.727133, 0.725174,
0.72322, 0.721271, 0.719314, 0.717355, 0.715402, 0.713452,
0.711496, 0.709536, 0.707584, 0.705633, 0.703677, 0.701718,
0.699765, 0.697815, 0.695858, 0.693899, 0.691947, 0.689996,
0.688039, 0.686081, 0.684128, 0.682177, 0.68022, 0.678262,
0.67631, 0.674359, 0.672401, 0.670443, 0.668492, 0.66654,
0.664582, 0.662625, 0.660673, 0.658721, 0.656764, 0.654806,
0.652855, 0.650903, 0.648945, 0.646988, 0.645037, 0.643084,
0.641126, 0.639169, 0.637218, 0.635265, 0.633307, 0.631351,
0.6294, 0.627447, 0.625488, 0.623532, 0.621581, 0.619628,
0.61767, 0.615714, 0.613763, 0.611809, 0.609851, 0.607895,
0.605944, 0.60399, 0.602032, 0.600077, 0.598126, 0.596172,
0.594213, 0.592258, 0.590307, 0.588353, 0.586395, 0.58444,
0.582489, 0.580534, 0.578576, 0.576621, 0.57467, 0.572715,
0.570757, 0.568803, 0.566852, 0.564896, 0.562938, 0.560984,
0.559033, 0.557078, 0.55512, 0.553166, 0.551215, 0.549259,
0.547301, 0.545348, 0.543396, 0.54144, 0.539482, 0.537529,
0.535577, 0.533621, 0.531664, 0.529711, 0.527759, 0.525803,
0.523845, 0.521892, 0.51994, 0.517984, 0.516027, 0.514074,
0.512122, 0.510165, 0.508208, 0.506255, 0.504303, 0.502346,
0.500389, 0.498437, 0.496484, 0.494527, 0.492571, 0.490618,
0.488666, 0.486709, 0.484752, 0.4828, 0.480847, 0.47889,
0.476934, 0.474981, 0.473028, 0.471071, 0.469115, 0.467163,
0.46521, 0.463252, 0.461297, 0.459345, 0.457391, 0.455434,
0.453478, 0.451526, 0.449572, 0.447615, 0.445659, 0.443708,
0.441754, 0.439796, 0.437841, 0.435889, 0.433935, 0.431977,
0.430022, 0.428071, 0.426116, 0.424159, 0.422204, 0.420252,
0.418297, 0.41634, 0.414385, 0.412433, 0.410479, 0.408521,
0.406567, 0.404615, 0.40266, 0.400703, 0.398748, 0.396796,
0.394841, 0.392884, 0.39093, 0.388978, 0.387022, 0.385065,
0.383111, 0.381159, 0.379204, 0.377247, 0.375293, 0.373341,
0.371385, 0.369428, 0.367474, 0.365522, 0.363566, 0.361609,
0.359656, 0.357703, 0.355747, 0.353791, 0.351837, 0.349885,
0.347929, 0.345972, 0.344019, 0.342066, 0.34011, 0.338153,
0.3362, 0.334248, 0.332291, 0.330335, 0.328382, 0.326429,
0.324472, 0.322516, 0.320564, 0.31861, 0.316654, 0.314698,
0.312745, 0.310792, 0.308835, 0.306879, 0.304927, 0.302973,
0.301016, 0.299061, 0.297108, 0.295154, 0.293198, 0.291242,
0.28929, 0.287336, 0.285379, 0.283423, 0.281471, 0.279517,
0.27756, 0.275605, 0.273652, 0.271698, 0.269741, 0.267786,
0.265834, 0.26388, 0.261923, 0.259968, 0.258015, 0.256061,
0.254104, 0.252149, 0.250197, 0.248242, 0.246285, 0.244331,
0.242378, 0.240424, 0.238467, 0.236512, 0.23456, 0.232605,
0.230648, 0.228694, 0.226741, 0.224786, 0.222829, 0.220875,
0.218923, 0.216967, 0.215011, 0.213057, 0.211104, 0.209149,
0.207192, 0.205238, 0.203286, 0.20133, 0.199373, 0.19742,
0.195467, 0.193511, 0.191555, 0.189601, 0.187648, 0.185692,
0.183736, 0.181783, 0.17983, 0.177874, 0.175917, 0.173964,
0.172011, 0.170055, 0.168099, 0.166146, 0.164193, 0.162236,
0.16028, 0.158327, 0.156374, 0.154418, 0.152461, 0.150509,
0.148555, 0.146599, 0.144643, 0.14269, 0.140737, 0.13878,
0.136824, 0.134872, 0.132918, 0.130961, 0.129006, 0.127053,
0.125099, 0.123143, 0.121187, 0.119235, 0.117281, 0.115324,
0.113369, 0.111416, 0.109462, 0.107505, 0.10555, 0.103598,
0.101643, 0.0996865, 0.0977315, 0.095779, 0.0938246, 0.0918678,
0.089913, 0.0879605, 0.0860059, 0.0840491, 0.0820944, 0.0801419,
0.0781872, 0.0762304, 0.0742759, 0.0723234, 0.0703685, 0.0684117,
0.0664574, 0.0645048, 0.0625498, 0.060593, 0.0586388, 0.0566863,
0.0547311, 0.0527743, 0.0508203, 0.0488677, 0.0469124, 0.0449557,
0.0430018, 0.0410491, 0.0390936, 0.037137, 0.0351833, 0.0332306,
0.0312749, 0.0293184, 0.0273648, 0.025412, 0.0234562, 0.0214997,
0.0195463, 0.0175934, 0.0156375, 0.0136811, 0.0117278, 0.00977478,
0.00781873, 0.00586245, 0.00390925, 0.00195617, 0, -0.00195617,
-0.00390925, -0.00586245, -0.00781873, -0.00977478, -0.0117278, -0.0136811,
-0.0156375, -0.0175934, -0.0195463, -0.0214997, -0.0234562, -0.025412,
-0.0273648, -0.0293184, -0.0312749, -0.0332306, -0.0351833, -0.037137,
-0.0390936, -0.0410491, -0.0430018, -0.0449557, -0.0469124, -0.0488677,
-0.0508203, -0.0527743, -0.0547311, -0.0566863, -0.0586388, -0.060593,
-0.0625498, -0.0645048, -0.0664574, -0.0684117, -0.0703685, -0.0723234,
-0.0742759, -0.0762304, -0.0781872, -0.0801419, -0.0820944, -0.0840491,
-0.0860059, -0.0879605, -0.089913, -0.0918678, -0.0938246, -0.095779,
-0.0977315, -0.0996865, -0.101643, -0.103598, -0.10555, -0.107505,
-0.109462, -0.111416, -0.113369, -0.115324, -0.117281, -0.119235,
-0.121187, -0.123143, -0.125099, -0.127053, -0.129006, -0.130961,
-0.132918, -0.134872, -0.136824, -0.13878, -0.140737, -0.14269,
-0.144643, -0.146599, -0.148555, -0.150509, -0.152461, -0.154418,
-0.156374, -0.158327, -0.16028, -0.162236, -0.164193, -0.166146,
-0.168099, -0.170055, -0.172011, -0.173964, -0.175917, -0.177874,
-0.17983, -0.181783, -0.183736, -0.185692, -0.187648, -0.189601,
-0.191555, -0.193511, -0.195467, -0.19742, -0.199373, -0.20133,
-0.203286, -0.205238, -0.207192, -0.209149, -0.211104, -0.213057,
-0.215011, -0.216967, -0.218923, -0.220875, -0.222829, -0.224786,
-0.226741, -0.228694, -0.230648, -0.232605, -0.23456, -0.236512,
-0.238467, -0.240424, -0.242378, -0.244331, -0.246285, -0.248242,
-0.250197, -0.252149, -0.254104, -0.256061, -0.258015, -0.259968,
-0.261923, -0.26388, -0.265834, -0.267786, -0.269741, -0.271698,
-0.273652, -0.275605, -0.27756, -0.279517, -0.281471, -0.283423,
-0.285379, -0.287336, -0.28929, -0.291242, -0.293198, -0.295154,
-0.297108, -0.299061, -0.301016, -0.302973, -0.304927, -0.306879,
-0.308835, -0.310792, -0.312745, -0.314698, -0.316654, -0.31861,
-0.320564, -0.322516, -0.324472, -0.326429, -0.328382, -0.330335,
-0.332291, -0.334248, -0.3362, -0.338153, -0.34011, -0.342066,
-0.344019, -0.345972, -0.347929, -0.349885, -0.351837, -0.353791,
-0.355747, -0.357703, -0.359656, -0.361609, -0.363566, -0.365522,
-0.367474, -0.369428, -0.371385, -0.373341, -0.375293, -0.377247,
-0.379204, -0.381159, -0.383111, -0.385065, -0.387022, -0.388978,
-0.39093, -0.392884, -0.394841, -0.396796, -0.398748, -0.400703,
-0.40266, -0.404615, -0.406567, -0.408521, -0.410479, -0.412433,
-0.414385, -0.41634, -0.418297, -0.420252, -0.422204, -0.424159,
-0.426116, -0.428071, -0.430022, -0.431977, -0.433935, -0.435889,
-0.437841, -0.439796, -0.441754, -0.443708, -0.445659, -0.447615,
-0.449572, -0.451526, -0.453478, -0.455434, -0.457391, -0.459345,
-0.461297, -0.463252, -0.46521, -0.467163, -0.469115, -0.471071,
-0.473028, -0.474981, -0.476934, -0.47889, -0.480847, -0.4828,
-0.484752, -0.486709, -0.488666, -0.490618, -0.492571, -0.494527,
-0.496484, -0.498437, -0.500389, -0.502346, -0.504303, -0.506255,
-0.508208, -0.510165, -0.512122, -0.514074, -0.516027, -0.517984,
-0.51994, -0.521892, -0.523845, -0.525803, -0.527759, -0.529711,
-0.531664, -0.533621, -0.535577, -0.537529, -0.539482, -0.54144,
-0.543396, -0.545348, -0.547301, -0.549259, -0.551215, -0.553166,
-0.55512, -0.557078, -0.559033, -0.560984, -0.562938, -0.564896,
-0.566852, -0.568803, -0.570757, -0.572715, -0.57467, -0.576621,
-0.578576, -0.580534, -0.582489, -0.58444, -0.586395, -0.588353,
-0.590307, -0.592258, -0.594213, -0.596172, -0.598126, -0.600077,
-0.602032, -0.60399, -0.605944, -0.607895, -0.609851, -0.611809,
-0.613763, -0.615714, -0.61767, -0.619628, -0.621581, -0.623532,
-0.625488, -0.627447, -0.6294, -0.631351, -0.633307, -0.635265,
-0.637218, -0.639169, -0.641126, -0.643084, -0.645037, -0.646988,
-0.648945, -0.650903, -0.652855, -0.654806, -0.656764, -0.658721,
-0.660673, -0.662625, -0.664582, -0.66654, -0.668492, -0.670443,
-0.672401, -0.674359, -0.67631, -0.678262, -0.68022, -0.682177,
-0.684128, -0.686081, -0.688039, -0.689996, -0.691947, -0.693899,
-0.695858, -0.697815, -0.699765, -0.701718, -0.703677, -0.705633,
-0.707584, -0.709536, -0.711496, -0.713452, -0.715402, -0.717355,
-0.719314, -0.721271, -0.72322, -0.725174, -0.727133, -0.729089,
-0.731039, -0.732992, -0.734952, -0.736908, -0.738857, -0.740811,
-0.742771, -0.744726, -0.746675, -0.74863, -0.75059, -0.752545,
-0.754494, -0.756449, -0.758409, -0.760363, -0.762312, -0.764267,
-0.766228, -0.768182, -0.77013, -0.772086, -0.774047, -0.776,
-0.777949, -0.779905, -0.781866, -0.783818, -0.785767, -0.787724,
-0.789685, -0.791637, -0.793585, -0.795543, -0.797504, -0.799455,
-0.801404, -0.803362, -0.805322, -0.807273, -0.809222, -0.811181,
-0.813141, -0.815092, -0.81704, -0.818999, -0.82096, -0.82291,
-0.824859, -0.826818, -0.828779, -0.830728, -0.832677, -0.834638,
-0.836598, -0.838546, -0.840495, -0.842457, -0.844417, -0.846364,
-0.848314, -0.850276, -0.852236, -0.854183, -0.856132, -0.858095,
-0.860055, -0.862001, -0.86395, -0.865914, -0.867873, -0.869819,
-0.871769, -0.873733, -0.875692, -0.877637, -0.879587, -0.881553,
-0.883511, -0.885454, -0.887406, -0.889372, -0.89133, -0.893272,
-0.895224, -0.897192, -0.899149, -0.90109, -0.903043, -0.905011,
-0.906967, -0.908907, -0.910861, -0.912831, -0.914786, -0.916725,
-0.91868, -0.920651, -0.922605, -0.924542, -0.926498, -0.928471,
-0.930424, -0.932359, -0.934317, -0.936292, -0.938242, -0.940175,
-0.942135, -0.944113, -0.946061, -0.947991, -0.949954, -0.951935,
-0.953879, -0.955806, -0.957773, -0.959757, -0.961697, -0.96362,
-0.965592, -0.967582, -0.969515, -0.971431, -0.973412, -0.97541,
-0.977332, -0.979238, -0.981233, -0.983245, -0.985146, -0.987032,
-0.989062, -0.991102, -0.992941, -0.994779, -0.996957, -0.999077,
-1, -0.999077, -0.996957, -0.994779, -0.992941, -0.991102,
-0.989062, -0.987032, -0.985146, -0.983245, -0.981233, -0.979238,
-0.977332, -0.97541, -0.973412, -0.971431, -0.969515, -0.967582,
-0.965592, -0.96362, -0.961697, -0.959757, -0.957773, -0.955806,
-0.953879, -0.951935, -0.949954, -0.947991, -0.946061, -0.944113,
-0.942135, -0.940175, -0.938242, -0.936292, -0.934317, -0.932359,
-0.930424, -0.928471, -0.926498, -0.924542, -0.922605, -0.920651,
-0.91868, -0.916725, -0.914786, -0.912831, -0.910861, -0.908907,
-0.906967, -0.905011, -0.903043, -0.90109, -0.899149, -0.897192,
-0.895224, -0.893272, -0.89133, -0.889372, -0.887406, -0.885454,
-0.883511, -0.881553, -0.879587, -0.877637, -0.875692, -0.873733,
-0.871769, -0.869819, -0.867873, -0.865914, -0.86395, -0.862001,
-0.860055, -0.858095, -0.856132, -0.854183, -0.852236, -0.850276,
-0.848314, -0.846364, -0.844417, -0.842457, -0.840495, -0.838546,
-0.836598, -0.834638, -0.832677, -0.830728, -0.828779, -0.826818,
-0.824859, -0.82291, -0.82096, -0.818999, -0.81704, -0.815092,
-0.813141, -0.811181, -0.809222, -0.807273, -0.805322, -0.803362,
-0.801404, -0.799455, -0.797504, -0.795543, -0.793585, -0.791637,
-0.789685, -0.787724, -0.785767, -0.783818, -0.781866, -0.779905,
-0.777949, -0.776, -0.774047, -0.772086, -0.77013, -0.768182,
-0.766228, -0.764267, -0.762312, -0.760363, -0.758409, -0.756449,
-0.754494, -0.752545, -0.75059, -0.74863, -0.746675, -0.744726,
-0.742771, -0.740811, -0.738857, -0.736908, -0.734952, -0.732992,
-0.731039, -0.729089, -0.727133, -0.725174, -0.72322, -0.721271,
-0.719314, -0.717355, -0.715402, -0.713452, -0.711496, -0.709536,
-0.707584, -0.705633, -0.703677, -0.701718, -0.699765, -0.697815,
-0.695858, -0.693899, -0.691947, -0.689996, -0.688039, -0.686081,
-0.684128, -0.682177, -0.68022, -0.678262, -0.67631, -0.674359,
-0.672401, -0.670443, -0.668492, -0.66654, -0.664582, -0.662625,
-0.660673, -0.658721, -0.656764, -0.654806, -0.652855, -0.650903,
-0.648945, -0.646988, -0.645037, -0.643084, -0.641126, -0.639169,
-0.637218, -0.635265, -0.633307, -0.631351, -0.6294, -0.627447,
-0.625488, -0.623532, -0.621581, -0.619628, -0.61767, -0.615714,
-0.613763, -0.611809, -0.609851, -0.607895, -0.605944, -0.60399,
-0.602032, -0.600077, -0.598126, -0.596172, -0.594213, -0.592258,
-0.590307, -0.588353, -0.586395, -0.58444, -0.582489, -0.580534,
-0.578576, -0.576621, -0.57467, -0.572715, -0.570757, -0.568803,
-0.566852, -0.564896, -0.562938, -0.560984, -0.559033, -0.557078,
-0.55512, -0.553166, -0.551215, -0.549259, -0.547301, -0.545348,
-0.543396, -0.54144, -0.539482, -0.537529, -0.535577, -0.533621,
-0.531664, -0.529711, -0.527759, -0.525803, -0.523845, -0.521892,
-0.51994, -0.517984, -0.516027, -0.514074, -0.512122, -0.510165,
-0.508208, -0.506255, -0.504303, -0.502346, -0.500389, -0.498437,
-0.496484, -0.494527, -0.492571, -0.490618, -0.488666, -0.486709,
-0.484752, -0.4828, -0.480847, -0.47889, -0.476934, -0.474981,
-0.473028, -0.471071, -0.469115, -0.467163, -0.46521, -0.463252,
-0.461297, -0.459345, -0.457391, -0.455434, -0.453478, -0.451526,
-0.449572, -0.447615, -0.445659, -0.443708, -0.441754, -0.439796,
-0.437841, -0.435889, -0.433935, -0.431977, -0.430022, -0.428071,
-0.426116, -0.424159, -0.422204, -0.420252, -0.418297, -0.41634,
-0.414385, -0.412433, -0.410479, -0.408521, -0.406567, -0.404615,
-0.40266, -0.400703, -0.398748, -0.396796, -0.394841, -0.392884,
-0.39093, -0.388978, -0.387022, -0.385065, -0.383111, -0.381159,
-0.379204, -0.377247, -0.375293, -0.373341, -0.371385, -0.369428,
-0.367474, -0.365522, -0.363566, -0.361609, -0.359656, -0.357703,
-0.355747, -0.353791, -0.351837, -0.349885, -0.347929, -0.345972,
-0.344019, -0.342066, -0.34011, -0.338153, -0.3362, -0.334248,
-0.332291, -0.330335, -0.328382, -0.326429, -0.324472, -0.322516,
-0.320564, -0.31861, -0.316654, -0.314698, -0.312745, -0.310792,
-0.308835, -0.306879, -0.304927, -0.302973, -0.301016, -0.299061,
-0.297108, -0.295154, -0.293198, -0.291242, -0.28929, -0.287336,
-0.285379, -0.283423, -0.281471, -0.279517, -0.27756, -0.275605,
-0.273652, -0.271698, -0.269741, -0.267786, -0.265834, -0.26388,
-0.261923, -0.259968, -0.258015, -0.256061, -0.254104, -0.252149,
-0.250197, -0.248242, -0.246285, -0.244331, -0.242378, -0.240424,
-0.238467, -0.236512, -0.23456, -0.232605, -0.230648, -0.228694,
-0.226741, -0.224786, -0.222829, -0.220875, -0.218923, -0.216967,
-0.215011, -0.213057, -0.211104, -0.209149, -0.207192, -0.205238,
-0.203286, -0.20133, -0.199373, -0.19742, -0.195467, -0.193511,
-0.191555, -0.189601, -0.187648, -0.185692, -0.183736, -0.181783,
-0.17983, -0.177874, -0.175917, -0.173964, -0.172011, -0.170055,
-0.168099, -0.166146, -0.164193, -0.162236, -0.16028, -0.158327,
-0.156374, -0.154418, -0.152461, -0.150509, -0.148555, -0.146599,
-0.144643, -0.14269, -0.140737, -0.13878, -0.136824, -0.134872,
-0.132918, -0.130961, -0.129006, -0.127053, -0.125099, -0.123143,
-0.121187, -0.119235, -0.117281, -0.115324, -0.113369, -0.111416,
-0.109462, -0.107505, -0.10555, -0.103598, -0.101643, -0.0996865,
-0.0977315, -0.095779, -0.0938246, -0.0918678, -0.089913, -0.0879605,
-0.0860059, -0.0840491, -0.0820944, -0.0801419, -0.0781872, -0.0762304,
-0.0742759, -0.0723234, -0.0703685, -0.0684117, -0.0664574, -0.0645048,
-0.0625498, -0.060593, -0.0586388, -0.0566863, -0.0547311, -0.0527743,
-0.0508203, -0.0488677, -0.0469124, -0.0449557, -0.0430018, -0.0410491,
-0.0390936, -0.037137, -0.0351833, -0.0332306, -0.0312749, -0.0293184,
-0.0273648, -0.025412, -0.0234562, -0.0214997, -0.0195463, -0.0175934,
-0.0156375, -0.0136811, -0.0117278, -0.00977478, -0.00781873, -0.00586245,
-0.00390925, -0.00195617
};
static const float WAVE_TRIANGLE_042[DEFAULT_WAVELEN] = {
0, 0.00195188, 0.00390635, 0.00586444, 0.00782499, 0.00978537,
0.011743, 0.0136971, 0.0156488, 0.0176009, 0.0195558, 0.0215143,
0.023475, 0.0254351, 0.0273924, 0.029346, 0.0312976, 0.0332499,
0.0352053, 0.0371642, 0.0391249, 0.0410849, 0.0430416, 0.0449949,
0.0469464, 0.048899, 0.0508548, 0.0528141, 0.0547749, 0.0567345,
0.0586909, 0.0606438, 0.0625953, 0.0645481, 0.0665044, 0.068464,
0.0704249, 0.0723842, 0.07434, 0.0762926, 0.0782441, 0.0801973,
0.0821541, 0.084114, 0.0860748, 0.0880337, 0.0899891, 0.0919414,
0.093893, 0.0958466, 0.0978037, 0.0997639, 0.101725, 0.103683,
0.105638, 0.10759, 0.109542, 0.111496, 0.113453, 0.115414,
0.117375, 0.119333, 0.121287, 0.123239, 0.125191, 0.127145,
0.129103, 0.131064, 0.133024, 0.134982, 0.136936, 0.138888,
0.14084, 0.142795, 0.144753, 0.146714, 0.148674, 0.150632,
0.152585, 0.154537, 0.156489, 0.158444, 0.160403, 0.162364,
0.164324, 0.166281, 0.168234, 0.170185, 0.172138, 0.174094,
0.176053, 0.178014, 0.179974, 0.18193, 0.183883, 0.185834,
0.187787, 0.189743, 0.191703, 0.193664, 0.195623, 0.197579,
0.199532, 0.201483, 0.203436, 0.205393, 0.207353, 0.209314,
0.211273, 0.213228, 0.215181, 0.217132, 0.219085, 0.221042,
0.223003, 0.224964, 0.226923, 0.228877, 0.230829, 0.232781,
0.234735, 0.236692, 0.238653, 0.240614, 0.242572, 0.244527,
0.246478, 0.24843, 0.250384, 0.252342, 0.254303, 0.256264,
0.258222, 0.260175, 0.262127, 0.264078, 0.266033, 0.267992,
0.269953, 0.271913, 0.273871, 0.275824, 0.277776, 0.279727,
0.281683, 0.283642, 0.285603, 0.287563, 0.28952, 0.291473,
0.293424, 0.295376, 0.297332, 0.299292, 0.301253, 0.303213,
0.30517, 0.307122, 0.309073, 0.311025, 0.312982, 0.314942,
0.316903, 0.318863, 0.320819, 0.322771, 0.324722, 0.326675,
0.328631, 0.330592, 0.332553, 0.334513, 0.336468, 0.33842,
0.340371, 0.342324, 0.344281, 0.346242, 0.348203, 0.350162,
0.352117, 0.354068, 0.356019, 0.357973, 0.359931, 0.361892,
0.363853, 0.365812, 0.367766, 0.369717, 0.371668, 0.373622,
0.37558, 0.377542, 0.379503, 0.381461, 0.383415, 0.385366,
0.387317, 0.389271, 0.39123, 0.393192, 0.395153, 0.397111,
0.399064, 0.401014, 0.402966, 0.404921, 0.40688, 0.408842,
0.410803, 0.41276, 0.414713, 0.416663, 0.418615, 0.42057,
0.42253, 0.424492, 0.426453, 0.428409, 0.430362, 0.432312,
0.434264, 0.43622, 0.43818, 0.440142, 0.442103, 0.444059,
0.44601, 0.44796, 0.449913, 0.451869, 0.45383, 0.455792,
0.457752, 0.459708, 0.461659, 0.463609, 0.465562, 0.467519,
0.46948, 0.471443, 0.473402, 0.475357, 0.477308, 0.479258,
0.481211, 0.483169, 0.48513, 0.487093, 0.489052, 0.491006,
0.492956, 0.494906, 0.49686, 0.498818, 0.500781, 0.502743,
0.504701, 0.506655, 0.508605, 0.510555, 0.512509, 0.514468,
0.516431, 0.518393, 0.520351, 0.522304, 0.524253, 0.526204,
0.528158, 0.530118, 0.532081, 0.534043, 0.536001, 0.537953,
0.539902, 0.541852, 0.543808, 0.545768, 0.547732, 0.549693,
0.55165, 0.553601, 0.55555, 0.557501, 0.559457, 0.561418,
0.563382, 0.565343, 0.567299, 0.56925, 0.571199, 0.57315,
0.575107, 0.577069, 0.579032, 0.580993, 0.582948, 0.584899,
0.586847, 0.588799, 0.590756, 0.592719, 0.594683, 0.596643,
0.598598, 0.600547, 0.602495, 0.604448, 0.606406, 0.608369,
0.610333, 0.612293, 0.614247, 0.616195, 0.618144, 0.620097,
0.622056, 0.62402, 0.625983, 0.627943, 0.629896, 0.631844,
0.633792, 0.635746, 0.637706, 0.63967, 0.641634, 0.643593,
0.645544, 0.647492, 0.649441, 0.651395, 0.653356, 0.655321,
0.657284, 0.659242, 0.661193, 0.66314, 0.665089, 0.667044,
0.669006, 0.670971, 0.672935, 0.674892, 0.676842, 0.678788,
0.680737, 0.682693, 0.684656, 0.686622, 0.688585, 0.690541,
0.69249, 0.694436, 0.696386, 0.698343, 0.700306, 0.702273,
0.704236, 0.706191, 0.708138, 0.710084, 0.712034, 0.713992,
0.715957, 0.717924, 0.719886, 0.72184, 0.723787, 0.725732,
0.727683, 0.729642, 0.731608, 0.733575, 0.735536, 0.737489,
0.739435, 0.74138, 0.743331, 0.745291, 0.747258, 0.749226,
0.751187, 0.753138, 0.755083, 0.757027, 0.758979, 0.760941,
0.762909, 0.764877, 0.766837, 0.768787, 0.77073, 0.772675,
0.774628, 0.776591, 0.778561, 0.780528, 0.782487, 0.784435,
0.786378, 0.788322, 0.790277, 0.792242, 0.794212, 0.79618,
0.798137, 0.800084, 0.802025, 0.80397, 0.805925, 0.807892,
0.809864, 0.811831, 0.813787, 0.815732, 0.817672, 0.819617,
0.821574, 0.823543, 0.825516, 0.827483, 0.829437, 0.83138,
0.833318, 0.835264, 0.837223, 0.839194, 0.841168, 0.843135,
0.845087, 0.847027, 0.848964, 0.85091, 0.852872, 0.854845,
0.856821, 0.858787, 0.860737, 0.862674, 0.86461, 0.866557,
0.868521, 0.870498, 0.872475, 0.87444, 0.876387, 0.878321,
0.880255, 0.882202, 0.88417, 0.88615, 0.88813, 0.890093,
0.892036, 0.893966, 0.895898, 0.897848, 0.899819, 0.901804,
0.903786, 0.905748, 0.907686, 0.90961, 0.91154, 0.913492,
0.915469, 0.91746, 0.919444, 0.921403, 0.923335, 0.925252,
0.927179, 0.929134, 0.931119, 0.933118, 0.935105, 0.937061,
0.938983, 0.940891, 0.942814, 0.944774, 0.946771, 0.948782,
0.950773, 0.952722, 0.954628, 0.956521, 0.958439, 0.960408,
0.962426, 0.964458, 0.966457, 0.968391, 0.970268, 0.972131,
0.974039, 0.97603, 0.978095, 0.980173, 0.982184, 0.984079,
0.985871, 0.987652, 0.989544, 0.991634, 0.993897, 0.996165,
0.998147, 0.999512, 1, 0.999512, 0.998147, 0.996165,
0.993897, 0.991634, 0.989544, 0.987652, 0.985871, 0.984079,
0.982184, 0.980173, 0.978095, 0.97603, 0.974039, 0.972131,
0.970268, 0.968391, 0.966457, 0.964458, 0.962426, 0.960408,
0.958439, 0.956521, 0.954628, 0.952722, 0.950773, 0.948782,
0.946771, 0.944774, 0.942814, 0.940891, 0.938983, 0.937061,
0.935105, 0.933118, 0.931119, 0.929134, 0.927179, 0.925252,
0.923335, 0.921403, 0.919444, 0.91746, 0.915469, 0.913492,
0.91154, 0.90961, 0.907686, 0.905748, 0.903786, 0.901804,
0.899819, 0.897848, 0.895898, 0.893966, 0.892036, 0.890093,
0.88813, 0.88615, 0.88417, 0.882202, 0.880255, 0.878321,
0.876387, 0.87444, 0.872475, 0.870498, 0.868521, 0.866557,
0.86461, 0.862674, 0.860737, 0.858787, 0.856821, 0.854845,
0.852872, 0.85091, 0.848964, 0.847027, 0.845087, 0.843135,
0.841168, 0.839194, 0.837223, 0.835264, 0.833318, 0.83138,
0.829437, 0.827483, 0.825516, 0.823543, 0.821574, 0.819617,
0.817672, 0.815732, 0.813787, 0.811831, 0.809864, 0.807892,
0.805925, 0.80397, 0.802025, 0.800084, 0.798137, 0.79618,
0.794212, 0.792242, 0.790277, 0.788322, 0.786378, 0.784435,
0.782487, 0.780528, 0.778561, 0.776591, 0.774628, 0.772675,
0.77073, 0.768787, 0.766837, 0.764877, 0.762909, 0.760941,
0.758979, 0.757027, 0.755083, 0.753138, 0.751187, 0.749226,
0.747258, 0.745291, 0.743331, 0.74138, 0.739435, 0.737489,
0.735536, 0.733575, 0.731608, 0.729642, 0.727683, 0.725732,
0.723787, 0.72184, 0.719886, 0.717924, 0.715957, 0.713992,
0.712034, 0.710084, 0.708138, 0.706191, 0.704236, 0.702273,
0.700306, 0.698343, 0.696386, 0.694436, 0.69249, 0.690541,
0.688585, 0.686622, 0.684656, 0.682693, 0.680737, 0.678788,
0.676842, 0.674892, 0.672935, 0.670971, 0.669006, 0.667044,
0.665089, 0.66314, 0.661193, 0.659242, 0.657284, 0.655321,
0.653356, 0.651395, 0.649441, 0.647492, 0.645544, 0.643593,
0.641634, 0.63967, 0.637706, 0.635746, 0.633792, 0.631844,
0.629896, 0.627943, 0.625983, 0.62402, 0.622056, 0.620097,
0.618144, 0.616195, 0.614247, 0.612293, 0.610333, 0.608369,
0.606406, 0.604448, 0.602495, 0.600547, 0.598598, 0.596643,
0.594683, 0.592719, 0.590756, 0.588799, 0.586847, 0.584899,
0.582948, 0.580993, 0.579032, 0.577069, 0.575107, 0.57315,
0.571199, 0.56925, 0.567299, 0.565343, 0.563382, 0.561418,
0.559457, 0.557501, 0.55555, 0.553601, 0.55165, 0.549693,
0.547732, 0.545768, 0.543808, 0.541852, 0.539902, 0.537953,
0.536001, 0.534043, 0.532081, 0.530118, 0.528158, 0.526204,
0.524253, 0.522304, 0.520351, 0.518393, 0.516431, 0.514468,
0.512509, 0.510555, 0.508605, 0.506655, 0.504701, 0.502743,
0.500781, 0.498818, 0.49686, 0.494906, 0.492956, 0.491006,
0.489052, 0.487093, 0.48513, 0.483169, 0.481211, 0.479258,
0.477308, 0.475357, 0.473402, 0.471443, 0.46948, 0.467519,
0.465562, 0.463609, 0.461659, 0.459708, 0.457752, 0.455792,
0.45383, 0.451869, 0.449913, 0.44796, 0.44601, 0.444059,
0.442103, 0.440142, 0.43818, 0.43622, 0.434264, 0.432312,
0.430362, 0.428409, 0.426453, 0.424492, 0.42253, 0.42057,
0.418615, 0.416663, 0.414713, 0.41276, 0.410803, 0.408842,
0.40688, 0.404921, 0.402966, 0.401014, 0.399064, 0.397111,
0.395153, 0.393192, 0.39123, 0.389271, 0.387317, 0.385366,
0.383415, 0.381461, 0.379503, 0.377542, 0.37558, 0.373622,
0.371668, 0.369717, 0.367766, 0.365812, 0.363853, 0.361892,
0.359931, 0.357973, 0.356019, 0.354068, 0.352117, 0.350162,
0.348203, 0.346242, 0.344281, 0.342324, 0.340371, 0.33842,
0.336468, 0.334513, 0.332553, 0.330592, 0.328631, 0.326675,
0.324722, 0.322771, 0.320819, 0.318863, 0.316903, 0.314942,
0.312982, 0.311025, 0.309073, 0.307122, 0.30517, 0.303213,
0.301253, 0.299292, 0.297332, 0.295376, 0.293424, 0.291473,
0.28952, 0.287563, 0.285603, 0.283642, 0.281683, 0.279727,
0.277776, 0.275824, 0.273871, 0.271913, 0.269953, 0.267992,
0.266033, 0.264078, 0.262127, 0.260175, 0.258222, 0.256264,
0.254303, 0.252342, 0.250384, 0.24843, 0.246478, 0.244527,
0.242572, 0.240614, 0.238653, 0.236692, 0.234735, 0.232781,
0.230829, 0.228877, 0.226923, 0.224964, 0.223003, 0.221042,
0.219085, 0.217132, 0.215181, 0.213228, 0.211273, 0.209314,
0.207353, 0.205393, 0.203436, 0.201483, 0.199532, 0.197579,
0.195623, 0.193664, 0.191703, 0.189743, 0.187787, 0.185834,
0.183883, 0.18193, 0.179974, 0.178014, 0.176053, 0.174094,
0.172138, 0.170185, 0.168234, 0.166281, 0.164324, 0.162364,
0.160403, 0.158444, 0.156489, 0.154537, 0.152585, 0.150632,
0.148674, 0.146714, 0.144753, 0.142795, 0.14084, 0.138888,
0.136936, 0.134982, 0.133024, 0.131064, 0.129103, 0.127145,
0.125191, 0.123239, 0.121287, 0.119333, 0.117375, 0.115414,
0.113453, 0.111496, 0.109542, 0.10759, 0.105638, 0.103683,
0.101725, 0.0997639, 0.0978037, 0.0958466, 0.093893, 0.0919414,
0.0899891, 0.0880337, 0.0860748, 0.084114, 0.0821541, 0.0801973,
0.0782441, 0.0762926, 0.07434, 0.0723842, 0.0704249, 0.068464,
0.0665044, 0.0645481, 0.0625953, 0.0606438, 0.0586909, 0.0567345,
0.0547749, 0.0528141, 0.0508548, 0.048899, 0.0469464, 0.0449949,
0.0430416, 0.0410849, 0.0391249, 0.0371642, 0.0352053, 0.0332499,
0.0312976, 0.029346, 0.0273924, 0.0254351, 0.023475, 0.0215143,
0.0195558, 0.0176009, 0.0156488, 0.0136971, 0.011743, 0.00978537,
0.00782499, 0.00586444, 0.00390635, 0.00195188, 0, -0.00195188,
-0.00390635, -0.00586444, -0.00782499, -0.00978537, -0.011743, -0.0136971,
-0.0156488, -0.0176009, -0.0195558, -0.0215143, -0.023475, -0.0254351,
-0.0273924, -0.029346, -0.0312976, -0.0332499, -0.0352053, -0.0371642,
-0.0391249, -0.0410849, -0.0430416, -0.0449949, -0.0469464, -0.048899,
-0.0508548, -0.0528141, -0.0547749, -0.0567345, -0.0586909, -0.0606438,
-0.0625953, -0.0645481, -0.0665044, -0.068464, -0.0704249, -0.0723842,
-0.07434, -0.0762926, -0.0782441, -0.0801973, -0.0821541, -0.084114,
-0.0860748, -0.0880337, -0.0899891, -0.0919414, -0.093893, -0.0958466,
-0.0978037, -0.0997639, -0.101725, -0.103683, -0.105638, -0.10759,
-0.109542, -0.111496, -0.113453, -0.115414, -0.117375, -0.119333,
-0.121287, -0.123239, -0.125191, -0.127145, -0.129103, -0.131064,
-0.133024, -0.134982, -0.136936, -0.138888, -0.14084, -0.142795,
-0.144753, -0.146714, -0.148674, -0.150632, -0.152585, -0.154537,
-0.156489, -0.158444, -0.160403, -0.162364, -0.164324, -0.166281,
-0.168234, -0.170185, -0.172138, -0.174094, -0.176053, -0.178014,
-0.179974, -0.18193, -0.183883, -0.185834, -0.187787, -0.189743,
-0.191703, -0.193664, -0.195623, -0.197579, -0.199532, -0.201483,
-0.203436, -0.205393, -0.207353, -0.209314, -0.211273, -0.213228,
-0.215181, -0.217132, -0.219085, -0.221042, -0.223003, -0.224964,
-0.226923, -0.228877, -0.230829, -0.232781, -0.234735, -0.236692,
-0.238653, -0.240614, -0.242572, -0.244527, -0.246478, -0.24843,
-0.250384, -0.252342, -0.254303, -0.256264, -0.258222, -0.260175,
-0.262127, -0.264078, -0.266033, -0.267992, -0.269953, -0.271913,
-0.273871, -0.275824, -0.277776, -0.279727, -0.281683, -0.283642,
-0.285603, -0.287563, -0.28952, -0.291473, -0.293424, -0.295376,
-0.297332, -0.299292, -0.301253, -0.303213, -0.30517, -0.307122,
-0.309073, -0.311025, -0.312982, -0.314942, -0.316903, -0.318863,
-0.320819, -0.322771, -0.324722, -0.326675, -0.328631, -0.330592,
-0.332553, -0.334513, -0.336468, -0.33842, -0.340371, -0.342324,
-0.344281, -0.346242, -0.348203, -0.350162, -0.352117, -0.354068,
-0.356019, -0.357973, -0.359931, -0.361892, -0.363853, -0.365812,
-0.367766, -0.369717, -0.371668, -0.373622, -0.37558, -0.377542,
-0.379503, -0.381461, -0.383415, -0.385366, -0.387317, -0.389271,
-0.39123, -0.393192, -0.395153, -0.397111, -0.399064, -0.401014,
-0.402966, -0.404921, -0.40688, -0.408842, -0.410803, -0.41276,
-0.414713, -0.416663, -0.418615, -0.42057, -0.42253, -0.424492,
-0.426453, -0.428409, -0.430362, -0.432312, -0.434264, -0.43622,
-0.43818, -0.440142, -0.442103, -0.444059, -0.44601, -0.44796,
-0.449913, -0.451869, -0.45383, -0.455792, -0.457752, -0.459708,
-0.461659, -0.463609, -0.465562, -0.467519, -0.46948, -0.471443,
-0.473402, -0.475357, -0.477308, -0.479258, -0.481211, -0.483169,
-0.48513, -0.487093, -0.489052, -0.491006, -0.492956, -0.494906,
-0.49686, -0.498818, -0.500781, -0.502743, -0.504701, -0.506655,
-0.508605, -0.510555, -0.512509, -0.514468, -0.516431, -0.518393,
-0.520351, -0.522304, -0.524253, -0.526204, -0.528158, -0.530118,
-0.532081, -0.534043, -0.536001, -0.537953, -0.539902, -0.541852,
-0.543808, -0.545768, -0.547732, -0.549693, -0.55165, -0.553601,
-0.55555, -0.557501, -0.559457, -0.561418, -0.563382, -0.565343,
-0.567299, -0.56925, -0.571199, -0.57315, -0.575107, -0.577069,
-0.579032, -0.580993, -0.582948, -0.584899, -0.586847, -0.588799,
-0.590756, -0.592719, -0.594683, -0.596643, -0.598598, -0.600547,
-0.602495, -0.604448, -0.606406, -0.608369, -0.610333, -0.612293,
-0.614247, -0.616195, -0.618144, -0.620097, -0.622056, -0.62402,
-0.625983, -0.627943, -0.629896, -0.631844, -0.633792, -0.635746,
-0.637706, -0.63967, -0.641634, -0.643593, -0.645544, -0.647492,
-0.649441, -0.651395, -0.653356, -0.655321, -0.657284, -0.659242,
-0.661193, -0.66314, -0.665089, -0.667044, -0.669006, -0.670971,
-0.672935, -0.674892, -0.676842, -0.678788, -0.680737, -0.682693,
-0.684656, -0.686622, -0.688585, -0.690541, -0.69249, -0.694436,
-0.696386, -0.698343, -0.700306, -0.702273, -0.704236, -0.706191,
-0.708138, -0.710084, -0.712034, -0.713992, -0.715957, -0.717924,
-0.719886, -0.72184, -0.723787, -0.725732, -0.727683, -0.729642,
-0.731608, -0.733575, -0.735536, -0.737489, -0.739435, -0.74138,
-0.743331, -0.745291, -0.747258, -0.749226, -0.751187, -0.753138,
-0.755083, -0.757027, -0.758979, -0.760941, -0.762909, -0.764877,
-0.766837, -0.768787, -0.77073, -0.772675, -0.774628, -0.776591,
-0.778561, -0.780528, -0.782487, -0.784435, -0.786378, -0.788322,
-0.790277, -0.792242, -0.794212, -0.79618, -0.798137, -0.800084,
-0.802025, -0.80397, -0.805925, -0.807892, -0.809864, -0.811831,
-0.813787, -0.815732, -0.817672, -0.819617, -0.821574, -0.823543,
-0.825516, -0.827483, -0.829437, -0.83138, -0.833318, -0.835264,
-0.837223, -0.839194, -0.841168, -0.843135, -0.845087, -0.847027,
-0.848964, -0.85091, -0.852872, -0.854845, -0.856821, -0.858787,
-0.860737, -0.862674, -0.86461, -0.866557, -0.868521, -0.870498,
-0.872475, -0.87444, -0.876387, -0.878321, -0.880255, -0.882202,
-0.88417, -0.88615, -0.88813, -0.890093, -0.892036, -0.893966,
-0.895898, -0.897848, -0.899819, -0.901804, -0.903786, -0.905748,
-0.907686, -0.90961, -0.91154, -0.913492, -0.915469, -0.91746,
-0.919444, -0.921403, -0.923335, -0.925252, -0.927179, -0.929134,
-0.931119, -0.933118, -0.935105, -0.937061, -0.938983, -0.940891,
-0.942814, -0.944774, -0.946771, -0.948782, -0.950773, -0.952722,
-0.954628, -0.956521, -0.958439, -0.960408, -0.962426, -0.964458,
-0.966457, -0.968391, -0.970268, -0.972131, -0.974039, -0.97603,
-0.978095, -0.980173, -0.982184, -0.984079, -0.985871, -0.987652,
-0.989544, -0.991634, -0.993897, -0.996165, -0.998147, -0.999512,
-1, -0.999512, -0.998147, -0.996165, -0.993897, -0.991634,
-0.989544, -0.987652, -0.985871, -0.984079, -0.982184, -0.980173,
-0.978095, -0.97603, -0.974039, -0.972131, -0.970268, -0.968391,
-0.966457, -0.964458, -0.962426, -0.960408, -0.958439, -0.956521,
-0.954628, -0.952722, -0.950773, -0.948782, -0.946771, -0.944774,
-0.942814, -0.940891, -0.938983, -0.937061, -0.935105, -0.933118,
-0.931119, -0.929134, -0.927179, -0.925252, -0.923335, -0.921403,
-0.919444, -0.91746, -0.915469, -0.913492, -0.91154, -0.90961,
-0.907686, -0.905748, -0.903786, -0.901804, -0.899819, -0.897848,
-0.895898, -0.893966, -0.892036, -0.890093, -0.88813, -0.88615,
-0.88417, -0.882202, -0.880255, -0.878321, -0.876387, -0.87444,
-0.872475, -0.870498, -0.868521, -0.866557, -0.86461, -0.862674,
-0.860737, -0.858787, -0.856821, -0.854845, -0.852872, -0.85091,
-0.848964, -0.847027, -0.845087, -0.843135, -0.841168, -0.839194,
-0.837223, -0.835264, -0.833318, -0.83138, -0.829437, -0.827483,
-0.825516, -0.823543, -0.821574, -0.819617, -0.817672, -0.815732,
-0.813787, -0.811831, -0.809864, -0.807892, -0.805925, -0.80397,
-0.802025, -0.800084, -0.798137, -0.79618, -0.794212, -0.792242,
-0.790277, -0.788322, -0.786378, -0.784435, -0.782487, -0.780528,
-0.778561, -0.776591, -0.774628, -0.772675, -0.77073, -0.768787,
-0.766837, -0.764877, -0.762909, -0.760941, -0.758979, -0.757027,
-0.755083, -0.753138, -0.751187, -0.749226, -0.747258, -0.745291,
-0.743331, -0.74138, -0.739435, -0.737489, -0.735536, -0.733575,
-0.731608, -0.729642, -0.727683, -0.725732, -0.723787, -0.72184,
-0.719886, -0.717924, -0.715957, -0.713992, -0.712034, -0.710084,
-0.708138, -0.706191, -0.704236, -0.702273, -0.700306, -0.698343,
-0.696386, -0.694436, -0.69249, -0.690541, -0.688585, -0.686622,
-0.684656, -0.682693, -0.680737, -0.678788, -0.676842, -0.674892,
-0.672935, -0.670971, -0.669006, -0.667044, -0.665089, -0.66314,
-0.661193, -0.659242, -0.657284, -0.655321, -0.653356, -0.651395,
-0.649441, -0.647492, -0.645544, -0.643593, -0.641634, -0.63967,
-0.637706, -0.635746, -0.633792, -0.631844, -0.629896, -0.627943,
-0.625983, -0.62402, -0.622056, -0.620097, -0.618144, -0.616195,
-0.614247, -0.612293, -0.610333, -0.608369, -0.606406, -0.604448,
-0.602495, -0.600547, -0.598598, -0.596643, -0.594683, -0.592719,
-0.590756, -0.588799, -0.586847, -0.584899, -0.582948, -0.580993,
-0.579032, -0.577069, -0.575107, -0.57315, -0.571199, -0.56925,
-0.567299, -0.565343, -0.563382, -0.561418, -0.559457, -0.557501,
-0.55555, -0.553601, -0.55165, -0.549693, -0.547732, -0.545768,
-0.543808, -0.541852, -0.539902, -0.537953, -0.536001, -0.534043,
-0.532081, -0.530118, -0.528158, -0.526204, -0.524253, -0.522304,
-0.520351, -0.518393, -0.516431, -0.514468, -0.512509, -0.510555,
-0.508605, -0.506655, -0.504701, -0.502743, -0.500781, -0.498818,
-0.49686, -0.494906, -0.492956, -0.491006, -0.489052, -0.487093,
-0.48513, -0.483169, -0.481211, -0.479258, -0.477308, -0.475357,
-0.473402, -0.471443, -0.46948, -0.467519, -0.465562, -0.463609,
-0.461659, -0.459708, -0.457752, -0.455792, -0.45383, -0.451869,
-0.449913, -0.44796, -0.44601, -0.444059, -0.442103, -0.440142,
-0.43818, -0.43622, -0.434264, -0.432312, -0.430362, -0.428409,
-0.426453, -0.424492, -0.42253, -0.42057, -0.418615, -0.416663,
-0.414713, -0.41276, -0.410803, -0.408842, -0.40688, -0.404921,
-0.402966, -0.401014, -0.399064, -0.397111, -0.395153, -0.393192,
-0.39123, -0.389271, -0.387317, -0.385366, -0.383415, -0.381461,
-0.379503, -0.377542, -0.37558, -0.373622, -0.371668, -0.369717,
-0.367766, -0.365812, -0.363853, -0.361892, -0.359931, -0.357973,
-0.356019, -0.354068, -0.352117, -0.350162, -0.348203, -0.346242,
-0.344281, -0.342324, -0.340371, -0.33842, -0.336468, -0.334513,
-0.332553, -0.330592, -0.328631, -0.326675, -0.324722, -0.322771,
-0.320819, -0.318863, -0.316903, -0.314942, -0.312982, -0.311025,
-0.309073, -0.307122, -0.30517, -0.303213, -0.301253, -0.299292,
-0.297332, -0.295376, -0.293424, -0.291473, -0.28952, -0.287563,
-0.285603, -0.283642, -0.281683, -0.279727, -0.277776, -0.275824,
-0.273871, -0.271913, -0.269953, -0.267992, -0.266033, -0.264078,
-0.262127, -0.260175, -0.258222, -0.256264, -0.254303, -0.252342,
-0.250384, -0.24843, -0.246478, -0.244527, -0.242572, -0.240614,
-0.238653, -0.236692, -0.234735, -0.232781, -0.230829, -0.228877,
-0.226923, -0.224964, -0.223003, -0.221042, -0.219085, -0.217132,
-0.215181, -0.213228, -0.211273, -0.209314, -0.207353, -0.205393,
-0.203436, -0.201483, -0.199532, -0.197579, -0.195623, -0.193664,
-0.191703, -0.189743, -0.187787, -0.185834, -0.183883, -0.18193,
-0.179974, -0.178014, -0.176053, -0.174094, -0.172138, -0.170185,
-0.168234, -0.166281, -0.164324, -0.162364, -0.160403, -0.158444,
-0.156489, -0.154537, -0.152585, -0.150632, -0.148674, -0.146714,
-0.144753, -0.142795, -0.14084, -0.138888, -0.136936, -0.134982,
-0.133024, -0.131064, -0.129103, -0.127145, -0.125191, -0.123239,
-0.121287, -0.119333, -0.117375, -0.115414, -0.113453, -0.111496,
-0.109542, -0.10759, -0.105638, -0.103683, -0.101725, -0.0997639,
-0.0978037, -0.0958466, -0.093893, -0.0919414, -0.0899891, -0.0880337,
-0.0860748, -0.084114, -0.0821541, -0.0801973, -0.0782441, -0.0762926,
-0.07434, -0.0723842, -0.0704249, -0.068464, -0.0665044, -0.0645481,
-0.0625953, -0.0606438, -0.0586909, -0.0567345, -0.0547749, -0.0528141,
-0.0508548, -0.048899, -0.0469464, -0.0449949, -0.0430416, -0.0410849,
-0.0391249, -0.0371642, -0.0352053, -0.0332499, -0.0312976, -0.029346,
-0.0273924, -0.0254351, -0.023475, -0.0215143, -0.0195558, -0.0176009,
-0.0156488, -0.0136971, -0.011743, -0.00978537, -0.00782499, -0.00586444,
-0.00390635, -0.00195188
};
static const float WAVE_TRIANGLE_054[DEFAULT_WAVELEN] = {
0, 0.00196857, 0.00393568, 0.00590009, 0.00786098, 0.00981809,
0.0117718, 0.0137229, 0.0156727, 0.0176227, 0.0195743, 0.0215288,
0.0234868, 0.0254486, 0.0274138, 0.0293814, 0.0313501, 0.0333185,
0.035285, 0.0372486, 0.0392086, 0.0411648, 0.0431177, 0.0450683,
0.047018, 0.0489683, 0.0509205, 0.0528758, 0.0548347, 0.0567975,
0.0587634, 0.0607314, 0.0627002, 0.0646683, 0.0666342, 0.068597,
0.070556, 0.0725113, 0.0744635, 0.0764137, 0.0783634, 0.080314,
0.0822668, 0.0842229, 0.0861829, 0.0881465, 0.090113, 0.0920815,
0.0940503, 0.096018, 0.0979833, 0.0999452, 0.101903, 0.103858,
0.105809, 0.107759, 0.109709, 0.11166, 0.113613, 0.11557,
0.117531, 0.119496, 0.121463, 0.123432, 0.1254, 0.127368,
0.129332, 0.131293, 0.13325, 0.135204, 0.137155, 0.139104,
0.141054, 0.143006, 0.14496, 0.146918, 0.14888, 0.150845,
0.152813, 0.154782, 0.15675, 0.158717, 0.160681, 0.162641,
0.164597, 0.16655, 0.1685, 0.17045, 0.1724, 0.174352,
0.176307, 0.178266, 0.180228, 0.182194, 0.184163, 0.186132,
0.1881, 0.190067, 0.19203, 0.193989, 0.195944, 0.197896,
0.199846, 0.201795, 0.203745, 0.205698, 0.207654, 0.209613,
0.211577, 0.213544, 0.215513, 0.217482, 0.21945, 0.221416,
0.223378, 0.225336, 0.22729, 0.229242, 0.231191, 0.23314,
0.235091, 0.237044, 0.239001, 0.240962, 0.242926, 0.244894,
0.246863, 0.248833, 0.2508, 0.252765, 0.254726, 0.256683,
0.258637, 0.260587, 0.262536, 0.264485, 0.266436, 0.26839,
0.270348, 0.27231, 0.274275, 0.276244, 0.278214, 0.280183,
0.28215, 0.284114, 0.286075, 0.28803, 0.289983, 0.291933,
0.293881, 0.29583, 0.297782, 0.299736, 0.301695, 0.303658,
0.305625, 0.307594, 0.309564, 0.311533, 0.3135, 0.315463,
0.317422, 0.319377, 0.321329, 0.323278, 0.325226, 0.327175,
0.329127, 0.331083, 0.333043, 0.335007, 0.336975, 0.338944,
0.340915, 0.342884, 0.34485, 0.346812, 0.34877, 0.350724,
0.352674, 0.354623, 0.356571, 0.35852, 0.360473, 0.36243,
0.364391, 0.366356, 0.368324, 0.370295, 0.372265, 0.374234,
0.3762, 0.378161, 0.380118, 0.38207, 0.38402, 0.385968,
0.387916, 0.389866, 0.391819, 0.393776, 0.395739, 0.397705,
0.399675, 0.401645, 0.403616, 0.405584, 0.407549, 0.409509,
0.411465, 0.413417, 0.415365, 0.417312, 0.41926, 0.421211,
0.423165, 0.425123, 0.427087, 0.429054, 0.431025, 0.432996,
0.434967, 0.436935, 0.438899, 0.440858, 0.442812, 0.444762,
0.44671, 0.448657, 0.450605, 0.452556, 0.454511, 0.456471,
0.458435, 0.460404, 0.462375, 0.464347, 0.466318, 0.468285,
0.470248, 0.472206, 0.474159, 0.476108, 0.478055, 0.480001,
0.481949, 0.4839, 0.485857, 0.487818, 0.489784, 0.491754,
0.493726, 0.495699, 0.497669, 0.499636, 0.501598, 0.503554,
0.505506, 0.507453, 0.509399, 0.511345, 0.513293, 0.515245,
0.517203, 0.519165, 0.521133, 0.523104, 0.525078, 0.52705,
0.52902, 0.530986, 0.532947, 0.534902, 0.536852, 0.538798,
0.540743, 0.542689, 0.544637, 0.54659, 0.548549, 0.550513,
0.552483, 0.554455, 0.556429, 0.558402, 0.560372, 0.562337,
0.564296, 0.566249, 0.568198, 0.570143, 0.572087, 0.574032,
0.575981, 0.577935, 0.579895, 0.581861, 0.583832, 0.585806,
0.587781, 0.589754, 0.591724, 0.593688, 0.595645, 0.597597,
0.599543, 0.601487, 0.60343, 0.605375, 0.607325, 0.60928,
0.611242, 0.61321, 0.615182, 0.617158, 0.619134, 0.621107,
0.623076, 0.625038, 0.626994, 0.628944, 0.630888, 0.63283,
0.634773, 0.636718, 0.638668, 0.640625, 0.642588, 0.644558,
0.646533, 0.64851, 0.650487, 0.65246, 0.654428, 0.656389,
0.658343, 0.66029, 0.662233, 0.664173, 0.666115, 0.66806,
0.670011, 0.671969, 0.673935, 0.675907, 0.677885, 0.679863,
0.681841, 0.683814, 0.685781, 0.68774, 0.689692, 0.691636,
0.693576, 0.695515, 0.697456, 0.699401, 0.701353, 0.703313,
0.705282, 0.707257, 0.709237, 0.711217, 0.713196, 0.715169,
0.717135, 0.719091, 0.72104, 0.722982, 0.724919, 0.726856,
0.728796, 0.730741, 0.732695, 0.734657, 0.736629, 0.738608,
0.74059, 0.742573, 0.744552, 0.746525, 0.748489, 0.750443,
0.752388, 0.754326, 0.756261, 0.758195, 0.760134, 0.76208,
0.764035, 0.766001, 0.767977, 0.769959, 0.771945, 0.77393,
0.77591, 0.777882, 0.779844, 0.781795, 0.783736, 0.78567,
0.787601, 0.789532, 0.79147, 0.793417, 0.795375, 0.797344,
0.799324, 0.801311, 0.803302, 0.80529, 0.807271, 0.809242,
0.811201, 0.813148, 0.815083, 0.817012, 0.818938, 0.820866,
0.822803, 0.824751, 0.826712, 0.828687, 0.830673, 0.832666,
0.834662, 0.836653, 0.838636, 0.840606, 0.842561, 0.844501,
0.84643, 0.848351, 0.850271, 0.852195, 0.85413, 0.85608,
0.858046, 0.860028, 0.862023, 0.864025, 0.866027, 0.868024,
0.870008, 0.871976, 0.873925, 0.875856, 0.877774, 0.879685,
0.881596, 0.883515, 0.885448, 0.887401, 0.889374, 0.891367,
0.893375, 0.89539, 0.897404, 0.899407, 0.901393, 0.903357,
0.905296, 0.907214, 0.909115, 0.911009, 0.912906, 0.914815,
0.916747, 0.918705, 0.920692, 0.922704, 0.924734, 0.926772,
0.928804, 0.93082, 0.932808, 0.934763, 0.936684, 0.938574,
0.940443, 0.942305, 0.944174, 0.946067, 0.947996, 0.949969,
0.951985, 0.95404, 0.956121, 0.958209, 0.960283, 0.962324,
0.964313, 0.966241, 0.968107, 0.96992, 0.971698, 0.97347,
0.975265, 0.977118, 0.979056, 0.981096, 0.983241, 0.985479,
0.987775, 0.990078, 0.992318, 0.994417, 0.996288, 0.997848,
0.999022, 0.999752, 1, 0.999752, 0.999022, 0.997848,
0.996288, 0.994417, 0.992318, 0.990078, 0.987775, 0.985479,
0.983241, 0.981096, 0.979056, 0.977118, 0.975265, 0.97347,
0.971698, 0.96992, 0.968107, 0.966241, 0.964313, 0.962324,
0.960283, 0.958209, 0.956121, 0.95404, 0.951985, 0.949969,
0.947996, 0.946067, 0.944174, 0.942305, 0.940443, 0.938574,
0.936684, 0.934763, 0.932808, 0.93082, 0.928804, 0.926772,
0.924734, 0.922704, 0.920692, 0.918705, 0.916747, 0.914815,
0.912906, 0.911009, 0.909115, 0.907214, 0.905296, 0.903357,
0.901393, 0.899407, 0.897404, 0.89539, 0.893375, 0.891367,
0.889374, 0.887401, 0.885448, 0.883515, 0.881596, 0.879685,
0.877774, 0.875856, 0.873925, 0.871976, 0.870008, 0.868024,
0.866027, 0.864025, 0.862023, 0.860028, 0.858046, 0.85608,
0.85413, 0.852195, 0.850271, 0.848351, 0.84643, 0.844501,
0.842561, 0.840606, 0.838636, 0.836653, 0.834662, 0.832666,
0.830673, 0.828687, 0.826712, 0.824751, 0.822803, 0.820866,
0.818938, 0.817012, 0.815083, 0.813148, 0.811201, 0.809242,
0.807271, 0.80529, 0.803302, 0.801311, 0.799324, 0.797344,
0.795375, 0.793417, 0.79147, 0.789532, 0.787601, 0.78567,
0.783736, 0.781795, 0.779844, 0.777882, 0.77591, 0.77393,
0.771945, 0.769959, 0.767977, 0.766001, 0.764035, 0.76208,
0.760134, 0.758195, 0.756261, 0.754326, 0.752388, 0.750443,
0.748489, 0.746525, 0.744552, 0.742573, 0.74059, 0.738608,
0.736629, 0.734657, 0.732695, 0.730741, 0.728796, 0.726856,
0.724919, 0.722982, 0.72104, 0.719091, 0.717135, 0.715169,
0.713196, 0.711217, 0.709237, 0.707257, 0.705282, 0.703313,
0.701353, 0.699401, 0.697456, 0.695515, 0.693576, 0.691636,
0.689692, 0.68774, 0.685781, 0.683814, 0.681841, 0.679863,
0.677885, 0.675907, 0.673935, 0.671969, 0.670011, 0.66806,
0.666115, 0.664173, 0.662233, 0.66029, 0.658343, 0.656389,
0.654428, 0.65246, 0.650487, 0.64851, 0.646533, 0.644558,
0.642588, 0.640625, 0.638668, 0.636718, 0.634773, 0.63283,
0.630888, 0.628944, 0.626994, 0.625038, 0.623076, 0.621107,
0.619134, 0.617158, 0.615182, 0.61321, 0.611242, 0.60928,
0.607325, 0.605375, 0.60343, 0.601487, 0.599543, 0.597597,
0.595645, 0.593688, 0.591724, 0.589754, 0.587781, 0.585806,
0.583832, 0.581861, 0.579895, 0.577935, 0.575981, 0.574032,
0.572087, 0.570143, 0.568198, 0.566249, 0.564296, 0.562337,
0.560372, 0.558402, 0.556429, 0.554455, 0.552483, 0.550513,
0.548549, 0.54659, 0.544637, 0.542689, 0.540743, 0.538798,
0.536852, 0.534902, 0.532947, 0.530986, 0.52902, 0.52705,
0.525078, 0.523104, 0.521133, 0.519165, 0.517203, 0.515245,
0.513293, 0.511345, 0.509399, 0.507453, 0.505506, 0.503554,
0.501598, 0.499636, 0.497669, 0.495699, 0.493726, 0.491754,
0.489784, 0.487818, 0.485857, 0.4839, 0.481949, 0.480001,
0.478055, 0.476108, 0.474159, 0.472206, 0.470248, 0.468285,
0.466318, 0.464347, 0.462375, 0.460404, 0.458435, 0.456471,
0.454511, 0.452556, 0.450605, 0.448657, 0.44671, 0.444762,
0.442812, 0.440858, 0.438899, 0.436935, 0.434967, 0.432996,
0.431025, 0.429054, 0.427087, 0.425123, 0.423165, 0.421211,
0.41926, 0.417312, 0.415365, 0.413417, 0.411465, 0.409509,
0.407549, 0.405584, 0.403616, 0.401645, 0.399675, 0.397705,
0.395739, 0.393776, 0.391819, 0.389866, 0.387916, 0.385968,
0.38402, 0.38207, 0.380118, 0.378161, 0.3762, 0.374234,
0.372265, 0.370295, 0.368324, 0.366356, 0.364391, 0.36243,
0.360473, 0.35852, 0.356571, 0.354623, 0.352674, 0.350724,
0.34877, 0.346812, 0.34485, 0.342884, 0.340915, 0.338944,
0.336975, 0.335007, 0.333043, 0.331083, 0.329127, 0.327175,
0.325226, 0.323278, 0.321329, 0.319377, 0.317422, 0.315463,
0.3135, 0.311533, 0.309564, 0.307594, 0.305625, 0.303658,
0.301695, 0.299736, 0.297782, 0.29583, 0.293881, 0.291933,
0.289983, 0.28803, 0.286075, 0.284114, 0.28215, 0.280183,
0.278214, 0.276244, 0.274275, 0.27231, 0.270348, 0.26839,
0.266436, 0.264485, 0.262536, 0.260587, 0.258637, 0.256683,
0.254726, 0.252765, 0.2508, 0.248833, 0.246863, 0.244894,
0.242926, 0.240962, 0.239001, 0.237044, 0.235091, 0.23314,
0.231191, 0.229242, 0.22729, 0.225336, 0.223378, 0.221416,
0.21945, 0.217482, 0.215513, 0.213544, 0.211577, 0.209613,
0.207654, 0.205698, 0.203745, 0.201795, 0.199846, 0.197896,
0.195944, 0.193989, 0.19203, 0.190067, 0.1881, 0.186132,
0.184163, 0.182194, 0.180228, 0.178266, 0.176307, 0.174352,
0.1724, 0.17045, 0.1685, 0.16655, 0.164597, 0.162641,
0.160681, 0.158717, 0.15675, 0.154782, 0.152813, 0.150845,
0.14888, 0.146918, 0.14496, 0.143006, 0.141054, 0.139104,
0.137155, 0.135204, 0.13325, 0.131293, 0.129332, 0.127368,
0.1254, 0.123432, 0.121463, 0.119496, 0.117531, 0.11557,
0.113613, 0.11166, 0.109709, 0.107759, 0.105809, 0.103858,
0.101903, 0.0999452, 0.0979833, 0.096018, 0.0940503, 0.0920815,
0.090113, 0.0881465, 0.0861829, 0.0842229, 0.0822668, 0.080314,
0.0783634, 0.0764137, 0.0744635, 0.0725113, 0.070556, 0.068597,
0.0666342, 0.0646683, 0.0627002, 0.0607314, 0.0587634, 0.0567975,
0.0548347, 0.0528758, 0.0509205, 0.0489683, 0.047018, 0.0450683,
0.0431177, 0.0411648, 0.0392086, 0.0372486, 0.035285, 0.0333185,
0.0313501, 0.0293814, 0.0274138, 0.0254486, 0.0234868, 0.0215288,
0.0195743, 0.0176227, 0.0156727, 0.0137229, 0.0117718, 0.00981809,
0.00786098, 0.00590009, 0.00393568, 0.00196857, 0, -0.00196857,
-0.00393568, -0.00590009, -0.00786098, -0.00981809, -0.0117718, -0.0137229,
-0.0156727, -0.0176227, -0.0195743, -0.0215288, -0.0234868, -0.0254486,
-0.0274138, -0.0293814, -0.0313501, -0.0333185, -0.035285, -0.0372486,
-0.0392086, -0.0411648, -0.0431177, -0.0450683, -0.047018, -0.0489683,
-0.0509205, -0.0528758, -0.0548347, -0.0567975, -0.0587634, -0.0607314,
-0.0627002, -0.0646683, -0.0666342, -0.068597, -0.070556, -0.0725113,
-0.0744635, -0.0764137, -0.0783634, -0.080314, -0.0822668, -0.0842229,
-0.0861829, -0.0881465, -0.090113, -0.0920815, -0.0940503, -0.096018,
-0.0979833, -0.0999452, -0.101903, -0.103858, -0.105809, -0.107759,
-0.109709, -0.11166, -0.113613, -0.11557, -0.117531, -0.119496,
-0.121463, -0.123432, -0.1254, -0.127368, -0.129332, -0.131293,
-0.13325, -0.135204, -0.137155, -0.139104, -0.141054, -0.143006,
-0.14496, -0.146918, -0.14888, -0.150845, -0.152813, -0.154782,
-0.15675, -0.158717, -0.160681, -0.162641, -0.164597, -0.16655,
-0.1685, -0.17045, -0.1724, -0.174352, -0.176307, -0.178266,
-0.180228, -0.182194, -0.184163, -0.186132, -0.1881, -0.190067,
-0.19203, -0.193989, -0.195944, -0.197896, -0.199846, -0.201795,
-0.203745, -0.205698, -0.207654, -0.209613, -0.211577, -0.213544,
-0.215513, -0.217482, -0.21945, -0.221416, -0.223378, -0.225336,
-0.22729, -0.229242, -0.231191, -0.23314, -0.235091, -0.237044,
-0.239001, -0.240962, -0.242926, -0.244894, -0.246863, -0.248833,
-0.2508, -0.252765, -0.254726, -0.256683, -0.258637, -0.260587,
-0.262536, -0.264485, -0.266436, -0.26839, -0.270348, -0.27231,
-0.274275, -0.276244, -0.278214, -0.280183, -0.28215, -0.284114,
-0.286075, -0.28803, -0.289983, -0.291933, -0.293881, -0.29583,
-0.297782, -0.299736, -0.301695, -0.303658, -0.305625, -0.307594,
-0.309564, -0.311533, -0.3135, -0.315463, -0.317422, -0.319377,
-0.321329, -0.323278, -0.325226, -0.327175, -0.329127, -0.331083,
-0.333043, -0.335007, -0.336975, -0.338944, -0.340915, -0.342884,
-0.34485, -0.346812, -0.34877, -0.350724, -0.352674, -0.354623,
-0.356571, -0.35852, -0.360473, -0.36243, -0.364391, -0.366356,
-0.368324, -0.370295, -0.372265, -0.374234, -0.3762, -0.378161,
-0.380118, -0.38207, -0.38402, -0.385968, -0.387916, -0.389866,
-0.391819, -0.393776, -0.395739, -0.397705, -0.399675, -0.401645,
-0.403616, -0.405584, -0.407549, -0.409509, -0.411465, -0.413417,
-0.415365, -0.417312, -0.41926, -0.421211, -0.423165, -0.425123,
-0.427087, -0.429054, -0.431025, -0.432996, -0.434967, -0.436935,
-0.438899, -0.440858, -0.442812, -0.444762, -0.44671, -0.448657,
-0.450605, -0.452556, -0.454511, -0.456471, -0.458435, -0.460404,
-0.462375, -0.464347, -0.466318, -0.468285, -0.470248, -0.472206,
-0.474159, -0.476108, -0.478055, -0.480001, -0.481949, -0.4839,
-0.485857, -0.487818, -0.489784, -0.491754, -0.493726, -0.495699,
-0.497669, -0.499636, -0.501598, -0.503554, -0.505506, -0.507453,
-0.509399, -0.511345, -0.513293, -0.515245, -0.517203, -0.519165,
-0.521133, -0.523104, -0.525078, -0.52705, -0.52902, -0.530986,
-0.532947, -0.534902, -0.536852, -0.538798, -0.540743, -0.542689,
-0.544637, -0.54659, -0.548549, -0.550513, -0.552483, -0.554455,
-0.556429, -0.558402, -0.560372, -0.562337, -0.564296, -0.566249,
-0.568198, -0.570143, -0.572087, -0.574032, -0.575981, -0.577935,
-0.579895, -0.581861, -0.583832, -0.585806, -0.587781, -0.589754,
-0.591724, -0.593688, -0.595645, -0.597597, -0.599543, -0.601487,
-0.60343, -0.605375, -0.607325, -0.60928, -0.611242, -0.61321,
-0.615182, -0.617158, -0.619134, -0.621107, -0.623076, -0.625038,
-0.626994, -0.628944, -0.630888, -0.63283, -0.634773, -0.636718,
-0.638668, -0.640625, -0.642588, -0.644558, -0.646533, -0.64851,
-0.650487, -0.65246, -0.654428, -0.656389, -0.658343, -0.66029,
-0.662233, -0.664173, -0.666115, -0.66806, -0.670011, -0.671969,
-0.673935, -0.675907, -0.677885, -0.679863, -0.681841, -0.683814,
-0.685781, -0.68774, -0.689692, -0.691636, -0.693576, -0.695515,
-0.697456, -0.699401, -0.701353, -0.703313, -0.705282, -0.707257,
-0.709237, -0.711217, -0.713196, -0.715169, -0.717135, -0.719091,
-0.72104, -0.722982, -0.724919, -0.726856, -0.728796, -0.730741,
-0.732695, -0.734657, -0.736629, -0.738608, -0.74059, -0.742573,
-0.744552, -0.746525, -0.748489, -0.750443, -0.752388, -0.754326,
-0.756261, -0.758195, -0.760134, -0.76208, -0.764035, -0.766001,
-0.767977, -0.769959, -0.771945, -0.77393, -0.77591, -0.777882,
-0.779844, -0.781795, -0.783736, -0.78567, -0.787601, -0.789532,
-0.79147, -0.793417, -0.795375, -0.797344, -0.799324, -0.801311,
-0.803302, -0.80529, -0.807271, -0.809242, -0.811201, -0.813148,
-0.815083, -0.817012, -0.818938, -0.820866, -0.822803, -0.824751,
-0.826712, -0.828687, -0.830673, -0.832666, -0.834662, -0.836653,
-0.838636, -0.840606, -0.842561, -0.844501, -0.84643, -0.848351,
-0.850271, -0.852195, -0.85413, -0.85608, -0.858046, -0.860028,
-0.862023, -0.864025, -0.866027, -0.868024, -0.870008, -0.871976,
-0.873925, -0.875856, -0.877774, -0.879685, -0.881596, -0.883515,
-0.885448, -0.887401, -0.889374, -0.891367, -0.893375, -0.89539,
-0.897404, -0.899407, -0.901393, -0.903357, -0.905296, -0.907214,
-0.909115, -0.911009, -0.912906, -0.914815, -0.916747, -0.918705,
-0.920692, -0.922704, -0.924734, -0.926772, -0.928804, -0.93082,
-0.932808, -0.934763, -0.936684, -0.938574, -0.940443, -0.942305,
-0.944174, -0.946067, -0.947996, -0.949969, -0.951985, -0.95404,
-0.956121, -0.958209, -0.960283, -0.962324, -0.964313, -0.966241,
-0.968107, -0.96992, -0.971698, -0.97347, -0.975265, -0.977118,
-0.979056, -0.981096, -0.983241, -0.985479, -0.987775, -0.990078,
-0.992318, -0.994417, -0.996288, -0.997848, -0.999022, -0.999752,
-1, -0.999752, -0.999022, -0.997848, -0.996288, -0.994417,
-0.992318, -0.990078, -0.987775, -0.985479, -0.983241, -0.981096,
-0.979056, -0.977118, -0.975265, -0.97347, -0.971698, -0.96992,
-0.968107, -0.966241, -0.964313, -0.962324, -0.960283, -0.958209,
-0.956121, -0.95404, -0.951985, -0.949969, -0.947996, -0.946067,
-0.944174, -0.942305, -0.940443, -0.938574, -0.936684, -0.934763,
-0.932808, -0.93082, -0.928804, -0.926772, -0.924734, -0.922704,
-0.920692, -0.918705, -0.916747, -0.914815, -0.912906, -0.911009,
-0.909115, -0.907214, -0.905296, -0.903357, -0.901393, -0.899407,
-0.897404, -0.89539, -0.893375, -0.891367, -0.889374, -0.887401,
-0.885448, -0.883515, -0.881596, -0.879685, -0.877774, -0.875856,
-0.873925, -0.871976, -0.870008, -0.868024, -0.866027, -0.864025,
-0.862023, -0.860028, -0.858046, -0.85608, -0.85413, -0.852195,
-0.850271, -0.848351, -0.84643, -0.844501, -0.842561, -0.840606,
-0.838636, -0.836653, -0.834662, -0.832666, -0.830673, -0.828687,
-0.826712, -0.824751, -0.822803, -0.820866, -0.818938, -0.817012,
-0.815083, -0.813148, -0.811201, -0.809242, -0.807271, -0.80529,
-0.803302, -0.801311, -0.799324, -0.797344, -0.795375, -0.793417,
-0.79147, -0.789532, -0.787601, -0.78567, -0.783736, -0.781795,
-0.779844, -0.777882, -0.77591, -0.77393, -0.771945, -0.769959,
-0.767977, -0.766001, -0.764035, -0.76208, -0.760134, -0.758195,
-0.756261, -0.754326, -0.752388, -0.750443, -0.748489, -0.746525,
-0.744552, -0.742573, -0.74059, -0.738608, -0.736629, -0.734657,
-0.732695, -0.730741, -0.728796, -0.726856, -0.724919, -0.722982,
-0.72104, -0.719091, -0.717135, -0.715169, -0.713196, -0.711217,
-0.709237, -0.707257, -0.705282, -0.703313, -0.701353, -0.699401,
-0.697456, -0.695515, -0.693576, -0.691636, -0.689692, -0.68774,
-0.685781, -0.683814, -0.681841, -0.679863, -0.677885, -0.675907,
-0.673935, -0.671969, -0.670011, -0.66806, -0.666115, -0.664173,
-0.662233, -0.66029, -0.658343, -0.656389, -0.654428, -0.65246,
-0.650487, -0.64851, -0.646533, -0.644558, -0.642588, -0.640625,
-0.638668, -0.636718, -0.634773, -0.63283, -0.630888, -0.628944,
-0.626994, -0.625038, -0.623076, -0.621107, -0.619134, -0.617158,
-0.615182, -0.61321, -0.611242, -0.60928, -0.607325, -0.605375,
-0.60343, -0.601487, -0.599543, -0.597597, -0.595645, -0.593688,
-0.591724, -0.589754, -0.587781, -0.585806, -0.583832, -0.581861,
-0.579895, -0.577935, -0.575981, -0.574032, -0.572087, -0.570143,
-0.568198, -0.566249, -0.564296, -0.562337, -0.560372, -0.558402,
-0.556429, -0.554455, -0.552483, -0.550513, -0.548549, -0.54659,
-0.544637, -0.542689, -0.540743, -0.538798, -0.536852, -0.534902,
-0.532947, -0.530986, -0.52902, -0.52705, -0.525078, -0.523104,
-0.521133, -0.519165, -0.517203, -0.515245, -0.513293, -0.511345,
-0.509399, -0.507453, -0.505506, -0.503554, -0.501598, -0.499636,
-0.497669, -0.495699, -0.493726, -0.491754, -0.489784, -0.487818,
-0.485857, -0.4839, -0.481949, -0.480001, -0.478055, -0.476108,
-0.474159, -0.472206, -0.470248, -0.468285, -0.466318, -0.464347,
-0.462375, -0.460404, -0.458435, -0.456471, -0.454511, -0.452556,
-0.450605, -0.448657, -0.44671, -0.444762, -0.442812, -0.440858,
-0.438899, -0.436935, -0.434967, -0.432996, -0.431025, -0.429054,
-0.427087, -0.425123, -0.423165, -0.421211, -0.41926, -0.417312,
-0.415365, -0.413417, -0.411465, -0.409509, -0.407549, -0.405584,
-0.403616, -0.401645, -0.399675, -0.397705, -0.395739, -0.393776,
-0.391819, -0.389866, -0.387916, -0.385968, -0.38402, -0.38207,
-0.380118, -0.378161, -0.3762, -0.374234, -0.372265, -0.370295,
-0.368324, -0.366356, -0.364391, -0.36243, -0.360473, -0.35852,
-0.356571, -0.354623, -0.352674, -0.350724, -0.34877, -0.346812,
-0.34485, -0.342884, -0.340915, -0.338944, -0.336975, -0.335007,
-0.333043, -0.331083, -0.329127, -0.327175, -0.325226, -0.323278,
-0.321329, -0.319377, -0.317422, -0.315463, -0.3135, -0.311533,
-0.309564, -0.307594, -0.305625, -0.303658, -0.301695, -0.299736,
-0.297782, -0.29583, -0.293881, -0.291933, -0.289983, -0.28803,
-0.286075, -0.284114, -0.28215, -0.280183, -0.278214, -0.276244,
-0.274275, -0.27231, -0.270348, -0.26839, -0.266436, -0.264485,
-0.262536, -0.260587, -0.258637, -0.256683, -0.254726, -0.252765,
-0.2508, -0.248833, -0.246863, -0.244894, -0.242926, -0.240962,
-0.239001, -0.237044, -0.235091, -0.23314, -0.231191, -0.229242,
-0.22729, -0.225336, -0.223378, -0.221416, -0.21945, -0.217482,
-0.215513, -0.213544, -0.211577, -0.209613, -0.207654, -0.205698,
-0.203745, -0.201795, -0.199846, -0.197896, -0.195944, -0.193989,
-0.19203, -0.190067, -0.1881, -0.186132, -0.184163, -0.182194,
-0.180228, -0.178266, -0.176307, -0.174352, -0.1724, -0.17045,
-0.1685, -0.16655, -0.164597, -0.162641, -0.160681, -0.158717,
-0.15675, -0.154782, -0.152813, -0.150845, -0.14888, -0.146918,
-0.14496, -0.143006, -0.141054, -0.139104, -0.137155, -0.135204,
-0.13325, -0.131293, -0.129332, -0.127368, -0.1254, -0.123432,
-0.121463, -0.119496, -0.117531, -0.11557, -0.113613, -0.11166,
-0.109709, -0.107759, -0.105809, -0.103858, -0.101903, -0.0999452,
-0.0979833, -0.096018, -0.0940503, -0.0920815, -0.090113, -0.0881465,
-0.0861829, -0.0842229, -0.0822668, -0.080314, -0.0783634, -0.0764137,
-0.0744635, -0.0725113, -0.070556, -0.068597, -0.0666342, -0.0646683,
-0.0627002, -0.0607314, -0.0587634, -0.0567975, -0.0548347, -0.0528758,
-0.0509205, -0.0489683, -0.047018, -0.0450683, -0.0431177, -0.0411648,
-0.0392086, -0.0372486, -0.035285, -0.0333185, -0.0313501, -0.0293814,
-0.0274138, -0.0254486, -0.0234868, -0.0215288, -0.0195743, -0.0176227,
-0.0156727, -0.0137229, -0.0117718, -0.00981809, -0.00786098, -0.00590009,
-0.00393568, -0.00196857
};
static const float WAVE_TRIANGLE_066[DEFAULT_WAVELEN] = {
0, 0.00194615, 0.00389305, 0.00584141, 0.00779189, 0.00974508,
0.0117015, 0.0136614, 0.015625, 0.0175925, 0.0195638, 0.0215386,
0.0235165, 0.0254972, 0.02748, 0.0294643, 0.0314493, 0.0334343,
0.0354186, 0.0374014, 0.039382, 0.04136, 0.0433348, 0.045306,
0.0472735, 0.0492371, 0.051197, 0.0531533, 0.0551064, 0.0570568,
0.0590051, 0.0609519, 0.062898, 0.064844, 0.0667908, 0.0687391,
0.0706895, 0.0726427, 0.074599, 0.0765589, 0.0785226, 0.0804901,
0.0824614, 0.0844363, 0.0864144, 0.0883953, 0.0903782, 0.0923627,
0.0943479, 0.0963331, 0.0983175, 0.100301, 0.102281, 0.104259,
0.106234, 0.108206, 0.110173, 0.112137, 0.114096, 0.116052,
0.118005, 0.119956, 0.121904, 0.12385, 0.125796, 0.127742,
0.129688, 0.131636, 0.133586, 0.135539, 0.137496, 0.139455,
0.141419, 0.143387, 0.145358, 0.147333, 0.149312, 0.151293,
0.153276, 0.155261, 0.157246, 0.159232, 0.161217, 0.1632,
0.165181, 0.16716, 0.169135, 0.171106, 0.173073, 0.175037,
0.176997, 0.178953, 0.180905, 0.182855, 0.184803, 0.186749,
0.188694, 0.190639, 0.192585, 0.194533, 0.196483, 0.198435,
0.200391, 0.202351, 0.204315, 0.206282, 0.208254, 0.210229,
0.212208, 0.21419, 0.216174, 0.218159, 0.220145, 0.222131,
0.224117, 0.226101, 0.228082, 0.230061, 0.232036, 0.234008,
0.235975, 0.237939, 0.239898, 0.241853, 0.243806, 0.245755,
0.247702, 0.249647, 0.251592, 0.253536, 0.255482, 0.257429,
0.259378, 0.26133, 0.263286, 0.265245, 0.267209, 0.269177,
0.271149, 0.273124, 0.275104, 0.277086, 0.279071, 0.281057,
0.283044, 0.285031, 0.287017, 0.289002, 0.290984, 0.292963,
0.294939, 0.296911, 0.298878, 0.300841, 0.3028, 0.304756,
0.306707, 0.308655, 0.310602, 0.312546, 0.314489, 0.316433,
0.318377, 0.320324, 0.322272, 0.324224, 0.326179, 0.328138,
0.330102, 0.33207, 0.334042, 0.336018, 0.337998, 0.339981,
0.341967, 0.343954, 0.345943, 0.347931, 0.349918, 0.351904,
0.353887, 0.355867, 0.357843, 0.359815, 0.361783, 0.363746,
0.365704, 0.367659, 0.36961, 0.371557, 0.373502, 0.375445,
0.377387, 0.379329, 0.381272, 0.383217, 0.385165, 0.387116,
0.38907, 0.391029, 0.392993, 0.394961, 0.396934, 0.398911,
0.400892, 0.402876, 0.404863, 0.406852, 0.408842, 0.410831,
0.41282, 0.414807, 0.416792, 0.418772, 0.420749, 0.422722,
0.424689, 0.426652, 0.42861, 0.430564, 0.432513, 0.434459,
0.436403, 0.438344, 0.440285, 0.442225, 0.444167, 0.44611,
0.448056, 0.450006, 0.451959, 0.453918, 0.455881, 0.45785,
0.459823, 0.461801, 0.463784, 0.46577, 0.467758, 0.469749,
0.471741, 0.473733, 0.475723, 0.477712, 0.479698, 0.48168,
0.483658, 0.485631, 0.487599, 0.489561, 0.491519, 0.493471,
0.495419, 0.497363, 0.499305, 0.501244, 0.503182, 0.50512,
0.507059, 0.509, 0.510945, 0.512893, 0.514846, 0.516803,
0.518767, 0.520736, 0.52271, 0.524689, 0.526673, 0.528661,
0.530653, 0.532646, 0.53464, 0.536635, 0.538628, 0.540619,
0.542607, 0.544591, 0.54657, 0.548544, 0.550512, 0.552474,
0.55443, 0.556381, 0.558327, 0.560269, 0.562207, 0.564144,
0.566079, 0.568014, 0.56995, 0.571888, 0.57383, 0.575776,
0.577728, 0.579685, 0.581648, 0.583617, 0.585592, 0.587574,
0.58956, 0.591551, 0.593546, 0.595542, 0.597541, 0.599539,
0.601536, 0.60353, 0.605521, 0.607507, 0.609488, 0.611462,
0.61343, 0.615392, 0.617347, 0.619296, 0.621239, 0.623177,
0.625112, 0.627044, 0.628974, 0.630905, 0.632837, 0.634772,
0.63671, 0.638654, 0.640603, 0.642559, 0.644522, 0.646492,
0.648469, 0.650453, 0.652443, 0.654438, 0.656437, 0.658439,
0.660442, 0.662445, 0.664447, 0.666446, 0.668441, 0.67043,
0.672413, 0.674389, 0.676357, 0.678318, 0.680271, 0.682217,
0.684156, 0.686089, 0.688018, 0.689944, 0.691869, 0.693793,
0.695719, 0.697648, 0.699582, 0.701522, 0.703469, 0.705423,
0.707386, 0.709357, 0.711336, 0.713324, 0.715319, 0.717319,
0.719325, 0.721334, 0.723345, 0.725356, 0.727365, 0.729371,
0.731372, 0.733366, 0.735352, 0.73733, 0.739299, 0.741258,
0.743207, 0.745148, 0.747081, 0.749008, 0.750928, 0.752845,
0.75476, 0.756675, 0.758592, 0.760513, 0.762439, 0.764373,
0.766315, 0.768268, 0.77023, 0.772203, 0.774187, 0.77618,
0.778183, 0.780193, 0.78221, 0.784231, 0.786254, 0.788277,
0.790297, 0.792314, 0.794324, 0.796325, 0.798317, 0.800297,
0.802266, 0.804223, 0.806167, 0.8081, 0.810023, 0.811936,
0.813843, 0.815744, 0.817643, 0.819542, 0.821444, 0.823351,
0.825265, 0.827189, 0.829125, 0.831073, 0.833036, 0.835013,
0.837004, 0.839008, 0.841025, 0.843053, 0.845089, 0.847131,
0.849176, 0.85122, 0.853262, 0.855298, 0.857324, 0.859339,
0.86134, 0.863325, 0.865293, 0.867244, 0.869178, 0.871094,
0.872996, 0.874885, 0.876763, 0.878634, 0.880501, 0.882368,
0.884239, 0.886118, 0.888008, 0.889913, 0.891836, 0.893779,
0.895743, 0.89773, 0.899739, 0.901769, 0.903819, 0.905886,
0.907967, 0.910058, 0.912153, 0.914248, 0.916338, 0.918418,
0.920482, 0.922526, 0.924546, 0.926538, 0.928501, 0.930432,
0.932331, 0.934201, 0.936042, 0.937859, 0.939656, 0.941438,
0.943214, 0.94499, 0.946773, 0.948572, 0.950396, 0.952251,
0.954144, 0.956082, 0.958069, 0.960108, 0.9622, 0.964345,
0.966539, 0.968777, 0.971051, 0.973352, 0.975667, 0.977982,
0.98028, 0.982544, 0.984755, 0.986892, 0.988934, 0.99086,
0.992651, 0.994285, 0.995743, 0.997009, 0.998068, 0.998905,
0.999511, 0.999877, 1, 0.999877, 0.999511, 0.998905,
0.998068, 0.997009, 0.995743, 0.994285, 0.992651, 0.99086,
0.988934, 0.986892, 0.984755, 0.982544, 0.98028, 0.977982,
0.975667, 0.973352, 0.971051, 0.968777, 0.966539, 0.964345,
0.9622, 0.960108, 0.958069, 0.956082, 0.954144, 0.952251,
0.950396, 0.948572, 0.946773, 0.94499, 0.943214, 0.941438,
0.939656, 0.937859, 0.936042, 0.934201, 0.932331, 0.930432,
0.928501, 0.926538, 0.924546, 0.922526, 0.920482, 0.918418,
0.916338, 0.914248, 0.912153, 0.910058, 0.907967, 0.905886,
0.903819, 0.901769, 0.899739, 0.89773, 0.895743, 0.893779,
0.891836, 0.889913, 0.888008, 0.886118, 0.884239, 0.882368,
0.880501, 0.878634, 0.876763, 0.874885, 0.872996, 0.871094,
0.869178, 0.867244, 0.865293, 0.863325, 0.86134, 0.859339,
0.857324, 0.855298, 0.853262, 0.85122, 0.849176, 0.847131,
0.845089, 0.843053, 0.841025, 0.839008, 0.837004, 0.835013,
0.833036, 0.831073, 0.829125, 0.827189, 0.825265, 0.823351,
0.821444, 0.819542, 0.817643, 0.815744, 0.813843, 0.811936,
0.810023, 0.8081, 0.806167, 0.804223, 0.802266, 0.800297,
0.798317, 0.796325, 0.794324, 0.792314, 0.790297, 0.788277,
0.786254, 0.784231, 0.78221, 0.780193, 0.778183, 0.77618,
0.774187, 0.772203, 0.77023, 0.768268, 0.766315, 0.764373,
0.762439, 0.760513, 0.758592, 0.756675, 0.75476, 0.752845,
0.750928, 0.749008, 0.747081, 0.745148, 0.743207, 0.741258,
0.739299, 0.73733, 0.735352, 0.733366, 0.731372, 0.729371,
0.727365, 0.725356, 0.723345, 0.721334, 0.719325, 0.717319,
0.715319, 0.713324, 0.711336, 0.709357, 0.707386, 0.705423,
0.703469, 0.701522, 0.699582, 0.697648, 0.695719, 0.693793,
0.691869, 0.689944, 0.688018, 0.686089, 0.684156, 0.682217,
0.680271, 0.678318, 0.676357, 0.674389, 0.672413, 0.67043,
0.668441, 0.666446, 0.664447, 0.662445, 0.660442, 0.658439,
0.656437, 0.654438, 0.652443, 0.650453, 0.648469, 0.646492,
0.644522, 0.642559, 0.640603, 0.638654, 0.63671, 0.634772,
0.632837, 0.630905, 0.628974, 0.627044, 0.625112, 0.623177,
0.621239, 0.619296, 0.617347, 0.615392, 0.61343, 0.611462,
0.609488, 0.607507, 0.605521, 0.60353, 0.601536, 0.599539,
0.597541, 0.595542, 0.593546, 0.591551, 0.58956, 0.587574,
0.585592, 0.583617, 0.581648, 0.579685, 0.577728, 0.575776,
0.57383, 0.571888, 0.56995, 0.568014, 0.566079, 0.564144,
0.562207, 0.560269, 0.558327, 0.556381, 0.55443, 0.552474,
0.550512, 0.548544, 0.54657, 0.544591, 0.542607, 0.540619,
0.538628, 0.536635, 0.53464, 0.532646, 0.530653, 0.528661,
0.526673, 0.524689, 0.52271, 0.520736, 0.518767, 0.516803,
0.514846, 0.512893, 0.510945, 0.509, 0.507059, 0.50512,
0.503182, 0.501244, 0.499305, 0.497363, 0.495419, 0.493471,
0.491519, 0.489561, 0.487599, 0.485631, 0.483658, 0.48168,
0.479698, 0.477712, 0.475723, 0.473733, 0.471741, 0.469749,
0.467758, 0.46577, 0.463784, 0.461801, 0.459823, 0.45785,
0.455881, 0.453918, 0.451959, 0.450006, 0.448056, 0.44611,
0.444167, 0.442225, 0.440285, 0.438344, 0.436403, 0.434459,
0.432513, 0.430564, 0.42861, 0.426652, 0.424689, 0.422722,
0.420749, 0.418772, 0.416792, 0.414807, 0.41282, 0.410831,
0.408842, 0.406852, 0.404863, 0.402876, 0.400892, 0.398911,
0.396934, 0.394961, 0.392993, 0.391029, 0.38907, 0.387116,
0.385165, 0.383217, 0.381272, 0.379329, 0.377387, 0.375445,
0.373502, 0.371557, 0.36961, 0.367659, 0.365704, 0.363746,
0.361783, 0.359815, 0.357843, 0.355867, 0.353887, 0.351904,
0.349918, 0.347931, 0.345943, 0.343954, 0.341967, 0.339981,
0.337998, 0.336018, 0.334042, 0.33207, 0.330102, 0.328138,
0.326179, 0.324224, 0.322272, 0.320324, 0.318377, 0.316433,
0.314489, 0.312546, 0.310602, 0.308655, 0.306707, 0.304756,
0.3028, 0.300841, 0.298878, 0.296911, 0.294939, 0.292963,
0.290984, 0.289002, 0.287017, 0.285031, 0.283044, 0.281057,
0.279071, 0.277086, 0.275104, 0.273124, 0.271149, 0.269177,
0.267209, 0.265245, 0.263286, 0.26133, 0.259378, 0.257429,
0.255482, 0.253536, 0.251592, 0.249647, 0.247702, 0.245755,
0.243806, 0.241853, 0.239898, 0.237939, 0.235975, 0.234008,
0.232036, 0.230061, 0.228082, 0.226101, 0.224117, 0.222131,
0.220145, 0.218159, 0.216174, 0.21419, 0.212208, 0.210229,
0.208254, 0.206282, 0.204315, 0.202351, 0.200391, 0.198435,
0.196483, 0.194533, 0.192585, 0.190639, 0.188694, 0.186749,
0.184803, 0.182855, 0.180905, 0.178953, 0.176997, 0.175037,
0.173073, 0.171106, 0.169135, 0.16716, 0.165181, 0.1632,
0.161217, 0.159232, 0.157246, 0.155261, 0.153276, 0.151293,
0.149312, 0.147333, 0.145358, 0.143387, 0.141419, 0.139455,
0.137496, 0.135539, 0.133586, 0.131636, 0.129688, 0.127742,
0.125796, 0.12385, 0.121904, 0.119956, 0.118005, 0.116052,
0.114096, 0.112137, 0.110173, 0.108206, 0.106234, 0.104259,
0.102281, 0.100301, 0.0983175, 0.0963331, 0.0943479, 0.0923627,
0.0903782, 0.0883953, 0.0864144, 0.0844363, 0.0824614, 0.0804901,
0.0785226, 0.0765589, 0.074599, 0.0726427, 0.0706895, 0.0687391,
0.0667908, 0.064844, 0.062898, 0.0609519, 0.0590051, 0.0570568,
0.0551064, 0.0531533, 0.051197, 0.0492371, 0.0472735, 0.045306,
0.0433348, 0.04136, 0.039382, 0.0374014, 0.0354186, 0.0334343,
0.0314493, 0.0294643, 0.02748, 0.0254972, 0.0235165, 0.0215386,
0.0195638, 0.0175925, 0.015625, 0.0136614, 0.0117015, 0.00974508,
0.00779189, 0.00584141, 0.00389305, 0.00194615, 0, -0.00194615,
-0.00389305, -0.00584141, -0.00779189, -0.00974508, -0.0117015, -0.0136614,
-0.015625, -0.0175925, -0.0195638, -0.0215386, -0.0235165, -0.0254972,
-0.02748, -0.0294643, -0.0314493, -0.0334343, -0.0354186, -0.0374014,
-0.039382, -0.04136, -0.0433348, -0.045306, -0.0472735, -0.0492371,
-0.051197, -0.0531533, -0.0551064, -0.0570568, -0.0590051, -0.0609519,
-0.062898, -0.064844, -0.0667908, -0.0687391, -0.0706895, -0.0726427,
-0.074599, -0.0765589, -0.0785226, -0.0804901, -0.0824614, -0.0844363,
-0.0864144, -0.0883953, -0.0903782, -0.0923627, -0.0943479, -0.0963331,
-0.0983175, -0.100301, -0.102281, -0.104259, -0.106234, -0.108206,
-0.110173, -0.112137, -0.114096, -0.116052, -0.118005, -0.119956,
-0.121904, -0.12385, -0.125796, -0.127742, -0.129688, -0.131636,
-0.133586, -0.135539, -0.137496, -0.139455, -0.141419, -0.143387,
-0.145358, -0.147333, -0.149312, -0.151293, -0.153276, -0.155261,
-0.157246, -0.159232, -0.161217, -0.1632, -0.165181, -0.16716,
-0.169135, -0.171106, -0.173073, -0.175037, -0.176997, -0.178953,
-0.180905, -0.182855, -0.184803, -0.186749, -0.188694, -0.190639,
-0.192585, -0.194533, -0.196483, -0.198435, -0.200391, -0.202351,
-0.204315, -0.206282, -0.208254, -0.210229, -0.212208, -0.21419,
-0.216174, -0.218159, -0.220145, -0.222131, -0.224117, -0.226101,
-0.228082, -0.230061, -0.232036, -0.234008, -0.235975, -0.237939,
-0.239898, -0.241853, -0.243806, -0.245755, -0.247702, -0.249647,
-0.251592, -0.253536, -0.255482, -0.257429, -0.259378, -0.26133,
-0.263286, -0.265245, -0.267209, -0.269177, -0.271149, -0.273124,
-0.275104, -0.277086, -0.279071, -0.281057, -0.283044, -0.285031,
-0.287017, -0.289002, -0.290984, -0.292963, -0.294939, -0.296911,
-0.298878, -0.300841, -0.3028, -0.304756, -0.306707, -0.308655,
-0.310602, -0.312546, -0.314489, -0.316433, -0.318377, -0.320324,
-0.322272, -0.324224, -0.326179, -0.328138, -0.330102, -0.33207,
-0.334042, -0.336018, -0.337998, -0.339981, -0.341967, -0.343954,
-0.345943, -0.347931, -0.349918, -0.351904, -0.353887, -0.355867,
-0.357843, -0.359815, -0.361783, -0.363746, -0.365704, -0.367659,
-0.36961, -0.371557, -0.373502, -0.375445, -0.377387, -0.379329,
-0.381272, -0.383217, -0.385165, -0.387116, -0.38907, -0.391029,
-0.392993, -0.394961, -0.396934, -0.398911, -0.400892, -0.402876,
-0.404863, -0.406852, -0.408842, -0.410831, -0.41282, -0.414807,
-0.416792, -0.418772, -0.420749, -0.422722, -0.424689, -0.426652,
-0.42861, -0.430564, -0.432513, -0.434459, -0.436403, -0.438344,
-0.440285, -0.442225, -0.444167, -0.44611, -0.448056, -0.450006,
-0.451959, -0.453918, -0.455881, -0.45785, -0.459823, -0.461801,
-0.463784, -0.46577, -0.467758, -0.469749, -0.471741, -0.473733,
-0.475723, -0.477712, -0.479698, -0.48168, -0.483658, -0.485631,
-0.487599, -0.489561, -0.491519, -0.493471, -0.495419, -0.497363,
-0.499305, -0.501244, -0.503182, -0.50512, -0.507059, -0.509,
-0.510945, -0.512893, -0.514846, -0.516803, -0.518767, -0.520736,
-0.52271, -0.524689, -0.526673, -0.528661, -0.530653, -0.532646,
-0.53464, -0.536635, -0.538628, -0.540619, -0.542607, -0.544591,
-0.54657, -0.548544, -0.550512, -0.552474, -0.55443, -0.556381,
-0.558327, -0.560269, -0.562207, -0.564144, -0.566079, -0.568014,
-0.56995, -0.571888, -0.57383, -0.575776, -0.577728, -0.579685,
-0.581648, -0.583617, -0.585592, -0.587574, -0.58956, -0.591551,
-0.593546, -0.595542, -0.597541, -0.599539, -0.601536, -0.60353,
-0.605521, -0.607507, -0.609488, -0.611462, -0.61343, -0.615392,
-0.617347, -0.619296, -0.621239, -0.623177, -0.625112, -0.627044,
-0.628974, -0.630905, -0.632837, -0.634772, -0.63671, -0.638654,
-0.640603, -0.642559, -0.644522, -0.646492, -0.648469, -0.650453,
-0.652443, -0.654438, -0.656437, -0.658439, -0.660442, -0.662445,
-0.664447, -0.666446, -0.668441, -0.67043, -0.672413, -0.674389,
-0.676357, -0.678318, -0.680271, -0.682217, -0.684156, -0.686089,
-0.688018, -0.689944, -0.691869, -0.693793, -0.695719, -0.697648,
-0.699582, -0.701522, -0.703469, -0.705423, -0.707386, -0.709357,
-0.711336, -0.713324, -0.715319, -0.717319, -0.719325, -0.721334,
-0.723345, -0.725356, -0.727365, -0.729371, -0.731372, -0.733366,
-0.735352, -0.73733, -0.739299, -0.741258, -0.743207, -0.745148,
-0.747081, -0.749008, -0.750928, -0.752845, -0.75476, -0.756675,
-0.758592, -0.760513, -0.762439, -0.764373, -0.766315, -0.768268,
-0.77023, -0.772203, -0.774187, -0.77618, -0.778183, -0.780193,
-0.78221, -0.784231, -0.786254, -0.788277, -0.790297, -0.792314,
-0.794324, -0.796325, -0.798317, -0.800297, -0.802266, -0.804223,
-0.806167, -0.8081, -0.810023, -0.811936, -0.813843, -0.815744,
-0.817643, -0.819542, -0.821444, -0.823351, -0.825265, -0.827189,
-0.829125, -0.831073, -0.833036, -0.835013, -0.837004, -0.839008,
-0.841025, -0.843053, -0.845089, -0.847131, -0.849176, -0.85122,
-0.853262, -0.855298, -0.857324, -0.859339, -0.86134, -0.863325,
-0.865293, -0.867244, -0.869178, -0.871094, -0.872996, -0.874885,
-0.876763, -0.878634, -0.880501, -0.882368, -0.884239, -0.886118,
-0.888008, -0.889913, -0.891836, -0.893779, -0.895743, -0.89773,
-0.899739, -0.901769, -0.903819, -0.905886, -0.907967, -0.910058,
-0.912153, -0.914248, -0.916338, -0.918418, -0.920482, -0.922526,
-0.924546, -0.926538, -0.928501, -0.930432, -0.932331, -0.934201,
-0.936042, -0.937859, -0.939656, -0.941438, -0.943214, -0.94499,
-0.946773, -0.948572, -0.950396, -0.952251, -0.954144, -0.956082,
-0.958069, -0.960108, -0.9622, -0.964345, -0.966539, -0.968777,
-0.971051, -0.973352, -0.975667, -0.977982, -0.98028, -0.982544,
-0.984755, -0.986892, -0.988934, -0.99086, -0.992651, -0.994285,
-0.995743, -0.997009, -0.998068, -0.998905, -0.999511, -0.999877,
-1, -0.999877, -0.999511, -0.998905, -0.998068, -0.997009,
-0.995743, -0.994285, -0.992651, -0.99086, -0.988934, -0.986892,
-0.984755, -0.982544, -0.98028, -0.977982, -0.975667, -0.973352,
-0.971051, -0.968777, -0.966539, -0.964345, -0.9622, -0.960108,
-0.958069, -0.956082, -0.954144, -0.952251, -0.950396, -0.948572,
-0.946773, -0.94499, -0.943214, -0.941438, -0.939656, -0.937859,
-0.936042, -0.934201, -0.932331, -0.930432, -0.928501, -0.926538,
-0.924546, -0.922526, -0.920482, -0.918418, -0.916338, -0.914248,
-0.912153, -0.910058, -0.907967, -0.905886, -0.903819, -0.901769,
-0.899739, -0.89773, -0.895743, -0.893779, -0.891836, -0.889913,
-0.888008, -0.886118, -0.884239, -0.882368, -0.880501, -0.878634,
-0.876763, -0.874885, -0.872996, -0.871094, -0.869178, -0.867244,
-0.865293, -0.863325, -0.86134, -0.859339, -0.857324, -0.855298,
-0.853262, -0.85122, -0.849176, -0.847131, -0.845089, -0.843053,
-0.841025, -0.839008, -0.837004, -0.835013, -0.833036, -0.831073,
-0.829125, -0.827189, -0.825265, -0.823351, -0.821444, -0.819542,
-0.817643, -0.815744, -0.813843, -0.811936, -0.810023, -0.8081,
-0.806167, -0.804223, -0.802266, -0.800297, -0.798317, -0.796325,
-0.794324, -0.792314, -0.790297, -0.788277, -0.786254, -0.784231,
-0.78221, -0.780193, -0.778183, -0.77618, -0.774187, -0.772203,
-0.77023, -0.768268, -0.766315, -0.764373, -0.762439, -0.760513,
-0.758592, -0.756675, -0.75476, -0.752845, -0.750928, -0.749008,
-0.747081, -0.745148, -0.743207, -0.741258, -0.739299, -0.73733,
-0.735352, -0.733366, -0.731372, -0.729371, -0.727365, -0.725356,
-0.723345, -0.721334, -0.719325, -0.717319, -0.715319, -0.713324,
-0.711336, -0.709357, -0.707386, -0.705423, -0.703469, -0.701522,
-0.699582, -0.697648, -0.695719, -0.693793, -0.691869, -0.689944,
-0.688018, -0.686089, -0.684156, -0.682217, -0.680271, -0.678318,
-0.676357, -0.674389, -0.672413, -0.67043, -0.668441, -0.666446,
-0.664447, -0.662445, -0.660442, -0.658439, -0.656437, -0.654438,
-0.652443, -0.650453, -0.648469, -0.646492, -0.644522, -0.642559,
-0.640603, -0.638654, -0.63671, -0.634772, -0.632837, -0.630905,
-0.628974, -0.627044, -0.625112, -0.623177, -0.621239, -0.619296,
-0.617347, -0.615392, -0.61343, -0.611462, -0.609488, -0.607507,
-0.605521, -0.60353, -0.601536, -0.599539, -0.597541, -0.595542,
-0.593546, -0.591551, -0.58956, -0.587574, -0.585592, -0.583617,
-0.581648, -0.579685, -0.577728, -0.575776, -0.57383, -0.571888,
-0.56995, -0.568014, -0.566079, -0.564144, -0.562207, -0.560269,
-0.558327, -0.556381, -0.55443, -0.552474, -0.550512, -0.548544,
-0.54657, -0.544591, -0.542607, -0.540619, -0.538628, -0.536635,
-0.53464, -0.532646, -0.530653, -0.528661, -0.526673, -0.524689,
-0.52271, -0.520736, -0.518767, -0.516803, -0.514846, -0.512893,
-0.510945, -0.509, -0.507059, -0.50512, -0.503182, -0.501244,
-0.499305, -0.497363, -0.495419, -0.493471, -0.491519, -0.489561,
-0.487599, -0.485631, -0.483658, -0.48168, -0.479698, -0.477712,
-0.475723, -0.473733, -0.471741, -0.469749, -0.467758, -0.46577,
-0.463784, -0.461801, -0.459823, -0.45785, -0.455881, -0.453918,
-0.451959, -0.450006, -0.448056, -0.44611, -0.444167, -0.442225,
-0.440285, -0.438344, -0.436403, -0.434459, -0.432513, -0.430564,
-0.42861, -0.426652, -0.424689, -0.422722, -0.420749, -0.418772,
-0.416792, -0.414807, -0.41282, -0.410831, -0.408842, -0.406852,
-0.404863, -0.402876, -0.400892, -0.398911, -0.396934, -0.394961,
-0.392993, -0.391029, -0.38907, -0.387116, -0.385165, -0.383217,
-0.381272, -0.379329, -0.377387, -0.375445, -0.373502, -0.371557,
-0.36961, -0.367659, -0.365704, -0.363746, -0.361783, -0.359815,
-0.357843, -0.355867, -0.353887, -0.351904, -0.349918, -0.347931,
-0.345943, -0.343954, -0.341967, -0.339981, -0.337998, -0.336018,
-0.334042, -0.33207, -0.330102, -0.328138, -0.326179, -0.324224,
-0.322272, -0.320324, -0.318377, -0.316433, -0.314489, -0.312546,
-0.310602, -0.308655, -0.306707, -0.304756, -0.3028, -0.300841,
-0.298878, -0.296911, -0.294939, -0.292963, -0.290984, -0.289002,
-0.287017, -0.285031, -0.283044, -0.281057, -0.279071, -0.277086,
-0.275104, -0.273124, -0.271149, -0.269177, -0.267209, -0.265245,
-0.263286, -0.26133, -0.259378, -0.257429, -0.255482, -0.253536,
-0.251592, -0.249647, -0.247702, -0.245755, -0.243806, -0.241853,
-0.239898, -0.237939, -0.235975, -0.234008, -0.232036, -0.230061,
-0.228082, -0.226101, -0.224117, -0.222131, -0.220145, -0.218159,
-0.216174, -0.21419, -0.212208, -0.210229, -0.208254, -0.206282,
-0.204315, -0.202351, -0.200391, -0.198435, -0.196483, -0.194533,
-0.192585, -0.190639, -0.188694, -0.186749, -0.184803, -0.182855,
-0.180905, -0.178953, -0.176997, -0.175037, -0.173073, -0.171106,
-0.169135, -0.16716, -0.165181, -0.1632, -0.161217, -0.159232,
-0.157246, -0.155261, -0.153276, -0.151293, -0.149312, -0.147333,
-0.145358, -0.143387, -0.141419, -0.139455, -0.137496, -0.135539,
-0.133586, -0.131636, -0.129688, -0.127742, -0.125796, -0.12385,
-0.121904, -0.119956, -0.118005, -0.116052, -0.114096, -0.112137,
-0.110173, -0.108206, -0.106234, -0.104259, -0.102281, -0.100301,
-0.0983175, -0.0963331, -0.0943479, -0.0923627, -0.0903782, -0.0883953,
-0.0864144, -0.0844363, -0.0824614, -0.0804901, -0.0785226, -0.0765589,
-0.074599, -0.0726427, -0.0706895, -0.0687391, -0.0667908, -0.064844,
-0.062898, -0.0609519, -0.0590051, -0.0570568, -0.0551064, -0.0531533,
-0.051197, -0.0492371, -0.0472735, -0.045306, -0.0433348, -0.04136,
-0.039382, -0.0374014, -0.0354186, -0.0334343, -0.0314493, -0.0294643,
-0.02748, -0.0254972, -0.0235165, -0.0215386, -0.0195638, -0.0175925,
-0.015625, -0.0136614, -0.0117015, -0.00974508, -0.00779189, -0.00584141,
-0.00389305, -0.00194615
};
static const float WAVE_TRIANGLE_078[DEFAULT_WAVELEN] = {
0, 0.00193892, 0.00387821, 0.00581826, 0.00775943, 0.00970208,
0.0116465, 0.0135932, 0.0155422, 0.017494, 0.0194488, 0.0214068,
0.0233682, 0.0253331, 0.0273018, 0.0292743, 0.0312506, 0.0332307,
0.0352147, 0.0372025, 0.039194, 0.0411891, 0.0431876, 0.0451893,
0.047194, 0.0492014, 0.0512113, 0.0532234, 0.0552372, 0.0572526,
0.0592691, 0.0612863, 0.0633039, 0.0653215, 0.0673388, 0.0693552,
0.0713706, 0.0733844, 0.0753965, 0.0774063, 0.0794138, 0.0814184,
0.0834201, 0.0854185, 0.0874134, 0.0894048, 0.0913925, 0.0933763,
0.0953562, 0.0973322, 0.0993044, 0.101273, 0.103237, 0.105198,
0.107156, 0.10911, 0.111061, 0.11301, 0.114956, 0.1169,
0.118841, 0.120782, 0.122721, 0.12466, 0.126598, 0.128536,
0.130475, 0.132414, 0.134354, 0.136296, 0.13824, 0.140186,
0.142135, 0.144086, 0.14604, 0.147998, 0.149959, 0.151924,
0.153893, 0.155865, 0.157842, 0.159822, 0.161807, 0.163795,
0.165787, 0.167783, 0.169782, 0.171785, 0.173791, 0.1758,
0.177811, 0.179824, 0.181839, 0.183856, 0.185874, 0.187893,
0.189912, 0.191931, 0.19395, 0.195968, 0.197985, 0.2,
0.202014, 0.204025, 0.206033, 0.208039, 0.210041, 0.212041,
0.214036, 0.216028, 0.218016, 0.22, 0.221979, 0.223955,
0.225927, 0.227894, 0.229858, 0.231817, 0.233774, 0.235726,
0.237676, 0.239623, 0.241566, 0.243508, 0.245448, 0.247386,
0.249323, 0.251259, 0.253195, 0.25513, 0.257067, 0.259003,
0.260942, 0.262881, 0.264823, 0.266767, 0.268714, 0.270664,
0.272617, 0.274573, 0.276533, 0.278498, 0.280466, 0.282438,
0.284415, 0.286396, 0.288381, 0.290371, 0.292364, 0.294362,
0.296363, 0.298368, 0.300376, 0.302387, 0.304401, 0.306417,
0.308436, 0.310456, 0.312477, 0.3145, 0.316522, 0.318545,
0.320567, 0.322589, 0.324609, 0.326627, 0.328643, 0.330657,
0.332668, 0.334676, 0.336681, 0.338681, 0.340678, 0.342671,
0.344659, 0.346644, 0.348623, 0.350598, 0.352569, 0.354535,
0.356497, 0.358454, 0.360408, 0.362358, 0.364304, 0.366247,
0.368187, 0.370125, 0.37206, 0.373994, 0.375926, 0.377858,
0.379789, 0.38172, 0.383651, 0.385584, 0.387517, 0.389453,
0.391391, 0.393331, 0.395274, 0.397221, 0.399171, 0.401126,
0.403084, 0.405047, 0.407014, 0.408987, 0.410963, 0.412945,
0.414932, 0.416923, 0.418919, 0.420919, 0.422924, 0.424932,
0.426945, 0.428961, 0.43098, 0.433002, 0.435026, 0.437052,
0.439079, 0.441107, 0.443136, 0.445165, 0.447194, 0.449221,
0.451247, 0.453271, 0.455293, 0.457312, 0.459327, 0.461339,
0.463347, 0.465351, 0.46735, 0.469345, 0.471334, 0.473319,
0.475298, 0.477272, 0.479241, 0.481205, 0.483163, 0.485117,
0.487066, 0.489011, 0.490952, 0.492889, 0.494822, 0.496753,
0.498681, 0.500607, 0.502531, 0.504454, 0.506377, 0.5083,
0.510223, 0.512147, 0.514073, 0.516001, 0.517932, 0.519866,
0.521803, 0.523745, 0.52569, 0.527641, 0.529596, 0.531556,
0.533522, 0.535494, 0.537471, 0.539454, 0.541443, 0.543438,
0.545438, 0.547443, 0.549454, 0.551469, 0.553489, 0.555513,
0.557541, 0.559572, 0.561606, 0.563643, 0.565681, 0.56772,
0.56976, 0.5718, 0.573839, 0.575877, 0.577914, 0.579947,
0.581978, 0.584006, 0.58603, 0.588049, 0.590063, 0.592072,
0.594075, 0.596073, 0.598064, 0.600049, 0.602028, 0.604,
0.605966, 0.607925, 0.609878, 0.611825, 0.613766, 0.615702,
0.617632, 0.619558, 0.621479, 0.623397, 0.625311, 0.627223,
0.629133, 0.631042, 0.632949, 0.634857, 0.636766, 0.638676,
0.640587, 0.642502, 0.64442, 0.646342, 0.648269, 0.6502,
0.652137, 0.654081, 0.65603, 0.657987, 0.659951, 0.661921,
0.6639, 0.665886, 0.667879, 0.66988, 0.671888, 0.673903,
0.675925, 0.677953, 0.679988, 0.682028, 0.684073, 0.686122,
0.688175, 0.690231, 0.69229, 0.69435, 0.696411, 0.698472,
0.700532, 0.70259, 0.704646, 0.706699, 0.708748, 0.710792,
0.712831, 0.714864, 0.71689, 0.718909, 0.72092, 0.722922,
0.724917, 0.726903, 0.728879, 0.730847, 0.732806, 0.734756,
0.736696, 0.738629, 0.740553, 0.742469, 0.744378, 0.74628,
0.748177, 0.750067, 0.751954, 0.753836, 0.755716, 0.757593,
0.75947, 0.761347, 0.763224, 0.765104, 0.766987, 0.768873,
0.770765, 0.772662, 0.774567, 0.776479, 0.778399, 0.780328,
0.782267, 0.784216, 0.786176, 0.788147, 0.790129, 0.792123,
0.794128, 0.796144, 0.798172, 0.800211, 0.80226, 0.80432,
0.806389, 0.808466, 0.810552, 0.812644, 0.814743, 0.816846,
0.818953, 0.821062, 0.823173, 0.825284, 0.827394, 0.8295,
0.831603, 0.833701, 0.835792, 0.837875, 0.839949, 0.842013,
0.844065, 0.846105, 0.848132, 0.850145, 0.852143, 0.854126,
0.856094, 0.858045, 0.859981, 0.861901, 0.863804, 0.865693,
0.867566, 0.869425, 0.871271, 0.873104, 0.874926, 0.876738,
0.878541, 0.880338, 0.882128, 0.883915, 0.8857, 0.887485,
0.889272, 0.891063, 0.89286, 0.894665, 0.89648, 0.898307,
0.900149, 0.902006, 0.903881, 0.905776, 0.907691, 0.909629,
0.911591, 0.913578, 0.91559, 0.917628, 0.919694, 0.921786,
0.923905, 0.92605, 0.928222, 0.930418, 0.932638, 0.934881,
0.937144, 0.939425, 0.941723, 0.944034, 0.946355, 0.948683,
0.951016, 0.953348, 0.955676, 0.957996, 0.960303, 0.962593,
0.964862, 0.967103, 0.969312, 0.971484, 0.973613, 0.975695,
0.977724, 0.979695, 0.981603, 0.983442, 0.985207, 0.986893,
0.988496, 0.99001, 0.991432, 0.992757, 0.99398, 0.9951,
0.996111, 0.99701, 0.997796, 0.998465, 0.999015, 0.999445,
0.999753, 0.999938, 1, 0.999938, 0.999753, 0.999445,
0.999015, 0.998465, 0.997796, 0.99701, 0.996111, 0.9951,
0.99398, 0.992757, 0.991432, 0.99001, 0.988496, 0.986893,
0.985207, 0.983442, 0.981603, 0.979695, 0.977724, 0.975695,
0.973613, 0.971484, 0.969312, 0.967103, 0.964862, 0.962593,
0.960303, 0.957996, 0.955676, 0.953348, 0.951016, 0.948683,
0.946355, 0.944034, 0.941723, 0.939425, 0.937144, 0.934881,
0.932638, 0.930418, 0.928222, 0.92605, 0.923905, 0.921786,
0.919694, 0.917628, 0.91559, 0.913578, 0.911591, 0.909629,
0.907691, 0.905776, 0.903881, 0.902006, 0.900149, 0.898307,
0.89648, 0.894665, 0.89286, 0.891063, 0.889272, 0.887485,
0.8857, 0.883915, 0.882128, 0.880338, 0.878541, 0.876738,
0.874926, 0.873104, 0.871271, 0.869425, 0.867566, 0.865693,
0.863804, 0.861901, 0.859981, 0.858045, 0.856094, 0.854126,
0.852143, 0.850145, 0.848132, 0.846105, 0.844065, 0.842013,
0.839949, 0.837875, 0.835792, 0.833701, 0.831603, 0.8295,
0.827394, 0.825284, 0.823173, 0.821062, 0.818953, 0.816846,
0.814743, 0.812644, 0.810552, 0.808466, 0.806389, 0.80432,
0.80226, 0.800211, 0.798172, 0.796144, 0.794128, 0.792123,
0.790129, 0.788147, 0.786176, 0.784216, 0.782267, 0.780328,
0.778399, 0.776479, 0.774567, 0.772662, 0.770765, 0.768873,
0.766987, 0.765104, 0.763224, 0.761347, 0.75947, 0.757593,
0.755716, 0.753836, 0.751954, 0.750067, 0.748177, 0.74628,
0.744378, 0.742469, 0.740553, 0.738629, 0.736696, 0.734756,
0.732806, 0.730847, 0.728879, 0.726903, 0.724917, 0.722922,
0.72092, 0.718909, 0.71689, 0.714864, 0.712831, 0.710792,
0.708748, 0.706699, 0.704646, 0.70259, 0.700532, 0.698472,
0.696411, 0.69435, 0.69229, 0.690231, 0.688175, 0.686122,
0.684073, 0.682028, 0.679988, 0.677953, 0.675925, 0.673903,
0.671888, 0.66988, 0.667879, 0.665886, 0.6639, 0.661921,
0.659951, 0.657987, 0.65603, 0.654081, 0.652137, 0.6502,
0.648269, 0.646342, 0.64442, 0.642502, 0.640587, 0.638676,
0.636766, 0.634857, 0.632949, 0.631042, 0.629133, 0.627223,
0.625311, 0.623397, 0.621479, 0.619558, 0.617632, 0.615702,
0.613766, 0.611825, 0.609878, 0.607925, 0.605966, 0.604,
0.602028, 0.600049, 0.598064, 0.596073, 0.594075, 0.592072,
0.590063, 0.588049, 0.58603, 0.584006, 0.581978, 0.579947,
0.577914, 0.575877, 0.573839, 0.5718, 0.56976, 0.56772,
0.565681, 0.563643, 0.561606, 0.559572, 0.557541, 0.555513,
0.553489, 0.551469, 0.549454, 0.547443, 0.545438, 0.543438,
0.541443, 0.539454, 0.537471, 0.535494, 0.533522, 0.531556,
0.529596, 0.527641, 0.52569, 0.523745, 0.521803, 0.519866,
0.517932, 0.516001, 0.514073, 0.512147, 0.510223, 0.5083,
0.506377, 0.504454, 0.502531, 0.500607, 0.498681, 0.496753,
0.494822, 0.492889, 0.490952, 0.489011, 0.487066, 0.485117,
0.483163, 0.481205, 0.479241, 0.477272, 0.475298, 0.473319,
0.471334, 0.469345, 0.46735, 0.465351, 0.463347, 0.461339,
0.459327, 0.457312, 0.455293, 0.453271, 0.451247, 0.449221,
0.447194, 0.445165, 0.443136, 0.441107, 0.439079, 0.437052,
0.435026, 0.433002, 0.43098, 0.428961, 0.426945, 0.424932,
0.422924, 0.420919, 0.418919, 0.416923, 0.414932, 0.412945,
0.410963, 0.408987, 0.407014, 0.405047, 0.403084, 0.401126,
0.399171, 0.397221, 0.395274, 0.393331, 0.391391, 0.389453,
0.387517, 0.385584, 0.383651, 0.38172, 0.379789, 0.377858,
0.375926, 0.373994, 0.37206, 0.370125, 0.368187, 0.366247,
0.364304, 0.362358, 0.360408, 0.358454, 0.356497, 0.354535,
0.352569, 0.350598, 0.348623, 0.346644, 0.344659, 0.342671,
0.340678, 0.338681, 0.336681, 0.334676, 0.332668, 0.330657,
0.328643, 0.326627, 0.324609, 0.322589, 0.320567, 0.318545,
0.316522, 0.3145, 0.312477, 0.310456, 0.308436, 0.306417,
0.304401, 0.302387, 0.300376, 0.298368, 0.296363, 0.294362,
0.292364, 0.290371, 0.288381, 0.286396, 0.284415, 0.282438,
0.280466, 0.278498, 0.276533, 0.274573, 0.272617, 0.270664,
0.268714, 0.266767, 0.264823, 0.262881, 0.260942, 0.259003,
0.257067, 0.25513, 0.253195, 0.251259, 0.249323, 0.247386,
0.245448, 0.243508, 0.241566, 0.239623, 0.237676, 0.235726,
0.233774, 0.231817, 0.229858, 0.227894, 0.225927, 0.223955,
0.221979, 0.22, 0.218016, 0.216028, 0.214036, 0.212041,
0.210041, 0.208039, 0.206033, 0.204025, 0.202014, 0.2,
0.197985, 0.195968, 0.19395, 0.191931, 0.189912, 0.187893,
0.185874, 0.183856, 0.181839, 0.179824, 0.177811, 0.1758,
0.173791, 0.171785, 0.169782, 0.167783, 0.165787, 0.163795,
0.161807, 0.159822, 0.157842, 0.155865, 0.153893, 0.151924,
0.149959, 0.147998, 0.14604, 0.144086, 0.142135, 0.140186,
0.13824, 0.136296, 0.134354, 0.132414, 0.130475, 0.128536,
0.126598, 0.12466, 0.122721, 0.120782, 0.118841, 0.1169,
0.114956, 0.11301, 0.111061, 0.10911, 0.107156, 0.105198,
0.103237, 0.101273, 0.0993044, 0.0973322, 0.0953562, 0.0933763,
0.0913925, 0.0894048, 0.0874134, 0.0854185, 0.0834201, 0.0814184,
0.0794138, 0.0774063, 0.0753965, 0.0733844, 0.0713706, 0.0693552,
0.0673388, 0.0653215, 0.0633039, 0.0612863, 0.0592691, 0.0572526,
0.0552372, 0.0532234, 0.0512113, 0.0492014, 0.047194, 0.0451893,
0.0431876, 0.0411891, 0.039194, 0.0372025, 0.0352147, 0.0332307,
0.0312506, 0.0292743, 0.0273018, 0.0253331, 0.0233682, 0.0214068,
0.0194488, 0.017494, 0.0155422, 0.0135932, 0.0116465, 0.00970208,
0.00775943, 0.00581826, 0.00387821, 0.00193892, 0, -0.00193892,
-0.00387821, -0.00581826, -0.00775943, -0.00970208, -0.0116465, -0.0135932,
-0.0155422, -0.017494, -0.0194488, -0.0214068, -0.0233682, -0.0253331,
-0.0273018, -0.0292743, -0.0312506, -0.0332307, -0.0352147, -0.0372025,
-0.039194, -0.0411891, -0.0431876, -0.0451893, -0.047194, -0.0492014,
-0.0512113, -0.0532234, -0.0552372, -0.0572526, -0.0592691, -0.0612863,
-0.0633039, -0.0653215, -0.0673388, -0.0693552, -0.0713706, -0.0733844,
-0.0753965, -0.0774063, -0.0794138, -0.0814184, -0.0834201, -0.0854185,
-0.0874134, -0.0894048, -0.0913925, -0.0933763, -0.0953562, -0.0973322,
-0.0993044, -0.101273, -0.103237, -0.105198, -0.107156, -0.10911,
-0.111061, -0.11301, -0.114956, -0.1169, -0.118841, -0.120782,
-0.122721, -0.12466, -0.126598, -0.128536, -0.130475, -0.132414,
-0.134354, -0.136296, -0.13824, -0.140186, -0.142135, -0.144086,
-0.14604, -0.147998, -0.149959, -0.151924, -0.153893, -0.155865,
-0.157842, -0.159822, -0.161807, -0.163795, -0.165787, -0.167783,
-0.169782, -0.171785, -0.173791, -0.1758, -0.177811, -0.179824,
-0.181839, -0.183856, -0.185874, -0.187893, -0.189912, -0.191931,
-0.19395, -0.195968, -0.197985, -0.2, -0.202014, -0.204025,
-0.206033, -0.208039, -0.210041, -0.212041, -0.214036, -0.216028,
-0.218016, -0.22, -0.221979, -0.223955, -0.225927, -0.227894,
-0.229858, -0.231817, -0.233774, -0.235726, -0.237676, -0.239623,
-0.241566, -0.243508, -0.245448, -0.247386, -0.249323, -0.251259,
-0.253195, -0.25513, -0.257067, -0.259003, -0.260942, -0.262881,
-0.264823, -0.266767, -0.268714, -0.270664, -0.272617, -0.274573,
-0.276533, -0.278498, -0.280466, -0.282438, -0.284415, -0.286396,
-0.288381, -0.290371, -0.292364, -0.294362, -0.296363, -0.298368,
-0.300376, -0.302387, -0.304401, -0.306417, -0.308436, -0.310456,
-0.312477, -0.3145, -0.316522, -0.318545, -0.320567, -0.322589,
-0.324609, -0.326627, -0.328643, -0.330657, -0.332668, -0.334676,
-0.336681, -0.338681, -0.340678, -0.342671, -0.344659, -0.346644,
-0.348623, -0.350598, -0.352569, -0.354535, -0.356497, -0.358454,
-0.360408, -0.362358, -0.364304, -0.366247, -0.368187, -0.370125,
-0.37206, -0.373994, -0.375926, -0.377858, -0.379789, -0.38172,
-0.383651, -0.385584, -0.387517, -0.389453, -0.391391, -0.393331,
-0.395274, -0.397221, -0.399171, -0.401126, -0.403084, -0.405047,
-0.407014, -0.408987, -0.410963, -0.412945, -0.414932, -0.416923,
-0.418919, -0.420919, -0.422924, -0.424932, -0.426945, -0.428961,
-0.43098, -0.433002, -0.435026, -0.437052, -0.439079, -0.441107,
-0.443136, -0.445165, -0.447194, -0.449221, -0.451247, -0.453271,
-0.455293, -0.457312, -0.459327, -0.461339, -0.463347, -0.465351,
-0.46735, -0.469345, -0.471334, -0.473319, -0.475298, -0.477272,
-0.479241, -0.481205, -0.483163, -0.485117, -0.487066, -0.489011,
-0.490952, -0.492889, -0.494822, -0.496753, -0.498681, -0.500607,
-0.502531, -0.504454, -0.506377, -0.5083, -0.510223, -0.512147,
-0.514073, -0.516001, -0.517932, -0.519866, -0.521803, -0.523745,
-0.52569, -0.527641, -0.529596, -0.531556, -0.533522, -0.535494,
-0.537471, -0.539454, -0.541443, -0.543438, -0.545438, -0.547443,
-0.549454, -0.551469, -0.553489, -0.555513, -0.557541, -0.559572,
-0.561606, -0.563643, -0.565681, -0.56772, -0.56976, -0.5718,
-0.573839, -0.575877, -0.577914, -0.579947, -0.581978, -0.584006,
-0.58603, -0.588049, -0.590063, -0.592072, -0.594075, -0.596073,
-0.598064, -0.600049, -0.602028, -0.604, -0.605966, -0.607925,
-0.609878, -0.611825, -0.613766, -0.615702, -0.617632, -0.619558,
-0.621479, -0.623397, -0.625311, -0.627223, -0.629133, -0.631042,
-0.632949, -0.634857, -0.636766, -0.638676, -0.640587, -0.642502,
-0.64442, -0.646342, -0.648269, -0.6502, -0.652137, -0.654081,
-0.65603, -0.657987, -0.659951, -0.661921, -0.6639, -0.665886,
-0.667879, -0.66988, -0.671888, -0.673903, -0.675925, -0.677953,
-0.679988, -0.682028, -0.684073, -0.686122, -0.688175, -0.690231,
-0.69229, -0.69435, -0.696411, -0.698472, -0.700532, -0.70259,
-0.704646, -0.706699, -0.708748, -0.710792, -0.712831, -0.714864,
-0.71689, -0.718909, -0.72092, -0.722922, -0.724917, -0.726903,
-0.728879, -0.730847, -0.732806, -0.734756, -0.736696, -0.738629,
-0.740553, -0.742469, -0.744378, -0.74628, -0.748177, -0.750067,
-0.751954, -0.753836, -0.755716, -0.757593, -0.75947, -0.761347,
-0.763224, -0.765104, -0.766987, -0.768873, -0.770765, -0.772662,
-0.774567, -0.776479, -0.778399, -0.780328, -0.782267, -0.784216,
-0.786176, -0.788147, -0.790129, -0.792123, -0.794128, -0.796144,
-0.798172, -0.800211, -0.80226, -0.80432, -0.806389, -0.808466,
-0.810552, -0.812644, -0.814743, -0.816846, -0.818953, -0.821062,
-0.823173, -0.825284, -0.827394, -0.8295, -0.831603, -0.833701,
-0.835792, -0.837875, -0.839949, -0.842013, -0.844065, -0.846105,
-0.848132, -0.850145, -0.852143, -0.854126, -0.856094, -0.858045,
-0.859981, -0.861901, -0.863804, -0.865693, -0.867566, -0.869425,
-0.871271, -0.873104, -0.874926, -0.876738, -0.878541, -0.880338,
-0.882128, -0.883915, -0.8857, -0.887485, -0.889272, -0.891063,
-0.89286, -0.894665, -0.89648, -0.898307, -0.900149, -0.902006,
-0.903881, -0.905776, -0.907691, -0.909629, -0.911591, -0.913578,
-0.91559, -0.917628, -0.919694, -0.921786, -0.923905, -0.92605,
-0.928222, -0.930418, -0.932638, -0.934881, -0.937144, -0.939425,
-0.941723, -0.944034, -0.946355, -0.948683, -0.951016, -0.953348,
-0.955676, -0.957996, -0.960303, -0.962593, -0.964862, -0.967103,
-0.969312, -0.971484, -0.973613, -0.975695, -0.977724, -0.979695,
-0.981603, -0.983442, -0.985207, -0.986893, -0.988496, -0.99001,
-0.991432, -0.992757, -0.99398, -0.9951, -0.996111, -0.99701,
-0.997796, -0.998465, -0.999015, -0.999445, -0.999753, -0.999938,
-1, -0.999938, -0.999753, -0.999445, -0.999015, -0.998465,
-0.997796, -0.99701, -0.996111, -0.9951, -0.99398, -0.992757,
-0.991432, -0.99001, -0.988496, -0.986893, -0.985207, -0.983442,
-0.981603, -0.979695, -0.977724, -0.975695, -0.973613, -0.971484,
-0.969312, -0.967103, -0.964862, -0.962593, -0.960303, -0.957996,
-0.955676, -0.953348, -0.951016, -0.948683, -0.946355, -0.944034,
-0.941723, -0.939425, -0.937144, -0.934881, -0.932638, -0.930418,
-0.928222, -0.92605, -0.923905, -0.921786, -0.919694, -0.917628,
-0.91559, -0.913578, -0.911591, -0.909629, -0.907691, -0.905776,
-0.903881, -0.902006, -0.900149, -0.898307, -0.89648, -0.894665,
-0.89286, -0.891063, -0.889272, -0.887485, -0.8857, -0.883915,
-0.882128, -0.880338, -0.878541, -0.876738, -0.874926, -0.873104,
-0.871271, -0.869425, -0.867566, -0.865693, -0.863804, -0.861901,
-0.859981, -0.858045, -0.856094, -0.854126, -0.852143, -0.850145,
-0.848132, -0.846105, -0.844065, -0.842013, -0.839949, -0.837875,
-0.835792, -0.833701, -0.831603, -0.8295, -0.827394, -0.825284,
-0.823173, -0.821062, -0.818953, -0.816846, -0.814743, -0.812644,
-0.810552, -0.808466, -0.806389, -0.80432, -0.80226, -0.800211,
-0.798172, -0.796144, -0.794128, -0.792123, -0.790129, -0.788147,
-0.786176, -0.784216, -0.782267, -0.780328, -0.778399, -0.776479,
-0.774567, -0.772662, -0.770765, -0.768873, -0.766987, -0.765104,
-0.763224, -0.761347, -0.75947, -0.757593, -0.755716, -0.753836,
-0.751954, -0.750067, -0.748177, -0.74628, -0.744378, -0.742469,
-0.740553, -0.738629, -0.736696, -0.734756, -0.732806, -0.730847,
-0.728879, -0.726903, -0.724917, -0.722922, -0.72092, -0.718909,
-0.71689, -0.714864, -0.712831, -0.710792, -0.708748, -0.706699,
-0.704646, -0.70259, -0.700532, -0.698472, -0.696411, -0.69435,
-0.69229, -0.690231, -0.688175, -0.686122, -0.684073, -0.682028,
-0.679988, -0.677953, -0.675925, -0.673903, -0.671888, -0.66988,
-0.667879, -0.665886, -0.6639, -0.661921, -0.659951, -0.657987,
-0.65603, -0.654081, -0.652137, -0.6502, -0.648269, -0.646342,
-0.64442, -0.642502, -0.640587, -0.638676, -0.636766, -0.634857,
-0.632949, -0.631042, -0.629133, -0.627223, -0.625311, -0.623397,
-0.621479, -0.619558, -0.617632, -0.615702, -0.613766, -0.611825,
-0.609878, -0.607925, -0.605966, -0.604, -0.602028, -0.600049,
-0.598064, -0.596073, -0.594075, -0.592072, -0.590063, -0.588049,
-0.58603, -0.584006, -0.581978, -0.579947, -0.577914, -0.575877,
-0.573839, -0.5718, -0.56976, -0.56772, -0.565681, -0.563643,
-0.561606, -0.559572, -0.557541, -0.555513, -0.553489, -0.551469,
-0.549454, -0.547443, -0.545438, -0.543438, -0.541443, -0.539454,
-0.537471, -0.535494, -0.533522, -0.531556, -0.529596, -0.527641,
-0.52569, -0.523745, -0.521803, -0.519866, -0.517932, -0.516001,
-0.514073, -0.512147, -0.510223, -0.5083, -0.506377, -0.504454,
-0.502531, -0.500607, -0.498681, -0.496753, -0.494822, -0.492889,
-0.490952, -0.489011, -0.487066, -0.485117, -0.483163, -0.481205,
-0.479241, -0.477272, -0.475298, -0.473319, -0.471334, -0.469345,
-0.46735, -0.465351, -0.463347, -0.461339, -0.459327, -0.457312,
-0.455293, -0.453271, -0.451247, -0.449221, -0.447194, -0.445165,
-0.443136, -0.441107, -0.439079, -0.437052, -0.435026, -0.433002,
-0.43098, -0.428961, -0.426945, -0.424932, -0.422924, -0.420919,
-0.418919, -0.416923, -0.414932, -0.412945, -0.410963, -0.408987,
-0.407014, -0.405047, -0.403084, -0.401126, -0.399171, -0.397221,
-0.395274, -0.393331, -0.391391, -0.389453, -0.387517, -0.385584,
-0.383651, -0.38172, -0.379789, -0.377858, -0.375926, -0.373994,
-0.37206, -0.370125, -0.368187, -0.366247, -0.364304, -0.362358,
-0.360408, -0.358454, -0.356497, -0.354535, -0.352569, -0.350598,
-0.348623, -0.346644, -0.344659, -0.342671, -0.340678, -0.338681,
-0.336681, -0.334676, -0.332668, -0.330657, -0.328643, -0.326627,
-0.324609, -0.322589, -0.320567, -0.318545, -0.316522, -0.3145,
-0.312477, -0.310456, -0.308436, -0.306417, -0.304401, -0.302387,
-0.300376, -0.298368, -0.296363, -0.294362, -0.292364, -0.290371,
-0.288381, -0.286396, -0.284415, -0.282438, -0.280466, -0.278498,
-0.276533, -0.274573, -0.272617, -0.270664, -0.268714, -0.266767,
-0.264823, -0.262881, -0.260942, -0.259003, -0.257067, -0.25513,
-0.253195, -0.251259, -0.249323, -0.247386, -0.245448, -0.243508,
-0.241566, -0.239623, -0.237676, -0.235726, -0.233774, -0.231817,
-0.229858, -0.227894, -0.225927, -0.223955, -0.221979, -0.22,
-0.218016, -0.216028, -0.214036, -0.212041, -0.210041, -0.208039,
-0.206033, -0.204025, -0.202014, -0.2, -0.197985, -0.195968,
-0.19395, -0.191931, -0.189912, -0.187893, -0.185874, -0.183856,
-0.181839, -0.179824, -0.177811, -0.1758, -0.173791, -0.171785,
-0.169782, -0.167783, -0.165787, -0.163795, -0.161807, -0.159822,
-0.157842, -0.155865, -0.153893, -0.151924, -0.149959, -0.147998,
-0.14604, -0.144086, -0.142135, -0.140186, -0.13824, -0.136296,
-0.134354, -0.132414, -0.130475, -0.128536, -0.126598, -0.12466,
-0.122721, -0.120782, -0.118841, -0.1169, -0.114956, -0.11301,
-0.111061, -0.10911, -0.107156, -0.105198, -0.103237, -0.101273,
-0.0993044, -0.0973322, -0.0953562, -0.0933763, -0.0913925, -0.0894048,
-0.0874134, -0.0854185, -0.0834201, -0.0814184, -0.0794138, -0.0774063,
-0.0753965, -0.0733844, -0.0713706, -0.0693552, -0.0673388, -0.0653215,
-0.0633039, -0.0612863, -0.0592691, -0.0572526, -0.0552372, -0.0532234,
-0.0512113, -0.0492014, -0.047194, -0.0451893, -0.0431876, -0.0411891,
-0.039194, -0.0372025, -0.0352147, -0.0332307, -0.0312506, -0.0292743,
-0.0273018, -0.0253331, -0.0233682, -0.0214068, -0.0194488, -0.017494,
-0.0155422, -0.0135932, -0.0116465, -0.00970208, -0.00775943, -0.00581826,
-0.00387821, -0.00193892
};
static const float WAVE_TRIANGLE_090[DEFAULT_WAVELEN] = {
0, 0.00192442, 0.00384904, 0.00577404, 0.00769962, 0.00962595,
0.0115532, 0.0134817, 0.0154114, 0.0173427, 0.0192756, 0.0212103,
0.0231471, 0.0250861, 0.0270273, 0.0289711, 0.0309175, 0.0328667,
0.0348187, 0.0367738, 0.0387321, 0.0406936, 0.0426585, 0.0446268,
0.0465987, 0.0485742, 0.0505534, 0.0525363, 0.0545231, 0.0565137,
0.0585082, 0.0605066, 0.0625089, 0.0645152, 0.0665254, 0.0685395,
0.0705575, 0.0725794, 0.074605, 0.0766345, 0.0786677, 0.0807045,
0.0827448, 0.0847887, 0.0868359, 0.0888865, 0.0909402, 0.0929969,
0.0950566, 0.0971191, 0.0991842, 0.101252, 0.103322, 0.105394,
0.107468, 0.109544, 0.111622, 0.113702, 0.115782, 0.117864,
0.119947, 0.12203, 0.124115, 0.126199, 0.128284, 0.130369,
0.132453, 0.134537, 0.136621, 0.138704, 0.140785, 0.142866,
0.144945, 0.147023, 0.149099, 0.151173, 0.153245, 0.155315,
0.157383, 0.159448, 0.16151, 0.163569, 0.165626, 0.167679,
0.169729, 0.171775, 0.173819, 0.175858, 0.177894, 0.179926,
0.181955, 0.183979, 0.185999, 0.188016, 0.190028, 0.192037,
0.194041, 0.196041, 0.198037, 0.20003, 0.202018, 0.204001,
0.205981, 0.207958, 0.20993, 0.211898, 0.213863, 0.215824,
0.217781, 0.219735, 0.221686, 0.223633, 0.225578, 0.227519,
0.229458, 0.231394, 0.233328, 0.235259, 0.237188, 0.239115,
0.24104, 0.242964, 0.244886, 0.246807, 0.248727, 0.250647,
0.252565, 0.254483, 0.256401, 0.258319, 0.260238, 0.262156,
0.264075, 0.265996, 0.267917, 0.269839, 0.271763, 0.273688,
0.275615, 0.277545, 0.279476, 0.28141, 0.283347, 0.285286,
0.287228, 0.289173, 0.291121, 0.293073, 0.295028, 0.296987,
0.29895, 0.300916, 0.302886, 0.304861, 0.306839, 0.308822,
0.310809, 0.312801, 0.314796, 0.316796, 0.318801, 0.32081,
0.322823, 0.324841, 0.326864, 0.32889, 0.330921, 0.332956,
0.334996, 0.33704, 0.339087, 0.341139, 0.343195, 0.345254,
0.347317, 0.349383, 0.351453, 0.353526, 0.355603, 0.357682,
0.359763, 0.361848, 0.363935, 0.366023, 0.368114, 0.370207,
0.372301, 0.374397, 0.376494, 0.378591, 0.380689, 0.382788,
0.384887, 0.386986, 0.389085, 0.391183, 0.393281, 0.395377,
0.397473, 0.399567, 0.40166, 0.40375, 0.405839, 0.407925,
0.410009, 0.41209, 0.414169, 0.416244, 0.418316, 0.420385,
0.42245, 0.424511, 0.426568, 0.428621, 0.43067, 0.432714,
0.434755, 0.43679, 0.438821, 0.440847, 0.442868, 0.444884,
0.446895, 0.448902, 0.450903, 0.452899, 0.45489, 0.456876,
0.458857, 0.460833, 0.462804, 0.46477, 0.466732, 0.468688,
0.47064, 0.472587, 0.47453, 0.476468, 0.478402, 0.480332,
0.482259, 0.484181, 0.4861, 0.488015, 0.489928, 0.491837,
0.493744, 0.495648, 0.49755, 0.49945, 0.501348, 0.503244,
0.505139, 0.507033, 0.508926, 0.510819, 0.512711, 0.514603,
0.516496, 0.518389, 0.520283, 0.522178, 0.524075, 0.525973,
0.527873, 0.529775, 0.531679, 0.533587, 0.535497, 0.53741,
0.539327, 0.541248, 0.543172, 0.545101, 0.547034, 0.548971,
0.550913, 0.55286, 0.554812, 0.55677, 0.558733, 0.560701,
0.562675, 0.564655, 0.56664, 0.568632, 0.570629, 0.572633,
0.574643, 0.576659, 0.578681, 0.58071, 0.582744, 0.584785,
0.586832, 0.588885, 0.590943, 0.593008, 0.595078, 0.597155,
0.599236, 0.601323, 0.603415, 0.605513, 0.607615, 0.609721,
0.611833, 0.613948, 0.616067, 0.61819, 0.620317, 0.622447,
0.624579, 0.626714, 0.628852, 0.630991, 0.633132, 0.635275,
0.637418, 0.639562, 0.641707, 0.643851, 0.645996, 0.648139,
0.650282, 0.652423, 0.654562, 0.656699, 0.658834, 0.660966,
0.663094, 0.66522, 0.667341, 0.669459, 0.671571, 0.673679,
0.675782, 0.67788, 0.679972, 0.682058, 0.684138, 0.686211,
0.688278, 0.690338, 0.69239, 0.694435, 0.696473, 0.698503,
0.700525, 0.70254, 0.704546, 0.706544, 0.708533, 0.710515,
0.712488, 0.714453, 0.716409, 0.718357, 0.720297, 0.722229,
0.724152, 0.726068, 0.727975, 0.729875, 0.731767, 0.733651,
0.735529, 0.737399, 0.739263, 0.74112, 0.742972, 0.744817,
0.746656, 0.748491, 0.75032, 0.752145, 0.753966, 0.755784,
0.757598, 0.759409, 0.761218, 0.763024, 0.76483, 0.766634,
0.768438, 0.770242, 0.772046, 0.773852, 0.775659, 0.777468,
0.779279, 0.781094, 0.782912, 0.784735, 0.786562, 0.788394,
0.790232, 0.792077, 0.793928, 0.795786, 0.797652, 0.799526,
0.801409, 0.803301, 0.805203, 0.807115, 0.809037, 0.81097,
0.812914, 0.814869, 0.816837, 0.818816, 0.820809, 0.822813,
0.824831, 0.826862, 0.828906, 0.830964, 0.833035, 0.83512,
0.837219, 0.839331, 0.841457, 0.843597, 0.845751, 0.847918,
0.850099, 0.852293, 0.8545, 0.856719, 0.858951, 0.861196,
0.863452, 0.865719, 0.867997, 0.870286, 0.872585, 0.874893,
0.87721, 0.879536, 0.881868, 0.884208, 0.886554, 0.888905,
0.89126, 0.893619, 0.895981, 0.898345, 0.90071, 0.903075,
0.905439, 0.907801, 0.91016, 0.912514, 0.914864, 0.917207,
0.919542, 0.921869, 0.924185, 0.926491, 0.928783, 0.931063,
0.933327, 0.935575, 0.937806, 0.940017, 0.942209, 0.944379,
0.946526, 0.948649, 0.950746, 0.952817, 0.954859, 0.956872,
0.958854, 0.960804, 0.96272, 0.964602, 0.966447, 0.968255,
0.970024, 0.971753, 0.973441, 0.975087, 0.976689, 0.978247,
0.979758, 0.981223, 0.982639, 0.984007, 0.985324, 0.98659,
0.987804, 0.988965, 0.990071, 0.991123, 0.99212, 0.99306,
0.993943, 0.994768, 0.995534, 0.996242, 0.99689, 0.997478,
0.998005, 0.998471, 0.998876, 0.999219, 0.9995, 0.999718,
0.999875, 0.999969, 1, 0.999969, 0.999875, 0.999718,
0.9995, 0.999219, 0.998876, 0.998471, 0.998005, 0.997478,
0.99689, 0.996242, 0.995534, 0.994768, 0.993943, 0.99306,
0.99212, 0.991123, 0.990071, 0.988965, 0.987804, 0.98659,
0.985324, 0.984007, 0.982639, 0.981223, 0.979758, 0.978247,
0.976689, 0.975087, 0.973441, 0.971753, 0.970024, 0.968255,
0.966447, 0.964602, 0.96272, 0.960804, 0.958854, 0.956872,
0.954859, 0.952817, 0.950746, 0.948649, 0.946526, 0.944379,
0.942209, 0.940017, 0.937806, 0.935575, 0.933327, 0.931063,
0.928783, 0.926491, 0.924185, 0.921869, 0.919542, 0.917207,
0.914864, 0.912514, 0.91016, 0.907801, 0.905439, 0.903075,
0.90071, 0.898345, 0.895981, 0.893619, 0.89126, 0.888905,
0.886554, 0.884208, 0.881868, 0.879536, 0.87721, 0.874893,
0.872585, 0.870286, 0.867997, 0.865719, 0.863452, 0.861196,
0.858951, 0.856719, 0.8545, 0.852293, 0.850099, 0.847918,
0.845751, 0.843597, 0.841457, 0.839331, 0.837219, 0.83512,
0.833035, 0.830964, 0.828906, 0.826862, 0.824831, 0.822813,
0.820809, 0.818816, 0.816837, 0.814869, 0.812914, 0.81097,
0.809037, 0.807115, 0.805203, 0.803301, 0.801409, 0.799526,
0.797652, 0.795786, 0.793928, 0.792077, 0.790232, 0.788394,
0.786562, 0.784735, 0.782912, 0.781094, 0.779279, 0.777468,
0.775659, 0.773852, 0.772046, 0.770242, 0.768438, 0.766634,
0.76483, 0.763024, 0.761218, 0.759409, 0.757598, 0.755784,
0.753966, 0.752145, 0.75032, 0.748491, 0.746656, 0.744817,
0.742972, 0.74112, 0.739263, 0.737399, 0.735529, 0.733651,
0.731767, 0.729875, 0.727975, 0.726068, 0.724152, 0.722229,
0.720297, 0.718357, 0.716409, 0.714453, 0.712488, 0.710515,
0.708533, 0.706544, 0.704546, 0.70254, 0.700525, 0.698503,
0.696473, 0.694435, 0.69239, 0.690338, 0.688278, 0.686211,
0.684138, 0.682058, 0.679972, 0.67788, 0.675782, 0.673679,
0.671571, 0.669459, 0.667341, 0.66522, 0.663094, 0.660966,
0.658834, 0.656699, 0.654562, 0.652423, 0.650282, 0.648139,
0.645996, 0.643851, 0.641707, 0.639562, 0.637418, 0.635275,
0.633132, 0.630991, 0.628852, 0.626714, 0.624579, 0.622447,
0.620317, 0.61819, 0.616067, 0.613948, 0.611833, 0.609721,
0.607615, 0.605513, 0.603415, 0.601323, 0.599236, 0.597155,
0.595078, 0.593008, 0.590943, 0.588885, 0.586832, 0.584785,
0.582744, 0.58071, 0.578681, 0.576659, 0.574643, 0.572633,
0.570629, 0.568632, 0.56664, 0.564655, 0.562675, 0.560701,
0.558733, 0.55677, 0.554812, 0.55286, 0.550913, 0.548971,
0.547034, 0.545101, 0.543172, 0.541248, 0.539327, 0.53741,
0.535497, 0.533587, 0.531679, 0.529775, 0.527873, 0.525973,
0.524075, 0.522178, 0.520283, 0.518389, 0.516496, 0.514603,
0.512711, 0.510819, 0.508926, 0.507033, 0.505139, 0.503244,
0.501348, 0.49945, 0.49755, 0.495648, 0.493744, 0.491837,
0.489928, 0.488015, 0.4861, 0.484181, 0.482259, 0.480332,
0.478402, 0.476468, 0.47453, 0.472587, 0.47064, 0.468688,
0.466732, 0.46477, 0.462804, 0.460833, 0.458857, 0.456876,
0.45489, 0.452899, 0.450903, 0.448902, 0.446895, 0.444884,
0.442868, 0.440847, 0.438821, 0.43679, 0.434755, 0.432714,
0.43067, 0.428621, 0.426568, 0.424511, 0.42245, 0.420385,
0.418316, 0.416244, 0.414169, 0.41209, 0.410009, 0.407925,
0.405839, 0.40375, 0.40166, 0.399567, 0.397473, 0.395377,
0.393281, 0.391183, 0.389085, 0.386986, 0.384887, 0.382788,
0.380689, 0.378591, 0.376494, 0.374397, 0.372301, 0.370207,
0.368114, 0.366023, 0.363935, 0.361848, 0.359763, 0.357682,
0.355603, 0.353526, 0.351453, 0.349383, 0.347317, 0.345254,
0.343195, 0.341139, 0.339087, 0.33704, 0.334996, 0.332956,
0.330921, 0.32889, 0.326864, 0.324841, 0.322823, 0.32081,
0.318801, 0.316796, 0.314796, 0.312801, 0.310809, 0.308822,
0.306839, 0.304861, 0.302886, 0.300916, 0.29895, 0.296987,
0.295028, 0.293073, 0.291121, 0.289173, 0.287228, 0.285286,
0.283347, 0.28141, 0.279476, 0.277545, 0.275615, 0.273688,
0.271763, 0.269839, 0.267917, 0.265996, 0.264075, 0.262156,
0.260238, 0.258319, 0.256401, 0.254483, 0.252565, 0.250647,
0.248727, 0.246807, 0.244886, 0.242964, 0.24104, 0.239115,
0.237188, 0.235259, 0.233328, 0.231394, 0.229458, 0.227519,
0.225578, 0.223633, 0.221686, 0.219735, 0.217781, 0.215824,
0.213863, 0.211898, 0.20993, 0.207958, 0.205981, 0.204001,
0.202018, 0.20003, 0.198037, 0.196041, 0.194041, 0.192037,
0.190028, 0.188016, 0.185999, 0.183979, 0.181955, 0.179926,
0.177894, 0.175858, 0.173819, 0.171775, 0.169729, 0.167679,
0.165626, 0.163569, 0.16151, 0.159448, 0.157383, 0.155315,
0.153245, 0.151173, 0.149099, 0.147023, 0.144945, 0.142866,
0.140785, 0.138704, 0.136621, 0.134537, 0.132453, 0.130369,
0.128284, 0.126199, 0.124115, 0.12203, 0.119947, 0.117864,
0.115782, 0.113702, 0.111622, 0.109544, 0.107468, 0.105394,
0.103322, 0.101252, 0.0991842, 0.0971191, 0.0950566, 0.0929969,
0.0909402, 0.0888865, 0.0868359, 0.0847887, 0.0827448, 0.0807045,
0.0786677, 0.0766345, 0.074605, 0.0725794, 0.0705575, 0.0685395,
0.0665254, 0.0645152, 0.0625089, 0.0605066, 0.0585082, 0.0565137,
0.0545231, 0.0525363, 0.0505534, 0.0485742, 0.0465987, 0.0446268,
0.0426585, 0.0406936, 0.0387321, 0.0367738, 0.0348187, 0.0328667,
0.0309175, 0.0289711, 0.0270273, 0.0250861, 0.0231471, 0.0212103,
0.0192756, 0.0173427, 0.0154114, 0.0134817, 0.0115532, 0.00962595,
0.00769962, 0.00577404, 0.00384904, 0.00192442, 0, -0.00192442,
-0.00384904, -0.00577404, -0.00769962, -0.00962595, -0.0115532, -0.0134817,
-0.0154114, -0.0173427, -0.0192756, -0.0212103, -0.0231471, -0.0250861,
-0.0270273, -0.0289711, -0.0309175, -0.0328667, -0.0348187, -0.0367738,
-0.0387321, -0.0406936, -0.0426585, -0.0446268, -0.0465987, -0.0485742,
-0.0505534, -0.0525363, -0.0545231, -0.0565137, -0.0585082, -0.0605066,
-0.0625089, -0.0645152, -0.0665254, -0.0685395, -0.0705575, -0.0725794,
-0.074605, -0.0766345, -0.0786677, -0.0807045, -0.0827448, -0.0847887,
-0.0868359, -0.0888865, -0.0909402, -0.0929969, -0.0950566, -0.0971191,
-0.0991842, -0.101252, -0.103322, -0.105394, -0.107468, -0.109544,
-0.111622, -0.113702, -0.115782, -0.117864, -0.119947, -0.12203,
-0.124115, -0.126199, -0.128284, -0.130369, -0.132453, -0.134537,
-0.136621, -0.138704, -0.140785, -0.142866, -0.144945, -0.147023,
-0.149099, -0.151173, -0.153245, -0.155315, -0.157383, -0.159448,
-0.16151, -0.163569, -0.165626, -0.167679, -0.169729, -0.171775,
-0.173819, -0.175858, -0.177894, -0.179926, -0.181955, -0.183979,
-0.185999, -0.188016, -0.190028, -0.192037, -0.194041, -0.196041,
-0.198037, -0.20003, -0.202018, -0.204001, -0.205981, -0.207958,
-0.20993, -0.211898, -0.213863, -0.215824, -0.217781, -0.219735,
-0.221686, -0.223633, -0.225578, -0.227519, -0.229458, -0.231394,
-0.233328, -0.235259, -0.237188, -0.239115, -0.24104, -0.242964,
-0.244886, -0.246807, -0.248727, -0.250647, -0.252565, -0.254483,
-0.256401, -0.258319, -0.260238, -0.262156, -0.264075, -0.265996,
-0.267917, -0.269839, -0.271763, -0.273688, -0.275615, -0.277545,
-0.279476, -0.28141, -0.283347, -0.285286, -0.287228, -0.289173,
-0.291121, -0.293073, -0.295028, -0.296987, -0.29895, -0.300916,
-0.302886, -0.304861, -0.306839, -0.308822, -0.310809, -0.312801,
-0.314796, -0.316796, -0.318801, -0.32081, -0.322823, -0.324841,
-0.326864, -0.32889, -0.330921, -0.332956, -0.334996, -0.33704,
-0.339087, -0.341139, -0.343195, -0.345254, -0.347317, -0.349383,
-0.351453, -0.353526, -0.355603, -0.357682, -0.359763, -0.361848,
-0.363935, -0.366023, -0.368114, -0.370207, -0.372301, -0.374397,
-0.376494, -0.378591, -0.380689, -0.382788, -0.384887, -0.386986,
-0.389085, -0.391183, -0.393281, -0.395377, -0.397473, -0.399567,
-0.40166, -0.40375, -0.405839, -0.407925, -0.410009, -0.41209,
-0.414169, -0.416244, -0.418316, -0.420385, -0.42245, -0.424511,
-0.426568, -0.428621, -0.43067, -0.432714, -0.434755, -0.43679,
-0.438821, -0.440847, -0.442868, -0.444884, -0.446895, -0.448902,
-0.450903, -0.452899, -0.45489, -0.456876, -0.458857, -0.460833,
-0.462804, -0.46477, -0.466732, -0.468688, -0.47064, -0.472587,
-0.47453, -0.476468, -0.478402, -0.480332, -0.482259, -0.484181,
-0.4861, -0.488015, -0.489928, -0.491837, -0.493744, -0.495648,
-0.49755, -0.49945, -0.501348, -0.503244, -0.505139, -0.507033,
-0.508926, -0.510819, -0.512711, -0.514603, -0.516496, -0.518389,
-0.520283, -0.522178, -0.524075, -0.525973, -0.527873, -0.529775,
-0.531679, -0.533587, -0.535497, -0.53741, -0.539327, -0.541248,
-0.543172, -0.545101, -0.547034, -0.548971, -0.550913, -0.55286,
-0.554812, -0.55677, -0.558733, -0.560701, -0.562675, -0.564655,
-0.56664, -0.568632, -0.570629, -0.572633, -0.574643, -0.576659,
-0.578681, -0.58071, -0.582744, -0.584785, -0.586832, -0.588885,
-0.590943, -0.593008, -0.595078, -0.597155, -0.599236, -0.601323,
-0.603415, -0.605513, -0.607615, -0.609721, -0.611833, -0.613948,
-0.616067, -0.61819, -0.620317, -0.622447, -0.624579, -0.626714,
-0.628852, -0.630991, -0.633132, -0.635275, -0.637418, -0.639562,
-0.641707, -0.643851, -0.645996, -0.648139, -0.650282, -0.652423,
-0.654562, -0.656699, -0.658834, -0.660966, -0.663094, -0.66522,
-0.667341, -0.669459, -0.671571, -0.673679, -0.675782, -0.67788,
-0.679972, -0.682058, -0.684138, -0.686211, -0.688278, -0.690338,
-0.69239, -0.694435, -0.696473, -0.698503, -0.700525, -0.70254,
-0.704546, -0.706544, -0.708533, -0.710515, -0.712488, -0.714453,
-0.716409, -0.718357, -0.720297, -0.722229, -0.724152, -0.726068,
-0.727975, -0.729875, -0.731767, -0.733651, -0.735529, -0.737399,
-0.739263, -0.74112, -0.742972, -0.744817, -0.746656, -0.748491,
-0.75032, -0.752145, -0.753966, -0.755784, -0.757598, -0.759409,
-0.761218, -0.763024, -0.76483, -0.766634, -0.768438, -0.770242,
-0.772046, -0.773852, -0.775659, -0.777468, -0.779279, -0.781094,
-0.782912, -0.784735, -0.786562, -0.788394, -0.790232, -0.792077,
-0.793928, -0.795786, -0.797652, -0.799526, -0.801409, -0.803301,
-0.805203, -0.807115, -0.809037, -0.81097, -0.812914, -0.814869,
-0.816837, -0.818816, -0.820809, -0.822813, -0.824831, -0.826862,
-0.828906, -0.830964, -0.833035, -0.83512, -0.837219, -0.839331,
-0.841457, -0.843597, -0.845751, -0.847918, -0.850099, -0.852293,
-0.8545, -0.856719, -0.858951, -0.861196, -0.863452, -0.865719,
-0.867997, -0.870286, -0.872585, -0.874893, -0.87721, -0.879536,
-0.881868, -0.884208, -0.886554, -0.888905, -0.89126, -0.893619,
-0.895981, -0.898345, -0.90071, -0.903075, -0.905439, -0.907801,
-0.91016, -0.912514, -0.914864, -0.917207, -0.919542, -0.921869,
-0.924185, -0.926491, -0.928783, -0.931063, -0.933327, -0.935575,
-0.937806, -0.940017, -0.942209, -0.944379, -0.946526, -0.948649,
-0.950746, -0.952817, -0.954859, -0.956872, -0.958854, -0.960804,
-0.96272, -0.964602, -0.966447, -0.968255, -0.970024, -0.971753,
-0.973441, -0.975087, -0.976689, -0.978247, -0.979758, -0.981223,
-0.982639, -0.984007, -0.985324, -0.98659, -0.987804, -0.988965,
-0.990071, -0.991123, -0.99212, -0.99306, -0.993943, -0.994768,
-0.995534, -0.996242, -0.99689, -0.997478, -0.998005, -0.998471,
-0.998876, -0.999219, -0.9995, -0.999718, -0.999875, -0.999969,
-1, -0.999969, -0.999875, -0.999718, -0.9995, -0.999219,
-0.998876, -0.998471, -0.998005, -0.997478, -0.99689, -0.996242,
-0.995534, -0.994768, -0.993943, -0.99306, -0.99212, -0.991123,
-0.990071, -0.988965, -0.987804, -0.98659, -0.985324, -0.984007,
-0.982639, -0.981223, -0.979758, -0.978247, -0.976689, -0.975087,
-0.973441, -0.971753, -0.970024, -0.968255, -0.966447, -0.964602,
-0.96272, -0.960804, -0.958854, -0.956872, -0.954859, -0.952817,
-0.950746, -0.948649, -0.946526, -0.944379, -0.942209, -0.940017,
-0.937806, -0.935575, -0.933327, -0.931063, -0.928783, -0.926491,
-0.924185, -0.921869, -0.919542, -0.917207, -0.914864, -0.912514,
-0.91016, -0.907801, -0.905439, -0.903075, -0.90071, -0.898345,
-0.895981, -0.893619, -0.89126, -0.888905, -0.886554, -0.884208,
-0.881868, -0.879536, -0.87721, -0.874893, -0.872585, -0.870286,
-0.867997, -0.865719, -0.863452, -0.861196, -0.858951, -0.856719,
-0.8545, -0.852293, -0.850099, -0.847918, -0.845751, -0.843597,
-0.841457, -0.839331, -0.837219, -0.83512, -0.833035, -0.830964,
-0.828906, -0.826862, -0.824831, -0.822813, -0.820809, -0.818816,
-0.816837, -0.814869, -0.812914, -0.81097, -0.809037, -0.807115,
-0.805203, -0.803301, -0.801409, -0.799526, -0.797652, -0.795786,
-0.793928, -0.792077, -0.790232, -0.788394, -0.786562, -0.784735,
-0.782912, -0.781094, -0.779279, -0.777468, -0.775659, -0.773852,
-0.772046, -0.770242, -0.768438, -0.766634, -0.76483, -0.763024,
-0.761218, -0.759409, -0.757598, -0.755784, -0.753966, -0.752145,
-0.75032, -0.748491, -0.746656, -0.744817, -0.742972, -0.74112,
-0.739263, -0.737399, -0.735529, -0.733651, -0.731767, -0.729875,
-0.727975, -0.726068, -0.724152, -0.722229, -0.720297, -0.718357,
-0.716409, -0.714453, -0.712488, -0.710515, -0.708533, -0.706544,
-0.704546, -0.70254, -0.700525, -0.698503, -0.696473, -0.694435,
-0.69239, -0.690338, -0.688278, -0.686211, -0.684138, -0.682058,
-0.679972, -0.67788, -0.675782, -0.673679, -0.671571, -0.669459,
-0.667341, -0.66522, -0.663094, -0.660966, -0.658834, -0.656699,
-0.654562, -0.652423, -0.650282, -0.648139, -0.645996, -0.643851,
-0.641707, -0.639562, -0.637418, -0.635275, -0.633132, -0.630991,
-0.628852, -0.626714, -0.624579, -0.622447, -0.620317, -0.61819,
-0.616067, -0.613948, -0.611833, -0.609721, -0.607615, -0.605513,
-0.603415, -0.601323, -0.599236, -0.597155, -0.595078, -0.593008,
-0.590943, -0.588885, -0.586832, -0.584785, -0.582744, -0.58071,
-0.578681, -0.576659, -0.574643, -0.572633, -0.570629, -0.568632,
-0.56664, -0.564655, -0.562675, -0.560701, -0.558733, -0.55677,
-0.554812, -0.55286, -0.550913, -0.548971, -0.547034, -0.545101,
-0.543172, -0.541248, -0.539327, -0.53741, -0.535497, -0.533587,
-0.531679, -0.529775, -0.527873, -0.525973, -0.524075, -0.522178,
-0.520283, -0.518389, -0.516496, -0.514603, -0.512711, -0.510819,
-0.508926, -0.507033, -0.505139, -0.503244, -0.501348, -0.49945,
-0.49755, -0.495648, -0.493744, -0.491837, -0.489928, -0.488015,
-0.4861, -0.484181, -0.482259, -0.480332, -0.478402, -0.476468,
-0.47453, -0.472587, -0.47064, -0.468688, -0.466732, -0.46477,
-0.462804, -0.460833, -0.458857, -0.456876, -0.45489, -0.452899,
-0.450903, -0.448902, -0.446895, -0.444884, -0.442868, -0.440847,
-0.438821, -0.43679, -0.434755, -0.432714, -0.43067, -0.428621,
-0.426568, -0.424511, -0.42245, -0.420385, -0.418316, -0.416244,
-0.414169, -0.41209, -0.410009, -0.407925, -0.405839, -0.40375,
-0.40166, -0.399567, -0.397473, -0.395377, -0.393281, -0.391183,
-0.389085, -0.386986, -0.384887, -0.382788, -0.380689, -0.378591,
-0.376494, -0.374397, -0.372301, -0.370207, -0.368114, -0.366023,
-0.363935, -0.361848, -0.359763, -0.357682, -0.355603, -0.353526,
-0.351453, -0.349383, -0.347317, -0.345254, -0.343195, -0.341139,
-0.339087, -0.33704, -0.334996, -0.332956, -0.330921, -0.32889,
-0.326864, -0.324841, -0.322823, -0.32081, -0.318801, -0.316796,
-0.314796, -0.312801, -0.310809, -0.308822, -0.306839, -0.304861,
-0.302886, -0.300916, -0.29895, -0.296987, -0.295028, -0.293073,
-0.291121, -0.289173, -0.287228, -0.285286, -0.283347, -0.28141,
-0.279476, -0.277545, -0.275615, -0.273688, -0.271763, -0.269839,
-0.267917, -0.265996, -0.264075, -0.262156, -0.260238, -0.258319,
-0.256401, -0.254483, -0.252565, -0.250647, -0.248727, -0.246807,
-0.244886, -0.242964, -0.24104, -0.239115, -0.237188, -0.235259,
-0.233328, -0.231394, -0.229458, -0.227519, -0.225578, -0.223633,
-0.221686, -0.219735, -0.217781, -0.215824, -0.213863, -0.211898,
-0.20993, -0.207958, -0.205981, -0.204001, -0.202018, -0.20003,
-0.198037, -0.196041, -0.194041, -0.192037, -0.190028, -0.188016,
-0.185999, -0.183979, -0.181955, -0.179926, -0.177894, -0.175858,
-0.173819, -0.171775, -0.169729, -0.167679, -0.165626, -0.163569,
-0.16151, -0.159448, -0.157383, -0.155315, -0.153245, -0.151173,
-0.149099, -0.147023, -0.144945, -0.142866, -0.140785, -0.138704,
-0.136621, -0.134537, -0.132453, -0.130369, -0.128284, -0.126199,
-0.124115, -0.12203, -0.119947, -0.117864, -0.115782, -0.113702,
-0.111622, -0.109544, -0.107468, -0.105394, -0.103322, -0.101252,
-0.0991842, -0.0971191, -0.0950566, -0.0929969, -0.0909402, -0.0888865,
-0.0868359, -0.0847887, -0.0827448, -0.0807045, -0.0786677, -0.0766345,
-0.074605, -0.0725794, -0.0705575, -0.0685395, -0.0665254, -0.0645152,
-0.0625089, -0.0605066, -0.0585082, -0.0565137, -0.0545231, -0.0525363,
-0.0505534, -0.0485742, -0.0465987, -0.0446268, -0.0426585, -0.0406936,
-0.0387321, -0.0367738, -0.0348187, -0.0328667, -0.0309175, -0.0289711,
-0.0270273, -0.0250861, -0.0231471, -0.0212103, -0.0192756, -0.0173427,
-0.0154114, -0.0134817, -0.0115532, -0.00962595, -0.00769962, -0.00577404,
-0.00384904, -0.00192442
};
static const float WAVE_TRIANGLE_102[DEFAULT_WAVELEN] = {
0, 0.00189552, 0.00379114, 0.00568696, 0.00758307, 0.00947957,
0.0113766, 0.0132742, 0.0151724, 0.0170715, 0.0189714, 0.0208723,
0.0227743, 0.0246775, 0.0265819, 0.0284877, 0.0303949, 0.0323036,
0.034214, 0.0361261, 0.03804, 0.0399559, 0.0418737, 0.0437935,
0.0457155, 0.0476398, 0.0495664, 0.0514954, 0.0534268, 0.0553608,
0.0572975, 0.0592368, 0.061179, 0.063124, 0.0650719, 0.0670228,
0.0689768, 0.0709339, 0.0728942, 0.0748577, 0.0768245, 0.0787947,
0.0807684, 0.0827455, 0.0847261, 0.0867103, 0.0886981, 0.0906896,
0.0926848, 0.0946838, 0.0966865, 0.0986931, 0.100704, 0.102718,
0.104736, 0.106758, 0.108784, 0.110815, 0.112849, 0.114887,
0.116929, 0.118976, 0.121026, 0.123081, 0.125139, 0.127202,
0.129269, 0.13134, 0.133415, 0.135494, 0.137577, 0.139664,
0.141755, 0.143851, 0.14595, 0.148053, 0.150161, 0.152272,
0.154387, 0.156506, 0.158629, 0.160756, 0.162886, 0.165021,
0.167159, 0.1693, 0.171446, 0.173594, 0.175747, 0.177903,
0.180062, 0.182225, 0.18439, 0.18656, 0.188732, 0.190907,
0.193086, 0.195267, 0.197451, 0.199639, 0.201828, 0.204021,
0.206216, 0.208414, 0.210614, 0.212816, 0.215021, 0.217228,
0.219437, 0.221648, 0.223861, 0.226076, 0.228292, 0.23051,
0.23273, 0.234951, 0.237173, 0.239397, 0.241622, 0.243847,
0.246074, 0.248302, 0.25053, 0.252759, 0.254989, 0.257219,
0.259449, 0.261679, 0.26391, 0.26614, 0.268371, 0.270601,
0.272831, 0.275061, 0.27729, 0.279518, 0.281745, 0.283972,
0.286198, 0.288423, 0.290646, 0.292868, 0.295089, 0.297308,
0.299526, 0.301742, 0.303957, 0.306169, 0.308379, 0.310587,
0.312793, 0.314997, 0.317198, 0.319397, 0.321593, 0.323787,
0.325978, 0.328166, 0.330351, 0.332532, 0.334711, 0.336887,
0.339059, 0.341228, 0.343393, 0.345555, 0.347713, 0.349868,
0.352018, 0.354165, 0.356308, 0.358447, 0.360582, 0.362713,
0.36484, 0.366962, 0.36908, 0.371194, 0.373304, 0.375409,
0.37751, 0.379606, 0.381697, 0.383784, 0.385866, 0.387944,
0.390017, 0.392085, 0.394149, 0.396207, 0.398261, 0.400311,
0.402355, 0.404394, 0.406429, 0.408459, 0.410484, 0.412504,
0.414519, 0.416529, 0.418535, 0.420536, 0.422532, 0.424523,
0.426509, 0.428491, 0.430468, 0.43244, 0.434408, 0.436371,
0.438329, 0.440283, 0.442232, 0.444177, 0.446118, 0.448054,
0.449986, 0.451913, 0.453837, 0.455756, 0.457672, 0.459583,
0.46149, 0.463394, 0.465294, 0.46719, 0.469082, 0.470971,
0.472857, 0.474739, 0.476618, 0.478494, 0.480367, 0.482237,
0.484104, 0.485969, 0.48783, 0.489689, 0.491546, 0.493401,
0.495253, 0.497103, 0.498951, 0.500798, 0.502642, 0.504485,
0.506327, 0.508167, 0.510006, 0.511844, 0.513681, 0.515518,
0.517353, 0.519188, 0.521023, 0.522857, 0.524691, 0.526525,
0.52836, 0.530194, 0.532029, 0.533865, 0.535701, 0.537538,
0.539376, 0.541215, 0.543056, 0.544898, 0.546741, 0.548587,
0.550434, 0.552283, 0.554134, 0.555988, 0.557844, 0.559702,
0.561563, 0.563427, 0.565295, 0.567165, 0.569038, 0.570915,
0.572796, 0.57468, 0.576568, 0.57846, 0.580356, 0.582256,
0.584161, 0.58607, 0.587984, 0.589902, 0.591825, 0.593754,
0.595687, 0.597626, 0.599569, 0.601519, 0.603474, 0.605434,
0.6074, 0.609372, 0.61135, 0.613334, 0.615325, 0.617321,
0.619324, 0.621333, 0.623349, 0.625371, 0.6274, 0.629435,
0.631478, 0.633527, 0.635583, 0.637646, 0.639716, 0.641793,
0.643877, 0.645969, 0.648067, 0.650173, 0.652286, 0.654407,
0.656534, 0.658669, 0.660812, 0.662961, 0.665118, 0.667283,
0.669455, 0.671634, 0.67382, 0.676014, 0.678215, 0.680424,
0.682639, 0.684862, 0.687092, 0.689329, 0.691574, 0.693825,
0.696083, 0.698349, 0.700621, 0.702899, 0.705185, 0.707477,
0.709776, 0.712081, 0.714392, 0.71671, 0.719034, 0.721364,
0.7237, 0.726041, 0.728389, 0.730741, 0.733099, 0.735463,
0.737831, 0.740205, 0.742583, 0.744966, 0.747354, 0.749745,
0.752141, 0.754541, 0.756945, 0.759352, 0.761763, 0.764177,
0.766594, 0.769013, 0.771435, 0.77386, 0.776287, 0.778716,
0.781146, 0.783578, 0.786011, 0.788445, 0.79088, 0.793316,
0.795751, 0.798187, 0.800622, 0.803057, 0.805491, 0.807924,
0.810356, 0.812786, 0.815214, 0.81764, 0.820064, 0.822485,
0.824902, 0.827317, 0.829727, 0.832134, 0.834537, 0.836935,
0.839328, 0.841716, 0.844098, 0.846475, 0.848845, 0.851209,
0.853566, 0.855916, 0.858259, 0.860594, 0.862921, 0.865239,
0.867549, 0.869849, 0.87214, 0.874421, 0.876692, 0.878953,
0.881203, 0.883441, 0.885669, 0.887884, 0.890087, 0.892278,
0.894455, 0.89662, 0.898771, 0.900908, 0.903031, 0.905139,
0.907232, 0.90931, 0.911373, 0.913419, 0.91545, 0.917463,
0.91946, 0.921439, 0.9234, 0.925344, 0.927269, 0.929176,
0.931064, 0.932932, 0.934781, 0.93661, 0.938418, 0.940206,
0.941973, 0.943719, 0.945443, 0.947146, 0.948826, 0.950484,
0.952119, 0.953731, 0.95532, 0.956885, 0.958426, 0.959943,
0.961435, 0.962903, 0.964346, 0.965763, 0.967155, 0.968521,
0.969861, 0.971175, 0.972462, 0.973722, 0.974955, 0.976161,
0.97734, 0.97849, 0.979613, 0.980707, 0.981774, 0.982811,
0.98382, 0.9848, 0.98575, 0.986672, 0.987563, 0.988425,
0.989258, 0.99006, 0.990832, 0.991573, 0.992284, 0.992965,
0.993615, 0.994234, 0.994821, 0.995378, 0.995904, 0.996398,
0.996861, 0.997292, 0.997692, 0.99806, 0.998396, 0.9987,
0.998973, 0.999213, 0.999422, 0.999598, 0.999743, 0.999855,
0.999936, 0.999984, 1, 0.999984, 0.999936, 0.999855,
0.999743, 0.999598, 0.999422, 0.999213, 0.998973, 0.9987,
0.998396, 0.99806, 0.997692, 0.997292, 0.996861, 0.996398,
0.995904, 0.995378, 0.994821, 0.994234, 0.993615, 0.992965,
0.992284, 0.991573, 0.990832, 0.99006, 0.989258, 0.988425,
0.987563, 0.986672, 0.98575, 0.9848, 0.98382, 0.982811,
0.981774, 0.980707, 0.979613, 0.97849, 0.97734, 0.976161,
0.974955, 0.973722, 0.972462, 0.971175, 0.969861, 0.968521,
0.967155, 0.965763, 0.964346, 0.962903, 0.961435, 0.959943,
0.958426, 0.956885, 0.95532, 0.953731, 0.952119, 0.950484,
0.948826, 0.947146, 0.945443, 0.943719, 0.941973, 0.940206,
0.938418, 0.93661, 0.934781, 0.932932, 0.931064, 0.929176,
0.927269, 0.925344, 0.9234, 0.921439, 0.91946, 0.917463,
0.91545, 0.913419, 0.911373, 0.90931, 0.907232, 0.905139,
0.903031, 0.900908, 0.898771, 0.89662, 0.894455, 0.892278,
0.890087, 0.887884, 0.885669, 0.883441, 0.881203, 0.878953,
0.876692, 0.874421, 0.87214, 0.869849, 0.867549, 0.865239,
0.862921, 0.860594, 0.858259, 0.855916, 0.853566, 0.851209,
0.848845, 0.846475, 0.844098, 0.841716, 0.839328, 0.836935,
0.834537, 0.832134, 0.829727, 0.827317, 0.824902, 0.822485,
0.820064, 0.81764, 0.815214, 0.812786, 0.810356, 0.807924,
0.805491, 0.803057, 0.800622, 0.798187, 0.795751, 0.793316,
0.79088, 0.788445, 0.786011, 0.783578, 0.781146, 0.778716,
0.776287, 0.77386, 0.771435, 0.769013, 0.766594, 0.764177,
0.761763, 0.759352, 0.756945, 0.754541, 0.752141, 0.749745,
0.747354, 0.744966, 0.742583, 0.740205, 0.737831, 0.735463,
0.733099, 0.730741, 0.728389, 0.726041, 0.7237, 0.721364,
0.719034, 0.71671, 0.714392, 0.712081, 0.709776, 0.707477,
0.705185, 0.702899, 0.700621, 0.698349, 0.696083, 0.693825,
0.691574, 0.689329, 0.687092, 0.684862, 0.682639, 0.680424,
0.678215, 0.676014, 0.67382, 0.671634, 0.669455, 0.667283,
0.665118, 0.662961, 0.660812, 0.658669, 0.656534, 0.654407,
0.652286, 0.650173, 0.648067, 0.645969, 0.643877, 0.641793,
0.639716, 0.637646, 0.635583, 0.633527, 0.631478, 0.629435,
0.6274, 0.625371, 0.623349, 0.621333, 0.619324, 0.617321,
0.615325, 0.613334, 0.61135, 0.609372, 0.6074, 0.605434,
0.603474, 0.601519, 0.599569, 0.597626, 0.595687, 0.593754,
0.591825, 0.589902, 0.587984, 0.58607, 0.584161, 0.582256,
0.580356, 0.57846, 0.576568, 0.57468, 0.572796, 0.570915,
0.569038, 0.567165, 0.565295, 0.563427, 0.561563, 0.559702,
0.557844, 0.555988, 0.554134, 0.552283, 0.550434, 0.548587,
0.546741, 0.544898, 0.543056, 0.541215, 0.539376, 0.537538,
0.535701, 0.533865, 0.532029, 0.530194, 0.52836, 0.526525,
0.524691, 0.522857, 0.521023, 0.519188, 0.517353, 0.515518,
0.513681, 0.511844, 0.510006, 0.508167, 0.506327, 0.504485,
0.502642, 0.500798, 0.498951, 0.497103, 0.495253, 0.493401,
0.491546, 0.489689, 0.48783, 0.485969, 0.484104, 0.482237,
0.480367, 0.478494, 0.476618, 0.474739, 0.472857, 0.470971,
0.469082, 0.46719, 0.465294, 0.463394, 0.46149, 0.459583,
0.457672, 0.455756, 0.453837, 0.451913, 0.449986, 0.448054,
0.446118, 0.444177, 0.442232, 0.440283, 0.438329, 0.436371,
0.434408, 0.43244, 0.430468, 0.428491, 0.426509, 0.424523,
0.422532, 0.420536, 0.418535, 0.416529, 0.414519, 0.412504,
0.410484, 0.408459, 0.406429, 0.404394, 0.402355, 0.400311,
0.398261, 0.396207, 0.394149, 0.392085, 0.390017, 0.387944,
0.385866, 0.383784, 0.381697, 0.379606, 0.37751, 0.375409,
0.373304, 0.371194, 0.36908, 0.366962, 0.36484, 0.362713,
0.360582, 0.358447, 0.356308, 0.354165, 0.352018, 0.349868,
0.347713, 0.345555, 0.343393, 0.341228, 0.339059, 0.336887,
0.334711, 0.332532, 0.330351, 0.328166, 0.325978, 0.323787,
0.321593, 0.319397, 0.317198, 0.314997, 0.312793, 0.310587,
0.308379, 0.306169, 0.303957, 0.301742, 0.299526, 0.297308,
0.295089, 0.292868, 0.290646, 0.288423, 0.286198, 0.283972,
0.281745, 0.279518, 0.27729, 0.275061, 0.272831, 0.270601,
0.268371, 0.26614, 0.26391, 0.261679, 0.259449, 0.257219,
0.254989, 0.252759, 0.25053, 0.248302, 0.246074, 0.243847,
0.241622, 0.239397, 0.237173, 0.234951, 0.23273, 0.23051,
0.228292, 0.226076, 0.223861, 0.221648, 0.219437, 0.217228,
0.215021, 0.212816, 0.210614, 0.208414, 0.206216, 0.204021,
0.201828, 0.199639, 0.197451, 0.195267, 0.193086, 0.190907,
0.188732, 0.18656, 0.18439, 0.182225, 0.180062, 0.177903,
0.175747, 0.173594, 0.171446, 0.1693, 0.167159, 0.165021,
0.162886, 0.160756, 0.158629, 0.156506, 0.154387, 0.152272,
0.150161, 0.148053, 0.14595, 0.143851, 0.141755, 0.139664,
0.137577, 0.135494, 0.133415, 0.13134, 0.129269, 0.127202,
0.125139, 0.123081, 0.121026, 0.118976, 0.116929, 0.114887,
0.112849, 0.110815, 0.108784, 0.106758, 0.104736, 0.102718,
0.100704, 0.0986931, 0.0966865, 0.0946838, 0.0926848, 0.0906896,
0.0886981, 0.0867103, 0.0847261, 0.0827455, 0.0807684, 0.0787947,
0.0768245, 0.0748577, 0.0728942, 0.0709339, 0.0689768, 0.0670228,
0.0650719, 0.063124, 0.061179, 0.0592368, 0.0572975, 0.0553608,
0.0534268, 0.0514954, 0.0495664, 0.0476398, 0.0457155, 0.0437935,
0.0418737, 0.0399559, 0.03804, 0.0361261, 0.034214, 0.0323036,
0.0303949, 0.0284877, 0.0265819, 0.0246775, 0.0227743, 0.0208723,
0.0189714, 0.0170715, 0.0151724, 0.0132742, 0.0113766, 0.00947957,
0.00758307, 0.00568696, 0.00379114, 0.00189552, 0, -0.00189552,
-0.00379114, -0.00568696, -0.00758307, -0.00947957, -0.0113766, -0.0132742,
-0.0151724, -0.0170715, -0.0189714, -0.0208723, -0.0227743, -0.0246775,
-0.0265819, -0.0284877, -0.0303949, -0.0323036, -0.034214, -0.0361261,
-0.03804, -0.0399559, -0.0418737, -0.0437935, -0.0457155, -0.0476398,
-0.0495664, -0.0514954, -0.0534268, -0.0553608, -0.0572975, -0.0592368,
-0.061179, -0.063124, -0.0650719, -0.0670228, -0.0689768, -0.0709339,
-0.0728942, -0.0748577, -0.0768245, -0.0787947, -0.0807684, -0.0827455,
-0.0847261, -0.0867103, -0.0886981, -0.0906896, -0.0926848, -0.0946838,
-0.0966865, -0.0986931, -0.100704, -0.102718, -0.104736, -0.106758,
-0.108784, -0.110815, -0.112849, -0.114887, -0.116929, -0.118976,
-0.121026, -0.123081, -0.125139, -0.127202, -0.129269, -0.13134,
-0.133415, -0.135494, -0.137577, -0.139664, -0.141755, -0.143851,
-0.14595, -0.148053, -0.150161, -0.152272, -0.154387, -0.156506,
-0.158629, -0.160756, -0.162886, -0.165021, -0.167159, -0.1693,
-0.171446, -0.173594, -0.175747, -0.177903, -0.180062, -0.182225,
-0.18439, -0.18656, -0.188732, -0.190907, -0.193086, -0.195267,
-0.197451, -0.199639, -0.201828, -0.204021, -0.206216, -0.208414,
-0.210614, -0.212816, -0.215021, -0.217228, -0.219437, -0.221648,
-0.223861, -0.226076, -0.228292, -0.23051, -0.23273, -0.234951,
-0.237173, -0.239397, -0.241622, -0.243847, -0.246074, -0.248302,
-0.25053, -0.252759, -0.254989, -0.257219, -0.259449, -0.261679,
-0.26391, -0.26614, -0.268371, -0.270601, -0.272831, -0.275061,
-0.27729, -0.279518, -0.281745, -0.283972, -0.286198, -0.288423,
-0.290646, -0.292868, -0.295089, -0.297308, -0.299526, -0.301742,
-0.303957, -0.306169, -0.308379, -0.310587, -0.312793, -0.314997,
-0.317198, -0.319397, -0.321593, -0.323787, -0.325978, -0.328166,
-0.330351, -0.332532, -0.334711, -0.336887, -0.339059, -0.341228,
-0.343393, -0.345555, -0.347713, -0.349868, -0.352018, -0.354165,
-0.356308, -0.358447, -0.360582, -0.362713, -0.36484, -0.366962,
-0.36908, -0.371194, -0.373304, -0.375409, -0.37751, -0.379606,
-0.381697, -0.383784, -0.385866, -0.387944, -0.390017, -0.392085,
-0.394149, -0.396207, -0.398261, -0.400311, -0.402355, -0.404394,
-0.406429, -0.408459, -0.410484, -0.412504, -0.414519, -0.416529,
-0.418535, -0.420536, -0.422532, -0.424523, -0.426509, -0.428491,
-0.430468, -0.43244, -0.434408, -0.436371, -0.438329, -0.440283,
-0.442232, -0.444177, -0.446118, -0.448054, -0.449986, -0.451913,
-0.453837, -0.455756, -0.457672, -0.459583, -0.46149, -0.463394,
-0.465294, -0.46719, -0.469082, -0.470971, -0.472857, -0.474739,
-0.476618, -0.478494, -0.480367, -0.482237, -0.484104, -0.485969,
-0.48783, -0.489689, -0.491546, -0.493401, -0.495253, -0.497103,
-0.498951, -0.500798, -0.502642, -0.504485, -0.506327, -0.508167,
-0.510006, -0.511844, -0.513681, -0.515518, -0.517353, -0.519188,
-0.521023, -0.522857, -0.524691, -0.526525, -0.52836, -0.530194,
-0.532029, -0.533865, -0.535701, -0.537538, -0.539376, -0.541215,
-0.543056, -0.544898, -0.546741, -0.548587, -0.550434, -0.552283,
-0.554134, -0.555988, -0.557844, -0.559702, -0.561563, -0.563427,
-0.565295, -0.567165, -0.569038, -0.570915, -0.572796, -0.57468,
-0.576568, -0.57846, -0.580356, -0.582256, -0.584161, -0.58607,
-0.587984, -0.589902, -0.591825, -0.593754, -0.595687, -0.597626,
-0.599569, -0.601519, -0.603474, -0.605434, -0.6074, -0.609372,
-0.61135, -0.613334, -0.615325, -0.617321, -0.619324, -0.621333,
-0.623349, -0.625371, -0.6274, -0.629435, -0.631478, -0.633527,
-0.635583, -0.637646, -0.639716, -0.641793, -0.643877, -0.645969,
-0.648067, -0.650173, -0.652286, -0.654407, -0.656534, -0.658669,
-0.660812, -0.662961, -0.665118, -0.667283, -0.669455, -0.671634,
-0.67382, -0.676014, -0.678215, -0.680424, -0.682639, -0.684862,
-0.687092, -0.689329, -0.691574, -0.693825, -0.696083, -0.698349,
-0.700621, -0.702899, -0.705185, -0.707477, -0.709776, -0.712081,
-0.714392, -0.71671, -0.719034, -0.721364, -0.7237, -0.726041,
-0.728389, -0.730741, -0.733099, -0.735463, -0.737831, -0.740205,
-0.742583, -0.744966, -0.747354, -0.749745, -0.752141, -0.754541,
-0.756945, -0.759352, -0.761763, -0.764177, -0.766594, -0.769013,
-0.771435, -0.77386, -0.776287, -0.778716, -0.781146, -0.783578,
-0.786011, -0.788445, -0.79088, -0.793316, -0.795751, -0.798187,
-0.800622, -0.803057, -0.805491, -0.807924, -0.810356, -0.812786,
-0.815214, -0.81764, -0.820064, -0.822485, -0.824902, -0.827317,
-0.829727, -0.832134, -0.834537, -0.836935, -0.839328, -0.841716,
-0.844098, -0.846475, -0.848845, -0.851209, -0.853566, -0.855916,
-0.858259, -0.860594, -0.862921, -0.865239, -0.867549, -0.869849,
-0.87214, -0.874421, -0.876692, -0.878953, -0.881203, -0.883441,
-0.885669, -0.887884, -0.890087, -0.892278, -0.894455, -0.89662,
-0.898771, -0.900908, -0.903031, -0.905139, -0.907232, -0.90931,
-0.911373, -0.913419, -0.91545, -0.917463, -0.91946, -0.921439,
-0.9234, -0.925344, -0.927269, -0.929176, -0.931064, -0.932932,
-0.934781, -0.93661, -0.938418, -0.940206, -0.941973, -0.943719,
-0.945443, -0.947146, -0.948826, -0.950484, -0.952119, -0.953731,
-0.95532, -0.956885, -0.958426, -0.959943, -0.961435, -0.962903,
-0.964346, -0.965763, -0.967155, -0.968521, -0.969861, -0.971175,
-0.972462, -0.973722, -0.974955, -0.976161, -0.97734, -0.97849,
-0.979613, -0.980707, -0.981774, -0.982811, -0.98382, -0.9848,
-0.98575, -0.986672, -0.987563, -0.988425, -0.989258, -0.99006,
-0.990832, -0.991573, -0.992284, -0.992965, -0.993615, -0.994234,
-0.994821, -0.995378, -0.995904, -0.996398, -0.996861, -0.997292,
-0.997692, -0.99806, -0.998396, -0.9987, -0.998973, -0.999213,
-0.999422, -0.999598, -0.999743, -0.999855, -0.999936, -0.999984,
-1, -0.999984, -0.999936, -0.999855, -0.999743, -0.999598,
-0.999422, -0.999213, -0.998973, -0.9987, -0.998396, -0.99806,
-0.997692, -0.997292, -0.996861, -0.996398, -0.995904, -0.995378,
-0.994821, -0.994234, -0.993615, -0.992965, -0.992284, -0.991573,
-0.990832, -0.99006, -0.989258, -0.988425, -0.987563, -0.986672,
-0.98575, -0.9848, -0.98382, -0.982811, -0.981774, -0.980707,
-0.979613, -0.97849, -0.97734, -0.976161, -0.974955, -0.973722,
-0.972462, -0.971175, -0.969861, -0.968521, -0.967155, -0.965763,
-0.964346, -0.962903, -0.961435, -0.959943, -0.958426, -0.956885,
-0.95532, -0.953731, -0.952119, -0.950484, -0.948826, -0.947146,
-0.945443, -0.943719, -0.941973, -0.940206, -0.938418, -0.93661,
-0.934781, -0.932932, -0.931064, -0.929176, -0.927269, -0.925344,
-0.9234, -0.921439, -0.91946, -0.917463, -0.91545, -0.913419,
-0.911373, -0.90931, -0.907232, -0.905139, -0.903031, -0.900908,
-0.898771, -0.89662, -0.894455, -0.892278, -0.890087, -0.887884,
-0.885669, -0.883441, -0.881203, -0.878953, -0.876692, -0.874421,
-0.87214, -0.869849, -0.867549, -0.865239, -0.862921, -0.860594,
-0.858259, -0.855916, -0.853566, -0.851209, -0.848845, -0.846475,
-0.844098, -0.841716, -0.839328, -0.836935, -0.834537, -0.832134,
-0.829727, -0.827317, -0.824902, -0.822485, -0.820064, -0.81764,
-0.815214, -0.812786, -0.810356, -0.807924, -0.805491, -0.803057,
-0.800622, -0.798187, -0.795751, -0.793316, -0.79088, -0.788445,
-0.786011, -0.783578, -0.781146, -0.778716, -0.776287, -0.77386,
-0.771435, -0.769013, -0.766594, -0.764177, -0.761763, -0.759352,
-0.756945, -0.754541, -0.752141, -0.749745, -0.747354, -0.744966,
-0.742583, -0.740205, -0.737831, -0.735463, -0.733099, -0.730741,
-0.728389, -0.726041, -0.7237, -0.721364, -0.719034, -0.71671,
-0.714392, -0.712081, -0.709776, -0.707477, -0.705185, -0.702899,
-0.700621, -0.698349, -0.696083, -0.693825, -0.691574, -0.689329,
-0.687092, -0.684862, -0.682639, -0.680424, -0.678215, -0.676014,
-0.67382, -0.671634, -0.669455, -0.667283, -0.665118, -0.662961,
-0.660812, -0.658669, -0.656534, -0.654407, -0.652286, -0.650173,
-0.648067, -0.645969, -0.643877, -0.641793, -0.639716, -0.637646,
-0.635583, -0.633527, -0.631478, -0.629435, -0.6274, -0.625371,
-0.623349, -0.621333, -0.619324, -0.617321, -0.615325, -0.613334,
-0.61135, -0.609372, -0.6074, -0.605434, -0.603474, -0.601519,
-0.599569, -0.597626, -0.595687, -0.593754, -0.591825, -0.589902,
-0.587984, -0.58607, -0.584161, -0.582256, -0.580356, -0.57846,
-0.576568, -0.57468, -0.572796, -0.570915, -0.569038, -0.567165,
-0.565295, -0.563427, -0.561563, -0.559702, -0.557844, -0.555988,
-0.554134, -0.552283, -0.550434, -0.548587, -0.546741, -0.544898,
-0.543056, -0.541215, -0.539376, -0.537538, -0.535701, -0.533865,
-0.532029, -0.530194, -0.52836, -0.526525, -0.524691, -0.522857,
-0.521023, -0.519188, -0.517353, -0.515518, -0.513681, -0.511844,
-0.510006, -0.508167, -0.506327, -0.504485, -0.502642, -0.500798,
-0.498951, -0.497103, -0.495253, -0.493401, -0.491546, -0.489689,
-0.48783, -0.485969, -0.484104, -0.482237, -0.480367, -0.478494,
-0.476618, -0.474739, -0.472857, -0.470971, -0.469082, -0.46719,
-0.465294, -0.463394, -0.46149, -0.459583, -0.457672, -0.455756,
-0.453837, -0.451913, -0.449986, -0.448054, -0.446118, -0.444177,
-0.442232, -0.440283, -0.438329, -0.436371, -0.434408, -0.43244,
-0.430468, -0.428491, -0.426509, -0.424523, -0.422532, -0.420536,
-0.418535, -0.416529, -0.414519, -0.412504, -0.410484, -0.408459,
-0.406429, -0.404394, -0.402355, -0.400311, -0.398261, -0.396207,
-0.394149, -0.392085, -0.390017, -0.387944, -0.385866, -0.383784,
-0.381697, -0.379606, -0.37751, -0.375409, -0.373304, -0.371194,
-0.36908, -0.366962, -0.36484, -0.362713, -0.360582, -0.358447,
-0.356308, -0.354165, -0.352018, -0.349868, -0.347713, -0.345555,
-0.343393, -0.341228, -0.339059, -0.336887, -0.334711, -0.332532,
-0.330351, -0.328166, -0.325978, -0.323787, -0.321593, -0.319397,
-0.317198, -0.314997, -0.312793, -0.310587, -0.308379, -0.306169,
-0.303957, -0.301742, -0.299526, -0.297308, -0.295089, -0.292868,
-0.290646, -0.288423, -0.286198, -0.283972, -0.281745, -0.279518,
-0.27729, -0.275061, -0.272831, -0.270601, -0.268371, -0.26614,
-0.26391, -0.261679, -0.259449, -0.257219, -0.254989, -0.252759,
-0.25053, -0.248302, -0.246074, -0.243847, -0.241622, -0.239397,
-0.237173, -0.234951, -0.23273, -0.23051, -0.228292, -0.226076,
-0.223861, -0.221648, -0.219437, -0.217228, -0.215021, -0.212816,
-0.210614, -0.208414, -0.206216, -0.204021, -0.201828, -0.199639,
-0.197451, -0.195267, -0.193086, -0.190907, -0.188732, -0.18656,
-0.18439, -0.182225, -0.180062, -0.177903, -0.175747, -0.173594,
-0.171446, -0.1693, -0.167159, -0.165021, -0.162886, -0.160756,
-0.158629, -0.156506, -0.154387, -0.152272, -0.150161, -0.148053,
-0.14595, -0.143851, -0.141755, -0.139664, -0.137577, -0.135494,
-0.133415, -0.13134, -0.129269, -0.127202, -0.125139, -0.123081,
-0.121026, -0.118976, -0.116929, -0.114887, -0.112849, -0.110815,
-0.108784, -0.106758, -0.104736, -0.102718, -0.100704, -0.0986931,
-0.0966865, -0.0946838, -0.0926848, -0.0906896, -0.0886981, -0.0867103,
-0.0847261, -0.0827455, -0.0807684, -0.0787947, -0.0768245, -0.0748577,
-0.0728942, -0.0709339, -0.0689768, -0.0670228, -0.0650719, -0.063124,
-0.061179, -0.0592368, -0.0572975, -0.0553608, -0.0534268, -0.0514954,
-0.0495664, -0.0476398, -0.0457155, -0.0437935, -0.0418737, -0.0399559,
-0.03804, -0.0361261, -0.034214, -0.0323036, -0.0303949, -0.0284877,
-0.0265819, -0.0246775, -0.0227743, -0.0208723, -0.0189714, -0.0170715,
-0.0151724, -0.0132742, -0.0113766, -0.00947957, -0.00758307, -0.00568696,
-0.00379114, -0.00189552
};
static const float WAVE_TRIANGLE_114[DEFAULT_WAVELEN] = {
0, 0.00184079, 0.00368162, 0.00552256, 0.00736366, 0.00920497,
0.0110465, 0.0128884, 0.0147306, 0.0165733, 0.0184164, 0.0202601,
0.0221043, 0.0239491, 0.0257946, 0.0276409, 0.0294879, 0.0313357,
0.0331844, 0.0350341, 0.0368847, 0.0387363, 0.0405891, 0.0424429,
0.044298, 0.0461543, 0.0480118, 0.0498707, 0.051731, 0.0535927,
0.0554559, 0.0573207, 0.059187, 0.0610549, 0.0629245, 0.0647958,
0.066669, 0.0685439, 0.0704207, 0.0722994, 0.0741801, 0.0760628,
0.0779476, 0.0798344, 0.0817234, 0.0836146, 0.0855081, 0.0874038,
0.0893019, 0.0912024, 0.0931053, 0.0950106, 0.0969185, 0.0988289,
0.100742, 0.102658, 0.104576, 0.106497, 0.108421, 0.110347,
0.112277, 0.114209, 0.116145, 0.118083, 0.120024, 0.121969,
0.123916, 0.125867, 0.12782, 0.129777, 0.131738, 0.133701,
0.135668, 0.137638, 0.139612, 0.141589, 0.143569, 0.145553,
0.147541, 0.149532, 0.151526, 0.153525, 0.155526, 0.157532,
0.159541, 0.161555, 0.163571, 0.165592, 0.167617, 0.169645,
0.171678, 0.173714, 0.175754, 0.177798, 0.179847, 0.181899,
0.183955, 0.186016, 0.18808, 0.190149, 0.192222, 0.194299,
0.19638, 0.198465, 0.200555, 0.202649, 0.204747, 0.20685,
0.208957, 0.211068, 0.213184, 0.215304, 0.217428, 0.219557,
0.22169, 0.223828, 0.22597, 0.228116, 0.230267, 0.232423,
0.234583, 0.236748, 0.238917, 0.24109, 0.243269, 0.245451,
0.247639, 0.249831, 0.252027, 0.254228, 0.256434, 0.258644,
0.260859, 0.263078, 0.265302, 0.267531, 0.269764, 0.272002,
0.274245, 0.276492, 0.278744, 0.281, 0.283261, 0.285526,
0.287796, 0.290071, 0.29235, 0.294634, 0.296923, 0.299216,
0.301514, 0.303816, 0.306122, 0.308434, 0.310749, 0.31307,
0.315395, 0.317724, 0.320058, 0.322396, 0.324739, 0.327086,
0.329437, 0.331793, 0.334154, 0.336518, 0.338887, 0.341261,
0.343638, 0.346021, 0.348407, 0.350797, 0.353192, 0.355591,
0.357994, 0.360401, 0.362813, 0.365228, 0.367648, 0.370072,
0.372499, 0.374931, 0.377367, 0.379806, 0.38225, 0.384697,
0.387149, 0.389604, 0.392062, 0.394525, 0.396991, 0.399461,
0.401935, 0.404412, 0.406893, 0.409377, 0.411865, 0.414356,
0.41685, 0.419348, 0.42185, 0.424354, 0.426862, 0.429373,
0.431887, 0.434405, 0.436925, 0.439449, 0.441975, 0.444504,
0.447036, 0.449572, 0.452109, 0.45465, 0.457193, 0.459739,
0.462287, 0.464838, 0.467392, 0.469948, 0.472506, 0.475067,
0.47763, 0.480195, 0.482762, 0.485331, 0.487903, 0.490476,
0.493051, 0.495628, 0.498207, 0.500788, 0.50337, 0.505954,
0.50854, 0.511127, 0.513715, 0.516305, 0.518896, 0.521489,
0.524082, 0.526677, 0.529273, 0.53187, 0.534467, 0.537066,
0.539665, 0.542265, 0.544866, 0.547467, 0.550069, 0.552671,
0.555273, 0.557876, 0.560479, 0.563082, 0.565685, 0.568289,
0.570892, 0.573495, 0.576098, 0.5787, 0.581302, 0.583904,
0.586505, 0.589106, 0.591706, 0.594305, 0.596903, 0.5995,
0.602097, 0.604692, 0.607286, 0.609879, 0.612471, 0.615061,
0.61765, 0.620237, 0.622822, 0.625406, 0.627988, 0.630568,
0.633147, 0.635723, 0.638297, 0.640868, 0.643438, 0.646005,
0.64857, 0.651132, 0.653691, 0.656248, 0.658802, 0.661353,
0.663901, 0.666446, 0.668988, 0.671526, 0.674061, 0.676593,
0.679121, 0.681646, 0.684167, 0.686684, 0.689198, 0.691707,
0.694213, 0.696714, 0.699211, 0.701704, 0.704192, 0.706676,
0.709155, 0.71163, 0.7141, 0.716565, 0.719025, 0.72148,
0.72393, 0.726374, 0.728814, 0.731248, 0.733676, 0.736099,
0.738516, 0.740928, 0.743334, 0.745733, 0.748127, 0.750515,
0.752896, 0.755271, 0.75764, 0.760002, 0.762358, 0.764707,
0.767049, 0.769384, 0.771713, 0.774034, 0.776348, 0.778655,
0.780955, 0.783248, 0.785532, 0.78781, 0.790079, 0.792341,
0.794595, 0.796841, 0.799079, 0.801309, 0.803531, 0.805744,
0.807949, 0.810146, 0.812334, 0.814513, 0.816684, 0.818845,
0.820998, 0.823142, 0.825276, 0.827402, 0.829518, 0.831625,
0.833722, 0.83581, 0.837888, 0.839957, 0.842016, 0.844064,
0.846103, 0.848132, 0.850151, 0.852159, 0.854157, 0.856145,
0.858122, 0.860088, 0.862044, 0.86399, 0.865924, 0.867847,
0.86976, 0.871661, 0.873552, 0.875431, 0.877298, 0.879155,
0.881, 0.882833, 0.884655, 0.886465, 0.888263, 0.890049,
0.891823, 0.893586, 0.895336, 0.897074, 0.8988, 0.900513,
0.902214, 0.903903, 0.905579, 0.907242, 0.908893, 0.910531,
0.912156, 0.913768, 0.915367, 0.916954, 0.918527, 0.920086,
0.921633, 0.923166, 0.924686, 0.926192, 0.927685, 0.929164,
0.930629, 0.932081, 0.933519, 0.934942, 0.936353, 0.937749,
0.93913, 0.940498, 0.941852, 0.943191, 0.944516, 0.945827,
0.947123, 0.948405, 0.949672, 0.950925, 0.952163, 0.953386,
0.954594, 0.955788, 0.956967, 0.95813, 0.959279, 0.960413,
0.961531, 0.962635, 0.963723, 0.964796, 0.965854, 0.966896,
0.967923, 0.968934, 0.96993, 0.970911, 0.971876, 0.972825,
0.973759, 0.974676, 0.975579, 0.976465, 0.977335, 0.97819,
0.979028, 0.979851, 0.980658, 0.981448, 0.982223, 0.982981,
0.983724, 0.98445, 0.98516, 0.985853, 0.986531, 0.987192,
0.987837, 0.988465, 0.989077, 0.989673, 0.990252, 0.990814,
0.99136, 0.99189, 0.992403, 0.992899, 0.993379, 0.993842,
0.994289, 0.994718, 0.995132, 0.995528, 0.995908, 0.996271,
0.996617, 0.996946, 0.997259, 0.997555, 0.997834, 0.998096,
0.998341, 0.998569, 0.998781, 0.998975, 0.999153, 0.999314,
0.999458, 0.999585, 0.999695, 0.999788, 0.999864, 0.999924,
0.999966, 0.999992, 1, 0.999992, 0.999966, 0.999924,
0.999864, 0.999788, 0.999695, 0.999585, 0.999458, 0.999314,
0.999153, 0.998975, 0.998781, 0.998569, 0.998341, 0.998096,
0.997834, 0.997555, 0.997259, 0.996946, 0.996617, 0.996271,
0.995908, 0.995528, 0.995132, 0.994718, 0.994289, 0.993842,
0.993379, 0.992899, 0.992403, 0.99189, 0.99136, 0.990814,
0.990252, 0.989673, 0.989077, 0.988465, 0.987837, 0.987192,
0.986531, 0.985853, 0.98516, 0.98445, 0.983724, 0.982981,
0.982223, 0.981448, 0.980658, 0.979851, 0.979028, 0.97819,
0.977335, 0.976465, 0.975579, 0.974676, 0.973759, 0.972825,
0.971876, 0.970911, 0.96993, 0.968934, 0.967923, 0.966896,
0.965854, 0.964796, 0.963723, 0.962635, 0.961531, 0.960413,
0.959279, 0.95813, 0.956967, 0.955788, 0.954594, 0.953386,
0.952163, 0.950925, 0.949672, 0.948405, 0.947123, 0.945827,
0.944516, 0.943191, 0.941852, 0.940498, 0.93913, 0.937749,
0.936353, 0.934942, 0.933519, 0.932081, 0.930629, 0.929164,
0.927685, 0.926192, 0.924686, 0.923166, 0.921633, 0.920086,
0.918527, 0.916954, 0.915367, 0.913768, 0.912156, 0.910531,
0.908893, 0.907242, 0.905579, 0.903903, 0.902214, 0.900513,
0.8988, 0.897074, 0.895336, 0.893586, 0.891823, 0.890049,
0.888263, 0.886465, 0.884655, 0.882833, 0.881, 0.879155,
0.877298, 0.875431, 0.873552, 0.871661, 0.86976, 0.867847,
0.865924, 0.86399, 0.862044, 0.860088, 0.858122, 0.856145,
0.854157, 0.852159, 0.850151, 0.848132, 0.846103, 0.844064,
0.842016, 0.839957, 0.837888, 0.83581, 0.833722, 0.831625,
0.829518, 0.827402, 0.825276, 0.823142, 0.820998, 0.818845,
0.816684, 0.814513, 0.812334, 0.810146, 0.807949, 0.805744,
0.803531, 0.801309, 0.799079, 0.796841, 0.794595, 0.792341,
0.790079, 0.78781, 0.785532, 0.783248, 0.780955, 0.778655,
0.776348, 0.774034, 0.771713, 0.769384, 0.767049, 0.764707,
0.762358, 0.760002, 0.75764, 0.755271, 0.752896, 0.750515,
0.748127, 0.745733, 0.743334, 0.740928, 0.738516, 0.736099,
0.733676, 0.731248, 0.728814, 0.726374, 0.72393, 0.72148,
0.719025, 0.716565, 0.7141, 0.71163, 0.709155, 0.706676,
0.704192, 0.701704, 0.699211, 0.696714, 0.694213, 0.691707,
0.689198, 0.686684, 0.684167, 0.681646, 0.679121, 0.676593,
0.674061, 0.671526, 0.668988, 0.666446, 0.663901, 0.661353,
0.658802, 0.656248, 0.653691, 0.651132, 0.64857, 0.646005,
0.643438, 0.640868, 0.638297, 0.635723, 0.633147, 0.630568,
0.627988, 0.625406, 0.622822, 0.620237, 0.61765, 0.615061,
0.612471, 0.609879, 0.607286, 0.604692, 0.602097, 0.5995,
0.596903, 0.594305, 0.591706, 0.589106, 0.586505, 0.583904,
0.581302, 0.5787, 0.576098, 0.573495, 0.570892, 0.568289,
0.565685, 0.563082, 0.560479, 0.557876, 0.555273, 0.552671,
0.550069, 0.547467, 0.544866, 0.542265, 0.539665, 0.537066,
0.534467, 0.53187, 0.529273, 0.526677, 0.524082, 0.521489,
0.518896, 0.516305, 0.513715, 0.511127, 0.50854, 0.505954,
0.50337, 0.500788, 0.498207, 0.495628, 0.493051, 0.490476,
0.487903, 0.485331, 0.482762, 0.480195, 0.47763, 0.475067,
0.472506, 0.469948, 0.467392, 0.464838, 0.462287, 0.459739,
0.457193, 0.45465, 0.452109, 0.449572, 0.447036, 0.444504,
0.441975, 0.439449, 0.436925, 0.434405, 0.431887, 0.429373,
0.426862, 0.424354, 0.42185, 0.419348, 0.41685, 0.414356,
0.411865, 0.409377, 0.406893, 0.404412, 0.401935, 0.399461,
0.396991, 0.394525, 0.392062, 0.389604, 0.387149, 0.384697,
0.38225, 0.379806, 0.377367, 0.374931, 0.372499, 0.370072,
0.367648, 0.365228, 0.362813, 0.360401, 0.357994, 0.355591,
0.353192, 0.350797, 0.348407, 0.346021, 0.343638, 0.341261,
0.338887, 0.336518, 0.334154, 0.331793, 0.329437, 0.327086,
0.324739, 0.322396, 0.320058, 0.317724, 0.315395, 0.31307,
0.310749, 0.308434, 0.306122, 0.303816, 0.301514, 0.299216,
0.296923, 0.294634, 0.29235, 0.290071, 0.287796, 0.285526,
0.283261, 0.281, 0.278744, 0.276492, 0.274245, 0.272002,
0.269764, 0.267531, 0.265302, 0.263078, 0.260859, 0.258644,
0.256434, 0.254228, 0.252027, 0.249831, 0.247639, 0.245451,
0.243269, 0.24109, 0.238917, 0.236748, 0.234583, 0.232423,
0.230267, 0.228116, 0.22597, 0.223828, 0.22169, 0.219557,
0.217428, 0.215304, 0.213184, 0.211068, 0.208957, 0.20685,
0.204747, 0.202649, 0.200555, 0.198465, 0.19638, 0.194299,
0.192222, 0.190149, 0.18808, 0.186016, 0.183955, 0.181899,
0.179847, 0.177798, 0.175754, 0.173714, 0.171678, 0.169645,
0.167617, 0.165592, 0.163571, 0.161555, 0.159541, 0.157532,
0.155526, 0.153525, 0.151526, 0.149532, 0.147541, 0.145553,
0.143569, 0.141589, 0.139612, 0.137638, 0.135668, 0.133701,
0.131738, 0.129777, 0.12782, 0.125867, 0.123916, 0.121969,
0.120024, 0.118083, 0.116145, 0.114209, 0.112277, 0.110347,
0.108421, 0.106497, 0.104576, 0.102658, 0.100742, 0.0988289,
0.0969185, 0.0950106, 0.0931053, 0.0912024, 0.0893019, 0.0874038,
0.0855081, 0.0836146, 0.0817234, 0.0798344, 0.0779476, 0.0760628,
0.0741801, 0.0722994, 0.0704207, 0.0685439, 0.066669, 0.0647958,
0.0629245, 0.0610549, 0.059187, 0.0573207, 0.0554559, 0.0535927,
0.051731, 0.0498707, 0.0480118, 0.0461543, 0.044298, 0.0424429,
0.0405891, 0.0387363, 0.0368847, 0.0350341, 0.0331844, 0.0313357,
0.0294879, 0.0276409, 0.0257946, 0.0239491, 0.0221043, 0.0202601,
0.0184164, 0.0165733, 0.0147306, 0.0128884, 0.0110465, 0.00920497,
0.00736366, 0.00552256, 0.00368162, 0.00184079, 0, -0.00184079,
-0.00368162, -0.00552256, -0.00736366, -0.00920497, -0.0110465, -0.0128884,
-0.0147306, -0.0165733, -0.0184164, -0.0202601, -0.0221043, -0.0239491,
-0.0257946, -0.0276409, -0.0294879, -0.0313357, -0.0331844, -0.0350341,
-0.0368847, -0.0387363, -0.0405891, -0.0424429, -0.044298, -0.0461543,
-0.0480118, -0.0498707, -0.051731, -0.0535927, -0.0554559, -0.0573207,
-0.059187, -0.0610549, -0.0629245, -0.0647958, -0.066669, -0.0685439,
-0.0704207, -0.0722994, -0.0741801, -0.0760628, -0.0779476, -0.0798344,
-0.0817234, -0.0836146, -0.0855081, -0.0874038, -0.0893019, -0.0912024,
-0.0931053, -0.0950106, -0.0969185, -0.0988289, -0.100742, -0.102658,
-0.104576, -0.106497, -0.108421, -0.110347, -0.112277, -0.114209,
-0.116145, -0.118083, -0.120024, -0.121969, -0.123916, -0.125867,
-0.12782, -0.129777, -0.131738, -0.133701, -0.135668, -0.137638,
-0.139612, -0.141589, -0.143569, -0.145553, -0.147541, -0.149532,
-0.151526, -0.153525, -0.155526, -0.157532, -0.159541, -0.161555,
-0.163571, -0.165592, -0.167617, -0.169645, -0.171678, -0.173714,
-0.175754, -0.177798, -0.179847, -0.181899, -0.183955, -0.186016,
-0.18808, -0.190149, -0.192222, -0.194299, -0.19638, -0.198465,
-0.200555, -0.202649, -0.204747, -0.20685, -0.208957, -0.211068,
-0.213184, -0.215304, -0.217428, -0.219557, -0.22169, -0.223828,
-0.22597, -0.228116, -0.230267, -0.232423, -0.234583, -0.236748,
-0.238917, -0.24109, -0.243269, -0.245451, -0.247639, -0.249831,
-0.252027, -0.254228, -0.256434, -0.258644, -0.260859, -0.263078,
-0.265302, -0.267531, -0.269764, -0.272002, -0.274245, -0.276492,
-0.278744, -0.281, -0.283261, -0.285526, -0.287796, -0.290071,
-0.29235, -0.294634, -0.296923, -0.299216, -0.301514, -0.303816,
-0.306122, -0.308434, -0.310749, -0.31307, -0.315395, -0.317724,
-0.320058, -0.322396, -0.324739, -0.327086, -0.329437, -0.331793,
-0.334154, -0.336518, -0.338887, -0.341261, -0.343638, -0.346021,
-0.348407, -0.350797, -0.353192, -0.355591, -0.357994, -0.360401,
-0.362813, -0.365228, -0.367648, -0.370072, -0.372499, -0.374931,
-0.377367, -0.379806, -0.38225, -0.384697, -0.387149, -0.389604,
-0.392062, -0.394525, -0.396991, -0.399461, -0.401935, -0.404412,
-0.406893, -0.409377, -0.411865, -0.414356, -0.41685, -0.419348,
-0.42185, -0.424354, -0.426862, -0.429373, -0.431887, -0.434405,
-0.436925, -0.439449, -0.441975, -0.444504, -0.447036, -0.449572,
-0.452109, -0.45465, -0.457193, -0.459739, -0.462287, -0.464838,
-0.467392, -0.469948, -0.472506, -0.475067, -0.47763, -0.480195,
-0.482762, -0.485331, -0.487903, -0.490476, -0.493051, -0.495628,
-0.498207, -0.500788, -0.50337, -0.505954, -0.50854, -0.511127,
-0.513715, -0.516305, -0.518896, -0.521489, -0.524082, -0.526677,
-0.529273, -0.53187, -0.534467, -0.537066, -0.539665, -0.542265,
-0.544866, -0.547467, -0.550069, -0.552671, -0.555273, -0.557876,
-0.560479, -0.563082, -0.565685, -0.568289, -0.570892, -0.573495,
-0.576098, -0.5787, -0.581302, -0.583904, -0.586505, -0.589106,
-0.591706, -0.594305, -0.596903, -0.5995, -0.602097, -0.604692,
-0.607286, -0.609879, -0.612471, -0.615061, -0.61765, -0.620237,
-0.622822, -0.625406, -0.627988, -0.630568, -0.633147, -0.635723,
-0.638297, -0.640868, -0.643438, -0.646005, -0.64857, -0.651132,
-0.653691, -0.656248, -0.658802, -0.661353, -0.663901, -0.666446,
-0.668988, -0.671526, -0.674061, -0.676593, -0.679121, -0.681646,
-0.684167, -0.686684, -0.689198, -0.691707, -0.694213, -0.696714,
-0.699211, -0.701704, -0.704192, -0.706676, -0.709155, -0.71163,
-0.7141, -0.716565, -0.719025, -0.72148, -0.72393, -0.726374,
-0.728814, -0.731248, -0.733676, -0.736099, -0.738516, -0.740928,
-0.743334, -0.745733, -0.748127, -0.750515, -0.752896, -0.755271,
-0.75764, -0.760002, -0.762358, -0.764707, -0.767049, -0.769384,
-0.771713, -0.774034, -0.776348, -0.778655, -0.780955, -0.783248,
-0.785532, -0.78781, -0.790079, -0.792341, -0.794595, -0.796841,
-0.799079, -0.801309, -0.803531, -0.805744, -0.807949, -0.810146,
-0.812334, -0.814513, -0.816684, -0.818845, -0.820998, -0.823142,
-0.825276, -0.827402, -0.829518, -0.831625, -0.833722, -0.83581,
-0.837888, -0.839957, -0.842016, -0.844064, -0.846103, -0.848132,
-0.850151, -0.852159, -0.854157, -0.856145, -0.858122, -0.860088,
-0.862044, -0.86399, -0.865924, -0.867847, -0.86976, -0.871661,
-0.873552, -0.875431, -0.877298, -0.879155, -0.881, -0.882833,
-0.884655, -0.886465, -0.888263, -0.890049, -0.891823, -0.893586,
-0.895336, -0.897074, -0.8988, -0.900513, -0.902214, -0.903903,
-0.905579, -0.907242, -0.908893, -0.910531, -0.912156, -0.913768,
-0.915367, -0.916954, -0.918527, -0.920086, -0.921633, -0.923166,
-0.924686, -0.926192, -0.927685, -0.929164, -0.930629, -0.932081,
-0.933519, -0.934942, -0.936353, -0.937749, -0.93913, -0.940498,
-0.941852, -0.943191, -0.944516, -0.945827, -0.947123, -0.948405,
-0.949672, -0.950925, -0.952163, -0.953386, -0.954594, -0.955788,
-0.956967, -0.95813, -0.959279, -0.960413, -0.961531, -0.962635,
-0.963723, -0.964796, -0.965854, -0.966896, -0.967923, -0.968934,
-0.96993, -0.970911, -0.971876, -0.972825, -0.973759, -0.974676,
-0.975579, -0.976465, -0.977335, -0.97819, -0.979028, -0.979851,
-0.980658, -0.981448, -0.982223, -0.982981, -0.983724, -0.98445,
-0.98516, -0.985853, -0.986531, -0.987192, -0.987837, -0.988465,
-0.989077, -0.989673, -0.990252, -0.990814, -0.99136, -0.99189,
-0.992403, -0.992899, -0.993379, -0.993842, -0.994289, -0.994718,
-0.995132, -0.995528, -0.995908, -0.996271, -0.996617, -0.996946,
-0.997259, -0.997555, -0.997834, -0.998096, -0.998341, -0.998569,
-0.998781, -0.998975, -0.999153, -0.999314, -0.999458, -0.999585,
-0.999695, -0.999788, -0.999864, -0.999924, -0.999966, -0.999992,
-1, -0.999992, -0.999966, -0.999924, -0.999864, -0.999788,
-0.999695, -0.999585, -0.999458, -0.999314, -0.999153, -0.998975,
-0.998781, -0.998569, -0.998341, -0.998096, -0.997834, -0.997555,
-0.997259, -0.996946, -0.996617, -0.996271, -0.995908, -0.995528,
-0.995132, -0.994718, -0.994289, -0.993842, -0.993379, -0.992899,
-0.992403, -0.99189, -0.99136, -0.990814, -0.990252, -0.989673,
-0.989077, -0.988465, -0.987837, -0.987192, -0.986531, -0.985853,
-0.98516, -0.98445, -0.983724, -0.982981, -0.982223, -0.981448,
-0.980658, -0.979851, -0.979028, -0.97819, -0.977335, -0.976465,
-0.975579, -0.974676, -0.973759, -0.972825, -0.971876, -0.970911,
-0.96993, -0.968934, -0.967923, -0.966896, -0.965854, -0.964796,
-0.963723, -0.962635, -0.961531, -0.960413, -0.959279, -0.95813,
-0.956967, -0.955788, -0.954594, -0.953386, -0.952163, -0.950925,
-0.949672, -0.948405, -0.947123, -0.945827, -0.944516, -0.943191,
-0.941852, -0.940498, -0.93913, -0.937749, -0.936353, -0.934942,
-0.933519, -0.932081, -0.930629, -0.929164, -0.927685, -0.926192,
-0.924686, -0.923166, -0.921633, -0.920086, -0.918527, -0.916954,
-0.915367, -0.913768, -0.912156, -0.910531, -0.908893, -0.907242,
-0.905579, -0.903903, -0.902214, -0.900513, -0.8988, -0.897074,
-0.895336, -0.893586, -0.891823, -0.890049, -0.888263, -0.886465,
-0.884655, -0.882833, -0.881, -0.879155, -0.877298, -0.875431,
-0.873552, -0.871661, -0.86976, -0.867847, -0.865924, -0.86399,
-0.862044, -0.860088, -0.858122, -0.856145, -0.854157, -0.852159,
-0.850151, -0.848132, -0.846103, -0.844064, -0.842016, -0.839957,
-0.837888, -0.83581, -0.833722, -0.831625, -0.829518, -0.827402,
-0.825276, -0.823142, -0.820998, -0.818845, -0.816684, -0.814513,
-0.812334, -0.810146, -0.807949, -0.805744, -0.803531, -0.801309,
-0.799079, -0.796841, -0.794595, -0.792341, -0.790079, -0.78781,
-0.785532, -0.783248, -0.780955, -0.778655, -0.776348, -0.774034,
-0.771713, -0.769384, -0.767049, -0.764707, -0.762358, -0.760002,
-0.75764, -0.755271, -0.752896, -0.750515, -0.748127, -0.745733,
-0.743334, -0.740928, -0.738516, -0.736099, -0.733676, -0.731248,
-0.728814, -0.726374, -0.72393, -0.72148, -0.719025, -0.716565,
-0.7141, -0.71163, -0.709155, -0.706676, -0.704192, -0.701704,
-0.699211, -0.696714, -0.694213, -0.691707, -0.689198, -0.686684,
-0.684167, -0.681646, -0.679121, -0.676593, -0.674061, -0.671526,
-0.668988, -0.666446, -0.663901, -0.661353, -0.658802, -0.656248,
-0.653691, -0.651132, -0.64857, -0.646005, -0.643438, -0.640868,
-0.638297, -0.635723, -0.633147, -0.630568, -0.627988, -0.625406,
-0.622822, -0.620237, -0.61765, -0.615061, -0.612471, -0.609879,
-0.607286, -0.604692, -0.602097, -0.5995, -0.596903, -0.594305,
-0.591706, -0.589106, -0.586505, -0.583904, -0.581302, -0.5787,
-0.576098, -0.573495, -0.570892, -0.568289, -0.565685, -0.563082,
-0.560479, -0.557876, -0.555273, -0.552671, -0.550069, -0.547467,
-0.544866, -0.542265, -0.539665, -0.537066, -0.534467, -0.53187,
-0.529273, -0.526677, -0.524082, -0.521489, -0.518896, -0.516305,
-0.513715, -0.511127, -0.50854, -0.505954, -0.50337, -0.500788,
-0.498207, -0.495628, -0.493051, -0.490476, -0.487903, -0.485331,
-0.482762, -0.480195, -0.47763, -0.475067, -0.472506, -0.469948,
-0.467392, -0.464838, -0.462287, -0.459739, -0.457193, -0.45465,
-0.452109, -0.449572, -0.447036, -0.444504, -0.441975, -0.439449,
-0.436925, -0.434405, -0.431887, -0.429373, -0.426862, -0.424354,
-0.42185, -0.419348, -0.41685, -0.414356, -0.411865, -0.409377,
-0.406893, -0.404412, -0.401935, -0.399461, -0.396991, -0.394525,
-0.392062, -0.389604, -0.387149, -0.384697, -0.38225, -0.379806,
-0.377367, -0.374931, -0.372499, -0.370072, -0.367648, -0.365228,
-0.362813, -0.360401, -0.357994, -0.355591, -0.353192, -0.350797,
-0.348407, -0.346021, -0.343638, -0.341261, -0.338887, -0.336518,
-0.334154, -0.331793, -0.329437, -0.327086, -0.324739, -0.322396,
-0.320058, -0.317724, -0.315395, -0.31307, -0.310749, -0.308434,
-0.306122, -0.303816, -0.301514, -0.299216, -0.296923, -0.294634,
-0.29235, -0.290071, -0.287796, -0.285526, -0.283261, -0.281,
-0.278744, -0.276492, -0.274245, -0.272002, -0.269764, -0.267531,
-0.265302, -0.263078, -0.260859, -0.258644, -0.256434, -0.254228,
-0.252027, -0.249831, -0.247639, -0.245451, -0.243269, -0.24109,
-0.238917, -0.236748, -0.234583, -0.232423, -0.230267, -0.228116,
-0.22597, -0.223828, -0.22169, -0.219557, -0.217428, -0.215304,
-0.213184, -0.211068, -0.208957, -0.20685, -0.204747, -0.202649,
-0.200555, -0.198465, -0.19638, -0.194299, -0.192222, -0.190149,
-0.18808, -0.186016, -0.183955, -0.181899, -0.179847, -0.177798,
-0.175754, -0.173714, -0.171678, -0.169645, -0.167617, -0.165592,
-0.163571, -0.161555, -0.159541, -0.157532, -0.155526, -0.153525,
-0.151526, -0.149532, -0.147541, -0.145553, -0.143569, -0.141589,
-0.139612, -0.137638, -0.135668, -0.133701, -0.131738, -0.129777,
-0.12782, -0.125867, -0.123916, -0.121969, -0.120024, -0.118083,
-0.116145, -0.114209, -0.112277, -0.110347, -0.108421, -0.106497,
-0.104576, -0.102658, -0.100742, -0.0988289, -0.0969185, -0.0950106,
-0.0931053, -0.0912024, -0.0893019, -0.0874038, -0.0855081, -0.0836146,
-0.0817234, -0.0798344, -0.0779476, -0.0760628, -0.0741801, -0.0722994,
-0.0704207, -0.0685439, -0.066669, -0.0647958, -0.0629245, -0.0610549,
-0.059187, -0.0573207, -0.0554559, -0.0535927, -0.051731, -0.0498707,
-0.0480118, -0.0461543, -0.044298, -0.0424429, -0.0405891, -0.0387363,
-0.0368847, -0.0350341, -0.0331844, -0.0313357, -0.0294879, -0.0276409,
-0.0257946, -0.0239491, -0.0221043, -0.0202601, -0.0184164, -0.0165733,
-0.0147306, -0.0128884, -0.0110465, -0.00920497, -0.00736366, -0.00552256,
-0.00368162, -0.00184079
};
static const float WAVE_TRIANGLE_126[DEFAULT_WAVELEN] = {
0, 0.00306796, 0.00613588, 0.00920375, 0.0122715, 0.0153392,
0.0184067, 0.0214741, 0.0245412, 0.0276081, 0.0306748, 0.0337412,
0.0368072, 0.0398729, 0.0429383, 0.0460032, 0.0490677, 0.0521317,
0.0551952, 0.0582583, 0.0613207, 0.0643826, 0.0674439, 0.0705046,
0.0735646, 0.0766239, 0.0796824, 0.0827403, 0.0857973, 0.0888536,
0.091909, 0.0949635, 0.0980171, 0.10107, 0.104122, 0.107172,
0.110222, 0.113271, 0.116319, 0.119365, 0.122411, 0.125455,
0.128498, 0.13154, 0.134581, 0.13762, 0.140658, 0.143695,
0.14673, 0.149765, 0.152797, 0.155828, 0.158858, 0.161886,
0.164913, 0.167938, 0.170962, 0.173984, 0.177004, 0.180023,
0.18304, 0.186055, 0.189069, 0.19208, 0.19509, 0.198098,
0.201105, 0.204109, 0.207111, 0.210112, 0.21311, 0.216107,
0.219101, 0.222094, 0.225084, 0.228072, 0.231058, 0.234042,
0.237024, 0.240003, 0.24298, 0.245955, 0.248928, 0.251898,
0.254866, 0.257831, 0.260794, 0.263755, 0.266713, 0.269668,
0.272621, 0.275572, 0.27852, 0.281465, 0.284408, 0.287347,
0.290285, 0.293219, 0.296151, 0.29908, 0.302006, 0.304929,
0.30785, 0.310767, 0.313682, 0.316593, 0.319502, 0.322408,
0.32531, 0.32821, 0.331106, 0.334, 0.33689, 0.339777,
0.342661, 0.345541, 0.348419, 0.351293, 0.354164, 0.357031,
0.359895, 0.362756, 0.365613, 0.368467, 0.371317, 0.374164,
0.377007, 0.379847, 0.382683, 0.385516, 0.388345, 0.39117,
0.393992, 0.39681, 0.399624, 0.402435, 0.405241, 0.408044,
0.410843, 0.413638, 0.41643, 0.419217, 0.422, 0.42478,
0.427555, 0.430326, 0.433094, 0.435857, 0.438616, 0.441371,
0.444122, 0.446869, 0.449611, 0.45235, 0.455084, 0.457813,
0.460539, 0.46326, 0.465976, 0.468689, 0.471397, 0.4741,
0.476799, 0.479494, 0.482184, 0.484869, 0.48755, 0.490226,
0.492898, 0.495565, 0.498228, 0.500885, 0.503538, 0.506187,
0.50883, 0.511469, 0.514103, 0.516732, 0.519356, 0.521975,
0.52459, 0.527199, 0.529804, 0.532403, 0.534998, 0.537587,
0.540171, 0.542751, 0.545325, 0.547894, 0.550458, 0.553017,
0.55557, 0.558119, 0.560662, 0.563199, 0.565732, 0.568259,
0.570781, 0.573297, 0.575808, 0.578314, 0.580814, 0.583309,
0.585798, 0.588282, 0.59076, 0.593232, 0.595699, 0.598161,
0.600616, 0.603067, 0.605511, 0.60795, 0.610383, 0.61281,
0.615232, 0.617647, 0.620057, 0.622461, 0.624859, 0.627252,
0.629638, 0.632019, 0.634393, 0.636762, 0.639124, 0.641481,
0.643832, 0.646176, 0.648514, 0.650847, 0.653173, 0.655493,
0.657807, 0.660114, 0.662416, 0.664711, 0.667, 0.669283,
0.671559, 0.673829, 0.676093, 0.67835, 0.680601, 0.682846,
0.685084, 0.687315, 0.689541, 0.691759, 0.693971, 0.696177,
0.698376, 0.700569, 0.702755, 0.704934, 0.707107, 0.709273,
0.711432, 0.713585, 0.715731, 0.71787, 0.720003, 0.722128,
0.724247, 0.726359, 0.728464, 0.730563, 0.732654, 0.734739,
0.736817, 0.738887, 0.740951, 0.743008, 0.745058, 0.747101,
0.749136, 0.751165, 0.753187, 0.755201, 0.757209, 0.759209,
0.761202, 0.763188, 0.765167, 0.767139, 0.769103, 0.771061,
0.77301, 0.774953, 0.776888, 0.778817, 0.780737, 0.782651,
0.784557, 0.786455, 0.788346, 0.79023, 0.792107, 0.793975,
0.795837, 0.797691, 0.799537, 0.801376, 0.803208, 0.805031,
0.806848, 0.808656, 0.810457, 0.812251, 0.814036, 0.815814,
0.817585, 0.819348, 0.821103, 0.82285, 0.824589, 0.826321,
0.828045, 0.829761, 0.83147, 0.83317, 0.834863, 0.836548,
0.838225, 0.839894, 0.841555, 0.843208, 0.844854, 0.846491,
0.84812, 0.849742, 0.851355, 0.852961, 0.854558, 0.856147,
0.857729, 0.859302, 0.860867, 0.862424, 0.863973, 0.865514,
0.867046, 0.868571, 0.870087, 0.871595, 0.873095, 0.874587,
0.87607, 0.877545, 0.879012, 0.880471, 0.881921, 0.883363,
0.884797, 0.886223, 0.88764, 0.889048, 0.890449, 0.891841,
0.893224, 0.894599, 0.895966, 0.897325, 0.898674, 0.900016,
0.901349, 0.902673, 0.903989, 0.905297, 0.906596, 0.907886,
0.909168, 0.910441, 0.911706, 0.912962, 0.91421, 0.915449,
0.916679, 0.917901, 0.919114, 0.920318, 0.921514, 0.922701,
0.92388, 0.925049, 0.92621, 0.927363, 0.928506, 0.929641,
0.930767, 0.931884, 0.932993, 0.934093, 0.935184, 0.936266,
0.937339, 0.938404, 0.939459, 0.940506, 0.941544, 0.942573,
0.943593, 0.944605, 0.945607, 0.946601, 0.947586, 0.948561,
0.949528, 0.950486, 0.951435, 0.952375, 0.953306, 0.954228,
0.955141, 0.956045, 0.95694, 0.957826, 0.958703, 0.959572,
0.960431, 0.96128, 0.962121, 0.962953, 0.963776, 0.96459,
0.965394, 0.96619, 0.966976, 0.967754, 0.968522, 0.969281,
0.970031, 0.970772, 0.971504, 0.972226, 0.97294, 0.973644,
0.974339, 0.975025, 0.975702, 0.97637, 0.977028, 0.977677,
0.978317, 0.978948, 0.97957, 0.980182, 0.980785, 0.981379,
0.981964, 0.982539, 0.983105, 0.983662, 0.98421, 0.984749,
0.985278, 0.985798, 0.986308, 0.986809, 0.987301, 0.987784,
0.988258, 0.988722, 0.989177, 0.989622, 0.990058, 0.990485,
0.990903, 0.991311, 0.99171, 0.992099, 0.99248, 0.99285,
0.993212, 0.993564, 0.993907, 0.99424, 0.994565, 0.994879,
0.995185, 0.995481, 0.995767, 0.996045, 0.996313, 0.996571,
0.99682, 0.99706, 0.99729, 0.997511, 0.997723, 0.997925,
0.998118, 0.998302, 0.998476, 0.99864, 0.998795, 0.998941,
0.999078, 0.999205, 0.999322, 0.999431, 0.999529, 0.999619,
0.999699, 0.999769, 0.999831, 0.999882, 0.999925, 0.999958,
0.999981, 0.999995, 1, 0.999995, 0.999981, 0.999958,
0.999925, 0.999882, 0.999831, 0.999769, 0.999699, 0.999619,
0.999529, 0.999431, 0.999322, 0.999205, 0.999078, 0.998941,
0.998795, 0.99864, 0.998476, 0.998302, 0.998118, 0.997925,
0.997723, 0.997511, 0.99729, 0.99706, 0.99682, 0.996571,
0.996313, 0.996045, 0.995767, 0.995481, 0.995185, 0.994879,
0.994565, 0.99424, 0.993907, 0.993564, 0.993212, 0.99285,
0.99248, 0.992099, 0.99171, 0.991311, 0.990903, 0.990485,
0.990058, 0.989622, 0.989177, 0.988722, 0.988258, 0.987784,
0.987301, 0.986809, 0.986308, 0.985798, 0.985278, 0.984749,
0.98421, 0.983662, 0.983105, 0.982539, 0.981964, 0.981379,
0.980785, 0.980182, 0.97957, 0.978948, 0.978317, 0.977677,
0.977028, 0.97637, 0.975702, 0.975025, 0.974339, 0.973644,
0.97294, 0.972226, 0.971504, 0.970772, 0.970031, 0.969281,
0.968522, 0.967754, 0.966976, 0.96619, 0.965394, 0.96459,
0.963776, 0.962953, 0.962121, 0.96128, 0.960431, 0.959572,
0.958703, 0.957826, 0.95694, 0.956045, 0.955141, 0.954228,
0.953306, 0.952375, 0.951435, 0.950486, 0.949528, 0.948561,
0.947586, 0.946601, 0.945607, 0.944605, 0.943593, 0.942573,
0.941544, 0.940506, 0.939459, 0.938404, 0.937339, 0.936266,
0.935184, 0.934093, 0.932993, 0.931884, 0.930767, 0.929641,
0.928506, 0.927363, 0.92621, 0.925049, 0.92388, 0.922701,
0.921514, 0.920318, 0.919114, 0.917901, 0.916679, 0.915449,
0.91421, 0.912962, 0.911706, 0.910441, 0.909168, 0.907886,
0.906596, 0.905297, 0.903989, 0.902673, 0.901349, 0.900016,
0.898674, 0.897325, 0.895966, 0.894599, 0.893224, 0.891841,
0.890449, 0.889048, 0.88764, 0.886223, 0.884797, 0.883363,
0.881921, 0.880471, 0.879012, 0.877545, 0.87607, 0.874587,
0.873095, 0.871595, 0.870087, 0.868571, 0.867046, 0.865514,
0.863973, 0.862424, 0.860867, 0.859302, 0.857729, 0.856147,
0.854558, 0.852961, 0.851355, 0.849742, 0.84812, 0.846491,
0.844854, 0.843208, 0.841555, 0.839894, 0.838225, 0.836548,
0.834863, 0.83317, 0.83147, 0.829761, 0.828045, 0.826321,
0.824589, 0.82285, 0.821103, 0.819348, 0.817585, 0.815814,
0.814036, 0.812251, 0.810457, 0.808656, 0.806848, 0.805031,
0.803208, 0.801376, 0.799537, 0.797691, 0.795837, 0.793975,
0.792107, 0.79023, 0.788346, 0.786455, 0.784557, 0.782651,
0.780737, 0.778817, 0.776888, 0.774953, 0.77301, 0.771061,
0.769103, 0.767139, 0.765167, 0.763188, 0.761202, 0.759209,
0.757209, 0.755201, 0.753187, 0.751165, 0.749136, 0.747101,
0.745058, 0.743008, 0.740951, 0.738887, 0.736817, 0.734739,
0.732654, 0.730563, 0.728464, 0.726359, 0.724247, 0.722128,
0.720003, 0.71787, 0.715731, 0.713585, 0.711432, 0.709273,
0.707107, 0.704934, 0.702755, 0.700569, 0.698376, 0.696177,
0.693971, 0.691759, 0.689541, 0.687315, 0.685084, 0.682846,
0.680601, 0.67835, 0.676093, 0.673829, 0.671559, 0.669283,
0.667, 0.664711, 0.662416, 0.660114, 0.657807, 0.655493,
0.653173, 0.650847, 0.648514, 0.646176, 0.643832, 0.641481,
0.639124, 0.636762, 0.634393, 0.632019, 0.629638, 0.627252,
0.624859, 0.622461, 0.620057, 0.617647, 0.615232, 0.61281,
0.610383, 0.60795, 0.605511, 0.603067, 0.600616, 0.598161,
0.595699, 0.593232, 0.59076, 0.588282, 0.585798, 0.583309,
0.580814, 0.578314, 0.575808, 0.573297, 0.570781, 0.568259,
0.565732, 0.563199, 0.560662, 0.558119, 0.55557, 0.553017,
0.550458, 0.547894, 0.545325, 0.542751, 0.540171, 0.537587,
0.534998, 0.532403, 0.529804, 0.527199, 0.52459, 0.521975,
0.519356, 0.516732, 0.514103, 0.511469, 0.50883, 0.506187,
0.503538, 0.500885, 0.498228, 0.495565, 0.492898, 0.490226,
0.48755, 0.484869, 0.482184, 0.479494, 0.476799, 0.4741,
0.471397, 0.468689, 0.465976, 0.46326, 0.460539, 0.457813,
0.455084, 0.45235, 0.449611, 0.446869, 0.444122, 0.441371,
0.438616, 0.435857, 0.433094, 0.430326, 0.427555, 0.42478,
0.422, 0.419217, 0.41643, 0.413638, 0.410843, 0.408044,
0.405241, 0.402435, 0.399624, 0.39681, 0.393992, 0.39117,
0.388345, 0.385516, 0.382683, 0.379847, 0.377007, 0.374164,
0.371317, 0.368467, 0.365613, 0.362756, 0.359895, 0.357031,
0.354164, 0.351293, 0.348419, 0.345541, 0.342661, 0.339777,
0.33689, 0.334, 0.331106, 0.32821, 0.32531, 0.322408,
0.319502, 0.316593, 0.313682, 0.310767, 0.30785, 0.304929,
0.302006, 0.29908, 0.296151, 0.293219, 0.290285, 0.287347,
0.284408, 0.281465, 0.27852, 0.275572, 0.272621, 0.269668,
0.266713, 0.263755, 0.260794, 0.257831, 0.254866, 0.251898,
0.248928, 0.245955, 0.24298, 0.240003, 0.237024, 0.234042,
0.231058, 0.228072, 0.225084, 0.222094, 0.219101, 0.216107,
0.21311, 0.210112, 0.207111, 0.204109, 0.201105, 0.198098,
0.19509, 0.19208, 0.189069, 0.186055, 0.18304, 0.180023,
0.177004, 0.173984, 0.170962, 0.167938, 0.164913, 0.161886,
0.158858, 0.155828, 0.152797, 0.149765, 0.14673, 0.143695,
0.140658, 0.13762, 0.134581, 0.13154, 0.128498, 0.125455,
0.122411, 0.119365, 0.116319, 0.113271, 0.110222, 0.107172,
0.104122, 0.10107, 0.0980171, 0.0949635, 0.091909, 0.0888536,
0.0857973, 0.0827403, 0.0796824, 0.0766239, 0.0735646, 0.0705046,
0.0674439, 0.0643826, 0.0613207, 0.0582583, 0.0551952, 0.0521317,
0.0490677, 0.0460032, 0.0429383, 0.0398729, 0.0368072, 0.0337412,
0.0306748, 0.0276081, 0.0245412, 0.0214741, 0.0184067, 0.0153392,
0.0122715, 0.00920375, 0.00613588, 0.00306796, 2.22045e-16, -0.00306796,
-0.00613588, -0.00920375, -0.0122715, -0.0153392, -0.0184067, -0.0214741,
-0.0245412, -0.0276081, -0.0306748, -0.0337412, -0.0368072, -0.0398729,
-0.0429383, -0.0460032, -0.0490677, -0.0521317, -0.0551952, -0.0582583,
-0.0613207, -0.0643826, -0.0674439, -0.0705046, -0.0735646, -0.0766239,
-0.0796824, -0.0827403, -0.0857973, -0.0888536, -0.091909, -0.0949635,
-0.0980171, -0.10107, -0.104122, -0.107172, -0.110222, -0.113271,
-0.116319, -0.119365, -0.122411, -0.125455, -0.128498, -0.13154,
-0.134581, -0.13762, -0.140658, -0.143695, -0.14673, -0.149765,
-0.152797, -0.155828, -0.158858, -0.161886, -0.164913, -0.167938,
-0.170962, -0.173984, -0.177004, -0.180023, -0.18304, -0.186055,
-0.189069, -0.19208, -0.19509, -0.198098, -0.201105, -0.204109,
-0.207111, -0.210112, -0.21311, -0.216107, -0.219101, -0.222094,
-0.225084, -0.228072, -0.231058, -0.234042, -0.237024, -0.240003,
-0.24298, -0.245955, -0.248928, -0.251898, -0.254866, -0.257831,
-0.260794, -0.263755, -0.266713, -0.269668, -0.272621, -0.275572,
-0.27852, -0.281465, -0.284408, -0.287347, -0.290285, -0.293219,
-0.296151, -0.29908, -0.302006, -0.304929, -0.30785, -0.310767,
-0.313682, -0.316593, -0.319502, -0.322408, -0.32531, -0.32821,
-0.331106, -0.334, -0.33689, -0.339777, -0.342661, -0.345541,
-0.348419, -0.351293, -0.354164, -0.357031, -0.359895, -0.362756,
-0.365613, -0.368467, -0.371317, -0.374164, -0.377007, -0.379847,
-0.382683, -0.385516, -0.388345, -0.39117, -0.393992, -0.39681,
-0.399624, -0.402435, -0.405241, -0.408044, -0.410843, -0.413638,
-0.41643, -0.419217, -0.422, -0.42478, -0.427555, -0.430326,
-0.433094, -0.435857, -0.438616, -0.441371, -0.444122, -0.446869,
-0.449611, -0.45235, -0.455084, -0.457813, -0.460539, -0.46326,
-0.465976, -0.468689, -0.471397, -0.4741, -0.476799, -0.479494,
-0.482184, -0.484869, -0.48755, -0.490226, -0.492898, -0.495565,
-0.498228, -0.500885, -0.503538, -0.506187, -0.50883, -0.511469,
-0.514103, -0.516732, -0.519356, -0.521975, -0.52459, -0.527199,
-0.529804, -0.532403, -0.534998, -0.537587, -0.540171, -0.542751,
-0.545325, -0.547894, -0.550458, -0.553017, -0.55557, -0.558119,
-0.560662, -0.563199, -0.565732, -0.568259, -0.570781, -0.573297,
-0.575808, -0.578314, -0.580814, -0.583309, -0.585798, -0.588282,
-0.59076, -0.593232, -0.595699, -0.598161, -0.600616, -0.603067,
-0.605511, -0.60795, -0.610383, -0.61281, -0.615232, -0.617647,
-0.620057, -0.622461, -0.624859, -0.627252, -0.629638, -0.632019,
-0.634393, -0.636762, -0.639124, -0.641481, -0.643832, -0.646176,
-0.648514, -0.650847, -0.653173, -0.655493, -0.657807, -0.660114,
-0.662416, -0.664711, -0.667, -0.669283, -0.671559, -0.673829,
-0.676093, -0.67835, -0.680601, -0.682846, -0.685084, -0.687315,
-0.689541, -0.691759, -0.693971, -0.696177, -0.698376, -0.700569,
-0.702755, -0.704934, -0.707107, -0.709273, -0.711432, -0.713585,
-0.715731, -0.71787, -0.720003, -0.722128, -0.724247, -0.726359,
-0.728464, -0.730563, -0.732654, -0.734739, -0.736817, -0.738887,
-0.740951, -0.743008, -0.745058, -0.747101, -0.749136, -0.751165,
-0.753187, -0.755201, -0.757209, -0.759209, -0.761202, -0.763188,
-0.765167, -0.767139, -0.769103, -0.771061, -0.77301, -0.774953,
-0.776888, -0.778817, -0.780737, -0.782651, -0.784557, -0.786455,
-0.788346, -0.79023, -0.792107, -0.793975, -0.795837, -0.797691,
-0.799537, -0.801376, -0.803208, -0.805031, -0.806848, -0.808656,
-0.810457, -0.812251, -0.814036, -0.815814, -0.817585, -0.819348,
-0.821103, -0.82285, -0.824589, -0.826321, -0.828045, -0.829761,
-0.83147, -0.83317, -0.834863, -0.836548, -0.838225, -0.839894,
-0.841555, -0.843208, -0.844854, -0.846491, -0.84812, -0.849742,
-0.851355, -0.852961, -0.854558, -0.856147, -0.857729, -0.859302,
-0.860867, -0.862424, -0.863973, -0.865514, -0.867046, -0.868571,
-0.870087, -0.871595, -0.873095, -0.874587, -0.87607, -0.877545,
-0.879012, -0.880471, -0.881921, -0.883363, -0.884797, -0.886223,
-0.88764, -0.889048, -0.890449, -0.891841, -0.893224, -0.894599,
-0.895966, -0.897325, -0.898674, -0.900016, -0.901349, -0.902673,
-0.903989, -0.905297, -0.906596, -0.907886, -0.909168, -0.910441,
-0.911706, -0.912962, -0.91421, -0.915449, -0.916679, -0.917901,
-0.919114, -0.920318, -0.921514, -0.922701, -0.92388, -0.925049,
-0.92621, -0.927363, -0.928506, -0.929641, -0.930767, -0.931884,
-0.932993, -0.934093, -0.935184, -0.936266, -0.937339, -0.938404,
-0.939459, -0.940506, -0.941544, -0.942573, -0.943593, -0.944605,
-0.945607, -0.946601, -0.947586, -0.948561, -0.949528, -0.950486,
-0.951435, -0.952375, -0.953306, -0.954228, -0.955141, -0.956045,
-0.95694, -0.957826, -0.958703, -0.959572, -0.960431, -0.96128,
-0.962121, -0.962953, -0.963776, -0.96459, -0.965394, -0.96619,
-0.966976, -0.967754, -0.968522, -0.969281, -0.970031, -0.970772,
-0.971504, -0.972226, -0.97294, -0.973644, -0.974339, -0.975025,
-0.975702, -0.97637, -0.977028, -0.977677, -0.978317, -0.978948,
-0.97957, -0.980182, -0.980785, -0.981379, -0.981964, -0.982539,
-0.983105, -0.983662, -0.98421, -0.984749, -0.985278, -0.985798,
-0.986308, -0.986809, -0.987301, -0.987784, -0.988258, -0.988722,
-0.989177, -0.989622, -0.990058, -0.990485, -0.990903, -0.991311,
-0.99171, -0.992099, -0.99248, -0.99285, -0.993212, -0.993564,
-0.993907, -0.99424, -0.994565, -0.994879, -0.995185, -0.995481,
-0.995767, -0.996045, -0.996313, -0.996571, -0.99682, -0.99706,
-0.99729, -0.997511, -0.997723, -0.997925, -0.998118, -0.998302,
-0.998476, -0.99864, -0.998795, -0.998941, -0.999078, -0.999205,
-0.999322, -0.999431, -0.999529, -0.999619, -0.999699, -0.999769,
-0.999831, -0.999882, -0.999925, -0.999958, -0.999981, -0.999995,
-1, -0.999995, -0.999981, -0.999958, -0.999925, -0.999882,
-0.999831, -0.999769, -0.999699, -0.999619, -0.999529, -0.999431,
-0.999322, -0.999205, -0.999078, -0.998941, -0.998795, -0.99864,
-0.998476, -0.998302, -0.998118, -0.997925, -0.997723, -0.997511,
-0.99729, -0.99706, -0.99682, -0.996571, -0.996313, -0.996045,
-0.995767, -0.995481, -0.995185, -0.994879, -0.994565, -0.99424,
-0.993907, -0.993564, -0.993212, -0.99285, -0.99248, -0.992099,
-0.99171, -0.991311, -0.990903, -0.990485, -0.990058, -0.989622,
-0.989177, -0.988722, -0.988258, -0.987784, -0.987301, -0.986809,
-0.986308, -0.985798, -0.985278, -0.984749, -0.98421, -0.983662,
-0.983105, -0.982539, -0.981964, -0.981379, -0.980785, -0.980182,
-0.97957, -0.978948, -0.978317, -0.977677, -0.977028, -0.97637,
-0.975702, -0.975025, -0.974339, -0.973644, -0.97294, -0.972226,
-0.971504, -0.970772, -0.970031, -0.969281, -0.968522, -0.967754,
-0.966976, -0.96619, -0.965394, -0.96459, -0.963776, -0.962953,
-0.962121, -0.96128, -0.960431, -0.959572, -0.958703, -0.957826,
-0.95694, -0.956045, -0.955141, -0.954228, -0.953306, -0.952375,
-0.951435, -0.950486, -0.949528, -0.948561, -0.947586, -0.946601,
-0.945607, -0.944605, -0.943593, -0.942573, -0.941544, -0.940506,
-0.939459, -0.938404, -0.937339, -0.936266, -0.935184, -0.934093,
-0.932993, -0.931884, -0.930767, -0.929641, -0.928506, -0.927363,
-0.92621, -0.925049, -0.92388, -0.922701, -0.921514, -0.920318,
-0.919114, -0.917901, -0.916679, -0.915449, -0.91421, -0.912962,
-0.911706, -0.910441, -0.909168, -0.907886, -0.906596, -0.905297,
-0.903989, -0.902673, -0.901349, -0.900016, -0.898674, -0.897325,
-0.895966, -0.894599, -0.893224, -0.891841, -0.890449, -0.889048,
-0.88764, -0.886223, -0.884797, -0.883363, -0.881921, -0.880471,
-0.879012, -0.877545, -0.87607, -0.874587, -0.873095, -0.871595,
-0.870087, -0.868571, -0.867046, -0.865514, -0.863973, -0.862424,
-0.860867, -0.859302, -0.857729, -0.856147, -0.854558, -0.852961,
-0.851355, -0.849742, -0.84812, -0.846491, -0.844854, -0.843208,
-0.841555, -0.839894, -0.838225, -0.836548, -0.834863, -0.83317,
-0.83147, -0.829761, -0.828045, -0.826321, -0.824589, -0.82285,
-0.821103, -0.819348, -0.817585, -0.815814, -0.814036, -0.812251,
-0.810457, -0.808656, -0.806848, -0.805031, -0.803208, -0.801376,
-0.799537, -0.797691, -0.795837, -0.793975, -0.792107, -0.79023,
-0.788346, -0.786455, -0.784557, -0.782651, -0.780737, -0.778817,
-0.776888, -0.774953, -0.77301, -0.771061, -0.769103, -0.767139,
-0.765167, -0.763188, -0.761202, -0.759209, -0.757209, -0.755201,
-0.753187, -0.751165, -0.749136, -0.747101, -0.745058, -0.743008,
-0.740951, -0.738887, -0.736817, -0.734739, -0.732654, -0.730563,
-0.728464, -0.726359, -0.724247, -0.722128, -0.720003, -0.71787,
-0.715731, -0.713585, -0.711432, -0.709273, -0.707107, -0.704934,
-0.702755, -0.700569, -0.698376, -0.696177, -0.693971, -0.691759,
-0.689541, -0.687315, -0.685084, -0.682846, -0.680601, -0.67835,
-0.676093, -0.673829, -0.671559, -0.669283, -0.667, -0.664711,
-0.662416, -0.660114, -0.657807, -0.655493, -0.653173, -0.650847,
-0.648514, -0.646176, -0.643832, -0.641481, -0.639124, -0.636762,
-0.634393, -0.632019, -0.629638, -0.627252, -0.624859, -0.622461,
-0.620057, -0.617647, -0.615232, -0.61281, -0.610383, -0.60795,
-0.605511, -0.603067, -0.600616, -0.598161, -0.595699, -0.593232,
-0.59076, -0.588282, -0.585798, -0.583309, -0.580814, -0.578314,
-0.575808, -0.573297, -0.570781, -0.568259, -0.565732, -0.563199,
-0.560662, -0.558119, -0.55557, -0.553017, -0.550458, -0.547894,
-0.545325, -0.542751, -0.540171, -0.537587, -0.534998, -0.532403,
-0.529804, -0.527199, -0.52459, -0.521975, -0.519356, -0.516732,
-0.514103, -0.511469, -0.50883, -0.506187, -0.503538, -0.500885,
-0.498228, -0.495565, -0.492898, -0.490226, -0.48755, -0.484869,
-0.482184, -0.479494, -0.476799, -0.4741, -0.471397, -0.468689,
-0.465976, -0.46326, -0.460539, -0.457813, -0.455084, -0.45235,
-0.449611, -0.446869, -0.444122, -0.441371, -0.438616, -0.435857,
-0.433094, -0.430326, -0.427555, -0.42478, -0.422, -0.419217,
-0.41643, -0.413638, -0.410843, -0.408044, -0.405241, -0.402435,
-0.399624, -0.39681, -0.393992, -0.39117, -0.388345, -0.385516,
-0.382683, -0.379847, -0.377007, -0.374164, -0.371317, -0.368467,
-0.365613, -0.362756, -0.359895, -0.357031, -0.354164, -0.351293,
-0.348419, -0.345541, -0.342661, -0.339777, -0.33689, -0.334,
-0.331106, -0.32821, -0.32531, -0.322408, -0.319502, -0.316593,
-0.313682, -0.310767, -0.30785, -0.304929, -0.302006, -0.29908,
-0.296151, -0.293219, -0.290285, -0.287347, -0.284408, -0.281465,
-0.27852, -0.275572, -0.272621, -0.269668, -0.266713, -0.263755,
-0.260794, -0.257831, -0.254866, -0.251898, -0.248928, -0.245955,
-0.24298, -0.240003, -0.237024, -0.234042, -0.231058, -0.228072,
-0.225084, -0.222094, -0.219101, -0.216107, -0.21311, -0.210112,
-0.207111, -0.204109, -0.201105, -0.198098, -0.19509, -0.19208,
-0.189069, -0.186055, -0.18304, -0.180023, -0.177004, -0.173984,
-0.170962, -0.167938, -0.164913, -0.161886, -0.158858, -0.155828,
-0.152797, -0.149765, -0.14673, -0.143695, -0.140658, -0.13762,
-0.134581, -0.13154, -0.128498, -0.125455, -0.122411, -0.119365,
-0.116319, -0.113271, -0.110222, -0.107172, -0.104122, -0.10107,
-0.0980171, -0.0949635, -0.091909, -0.0888536, -0.0857973, -0.0827403,
-0.0796824, -0.0766239, -0.0735646, -0.0705046, -0.0674439, -0.0643826,
-0.0613207, -0.0582583, -0.0551952, -0.0521317, -0.0490677, -0.0460032,
-0.0429383, -0.0398729, -0.0368072, -0.0337412, -0.0306748, -0.0276081,
-0.0245412, -0.0214741, -0.0184067, -0.0153392, -0.0122715, -0.00920375,
-0.00613588, -0.00306796
};
static const float *WAVE_TRIANGLES[DEFAULT_OCTAVES] = {
WAVE_TRIANGLE_000, WAVE_TRIANGLE_006, WAVE_TRIANGLE_018,
WAVE_TRIANGLE_030, WAVE_TRIANGLE_042, WAVE_TRIANGLE_054,
WAVE_TRIANGLE_066, WAVE_TRIANGLE_078, WAVE_TRIANGLE_090,
WAVE_TRIANGLE_102, WAVE_TRIANGLE_114, WAVE_TRIANGLE_126
};
|
jimd1989/boar
|
src/audio-output.h
|
#pragma once
#include "audio-init.h"
void play(Audio *);
|
jimd1989/boar
|
src/repl.c
|
<reponame>jimd1989/boar
/* The REPL is the user-facing interface for the program. It reads commands
* from stdin and passes them to sndio thread via the Audio struct. */
#include <err.h>
#include <poll.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <unistd.h>
#include "repl.h"
#include "amplitude.h"
#include "audio-init.h"
#include "audio-output.h"
#include "constants/defaults.h"
#include "constants/errors.h"
#include "constants/funcs.h"
#include "key.h"
#include "parse.h"
#include "numerical.h"
#include "voice.h"
#include "wave.h"
static void dispatchCmd(Repl *);
static void printParseErr(const Error, const char *);
static void readLine(Repl *);
static void
dispatchCmd(Repl *r) {
/* Runs a command against the Audio struct. */
Arg *arg = &r->Cmd.Arg;
Operators *carrier = &r->Audio->Voices.Carrier;
Operators *modulator = &r->Audio->Voices.Modulator;
Voices *voices = &r->Audio->Voices;
switch(r->Cmd.Func) {
case FUNC_NOTE_ON:
voiceOn(voices, (uint16_t)arg->I);
break;
case FUNC_NOTE_OFF:
voiceOff(voices, (uint16_t)arg->I);
break;
case FUNC_MOD_ATTACK:
setAttackLevel(&modulator->Env, arg->F);
break;
case FUNC_ATTACK:
setAttackLevel(&carrier->Env, arg->F);
break;
case FUNC_MOD_ATTACK_WAVE:
setAttackWave(&modulator->Env, arg->I);
break;
case FUNC_ATTACK_WAVE:
setAttackWave(&carrier->Env, arg->I);
break;
case FUNC_MOD_DECAY:
setDecayLevel(&modulator->Env, arg->F);
break;
case FUNC_DECAY:
setDecayLevel(&carrier->Env, arg->F);
break;
case FUNC_MOD_DECAY_WAVE:
setDecayWave(&modulator->Env, arg->I);
break;
case FUNC_DECAY_WAVE:
setDecayWave(&carrier->Env, arg->I);
break;
case FUNC_MOD_ENV_LOOP:
setLoop(&modulator->Env, (bool)arg->I);
break;
case FUNC_ENV_LOOP:
setLoop(&carrier->Env, (bool)arg->I);
break;
case FUNC_MOD_KEY_FOLLOW:
selectWave(&voices->Keyboard.Modulator.KeyFollowCurve, arg->I);
break;
case FUNC_KEY_FOLLOW:
selectWave(&voices->Keyboard.Carrier.KeyFollowCurve, arg->I);
break;
case FUNC_MOD_AMPLITUDE:
setModulation(voices, arg->F);
break;
case FUNC_AMPLITUDE:
setVolume(&r->Audio->Amplitude, arg->F);
break;
case FUNC_MOD_PITCH:
setPitchRatio(voices, false, arg->F);
break;
case FUNC_PITCH:
setPitchRatio(voices, true, arg->F);
break;
case FUNC_CHAN_BALANCE:
setBalance(&r->Audio->Amplitude, arg->F);
break;
case FUNC_QUIT:
r->Cmd.Error = ERROR_EXIT;
return;
case FUNC_MOD_RELEASE:
setReleaseLevel(&modulator->Env, arg->F);
break;
case FUNC_RELEASE:
setReleaseLevel(&carrier->Env, arg->F);
break;
case FUNC_MOD_RELEASE_WAVE:
setReleaseWave(&modulator->Env, arg->I);
break;
case FUNC_RELEASE_WAVE:
setReleaseWave(&carrier->Env, arg->I);
break;
case FUNC_MOD_SUSTAIN:
setSustainLevel(&modulator->Env, arg->F);
break;
case FUNC_SUSTAIN:
setSustainLevel(&carrier->Env, arg->F);
break;
case FUNC_MOD_ENV_DEPTH:
setDepth(&modulator->Env, arg->F);
break;
case FUNC_ENV_DEPTH:
setDepth(&carrier->Env, arg->F);
break;
case FUNC_MOD_TOUCH:
selectWave(&voices->Keyboard.Modulator.VelocityCurve, arg->I);
break;
case FUNC_TOUCH:
selectWave(&voices->Keyboard.Carrier.VelocityCurve, arg->I);
break;
case FUNC_TUNE_NOTE:
selectTuningKey(&voices->Keyboard, arg->I);
break;
case FUNC_TUNE:
tuneKey(&voices->Keyboard, arg->F);
break;
case FUNC_TUNE_TARGET:
selectTuningLayer(&voices->Keyboard, (TuningLayer)arg->I);
break;
case FUNC_MOD_WAVE:
selectWave(&modulator->Wave, arg->I);
break;
case FUNC_WAVE:
selectWave(&carrier->Wave, arg->I);
break;
case FUNC_MOD_FIXED:
setFixedRate(voices, false, arg->F);
break;
case FUNC_FIXED:
setFixedRate(voices, true, arg->F);
break;
}
r->Cmd.Error = ERROR_OK;
}
static void
printParseErr(const Error err, const char *buffer) {
switch((unsigned int)err) {
case ERROR_NOTHING:
break;
case ERROR_INPUT:
warnx("Invalid input");
break;
case ERROR_FUNCTION:
warnx("Procedure not found: %c%c", buffer[0], buffer[1]);
break;
case ERROR_TYPE:
warnx("Incorrect argument type for %c", buffer[0]);
break;
}
}
static void
readLine(Repl *r) {
/* Reads a full line of user input, which can be a single command terminated
* by a newline, or multiple commands delimited by semicolons, but also ending
* in a newline. Dispatches a command immediately after it is parsed. Has to use
* read() in order to leave audio playback unblocked. This is more troublesome
* than fgets(). */
int bytesParsed = 0;
int totalBytesParsed = 0;
int bytesRead = 0;
char *line = NULL;
bytesRead = read(STDIN_FILENO, r->Buffer, DEFAULT_LINESIZE);
if (bytesRead < 1 || r->Buffer[0] == '\n' || r->Buffer[0] == '#') {
r->Cmd.Error = ERROR_NOTHING;
return;
}
/* Since all input is newline buffered, should terminate string one char
* early to avoid persisting the \n. */
r->Buffer[--bytesRead] = '\0';
line = r->Buffer;
while (totalBytesParsed < bytesRead) {
bytesParsed = parseCmd(&r->Cmd, line);
totalBytesParsed += bytesParsed;
if (r->Cmd.Error != ERROR_OK) {
printParseErr(r->Cmd.Error, line);
} else {
if (r->Cmd.Error == ERROR_EXIT) {
return;
}
dispatchCmd(r);
}
line += bytesParsed;
}
}
void
repl(Repl *r) {
/* The main user-facing loop. Reads lines of user input, parses them, and sends
* them to the Audio struct for processing. */
struct pollfd pfds[1] = {{0}};
pfds[0].fd = STDIN_FILENO;
pfds[0].events = POLLIN;
warnx("Welcome. You can exit at any time by pressing q + enter.");
while(poll(pfds, 1, 0) != -1) {
if (pfds[0].revents & POLLIN) {
readLine(r);
if (r->Cmd.Error == ERROR_EXIT) {
return;
}
}
play(r->Audio);
}
}
|
jimd1989/boar
|
src/key.c
|
/* Functions that calculate the pitch, phase, tuning offset, velocity, and
* key follow values of individual notes on the keyboard. These values are
* assigned to Osc.KeyMod, which is applied during the synthesis process. */
#include <err.h>
#include <stdint.h>
#include "key.h"
#include "constants/maximums.h"
#include "numerical.h"
#include "synthesis.h"
#include "velocity.h"
static float applyKeyFollowCurve(const Wave *, const unsigned int);
static void applyKeyboardLayer(const KeyboardLayer *, const KeyboardSettings *,
Operator *, const uint16_t);
static void makeKeyboardLayer(KeyboardLayer *);
unsigned int
getNote(const uint16_t note) {
/* Returns the lower 7 bits of note, indicating which MIDI note to play. */
return note & MAX_MIDI_VALUE;
}
static float
applyKeyFollowCurve(const Wave *kw, const unsigned int note) {
/* Returns the key follow curve value for a specific note. It is assumed that
* only the bottom 7 bits of a note are passed to this function via
* getNote(). */
return interpolateCycle(kw, getNote(note) / (float)MAX_MIDI_VALUE);
}
void
selectTuningLayer(Keyboard *k, const TuningLayer tl) {
/* Selects which set of tunings should be modified by the u/U commands. */
switch ((unsigned int)tl) {
case TUNING_CARRIER:
k->TuningLayer = k->Carrier.Tunings;
break;
case TUNING_MODULATOR:
k->TuningLayer = k->Modulator.Tunings;
break;
default:
warnx("Invalid tuning layer. "\
"Select %u (carrier) or %u (modulator).",
TUNING_CARRIER, TUNING_MODULATOR);
}
}
void
selectTuningKey(Keyboard *k, const unsigned int note) {
/* Sets the specific key to be tuned by the u command. */
if (note > MAX_MIDI_VALUE) {
warnx("Note must be between 0 and %u", MAX_MIDI_VALUE);
return;
}
k->TuningNote = &k->TuningLayer[note];
}
void
tuneKey(Keyboard *k, const float tuning) {
/* Sets the tuning offset for the key selected by the U command. */
*k->TuningNote = tuning;
}
static void
applyKeyboardLayer(const KeyboardLayer *kl, const KeyboardSettings *ks,
Operator *o, const uint16_t n) {
/* Modifies Osc.Pitch and Osc.KeyMod based upon the tuning, velocity, and key
* follow settings of the KeyboardLayer. */
const unsigned int note = getNote(n);
setPitch(o, note, ks->Rate);
o->Osc.Pitch *= kl->Tunings[note];
o->Osc.Phase = (float)*ks->Phase * o->Osc.Pitch;
o->Osc.KeyMod = applyVelocityCurve(&kl->VelocityCurve, n) *
applyKeyFollowCurve(&kl->KeyFollowCurve, note);
}
void
applyKey(const Keyboard *k, Operator *c, Operator *m, const uint16_t note) {
/* Modifies an Operator's carrier and modulator in terms of their respective
* KeyboardLayer settings. */
applyKeyboardLayer(&k->Carrier, &k->Settings, c, note);
applyKeyboardLayer(&k->Modulator, &k->Settings, m, note);
}
static void
makeKeyboardLayer(KeyboardLayer *kl) {
/* Initializes all the elements of a KeyboardLayer type. */
int i = 0;
for (; i < DEFAULT_KEYS_NUM ; i++) {
kl->Tunings[i] = 1.0f;
}
selectWave(&kl->VelocityCurve, WAVE_TYPE_FLAT);
selectWave(&kl->KeyFollowCurve, WAVE_TYPE_FLAT);
}
void
makeKeyboard(Keyboard *k, const unsigned int rate, uint64_t *phase) {
/* Initializes all the elements of a Keyboard type. */
makeKeyboardLayer(&k->Carrier);
makeKeyboardLayer(&k->Modulator);
selectTuningLayer(k, TUNING_CARRIER);
selectTuningKey(k, 60);
k->Settings.Rate = rate;
k->Settings.Phase = phase;
}
|
jimd1989/boar
|
src/wavetables/exponential.h
|
/* A wave of e^x ∈ [-π,π]. Intended for envelope use, but can be played. */
#pragma once
#include "../constants/defaults.h"
static const float WAVE_EXPONENTIAL_000[DEFAULT_WAVELEN] = {
-1, -0.977701, -0.955501, -0.94916, -0.945262, -0.936113,
-0.952166, -0.933655, -0.951164, -0.937045, -0.946275, -0.942402,
-0.941204, -0.946429, -0.938571, -0.947394, -0.939116, -0.94553,
-0.94177, -0.942507, -0.944562, -0.940284, -0.945831, -0.940001,
-0.945082, -0.941488, -0.943072, -0.943566, -0.941184, -0.944881,
-0.940531, -0.94472, -0.941339, -0.943351, -0.942919, -0.941746,
-0.944192, -0.940908, -0.944387, -0.941264, -0.943478, -0.942456,
-0.942125, -0.943643, -0.941202, -0.944066, -0.941236, -0.943509,
-0.942107, -0.942389, -0.943182, -0.941443, -0.943749, -0.941241,
-0.94347, -0.94184, -0.942568, -0.942785, -0.941644, -0.943435,
-0.941271, -0.943379, -0.941635, -0.942681, -0.942439, -0.94181,
-0.943126, -0.941318, -0.943246, -0.94148, -0.942737, -0.942137,
-0.941945, -0.942824, -0.941375, -0.94308, -0.941365, -0.942746,
-0.941875, -0.942048, -0.942532, -0.941438, -0.942889, -0.941285,
-0.942711, -0.941649, -0.942121, -0.942252, -0.9415, -0.942677,
-0.941231, -0.942638, -0.941456, -0.942162, -0.941988, -0.941557,
-0.942452, -0.9412, -0.942532, -0.941294, -0.942172, -0.941741,
-0.941604, -0.942219, -0.941185, -0.942397, -0.941161, -0.942152,
-0.941514, -0.941638, -0.941982, -0.94118, -0.942237, -0.941053,
-0.942101, -0.941307, -0.941656, -0.941746, -0.941182, -0.942056,
-0.940967, -0.942022, -0.941122, -0.941655, -0.941514, -0.941184,
-0.94186, -0.940899, -0.941916, -0.940958, -0.941632, -0.941292,
-0.941184, -0.941653, -0.940846, -0.941785, -0.940815, -0.941587,
-0.94108, -0.941176, -0.941439, -0.940804, -0.941633, -0.940691,
-0.941519, -0.940881, -0.941157, -0.941221, -0.940768, -0.941462,
-0.940584, -0.941427, -0.940698, -0.941124, -0.941004, -0.940735,
-0.941276, -0.940493, -0.941314, -0.940529, -0.941076, -0.940791,
-0.940701, -0.941078, -0.940414, -0.941179, -0.940377, -0.941009,
-0.940585, -0.940662, -0.940872, -0.940345, -0.941026, -0.94024,
-0.940924, -0.940388, -0.940615, -0.940662, -0.940281, -0.940855,
-0.940117, -0.940819, -0.940201, -0.940557, -0.940449, -0.940221,
-0.94067, -0.940007, -0.940695, -0.940027, -0.940486, -0.940238,
-0.94016, -0.940473, -0.939907, -0.940552, -0.939865, -0.9404,
-0.940032, -0.940095, -0.940268, -0.939815, -0.940391, -0.939715,
-0.940297, -0.939831, -0.940024, -0.940057, -0.939728, -0.940216,
-0.939576, -0.940177, -0.939639, -0.939943, -0.939844, -0.939644,
-0.940026, -0.939448, -0.94004, -0.939456, -0.939851, -0.93963,
-0.939559, -0.939826, -0.939329, -0.939886, -0.939283, -0.939746,
-0.939419, -0.939471, -0.939616, -0.939217, -0.939716, -0.939119,
-0.939625, -0.939212, -0.939378, -0.939401, -0.939109, -0.939532,
-0.938966, -0.93949, -0.939011, -0.939276, -0.939182, -0.939002,
-0.939334, -0.93882, -0.939338, -0.938817, -0.939163, -0.938961,
-0.938896, -0.939126, -0.938682, -0.939171, -0.938631, -0.939038,
-0.938742, -0.938786, -0.938909, -0.93855, -0.938989, -0.938453,
-0.9389, -0.938526, -0.93867, -0.938685, -0.938421, -0.938793,
-0.938283, -0.938748, -0.938314, -0.938547, -0.938457, -0.938293,
-0.938585, -0.93812, -0.93858, -0.938107, -0.938414, -0.938227,
-0.938165, -0.938366, -0.937963, -0.938398, -0.937907, -0.93827,
-0.937997, -0.938033, -0.938138, -0.93781, -0.938202, -0.937713,
-0.938113, -0.937769, -0.937896, -0.937903, -0.937661, -0.937992,
-0.937526, -0.937942, -0.937543, -0.937752, -0.937664, -0.937511,
-0.937771, -0.937344, -0.937758, -0.937322, -0.937598, -0.937421,
-0.937361, -0.937538, -0.937167, -0.937559, -0.937106, -0.937433,
-0.937178, -0.937207, -0.937297, -0.936994, -0.937346, -0.936894,
-0.937256, -0.936935, -0.937048, -0.937048, -0.936822, -0.937121,
-0.936688, -0.937065, -0.936694, -0.936881, -0.936794, -0.936651,
-0.936883, -0.936487, -0.936862, -0.936456, -0.936705, -0.936537,
-0.936478, -0.936635, -0.936289, -0.936644, -0.936222, -0.936519,
-0.936278, -0.936301, -0.936377, -0.936094, -0.936413, -0.935992,
-0.93632, -0.936018, -0.936119, -0.936113, -0.9359, -0.936169,
-0.935765, -0.936109, -0.935759, -0.935929, -0.935842, -0.935705,
-0.935914, -0.935542, -0.935884, -0.935503, -0.935729, -0.935567,
-0.935508, -0.935647, -0.935322, -0.935646, -0.935249, -0.935519,
-0.93529, -0.935307, -0.935372, -0.935104, -0.935395, -0.934997,
-0.935298, -0.935011, -0.9351, -0.935088, -0.934885, -0.93513,
-0.934749, -0.935064, -0.934732, -0.934885, -0.934798, -0.934666,
-0.934854, -0.934503, -0.934816, -0.934454, -0.934661, -0.934503,
-0.934444, -0.934567, -0.934259, -0.934555, -0.934178, -0.934426,
-0.934205, -0.934217, -0.934271, -0.934015, -0.934281, -0.933904,
-0.93418, -0.933905, -0.933984, -0.933966, -0.933771, -0.933994,
-0.933631, -0.933921, -0.933604, -0.933742, -0.933654, -0.933525,
-0.933695, -0.93336, -0.933648, -0.933302, -0.933492, -0.933336,
-0.933276, -0.933385, -0.93309, -0.933363, -0.933002, -0.93323,
-0.933015, -0.933021, -0.933065, -0.932819, -0.933063, -0.932702,
-0.932957, -0.932691, -0.93276, -0.932736, -0.932547, -0.932751,
-0.932403, -0.93267, -0.932364, -0.93249, -0.932399, -0.932273,
-0.932427, -0.932104, -0.932371, -0.932037, -0.932211, -0.932057,
-0.931994, -0.932091, -0.931806, -0.932057, -0.93171, -0.93192,
-0.931709, -0.93171, -0.931744, -0.931506, -0.931731, -0.931382,
-0.931617, -0.931358, -0.931418, -0.931388, -0.931204, -0.93139,
-0.931054, -0.931301, -0.931004, -0.931118, -0.931024, -0.930899,
-0.931038, -0.930726, -0.930972, -0.930648, -0.930807, -0.930654,
-0.930589, -0.930673, -0.930396, -0.930628, -0.930291, -0.930485,
-0.930277, -0.930272, -0.930297, -0.930065, -0.930271, -0.929933,
-0.93015, -0.929896, -0.929948, -0.929911, -0.92973, -0.9299,
-0.929573, -0.929802, -0.929512, -0.929614, -0.929517, -0.929391,
-0.929516, -0.929212, -0.92944, -0.929124, -0.929269, -0.929115,
-0.929047, -0.92912, -0.928849, -0.929063, -0.928734, -0.928913,
-0.928707, -0.928695, -0.928711, -0.928483, -0.928673, -0.928342,
-0.928543, -0.928293, -0.928335, -0.928293, -0.928113, -0.928268,
-0.927948, -0.92816, -0.927874, -0.927965, -0.927865, -0.927738,
-0.927849, -0.927551, -0.927762, -0.927452, -0.927584, -0.927428,
-0.927356, -0.927418, -0.927151, -0.927349, -0.927026, -0.92719,
-0.926984, -0.926967, -0.926974, -0.926747, -0.926922, -0.926597,
-0.926782, -0.926534, -0.926568, -0.926518, -0.926339, -0.926479,
-0.926165, -0.92636, -0.926078, -0.926158, -0.926053, -0.925924,
-0.926023, -0.925729, -0.925923, -0.925617, -0.925737, -0.925578,
-0.925502, -0.925552, -0.925288, -0.925471, -0.925152, -0.925302,
-0.925095, -0.925071, -0.925069, -0.924844, -0.925003, -0.924682,
-0.924853, -0.924605, -0.92463, -0.924573, -0.924393, -0.924519,
-0.924208, -0.924389, -0.924108, -0.924178, -0.924067, -0.923935,
-0.924021, -0.923729, -0.923909, -0.923605, -0.923712, -0.92355,
-0.923468, -0.923508, -0.923245, -0.923413, -0.923096, -0.923233,
-0.923024, -0.922993, -0.922981, -0.922755, -0.9229, -0.922582,
-0.922738, -0.922489, -0.922505, -0.922441, -0.922258, -0.922372,
-0.922062, -0.922228, -0.921947, -0.922006, -0.921889, -0.921753,
-0.921827, -0.921536, -0.921701, -0.921397, -0.921493, -0.921326,
-0.921239, -0.921267, -0.921004, -0.921157, -0.920841, -0.920965,
-0.920752, -0.920714, -0.920693, -0.920465, -0.920596, -0.920278,
-0.920421, -0.920169, -0.920176, -0.920104, -0.919918, -0.920018,
-0.919708, -0.91986, -0.919577, -0.919625, -0.919502, -0.919361,
-0.919423, -0.919131, -0.919281, -0.918976, -0.91906, -0.918888,
-0.918794, -0.918811, -0.918546, -0.918685, -0.918368, -0.918478,
-0.918262, -0.918215, -0.918184, -0.917953, -0.91807, -0.917751,
-0.91788, -0.917625, -0.917623, -0.917541, -0.917351, -0.917438,
-0.917126, -0.917264, -0.916978, -0.917016, -0.916884, -0.916738,
-0.916787, -0.916493, -0.916629, -0.916321, -0.916393, -0.916214,
-0.916113, -0.916119, -0.915851, -0.915975, -0.915655, -0.915753,
-0.915531, -0.915475, -0.915434, -0.915199, -0.915302, -0.91498,
-0.915095, -0.914835, -0.914823, -0.914732, -0.914536, -0.914609,
-0.914295, -0.914418, -0.914128, -0.914154, -0.914015, -0.913861,
-0.913898, -0.9136, -0.913721, -0.91341, -0.913469, -0.913283,
-0.913173, -0.913167, -0.912894, -0.913004, -0.912681, -0.912765,
-0.912536, -0.912471, -0.912419, -0.912178, -0.912267, -0.911941,
-0.912042, -0.911776, -0.911753, -0.911652, -0.911449, -0.911509,
-0.91119, -0.911299, -0.911003, -0.911018, -0.910868, -0.910707,
-0.91073, -0.910427, -0.910534, -0.910217, -0.910264, -0.910068,
-0.90995, -0.909932, -0.909653, -0.909748, -0.909419, -0.90949,
-0.909253, -0.909177, -0.909113, -0.908866, -0.90894, -0.908608,
-0.908696, -0.908422, -0.908387, -0.908275, -0.908064, -0.90811,
-0.907785, -0.907879, -0.907576, -0.907579, -0.907419, -0.907248,
-0.907258, -0.906948, -0.907041, -0.906716, -0.90675, -0.906544,
-0.906416, -0.906384, -0.906098, -0.906179, -0.905842, -0.905899,
-0.905653, -0.905566, -0.905489, -0.905233, -0.905293, -0.904954,
-0.905027, -0.904744, -0.904697, -0.904573, -0.904353, -0.904384,
-0.904051, -0.904131, -0.903819, -0.903808, -0.903637, -0.903456,
-0.903452, -0.903133, -0.90321, -0.902877, -0.902897, -0.902681,
-0.902541, -0.902495, -0.9022, -0.902265, -0.90192, -0.901963,
-0.901705, -0.901607, -0.901516, -0.901251, -0.901295, -0.900947,
-0.901005, -0.900711, -0.900652, -0.900514, -0.900284, -0.9003,
-0.899957, -0.900021, -0.899699, -0.899674, -0.89949, -0.899298,
-0.899278, -0.89895, -0.899012, -0.898668, -0.898673, -0.898444,
-0.898293, -0.898232, -0.897926, -0.897975, -0.89762, -0.897647,
-0.897377, -0.897266, -0.897161, -0.896884, -0.896912, -0.896553,
-0.896595, -0.896289, -0.896216, -0.896064, -0.895822, -0.895821,
-0.895468, -0.895516, -0.895181, -0.895142, -0.894944, -0.894739,
-0.894703, -0.894364, -0.894408, -0.894053, -0.894042, -0.8938,
-0.893634, -0.893558, -0.89324, -0.893272, -0.892904, -0.892915,
-0.892632, -0.892506, -0.892385, -0.892095, -0.892107, -0.891735,
-0.89176, -0.891441, -0.891353, -0.891185, -0.890929, -0.890912,
-0.890545, -0.890576, -0.890228, -0.890173, -0.889959, -0.88974,
-0.889687, -0.889334, -0.889362, -0.888992, -0.888965, -0.888707,
-0.888527, -0.888433, -0.888101, -0.888116, -0.887734, -0.887728,
-0.887429, -0.887287, -0.887149, -0.886845, -0.886839, -0.886452,
-0.88646, -0.886126, -0.88602, -0.885836, -0.885565, -0.88553,
-0.885148, -0.885161, -0.884797, -0.884725, -0.884494, -0.884259,
-0.884188, -0.88382, -0.883829, -0.883443, -0.883399, -0.883123,
-0.882927, -0.882815, -0.882467, -0.882463, -0.882064, -0.882041,
-0.881724, -0.881565, -0.881409, -0.881088, -0.881063, -0.88066,
-0.880649, -0.880297, -0.880174, -0.879971, -0.879683, -0.879628,
-0.87923, -0.879224, -0.878842, -0.878752, -0.878502, -0.87825,
-0.878159, -0.877773, -0.877762, -0.877359, -0.877296, -0.877001,
-0.876786, -0.876655, -0.876289, -0.876265, -0.875848, -0.875805,
-0.87547, -0.875292, -0.875115, -0.874777, -0.874731, -0.874309,
-0.874278, -0.873907, -0.873765, -0.873541, -0.873234, -0.873159,
-0.872741, -0.872714, -0.872313, -0.872203, -0.871933, -0.871661,
-0.871549, -0.871144, -0.871112, -0.870689, -0.870604, -0.870289,
-0.870054, -0.869901, -0.869516, -0.86947, -0.869033, -0.868968,
-0.868612, -0.868414, -0.868215, -0.867856, -0.867788, -0.867346,
-0.867293, -0.8669, -0.866737, -0.866491, -0.866163, -0.866065,
-0.865627, -0.865578, -0.865155, -0.865022, -0.86473, -0.864436,
-0.864302, -0.863875, -0.86382, -0.863375, -0.863268, -0.86293,
-0.862673, -0.862497, -0.862089, -0.86202, -0.86156, -0.861473,
-0.861093, -0.860872, -0.86065, -0.860268, -0.860176, -0.859711,
-0.859635, -0.859218, -0.859032, -0.858762, -0.858411, -0.858289,
-0.857826, -0.857753, -0.857306, -0.85715, -0.856832, -0.856515,
-0.856356, -0.855905, -0.855826, -0.855355, -0.855225, -0.854861,
-0.85458, -0.854378, -0.853946, -0.853852, -0.853367, -0.853255,
-0.852849, -0.852604, -0.852356, -0.851948, -0.851831, -0.85134,
-0.851239, -0.850795, -0.850584, -0.850287, -0.84991, -0.849762,
-0.849273, -0.849175, -0.8487, -0.848518, -0.848174, -0.84783,
-0.847644, -0.847166, -0.847061, -0.846563, -0.846406, -0.846015,
-0.845707, -0.845478, -0.845018, -0.844897, -0.844383, -0.844245,
-0.84381, -0.843538, -0.843262, -0.842826, -0.842682, -0.842161,
-0.842033, -0.84156, -0.841321, -0.840996, -0.84059, -0.840414,
-0.839895, -0.839769, -0.839264, -0.839055, -0.83868, -0.838308,
-0.838093, -0.837585, -0.837451, -0.836922, -0.836737, -0.836315,
-0.835978, -0.835719, -0.835228, -0.835079, -0.834534, -0.834366,
-0.8339, -0.833598, -0.833291, -0.832825, -0.83265, -0.832098,
-0.83194, -0.831435, -0.831166, -0.830809, -0.830372, -0.830165,
-0.829613, -0.829457, -0.828919, -0.828679, -0.828272, -0.827868,
-0.827621, -0.82708, -0.826916, -0.826352, -0.826136, -0.82568,
-0.825311, -0.82502, -0.824495, -0.824314, -0.823734, -0.823535,
-0.823034, -0.8227, -0.822359, -0.821859, -0.821652, -0.821064,
-0.820874, -0.820333, -0.820031, -0.819639, -0.819168, -0.818927,
-0.81834, -0.818151, -0.817576, -0.817303, -0.81686, -0.816421,
-0.81614, -0.815562, -0.815364, -0.814763, -0.814514, -0.814021,
-0.813616, -0.813289, -0.812727, -0.812512, -0.811893, -0.811661,
-0.811121, -0.810751, -0.810373, -0.809835, -0.809593, -0.808966,
-0.808742, -0.808161, -0.807823, -0.807393, -0.806884, -0.806607,
-0.805979, -0.805755, -0.80514, -0.804831, -0.804348, -0.803871,
-0.803552, -0.802933, -0.802699, -0.802056, -0.80177, -0.801236,
-0.800794, -0.800427, -0.799825, -0.799572, -0.798911, -0.798641,
-0.798059, -0.79765, -0.797232, -0.796653, -0.796372, -0.795701,
-0.795439, -0.794815, -0.794439, -0.793966, -0.793415, -0.793099,
-0.792427, -0.792164, -0.791504, -0.791155, -0.790629, -0.79011,
-0.78975, -0.789087, -0.788813, -0.788125, -0.787799, -0.78722,
-0.786735, -0.786326, -0.785678, -0.785385, -0.784677, -0.784366,
-0.783738, -0.783287, -0.782824, -0.782199, -0.781877, -0.781158,
-0.780855, -0.780183, -0.779763, -0.779245, -0.778648, -0.778288,
-0.777568, -0.777263, -0.776554, -0.776162, -0.775588, -0.775023,
-0.774618, -0.773905, -0.773589, -0.77285, -0.77248, -0.771852,
-0.77132, -0.770865, -0.770167, -0.76983, -0.76907, -0.768715,
-0.768036, -0.767538, -0.767027, -0.766352, -0.765984, -0.765213,
-0.764864, -0.76414, -0.763673, -0.763105, -0.762458, -0.76205,
-0.761277, -0.760926, -0.760162, -0.759723, -0.759097, -0.758481,
-0.758027, -0.75726, -0.756897, -0.756102, -0.755685, -0.755003,
-0.75442, -0.753913, -0.753161, -0.752775, -0.751959, -0.751555,
-0.750821, -0.750271, -0.749708, -0.748977, -0.748559, -0.74773,
-0.747333, -0.74655, -0.746032, -0.745409, -0.744706, -0.744247,
-0.743415, -0.743013, -0.74219, -0.741699, -0.741016, -0.740345,
-0.739837, -0.739011, -0.738595, -0.73774, -0.73727, -0.736529,
-0.73589, -0.735328, -0.734516, -0.734077, -0.733198, -0.732742,
-0.731945, -0.73134, -0.730718, -0.729927, -0.729455, -0.728562,
-0.72811, -0.727265, -0.72669, -0.726007, -0.725243, -0.724727,
-0.72383, -0.723374, -0.722486, -0.721938, -0.721192, -0.720459,
-0.719893, -0.719001, -0.71853, -0.717607, -0.71708, -0.716274,
-0.715574, -0.714951, -0.714072, -0.713575, -0.712628, -0.712114,
-0.71125, -0.710583, -0.709898, -0.70904, -0.708508, -0.707545,
-0.707035, -0.70612, -0.705484, -0.704734, -0.703903, -0.703326,
-0.702358, -0.701842, -0.700881, -0.700272, -0.699457, -0.698657,
-0.698027, -0.697063, -0.69653, -0.695534, -0.694944, -0.694066,
-0.693299, -0.692609, -0.691658, -0.691098, -0.690075, -0.689498,
-0.68856, -0.687825, -0.687071, -0.68614, -0.685543, -0.684502,
-0.683929, -0.682936, -0.682233, -0.681411, -0.680506, -0.679862,
-0.678815, -0.678234, -0.677194, -0.676517, -0.675627, -0.674753,
-0.674053, -0.673009, -0.67241, -0.671332, -0.670674, -0.669718,
-0.668877, -0.668114, -0.667082, -0.666454, -0.665347, -0.664701,
-0.663682, -0.662874, -0.662043, -0.661032, -0.660363, -0.659238,
-0.658594, -0.657518, -0.65674, -0.655839, -0.654853, -0.654135,
-0.653002, -0.65235, -0.651223, -0.650471, -0.649499, -0.648544,
-0.647767, -0.646636, -0.645964, -0.644797, -0.644064, -0.643022,
-0.6421, -0.641257, -0.640137, -0.639434, -0.638236, -0.637514,
-0.636405, -0.635516, -0.634602, -0.633502, -0.632756, -0.631538,
-0.630818, -0.629648, -0.62879, -0.627801, -0.626727, -0.625929,
-0.624701, -0.62397, -0.622748, -0.621915, -0.620852, -0.619808,
-0.618948, -0.617721, -0.616969, -0.615703, -0.614889, -0.613752,
-0.612741, -0.611811, -0.610595, -0.609809, -0.60851, -0.607707,
-0.606499, -0.605522, -0.604516, -0.603319, -0.602488, -0.601167,
-0.600363, -0.599092, -0.598145, -0.597061, -0.59589, -0.595003,
-0.59367, -0.592855, -0.591528, -0.590606, -0.589443, -0.588302,
-0.58735, -0.586017, -0.585178, -0.583804, -0.582901, -0.58166,
-0.580552, -0.579526, -0.578204, -0.577329, -0.575919, -0.575025,
-0.57371, -0.572635, -0.57153, -0.570226, -0.569302, -0.567868,
-0.566973, -0.56559, -0.564546, -0.563357, -0.562079, -0.561096,
-0.559648, -0.558741, -0.557297, -0.556279, -0.555006, -0.553759,
-0.552706, -0.551257, -0.550324, -0.54883, -0.54783, -0.546474,
-0.54526, -0.544129, -0.542689, -0.541717, -0.540185, -0.539193,
-0.537759, -0.536578, -0.535363, -0.533941, -0.532917, -0.531358,
-0.530364, -0.528858, -0.527707, -0.526404, -0.525008, -0.52392,
-0.522346, -0.521338, -0.519767, -0.518642, -0.51725, -0.515885,
-0.514723, -0.513146, -0.512109, -0.510484, -0.509378, -0.507897,
-0.506565, -0.50532, -0.503751, -0.502673, -0.501006, -0.499907,
-0.498342, -0.497045, -0.49571, -0.494159, -0.493025, -0.491328,
-0.490226, -0.488584, -0.487318, -0.485889, -0.484363, -0.483161,
-0.481448, -0.480329, -0.478618, -0.477378, -0.475853, -0.474359,
-0.473077, -0.471359, -0.47021, -0.468441, -0.467218, -0.465599,
-0.46414, -0.46277, -0.461059, -0.459864, -0.458049, -0.456834,
-0.455125, -0.453701, -0.452234, -0.450541, -0.449287, -0.447439,
-0.446219, -0.444427, -0.443034, -0.441467, -0.4398, -0.438473,
-0.436605, -0.435367, -0.433501, -0.432135, -0.430465, -0.42883,
-0.427418, -0.425544, -0.424273, -0.422343, -0.420995, -0.419224,
-0.417625, -0.416117, -0.41425, -0.41293, -0.41095, -0.409609,
-0.407742, -0.406178, -0.404567, -0.402717, -0.401333, -0.399317,
-0.39797, -0.396013, -0.394482, -0.392763, -0.39094, -0.389477,
-0.387439, -0.386072, -0.384034, -0.38253, -0.380702, -0.378911,
-0.377357, -0.375311, -0.373907, -0.371801, -0.370316, -0.368378,
-0.366625, -0.364967, -0.362928, -0.361471, -0.35931, -0.357832,
-0.355789, -0.354073, -0.352305, -0.350283, -0.348756, -0.346556,
-0.34507, -0.34293, -0.341249, -0.339364, -0.337369, -0.335758,
-0.333532, -0.332024, -0.329797, -0.328144, -0.32614, -0.32418,
-0.32247, -0.320235, -0.318687, -0.316386, -0.314752, -0.31263,
-0.310708, -0.308887, -0.306657, -0.305052, -0.30269, -0.301063,
-0.298828, -0.296945, -0.295004, -0.292792, -0.291112, -0.288706,
-0.287071, -0.28473, -0.282884, -0.280817, -0.278633, -0.276861,
-0.274427, -0.272768, -0.270331, -0.268516, -0.266319, -0.264172,
-0.262292, -0.259848, -0.258145, -0.255627, -0.253832, -0.251506,
-0.2494, -0.247401, -0.24496, -0.243195, -0.240611, -0.238823,
-0.236374, -0.23431, -0.23218, -0.229758, -0.227912, -0.225278,
-0.223482, -0.220917, -0.218893, -0.216625, -0.214233, -0.212287,
-0.209623, -0.2078, -0.20513, -0.203139, -0.20073, -0.198378,
-0.196315, -0.193637, -0.191768, -0.189008, -0.18704, -0.18449,
-0.182182, -0.179988, -0.177314, -0.175377, -0.172544, -0.170585,
-0.167899, -0.165637, -0.1633, -0.160646, -0.158621, -0.155733,
-0.153765, -0.150951, -0.148734, -0.146245, -0.143624, -0.14149,
-0.138568, -0.136571, -0.133642, -0.131461, -0.128818, -0.12624,
-0.123978, -0.12104, -0.118994, -0.115965, -0.11381, -0.111011,
-0.108483, -0.106077, -0.103144, -0.101024, -0.097913, -0.0957696,
-0.0928198, -0.0903434, -0.0877803, -0.0848684, -0.0826525, -0.0794803,
-0.0773294, -0.0742376, -0.0718111, -0.0690809, -0.0662057, -0.0638706,
-0.0606592, -0.058479, -0.0552584, -0.0528748, -0.0499721, -0.0471458,
-0.0446702, -0.0414417, -0.0392081, -0.0358756, -0.0335234, -0.0304476,
-0.027678, -0.025043, -0.0218191, -0.0195066, -0.0160823, -0.0137454,
-0.0105008, -0.00779135, -0.00498134, -0.00178227, 0.000635533, 0.00412872,
0.00647082, 0.00987495, 0.0125257, 0.0155223, 0.0186789, 0.0212279,
0.0247654, 0.0271367, 0.0306863, 0.0332852, 0.0364754, 0.039575,
0.0422798, 0.0458364, 0.0482637, 0.0519402, 0.0544994, 0.0578849,
0.0609176, 0.0638002, 0.0673508, 0.0698633, 0.073644, 0.0761811,
0.079758, 0.0827186, 0.0857979, 0.0893188, 0.0919464, 0.0958058,
0.0983431, 0.102102, 0.104991, 0.108281, 0.111751, 0.114524,
0.118434, 0.120998, 0.124924, 0.127747, 0.131258, 0.134659,
0.137606, 0.141537, 0.144159, 0.148231, 0.151002, 0.154736,
0.158055, 0.161203, 0.165126, 0.167839, 0.172031, 0.174768,
0.178724, 0.181953, 0.185325, 0.189211, 0.192049, 0.196334,
0.199061, 0.203228, 0.206366, 0.209981, 0.213803, 0.216803,
0.221146, 0.223894, 0.228258, 0.231309, 0.23518, 0.238915,
0.242112, 0.246479, 0.249283, 0.25382, 0.256796, 0.26093,
0.26456, 0.267988, 0.272342, 0.275241, 0.279922, 0.282844,
0.287241, 0.290753, 0.294442, 0.298747, 0.301783, 0.306575,
0.309469, 0.31412, 0.317508, 0.321483, 0.325705, 0.328923,
0.333785, 0.336686, 0.341575, 0.344841, 0.349124, 0.35323,
0.356675, 0.361565, 0.364512, 0.369616, 0.372769, 0.377372,
0.381336, 0.385051, 0.389922, 0.392964, 0.39825, 0.40131,
0.406239, 0.410037, 0.414065, 0.41887, 0.422058, 0.427487,
0.43048, 0.435732, 0.43935, 0.44373, 0.44842, 0.451812,
0.457334, 0.460299, 0.465862, 0.469291, 0.474058, 0.478584,
0.482241, 0.487802, 0.490786, 0.496636, 0.499877, 0.505061,
0.509377, 0.513363, 0.518899, 0.52196, 0.528065, 0.531129,
0.536751, 0.540812, 0.545194, 0.550637, 0.553841, 0.560155,
0.563064, 0.56914, 0.572904, 0.577751, 0.583023, 0.58645,
0.592917, 0.595703, 0.602239, 0.605668, 0.611054, 0.616069,
0.619809, 0.626357, 0.629066, 0.636062, 0.639118, 0.64512,
0.649781, 0.653944, 0.660482, 0.663175, 0.67062, 0.673268,
0.679973, 0.684165, 0.68888, 0.695298, 0.698054, 0.705929,
0.708127, 0.715643, 0.719219, 0.724655, 0.730803, 0.733727,
0.742006, 0.743699, 0.752169, 0.754927, 0.761317, 0.766987,
0.770225, 0.778875, 0.77997, 0.789619, 0.79124, 0.798953,
0.803812, 0.80759, 0.81657, 0.816886, 0.828132, 0.828019,
0.837743, 0.841159, 0.8459, 0.855164, 0.854264, 0.868077,
0.864806, 0.878228, 0.878594, 0.885388, 0.894888, 0.891289,
0.911067, 0.89923, 0.923425, 0.91309, 0.927945, 0.937611,
0.916379, 1
};
static const float WAVE_EXPONENTIAL_006[DEFAULT_WAVELEN] = {
0.0256342, -0.898414, -0.946979, -0.964184, -0.973063, -0.978549,
-0.982322, -0.985109, -0.987274, -0.989019, -0.990467, -0.991693,
-0.99275, -0.993672, -0.994485, -0.995206, -0.99585, -0.996426,
-0.996942, -0.997404, -0.997818, -0.998188, -0.998516, -0.998805,
-0.999059, -0.999278, -0.999465, -0.999622, -0.999749, -0.999849,
-0.999923, -0.999972, -0.999997, -1, -0.999982, -0.999944,
-0.999887, -0.999814, -0.999724, -0.999619, -0.999501, -0.99937,
-0.999229, -0.999078, -0.998918, -0.998751, -0.998578, -0.9984,
-0.998219, -0.998036, -0.997851, -0.997666, -0.997481, -0.997299,
-0.99712, -0.996944, -0.996774, -0.996608, -0.99645, -0.996298,
-0.996154, -0.996018, -0.995891, -0.995773, -0.995665, -0.995566,
-0.995478, -0.995401, -0.995333, -0.995277, -0.99523, -0.995194,
-0.995169, -0.995153, -0.995147, -0.995151, -0.995164, -0.995185,
-0.995214, -0.995251, -0.995296, -0.995347, -0.995403, -0.995466,
-0.995532, -0.995603, -0.995677, -0.995754, -0.995833, -0.995913,
-0.995994, -0.996074, -0.996154, -0.996232, -0.996309, -0.996383,
-0.996454, -0.996521, -0.996584, -0.996643, -0.996696, -0.996745,
-0.996787, -0.996823, -0.996854, -0.996877, -0.996894, -0.996905,
-0.996908, -0.996905, -0.996895, -0.996879, -0.996855, -0.996826,
-0.99679, -0.996748, -0.996701, -0.996648, -0.99659, -0.996527,
-0.996461, -0.99639, -0.996316, -0.996238, -0.996159, -0.996077,
-0.995994, -0.995909, -0.995824, -0.995739, -0.995654, -0.99557,
-0.995487, -0.995406, -0.995327, -0.995251, -0.995177, -0.995107,
-0.99504, -0.994977, -0.994917, -0.994863, -0.994812, -0.994767,
-0.994726, -0.99469, -0.994659, -0.994633, -0.994612, -0.994596,
-0.994584, -0.994578, -0.994575, -0.994578, -0.994584, -0.994594,
-0.994608, -0.994626, -0.994646, -0.994669, -0.994695, -0.994723,
-0.994753, -0.994784, -0.994816, -0.994849, -0.994882, -0.994915,
-0.994947, -0.994979, -0.995009, -0.995038, -0.995065, -0.99509,
-0.995113, -0.995133, -0.99515, -0.995164, -0.995174, -0.995181,
-0.995184, -0.995183, -0.995178, -0.995169, -0.995157, -0.99514,
-0.995119, -0.995094, -0.995065, -0.995032, -0.994996, -0.994956,
-0.994913, -0.994866, -0.994816, -0.994764, -0.994709, -0.994652,
-0.994593, -0.994532, -0.994469, -0.994406, -0.994341, -0.994277,
-0.994212, -0.994147, -0.994082, -0.994018, -0.993955, -0.993894,
-0.993833, -0.993775, -0.993719, -0.993665, -0.993613, -0.993564,
-0.993517, -0.993474, -0.993433, -0.993396, -0.993362, -0.993331,
-0.993303, -0.993279, -0.993258, -0.99324, -0.993225, -0.993214,
-0.993205, -0.993199, -0.993196, -0.993195, -0.993196, -0.9932,
-0.993206, -0.993213, -0.993221, -0.993231, -0.993242, -0.993253,
-0.993265, -0.993277, -0.993289, -0.993301, -0.993312, -0.993322,
-0.993331, -0.993339, -0.993345, -0.99335, -0.993352, -0.993352,
-0.99335, -0.993346, -0.993339, -0.993329, -0.993317, -0.993301,
-0.993283, -0.993262, -0.993238, -0.993211, -0.993181, -0.993148,
-0.993112, -0.993074, -0.993033, -0.992989, -0.992943, -0.992895,
-0.992845, -0.992793, -0.992739, -0.992684, -0.992627, -0.992569,
-0.992511, -0.992452, -0.992393, -0.992333, -0.992273, -0.992214,
-0.992156, -0.992098, -0.99204, -0.991985, -0.99193, -0.991877,
-0.991825, -0.991776, -0.991728, -0.991682, -0.991639, -0.991598,
-0.991559, -0.991522, -0.991488, -0.991456, -0.991427, -0.991401,
-0.991376, -0.991354, -0.991334, -0.991317, -0.991301, -0.991288,
-0.991276, -0.991266, -0.991258, -0.991251, -0.991245, -0.991241,
-0.991237, -0.991233, -0.991231, -0.991228, -0.991226, -0.991223,
-0.99122, -0.991216, -0.991212, -0.991207, -0.9912, -0.991193,
-0.991184, -0.991173, -0.991161, -0.991146, -0.99113, -0.991112,
-0.991091, -0.991068, -0.991043, -0.991016, -0.990986, -0.990954,
-0.990919, -0.990882, -0.990843, -0.990801, -0.990758, -0.990712,
-0.990664, -0.990615, -0.990563, -0.99051, -0.990456, -0.9904,
-0.990343, -0.990285, -0.990226, -0.990166, -0.990106, -0.990046,
-0.989986, -0.989925, -0.989865, -0.989806, -0.989746, -0.989688,
-0.989631, -0.989574, -0.989519, -0.989465, -0.989413, -0.989362,
-0.989313, -0.989266, -0.98922, -0.989177, -0.989135, -0.989095,
-0.989057, -0.989021, -0.988987, -0.988955, -0.988925, -0.988897,
-0.98887, -0.988845, -0.988822, -0.9888, -0.988779, -0.988759,
-0.988741, -0.988723, -0.988707, -0.98869, -0.988675, -0.988659,
-0.988644, -0.988628, -0.988613, -0.988597, -0.98858, -0.988563,
-0.988544, -0.988525, -0.988505, -0.988483, -0.98846, -0.988435,
-0.988409, -0.988381, -0.988351, -0.98832, -0.988286, -0.988251,
-0.988213, -0.988173, -0.988132, -0.988088, -0.988043, -0.987995,
-0.987945, -0.987894, -0.987841, -0.987786, -0.98773, -0.987672,
-0.987613, -0.987552, -0.987491, -0.987428, -0.987364, -0.9873,
-0.987236, -0.987171, -0.987105, -0.98704, -0.986974, -0.986909,
-0.986845, -0.98678, -0.986717, -0.986654, -0.986592, -0.986531,
-0.986472, -0.986413, -0.986356, -0.9863, -0.986246, -0.986193,
-0.986142, -0.986092, -0.986044, -0.985998, -0.985953, -0.98591,
-0.985868, -0.985828, -0.98579, -0.985753, -0.985717, -0.985682,
-0.985649, -0.985616, -0.985585, -0.985554, -0.985524, -0.985495,
-0.985465, -0.985437, -0.985408, -0.985379, -0.985351, -0.985322,
-0.985292, -0.985262, -0.985231, -0.985199, -0.985167, -0.985133,
-0.985098, -0.985062, -0.985024, -0.984985, -0.984944, -0.984902,
-0.984858, -0.984812, -0.984764, -0.984715, -0.984664, -0.984611,
-0.984556, -0.984499, -0.984441, -0.984381, -0.984319, -0.984256,
-0.984191, -0.984125, -0.984058, -0.983989, -0.983919, -0.983849,
-0.983777, -0.983705, -0.983632, -0.983559, -0.983485, -0.983411,
-0.983337, -0.983263, -0.98319, -0.983116, -0.983043, -0.982971,
-0.982899, -0.982828, -0.982758, -0.982689, -0.982621, -0.982554,
-0.982489, -0.982424, -0.982361, -0.9823, -0.982239, -0.98218,
-0.982123, -0.982067, -0.982012, -0.981958, -0.981906, -0.981855,
-0.981805, -0.981756, -0.981708, -0.981662, -0.981616, -0.98157,
-0.981526, -0.981481, -0.981438, -0.981394, -0.981351, -0.981307,
-0.981264, -0.98122, -0.981176, -0.981131, -0.981086, -0.98104,
-0.980993, -0.980945, -0.980896, -0.980846, -0.980795, -0.980742,
-0.980688, -0.980632, -0.980575, -0.980517, -0.980456, -0.980394,
-0.98033, -0.980265, -0.980198, -0.980129, -0.980059, -0.979987,
-0.979913, -0.979838, -0.979762, -0.979684, -0.979605, -0.979525,
-0.979444, -0.979361, -0.979278, -0.979194, -0.979109, -0.979024,
-0.978938, -0.978852, -0.978766, -0.97868, -0.978594, -0.978508,
-0.978422, -0.978337, -0.978252, -0.978167, -0.978084, -0.978001,
-0.977919, -0.977838, -0.977758, -0.977679, -0.977601, -0.977525,
-0.977449, -0.977375, -0.977301, -0.977229, -0.977159, -0.977089,
-0.97702, -0.976953, -0.976886, -0.976821, -0.976756, -0.976692,
-0.976629, -0.976567, -0.976505, -0.976444, -0.976383, -0.976322,
-0.976261, -0.9762, -0.976139, -0.976078, -0.976017, -0.975955,
-0.975893, -0.97583, -0.975766, -0.975701, -0.975635, -0.975568,
-0.9755, -0.975431, -0.97536, -0.975288, -0.975215, -0.97514,
-0.975063, -0.974985, -0.974906, -0.974824, -0.974741, -0.974657,
-0.974571, -0.974483, -0.974394, -0.974303, -0.974211, -0.974118,
-0.974023, -0.973928, -0.973831, -0.973733, -0.973634, -0.973534,
-0.973433, -0.973332, -0.97323, -0.973128, -0.973026, -0.972923,
-0.97282, -0.972718, -0.972615, -0.972513, -0.972411, -0.972309,
-0.972208, -0.972108, -0.972008, -0.971909, -0.97181, -0.971713,
-0.971617, -0.971521, -0.971427, -0.971333, -0.971241, -0.971149,
-0.971059, -0.97097, -0.970881, -0.970794, -0.970707, -0.970621,
-0.970536, -0.970452, -0.970368, -0.970285, -0.970203, -0.970121,
-0.970039, -0.969957, -0.969876, -0.969794, -0.969712, -0.96963,
-0.969548, -0.969465, -0.969382, -0.969298, -0.969214, -0.969128,
-0.969042, -0.968954, -0.968865, -0.968775, -0.968684, -0.968592,
-0.968498, -0.968402, -0.968306, -0.968207, -0.968107, -0.968006,
-0.967903, -0.967798, -0.967692, -0.967584, -0.967475, -0.967364,
-0.967252, -0.967138, -0.967023, -0.966907, -0.966789, -0.966671,
-0.966552, -0.966431, -0.96631, -0.966188, -0.966065, -0.965942,
-0.965819, -0.965695, -0.965571, -0.965446, -0.965322, -0.965198,
-0.965074, -0.96495, -0.964827, -0.964704, -0.964582, -0.96446,
-0.964339, -0.964218, -0.964099, -0.96398, -0.963862, -0.963744,
-0.963628, -0.963512, -0.963398, -0.963284, -0.963171, -0.963059,
-0.962948, -0.962837, -0.962727, -0.962618, -0.962509, -0.962401,
-0.962293, -0.962185, -0.962078, -0.961971, -0.961864, -0.961757,
-0.96165, -0.961542, -0.961434, -0.961326, -0.961217, -0.961107,
-0.960997, -0.960886, -0.960774, -0.96066, -0.960546, -0.960431,
-0.960314, -0.960196, -0.960076, -0.959955, -0.959833, -0.959709,
-0.959583, -0.959456, -0.959327, -0.959197, -0.959065, -0.958931,
-0.958796, -0.95866, -0.958522, -0.958382, -0.958241, -0.958099,
-0.957956, -0.957811, -0.957665, -0.957518, -0.957371, -0.957222,
-0.957073, -0.956923, -0.956772, -0.956621, -0.95647, -0.956318,
-0.956166, -0.956014, -0.955863, -0.955711, -0.955559, -0.955408,
-0.955257, -0.955106, -0.954956, -0.954807, -0.954658, -0.95451,
-0.954362, -0.954215, -0.954069, -0.953923, -0.953779, -0.953635,
-0.953491, -0.953349, -0.953207, -0.953065, -0.952925, -0.952784,
-0.952645, -0.952505, -0.952366, -0.952227, -0.952089, -0.95195,
-0.951811, -0.951673, -0.951534, -0.951394, -0.951255, -0.951115,
-0.950974, -0.950833, -0.95069, -0.950547, -0.950403, -0.950258,
-0.950112, -0.949964, -0.949815, -0.949665, -0.949513, -0.94936,
-0.949206, -0.949049, -0.948892, -0.948732, -0.948571, -0.948408,
-0.948244, -0.948078, -0.94791, -0.947741, -0.94757, -0.947398,
-0.947224, -0.947048, -0.946872, -0.946694, -0.946514, -0.946334,
-0.946153, -0.94597, -0.945787, -0.945603, -0.945418, -0.945233,
-0.945047, -0.94486, -0.944673, -0.944487, -0.944299, -0.944112,
-0.943925, -0.943738, -0.943551, -0.943364, -0.943178, -0.942992,
-0.942806, -0.942621, -0.942437, -0.942253, -0.942069, -0.941886,
-0.941704, -0.941522, -0.941341, -0.94116, -0.94098, -0.940801,
-0.940622, -0.940443, -0.940264, -0.940086, -0.939908, -0.939731,
-0.939553, -0.939375, -0.939197, -0.939019, -0.938841, -0.938663,
-0.938483, -0.938304, -0.938123, -0.937942, -0.93776, -0.937577,
-0.937393, -0.937208, -0.937022, -0.936834, -0.936645, -0.936455,
-0.936263, -0.936069, -0.935874, -0.935678, -0.935479, -0.935279,
-0.935077, -0.934873, -0.934668, -0.934461, -0.934252, -0.934041,
-0.933829, -0.933615, -0.9334, -0.933182, -0.932964, -0.932744,
-0.932522, -0.932299, -0.932075, -0.93185, -0.931624, -0.931397,
-0.931168, -0.930939, -0.93071, -0.930479, -0.930249, -0.930017,
-0.929786, -0.929554, -0.929322, -0.92909, -0.928858, -0.928626,
-0.928394, -0.928162, -0.927931, -0.927699, -0.927469, -0.927238,
-0.927008, -0.926778, -0.926549, -0.92632, -0.926091, -0.925863,
-0.925636, -0.925408, -0.925181, -0.924954, -0.924728, -0.924501,
-0.924275, -0.924049, -0.923822, -0.923596, -0.923369, -0.923142,
-0.922915, -0.922687, -0.922459, -0.92223, -0.922, -0.921769,
-0.921538, -0.921305, -0.921071, -0.920836, -0.920599, -0.920362,
-0.920122, -0.919881, -0.919639, -0.919395, -0.919149, -0.918901,
-0.918652, -0.9184, -0.918147, -0.917892, -0.917635, -0.917376,
-0.917115, -0.916853, -0.916588, -0.916322, -0.916053, -0.915783,
-0.915512, -0.915239, -0.914964, -0.914687, -0.914409, -0.91413,
-0.91385, -0.913568, -0.913285, -0.913002, -0.912717, -0.912431,
-0.912145, -0.911858, -0.911571, -0.911283, -0.910994, -0.910706,
-0.910417, -0.910128, -0.909839, -0.90955, -0.90926, -0.908971,
-0.908682, -0.908394, -0.908105, -0.907817, -0.907529, -0.907241,
-0.906953, -0.906666, -0.906378, -0.906091, -0.905804, -0.905517,
-0.905231, -0.904944, -0.904657, -0.90437, -0.904083, -0.903796,
-0.903508, -0.90322, -0.902931, -0.902642, -0.902352, -0.902061,
-0.901769, -0.901476, -0.901182, -0.900887, -0.900591, -0.900293,
-0.899994, -0.899693, -0.899391, -0.899087, -0.898781, -0.898473,
-0.898163, -0.897852, -0.897538, -0.897222, -0.896905, -0.896585,
-0.896263, -0.895939, -0.895613, -0.895284, -0.894954, -0.894622,
-0.894287, -0.893951, -0.893612, -0.893272, -0.89293, -0.892586,
-0.892241, -0.891894, -0.891545, -0.891195, -0.890844, -0.890491,
-0.890137, -0.889782, -0.889426, -0.889069, -0.888711, -0.888353,
-0.887993, -0.887634, -0.887274, -0.886913, -0.886552, -0.886191,
-0.885829, -0.885468, -0.885106, -0.884744, -0.884382, -0.884021,
-0.883659, -0.883297, -0.882935, -0.882573, -0.882212, -0.88185,
-0.881488, -0.881126, -0.880764, -0.880402, -0.880039, -0.879676,
-0.879313, -0.878949, -0.878585, -0.87822, -0.877855, -0.877488,
-0.877121, -0.876753, -0.876384, -0.876013, -0.875641, -0.875268,
-0.874893, -0.874517, -0.874139, -0.873759, -0.873378, -0.872994,
-0.872609, -0.872221, -0.871831, -0.871439, -0.871045, -0.870649,
-0.87025, -0.869849, -0.869445, -0.869039, -0.868631, -0.86822,
-0.867807, -0.867392, -0.866974, -0.866554, -0.866132, -0.865708,
-0.865281, -0.864852, -0.864422, -0.863989, -0.863555, -0.863119,
-0.862681, -0.862241, -0.8618, -0.861358, -0.860914, -0.860469,
-0.860023, -0.859576, -0.859128, -0.858679, -0.85823, -0.857779,
-0.857328, -0.856876, -0.856424, -0.855972, -0.855519, -0.855065,
-0.854612, -0.854158, -0.853704, -0.853249, -0.852795, -0.85234,
-0.851884, -0.851429, -0.850973, -0.850517, -0.850061, -0.849604,
-0.849147, -0.848689, -0.84823, -0.847771, -0.847311, -0.84685,
-0.846388, -0.845925, -0.845461, -0.844996, -0.84453, -0.844062,
-0.843592, -0.843121, -0.842648, -0.842173, -0.841696, -0.841217,
-0.840737, -0.840253, -0.839768, -0.83928, -0.83879, -0.838297,
-0.837802, -0.837304, -0.836803, -0.8363, -0.835794, -0.835285,
-0.834774, -0.83426, -0.833743, -0.833223, -0.832701, -0.832176,
-0.831648, -0.831118, -0.830585, -0.83005, -0.829512, -0.828972,
-0.82843, -0.827886, -0.82734, -0.826791, -0.826241, -0.825689,
-0.825135, -0.82458, -0.824023, -0.823464, -0.822905, -0.822344,
-0.821782, -0.821218, -0.820654, -0.820089, -0.819523, -0.818957,
-0.818389, -0.817821, -0.817252, -0.816683, -0.816113, -0.815542,
-0.814971, -0.814399, -0.813827, -0.813254, -0.812681, -0.812107,
-0.811532, -0.810957, -0.81038, -0.809803, -0.809225, -0.808646,
-0.808066, -0.807485, -0.806903, -0.806319, -0.805734, -0.805147,
-0.804558, -0.803968, -0.803376, -0.802782, -0.802186, -0.801587,
-0.800987, -0.800384, -0.799778, -0.79917, -0.798559, -0.797945,
-0.797329, -0.79671, -0.796087, -0.795462, -0.794833, -0.794202,
-0.793567, -0.792929, -0.792288, -0.791644, -0.790997, -0.790346,
-0.789692, -0.789035, -0.788375, -0.787712, -0.787046, -0.786377,
-0.785705, -0.78503, -0.784353, -0.783673, -0.78299, -0.782305,
-0.781617, -0.780928, -0.780236, -0.779541, -0.778845, -0.778147,
-0.777448, -0.776746, -0.776043, -0.775338, -0.774632, -0.773925,
-0.773216, -0.772506, -0.771795, -0.771083, -0.77037, -0.769655,
-0.76894, -0.768224, -0.767507, -0.766788, -0.766069, -0.765349,
-0.764628, -0.763906, -0.763183, -0.762459, -0.761734, -0.761008,
-0.76028, -0.759551, -0.75882, -0.758088, -0.757354, -0.756619,
-0.755881, -0.755142, -0.754401, -0.753657, -0.752911, -0.752163,
-0.751412, -0.750659, -0.749903, -0.749144, -0.748382, -0.747617,
-0.746849, -0.746077, -0.745302, -0.744524, -0.743742, -0.742957,
-0.742168, -0.741376, -0.74058, -0.73978, -0.738976, -0.738168,
-0.737357, -0.736542, -0.735723, -0.7349, -0.734074, -0.733244,
-0.732411, -0.731574, -0.730733, -0.729889, -0.729042, -0.728191,
-0.727337, -0.72648, -0.72562, -0.724757, -0.723892, -0.723024,
-0.722153, -0.721279, -0.720404, -0.719526, -0.718646, -0.717763,
-0.716879, -0.715993, -0.715105, -0.714216, -0.713324, -0.712431,
-0.711537, -0.710641, -0.709743, -0.708844, -0.707944, -0.707042,
-0.706139, -0.705234, -0.704328, -0.703421, -0.702512, -0.701601,
-0.700689, -0.699775, -0.698859, -0.697942, -0.697023, -0.696101,
-0.695178, -0.694252, -0.693324, -0.692393, -0.69146, -0.690524,
-0.689586, -0.688644, -0.687699, -0.686752, -0.6858, -0.684846,
-0.683888, -0.682926, -0.68196, -0.680991, -0.680017, -0.67904,
-0.678058, -0.677072, -0.676082, -0.675087, -0.674088, -0.673085,
-0.672077, -0.671064, -0.670047, -0.669026, -0.668, -0.666969,
-0.665934, -0.664895, -0.663851, -0.662803, -0.66175, -0.660694,
-0.659633, -0.658568, -0.6575, -0.656427, -0.655351, -0.654271,
-0.653187, -0.6521, -0.65101, -0.649917, -0.64882, -0.647721,
-0.646619, -0.645514, -0.644406, -0.643296, -0.642183, -0.641068,
-0.63995, -0.63883, -0.637708, -0.636584, -0.635458, -0.63433,
-0.6332, -0.632068, -0.630933, -0.629797, -0.628659, -0.627519,
-0.626376, -0.625232, -0.624085, -0.622936, -0.621785, -0.620631,
-0.619475, -0.618316, -0.617154, -0.61599, -0.614823, -0.613652,
-0.612479, -0.611302, -0.610121, -0.608937, -0.607749, -0.606557,
-0.605362, -0.604162, -0.602957, -0.601749, -0.600535, -0.599317,
-0.598095, -0.596867, -0.595634, -0.594397, -0.593154, -0.591905,
-0.590652, -0.589393, -0.588129, -0.586859, -0.585584, -0.584303,
-0.583017, -0.581726, -0.580429, -0.579126, -0.577819, -0.576506,
-0.575187, -0.573864, -0.572535, -0.571202, -0.569863, -0.56852,
-0.567172, -0.565819, -0.564462, -0.563101, -0.561735, -0.560366,
-0.558992, -0.557615, -0.556233, -0.554848, -0.55346, -0.552068,
-0.550673, -0.549275, -0.547873, -0.546469, -0.545062, -0.543651,
-0.542238, -0.540822, -0.539404, -0.537982, -0.536558, -0.535131,
-0.533702, -0.532269, -0.530834, -0.529396, -0.527955, -0.526511,
-0.525065, -0.523615, -0.522161, -0.520705, -0.519245, -0.517781,
-0.516314, -0.514842, -0.513367, -0.511888, -0.510404, -0.508916,
-0.507423, -0.505925, -0.504422, -0.502915, -0.501402, -0.499883,
-0.49836, -0.49683, -0.495295, -0.493753, -0.492206, -0.490652,
-0.489092, -0.487526, -0.485953, -0.484374, -0.482788, -0.481196,
-0.479597, -0.477991, -0.476378, -0.474759, -0.473133, -0.471501,
-0.469862, -0.468216, -0.466564, -0.464906, -0.463241, -0.46157,
-0.459893, -0.458209, -0.45652, -0.454825, -0.453125, -0.451419,
-0.449707, -0.447991, -0.446269, -0.444542, -0.442811, -0.441074,
-0.439334, -0.437588, -0.435839, -0.434085, -0.432327, -0.430565,
-0.428799, -0.42703, -0.425256, -0.423479, -0.421698, -0.419914,
-0.418126, -0.416334, -0.414539, -0.41274, -0.410938, -0.409132,
-0.407322, -0.405508, -0.403691, -0.401869, -0.400043, -0.398213,
-0.396378, -0.39454, -0.392696, -0.390847, -0.388994, -0.387135,
-0.385271, -0.383402, -0.381526, -0.379645, -0.377758, -0.375865,
-0.373965, -0.372058, -0.370145, -0.368225, -0.366297, -0.364363,
-0.36242, -0.360471, -0.358513, -0.356548, -0.354575, -0.352594,
-0.350605, -0.348607, -0.346602, -0.344588, -0.342566, -0.340536,
-0.338497, -0.33645, -0.334396, -0.332332, -0.330261, -0.328182,
-0.326095, -0.324, -0.321898, -0.319787, -0.31767, -0.315545,
-0.313413, -0.311274, -0.309128, -0.306975, -0.304816, -0.302651,
-0.300479, -0.298301, -0.296117, -0.293928, -0.291733, -0.289533,
-0.287327, -0.285116, -0.2829, -0.280679, -0.278453, -0.276222,
-0.273987, -0.271747, -0.269502, -0.267253, -0.264999, -0.26274,
-0.260476, -0.258208, -0.255935, -0.253658, -0.251375, -0.249087,
-0.246794, -0.244496, -0.242192, -0.239883, -0.237567, -0.235246,
-0.232919, -0.230585, -0.228245, -0.225897, -0.223543, -0.221182,
-0.218813, -0.216436, -0.214051, -0.211658, -0.209257, -0.206847,
-0.204429, -0.202001, -0.199565, -0.197119, -0.194663, -0.192198,
-0.189723, -0.187238, -0.184743, -0.182238, -0.179723, -0.177197,
-0.174662, -0.172115, -0.169559, -0.166992, -0.164415, -0.161828,
-0.15923, -0.156623, -0.154005, -0.151378, -0.148741, -0.146094,
-0.143438, -0.140772, -0.138098, -0.135414, -0.132722, -0.130021,
-0.127312, -0.124594, -0.121869, -0.119136, -0.116395, -0.113647,
-0.110892, -0.10813, -0.105361, -0.102586, -0.0998035, -0.0970151,
-0.0942204, -0.0914197, -0.0886129, -0.0858002, -0.0829816, -0.0801571,
-0.0773269, -0.0744908, -0.0716488, -0.068801, -0.0659473, -0.0630875,
-0.0602217, -0.0573495, -0.0544711, -0.051586, -0.0486943, -0.0457956,
-0.0428899, -0.0399768, -0.0370561, -0.0341276, -0.031191, -0.0282461,
-0.0252926, -0.0223301, -0.0193584, -0.0163773, -0.0133864, -0.0103854,
-0.00737409, -0.00435215, -0.00131931, 0.00172468, 0.0047801, 0.00784716,
0.0109261, 0.0140172, 0.0171205, 0.0202363, 0.0233647, 0.0265059,
0.02966, 0.0328271, 0.0360072, 0.0392005, 0.0424069, 0.0456264,
0.0488591, 0.0521048, 0.0553635, 0.0586352, 0.0619197, 0.0652169,
0.0685266, 0.0718487, 0.0751829, 0.0785292, 0.0818871, 0.0852566,
0.0886374, 0.0920292, 0.0954317, 0.0988447, 0.102268, 0.105701,
0.109144, 0.112596, 0.116058, 0.119528, 0.123007, 0.126494,
0.129989, 0.133492, 0.137003, 0.140522, 0.144048, 0.147581,
0.151122, 0.154669, 0.158224, 0.161785, 0.165353, 0.168929,
0.172511, 0.176101, 0.179697, 0.183301, 0.186913, 0.190532,
0.194159, 0.197794, 0.201438, 0.20509, 0.208751, 0.212422,
0.216102, 0.219792, 0.223493, 0.227204, 0.230926, 0.234661,
0.238407, 0.242165, 0.245936, 0.24972, 0.253518, 0.25733,
0.261157, 0.264998, 0.268854, 0.272726, 0.276613, 0.280516,
0.284436, 0.288372, 0.292325, 0.296295, 0.300282, 0.304286,
0.308308, 0.312346, 0.316403, 0.320476, 0.324567, 0.328675,
0.3328, 0.336942, 0.341101, 0.345276, 0.349467, 0.353675,
0.357898, 0.362137, 0.36639, 0.370658, 0.374941, 0.379237,
0.383546, 0.387869, 0.392204, 0.396551, 0.400909, 0.405279,
0.40966, 0.414051, 0.418452, 0.422863, 0.427282, 0.431711,
0.436148, 0.440593, 0.445046, 0.449507, 0.453975, 0.458451,
0.462933, 0.467423, 0.471921, 0.476425, 0.480936, 0.485455,
0.489981, 0.494514, 0.499056, 0.503606, 0.508164, 0.512731,
0.517307, 0.521893, 0.52649, 0.531097, 0.535715, 0.540346,
0.544989, 0.549645, 0.554315, 0.559, 0.5637, 0.568416,
0.573149, 0.5779, 0.582668, 0.587456, 0.592263, 0.597091,
0.60194, 0.60681, 0.611703, 0.616619, 0.621558, 0.626521,
0.631509, 0.636521, 0.641559, 0.646622, 0.651711, 0.656827,
0.661968, 0.667135, 0.672329, 0.677549, 0.682795, 0.688066,
0.693364, 0.698686, 0.704034, 0.709405, 0.714801, 0.72022,
0.725661, 0.731125, 0.736609, 0.742114, 0.747638, 0.75318,
0.75874, 0.764317, 0.769909, 0.775515, 0.781134, 0.786766,
0.792408, 0.79806, 0.80372, 0.809388, 0.815062, 0.82074,
0.826423, 0.832108, 0.837794, 0.84348, 0.849164, 0.854847,
0.860526, 0.8662, 0.871868, 0.877529, 0.883181, 0.888824,
0.894455, 0.900074, 0.905678, 0.911266, 0.916836, 0.922386,
0.927913, 0.933413, 0.938882, 0.944317, 0.94971, 0.955054,
0.960338, 0.96555, 0.97067, 0.975675, 0.980529, 0.98518,
0.989552, 0.993524, 0.996893, 0.999293, 1, 0.997332,
0.986355, 0.944023
};
static const float WAVE_EXPONENTIAL_018[DEFAULT_WAVELEN] = {
0.00202863, -1, -0.765619, -0.903805, -0.805949, -0.88141,
-0.820225, -0.871423, -0.827583, -0.865699, -0.832121, -0.861938,
-0.835237, -0.859243, -0.837533, -0.857191, -0.839313, -0.855561,
-0.840744, -0.854221, -0.841929, -0.853093, -0.84293, -0.852124,
-0.843792, -0.851279, -0.844542, -0.850534, -0.845202, -0.849871,
-0.845786, -0.849277, -0.846307, -0.848741, -0.846773, -0.848258,
-0.847189, -0.84782, -0.847562, -0.847424, -0.847895, -0.847065,
-0.848192, -0.84674, -0.848456, -0.846448, -0.848688, -0.846186,
-0.848891, -0.845951, -0.849066, -0.845743, -0.849216, -0.845561,
-0.84934, -0.845402, -0.849442, -0.845266, -0.84952, -0.845151,
-0.849578, -0.845057, -0.849615, -0.844982, -0.849633, -0.844926,
-0.849633, -0.844887, -0.849615, -0.844865, -0.849581, -0.844859,
-0.849532, -0.844867, -0.849468, -0.844888, -0.849391, -0.844923,
-0.849301, -0.844969, -0.8492, -0.845025, -0.849088, -0.845092,
-0.848967, -0.845167, -0.848837, -0.84525, -0.848699, -0.845339,
-0.848555, -0.845435, -0.848406, -0.845535, -0.848251, -0.84564,
-0.848093, -0.845747, -0.847932, -0.845857, -0.847769, -0.845967,
-0.847604, -0.846078, -0.84744, -0.846189, -0.847276, -0.846298,
-0.847114, -0.846405, -0.846953, -0.846509, -0.846796, -0.84661,
-0.846642, -0.846706, -0.846492, -0.846798, -0.846348, -0.846884,
-0.846208, -0.846964, -0.846074, -0.847038, -0.845947, -0.847105,
-0.845826, -0.847165, -0.845713, -0.847217, -0.845607, -0.847261,
-0.845508, -0.847297, -0.845418, -0.847325, -0.845335, -0.847344,
-0.84526, -0.847355, -0.845194, -0.847357, -0.845136, -0.847351,
-0.845085, -0.847336, -0.845043, -0.847314, -0.845009, -0.847283,
-0.844982, -0.847244, -0.844963, -0.847197, -0.844951, -0.847143,
-0.844945, -0.847082, -0.844946, -0.847014, -0.844954, -0.84694,
-0.844967, -0.846861, -0.844985, -0.846775, -0.845008, -0.846685,
-0.845036, -0.84659, -0.845067, -0.846491, -0.845102, -0.846389,
-0.845139, -0.846284, -0.845179, -0.846176, -0.84522, -0.846066,
-0.845263, -0.845955, -0.845306, -0.845844, -0.84535, -0.845732,
-0.845393, -0.84562, -0.845435, -0.845508, -0.845476, -0.845398,
-0.845515, -0.84529, -0.845552, -0.845183, -0.845586, -0.84508,
-0.845617, -0.844979, -0.845645, -0.844881, -0.845669, -0.844787,
-0.845688, -0.844696, -0.845703, -0.84461, -0.845713, -0.844529,
-0.845718, -0.844452, -0.845718, -0.844379, -0.845713, -0.844312,
-0.845702, -0.84425, -0.845686, -0.844193, -0.845664, -0.84414,
-0.845637, -0.844094, -0.845604, -0.844052, -0.845565, -0.844015,
-0.845521, -0.843983, -0.845472, -0.843956, -0.845417, -0.843933,
-0.845358, -0.843915, -0.845293, -0.843901, -0.845224, -0.843892,
-0.845151, -0.843885, -0.845074, -0.843882, -0.844993, -0.843883,
-0.844909, -0.843885, -0.844821, -0.843891, -0.844731, -0.843898,
-0.844638, -0.843907, -0.844544, -0.843917, -0.844448, -0.843929,
-0.84435, -0.84394, -0.844252, -0.843952, -0.844153, -0.843964,
-0.844054, -0.843975, -0.843955, -0.843985, -0.843857, -0.843994,
-0.84376, -0.844002, -0.843664, -0.844007, -0.843569, -0.84401,
-0.843477, -0.84401, -0.843386, -0.844008, -0.843298, -0.844002,
-0.843213, -0.843993, -0.843131, -0.843981, -0.843052, -0.843964,
-0.842976, -0.843944, -0.842903, -0.84392, -0.842834, -0.843891,
-0.842769, -0.843859, -0.842707, -0.843822, -0.842649, -0.84378,
-0.842595, -0.843735, -0.842544, -0.843685, -0.842498, -0.84363,
-0.842454, -0.843572, -0.842415, -0.843509, -0.842378, -0.843443,
-0.842345, -0.843373, -0.842315, -0.843299, -0.842288, -0.843221,
-0.842264, -0.843141, -0.842242, -0.843057, -0.842223, -0.842971,
-0.842205, -0.842882, -0.842189, -0.842791, -0.842175, -0.842698,
-0.842162, -0.842603, -0.84215, -0.842507, -0.842138, -0.842409,
-0.842127, -0.842311, -0.842115, -0.842213, -0.842103, -0.842114,
-0.842091, -0.842015, -0.842078, -0.841916, -0.842064, -0.841819,
-0.842048, -0.841722, -0.84203, -0.841626, -0.842011, -0.841531,
-0.841989, -0.841439, -0.841965, -0.841348, -0.841938, -0.841259,
-0.841908, -0.841172, -0.841876, -0.841087, -0.84184, -0.841006,
-0.841801, -0.840926, -0.841758, -0.84085, -0.841712, -0.840776,
-0.841663, -0.840705, -0.841609, -0.840637, -0.841553, -0.840572,
-0.841492, -0.84051, -0.841428, -0.840451, -0.84136, -0.840394,
-0.841289, -0.84034, -0.841214, -0.840289, -0.841136, -0.840241,
-0.841054, -0.840194, -0.84097, -0.84015, -0.840882, -0.840108,
-0.840792, -0.840068, -0.8407, -0.84003, -0.840604, -0.839993,
-0.840507, -0.839957, -0.840408, -0.839923, -0.840307, -0.839889,
-0.840204, -0.839855, -0.8401, -0.839822, -0.839995, -0.839789,
-0.83989, -0.839756, -0.839784, -0.839722, -0.839677, -0.839688,
-0.839571, -0.839653, -0.839465, -0.839616, -0.839359, -0.839578,
-0.839254, -0.839539, -0.839149, -0.839497, -0.839046, -0.839454,
-0.838944, -0.839408, -0.838844, -0.83936, -0.838745, -0.839309,
-0.838647, -0.839256, -0.838552, -0.8392, -0.838459, -0.83914,
-0.838368, -0.839078, -0.838278, -0.839012, -0.838192, -0.838944,
-0.838107, -0.838872, -0.838025, -0.838797, -0.837945, -0.838718,
-0.837867, -0.838636, -0.837792, -0.838551, -0.837719, -0.838463,
-0.837648, -0.838372, -0.837579, -0.838278, -0.837512, -0.83818,
-0.837447, -0.83808, -0.837384, -0.837978, -0.837322, -0.837873,
-0.837262, -0.837765, -0.837202, -0.837656, -0.837144, -0.837544,
-0.837087, -0.837431, -0.837031, -0.837316, -0.836974, -0.837199,
-0.836918, -0.837082, -0.836863, -0.836963, -0.836806, -0.836844,
-0.83675, -0.836724, -0.836693, -0.836604, -0.836635, -0.836483,
-0.836576, -0.836363, -0.836516, -0.836243, -0.836454, -0.836123,
-0.83639, -0.836004, -0.836325, -0.835886, -0.836258, -0.835769,
-0.836188, -0.835653, -0.836116, -0.835538, -0.836042, -0.835425,
-0.835965, -0.835313, -0.835885, -0.835202, -0.835803, -0.835094,
-0.835717, -0.834987, -0.835629, -0.834882, -0.835537, -0.834779,
-0.835443, -0.834678, -0.835345, -0.834578, -0.835245, -0.83448,
-0.835141, -0.834385, -0.835034, -0.834291, -0.834925, -0.834198,
-0.834812, -0.834107, -0.834697, -0.834018, -0.834579, -0.83393,
-0.834458, -0.833844, -0.834335, -0.833758, -0.834209, -0.833674,
-0.834081, -0.833591, -0.833952, -0.833508, -0.83382, -0.833425,
-0.833686, -0.833343, -0.833551, -0.833261, -0.833415, -0.833179,
-0.833277, -0.833097, -0.833138, -0.833015, -0.832999, -0.832931,
-0.832859, -0.832847, -0.832718, -0.832762, -0.832578, -0.832676,
-0.832437, -0.832588, -0.832296, -0.832498, -0.832155, -0.832407,
-0.832015, -0.832314, -0.831876, -0.832219, -0.831737, -0.832121,
-0.831599, -0.832022, -0.831462, -0.831919, -0.831327, -0.831814,
-0.831192, -0.831707, -0.831059, -0.831596, -0.830926, -0.831483,
-0.830796, -0.831367, -0.830667, -0.831248, -0.830539, -0.831126,
-0.830413, -0.831001, -0.830288, -0.830872, -0.830164, -0.830741,
-0.830042, -0.830607, -0.829922, -0.83047, -0.829803, -0.830331,
-0.829684, -0.830188, -0.829567, -0.830043, -0.829451, -0.829895,
-0.829336, -0.829745, -0.829222, -0.829592, -0.829108, -0.829438,
-0.828995, -0.829281, -0.828882, -0.829122, -0.828769, -0.828962,
-0.828657, -0.828799, -0.828544, -0.828636, -0.828431, -0.828471,
-0.828317, -0.828305, -0.828202, -0.828139, -0.828087, -0.827971,
-0.82797, -0.827803, -0.827853, -0.827635, -0.827733, -0.827466,
-0.827613, -0.827297, -0.82749, -0.827129, -0.827365, -0.82696,
-0.827239, -0.826792, -0.82711, -0.826624, -0.826979, -0.826457,
-0.826845, -0.826291, -0.826709, -0.826125, -0.82657, -0.82596,
-0.826428, -0.825797, -0.826284, -0.825634, -0.826136, -0.825472,
-0.825985, -0.825312, -0.825832, -0.825152, -0.825675, -0.824994,
-0.825516, -0.824836, -0.825353, -0.82468, -0.825188, -0.824525,
-0.825019, -0.82437, -0.824847, -0.824217, -0.824673, -0.824064,
-0.824496, -0.823912, -0.824316, -0.823761, -0.824134, -0.823611,
-0.823949, -0.82346, -0.823761, -0.82331, -0.823571, -0.82316,
-0.82338, -0.82301, -0.823186, -0.82286, -0.82299, -0.822709,
-0.822793, -0.822558, -0.822594, -0.822407, -0.822394, -0.822254,
-0.822192, -0.8221, -0.82199, -0.821946, -0.821786, -0.821789,
-0.821582, -0.821632, -0.821377, -0.821472, -0.821172, -0.821311,
-0.820967, -0.821148, -0.820761, -0.820982, -0.820555, -0.820814,
-0.820349, -0.820644, -0.820144, -0.820471, -0.819939, -0.820296,
-0.819734, -0.820117, -0.81953, -0.819936, -0.819326, -0.819752,
-0.819123, -0.819565, -0.81892, -0.819375, -0.818719, -0.819182,
-0.818518, -0.818985, -0.818317, -0.818785, -0.818118, -0.818583,
-0.817919, -0.818377, -0.81772, -0.818167, -0.817523, -0.817955,
-0.817326, -0.81774, -0.817129, -0.817522, -0.816933, -0.8173,
-0.816737, -0.817076, -0.816542, -0.81685, -0.816346, -0.81662,
-0.816151, -0.816388, -0.815955, -0.816154, -0.815759, -0.815917,
-0.815563, -0.815678, -0.815366, -0.815437, -0.815168, -0.815194,
-0.81497, -0.81495, -0.81477, -0.814704, -0.814569, -0.814456,
-0.814367, -0.814208, -0.814163, -0.813958, -0.813958, -0.813707,
-0.813751, -0.813455, -0.813541, -0.813202, -0.813329, -0.812949,
-0.813116, -0.812696, -0.812899, -0.812442, -0.81268, -0.812188,
-0.812458, -0.811933, -0.812234, -0.811679, -0.812006, -0.811425,
-0.811775, -0.811171, -0.811541, -0.810917, -0.811304, -0.810663,
-0.811064, -0.81041, -0.81082, -0.810157, -0.810573, -0.809904,
-0.810323, -0.809652, -0.810069, -0.8094, -0.809812, -0.809148,
-0.809551, -0.808896, -0.809287, -0.808645, -0.80902, -0.808394,
-0.808749, -0.808143, -0.808475, -0.807892, -0.808198, -0.80764,
-0.807918, -0.807389, -0.807634, -0.807137, -0.807348, -0.806885,
-0.80706, -0.806632, -0.806768, -0.806378, -0.806474, -0.806123,
-0.806178, -0.805868, -0.805879, -0.805611, -0.805578, -0.805353,
-0.805275, -0.805093, -0.80497, -0.804832, -0.804664, -0.804569,
-0.804355, -0.804304, -0.804046, -0.804037, -0.803735, -0.803767,
-0.803423, -0.803495, -0.80311, -0.803221, -0.802796, -0.802943,
-0.802481, -0.802663, -0.802165, -0.80238, -0.801849, -0.802093,
-0.801533, -0.801804, -0.801215, -0.801511, -0.800898, -0.801214,
-0.80058, -0.800914, -0.800262, -0.800611, -0.799944, -0.800303,
-0.799626, -0.799992, -0.799308, -0.799678, -0.798989, -0.799359,
-0.79867, -0.799037, -0.798352, -0.798711, -0.798033, -0.798381,
-0.797713, -0.798048, -0.797394, -0.797711, -0.797074, -0.79737,
-0.796753, -0.797026, -0.796433, -0.796678, -0.796111, -0.796326,
-0.795789, -0.795972, -0.795466, -0.795614, -0.795142, -0.795253,
-0.794816, -0.794888, -0.79449, -0.794521, -0.794162, -0.794152,
-0.793833, -0.793779, -0.793501, -0.793404, -0.793168, -0.793027,
-0.792833, -0.792647, -0.792496, -0.792265, -0.792156, -0.791881,
-0.791814, -0.791496, -0.791469, -0.791108, -0.791122, -0.790719,
-0.790771, -0.790329, -0.790417, -0.789937, -0.79006, -0.789544,
-0.7897, -0.78915, -0.789336, -0.788755, -0.788968, -0.788358,
-0.788597, -0.787961, -0.788221, -0.787563, -0.787842, -0.787164,
-0.787459, -0.786765, -0.787071, -0.786365, -0.78668, -0.785964,
-0.786284, -0.785562, -0.785884, -0.78516, -0.78548, -0.784757,
-0.785071, -0.784354, -0.784658, -0.783949, -0.784241, -0.783544,
-0.78382, -0.783138, -0.783395, -0.782731, -0.782965, -0.782323,
-0.782532, -0.781914, -0.782094, -0.781503, -0.781652, -0.781092,
-0.781207, -0.780678, -0.780758, -0.780264, -0.780305, -0.779847,
-0.779849, -0.779429, -0.779389, -0.779008, -0.778926, -0.778585,
-0.77846, -0.77816, -0.777991, -0.777733, -0.777518, -0.777302,
-0.777044, -0.776869, -0.776566, -0.776433, -0.776086, -0.775994,
-0.775604, -0.775551, -0.775119, -0.775105, -0.774632, -0.774655,
-0.774143, -0.774202, -0.773652, -0.773744, -0.77316, -0.773282,
-0.772666, -0.772817, -0.77217, -0.772346, -0.771672, -0.771872,
-0.771173, -0.771393, -0.770673, -0.770909, -0.770171, -0.77042,
-0.769668, -0.769927, -0.769163, -0.769429, -0.768657, -0.768926,
-0.76815, -0.768419, -0.767642, -0.767906, -0.767132, -0.767388,
-0.766621, -0.766866, -0.766108, -0.766338, -0.765594, -0.765806,
-0.765079, -0.765269, -0.764561, -0.764727, -0.764042, -0.76418,
-0.763521, -0.763629, -0.762998, -0.763073, -0.762473, -0.762513,
-0.761946, -0.761948, -0.761416, -0.761379, -0.760884, -0.760806,
-0.76035, -0.760229, -0.759812, -0.759647, -0.759271, -0.759062,
-0.758728, -0.758474, -0.758181, -0.757881, -0.75763, -0.757285,
-0.757076, -0.756686, -0.756518, -0.756084, -0.755956, -0.755479,
-0.755389, -0.75487, -0.754819, -0.754259, -0.754244, -0.753646,
-0.753664, -0.753029, -0.75308, -0.75241, -0.75249, -0.751789,
-0.751896, -0.751165, -0.751296, -0.750539, -0.750691, -0.74991,
-0.750081, -0.74928, -0.749465, -0.748647, -0.748844, -0.748013,
-0.748217, -0.747376, -0.747585, -0.746737, -0.746946, -0.746096,
-0.746302, -0.745452, -0.745653, -0.744807, -0.744997, -0.744159,
-0.744336, -0.74351, -0.743669, -0.742857, -0.742996, -0.742203,
-0.742317, -0.741546, -0.741633, -0.740886, -0.740943, -0.740223,
-0.740248, -0.739558, -0.739547, -0.73889, -0.738841, -0.738218,
-0.73813, -0.737543, -0.737414, -0.736865, -0.736692, -0.736183,
-0.735966, -0.735497, -0.735235, -0.734807, -0.734499, -0.734114,
-0.733759, -0.733415, -0.733014, -0.732713, -0.732265, -0.732005,
-0.731512, -0.731293, -0.730754, -0.730576, -0.729993, -0.729853,
-0.729228, -0.729126, -0.728459, -0.728392, -0.727687, -0.727653,
-0.726911, -0.726908, -0.726131, -0.726158, -0.725349, -0.725401,
-0.724563, -0.724637, -0.723773, -0.723868, -0.722981, -0.723092,
-0.722185, -0.722309, -0.721387, -0.72152, -0.720585, -0.720724,
-0.71978, -0.719921, -0.718973, -0.719112, -0.718162, -0.718295,
-0.717348, -0.717472, -0.71653, -0.716642, -0.71571, -0.715805,
-0.714886, -0.714961, -0.714059, -0.71411, -0.713228, -0.713253,
-0.712394, -0.712389, -0.711556, -0.711518, -0.710714, -0.71064,
-0.709868, -0.709756, -0.709018, -0.708866, -0.708164, -0.707969,
-0.707305, -0.707066, -0.706441, -0.706157, -0.705573, -0.705242,
-0.7047, -0.70432, -0.703822, -0.703394, -0.702938, -0.702461,
-0.702048, -0.701523, -0.701153, -0.700579, -0.700252, -0.699631,
-0.699345, -0.698677, -0.698432, -0.697718, -0.697512, -0.696754,
-0.696585, -0.695785, -0.695651, -0.694811, -0.694711, -0.693833,
-0.693763, -0.69285, -0.692808, -0.691863, -0.691845, -0.690871,
-0.690875, -0.689875, -0.689897, -0.688875, -0.688911, -0.68787,
-0.687918, -0.686861, -0.686916, -0.685848, -0.685906, -0.68483,
-0.684888, -0.683808, -0.683862, -0.682782, -0.682827, -0.681751,
-0.681785, -0.680716, -0.680734, -0.679677, -0.679674, -0.678632,
-0.678607, -0.677583, -0.677531, -0.67653, -0.676447, -0.675471,
-0.675355, -0.674407, -0.674254, -0.673338, -0.673146, -0.672264,
-0.67203, -0.671184, -0.670905, -0.670098, -0.669774, -0.669006,
-0.668634, -0.667909, -0.667487, -0.666805, -0.666332, -0.665694,
-0.665171, -0.664577, -0.664002, -0.663453, -0.662825, -0.662321,
-0.661642, -0.661183, -0.660453, -0.660036, -0.659256, -0.658882,
-0.658053, -0.657721, -0.656843, -0.656551, -0.655627, -0.655372,
-0.654405, -0.654185, -0.653176, -0.65299, -0.651942, -0.651785,
-0.650701, -0.650572, -0.649454, -0.649349, -0.648202, -0.648117,
-0.646944, -0.646875, -0.64568, -0.645624, -0.64441, -0.644363,
-0.643134, -0.643092, -0.641852, -0.641812, -0.640565, -0.640521,
-0.639272, -0.639221, -0.637973, -0.63791, -0.636668, -0.63659,
-0.635357, -0.635259, -0.63404, -0.633918, -0.632716, -0.632567,
-0.631386, -0.631206, -0.63005, -0.629835, -0.628707, -0.628454,
-0.627357, -0.627063, -0.626, -0.625663, -0.624637, -0.624252,
-0.623265, -0.622832, -0.621887, -0.621403, -0.6205, -0.619963,
-0.619106, -0.618515, -0.617703, -0.617057, -0.616292, -0.61559,
-0.614872, -0.614115, -0.613444, -0.61263, -0.612006, -0.611136,
-0.610559, -0.609634, -0.609103, -0.608124, -0.607637, -0.606605,
-0.60616, -0.605077, -0.604674, -0.603542, -0.603177, -0.601998,
-0.60167, -0.600447, -0.600151, -0.598887, -0.598622, -0.59732,
-0.597081, -0.595745, -0.595529, -0.594162, -0.593965, -0.592571,
-0.59239, -0.590973, -0.590803, -0.589367, -0.589204, -0.587754,
-0.587593, -0.586132, -0.58597, -0.584503, -0.584334, -0.582866,
-0.582686, -0.581222, -0.581026, -0.579569, -0.579354, -0.577908,
-0.577669, -0.576239, -0.575972, -0.574562, -0.574262, -0.572877,
-0.57254, -0.571182, -0.570805, -0.569479, -0.569059, -0.567767,
-0.5673, -0.566046, -0.565529, -0.564316, -0.563746, -0.562576,
-0.561951, -0.560826, -0.560144, -0.559067, -0.558325, -0.557296,
-0.556495, -0.555516, -0.554653, -0.553725, -0.5528, -0.551922,
-0.550935, -0.550108, -0.54906, -0.548283, -0.547173, -0.546446,
-0.545275, -0.544597, -0.543367, -0.542735, -0.541447, -0.540861,
-0.539518, -0.538974, -0.537577, -0.537074, -0.535627, -0.535161,
-0.533666, -0.533234, -0.531695, -0.531293, -0.529713, -0.529338,
-0.527722, -0.527369, -0.52572, -0.525386, -0.523709, -0.523388,
-0.521687, -0.521376, -0.519655, -0.519349, -0.517614, -0.517307,
-0.515562, -0.515249, -0.5135, -0.513177, -0.511428, -0.51109,
-0.509345, -0.508987, -0.507252, -0.506869, -0.505149, -0.504735,
-0.503034, -0.502587, -0.500909, -0.500423, -0.498773, -0.498243,
-0.496626, -0.496049, -0.494467, -0.493839, -0.492297, -0.491614,
-0.490114, -0.489374, -0.48792, -0.487119, -0.485713, -0.484849,
-0.483494, -0.482564, -0.481261, -0.480264, -0.479016, -0.47795,
-0.476757, -0.475621, -0.474484, -0.473278, -0.472197, -0.470921,
-0.469896, -0.46855, -0.46758, -0.466165, -0.465249, -0.463766,
-0.462903, -0.461353, -0.460541, -0.458927, -0.458163, -0.456487,
-0.455769, -0.454033, -0.453359, -0.451567, -0.450931, -0.449087,
-0.448487, -0.446594, -0.446026, -0.444088, -0.443547, -0.44157,
-0.441051, -0.439038, -0.438536, -0.436493, -0.436003, -0.433935,
-0.433453, -0.431364, -0.430883, -0.42878, -0.428295, -0.426182,
-0.425689, -0.423572, -0.423063, -0.420948, -0.420419, -0.418311,
-0.417756, -0.415661, -0.415073, -0.412997, -0.412372, -0.410318,
-0.409651, -0.407626, -0.406911, -0.40492, -0.404153, -0.402199,
-0.401375, -0.399463, -0.398578, -0.396712, -0.395762, -0.393946,
-0.392928, -0.391164, -0.390074, -0.388367, -0.387202, -0.385553,
-0.384312, -0.382723, -0.381402, -0.379875, -0.378475, -0.377011,
-0.375529, -0.374129, -0.372566, -0.371229, -0.369584, -0.368311,
-0.366585, -0.365374, -0.363568, -0.362418, -0.360533, -0.359443,
-0.357481, -0.356448, -0.354412, -0.353433, -0.351326, -0.350397,
-0.348222, -0.347341, -0.345102, -0.344264, -0.341965, -0.341165,
-0.338811, -0.338045, -0.33564, -0.334903, -0.332453, -0.331738,
-0.329249, -0.328551, -0.326028, -0.325341, -0.32279, -0.322109,
-0.319536, -0.318853, -0.316265, -0.315574, -0.312977, -0.312272,
-0.309673, -0.308946, -0.306351, -0.305596, -0.303012, -0.302222,
-0.299655, -0.298825, -0.296281, -0.295404, -0.292889, -0.291958,
-0.289479, -0.288489, -0.286051, -0.284996, -0.282604, -0.281479,
-0.279138, -0.277938, -0.275653, -0.274373, -0.272148, -0.270785,
-0.268623, -0.267173, -0.265079, -0.263538, -0.261513, -0.259879,
-0.257926, -0.256197, -0.254318, -0.252492, -0.250688, -0.248763,
-0.247036, -0.245012, -0.24336, -0.241239, -0.239662, -0.237443,
-0.23594, -0.233624, -0.232194, -0.229784, -0.228423, -0.225921,
-0.224627, -0.222037, -0.220806, -0.218131, -0.21696, -0.214203,
-0.213087, -0.210253, -0.209187, -0.206283, -0.20526, -0.20229,
-0.201306, -0.198277, -0.197325, -0.194242, -0.193315, -0.190186,
-0.189277, -0.186109, -0.18521, -0.182011, -0.181114, -0.177891,
-0.176989, -0.17375, -0.172835, -0.169588, -0.168651, -0.165404,
-0.164438, -0.161198, -0.160194, -0.15697, -0.155921, -0.15272,
-0.151617, -0.148448, -0.147283, -0.144153, -0.142919, -0.139835,
-0.138525, -0.135493, -0.134101, -0.131128, -0.129646, -0.126739,
-0.125161, -0.122326, -0.120646, -0.117888, -0.116101, -0.113424,
-0.111526, -0.108935, -0.106922, -0.10442, -0.102288, -0.0998775,
-0.0976243, -0.0953081, -0.0929316, -0.0907109, -0.0882098, -0.0860854,
-0.0834592, -0.0814311, -0.0786799, -0.0767473, -0.0738721, -0.0720336,
-0.0690361, -0.0672894, -0.064172, -0.0625141, -0.05928, -0.0577071,
-0.0543603, -0.052868, -0.0494132, -0.0479962, -0.0444386, -0.0430911,
-0.0394369, -0.0381523, -0.0344081, -0.0331792, -0.0293523, -0.0281713,
-0.0242697, -0.0231283, -0.0191603, -0.0180496, -0.0140241, -0.0129349,
-0.00886121, -0.00778374, -0.00367157, -0.00259578, 0.00154487, 0.0026293,
0.00678817, 0.00789182, 0.0120584, 0.013192, 0.0173558, 0.0185302,
0.0226805, 0.0239065, 0.0280327, 0.0293211, 0.0334127, 0.0347742,
0.0388207, 0.0402658, 0.0442571, 0.045796, 0.0497223, 0.0513649,
0.0552166, 0.0569724, 0.0607404, 0.0626186, 0.0662943, 0.0683032,
0.0718788, 0.0740264, 0.0774943, 0.0797879, 0.0831415, 0.0855875,
0.0888209, 0.0914251, 0.0945332, 0.0973006, 0.100279, 0.103214,
0.106059, 0.109164, 0.111874, 0.115151, 0.117725, 0.121175,
0.123611, 0.127236, 0.129535, 0.133333, 0.135497, 0.139466,
0.141497, 0.145634, 0.147537, 0.151838, 0.153617, 0.158076,
0.159737, 0.16435, 0.1659, 0.170658, 0.172104, 0.177,
0.178352, 0.183375, 0.184643, 0.189785, 0.190979, 0.196228,
0.19736, 0.202704, 0.203787, 0.209214, 0.210261, 0.215756,
0.216781, 0.222332, 0.223349, 0.22894, 0.229965, 0.235581,
0.23663, 0.242255, 0.243344, 0.248962, 0.250107, 0.255703,
0.25692, 0.262476, 0.263783, 0.269283, 0.270696, 0.276124,
0.27766, 0.283, 0.284675, 0.289909, 0.29174, 0.296854,
0.298857, 0.303834, 0.306024, 0.31085, 0.313242, 0.317903,
0.320511, 0.324993, 0.32783, 0.332122, 0.3352, 0.339288,
0.342621, 0.346495, 0.350091, 0.353742, 0.357611, 0.36103,
0.36518, 0.36836, 0.372797, 0.375734, 0.380464, 0.383151,
0.388178, 0.390615, 0.395939, 0.398124, 0.403748, 0.405681,
0.411603, 0.413287, 0.419503, 0.420943, 0.427449, 0.428649,
0.435439, 0.436408, 0.443473, 0.444221, 0.45155, 0.452088,
0.45967, 0.460012, 0.467831, 0.467993, 0.476034, 0.476032,
0.484277, 0.484131, 0.49256, 0.492292, 0.500882, 0.500515,
0.509243, 0.508802, 0.517642, 0.517154, 0.526078, 0.525572,
0.53455, 0.534058, 0.543058, 0.542612, 0.551602, 0.551237,
0.56018, 0.559934, 0.568792, 0.568703, 0.577437, 0.577546,
0.586115, 0.586465, 0.594825, 0.595461, 0.603566, 0.604535,
0.612337, 0.61369, 0.621136, 0.622926, 0.629964, 0.632247,
0.638819, 0.641653, 0.647698, 0.651147, 0.656601, 0.660733,
0.665524, 0.670414, 0.674464, 0.680193, 0.683419, 0.690076,
0.692383, 0.700068, 0.701349, 0.710179, 0.710311, 0.720417,
0.719256, 0.730796, 0.72817, 0.741334, 0.737033, 0.752056,
0.745815, 0.762998, 0.754475, 0.774213, 0.762949, 0.785779,
0.771135, 0.797828, 0.778867, 0.810582, 0.785841, 0.824465,
0.791454, 0.840374, 0.794309, 0.860612, 0.790304, 0.893329,
0.760285, 1
};
static const float WAVE_EXPONENTIAL_030[DEFAULT_WAVELEN] = {
0.00405878, -0.745554, -1, -0.861354, -0.765038, -0.846182,
-0.903607, -0.845133, -0.805416, -0.851652, -0.881162, -0.842581,
-0.819684, -0.852952, -0.871151, -0.841754, -0.827018, -0.853398,
-0.865413, -0.841401, -0.831526, -0.853556, -0.861641, -0.841236,
-0.834608, -0.853584, -0.858936, -0.841163, -0.83687, -0.853541,
-0.856875, -0.841145, -0.838614, -0.853453, -0.855234, -0.841164,
-0.84001, -0.853334, -0.853884, -0.841209, -0.841159, -0.853189,
-0.852744, -0.841275, -0.842126, -0.853025, -0.851762, -0.841358,
-0.842953, -0.852843, -0.850903, -0.841456, -0.843669, -0.852647,
-0.850141, -0.841568, -0.844296, -0.852437, -0.84946, -0.84169,
-0.84485, -0.852215, -0.848845, -0.841823, -0.84534, -0.851982,
-0.848287, -0.841966, -0.845776, -0.85174, -0.84778, -0.842116,
-0.846164, -0.851488, -0.847315, -0.842273, -0.84651, -0.851229,
-0.84689, -0.842437, -0.846818, -0.850963, -0.8465, -0.842606,
-0.84709, -0.850691, -0.846143, -0.842779, -0.84733, -0.850413,
-0.845815, -0.842956, -0.847541, -0.850132, -0.845516, -0.843135,
-0.847723, -0.849847, -0.845242, -0.843316, -0.847878, -0.849559,
-0.844993, -0.843498, -0.848009, -0.84927, -0.844766, -0.84368,
-0.848115, -0.848979, -0.844562, -0.843861, -0.848199, -0.848689,
-0.844379, -0.84404, -0.848262, -0.848399, -0.844215, -0.844217,
-0.848303, -0.848111, -0.84407, -0.84439, -0.848325, -0.847825,
-0.843943, -0.84456, -0.848328, -0.847543, -0.843833, -0.844724,
-0.848313, -0.847264, -0.84374, -0.844884, -0.848281, -0.846989,
-0.843661, -0.845036, -0.848232, -0.84672, -0.843598, -0.845183,
-0.848168, -0.846456, -0.843547, -0.845321, -0.848089, -0.846198,
-0.84351, -0.845452, -0.847996, -0.845947, -0.843485, -0.845574,
-0.84789, -0.845704, -0.84347, -0.845686, -0.847772, -0.845468,
-0.843467, -0.84579, -0.847642, -0.845241, -0.843472, -0.845883,
-0.847502, -0.845022, -0.843487, -0.845966, -0.847352, -0.844812,
-0.843509, -0.846038, -0.847193, -0.844612, -0.843538, -0.846099,
-0.847025, -0.844421, -0.843573, -0.846149, -0.84685, -0.844239,
-0.843613, -0.846187, -0.846669, -0.844067, -0.843658, -0.846214,
-0.846482, -0.843906, -0.843707, -0.846229, -0.84629, -0.843754,
-0.843758, -0.846233, -0.846094, -0.843612, -0.843811, -0.846225,
-0.845894, -0.84348, -0.843866, -0.846205, -0.845692, -0.843357,
-0.84392, -0.846174, -0.845489, -0.843245, -0.843975, -0.846131,
-0.845284, -0.843142, -0.844028, -0.846077, -0.845078, -0.843048,
-0.844079, -0.846012, -0.844873, -0.842963, -0.844128, -0.845937,
-0.844669, -0.842887, -0.844174, -0.845851, -0.844467, -0.842819,
-0.844216, -0.845754, -0.844267, -0.842759, -0.844253, -0.845649,
-0.844069, -0.842706, -0.844286, -0.845533, -0.843875, -0.842661,
-0.844313, -0.845409, -0.843684, -0.842622, -0.844333, -0.845277,
-0.843498, -0.842589, -0.844348, -0.845137, -0.843316, -0.842562,
-0.844355, -0.844989, -0.84314, -0.84254, -0.844356, -0.844834,
-0.842968, -0.842522, -0.844348, -0.844673, -0.842802, -0.842509,
-0.844333, -0.844506, -0.842642, -0.842498, -0.844309, -0.844334,
-0.842489, -0.842491, -0.844277, -0.844158, -0.842341, -0.842485,
-0.844237, -0.843977, -0.8422, -0.842481, -0.844188, -0.843793,
-0.842065, -0.842478, -0.84413, -0.843605, -0.841936, -0.842475,
-0.844064, -0.843416, -0.841814, -0.842472, -0.843988, -0.843224,
-0.841698, -0.842468, -0.843904, -0.843032, -0.841589, -0.842463,
-0.843812, -0.842838, -0.841486, -0.842456, -0.843711, -0.842645,
-0.841388, -0.842446, -0.843601, -0.842452, -0.841297, -0.842433,
-0.843483, -0.842259, -0.84121, -0.842416, -0.843358, -0.842068,
-0.84113, -0.842396, -0.843225, -0.841879, -0.841054, -0.842371,
-0.843084, -0.841691, -0.840982, -0.84234, -0.842936, -0.841506,
-0.840915, -0.842305, -0.842782, -0.841324, -0.840852, -0.842264,
-0.842621, -0.841146, -0.840792, -0.842217, -0.842455, -0.84097,
-0.840735, -0.842163, -0.842282, -0.840799, -0.840681, -0.842103,
-0.842105, -0.840631, -0.840628, -0.842036, -0.841923, -0.840467,
-0.840578, -0.841962, -0.841737, -0.840308, -0.840528, -0.84188,
-0.841546, -0.840153, -0.84048, -0.841792, -0.841353, -0.840003,
-0.840431, -0.841695, -0.841156, -0.839857, -0.840382, -0.841592,
-0.840957, -0.839715, -0.840332, -0.84148, -0.840756, -0.839578,
-0.840281, -0.841361, -0.840554, -0.839446, -0.840229, -0.841235,
-0.84035, -0.839318, -0.840174, -0.841101, -0.840146, -0.839194,
-0.840116, -0.84096, -0.839941, -0.839074, -0.840055, -0.840812,
-0.839736, -0.838957, -0.839991, -0.840656, -0.839532, -0.838845,
-0.839922, -0.840494, -0.839329, -0.838736, -0.83985, -0.840326,
-0.839127, -0.83863, -0.839772, -0.84015, -0.838926, -0.838526,
-0.83969, -0.839969, -0.838727, -0.838425, -0.839602, -0.839782,
-0.83853, -0.838327, -0.839508, -0.83959, -0.838335, -0.83823,
-0.839409, -0.839392, -0.838143, -0.838134, -0.839303, -0.83919,
-0.837954, -0.83804, -0.839191, -0.838983, -0.837767, -0.837946,
-0.839072, -0.838772, -0.837584, -0.837852, -0.838946, -0.838557,
-0.837403, -0.837758, -0.838814, -0.838339, -0.837226, -0.837663,
-0.838674, -0.838118, -0.837051, -0.837567, -0.838528, -0.837894,
-0.83688, -0.83747, -0.838374, -0.837668, -0.836712, -0.837371,
-0.838214, -0.83744, -0.836547, -0.83727, -0.838046, -0.837211,
-0.836385, -0.837165, -0.837871, -0.83698, -0.836226, -0.837058,
-0.83769, -0.836749, -0.836069, -0.836947, -0.837502, -0.836517,
-0.835915, -0.836832, -0.837307, -0.836285, -0.835763, -0.836713,
-0.837105, -0.836053, -0.835614, -0.83659, -0.836898, -0.835821,
-0.835466, -0.836461, -0.836684, -0.835591, -0.835319, -0.836327,
-0.836464, -0.835361, -0.835174, -0.836188, -0.836239, -0.835132,
-0.83503, -0.836042, -0.836008, -0.834905, -0.834886, -0.835891,
-0.835773, -0.834679, -0.834743, -0.835734, -0.835532, -0.834454,
-0.8346, -0.83557, -0.835287, -0.834232, -0.834456, -0.835399,
-0.835038, -0.834011, -0.834312, -0.835222, -0.834785, -0.833793,
-0.834166, -0.835038, -0.834528, -0.833576, -0.834019, -0.834847,
-0.834268, -0.833361, -0.83387, -0.834649, -0.834005, -0.833148,
-0.833718, -0.834444, -0.83374, -0.832937, -0.833564, -0.834232,
-0.833472, -0.832728, -0.833407, -0.834013, -0.833203, -0.832521,
-0.833246, -0.833787, -0.832932, -0.832315, -0.833081, -0.833554,
-0.832659, -0.832111, -0.832913, -0.833314, -0.832385, -0.831908,
-0.83274, -0.833068, -0.832111, -0.831706, -0.832562, -0.832815,
-0.831835, -0.831505, -0.832378, -0.832556, -0.83156, -0.831304,
-0.83219, -0.832291, -0.831284, -0.831104, -0.831996, -0.83202,
-0.831009, -0.830904, -0.831795, -0.831743, -0.830734, -0.830704,
-0.831589, -0.83146, -0.830459, -0.830503, -0.831376, -0.831172,
-0.830184, -0.830302, -0.831157, -0.830879, -0.829911, -0.830099,
-0.83093, -0.830582, -0.829638, -0.829895, -0.830697, -0.830279,
-0.829366, -0.829689, -0.830457, -0.829973, -0.829094, -0.82948,
-0.830209, -0.829663, -0.828824, -0.829269, -0.829955, -0.829348,
-0.828554, -0.829056, -0.829693, -0.829031, -0.828285, -0.828839,
-0.829423, -0.82871, -0.828017, -0.828618, -0.829147, -0.828387,
-0.82775, -0.828393, -0.828863, -0.828061, -0.827483, -0.828164,
-0.828572, -0.827733, -0.827216, -0.82793, -0.828273, -0.827402,
-0.82695, -0.827692, -0.827968, -0.82707, -0.826683, -0.827448,
-0.827655, -0.826736, -0.826417, -0.827198, -0.827336, -0.826401,
-0.82615, -0.826942, -0.82701, -0.826065, -0.825882, -0.82668,
-0.826677, -0.825727, -0.825614, -0.826412, -0.826338, -0.825389,
-0.825344, -0.826137, -0.825993, -0.82505, -0.825073, -0.825855,
-0.825642, -0.82471, -0.824801, -0.825567, -0.825285, -0.82437,
-0.824526, -0.82527, -0.824922, -0.82403, -0.824249, -0.824967,
-0.824554, -0.823689, -0.823969, -0.824655, -0.824181, -0.823347,
-0.823686, -0.824336, -0.823804, -0.823006, -0.823399, -0.824009,
-0.823421, -0.822664, -0.823109, -0.823675, -0.823034, -0.822321,
-0.822815, -0.823332, -0.822643, -0.821978, -0.822516, -0.822982,
-0.822249, -0.821635, -0.822212, -0.822623, -0.82185, -0.821291,
-0.821904, -0.822257, -0.821448, -0.820946, -0.82159, -0.821882,
-0.821043, -0.8206, -0.82127, -0.8215, -0.820635, -0.820253,
-0.820944, -0.82111, -0.820225, -0.819905, -0.820611, -0.820712,
-0.819811, -0.819555, -0.820272, -0.820307, -0.819396, -0.819203,
-0.819926, -0.819894, -0.818978, -0.81885, -0.819573, -0.819474,
-0.818558, -0.818494, -0.819212, -0.819047, -0.818135, -0.818135,
-0.818844, -0.818613, -0.817712, -0.817774, -0.818467, -0.818172,
-0.817286, -0.817409, -0.818083, -0.817725, -0.816858, -0.817041,
-0.81769, -0.817271, -0.816429, -0.816669, -0.817288, -0.816811,
-0.815998, -0.816293, -0.816879, -0.816345, -0.815566, -0.815913,
-0.81646, -0.815873, -0.815131, -0.815528, -0.816032, -0.815396,
-0.814695, -0.815137, -0.815596, -0.814913, -0.814257, -0.814741,
-0.815151, -0.814425, -0.813818, -0.814339, -0.814697, -0.813933,
-0.813376, -0.813931, -0.814234, -0.813435, -0.812932, -0.813516,
-0.813762, -0.812933, -0.812486, -0.813095, -0.81328, -0.812427,
-0.812037, -0.812666, -0.812791, -0.811917, -0.811586, -0.81223,
-0.812292, -0.811403, -0.811131, -0.811786, -0.811784, -0.810884,
-0.810674, -0.811333, -0.811268, -0.810363, -0.810213, -0.810873,
-0.810744, -0.809837, -0.809749, -0.810404, -0.810211, -0.809308,
-0.80928, -0.809926, -0.80967, -0.808776, -0.808807, -0.809438,
-0.80912, -0.80824, -0.80833, -0.808942, -0.808563, -0.807702,
-0.807848, -0.808436, -0.807998, -0.807159, -0.807361, -0.80792,
-0.807426, -0.806614, -0.806868, -0.807395, -0.806846, -0.806066,
-0.806369, -0.806859, -0.806258, -0.805514, -0.805864, -0.806314,
-0.805664, -0.804959, -0.805352, -0.805758, -0.805063, -0.8044,
-0.804834, -0.805192, -0.804455, -0.803838, -0.804308, -0.804615,
-0.803841, -0.803272, -0.803774, -0.804028, -0.803221, -0.802703,
-0.803233, -0.803431, -0.802594, -0.802129, -0.802683, -0.802824,
-0.801961, -0.801551, -0.802125, -0.802206, -0.801323, -0.800969,
-0.801557, -0.801577, -0.800679, -0.800383, -0.80098, -0.800939,
-0.800029, -0.799791, -0.800394, -0.80029, -0.799374, -0.799195,
-0.799798, -0.799631, -0.798713, -0.798593, -0.799191, -0.798962,
-0.798048, -0.797986, -0.798574, -0.798284, -0.797377, -0.797372,
-0.797947, -0.797595, -0.796701, -0.796753, -0.797308, -0.796897,
-0.79602, -0.796126, -0.796658, -0.796189, -0.795333, -0.795493,
-0.795997, -0.795472, -0.794642, -0.794852, -0.795324, -0.794745,
-0.793945, -0.794204, -0.79464, -0.79401, -0.793244, -0.793548,
-0.793944, -0.793265, -0.792537, -0.792883, -0.793236, -0.792512,
-0.791824, -0.792209, -0.792515, -0.79175, -0.791106, -0.791527,
-0.791783, -0.79098, -0.790383, -0.790835, -0.791038, -0.790202,
-0.789654, -0.790133, -0.790281, -0.789415, -0.788919, -0.78942,
-0.789512, -0.78862, -0.788177, -0.788698, -0.78873, -0.787818,
-0.787429, -0.787964, -0.787936, -0.787007, -0.786675, -0.787219,
-0.78713, -0.786189, -0.785914, -0.786462, -0.786311, -0.785363,
-0.785145, -0.785694, -0.78548, -0.78453, -0.784369, -0.784913,
-0.784638, -0.783689, -0.783585, -0.784119, -0.783782, -0.782841,
-0.782794, -0.783313, -0.782915, -0.781986, -0.781993, -0.782494,
-0.782037, -0.781123, -0.781184, -0.781661, -0.781146, -0.780253,
-0.780366, -0.780815, -0.780243, -0.779375, -0.779538, -0.779955,
-0.779329, -0.77849, -0.7787, -0.779081, -0.778404, -0.777597,
-0.777852, -0.778193, -0.777467, -0.776697, -0.776993, -0.77729,
-0.776519, -0.775788, -0.776123, -0.776373, -0.775561, -0.774872,
-0.775241, -0.775442, -0.774591, -0.773948, -0.774348, -0.774496,
-0.77361, -0.773016, -0.773442, -0.773535, -0.772618, -0.772075,
-0.772524, -0.772559, -0.771616, -0.771125, -0.771592, -0.771568,
-0.770604, -0.770167, -0.770647, -0.770563, -0.769581, -0.769199,
-0.769688, -0.769542, -0.768548, -0.768221, -0.768715, -0.768506,
-0.767504, -0.767234, -0.767728, -0.767456, -0.76645, -0.766237,
-0.766725, -0.766391, -0.765386, -0.765229, -0.765707, -0.76531,
-0.764312, -0.764211, -0.764674, -0.764215, -0.763227, -0.763181,
-0.763625, -0.763105, -0.762132, -0.762139, -0.762559, -0.761981,
-0.761028, -0.761086, -0.761477, -0.760842, -0.759912, -0.76002,
-0.760379, -0.759688, -0.758787, -0.758941, -0.759263, -0.75852,
-0.75765, -0.757849, -0.758131, -0.757338, -0.756503, -0.756744,
-0.756981, -0.756141, -0.755346, -0.755624, -0.755813, -0.75493,
-0.754177, -0.75449, -0.754628, -0.753705, -0.752997, -0.753341,
-0.753425, -0.752466, -0.751806, -0.752176, -0.752203, -0.751213,
-0.750603, -0.750995, -0.750964, -0.749946, -0.749389, -0.749798,
-0.749707, -0.748665, -0.748162, -0.748585, -0.748431, -0.747371,
-0.746923, -0.747354, -0.747137, -0.746063, -0.74567, -0.746106,
-0.745825, -0.744741, -0.744405, -0.744839, -0.744494, -0.743406,
-0.743126, -0.743555, -0.743144, -0.742057, -0.741834, -0.742251,
-0.741777, -0.740694, -0.740527, -0.740929, -0.74039, -0.739317,
-0.739205, -0.739587, -0.738986, -0.737927, -0.737868, -0.738225,
-0.737563, -0.736523, -0.736516, -0.736843, -0.736121, -0.735105,
-0.735147, -0.735441, -0.734662, -0.733672, -0.733762, -0.734017,
-0.733184, -0.732226, -0.73236, -0.732573, -0.731688, -0.730765,
-0.730941, -0.731108, -0.730173, -0.729289, -0.729503, -0.729621,
-0.728641, -0.727799, -0.728048, -0.728112, -0.72709, -0.726294,
-0.726573, -0.726581, -0.725521, -0.724773, -0.725079, -0.725028,
-0.723935, -0.723237, -0.723565, -0.723453, -0.72233, -0.721685,
-0.72203, -0.721856, -0.720708, -0.720116, -0.720475, -0.720235,
-0.719067, -0.718531, -0.718898, -0.718592, -0.717408, -0.716929,
-0.717299, -0.716927, -0.715732, -0.71531, -0.715678, -0.715238,
-0.714037, -0.713673, -0.714034, -0.713527, -0.712325, -0.712017,
-0.712367, -0.711792, -0.710594, -0.710343, -0.710676, -0.710035,
-0.708845, -0.70865, -0.708961, -0.708254, -0.707078, -0.706937,
-0.707222, -0.70645, -0.705292, -0.705204, -0.705458, -0.704623,
-0.703488, -0.703451, -0.703668, -0.702773, -0.701665, -0.701676,
-0.701853, -0.7009, -0.699823, -0.699879, -0.700012, -0.699004,
-0.697962, -0.69806, -0.698144, -0.697084, -0.696081, -0.696219,
-0.69625, -0.695141, -0.694181, -0.694354, -0.694329, -0.693175,
-0.692261, -0.692465, -0.692381, -0.691186, -0.69032, -0.690551,
-0.690405, -0.689174, -0.688359, -0.688612, -0.688402, -0.687138,
-0.686377, -0.686648, -0.686371, -0.685079, -0.684374, -0.684657,
-0.684311, -0.682997, -0.682348, -0.68264, -0.682224, -0.680892,
-0.680301, -0.680595, -0.680108, -0.678763, -0.678231, -0.678522,
-0.677963, -0.67661, -0.676137, -0.676421, -0.67579, -0.674434,
-0.67402, -0.67429, -0.673588, -0.672235, -0.671879, -0.672131,
-0.671356, -0.670011, -0.669712, -0.669941, -0.669096, -0.667763,
-0.667521, -0.667721, -0.666807, -0.665491, -0.665303, -0.665469,
-0.664488, -0.663195, -0.663059, -0.663187, -0.66214, -0.660874,
-0.660788, -0.660872, -0.659763, -0.658528, -0.658489, -0.658525,
-0.657356, -0.656157, -0.656162, -0.656145, -0.65492, -0.65376,
-0.653805, -0.653732, -0.652454, -0.651338, -0.651419, -0.651286,
-0.649958, -0.648889, -0.649002, -0.648806, -0.647433, -0.646414,
-0.646555, -0.646291, -0.644878, -0.643912, -0.644075, -0.643742,
-0.642293, -0.641382, -0.641563, -0.641158, -0.639678, -0.638824,
-0.639018, -0.638539, -0.637033, -0.636238, -0.63644, -0.635884,
-0.634357, -0.633623, -0.633827, -0.633194, -0.631651, -0.630978,
-0.631179, -0.630468, -0.628915, -0.628304, -0.628495, -0.627706,
-0.626148, -0.625598, -0.625775, -0.624908, -0.623351, -0.622862,
-0.623018, -0.622073, -0.620522, -0.620093, -0.620223, -0.619201,
-0.617662, -0.617292, -0.61739, -0.616293, -0.61477, -0.614457,
-0.614518, -0.613347, -0.611846, -0.611589, -0.611607, -0.610364,
-0.608891, -0.608685, -0.608656, -0.607344, -0.605902, -0.605747,
-0.605665, -0.604287, -0.602881, -0.602771, -0.602632, -0.601191,
-0.599827, -0.599759, -0.599558, -0.598058, -0.596739, -0.596709,
-0.596442, -0.594887, -0.593617, -0.593621, -0.593284, -0.591679,
-0.59046, -0.590493, -0.590083, -0.588431, -0.587268, -0.587325,
-0.586838, -0.585146, -0.584041, -0.584116, -0.58355, -0.581821,
-0.580777, -0.580865, -0.580217, -0.578459, -0.577477, -0.577572,
-0.57684, -0.575057, -0.574139, -0.574235, -0.573418, -0.571616,
-0.570762, -0.570854, -0.569951, -0.568135, -0.567348, -0.567429,
-0.566438, -0.564615, -0.563893, -0.563957, -0.56288, -0.561055,
-0.560398, -0.560439, -0.559275, -0.557455, -0.556862, -0.556874,
-0.555624, -0.553814, -0.553284, -0.553261, -0.551926, -0.550132,
-0.549664, -0.549599, -0.548181, -0.546409, -0.546, -0.545887,
-0.544389, -0.542644, -0.542292, -0.542125, -0.54055, -0.538837,
-0.538538, -0.538313, -0.536662, -0.534988, -0.534738, -0.534449,
-0.532727, -0.531095, -0.530891, -0.530533, -0.528744, -0.527159,
-0.526996, -0.526564, -0.524712, -0.523179, -0.523052, -0.522541,
-0.520631, -0.519154, -0.519058, -0.518465, -0.516501, -0.515084,
-0.515013, -0.514334, -0.512322, -0.510967, -0.510916, -0.510148,
-0.508094, -0.506804, -0.506766, -0.505906, -0.503816, -0.502593,
-0.502563, -0.501608, -0.499488, -0.498334, -0.498305, -0.497253,
-0.495109, -0.494026, -0.493991, -0.492842, -0.490679, -0.489668,
-0.48962, -0.488372, -0.486199, -0.485259, -0.485192, -0.483845,
-0.481667, -0.480799, -0.480705, -0.479259, -0.477083, -0.476286,
-0.476158, -0.474614, -0.472447, -0.471719, -0.471551, -0.469909,
-0.467758, -0.467098, -0.466882, -0.465145, -0.463016, -0.462421,
-0.462151, -0.460321, -0.45822, -0.457687, -0.457357, -0.455437,
-0.45337, -0.452896, -0.452498, -0.450491, -0.448464, -0.448046,
-0.447575, -0.445485, -0.443504, -0.443135, -0.442586, -0.440417,
-0.438487, -0.438164, -0.43753, -0.435287, -0.433413, -0.433131,
-0.432407, -0.430094, -0.428281, -0.428034, -0.427215, -0.424839,
-0.423091, -0.422873, -0.421955, -0.419521, -0.417842, -0.417646,
-0.416624, -0.41414, -0.412533, -0.412352, -0.411224, -0.408694,
-0.407162, -0.406989, -0.405752, -0.403184, -0.40173, -0.401558,
-0.400208, -0.39761, -0.396235, -0.396056, -0.394592, -0.39197,
-0.390676, -0.390482, -0.388903, -0.386265, -0.385052, -0.384835,
-0.38314, -0.380494, -0.379361, -0.379114, -0.377303, -0.374656,
-0.373604, -0.373318, -0.371391, -0.36875, -0.367778, -0.367445,
-0.365403, -0.362777, -0.361882, -0.361495, -0.359339, -0.356736,
-0.355915, -0.355465, -0.353199, -0.350625, -0.349877, -0.349356,
-0.346982, -0.344444, -0.343764, -0.343165, -0.340687, -0.338193,
-0.337577, -0.336893, -0.334314, -0.33187, -0.331314, -0.330536,
-0.327862, -0.325476, -0.324973, -0.324096, -0.321331, -0.319008,
-0.318553, -0.31757, -0.31472, -0.312466, -0.312053, -0.310958,
-0.308029, -0.30585, -0.305471, -0.304258, -0.301258, -0.299157,
-0.298805, -0.29747, -0.294405, -0.292388, -0.292055, -0.290592,
-0.28747, -0.28554, -0.285218, -0.283624, -0.280453, -0.278613,
-0.278294, -0.276565, -0.273353, -0.271606, -0.27128, -0.269413,
-0.266169, -0.264517, -0.264175, -0.262169, -0.258901, -0.257345,
-0.256978, -0.25483, -0.251548, -0.250089, -0.249687, -0.247397,
-0.24411, -0.242747, -0.2423, -0.239869, -0.236585, -0.235319,
-0.234816, -0.232244, -0.228973, -0.227801, -0.227234, -0.224522,
-0.221274, -0.220193, -0.219552, -0.216702, -0.213486, -0.212494,
-0.211769, -0.208784, -0.205609, -0.204701, -0.203882, -0.200766,
-0.197641, -0.196814, -0.195892, -0.192649, -0.189582, -0.188829,
-0.187795, -0.18443, -0.18143, -0.180747, -0.179591, -0.176111,
-0.173185, -0.172564, -0.171279, -0.167689, -0.164846, -0.164279,
-0.162857, -0.159165, -0.156411, -0.155891, -0.154323, -0.150536,
-0.147879, -0.147397, -0.145677, -0.141804, -0.139249, -0.138795,
-0.136917, -0.132967, -0.13052, -0.130084, -0.128041, -0.124024,
-0.12169, -0.121262, -0.119049, -0.114975, -0.112757, -0.112326,
-0.109939, -0.105818, -0.103721, -0.103275, -0.100711, -0.0965539,
-0.0945798, -0.0941076, -0.0913624, -0.0871808, -0.0853314, -0.0848207,
-0.0818926, -0.077698, -0.0759744, -0.0754128, -0.0723006, -0.0681048,
-0.066507, -0.0658818, -0.0625851, -0.0584003, -0.0569274, -0.0562257,
-0.0527452, -0.0485835, -0.0472338, -0.0464427, -0.0427798, -0.0386534,
-0.0374243, -0.0365307, -0.0326878, -0.0286091, -0.0274969, -0.0264878,
-0.0224683, -0.0184494, -0.0174495, -0.0163121, -0.0121203, -0.00817337,
-0.00728006, -0.00600148, -0.00164286, 0.00222027, 0.00301355, 0.00444584,
0.00896505, 0.0127327, 0.0134335, 0.0150318, 0.0197043, 0.0233652,
0.0239821, 0.0257583, 0.0305759, 0.0341191, 0.0346615, 0.0366272,
0.0415808, 0.0449957, 0.0454742, 0.0476404, 0.0527198, 0.0559966,
0.0564225, 0.0587997, 0.0639938, 0.0671231, 0.0675088, 0.0701068,
0.0754039, 0.078377, 0.0787356, 0.0815637, 0.0869509, 0.0897598,
0.0901054, 0.0931719, 0.0986357, 0.101273, 0.101621, 0.104933,
0.110459, 0.112919, 0.113284, 0.11685, 0.122423, 0.124699,
0.125098, 0.128923, 0.134527, 0.136616, 0.137065, 0.141154,
0.146772, 0.14867, 0.149189, 0.153544, 0.15916, 0.160865,
0.161471, 0.166097, 0.171692, 0.173202, 0.173914, 0.178812,
0.184369, 0.185683, 0.186521, 0.191692, 0.197191, 0.198312,
0.199295, 0.204738, 0.210161, 0.211089, 0.212239, 0.217951,
0.223278, 0.224018, 0.225355, 0.231334, 0.236544, 0.237102,
0.238646, 0.244887, 0.24996, 0.250341, 0.252115, 0.258612,
0.263528, 0.26374, 0.265765, 0.272511, 0.277249, 0.277301,
0.279599, 0.286584, 0.291124, 0.291026, 0.293619, 0.300834,
0.305153, 0.304918, 0.307829, 0.315261, 0.31934, 0.318981,
0.322231, 0.329868, 0.333684, 0.333217, 0.336829, 0.344655,
0.348187, 0.347628, 0.351626, 0.359625, 0.36285, 0.362219,
0.366624, 0.374777, 0.377675, 0.376991, 0.381828, 0.390115,
0.392662, 0.391949, 0.39724, 0.405639, 0.407814, 0.407094,
0.412864, 0.421351, 0.42313, 0.422431, 0.428704, 0.437252,
0.438612, 0.437963, 0.444763, 0.453343, 0.454261, 0.453692,
0.461046, 0.469627, 0.470076, 0.469622, 0.477557, 0.486105,
0.486059, 0.485757, 0.494301, 0.502778, 0.502209, 0.502099,
0.511284, 0.519649, 0.518525, 0.518653, 0.528512, 0.536718,
0.535005, 0.535421, 0.545991, 0.553987, 0.551647, 0.552407,
0.563731, 0.571458, 0.568447, 0.569614, 0.581741, 0.589132,
0.585398, 0.587047, 0.600034, 0.607011, 0.602493, 0.604709,
0.618626, 0.625096, 0.619718, 0.622604, 0.637537, 0.643389,
0.637055, 0.640737, 0.656795, 0.66189, 0.654478, 0.659113,
0.676438, 0.680599, 0.671947, 0.677738, 0.69652, 0.699514,
0.689399, 0.696621, 0.717126, 0.718632, 0.706737, 0.715772,
0.738387, 0.737943, 0.723794, 0.735214, 0.760531, 0.757424,
0.740269, 0.754985, 0.783984, 0.777022, 0.75556, 0.77518,
0.809648, 0.796585, 0.768268, 0.796083, 0.839837, 0.815562,
0.774281, 0.818927, 0.882729, 0.83068, 0.754388, 0.855566,
1, 0.751207
};
static const float WAVE_EXPONENTIAL_042[DEFAULT_WAVELEN] = {
0.00813208, -0.409349, -0.744551, -0.943682, -1, -0.951392,
-0.86041, -0.786628, -0.763985, -0.792441, -0.845874, -0.89041,
-0.903122, -0.882064, -0.84397, -0.812519, -0.804545, -0.821699,
-0.851377, -0.875336, -0.880488, -0.865716, -0.841336, -0.822203,
-0.818879, -0.831984, -0.852654, -0.868354, -0.870344, -0.858424,
-0.840455, -0.827274, -0.826244, -0.837212, -0.853058, -0.864244,
-0.864492, -0.854247, -0.840058, -0.830431, -0.830768, -0.840375,
-0.853163, -0.861469, -0.860615, -0.851506, -0.839855, -0.832615,
-0.833856, -0.842491, -0.85313, -0.859417, -0.857809, -0.849548,
-0.839747, -0.83424, -0.836116, -0.844, -0.853019, -0.8578,
-0.855651, -0.848066, -0.839697, -0.835514, -0.837853, -0.84512,
-0.852858, -0.856463, -0.853916, -0.846897, -0.839685, -0.836553,
-0.839236, -0.845976, -0.85266, -0.855318, -0.852473, -0.845947,
-0.839701, -0.837427, -0.840367, -0.846639, -0.852432, -0.854309,
-0.851241, -0.845159, -0.83974, -0.838179, -0.84131, -0.847158,
-0.85218, -0.8534, -0.850168, -0.844494, -0.839796, -0.838839,
-0.842108, -0.847563, -0.851906, -0.852567, -0.849219, -0.843926,
-0.839867, -0.839427, -0.842791, -0.847875, -0.851612, -0.851794,
-0.848369, -0.843436, -0.839951, -0.839957, -0.843379, -0.848111,
-0.851301, -0.851068, -0.847601, -0.843012, -0.840047, -0.840437,
-0.843887, -0.848281, -0.850975, -0.850382, -0.8469, -0.842643,
-0.840152, -0.840877, -0.844327, -0.848394, -0.850634, -0.849729,
-0.846258, -0.842321, -0.840265, -0.84128, -0.844707, -0.848457,
-0.85028, -0.849104, -0.845667, -0.842041, -0.840385, -0.841651,
-0.845033, -0.848476, -0.849913, -0.848505, -0.84512, -0.841797,
-0.84051, -0.841992, -0.845312, -0.848454, -0.849536, -0.847928,
-0.844614, -0.841586, -0.84064, -0.842305, -0.845545, -0.848396,
-0.849149, -0.847371, -0.844144, -0.841404, -0.840772, -0.842592,
-0.845738, -0.848304, -0.848754, -0.846833, -0.843707, -0.841247,
-0.840906, -0.842855, -0.845892, -0.848181, -0.848351, -0.846314,
-0.843301, -0.841114, -0.841041, -0.843093, -0.84601, -0.848029,
-0.847941, -0.845811, -0.842923, -0.841001, -0.841175, -0.843307,
-0.846094, -0.847851, -0.847527, -0.845326, -0.842572, -0.840908,
-0.841306, -0.843498, -0.846145, -0.847647, -0.847107, -0.844856,
-0.842246, -0.840831, -0.841435, -0.843666, -0.846165, -0.847421,
-0.846685, -0.844403, -0.841943, -0.840769, -0.841559, -0.843811,
-0.846155, -0.847174, -0.84626, -0.843965, -0.841662, -0.84072,
-0.841677, -0.843934, -0.846116, -0.846907, -0.845833, -0.843542,
-0.841402, -0.840682, -0.841789, -0.844033, -0.846049, -0.846622,
-0.845407, -0.843134, -0.841161, -0.840654, -0.841893, -0.844109,
-0.845956, -0.846319, -0.84498, -0.842742, -0.840938, -0.840634,
-0.841988, -0.844162, -0.845838, -0.846002, -0.844555, -0.842364,
-0.840733, -0.840621, -0.842072, -0.844193, -0.845694, -0.84567,
-0.844133, -0.842001, -0.840542, -0.840613, -0.842146, -0.8442,
-0.845527, -0.845325, -0.843713, -0.841652, -0.840367, -0.840609,
-0.842208, -0.844185, -0.845338, -0.844969, -0.843297, -0.841317,
-0.840205, -0.840606, -0.842257, -0.844146, -0.845127, -0.844603,
-0.842885, -0.840996, -0.840055, -0.840605, -0.842293, -0.844085,
-0.844894, -0.844227, -0.842478, -0.840688, -0.839916, -0.840603,
-0.842313, -0.844002, -0.844643, -0.843843, -0.842077, -0.840394,
-0.839787, -0.840598, -0.842318, -0.843896, -0.844372, -0.843453,
-0.841682, -0.840112, -0.839667, -0.840591, -0.842308, -0.843768,
-0.844083, -0.843056, -0.841294, -0.839842, -0.839554, -0.840579,
-0.84228, -0.843618, -0.843778, -0.842654, -0.840912, -0.839584,
-0.839447, -0.840561, -0.842235, -0.843447, -0.843457, -0.842249,
-0.840538, -0.839337, -0.839345, -0.840536, -0.842172, -0.843254,
-0.84312, -0.841841, -0.840172, -0.8391, -0.839247, -0.840502,
-0.84209, -0.843041, -0.84277, -0.84143, -0.839813, -0.838872,
-0.839151, -0.84046, -0.84199, -0.842807, -0.842407, -0.841018,
-0.839462, -0.838654, -0.839057, -0.840407, -0.841871, -0.842554,
-0.842032, -0.840606, -0.839119, -0.838443, -0.838963, -0.840342,
-0.841732, -0.842281, -0.841645, -0.840194, -0.838783, -0.83824,
-0.838867, -0.840266, -0.841574, -0.841989, -0.841249, -0.839783,
-0.838456, -0.838043, -0.838769, -0.840175, -0.841395, -0.84168,
-0.840843, -0.839373, -0.838135, -0.837851, -0.838668, -0.840071,
-0.841197, -0.841353, -0.840429, -0.838966, -0.837823, -0.837664,
-0.838561, -0.839952, -0.840979, -0.841009, -0.840008, -0.838561,
-0.837517, -0.83748, -0.838449, -0.839817, -0.840741, -0.840649,
-0.83958, -0.838158, -0.837217, -0.837299, -0.838329, -0.839665,
-0.840483, -0.840274, -0.839146, -0.837759, -0.836924, -0.837119,
-0.838201, -0.839497, -0.840206, -0.839884, -0.838708, -0.837363,
-0.836637, -0.83694, -0.838064, -0.839311, -0.839909, -0.839481,
-0.838265, -0.836971, -0.836354, -0.836759, -0.837916, -0.839107,
-0.839593, -0.839064, -0.837818, -0.836583, -0.836076, -0.836577,
-0.837757, -0.838884, -0.839258, -0.838635, -0.837369, -0.836198,
-0.835802, -0.836391, -0.837586, -0.838642, -0.838904, -0.838194,
-0.836917, -0.835817, -0.835531, -0.836202, -0.837401, -0.838381,
-0.838533, -0.837742, -0.836463, -0.83544, -0.835262, -0.836007,
-0.837201, -0.838101, -0.838143, -0.83728, -0.836008, -0.835066,
-0.834994, -0.835806, -0.836987, -0.837801, -0.837737, -0.836809,
-0.835552, -0.834696, -0.834727, -0.835597, -0.836757, -0.837482,
-0.837313, -0.836329, -0.835095, -0.834328, -0.834459, -0.83538,
-0.83651, -0.837142, -0.836873, -0.83584, -0.834638, -0.833963,
-0.83419, -0.835153, -0.836246, -0.836783, -0.836418, -0.835344,
-0.834181, -0.8336, -0.833918, -0.834916, -0.835963, -0.836404,
-0.835947, -0.834842, -0.833725, -0.833238, -0.833643, -0.834666,
-0.835663, -0.836006, -0.835462, -0.834333, -0.833268, -0.832877,
-0.833364, -0.834404, -0.835343, -0.835587, -0.834963, -0.833818,
-0.832811, -0.832517, -0.833079, -0.834129, -0.835004, -0.83515,
-0.834451, -0.833298, -0.832355, -0.832156, -0.832788, -0.833838,
-0.834645, -0.834693, -0.833925, -0.832774, -0.831899, -0.831794,
-0.832489, -0.833532, -0.834266, -0.834218, -0.833388, -0.832244,
-0.831442, -0.83143, -0.832181, -0.83321, -0.833866, -0.833724,
-0.832839, -0.831711, -0.830986, -0.831064, -0.831864, -0.83287,
-0.833445, -0.833212, -0.832278, -0.831174, -0.830528, -0.830694,
-0.831536, -0.832513, -0.833004, -0.832682, -0.831707, -0.830633,
-0.830069, -0.830319, -0.831195, -0.832136, -0.832541, -0.832134,
-0.831126, -0.830089, -0.829609, -0.829939, -0.830842, -0.83174,
-0.832058, -0.83157, -0.830536, -0.829541, -0.829147, -0.829552,
-0.830475, -0.831325, -0.831553, -0.830989, -0.829936, -0.82899,
-0.828682, -0.829158, -0.830094, -0.830888, -0.831028, -0.830392,
-0.829327, -0.828436, -0.828214, -0.828756, -0.829696, -0.83043,
-0.830481, -0.829779, -0.82871, -0.827878, -0.827742, -0.828343,
-0.829281, -0.829951, -0.829913, -0.829152, -0.828086, -0.827316,
-0.827265, -0.827921, -0.828848, -0.82945, -0.829325, -0.828509,
-0.827453, -0.826751, -0.826782, -0.827486, -0.828397, -0.828926,
-0.828716, -0.827852, -0.826813, -0.826181, -0.826293, -0.827039,
-0.827926, -0.82838, -0.828086, -0.82718, -0.826165, -0.825607,
-0.825797, -0.826578, -0.827435, -0.82781, -0.827437, -0.826496,
-0.82551, -0.825027, -0.825293, -0.826102, -0.826922, -0.827218,
-0.826767, -0.825798, -0.824848, -0.824443, -0.82478, -0.825609,
-0.826388, -0.826602, -0.826078, -0.825087, -0.824179, -0.823852,
-0.824256, -0.8251, -0.825831, -0.825962, -0.82537, -0.824364,
-0.823502, -0.823254, -0.823721, -0.824573, -0.82525, -0.825299,
-0.824642, -0.823628, -0.822818, -0.82265, -0.823174, -0.824027,
-0.824646, -0.824612, -0.823896, -0.822881, -0.822127, -0.822037,
-0.822614, -0.82346, -0.824018, -0.823901, -0.823131, -0.822122,
-0.821428, -0.821415, -0.822039, -0.822873, -0.823364, -0.823167,
-0.822349, -0.821351, -0.82072, -0.820783, -0.821449, -0.822263,
-0.822685, -0.822409, -0.821548, -0.820568, -0.820004, -0.820141,
-0.820842, -0.821631, -0.821981, -0.821627, -0.82073, -0.819774,
-0.819279, -0.819487, -0.820217, -0.820975, -0.82125, -0.820822,
-0.819895, -0.818969, -0.818545, -0.818821, -0.819574, -0.820294,
-0.820492, -0.819994, -0.819042, -0.818152, -0.817801, -0.818141,
-0.81891, -0.819587, -0.819708, -0.819142, -0.818173, -0.817323,
-0.817046, -0.817447, -0.818225, -0.818854, -0.818896, -0.818268,
-0.817287, -0.816483, -0.816279, -0.816736, -0.817518, -0.818094,
-0.818058, -0.81737, -0.816384, -0.815631, -0.815501, -0.816009,
-0.816788, -0.817307, -0.817192, -0.81645, -0.815465, -0.814766,
-0.814709, -0.815264, -0.816033, -0.816491, -0.816298, -0.815507,
-0.81453, -0.813889, -0.813903, -0.8145, -0.815253, -0.815646,
-0.815377, -0.814542, -0.813578, -0.812998, -0.813083, -0.813715,
-0.814447, -0.814771, -0.814427, -0.813555, -0.81261, -0.812094,
-0.812247, -0.812909, -0.813612, -0.813867, -0.81345, -0.812545,
-0.811626, -0.811175, -0.811394, -0.81208, -0.81275, -0.812931,
-0.812445, -0.811513, -0.810625, -0.810242, -0.810523, -0.811227,
-0.811858, -0.811965, -0.811412, -0.81046, -0.809607, -0.809293,
-0.809634, -0.810349, -0.810935, -0.810967, -0.810351, -0.809384,
-0.808572, -0.808328, -0.808724, -0.809444, -0.809982, -0.809937,
-0.809262, -0.808287, -0.80752, -0.807346, -0.807792, -0.808512,
-0.808996, -0.808876, -0.808146, -0.807167, -0.80645, -0.806346,
-0.806838, -0.807551, -0.807977, -0.807781, -0.807001, -0.806026,
-0.805362, -0.805327, -0.805861, -0.806561, -0.806925, -0.806654,
-0.805828, -0.804863, -0.804256, -0.804288, -0.804858, -0.805539,
-0.805838, -0.805493, -0.804627, -0.803678, -0.80313, -0.803228,
-0.803828, -0.804484, -0.804716, -0.804299, -0.803399, -0.80247,
-0.801984, -0.802146, -0.802771, -0.803396, -0.803558, -0.803072,
-0.802142, -0.801239, -0.800817, -0.801041, -0.801685, -0.802274,
-0.802364, -0.801811, -0.800857, -0.799986, -0.79963, -0.799911,
-0.800569, -0.801116, -0.801132, -0.800515, -0.799544, -0.79871,
-0.79842, -0.798755, -0.79942, -0.799921, -0.799863, -0.799186,
-0.798203, -0.797409, -0.797186, -0.797572, -0.798239, -0.798689,
-0.798555, -0.797822, -0.796833, -0.796085, -0.795929, -0.796361,
-0.797023, -0.797417, -0.797209, -0.796424, -0.795435, -0.794736,
-0.794647, -0.79512, -0.795771, -0.796106, -0.795824, -0.794991,
-0.794007, -0.793361, -0.793338, -0.793848, -0.794482, -0.794755,
-0.794398, -0.793523, -0.792551, -0.791961, -0.792002, -0.792544,
-0.793155, -0.793361, -0.792933, -0.79202, -0.791065, -0.790533,
-0.790637, -0.791205, -0.791787, -0.791925, -0.791427, -0.790482,
-0.789549, -0.789078, -0.789242, -0.78983, -0.790379, -0.790446,
-0.78988, -0.788908, -0.788003, -0.787594, -0.787815, -0.788419,
-0.788928, -0.788922, -0.788291, -0.787298, -0.786426, -0.786081,
-0.786356, -0.786969, -0.787433, -0.787354, -0.786661, -0.785653,
-0.784817, -0.784538, -0.784863, -0.785478, -0.785894, -0.78574,
-0.784988, -0.78397, -0.783176, -0.782962, -0.783334, -0.783946,
-0.784308, -0.784079, -0.783273, -0.782251, -0.781503, -0.781354,
-0.781768, -0.782371, -0.782675, -0.78237, -0.781515, -0.780494,
-0.779796, -0.779711, -0.780163, -0.780751, -0.780993, -0.780614,
-0.779713, -0.7787, -0.778055, -0.778033, -0.778517, -0.779084,
-0.779261, -0.778809, -0.777867, -0.776868, -0.776278, -0.776318,
-0.776829, -0.77737, -0.777479, -0.776955, -0.775977, -0.774997,
-0.774465, -0.774565, -0.775098, -0.775606, -0.775644, -0.775051,
-0.774043, -0.773086, -0.772615, -0.772772, -0.773321, -0.773791,
-0.773756, -0.773096, -0.772063, -0.771135, -0.770726, -0.770937,
-0.771496, -0.771923, -0.771814, -0.771089, -0.770037, -0.769143,
-0.768797, -0.769059, -0.769623, -0.770001, -0.769817, -0.769031,
-0.767965, -0.76711, -0.766827, -0.767136, -0.767699, -0.768024,
-0.767763, -0.76692, -0.765847, -0.765034, -0.764815, -0.765167,
-0.765722, -0.76599, -0.765653, -0.764756, -0.76368, -0.762914,
-0.762759, -0.763149, -0.76369, -0.763897, -0.763484, -0.762538,
-0.761466, -0.76075, -0.760657, -0.761081, -0.761602, -0.761744,
-0.761255, -0.760265, -0.759202, -0.75854, -0.758509, -0.758961,
-0.759457, -0.759529, -0.758967, -0.757937, -0.756889, -0.756283,
-0.756311, -0.756786, -0.757251, -0.757252, -0.756617, -0.755553,
-0.754525, -0.753977, -0.754063, -0.754556, -0.754983, -0.754911,
-0.754205, -0.753112, -0.75211, -0.751622, -0.751763, -0.752267,
-0.752651, -0.752503, -0.75173, -0.750613, -0.749642, -0.749216,
-0.749408, -0.749918, -0.750255, -0.750029, -0.749191, -0.748056,
-0.74712, -0.746757, -0.746997, -0.747507, -0.74779, -0.747487,
-0.746587, -0.74544, -0.744544, -0.744244, -0.744527, -0.745031,
-0.745257, -0.744874, -0.743917, -0.742764, -0.741911, -0.741674,
-0.741998, -0.742488, -0.742652, -0.742191, -0.74118, -0.740026,
-0.739221, -0.739047, -0.739405, -0.739877, -0.739975, -0.739435,
-0.738375, -0.737226, -0.736473, -0.73636, -0.736748, -0.737195,
-0.737223, -0.736605, -0.735501, -0.734363, -0.733664, -0.733611,
-0.734024, -0.73444, -0.734395, -0.7337, -0.732557, -0.731436,
-0.730794, -0.730799, -0.73123, -0.731609, -0.731488, -0.730719,
-0.729542, -0.728443, -0.72786, -0.72792, -0.728365, -0.728701,
-0.728502, -0.72766, -0.726455, -0.725383, -0.72486, -0.724974,
-0.725425, -0.725713, -0.725434, -0.724522, -0.723294, -0.722254,
-0.721794, -0.721956, -0.722409, -0.722643, -0.722282, -0.721304,
-0.720059, -0.719056, -0.718659, -0.718866, -0.719313, -0.719489,
-0.719045, -0.718004, -0.716748, -0.715786, -0.715452, -0.715701,
-0.716136, -0.716248, -0.715721, -0.714621, -0.71336, -0.712444,
-0.712173, -0.712457, -0.712874, -0.712918, -0.712308, -0.711154,
-0.709893, -0.709026, -0.708817, -0.709133, -0.709525, -0.709497,
-0.708804, -0.707601, -0.706346, -0.705532, -0.705384, -0.705726,
-0.706087, -0.705983, -0.705209, -0.70396, -0.702718, -0.70196,
-0.701871, -0.702233, -0.702557, -0.702374, -0.701519, -0.700231,
-0.699007, -0.698307, -0.698274, -0.698651, -0.698931, -0.698666,
-0.697733, -0.696411, -0.69521, -0.694571, -0.694592, -0.694977,
-0.695208, -0.694859, -0.69385, -0.692499, -0.691328, -0.69075,
-0.690822, -0.691209, -0.691385, -0.690949, -0.689868, -0.688494,
-0.687356, -0.686842, -0.686961, -0.687343, -0.687458, -0.686935,
-0.685784, -0.684393, -0.683295, -0.682844, -0.683006, -0.683377,
-0.683426, -0.682814, -0.681597, -0.680196, -0.679141, -0.678753,
-0.678954, -0.679307, -0.679285, -0.678583, -0.677305, -0.6759,
-0.674892, -0.674568, -0.674801, -0.67513, -0.675032, -0.674241,
-0.672906, -0.671503, -0.670546, -0.670284, -0.670546, -0.670843,
-0.670665, -0.669786, -0.668399, -0.667003, -0.666101, -0.6659,
-0.666183, -0.666442, -0.666181, -0.665214, -0.663781, -0.662398,
-0.661554, -0.661412, -0.661711, -0.661925, -0.661577, -0.660524,
-0.65905, -0.657687, -0.656903, -0.656817, -0.657125, -0.657288,
-0.656849, -0.655714, -0.654204, -0.652866, -0.652145, -0.652111,
-0.652423, -0.652528, -0.651997, -0.65078, -0.649241, -0.647934,
-0.647276, -0.647292, -0.6476, -0.647641, -0.647015, -0.645721,
-0.644158, -0.642888, -0.642294, -0.642355, -0.642652, -0.642624,
-0.641902, -0.640534, -0.638954, -0.637725, -0.637197, -0.637298,
-0.637577, -0.637474, -0.636655, -0.635217, -0.633626, -0.632443,
-0.631979, -0.632116, -0.63237, -0.632186, -0.63127, -0.629766,
-0.628172, -0.627038, -0.626639, -0.626806, -0.627028, -0.626758,
-0.625745, -0.62418, -0.622588, -0.621509, -0.621173, -0.621364,
-0.621546, -0.621186, -0.620076, -0.618456, -0.616873, -0.615851,
-0.615576, -0.615785, -0.61592, -0.615467, -0.614261, -0.612592,
-0.611024, -0.610062, -0.609846, -0.610066, -0.610147, -0.609596,
-0.608297, -0.606584, -0.605037, -0.604138, -0.603978, -0.604202,
-0.604222, -0.60357, -0.60218, -0.600429, -0.59891, -0.598075,
-0.597968, -0.598189, -0.598141, -0.597386, -0.595908, -0.594125,
-0.592639, -0.591871, -0.591812, -0.592023, -0.5919, -0.59104,
-0.589477, -0.587669, -0.586222, -0.585521, -0.585505, -0.585698,
-0.585495, -0.584527, -0.582884, -0.581058, -0.579654, -0.579021,
-0.579044, -0.579211, -0.578921, -0.577845, -0.576125, -0.574288,
-0.572934, -0.572368, -0.572424, -0.572557, -0.572174, -0.57099,
-0.569198, -0.567357, -0.566055, -0.565556, -0.565639, -0.56573,
-0.56525, -0.563957, -0.562099, -0.560261, -0.559016, -0.558582,
-0.558685, -0.558727, -0.558143, -0.556743, -0.554824, -0.552995,
-0.551812, -0.551441, -0.551557, -0.551541, -0.55085, -0.549344,
-0.54737, -0.545558, -0.544439, -0.544128, -0.54425, -0.544169,
-0.543366, -0.541755, -0.539733, -0.537945, -0.536893, -0.536638,
-0.536758, -0.536604, -0.535687, -0.533974, -0.53191, -0.530151,
-0.529169, -0.528966, -0.529077, -0.528842, -0.527807, -0.525995,
-0.523897, -0.522174, -0.521262, -0.521108, -0.5212, -0.520877,
-0.519721, -0.517815, -0.515689, -0.514008, -0.513168, -0.513056,
-0.513123, -0.512704, -0.511426, -0.509429, -0.507284, -0.50565,
-0.504881, -0.504807, -0.504838, -0.504317, -0.502916, -0.500833,
-0.498675, -0.497095, -0.496397, -0.496354, -0.496341, -0.495712,
-0.494187, -0.492023, -0.48986, -0.488338, -0.487711, -0.487691,
-0.487625, -0.486881, -0.485233, -0.482994, -0.480834, -0.479375,
-0.478816, -0.478813, -0.478685, -0.47782, -0.476049, -0.473742,
-0.471592, -0.4702, -0.469706, -0.469712, -0.469513, -0.468523,
-0.46663, -0.464261, -0.46213, -0.460807, -0.460377, -0.460383,
-0.460104, -0.458985, -0.456972, -0.454548, -0.452442, -0.451193,
-0.450821, -0.450819, -0.450451, -0.449198, -0.447068, -0.444597,
-0.442524, -0.44135, -0.441033, -0.441014, -0.440548, -0.439157,
-0.436914, -0.434403, -0.43237, -0.431273, -0.431006, -0.43096,
-0.430388, -0.428856, -0.426503, -0.423961, -0.421975, -0.420957,
-0.420733, -0.42065, -0.419964, -0.418289, -0.415832, -0.413266,
-0.411334, -0.410393, -0.410207, -0.410077, -0.409269, -0.40745,
-0.404893, -0.402313, -0.40044, -0.399578, -0.399421, -0.399234,
-0.398296, -0.396332, -0.393681, -0.391095, -0.389287, -0.388502,
-0.388367, -0.388114, -0.387039, -0.384929, -0.382191, -0.379607,
-0.37787, -0.37716, -0.377039, -0.376708, -0.375489, -0.373234,
-0.370415, -0.367844, -0.366182, -0.365544, -0.365427, -0.365008,
-0.363639, -0.361241, -0.358349, -0.355798, -0.354215, -0.353647,
-0.353525, -0.353007, -0.351483, -0.348943, -0.345986, -0.343464,
-0.341965, -0.341461, -0.341324, -0.340697, -0.339012, -0.336333,
-0.33332, -0.330835, -0.329422, -0.328979, -0.328816, -0.328069,
-0.326218, -0.323404, -0.320344, -0.317905, -0.31658, -0.316191,
-0.315991, -0.315114, -0.313094, -0.310149, -0.307051, -0.304666,
-0.303431, -0.30309, -0.302842, -0.301825, -0.299632, -0.29656,
-0.293434, -0.291112, -0.289968, -0.289666, -0.289358, -0.288191,
-0.285824, -0.282632, -0.279487, -0.277235, -0.276182, -0.275912,
-0.275531, -0.274205, -0.271661, -0.268355, -0.265202, -0.263027,
-0.262064, -0.261817, -0.261352, -0.259857, -0.257135, -0.253723,
-0.250572, -0.24848, -0.247606, -0.247373, -0.24681, -0.245138,
-0.242238, -0.238727, -0.235589, -0.233588, -0.2328, -0.232568,
-0.231895, -0.230038, -0.226961, -0.223359, -0.220246, -0.21834,
-0.217635, -0.217395, -0.216598, -0.214547, -0.211294, -0.207612,
-0.204534, -0.202729, -0.202102, -0.201841, -0.200907, -0.198656,
-0.19523, -0.191478, -0.188444, -0.186745, -0.186191, -0.185897,
-0.184813, -0.182355, -0.178759, -0.174946, -0.171969, -0.17038,
-0.169893, -0.169552, -0.168305, -0.165633, -0.161872, -0.15801,
-0.1551, -0.153623, -0.153196, -0.152795, -0.151371, -0.148481,
-0.144559, -0.14066, -0.137828, -0.136466, -0.13609, -0.135613,
-0.133999, -0.130887, -0.12681, -0.122886, -0.120143, -0.118897,
-0.118564, -0.117996, -0.11618, -0.11284, -0.108616, -0.10468,
-0.102035, -0.100907, -0.100606, -0.0999321, -0.0978997, -0.0943301,
-0.0899667, -0.0860325, -0.0834959, -0.0824853, -0.0822047, -0.0814081,
-0.0791471, -0.0753456, -0.0708515, -0.0669326, -0.0645146, -0.06362,
-0.0633482, -0.0624117, -0.0599098, -0.0558749, -0.05126, -0.0473709,
-0.0450807, -0.0443002, -0.044024, -0.04293, -0.0401749, -0.0359063,
-0.0311815, -0.027337, -0.0251838, -0.0245144, -0.0242193, -0.0229498,
-0.0199296, -0.0154277, -0.0106049, -0.00682031, -0.00481289, -0.00425044,
-0.00392115, -0.00245757, 0.000839388, 0.00557302, 0.010481, 0.0141899,
0.0160432, 0.0165038, 0.0168839, 0.0185607, 0.0221457, 0.0271086,
0.0320878, 0.0357047, 0.0373961, 0.0377608, 0.0382094, 0.0401193,
0.0440033, 0.049192, 0.0542273, 0.0577355, 0.0592573, 0.0595336,
0.0600696, 0.0622328, 0.0664264, 0.0718364, 0.0769117, 0.0802938,
0.0816388, 0.0818352, 0.0824788, 0.0849164, 0.0894299, 0.0950554,
0.100153, 0.103391, 0.104553, 0.104679, 0.105452, 0.108185,
0.113029, 0.118863, 0.123965, 0.12704, 0.128012, 0.128079,
0.129004, 0.132056, 0.137239, 0.143274, 0.148359, 0.151253,
0.152029, 0.152048, 0.15315, 0.156545, 0.162077, 0.168304,
0.17335, 0.176041, 0.176615, 0.176601, 0.177906, 0.181668,
0.187559, 0.193967, 0.198952, 0.201418, 0.201785, 0.201752,
0.203289, 0.207444, 0.213704, 0.22028, 0.225177, 0.227396,
0.22755, 0.227516, 0.229315, 0.233892, 0.240529, 0.247261,
0.252042, 0.253988, 0.253922, 0.253905, 0.256, 0.261029,
0.268055, 0.274926, 0.27956, 0.281205, 0.280915, 0.280935,
0.283364, 0.288877, 0.296302, 0.303295, 0.307747, 0.309061,
0.308538, 0.308619, 0.311422, 0.317458, 0.325293, 0.332388,
0.336618, 0.337567, 0.336804, 0.33697, 0.340194, 0.346793,
0.355052, 0.362227, 0.366191, 0.366732, 0.365719, 0.366,
0.369698, 0.376909, 0.385607, 0.392835, 0.39648, 0.396567,
0.395291, 0.39572, 0.399954, 0.407833, 0.41699, 0.42424,
0.427502, 0.427078, 0.425523, 0.426138, 0.430981, 0.439597,
0.449235, 0.456471, 0.459275, 0.458269, 0.456413, 0.457258,
0.462801, 0.472239, 0.482387, 0.489565, 0.491814, 0.490136,
0.48795, 0.48908, 0.495435, 0.505802, 0.516501, 0.523564,
0.525138, 0.522668, 0.520111, 0.521594, 0.528907, 0.540344,
0.551649, 0.558526, 0.55926, 0.555839, 0.552852, 0.554776,
0.563241, 0.575945, 0.587931, 0.594526, 0.594196, 0.589597,
0.586092, 0.588576, 0.598469, 0.612718, 0.6255, 0.631674,
0.629953, 0.62384, 0.619681, 0.622898, 0.634628, 0.650845,
0.664601, 0.670149, 0.666528, 0.658371, 0.653336, 0.657552,
0.671777, 0.690655, 0.705682, 0.710265, 0.703886, 0.692775,
0.68647, 0.692145, 0.71003, 0.732819, 0.74967, 0.75266,
0.741898, 0.726063, 0.717698, 0.725745, 0.749687, 0.779032,
0.798911, 0.798914, 0.780034, 0.755276, 0.742903, 0.755643,
0.792, 0.835241, 0.861654, 0.854345, 0.815045, 0.766547,
0.742773, 0.770086, 0.848857, 0.945376, 1, 0.949722,
0.755873, 0.424311
};
static const float WAVE_EXPONENTIAL_054[DEFAULT_WAVELEN] = {
0.0162882, -0.198557, -0.402791, -0.586159, -0.740363, -0.859787,
-0.941917, -0.987441, -1, -0.98564, -0.952041, -0.907612,
-0.860561, -0.818056, -0.785557, -0.766397, -0.761649, -0.77026,
-0.789435, -0.815206, -0.843083, -0.868729, -0.888537, -0.900076,
-0.902326, -0.895707, -0.881903, -0.863524, -0.84366, -0.825401,
-0.811385, -0.803443, -0.802389, -0.807955, -0.818903, -0.833265,
-0.848672, -0.86273, -0.873377, -0.879174, -0.879483, -0.874526,
-0.865308, -0.853431, -0.840823, -0.829434, -0.820946, -0.816525,
-0.816673, -0.821179, -0.829176, -0.839304, -0.84993, -0.859412,
-0.866338, -0.869743, -0.86923, -0.865014, -0.857867, -0.848981,
-0.839775, -0.831667, -0.825863, -0.823177, -0.823921, -0.827873,
-0.834328, -0.842218, -0.850288, -0.857291, -0.862182, -0.864267,
-0.863301, -0.859515, -0.853566, -0.846424, -0.839215, -0.833049,
-0.828845, -0.827198, -0.828295, -0.831898, -0.837389, -0.843875,
-0.850333, -0.855767, -0.859362, -0.860605, -0.859355, -0.85586,
-0.850706, -0.84472, -0.838842, -0.833973, -0.83084, -0.829887,
-0.831215, -0.834568, -0.839388, -0.844898, -0.850234, -0.854573,
-0.857264, -0.857921, -0.856481, -0.853201, -0.848623, -0.843473,
-0.838555, -0.834622, -0.832262, -0.831808, -0.833294, -0.836454,
-0.84077, -0.845552, -0.850052, -0.853577, -0.855597, -0.855823,
-0.854247, -0.851141, -0.847006, -0.842497, -0.838313, -0.835094,
-0.83332, -0.833241, -0.834839, -0.837841, -0.841758, -0.845968,
-0.849814, -0.852705, -0.854204, -0.854099, -0.852427, -0.849466,
-0.845691, -0.841694, -0.838095, -0.835443, -0.834132, -0.834344,
-0.836024, -0.838888, -0.842475, -0.846219, -0.849535, -0.851913,
-0.852995, -0.852629, -0.850887, -0.848054, -0.84458, -0.841009,
-0.837892, -0.835703, -0.834768, -0.835213, -0.836949, -0.83969,
-0.842997, -0.846347, -0.84922, -0.851174, -0.851914, -0.851337,
-0.849545, -0.846829, -0.843615, -0.840406, -0.837696, -0.835896,
-0.835272, -0.835905, -0.83768, -0.840308, -0.843368, -0.84638,
-0.848875, -0.850469, -0.850921, -0.850173, -0.848348, -0.84574,
-0.842757, -0.839863, -0.837503, -0.836034, -0.835673, -0.83646,
-0.83826, -0.840781, -0.843621, -0.846335, -0.848501, -0.849785,
-0.849994, -0.849103, -0.847259, -0.844753, -0.841978, -0.839363,
-0.83731, -0.836129, -0.835991, -0.836906, -0.838718, -0.841137,
-0.843777, -0.846225, -0.8481, -0.849113, -0.849112, -0.848104,
-0.846251, -0.843844, -0.841259, -0.838895, -0.837115, -0.836185,
-0.836241, -0.837261, -0.839076, -0.841394, -0.84385, -0.846057,
-0.847672, -0.848447, -0.848264, -0.847159, -0.845305, -0.842995,
-0.840586, -0.838451, -0.836915, -0.836209, -0.836431, -0.837538,
-0.839347, -0.841568, -0.843851, -0.845837, -0.847218, -0.84778,
-0.84744, -0.846253, -0.844408, -0.842192, -0.839949, -0.838024,
-0.83671, -0.836202, -0.83657, -0.837748, -0.839543, -0.841668,
-0.843788, -0.845571, -0.846738, -0.84711, -0.846631, -0.845378,
-0.843549, -0.841427, -0.83934, -0.837609, -0.836496, -0.836167,
-0.836663, -0.837898, -0.839672, -0.841702, -0.843667, -0.84526,
-0.846232, -0.846432, -0.845832, -0.844526, -0.842718, -0.840689,
-0.838751, -0.837201, -0.836273, -0.836104, -0.836712, -0.837992,
-0.839739, -0.841674, -0.843492, -0.844907, -0.845699, -0.845745,
-0.845038, -0.84369, -0.84191, -0.839973, -0.838177, -0.836796,
-0.836039, -0.836016, -0.83672, -0.838036, -0.83975, -0.84159,
-0.843266, -0.844515, -0.84514, -0.845046, -0.844246, -0.842865,
-0.841118, -0.839273, -0.837614, -0.836393, -0.835793, -0.835901,
-0.83669, -0.83803, -0.839707, -0.841452, -0.842992, -0.844083,
-0.844554, -0.844332, -0.843451, -0.842047, -0.840337, -0.838584,
-0.837057, -0.835987, -0.835533, -0.835759, -0.836622, -0.837979,
-0.839612, -0.841263, -0.842671, -0.843612, -0.843941, -0.843603,
-0.842651, -0.841232, -0.839564, -0.837903, -0.836503, -0.835575,
-0.835257, -0.835591, -0.836516, -0.837882, -0.839469, -0.841025,
-0.842304, -0.843104, -0.843299, -0.842857, -0.841844, -0.840417,
-0.838795, -0.837226, -0.835949, -0.835157, -0.834965, -0.835395,
-0.836373, -0.83774, -0.839276, -0.840738, -0.841893, -0.842558,
-0.842629, -0.842091, -0.841027, -0.8396, -0.838027, -0.83655,
-0.835393, -0.834728, -0.834653, -0.835171, -0.836193, -0.837554,
-0.839036, -0.840403, -0.841437, -0.841975, -0.84193, -0.841306,
-0.840199, -0.838777, -0.837257, -0.835872, -0.83483, -0.834288,
-0.834321, -0.834917, -0.835975, -0.837325, -0.838749, -0.84002,
-0.840937, -0.841353, -0.841201, -0.8405, -0.839357, -0.837946,
-0.836483, -0.835189, -0.83426, -0.833832, -0.833966, -0.834632,
-0.835719, -0.837051, -0.838414, -0.839591, -0.840394, -0.840694,
-0.840441, -0.839671, -0.8385, -0.837106, -0.835701, -0.834499,
-0.833678, -0.833361, -0.833587, -0.834315, -0.835423, -0.836732,
-0.838031, -0.839114, -0.839806, -0.839995, -0.839649, -0.838817,
-0.837625, -0.836254, -0.83491, -0.833798, -0.833084, -0.83287,
-0.833182, -0.833964, -0.835087, -0.836367, -0.837601, -0.838589,
-0.839173, -0.839258, -0.838825, -0.837939, -0.836732, -0.835387,
-0.834108, -0.833086, -0.832473, -0.832358, -0.832749, -0.833578,
-0.834708, -0.835956, -0.837121, -0.838015, -0.838495, -0.83848,
-0.837968, -0.837034, -0.835819, -0.834505, -0.833291, -0.832358,
-0.831845, -0.831822, -0.832286, -0.833155, -0.834287, -0.835498,
-0.836592, -0.837393, -0.837771, -0.837661, -0.837076, -0.836102,
-0.834883, -0.833604, -0.832457, -0.831614, -0.831196, -0.831261,
-0.831791, -0.832694, -0.833821, -0.83499, -0.836012, -0.836721,
-0.837, -0.836801, -0.836149, -0.835139, -0.833924, -0.832684,
-0.831606, -0.830849, -0.830524, -0.830672, -0.831261, -0.832191,
-0.833309, -0.834432, -0.83538, -0.835997, -0.836181, -0.835898,
-0.835185, -0.834147, -0.832938, -0.831741, -0.830733, -0.830063,
-0.829827, -0.830052, -0.830694, -0.831645, -0.832748, -0.833823,
-0.834695, -0.835222, -0.835314, -0.834951, -0.834183, -0.833121,
-0.831926, -0.830774, -0.829837, -0.829252, -0.829101, -0.829398,
-0.830088, -0.831054, -0.832137, -0.83316, -0.833956, -0.834393,
-0.834397, -0.833959, -0.833141, -0.832062, -0.830884, -0.82978,
-0.828915, -0.828414, -0.828345, -0.828709, -0.829441, -0.830416,
-0.831475, -0.832442, -0.833161, -0.83351, -0.833428, -0.83292,
-0.832058, -0.830968, -0.82981, -0.828758, -0.827965, -0.827546,
-0.827555, -0.827981, -0.828749, -0.829728, -0.830758, -0.831668,
-0.832308, -0.832571, -0.832407, -0.831834, -0.830933, -0.829835,
-0.828704, -0.827705, -0.826985, -0.826645, -0.826729, -0.827212,
-0.82801, -0.828988, -0.829984, -0.830834, -0.831396, -0.831574,
-0.831331, -0.830698, -0.829763, -0.828664, -0.827561, -0.826618,
-0.825971, -0.825709, -0.825864, -0.826399, -0.827222, -0.828194,
-0.829152, -0.829939, -0.830422, -0.830517, -0.830199, -0.82951,
-0.828547, -0.827451, -0.826381, -0.825496, -0.82492, -0.824735,
-0.824956, -0.825539, -0.826381, -0.827341, -0.828259, -0.828981,
-0.829385, -0.829399, -0.82901, -0.82827, -0.827283, -0.826194,
-0.825161, -0.824334, -0.823831, -0.823719, -0.824003, -0.824628,
-0.825485, -0.826429, -0.827302, -0.827957, -0.828283, -0.828218,
-0.827761, -0.826974, -0.825969, -0.824891, -0.823898, -0.823131,
-0.8227, -0.822659, -0.823002, -0.823664, -0.82453, -0.825453,
-0.826278, -0.826866, -0.827113, -0.826971, -0.82645, -0.825621,
-0.824603, -0.823541, -0.822589, -0.821884, -0.821524, -0.821551,
-0.821949, -0.822643, -0.823513, -0.824411, -0.825185, -0.825703,
-0.825873, -0.825656, -0.825075, -0.824209, -0.823181, -0.822139,
-0.821232, -0.82059, -0.820299, -0.820391, -0.82084, -0.821561,
-0.822431, -0.823299, -0.82402, -0.824467, -0.82456, -0.824272,
-0.823634, -0.822736, -0.821703, -0.820684, -0.819824, -0.819245,
-0.819022, -0.819177, -0.819672, -0.820416, -0.82128, -0.822115,
-0.822779, -0.823155, -0.823172, -0.822814, -0.822125, -0.821197,
-0.820164, -0.819172, -0.818362, -0.817846, -0.81769, -0.817904,
-0.818441, -0.819203, -0.820056, -0.820855, -0.82146, -0.821764,
-0.821706, -0.821282, -0.820543, -0.819592, -0.818563, -0.817601,
-0.816842, -0.816389, -0.816298, -0.816569, -0.817144, -0.817918,
-0.818757, -0.819514, -0.820058, -0.82029, -0.820159, -0.819671,
-0.818888, -0.817917, -0.816895, -0.815967, -0.81526, -0.814871,
-0.814844, -0.815167, -0.815775, -0.816557, -0.817377, -0.81809,
-0.818571, -0.81873, -0.818527, -0.817979, -0.817155, -0.816169,
-0.815159, -0.814266, -0.813614, -0.813288, -0.813322, -0.813694,
-0.814331, -0.815117, -0.815913, -0.816579, -0.816995, -0.817082,
-0.816808, -0.816202, -0.815342, -0.814345, -0.81335, -0.812496,
-0.811899, -0.811635, -0.811728, -0.812147, -0.812808, -0.813592,
-0.81436, -0.814976, -0.815326, -0.81534, -0.814998, -0.814338,
-0.813445, -0.812441, -0.811465, -0.810652, -0.810112, -0.809909,
-0.810059, -0.810519, -0.8112, -0.811978, -0.812715, -0.813277,
-0.81356, -0.813502, -0.813094, -0.812382, -0.81146, -0.810453,
-0.8095, -0.808731, -0.808247, -0.808105, -0.808308, -0.808806,
-0.809503, -0.810271, -0.810972, -0.811478, -0.811692, -0.811562,
-0.81109, -0.810331, -0.809384, -0.808378, -0.807451, -0.806727,
-0.8063, -0.806218, -0.806472, -0.807004, -0.807712, -0.808465,
-0.809126, -0.809574, -0.809719, -0.809518, -0.808985, -0.808181,
-0.807213, -0.806212, -0.805313, -0.804637, -0.804268, -0.804242,
-0.804545, -0.805107, -0.805821, -0.806555, -0.807173, -0.80756,
-0.807635, -0.807365, -0.806772, -0.805928, -0.804943, -0.80395,
-0.803083, -0.802455, -0.802143, -0.802174, -0.802521, -0.803109,
-0.803825, -0.804535, -0.805108, -0.805432, -0.805436, -0.805097,
-0.804448, -0.803566, -0.802568, -0.801588, -0.800755, -0.800177,
-0.799922, -0.800007, -0.800396, -0.801005, -0.801718, -0.802401,
-0.802924, -0.803183, -0.803116, -0.802711, -0.802007, -0.801092,
-0.800085, -0.79912, -0.798324, -0.797797, -0.797598, -0.797735,
-0.798162, -0.798789, -0.799495, -0.800145, -0.800616, -0.800809,
-0.800671, -0.8002, -0.799445, -0.7985, -0.797487, -0.796541,
-0.795784, -0.795309, -0.795166, -0.795353, -0.795814, -0.796454,
-0.797148, -0.797763, -0.798178, -0.798303, -0.798095, -0.79756,
-0.796757, -0.795785, -0.794771, -0.793847, -0.793131, -0.792708,
-0.79262, -0.792853, -0.793345, -0.793994, -0.794671, -0.795247,
-0.795603, -0.79566, -0.795381, -0.794784, -0.793936, -0.792942,
-0.791929, -0.79103, -0.790357, -0.789988, -0.789952, -0.79023,
-0.790749, -0.791402, -0.792059, -0.79259, -0.792886, -0.792873,
-0.792525, -0.791868, -0.790977, -0.789964, -0.788957, -0.788085,
-0.787457, -0.78714, -0.787157, -0.787476, -0.788018, -0.78867,
-0.789302, -0.789787, -0.79002, -0.789935, -0.789518, -0.788804,
-0.787874, -0.786845, -0.785847, -0.785006, -0.784424, -0.78416,
-0.784227, -0.784583, -0.785144, -0.785792, -0.786394, -0.786829,
-0.786996, -0.786841, -0.786355, -0.785586, -0.78462, -0.783579,
-0.782594, -0.781786, -0.78125, -0.781039, -0.781154, -0.781545,
-0.78212, -0.782758, -0.783328, -0.783708, -0.783809, -0.783581,
-0.783029, -0.782206, -0.781209, -0.780159, -0.779189, -0.778416,
-0.777929, -0.777769, -0.77793, -0.778353, -0.778938, -0.779562,
-0.780094, -0.780418, -0.780449, -0.780149, -0.779532, -0.778658,
-0.777632, -0.776578, -0.775626, -0.774891, -0.774452, -0.774343,
-0.774548, -0.774998, -0.775589, -0.776195, -0.776685, -0.776949,
-0.776909, -0.776537, -0.775855, -0.774934, -0.773882, -0.772827,
-0.771897, -0.7712, -0.770811, -0.770752, -0.770997, -0.771471,
-0.772064, -0.772647, -0.773091, -0.773292, -0.77318, -0.772736,
-0.771992, -0.771026, -0.769952, -0.768899, -0.767993, -0.767338,
-0.766997, -0.766987, -0.76727, -0.767764, -0.768354, -0.768909,
-0.769304, -0.769439, -0.769253, -0.768738, -0.767933, -0.766925,
-0.765832, -0.764784, -0.763905, -0.763293, -0.763002, -0.763038,
-0.763356, -0.763866, -0.764448, -0.764971, -0.765313, -0.765379,
-0.76512, -0.764533, -0.76367, -0.762623, -0.761514, -0.760475,
-0.759625, -0.759056, -0.758815, -0.758896, -0.759246, -0.759767,
-0.760336, -0.760823, -0.761107, -0.761104, -0.760769, -0.760112,
-0.759192, -0.758109, -0.756988, -0.755961, -0.755143, -0.754619,
-0.754426, -0.75455, -0.754928, -0.755456, -0.756008, -0.756454,
-0.756678, -0.756601, -0.75619, -0.755464, -0.754489, -0.753374,
-0.752244, -0.751232, -0.750448, -0.74997, -0.749824, -0.749989,
-0.750391, -0.750922, -0.751452, -0.751852, -0.752013, -0.751861,
-0.751374, -0.750579, -0.749552, -0.748407, -0.747272, -0.746278,
-0.74553, -0.745097, -0.744999, -0.745201, -0.745624, -0.746153,
-0.746656, -0.747007, -0.7471, -0.746871, -0.746307, -0.745445,
-0.74437, -0.743197, -0.742061, -0.741087, -0.740377, -0.739991,
-0.739937, -0.740174, -0.740614, -0.741136, -0.741608, -0.741905,
-0.741927, -0.741621, -0.74098, -0.740052, -0.738929, -0.737734,
-0.736599, -0.735648, -0.734977, -0.734637, -0.734628, -0.734897,
-0.735349, -0.735859, -0.736295, -0.736533, -0.736482, -0.736096,
-0.735378, -0.734386, -0.733219, -0.732003, -0.730873, -0.729949,
-0.729318, -0.729024, -0.729056, -0.729354, -0.729814, -0.730308,
-0.730702, -0.730878, -0.730751, -0.730283, -0.729489, -0.728435,
-0.727226, -0.725994, -0.724871, -0.723975, -0.723386, -0.723138,
-0.72321, -0.723532, -0.723996, -0.724468, -0.724817, -0.724926,
-0.72472, -0.724169, -0.723299, -0.722184, -0.720937, -0.719691,
-0.71858, -0.717714, -0.717167, -0.716964, -0.717073, -0.717417,
-0.717879, -0.718325, -0.718622, -0.718662, -0.718374, -0.71774,
-0.716794, -0.715621, -0.714338, -0.713082, -0.711984, -0.71115,
-0.710647, -0.710487, -0.710632, -0.710993, -0.711448, -0.711862,
-0.712104, -0.712069, -0.711697, -0.710979, -0.709959, -0.708729,
-0.707413, -0.70615, -0.705069, -0.704269, -0.703809, -0.703692,
-0.703869, -0.704243, -0.704687, -0.705064, -0.705245, -0.705132,
-0.704674, -0.70387, -0.702777, -0.701493, -0.700148, -0.698881,
-0.697818, -0.697055, -0.696638, -0.696563, -0.696768, -0.69715,
-0.697578, -0.697912, -0.698028, -0.697834, -0.697287, -0.696398,
-0.695232, -0.693896, -0.692525, -0.691257, -0.690216, -0.68949,
-0.689117, -0.68908, -0.689311, -0.689697, -0.690103, -0.690389,
-0.690435, -0.690156, -0.689518, -0.688543, -0.687306, -0.685921,
-0.684526, -0.683261, -0.682245, -0.681557, -0.681227, -0.681227,
-0.681479, -0.681864, -0.682243, -0.682476, -0.682447, -0.682079,
-0.681349, -0.680288, -0.678981, -0.67755, -0.676135, -0.674875,
-0.673885, -0.673237, -0.672949, -0.672984, -0.673254, -0.673633,
-0.673978, -0.674153, -0.674044, -0.673584, -0.67276, -0.671613,
-0.670238, -0.668763, -0.667331, -0.66608, -0.665118, -0.66451,
-0.664263, -0.66433, -0.664613, -0.664981, -0.665288, -0.665398,
-0.665205, -0.66465, -0.66373, -0.662498, -0.661057, -0.65954,
-0.658094, -0.656854, -0.655923, -0.655355, -0.655149, -0.655245,
-0.655537, -0.655887, -0.656149, -0.656189, -0.655908, -0.655255,
-0.654238, -0.652921, -0.651415, -0.64986, -0.648403, -0.647177,
-0.646279, -0.645752, -0.645584, -0.645705, -0.646001, -0.646329,
-0.64654, -0.646505, -0.64613, -0.645376, -0.64426, -0.642859,
-0.641291, -0.6397, -0.638236, -0.637027, -0.636162, -0.635676,
-0.635545, -0.635688, -0.635983, -0.636282, -0.636437, -0.63632,
-0.635847, -0.634989, -0.633774, -0.632289, -0.63066, -0.629037,
-0.627569, -0.626379, -0.625549, -0.625104, -0.625007, -0.625168,
-0.625457, -0.625721, -0.625813, -0.625609, -0.625034, -0.624069,
-0.622755, -0.621186, -0.619499, -0.617847, -0.616377, -0.615209,
-0.614416, -0.61401, -0.613945, -0.61412, -0.614397, -0.61462,
-0.614642, -0.614346, -0.613665, -0.61259, -0.611174, -0.609524,
-0.607781, -0.606103, -0.604635, -0.603491, -0.602735, -0.602368,
-0.602332, -0.602517, -0.602775, -0.602951, -0.602896, -0.602502,
-0.60171, -0.600523, -0.599007, -0.597276, -0.59548, -0.593778,
-0.592314, -0.591197, -0.590478, -0.59015, -0.59014, -0.590329,
-0.590563, -0.590684, -0.590547, -0.590049, -0.589142, -0.587841,
-0.586222, -0.584412, -0.582565, -0.580843, -0.579387, -0.578298,
-0.577618, -0.577325, -0.577338, -0.577526, -0.57773, -0.577789,
-0.577563, -0.576955, -0.575929, -0.574511, -0.57279, -0.570902,
-0.569007, -0.567268, -0.565823, -0.564764, -0.564122, -0.563865,
-0.563896, -0.564078, -0.564245, -0.564235, -0.563912, -0.563189,
-0.562039, -0.560502, -0.55868, -0.556715, -0.554775, -0.553022,
-0.551591, -0.550563, -0.54996, -0.549735, -0.549781, -0.54995,
-0.550073, -0.549987, -0.54956, -0.548716, -0.547438, -0.545781,
-0.543856, -0.541817, -0.539835, -0.538072, -0.536656, -0.535662,
-0.535097, -0.534901, -0.534958, -0.535108, -0.535179, -0.535009,
-0.534473, -0.533501, -0.532092, -0.530312, -0.528285, -0.526173,
-0.524151, -0.522381, -0.520984, -0.520024, -0.519497, -0.519329,
-0.519391, -0.519516, -0.519528, -0.519266, -0.518611, -0.517506,
-0.515962, -0.514058, -0.511929, -0.509746, -0.507688, -0.505914,
-0.504539, -0.503614, -0.503124, -0.50298, -0.503041, -0.503135,
-0.503079, -0.502717, -0.501937, -0.500693, -0.499009, -0.496979,
-0.494749, -0.492498, -0.490407, -0.488632, -0.48728, -0.486393,
-0.485937, -0.485814, -0.48587, -0.485924, -0.485793, -0.485322,
-0.48441, -0.48302, -0.481193, -0.479035, -0.476705, -0.474387,
-0.472266, -0.470494, -0.469168, -0.468318, -0.467897, -0.467791,
-0.467835, -0.467841, -0.467626, -0.467038, -0.465985, -0.464444,
-0.46247, -0.460183, -0.457753, -0.455371, -0.453224, -0.451457,
-0.45016, -0.449348, -0.448959, -0.448866, -0.448892, -0.448843,
-0.448534, -0.44782, -0.446618, -0.44492, -0.442794, -0.440377,
-0.437848, -0.435405, -0.433234, -0.431477, -0.430211, -0.429438,
-0.429079, -0.428994, -0.428995, -0.428882, -0.42847, -0.427621,
-0.426262, -0.424399, -0.422119, -0.419569, -0.416943, -0.414442,
-0.412252, -0.410507, -0.409274, -0.408539, -0.408209, -0.408126,
-0.408095, -0.407909, -0.407385, -0.40639, -0.404865, -0.402833,
-0.400393, -0.397711, -0.394987, -0.392431, -0.390225, -0.388497,
-0.3873, -0.386603, -0.386298, -0.386214, -0.386142, -0.385873,
-0.385226, -0.384075, -0.382376, -0.380167, -0.377565, -0.374748,
-0.37193, -0.369321, -0.367103, -0.365395, -0.364235, -0.363577,
-0.363295, -0.363202, -0.363082, -0.362721, -0.361939, -0.360623,
-0.35874, -0.356347, -0.353578, -0.350626, -0.347714, -0.345057,
-0.342831, -0.341146, -0.340026, -0.339407, -0.339144, -0.339037,
-0.33886, -0.338395, -0.337467, -0.335974, -0.333898, -0.331315,
-0.328375, -0.325287, -0.322283, -0.31958, -0.317352, -0.315694,
-0.314616, -0.314035, -0.313788, -0.313661, -0.313416, -0.312836,
-0.311751, -0.310069, -0.30779, -0.305008, -0.301893, -0.298669,
-0.295575, -0.292831, -0.290604, -0.288978, -0.287945, -0.287401,
-0.287166, -0.287011, -0.28669, -0.285982, -0.284726, -0.282843,
-0.280351, -0.277363, -0.274069, -0.270707, -0.267525, -0.264745,
-0.262524, -0.260935, -0.259948, -0.259442, -0.259216, -0.259025,
-0.258616, -0.257769, -0.256328, -0.254231, -0.251514, -0.248312,
-0.244835, -0.241334, -0.238067, -0.235255, -0.233046, -0.231498,
-0.230562, -0.230092, -0.22987, -0.229636, -0.229128, -0.228127,
-0.226487, -0.224161, -0.221208, -0.217783, -0.214118, -0.210478,
-0.207129, -0.20429, -0.2021, -0.200599, -0.199715, -0.199283,
-0.19906, -0.198774, -0.198154, -0.196984, -0.195129, -0.19256,
-0.189357, -0.185701, -0.181842, -0.178064, -0.174636, -0.171776,
-0.169612, -0.168163, -0.167337, -0.166941, -0.166714, -0.166366,
-0.165621, -0.164266, -0.162179, -0.159349, -0.155883, -0.151986,
-0.147929, -0.14401, -0.140508, -0.137634, -0.135504, -0.134115,
-0.133351, -0.132992, -0.132755, -0.132335, -0.131452, -0.129895,
-0.127556, -0.124448, -0.120703, -0.116553, -0.112293, -0.108234,
-0.104662, -0.101782, -0.0996947, -0.0983753, -0.0976778, -0.0973571,
-0.0971061, -0.096604, -0.0955655, -0.0937863, -0.0911752, -0.0877694,
-0.0837293, -0.0793145, -0.0748439, -0.0706463, -0.0670091, -0.0641329,
-0.0620997, -0.0608592, -0.0602358, -0.0599546, -0.0596845, -0.0590888,
-0.0578779, -0.0558554, -0.0529489, -0.0492224, -0.0448677, -0.0401748,
-0.0354878, -0.0311512, -0.0274562, -0.0245948, -0.0226289, -0.0214797,
-0.0209388, -0.0207, -0.020406, -0.0197043, -0.0183019, -0.0160119,
-0.0127835, -0.0087109, -0.00401991, 0.00096636, 0.00587725, 0.010352,
0.0140965, 0.0169294, 0.0188119, 0.0198547, 0.0203018, 0.0204942,
0.0208164, 0.0216376, 0.0232532, 0.0258381, 0.0294187, 0.0338669,
0.0389192, 0.0442165, 0.0493596, 0.0539711, 0.0577548, 0.0605424,
0.0623215, 0.0632387, 0.0635779, 0.0637175, 0.064072, 0.0650274,
0.0668807, 0.0697924, 0.0737606, 0.078619, 0.0840621, 0.0896912,
0.0950761, 0.0998221, 0.103632, 0.106353, 0.108004, 0.108771,
0.108983, 0.109061, 0.109451, 0.110557, 0.112676, 0.115952,
0.12035, 0.12566, 0.13153, 0.137515, 0.143154, 0.14803,
0.151849, 0.154477, 0.155967, 0.156552, 0.156613, 0.156615,
0.157043, 0.158318, 0.160737, 0.164423, 0.169302, 0.175114,
0.181453, 0.187826, 0.193731, 0.198734, 0.20254, 0.205038,
0.206325, 0.206687, 0.206562, 0.20647, 0.206934, 0.208399,
0.211159, 0.215311, 0.220735, 0.227114, 0.233978, 0.240777,
0.246965, 0.252086, 0.255849, 0.258171, 0.259197, 0.259278,
0.25892, 0.258705, 0.259204, 0.260884, 0.264036, 0.268725,
0.274777, 0.281806, 0.289267, 0.296541, 0.303033, 0.308262,
0.31194, 0.314019, 0.314706, 0.314426, 0.313768, 0.31339,
0.313916, 0.315841, 0.319451, 0.324771, 0.331563, 0.339354,
0.347509, 0.355327, 0.362151, 0.36747, 0.371003, 0.372746,
0.372979, 0.372224, 0.371169, 0.370563, 0.371101, 0.37331,
0.377468, 0.383552, 0.391239, 0.39995, 0.408937, 0.417394,
0.424588, 0.429971, 0.43327, 0.434537, 0.434146, 0.432741,
0.431139, 0.430208, 0.43073, 0.433275, 0.43811, 0.445151,
0.453965, 0.463833, 0.473858, 0.483099, 0.49072, 0.496123,
0.499046, 0.499615, 0.49833, 0.495996, 0.493606, 0.492188,
0.492641, 0.495598, 0.501314, 0.509617, 0.519926, 0.531333,
0.542731, 0.55299, 0.561128, 0.566475, 0.568782, 0.568275,
0.565631, 0.561887, 0.558287, 0.55609, 0.556376, 0.559869,
0.566812, 0.576912, 0.589372, 0.602998, 0.616372, 0.628073,
0.636891, 0.642036, 0.643268, 0.640959, 0.63606, 0.629967,
0.624322, 0.620765, 0.620674, 0.62494, 0.633801, 0.646784,
0.662742, 0.680009, 0.696635, 0.710682, 0.720527, 0.725137,
0.724255, 0.718486, 0.709245, 0.698578, 0.688877, 0.682526,
0.681519, 0.687133, 0.699675, 0.718375, 0.741432, 0.766227,
0.789672, 0.808658, 0.820539, 0.823581, 0.817307, 0.802683,
0.782096, 0.759127, 0.738112, 0.723567, 0.719514, 0.72882,
0.752626, 0.789945, 0.837518, 0.88993, 0.940022, 0.979545,
1, 0.993564, 0.954004, 0.877467, 0.763033, 0.612991,
0.432758, 0.2
};
static const float WAVE_EXPONENTIAL_066[DEFAULT_WAVELEN] = {
0.031157, -0.0773145, -0.184674, -0.289506, -0.390459, -0.486272,
-0.57581, -0.658082, -0.732267, -0.79773, -0.854032, -0.900935,
-0.938405, -0.966608, -0.985898, -0.996801, -1, -0.99631,
-0.986651, -0.972023, -0.953477, -0.93208, -0.908894, -0.884939,
-0.861177, -0.83848, -0.817615, -0.799228, -0.783828, -0.771787,
-0.763331, -0.758544, -0.757374, -0.759643, -0.765059, -0.773236,
-0.783707, -0.795949, -0.809403, -0.823494, -0.837652, -0.851337,
-0.864048, -0.875347, -0.884866, -0.892323, -0.897523, -0.900363,
-0.900833, -0.899012, -0.895063, -0.889218, -0.881776, -0.873082,
-0.863513, -0.853469, -0.843351, -0.83355, -0.824429, -0.816314,
-0.809484, -0.804158, -0.80049, -0.798568, -0.798411, -0.799971,
-0.803133, -0.807729, -0.813539, -0.820304, -0.827735, -0.835527,
-0.84337, -0.850961, -0.858012, -0.864268, -0.869506, -0.873552,
-0.87628, -0.877616, -0.877546, -0.876104, -0.87338, -0.869509,
-0.864667, -0.859064, -0.852932, -0.84652, -0.840081, -0.833864,
-0.828103, -0.823009, -0.818766, -0.815517, -0.813367, -0.812374,
-0.812554, -0.813873, -0.816258, -0.819594, -0.823733, -0.828499,
-0.833694, -0.83911, -0.844531, -0.849748, -0.854562, -0.858795,
-0.862292, -0.864931, -0.866625, -0.867325, -0.867022, -0.865743,
-0.863555, -0.860558, -0.85688, -0.852676, -0.848116, -0.843381,
-0.838659, -0.83413, -0.829966, -0.826323, -0.823331, -0.821097,
-0.819693, -0.819162, -0.819509, -0.820706, -0.822695, -0.825385,
-0.828661, -0.832387, -0.836412, -0.840573, -0.844708, -0.848657,
-0.852267, -0.855404, -0.857953, -0.859821, -0.860945, -0.861292,
-0.860858, -0.859669, -0.857783, -0.855279, -0.852264, -0.84886,
-0.845204, -0.84144, -0.837714, -0.834171, -0.830944, -0.828154,
-0.825903, -0.824271, -0.823314, -0.823058, -0.823505, -0.824629,
-0.826376, -0.828671, -0.831418, -0.834503, -0.837804, -0.841187,
-0.844521, -0.847677, -0.850532, -0.852979, -0.854928, -0.856306,
-0.857068, -0.857188, -0.85667, -0.855539, -0.853846, -0.851661,
-0.849075, -0.846191, -0.843123, -0.839993, -0.836921, -0.834026,
-0.831417, -0.829192, -0.827432, -0.826201, -0.82554, -0.825469,
-0.825983, -0.827055, -0.828639, -0.830666, -0.833053, -0.835702,
-0.838508, -0.84136, -0.844144, -0.846754, -0.849089, -0.85106,
-0.852593, -0.853631, -0.85414, -0.854102, -0.853525, -0.852433,
-0.850875, -0.848914, -0.846629, -0.844111, -0.841459, -0.838777,
-0.836168, -0.833733, -0.831563, -0.82974, -0.828332, -0.827387,
-0.826939, -0.826999, -0.82756, -0.828596, -0.83006, -0.831893,
-0.834017, -0.836349, -0.838795, -0.841257, -0.843639, -0.84585,
-0.847802, -0.849422, -0.850648, -0.851436, -0.851757, -0.851602,
-0.850979, -0.849917, -0.848458, -0.846662, -0.844601, -0.842355,
-0.840013, -0.837666, -0.835404, -0.833314, -0.831474, -0.829954,
-0.828809, -0.82808, -0.827792, -0.827951, -0.828547, -0.829554,
-0.830927, -0.832611, -0.834535, -0.836624, -0.838793, -0.840957,
-0.843031, -0.844933, -0.846591, -0.847941, -0.84893, -0.849524,
-0.8497, -0.849453, -0.848795, -0.847754, -0.846372, -0.844704,
-0.842816, -0.840782, -0.838681, -0.836594, -0.834602, -0.832781,
-0.831198, -0.829914, -0.828976, -0.828415, -0.828252, -0.828489,
-0.829113, -0.830096, -0.831396, -0.832961, -0.834727, -0.836622,
-0.838572, -0.840498, -0.842326, -0.843984, -0.845407, -0.84654,
-0.847341, -0.847779, -0.847838, -0.847517, -0.846831, -0.845807,
-0.844485, -0.842919, -0.84117, -0.839305, -0.837397, -0.835519,
-0.833744, -0.832139, -0.830764, -0.82967, -0.828897, -0.828473,
-0.82841, -0.828709, -0.829354, -0.830317, -0.831558, -0.833026,
-0.834662, -0.836399, -0.838169, -0.839901, -0.841528, -0.842984,
-0.844214, -0.84517, -0.845815, -0.846125, -0.846088, -0.845706,
-0.844995, -0.843984, -0.842712, -0.841229, -0.839593, -0.837867,
-0.836118, -0.834412, -0.832816, -0.831389, -0.830184, -0.829247,
-0.828612, -0.828299, -0.82832, -0.828669, -0.829331, -0.830278,
-0.831468, -0.832855, -0.834381, -0.835986, -0.837605, -0.839174,
-0.840631, -0.841919, -0.842987, -0.843794, -0.844308, -0.844509,
-0.84439, -0.843956, -0.843224, -0.842223, -0.840992, -0.839578,
-0.838037, -0.836428, -0.834812, -0.833251, -0.831804, -0.830527,
-0.829467, -0.828662, -0.828141, -0.827923, -0.828013, -0.828405,
-0.829081, -0.830012, -0.831159, -0.832476, -0.833908, -0.8354,
-0.83689, -0.838319, -0.839632, -0.840775, -0.841704, -0.842382,
-0.842783, -0.842891, -0.842702, -0.842223, -0.841472, -0.840479,
-0.839282, -0.837927, -0.836466, -0.834956, -0.833454, -0.832016,
-0.830698, -0.829549, -0.828611, -0.827919, -0.827498, -0.82736,
-0.827509, -0.827937, -0.828624, -0.829541, -0.83065, -0.831905,
-0.833256, -0.834649, -0.836026, -0.837334, -0.83852, -0.839538,
-0.840345, -0.840912, -0.841214, -0.841241, -0.840989, -0.84047,
-0.839702, -0.838715, -0.837547, -0.836242, -0.834851, -0.833427,
-0.832023, -0.830692, -0.829485, -0.828447, -0.827616, -0.827022,
-0.826685, -0.826617, -0.826817, -0.827276, -0.827972, -0.828876,
-0.82995, -0.831151, -0.83243, -0.833735, -0.835013, -0.836214,
-0.837288, -0.838194, -0.838894, -0.839361, -0.839576, -0.83953,
-0.839223, -0.838667, -0.837884, -0.836901, -0.835758, -0.834497,
-0.833167, -0.831817, -0.830499, -0.829262, -0.828153, -0.827212,
-0.826475, -0.825966, -0.825705, -0.825697, -0.825942, -0.826426,
-0.827129, -0.828021, -0.829065, -0.830217, -0.83143, -0.832656,
-0.833845, -0.834949, -0.835924, -0.836729, -0.837333, -0.837711,
-0.837847, -0.837735, -0.837378, -0.836789, -0.835991, -0.835012,
-0.83389, -0.832667, -0.83139, -0.830106, -0.828864, -0.827711,
-0.826688, -0.825833, -0.825178, -0.824746, -0.824551, -0.824597,
-0.82488, -0.825388, -0.826096, -0.826976, -0.827991, -0.829098,
-0.830252, -0.831407, -0.832515, -0.833531, -0.834414, -0.835129,
-0.835645, -0.835942, -0.836006, -0.835834, -0.835431, -0.834812,
-0.833999, -0.833022, -0.831919, -0.830729, -0.829499, -0.828274,
-0.8271, -0.826021, -0.825075, -0.824298, -0.823717, -0.823352,
-0.823216, -0.82331, -0.823628, -0.824155, -0.824868, -0.825736,
-0.826723, -0.827788, -0.828888, -0.829977, -0.83101, -0.831946,
-0.832746, -0.833377, -0.833813, -0.834035, -0.834033, -0.833805,
-0.83336, -0.832711, -0.831884, -0.830908, -0.829821, -0.828661,
-0.827473, -0.826301, -0.825188, -0.824175, -0.823299, -0.822591,
-0.822077, -0.821774, -0.82169, -0.821826, -0.822175, -0.822719,
-0.823435, -0.824291, -0.825253, -0.826279, -0.827328, -0.828355,
-0.829319, -0.830181, -0.830903, -0.831457, -0.831818, -0.83197,
-0.831906, -0.831627, -0.831141, -0.830465, -0.829624, -0.828648,
-0.827574, -0.826441, -0.825291, -0.824166, -0.823108, -0.822155,
-0.821342, -0.820697, -0.820244, -0.819995, -0.81996, -0.820134,
-0.82051, -0.821069, -0.821786, -0.822631, -0.823568, -0.824557,
-0.825557, -0.826527, -0.827427, -0.828218, -0.828868, -0.829348,
-0.829639, -0.829726, -0.829604, -0.829276, -0.828751, -0.828049,
-0.827194, -0.826217, -0.825155, -0.824045, -0.822929, -0.821847,
-0.820839, -0.819941, -0.819185, -0.818598, -0.818199, -0.818002,
-0.818009, -0.818218, -0.818618, -0.81919, -0.819907, -0.82074,
-0.821653, -0.822606, -0.823561, -0.824476, -0.825314, -0.826039,
-0.82662, -0.827032, -0.827256, -0.827281, -0.827104, -0.826729,
-0.826167, -0.825439, -0.82457, -0.823592, -0.822539, -0.82145,
-0.820364, -0.819321, -0.818359, -0.817511, -0.816808, -0.816273,
-0.815925, -0.815773, -0.81582, -0.816061, -0.816482, -0.817064,
-0.817781, -0.818602, -0.81949, -0.820409, -0.82132, -0.822183,
-0.822962, -0.823624, -0.824139, -0.824485, -0.824646, -0.824612,
-0.824381, -0.823961, -0.823364, -0.82261, -0.821727, -0.820745,
-0.8197, -0.818629, -0.817571, -0.816564, -0.815643, -0.814842,
-0.814187, -0.813701, -0.813399, -0.813289, -0.813372, -0.813641,
-0.814081, -0.814672, -0.815387, -0.816195, -0.81706, -0.817945,
-0.818813, -0.819625, -0.820348, -0.820948, -0.821401, -0.821684,
-0.821783, -0.821692, -0.82141, -0.820946, -0.820313, -0.819535,
-0.818637, -0.817651, -0.816612, -0.815557, -0.814524, -0.813549,
-0.812667, -0.811907, -0.811297, -0.810856, -0.810596, -0.810525,
-0.810641, -0.810935, -0.811392, -0.81199, -0.812702, -0.813496,
-0.814338, -0.81519, -0.816016, -0.816779, -0.817446, -0.817987,
-0.818378, -0.8186, -0.81864, -0.818493, -0.818161, -0.817653,
-0.816987, -0.816183, -0.815269, -0.814278, -0.813244, -0.812203,
-0.811192, -0.810247, -0.8094, -0.80868, -0.80811, -0.80771,
-0.80749, -0.807454, -0.8076, -0.807917, -0.808389, -0.808992,
-0.8097, -0.81048, -0.811298, -0.812117, -0.812901, -0.813616,
-0.814229, -0.814712, -0.815043, -0.815205, -0.815186, -0.814984,
-0.814603, -0.814053, -0.813352, -0.812522, -0.811593, -0.810595,
-0.809564, -0.808535, -0.807545, -0.806626, -0.805811, -0.805127,
-0.804596, -0.804234, -0.80405, -0.804046, -0.804219, -0.804557,
-0.805042, -0.805649, -0.806352, -0.807117, -0.80791, -0.808696,
-0.809439, -0.810105, -0.810665, -0.811091, -0.811363, -0.811465,
-0.811389, -0.811133, -0.810703, -0.810111, -0.809375, -0.808519,
-0.807573, -0.806567, -0.805538, -0.804519, -0.803546, -0.802652,
-0.801867, -0.801216, -0.80072, -0.800393, -0.800242, -0.800269,
-0.800467, -0.800823, -0.801318, -0.801928, -0.802624, -0.803373,
-0.804141, -0.804893, -0.805594, -0.806213, -0.80672, -0.807089,
-0.807302, -0.807346, -0.807213, -0.806903, -0.806424, -0.805789,
-0.805018, -0.804135, -0.803171, -0.802156, -0.801126, -0.800116,
-0.799159, -0.798287, -0.797529, -0.796909, -0.796445, -0.796151,
-0.796031, -0.796085, -0.796305, -0.796678, -0.797182, -0.797792,
-0.798479, -0.799211, -0.799953, -0.800671, -0.801331, -0.801901,
-0.802354, -0.802667, -0.802822, -0.802806, -0.802616, -0.802252,
-0.801724, -0.801046, -0.800239, -0.799329, -0.798345, -0.79732,
-0.796289, -0.795285, -0.794341, -0.793489, -0.792756, -0.792164,
-0.79173, -0.791466, -0.791374, -0.791453, -0.791694, -0.79208,
-0.792591, -0.7932, -0.793878, -0.794591, -0.795306, -0.795989,
-0.796606, -0.797128, -0.797527, -0.797783, -0.797878, -0.797804,
-0.797556, -0.797138, -0.79656, -0.795838, -0.794994, -0.794055,
-0.793051, -0.792014, -0.790979, -0.789979, -0.789047, -0.788213,
-0.787502, -0.786936, -0.786529, -0.786292, -0.786227, -0.786329,
-0.786588, -0.786986, -0.787502, -0.788108, -0.788774, -0.789468,
-0.790154, -0.7908, -0.791374, -0.791846, -0.792191, -0.792389,
-0.792424, -0.79229, -0.791983, -0.79151, -0.790881, -0.790114,
-0.789232, -0.788263, -0.787237, -0.786186, -0.785146, -0.784148,
-0.783226, -0.782407, -0.781716, -0.781174, -0.780793, -0.780581,
-0.780539, -0.780662, -0.780936, -0.781345, -0.781864, -0.782465,
-0.783118, -0.78379, -0.784446, -0.785055, -0.785584, -0.786005,
-0.786294, -0.786432, -0.786407, -0.786211, -0.785845, -0.785315,
-0.784634, -0.783821, -0.7829, -0.781898, -0.780848, -0.779782,
-0.778735, -0.777738, -0.776823, -0.776017, -0.775345, -0.774823,
-0.774465, -0.774276, -0.774256, -0.774397, -0.774685, -0.775101,
-0.775621, -0.776216, -0.776854, -0.777502, -0.778127, -0.778696,
-0.779178, -0.779547, -0.779778, -0.779856, -0.779768, -0.77951,
-0.779083, -0.778494, -0.77776, -0.776898, -0.775936, -0.774901,
-0.773825, -0.772742, -0.771685, -0.770686, -0.769776, -0.768982,
-0.768325, -0.767823, -0.767485, -0.767317, -0.767316, -0.767473,
-0.767773, -0.768195, -0.768713, -0.769299, -0.76992, -0.770542,
-0.771134, -0.771661, -0.772095, -0.772409, -0.772582, -0.772597,
-0.772445, -0.772121, -0.771631, -0.770982, -0.770192, -0.76928,
-0.768274, -0.767204, -0.7661, -0.764997, -0.763928, -0.762926,
-0.762019, -0.761234, -0.760591, -0.760105, -0.759786, -0.759636,
-0.759652, -0.759823, -0.760132, -0.760557, -0.761072, -0.761646,
-0.762248, -0.762843, -0.763398, -0.763882, -0.764265, -0.764522,
-0.764633, -0.764584, -0.764365, -0.763974, -0.763418, -0.762707,
-0.761858, -0.760894, -0.759843, -0.758734, -0.7576, -0.756475,
-0.755393, -0.754384, -0.753478, -0.752699, -0.752067, -0.751596,
-0.751293, -0.75116, -0.75119, -0.751372, -0.751688, -0.752114,
-0.752623, -0.753184, -0.753764, -0.754329, -0.754846, -0.755283,
-0.755613, -0.75581, -0.755857, -0.755739, -0.755451, -0.754991,
-0.754366, -0.753589, -0.752679, -0.75166, -0.75056, -0.74941,
-0.748244, -0.747094, -0.745995, -0.744978, -0.74407, -0.743295,
-0.742672, -0.742213, -0.741924, -0.741805, -0.741847, -0.742039,
-0.742359, -0.742784, -0.743284, -0.743829, -0.744384, -0.744916,
-0.745392, -0.74578, -0.746053, -0.746188, -0.746167, -0.745978,
-0.745617, -0.745084, -0.744387, -0.743542, -0.742568, -0.74149,
-0.740338, -0.739144, -0.737942, -0.736765, -0.735647, -0.734618,
-0.733706, -0.732933, -0.732316, -0.731867, -0.731589, -0.731481,
-0.731534, -0.731732, -0.732054, -0.732475, -0.732964, -0.73349,
-0.734018, -0.734514, -0.734944, -0.73528, -0.735493, -0.735562,
-0.735469, -0.735206, -0.734768, -0.734158, -0.733386, -0.732468,
-0.731426, -0.730286, -0.729079, -0.727838, -0.726597, -0.725389,
-0.724249, -0.723206, -0.722287, -0.721513, -0.7209, -0.720458,
-0.720189, -0.72009, -0.72015, -0.720352, -0.720674, -0.721088,
-0.721563, -0.722066, -0.722563, -0.72302, -0.723402, -0.723681,
-0.72383, -0.723829, -0.723661, -0.723319, -0.722799, -0.722108,
-0.721256, -0.720262, -0.719148, -0.717942, -0.716676, -0.715383,
-0.714099, -0.712858, -0.711692, -0.710632, -0.709702, -0.708925,
-0.708313, -0.707875, -0.707613, -0.70752, -0.707585, -0.707789,
-0.708107, -0.708511, -0.708969, -0.709447, -0.70991, -0.710323,
-0.710653, -0.710871, -0.710952, -0.710875, -0.710628, -0.710201,
-0.709596, -0.708819, -0.707882, -0.706806, -0.705615, -0.704338,
-0.703008, -0.70166, -0.70033, -0.69905, -0.697856, -0.696775,
-0.695832, -0.695048, -0.694434, -0.693999, -0.69374, -0.693651,
-0.693718, -0.69392, -0.694232, -0.694623, -0.695061, -0.695509,
-0.695934, -0.696299, -0.696573, -0.696725, -0.696733, -0.696576,
-0.696243, -0.695727, -0.69503, -0.694161, -0.693134, -0.69197,
-0.690697, -0.689344, -0.687946, -0.686538, -0.685156, -0.683835,
-0.682608, -0.681502, -0.680543, -0.679749, -0.679131, -0.678694,
-0.678437, -0.678349, -0.678415, -0.678612, -0.678914, -0.679289,
-0.679702, -0.680118, -0.6805, -0.680813, -0.681025, -0.681107,
-0.681036, -0.680793, -0.680368, -0.679756, -0.678962, -0.677994,
-0.67687, -0.675613, -0.674252, -0.672817, -0.671345, -0.669871,
-0.668433, -0.667066, -0.665801, -0.664668, -0.663688, -0.662881,
-0.662255, -0.661814, -0.661555, -0.661465, -0.661527, -0.661717,
-0.662006, -0.662361, -0.662746, -0.663125, -0.663459, -0.663715,
-0.66386, -0.663865, -0.663708, -0.663373, -0.662849, -0.662135,
-0.661235, -0.660162, -0.658934, -0.657577, -0.65612, -0.654597,
-0.653044, -0.6515, -0.65, -0.648581, -0.647275, -0.646109,
-0.645106, -0.644281, -0.643644, -0.643197, -0.642932, -0.642837,
-0.642892, -0.643071, -0.643344, -0.643675, -0.644028, -0.644364,
-0.644646, -0.644839, -0.64491, -0.644832, -0.644583, -0.644147,
-0.643517, -0.642693, -0.64168, -0.640493, -0.639153, -0.637687,
-0.636127, -0.634509, -0.632869, -0.631246, -0.629679, -0.628203,
-0.62685, -0.625647, -0.624616, -0.623771, -0.623119, -0.622661,
-0.622388, -0.622285, -0.62233, -0.622495, -0.622747, -0.62305,
-0.623366, -0.623655, -0.623879, -0.624002, -0.623993, -0.623824,
-0.623475, -0.622931, -0.622186, -0.621242, -0.620106, -0.618797,
-0.617336, -0.615753, -0.614082, -0.612359, -0.610624, -0.608916,
-0.607275, -0.605736, -0.60433, -0.603085, -0.602022, -0.601152,
-0.600482, -0.60001, -0.599726, -0.599612, -0.599643, -0.59979,
-0.600018, -0.600288, -0.600562, -0.600798, -0.600957, -0.601005,
-0.600907, -0.60064, -0.600181, -0.599519, -0.59865, -0.597575,
-0.596307, -0.594865, -0.593272, -0.591562, -0.589769, -0.587933,
-0.586095, -0.584294, -0.582571, -0.580962, -0.579498, -0.578206,
-0.577105, -0.576207, -0.575515, -0.575026, -0.574726, -0.574597,
-0.574611, -0.574737, -0.574936, -0.575169, -0.575395, -0.575572,
-0.575661, -0.575624, -0.57543, -0.575054, -0.574477, -0.573686,
-0.572681, -0.571465, -0.570053, -0.568465, -0.56673, -0.564881,
-0.562956, -0.560996, -0.559044, -0.557141, -0.555329, -0.553642,
-0.552113, -0.550768, -0.549625, -0.548693, -0.547976, -0.547466,
-0.547148, -0.547001, -0.546995, -0.547094, -0.547261, -0.547452,
-0.547625, -0.547736, -0.547746, -0.547616, -0.547317, -0.546822,
-0.546114, -0.545184, -0.54403, -0.54266, -0.54109, -0.539344,
-0.537452, -0.535452, -0.533382, -0.531287, -0.52921, -0.527196,
-0.525284, -0.523512, -0.521911, -0.520507, -0.519316, -0.518347,
-0.517599, -0.517065, -0.516726, -0.516557, -0.516527, -0.516597,
-0.516726, -0.51687, -0.516983, -0.517022, -0.516944, -0.516713,
-0.516297, -0.515672, -0.514821, -0.513737, -0.51242, -0.510881,
-0.509138, -0.507219, -0.505156, -0.502989, -0.500761, -0.498517,
-0.496304, -0.494166, -0.492145, -0.490279, -0.488598, -0.487128,
-0.485884, -0.484873, -0.484092, -0.483529, -0.483166, -0.482972,
-0.482915, -0.482952, -0.483039, -0.48313, -0.483178, -0.483136,
-0.482962, -0.482618, -0.482074, -0.481306, -0.480297, -0.479043,
-0.477548, -0.475823, -0.47389, -0.47178, -0.469529, -0.467179,
-0.464777, -0.462369, -0.460005, -0.457731, -0.455589, -0.453619,
-0.451851, -0.450308, -0.449005, -0.447947, -0.447128, -0.446535,
-0.446144, -0.445924, -0.445836, -0.445836, -0.445877, -0.44591,
-0.445885, -0.445754, -0.445474, -0.445007, -0.444321, -0.443394,
-0.442212, -0.440771, -0.439078, -0.437148, -0.435006, -0.432685,
-0.430226, -0.427674, -0.425078, -0.42249, -0.419959, -0.417535,
-0.415261, -0.413176, -0.411311, -0.409688, -0.408321, -0.407211,
-0.406352, -0.405725, -0.405305, -0.405055, -0.404934, -0.404895,
-0.404886, -0.404855, -0.40475, -0.404521, -0.404124, -0.40352,
-0.402678, -0.401576, -0.400202, -0.398554, -0.396641, -0.394483,
-0.392109, -0.389554, -0.386864, -0.384088, -0.381278, -0.378489,
-0.375774, -0.373184, -0.370763, -0.368552, -0.366581, -0.364871,
-0.363433, -0.362269, -0.361366, -0.360704, -0.360253, -0.359974,
-0.359819, -0.359737, -0.359675, -0.359575, -0.359383, -0.359047,
-0.358522, -0.357766, -0.356751, -0.355454, -0.353866, -0.351988,
-0.349831, -0.34742, -0.344786, -0.341971, -0.339023, -0.335997,
-0.332949, -0.329937, -0.327017, -0.324242, -0.321659, -0.319309,
-0.317221, -0.315417, -0.313904, -0.312681, -0.311734, -0.311037,
-0.310556, -0.310247, -0.310058, -0.309934, -0.309815, -0.309642,
-0.309356, -0.308904, -0.308236, -0.307314, -0.306106, -0.304593,
-0.302766, -0.30063, -0.298201, -0.295504, -0.292579, -0.289472,
-0.286235, -0.282929, -0.279614, -0.276352, -0.273203, -0.270223,
-0.267462, -0.264958, -0.262744, -0.260837, -0.259245, -0.257963,
-0.256972, -0.256242, -0.255734, -0.255399, -0.255179, -0.255013,
-0.254838, -0.254588, -0.254202, -0.253623, -0.2528, -0.251693,
-0.250271, -0.248515, -0.246421, -0.243995, -0.241257, -0.238239,
-0.234985, -0.231547, -0.227984, -0.224361, -0.220745, -0.217202,
-0.213797, -0.210588, -0.207628, -0.204956, -0.202604, -0.200589,
-0.198916, -0.197575, -0.196544, -0.195788, -0.19526, -0.194906,
-0.194661, -0.194459, -0.194229, -0.193902, -0.193411, -0.192695,
-0.191702, -0.19039, -0.188729, -0.186701, -0.184303, -0.181548,
-0.178459, -0.175076, -0.171446, -0.167631, -0.163696, -0.159712,
-0.155753, -0.151892, -0.148197, -0.144732, -0.141551, -0.138695,
-0.136195, -0.134068, -0.132314, -0.130919, -0.129857, -0.129086,
-0.128552, -0.128192, -0.127936, -0.127708, -0.127431, -0.127029,
-0.12643, -0.125568, -0.12439, -0.12285, -0.12092, -0.118583,
-0.11584, -0.112707, -0.109216, -0.10541, -0.101348, -0.0970968,
-0.0927316, -0.0883321, -0.0839796, -0.079754, -0.0757302, -0.0719758,
-0.0685478, -0.0654905, -0.062834, -0.0605923, -0.0587632, -0.0573281,
-0.0562522, -0.0554866, -0.0549693, -0.0546278, -0.0543823, -0.0541478,
-0.0538386, -0.0533704, -0.0526647, -0.0516511, -0.0502706, -0.0484778,
-0.0462428, -0.0435524, -0.040411, -0.0368402, -0.0328784, -0.0285793,
-0.0240098, -0.0192477, -0.0143786, -0.00949268, -0.00468102, -3.23793e-5,
0.00437055, 0.00845436, 0.0121578, 0.0154345, 0.0182545, 0.020606,
0.0224956, 0.0239485, 0.0250074, 0.0257312, 0.0261925, 0.0264754,
0.0266718, 0.0268782, 0.0271916, 0.0277063, 0.0285095, 0.0296784,
0.0312768, 0.0333525, 0.0359354, 0.0390361, 0.0426455, 0.0467346,
0.0512557, 0.0561444, 0.0613213, 0.0666956, 0.0721682, 0.0776355,
0.0829937, 0.0881424, 0.0929892, 0.0974526, 0.101466, 0.10498,
0.107965, 0.110412, 0.112332, 0.11376, 0.114748, 0.115368,
0.115706, 0.115862, 0.115943, 0.116061, 0.116328, 0.116851,
0.117729, 0.119048, 0.120879, 0.123272, 0.126259, 0.129846,
0.134018, 0.138737, 0.143943, 0.149557, 0.155483, 0.161614,
0.167831, 0.174015, 0.180043, 0.185799, 0.191178, 0.196088,
0.200454, 0.204222, 0.207363, 0.20987, 0.211764, 0.213087,
0.213909, 0.214315, 0.214414, 0.214323, 0.214172, 0.214094,
0.214221, 0.214678, 0.215582, 0.217031, 0.219104, 0.221859,
0.225325, 0.229508, 0.234382, 0.239897, 0.245977, 0.252523,
0.259416, 0.266524, 0.273705, 0.28081, 0.287696, 0.294224,
0.300267, 0.305718, 0.310491, 0.314526, 0.317791, 0.320286,
0.322039, 0.323109, 0.323583, 0.323575, 0.323217, 0.322657,
0.322057, 0.32158, 0.321388, 0.321635, 0.322461, 0.323985,
0.3263, 0.329472, 0.333534, 0.338485, 0.344289, 0.350877,
0.358149, 0.365976, 0.374206, 0.38267, 0.391186, 0.399568,
0.407633, 0.415208, 0.422135, 0.42828, 0.43354, 0.437841,
0.441149, 0.443469, 0.444842, 0.445351, 0.445113, 0.444278,
0.443021, 0.44154, 0.440043, 0.438745, 0.437858, 0.437582,
0.438098, 0.43956, 0.442087, 0.445762, 0.450622, 0.456663,
0.46383, 0.472027, 0.481115, 0.490916, 0.501223, 0.511803,
0.522408, 0.532785, 0.542683, 0.551864, 0.560115, 0.567253,
0.573134, 0.577664, 0.580795, 0.582537, 0.582953, 0.582162,
0.580333, 0.577679, 0.574455, 0.570945, 0.56745, 0.564283,
0.561751, 0.560149, 0.559741, 0.560756, 0.563372, 0.567712,
0.573837, 0.581738, 0.591339, 0.602494, 0.614992, 0.628563,
0.642888, 0.657603, 0.672321, 0.686638, 0.700153, 0.712479,
0.723264, 0.732199, 0.739038, 0.743607, 0.745811, 0.745646,
0.7432, 0.738655, 0.732282, 0.724437, 0.715553, 0.706123,
0.696689, 0.687821, 0.6801, 0.674094, 0.670338, 0.669313,
0.671427, 0.676989, 0.686199, 0.699134, 0.715729, 0.735782,
0.758941, 0.784714, 0.812467, 0.841445, 0.870777, 0.899504,
0.926595, 0.950977, 0.971561, 0.987269, 0.997069, 1,
0.995203, 0.981946, 0.959648, 0.927899, 0.886477, 0.835355,
0.774714, 0.704935, 0.626603, 0.540488, 0.447538, 0.348853,
0.245662, 0.139296
};
static const float WAVE_EXPONENTIAL_078[DEFAULT_WAVELEN] = {
0.0603948, 0.00491931, -0.0505338, -0.105773, -0.160608, -0.214852,
-0.268321, -0.320838, -0.37223, -0.422331, -0.470986, -0.518045,
-0.56337, -0.606834, -0.648319, -0.68772, -0.724946, -0.759915,
-0.792561, -0.82283, -0.850684, -0.876094, -0.899049, -0.91955,
-0.93761, -0.953257, -0.966529, -0.97748, -0.986173, -0.992681,
-0.997091, -0.999496, -1, -0.998714, -0.995758, -0.991254,
-0.985334, -0.978131, -0.969783, -0.960429, -0.95021, -0.939267,
-0.927741, -0.915771, -0.903491, -0.891036, -0.878534, -0.866107,
-0.853874, -0.841944, -0.830422, -0.819404, -0.808976, -0.799219,
-0.790201, -0.781984, -0.77462, -0.768149, -0.762603, -0.758006,
-0.754371, -0.7517, -0.74999, -0.749225, -0.749384, -0.750437,
-0.752346, -0.755067, -0.758549, -0.762735, -0.767566, -0.772974,
-0.778892, -0.785246, -0.791964, -0.798968, -0.806184, -0.813534,
-0.820943, -0.828337, -0.835644, -0.842794, -0.84972, -0.85636,
-0.862655, -0.868552, -0.874001, -0.87896, -0.883391, -0.887262,
-0.890546, -0.893226, -0.895287, -0.896721, -0.897529, -0.897715,
-0.897291, -0.896272, -0.894681, -0.892544, -0.889894, -0.886766,
-0.8832, -0.879241, -0.874933, -0.870326, -0.865471, -0.860419,
-0.855225, -0.849941, -0.844621, -0.839318, -0.834084, -0.828968,
-0.82402, -0.819284, -0.814804, -0.810618, -0.806764, -0.803274,
-0.800175, -0.797491, -0.795243, -0.793446, -0.792108, -0.791237,
-0.790834, -0.790894, -0.79141, -0.79237, -0.793758, -0.795553,
-0.797731, -0.800264, -0.803123, -0.806275, -0.809684, -0.813312,
-0.81712, -0.821069, -0.825116, -0.829221, -0.833343, -0.837439,
-0.84147, -0.845397, -0.849183, -0.852791, -0.856189, -0.859345,
-0.862232, -0.864823, -0.867098, -0.869038, -0.870627, -0.871855,
-0.872713, -0.873198, -0.873309, -0.87305, -0.872427, -0.871451,
-0.870136, -0.868499, -0.866559, -0.864338, -0.861863, -0.859161,
-0.856259, -0.85319, -0.849985, -0.846678, -0.843301, -0.83989,
-0.836477, -0.833097, -0.829782, -0.826563, -0.823473, -0.820539,
-0.817788, -0.815247, -0.812936, -0.810877, -0.809088, -0.807581,
-0.806371, -0.805464, -0.804867, -0.804582, -0.804609, -0.804944,
-0.80558, -0.806508, -0.807716, -0.809189, -0.810909, -0.812856,
-0.81501, -0.817346, -0.81984, -0.822465, -0.825193, -0.827998,
-0.830849, -0.833718, -0.836577, -0.839397, -0.842151, -0.84481,
-0.847351, -0.849749, -0.85198, -0.854025, -0.855865, -0.857483,
-0.858864, -0.859998, -0.860875, -0.861487, -0.861833, -0.861909,
-0.861717, -0.861262, -0.86055, -0.85959, -0.858394, -0.856974,
-0.855347, -0.853531, -0.851544, -0.849407, -0.847144, -0.844776,
-0.842328, -0.839825, -0.837291, -0.834752, -0.832233, -0.829758,
-0.827351, -0.825035, -0.822833, -0.820764, -0.818848, -0.817102,
-0.815543, -0.814184, -0.813037, -0.812111, -0.811413, -0.810949,
-0.81072, -0.810728, -0.810971, -0.811443, -0.812138, -0.813048,
-0.814161, -0.815466, -0.816947, -0.818588, -0.820371, -0.822279,
-0.82429, -0.826384, -0.828539, -0.830733, -0.832945, -0.835151,
-0.83733, -0.839461, -0.841521, -0.843491, -0.845353, -0.847087,
-0.848678, -0.85011, -0.851371, -0.852447, -0.853331, -0.854014,
-0.85449, -0.854756, -0.854811, -0.854655, -0.85429, -0.853721,
-0.852956, -0.852003, -0.850871, -0.849574, -0.848124, -0.846538,
-0.84483, -0.843019, -0.841123, -0.839161, -0.837153, -0.835118,
-0.833077, -0.831049, -0.829054, -0.827112, -0.825241, -0.823459,
-0.821783, -0.820228, -0.81881, -0.81754, -0.81643, -0.815491,
-0.814729, -0.814152, -0.813764, -0.813567, -0.813561, -0.813746,
-0.814117, -0.814671, -0.815401, -0.816297, -0.81735, -0.818547,
-0.819877, -0.821325, -0.822876, -0.824513, -0.826219, -0.827978,
-0.82977, -0.831578, -0.833383, -0.835167, -0.836913, -0.838603,
-0.84022, -0.841749, -0.843174, -0.844481, -0.845659, -0.846695,
-0.84758, -0.848306, -0.848865, -0.849254, -0.849468, -0.849507,
-0.84937, -0.849059, -0.848579, -0.847933, -0.847131, -0.846179,
-0.845087, -0.843868, -0.842533, -0.841095, -0.83957, -0.837973,
-0.836318, -0.834624, -0.832906, -0.831181, -0.829465, -0.827777,
-0.826132, -0.824545, -0.823032, -0.821607, -0.820283, -0.819073,
-0.817988, -0.817038, -0.816231, -0.815574, -0.815073, -0.814731,
-0.814551, -0.814534, -0.814678, -0.814981, -0.81544, -0.816047,
-0.816797, -0.817681, -0.818689, -0.819811, -0.821034, -0.822345,
-0.823731, -0.825178, -0.826669, -0.828191, -0.829727, -0.831262,
-0.83278, -0.834266, -0.835706, -0.837083, -0.838386, -0.8396,
-0.840715, -0.841718, -0.842601, -0.843354, -0.84397, -0.844443,
-0.84477, -0.844946, -0.844971, -0.844845, -0.844568, -0.844145,
-0.843578, -0.842876, -0.842043, -0.84109, -0.840024, -0.838858,
-0.837603, -0.83627, -0.834874, -0.833428, -0.831946, -0.830442,
-0.828932, -0.827429, -0.825949, -0.824505, -0.823111, -0.82178,
-0.820526, -0.819359, -0.818291, -0.817331, -0.816489, -0.815771,
-0.815183, -0.814731, -0.814419, -0.814248, -0.814219, -0.814332,
-0.814584, -0.814972, -0.815492, -0.816136, -0.816899, -0.817771,
-0.818743, -0.819805, -0.820945, -0.822152, -0.823412, -0.824713,
-0.82604, -0.827382, -0.828723, -0.83005, -0.83135, -0.832608,
-0.833814, -0.834953, -0.836015, -0.83699, -0.837867, -0.838637,
-0.839293, -0.839828, -0.840238, -0.840517, -0.840663, -0.840675,
-0.840553, -0.840297, -0.839911, -0.839398, -0.838764, -0.838014,
-0.837156, -0.836198, -0.83515, -0.834021, -0.832824, -0.831569,
-0.830269, -0.828937, -0.827584, -0.826225, -0.824872, -0.823538,
-0.822235, -0.820977, -0.819775, -0.818641, -0.817584, -0.816615,
-0.815742, -0.814973, -0.814316, -0.813775, -0.813356, -0.813061,
-0.812893, -0.812852, -0.812938, -0.81315, -0.813483, -0.813935,
-0.814499, -0.81517, -0.815939, -0.816799, -0.817739, -0.818751,
-0.819822, -0.820943, -0.822101, -0.823283, -0.824478, -0.825674,
-0.826858, -0.828017, -0.82914, -0.830215, -0.831231, -0.832178,
-0.833046, -0.833826, -0.83451, -0.835092, -0.835564, -0.835922,
-0.836163, -0.836284, -0.836283, -0.83616, -0.835917, -0.835555,
-0.835077, -0.834489, -0.833797, -0.833005, -0.832123, -0.831158,
-0.83012, -0.829019, -0.827865, -0.82667, -0.825444, -0.8242,
-0.822948, -0.821702, -0.820473, -0.819272, -0.818111, -0.817,
-0.815951, -0.814971, -0.814071, -0.813259, -0.812542, -0.811925,
-0.811415, -0.811016, -0.81073, -0.81056, -0.810506, -0.810568,
-0.810745, -0.811034, -0.81143, -0.81193, -0.812528, -0.813216,
-0.813987, -0.814833, -0.815744, -0.81671, -0.817722, -0.818768,
-0.819838, -0.82092, -0.822002, -0.823074, -0.824123, -0.82514,
-0.826114, -0.827033, -0.827889, -0.828673, -0.829377, -0.829992,
-0.830513, -0.830934, -0.83125, -0.831457, -0.831554, -0.831539,
-0.831412, -0.831173, -0.830825, -0.83037, -0.829813, -0.829159,
-0.828414, -0.827584, -0.826678, -0.825704, -0.824671, -0.823588,
-0.822467, -0.821317, -0.82015, -0.818976, -0.817806, -0.816651,
-0.815522, -0.814429, -0.813383, -0.812392, -0.811467, -0.810615,
-0.809843, -0.80916, -0.80857, -0.808078, -0.807689, -0.807405,
-0.807228, -0.807159, -0.807198, -0.807344, -0.807593, -0.807943,
-0.808389, -0.808926, -0.809548, -0.810247, -0.811016, -0.811846,
-0.812728, -0.813652, -0.814609, -0.815587, -0.816578, -0.817569,
-0.818551, -0.819513, -0.820444, -0.821335, -0.822177, -0.822959,
-0.823674, -0.824314, -0.824872, -0.825342, -0.825718, -0.825997,
-0.826175, -0.826249, -0.826218, -0.826082, -0.825842, -0.825499,
-0.825056, -0.824518, -0.823888, -0.823172, -0.822377, -0.82151,
-0.820579, -0.819592, -0.818559, -0.817489, -0.816391, -0.815277,
-0.814156, -0.813038, -0.811934, -0.810854, -0.809808, -0.808805,
-0.807854, -0.806963, -0.806142, -0.805396, -0.804732, -0.804156,
-0.803672, -0.803284, -0.802996, -0.802808, -0.802722, -0.802737,
-0.802853, -0.803067, -0.803375, -0.803774, -0.80426, -0.804825,
-0.805463, -0.806167, -0.806929, -0.80774, -0.808592, -0.809475,
-0.810379, -0.811294, -0.81221, -0.813117, -0.814006, -0.814867,
-0.815689, -0.816465, -0.817185, -0.817842, -0.818428, -0.818936,
-0.819361, -0.819698, -0.819942, -0.820091, -0.820141, -0.820092,
-0.819944, -0.819696, -0.819351, -0.818911, -0.81838, -0.817762,
-0.817063, -0.816288, -0.815444, -0.814539, -0.813581, -0.812578,
-0.81154, -0.810476, -0.809395, -0.808307, -0.807222, -0.80615,
-0.8051, -0.804082, -0.803104, -0.802176, -0.801305, -0.800499,
-0.799765, -0.799109, -0.798536, -0.798051, -0.797658, -0.797358,
-0.797155, -0.797048, -0.797039, -0.797124, -0.797304, -0.797573,
-0.79793, -0.798368, -0.798883, -0.799468, -0.800116, -0.80082,
-0.801571, -0.802361, -0.80318, -0.80402, -0.804871, -0.805723,
-0.806567, -0.807394, -0.808193, -0.808957, -0.809676, -0.810342,
-0.810948, -0.811485, -0.811949, -0.812333, -0.812633, -0.812844,
-0.812963, -0.812988, -0.812918, -0.812752, -0.812491, -0.812137,
-0.811691, -0.811158, -0.810541, -0.809845, -0.809077, -0.808242,
-0.807349, -0.806404, -0.805416, -0.804393, -0.803345, -0.80228,
-0.801209, -0.80014, -0.799082, -0.798046, -0.79704, -0.796073,
-0.795152, -0.794287, -0.793484, -0.79275, -0.79209, -0.791511,
-0.791016, -0.790609, -0.790292, -0.790068, -0.789937, -0.7899,
-0.789954, -0.790099, -0.790331, -0.790647, -0.791041, -0.79151,
-0.792047, -0.792644, -0.793296, -0.793993, -0.794728, -0.795491,
-0.796275, -0.79707, -0.797866, -0.798655, -0.799426, -0.800172,
-0.800883, -0.801551, -0.802169, -0.802727, -0.803221, -0.803642,
-0.803987, -0.80425, -0.804427, -0.804515, -0.804512, -0.804417,
-0.804229, -0.803948, -0.803577, -0.803117, -0.802572, -0.801946,
-0.801243, -0.800469, -0.799631, -0.798734, -0.797788, -0.7968,
-0.795777, -0.79473, -0.793666, -0.792595, -0.791526, -0.790468,
-0.78943, -0.788421, -0.78745, -0.786524, -0.785651, -0.784838,
-0.784092, -0.783418, -0.782822, -0.782308, -0.78188, -0.781539,
-0.781289, -0.781129, -0.781059, -0.78108, -0.781188, -0.781382,
-0.781657, -0.782009, -0.782433, -0.782924, -0.783474, -0.784077,
-0.784725, -0.78541, -0.786123, -0.786855, -0.787599, -0.788344,
-0.789082, -0.789804, -0.7905, -0.791163, -0.791784, -0.792356,
-0.79287, -0.79332, -0.793701, -0.794006, -0.794231, -0.794373,
-0.794427, -0.794392, -0.794267, -0.79405, -0.793743, -0.793347,
-0.792864, -0.792298, -0.791651, -0.790929, -0.790138, -0.789282,
-0.78837, -0.787409, -0.786405, -0.785369, -0.784307, -0.783228,
-0.782142, -0.781058, -0.779985, -0.77893, -0.777904, -0.776914,
-0.775968, -0.775074, -0.774239, -0.77347, -0.772771, -0.772148,
-0.771606, -0.771147, -0.770775, -0.770491, -0.770296, -0.77019,
-0.770172, -0.770241, -0.770394, -0.770627, -0.770936, -0.771316,
-0.771761, -0.772265, -0.772821, -0.773422, -0.774059, -0.774724,
-0.775408, -0.776104, -0.776801, -0.777491, -0.778166, -0.778815,
-0.779432, -0.780007, -0.780534, -0.781004, -0.781412, -0.78175,
-0.782014, -0.782199, -0.782301, -0.782317, -0.782245, -0.782084,
-0.781832, -0.781491, -0.781061, -0.780546, -0.779947, -0.779269,
-0.778516, -0.777694, -0.776809, -0.775867, -0.774875, -0.773842,
-0.772776, -0.771684, -0.770575, -0.769459, -0.768344, -0.767239,
-0.766153, -0.765094, -0.764071, -0.763091, -0.762163, -0.761292,
-0.760486, -0.75975, -0.759089, -0.758508, -0.758009, -0.757597,
-0.757271, -0.757034, -0.756885, -0.756824, -0.756849, -0.756957,
-0.757144, -0.757407, -0.757741, -0.75814, -0.758598, -0.759107,
-0.75966, -0.76025, -0.760868, -0.761505, -0.762154, -0.762804,
-0.763448, -0.764075, -0.764679, -0.765249, -0.765779, -0.76626,
-0.766685, -0.767047, -0.767341, -0.767561, -0.767701, -0.76776,
-0.767732, -0.767616, -0.767411, -0.767116, -0.766731, -0.766258,
-0.765698, -0.765056, -0.764334, -0.763537, -0.762671, -0.761741,
-0.760754, -0.759718, -0.758639, -0.757526, -0.756388, -0.755233,
-0.75407, -0.752907, -0.751754, -0.75062, -0.749512, -0.74844,
-0.747411, -0.746432, -0.745512, -0.744655, -0.743869, -0.743157,
-0.742525, -0.741976, -0.741512, -0.741136, -0.740848, -0.740648,
-0.740536, -0.74051, -0.740568, -0.740705, -0.740918, -0.741203,
-0.741552, -0.74196, -0.742421, -0.742925, -0.743467, -0.744037,
-0.744626, -0.745227, -0.745829, -0.746425, -0.747005, -0.747561,
-0.748084, -0.748566, -0.748999, -0.749376, -0.749689, -0.749934,
-0.750104, -0.750195, -0.750202, -0.750123, -0.749956, -0.749698,
-0.749349, -0.74891, -0.748381, -0.747766, -0.747066, -0.746287,
-0.745431, -0.744505, -0.743514, -0.742466, -0.741367, -0.740225,
-0.739049, -0.737846, -0.736626, -0.735397, -0.734168, -0.732949,
-0.731748, -0.730573, -0.729434, -0.728338, -0.727293, -0.726306,
-0.725383, -0.724531, -0.723754, -0.723058, -0.722444, -0.721917,
-0.721479, -0.721129, -0.720869, -0.720697, -0.720613, -0.720612,
-0.720693, -0.72085, -0.721079, -0.721375, -0.72173, -0.722137,
-0.72259, -0.72308, -0.723599, -0.724138, -0.724688, -0.725241,
-0.725786, -0.726316, -0.726822, -0.727293, -0.727724, -0.728104,
-0.728428, -0.728688, -0.728877, -0.728991, -0.729024, -0.728973,
-0.728833, -0.728603, -0.728281, -0.727867, -0.727361, -0.726763,
-0.726077, -0.725305, -0.724451, -0.723519, -0.722516, -0.721446,
-0.720317, -0.719136, -0.717912, -0.716651, -0.715363, -0.714057,
-0.712741, -0.711425, -0.710119, -0.70883, -0.707568, -0.706341,
-0.705159, -0.704027, -0.702955, -0.701948, -0.701012, -0.700153,
-0.699375, -0.698683, -0.698078, -0.697563, -0.697139, -0.696806,
-0.696564, -0.69641, -0.696342, -0.696357, -0.69645, -0.696617,
-0.696851, -0.697147, -0.697496, -0.697892, -0.698326, -0.698789,
-0.699273, -0.699769, -0.700267, -0.700758, -0.701233, -0.701683,
-0.702099, -0.702472, -0.702794, -0.703058, -0.703257, -0.703383,
-0.703432, -0.703398, -0.703276, -0.703065, -0.70276, -0.702361,
-0.701867, -0.701278, -0.700595, -0.699821, -0.698958, -0.69801,
-0.696983, -0.69588, -0.69471, -0.693479, -0.692193, -0.690862,
-0.689493, -0.688096, -0.686679, -0.685252, -0.683825, -0.682406,
-0.681006, -0.679632, -0.678295, -0.677002, -0.675761, -0.674581,
-0.673468, -0.672428, -0.671466, -0.670588, -0.669798, -0.669098,
-0.66849, -0.667976, -0.667555, -0.667228, -0.666992, -0.666845,
-0.666783, -0.666802, -0.666897, -0.667062, -0.66729, -0.667573,
-0.667905, -0.668276, -0.668677, -0.6691, -0.669536, -0.669973,
-0.670404, -0.670818, -0.671206, -0.671558, -0.671867, -0.672123,
-0.672319, -0.672446, -0.672499, -0.672471, -0.672358, -0.672154,
-0.671856, -0.671461, -0.670969, -0.670377, -0.669687, -0.668899,
-0.668015, -0.66704, -0.665976, -0.664829, -0.663603, -0.662307,
-0.660946, -0.659529, -0.658063, -0.656558, -0.655023, -0.653467,
-0.6519, -0.650332, -0.648772, -0.647231, -0.645717, -0.64424,
-0.642809, -0.641432, -0.640118, -0.638872, -0.637703, -0.636615,
-0.635613, -0.634702, -0.633886, -0.633165, -0.632541, -0.632015,
-0.631587, -0.631253, -0.631011, -0.630859, -0.630791, -0.630802,
-0.630886, -0.631036, -0.631245, -0.631503, -0.631803, -0.632134,
-0.632488, -0.632855, -0.633225, -0.633587, -0.633932, -0.63425,
-0.634531, -0.634765, -0.634945, -0.635061, -0.635106, -0.635073,
-0.634955, -0.634747, -0.634445, -0.634043, -0.63354, -0.632934,
-0.632224, -0.63141, -0.630493, -0.629476, -0.628361, -0.627153,
-0.625857, -0.624479, -0.623025, -0.621504, -0.619922, -0.618289,
-0.616614, -0.614906, -0.613177, -0.611434, -0.60969, -0.607954,
-0.606237, -0.604548, -0.602898, -0.601295, -0.599749, -0.598267,
-0.596858, -0.595529, -0.594285, -0.593131, -0.592073, -0.591114,
-0.590256, -0.5895, -0.588846, -0.588295, -0.587844, -0.587491,
-0.587232, -0.587061, -0.586974, -0.586964, -0.587024, -0.587145,
-0.587319, -0.587537, -0.587789, -0.588065, -0.588354, -0.588646,
-0.588931, -0.589197, -0.589434, -0.589633, -0.589783, -0.589874,
-0.589898, -0.589847, -0.589712, -0.589488, -0.589168, -0.588747,
-0.588221, -0.587588, -0.586844, -0.58599, -0.585025, -0.58395,
-0.582768, -0.581482, -0.580097, -0.578617, -0.57705, -0.575401,
-0.57368, -0.571894, -0.570052, -0.568166, -0.566244, -0.564297,
-0.562337, -0.560374, -0.558419, -0.556483, -0.554576, -0.55271,
-0.550894, -0.549138, -0.54745, -0.545839, -0.544312, -0.542876,
-0.541536, -0.540298, -0.539165, -0.538139, -0.537222, -0.536415,
-0.535717, -0.535126, -0.534639, -0.534252, -0.533961, -0.533758,
-0.533638, -0.533593, -0.533614, -0.533691, -0.533816, -0.533977,
-0.534164, -0.534365, -0.534569, -0.534766, -0.534942, -0.535089,
-0.535193, -0.535245, -0.535234, -0.535151, -0.534987, -0.534733,
-0.534383, -0.53393, -0.533368, -0.532693, -0.531901, -0.530991,
-0.529962, -0.528812, -0.527545, -0.526161, -0.524665, -0.523061,
-0.521354, -0.519552, -0.517662, -0.515693, -0.513653, -0.511553,
-0.509403, -0.507214, -0.504998, -0.502766, -0.50053, -0.498302,
-0.496094, -0.493917, -0.491782, -0.489702, -0.487685, -0.485742,
-0.483881, -0.48211, -0.480438, -0.478869, -0.47741, -0.476064,
-0.474835, -0.473723, -0.47273, -0.471855, -0.471096, -0.470449,
-0.469912, -0.469478, -0.469141, -0.468893, -0.468727, -0.468632,
-0.4686, -0.468618, -0.468677, -0.468763, -0.468866, -0.468972,
-0.46907, -0.469146, -0.469189, -0.469187, -0.469128, -0.469,
-0.468793, -0.468498, -0.468106, -0.467607, -0.466996, -0.466266,
-0.465413, -0.464431, -0.46332, -0.462077, -0.460703, -0.459199,
-0.457567, -0.455812, -0.453937, -0.45195, -0.449858, -0.447668,
-0.44539, -0.443034, -0.44061, -0.438132, -0.435609, -0.433056,
-0.430484, -0.427908, -0.425338, -0.42279, -0.420276, -0.417807,
-0.415396, -0.413055, -0.410794, -0.408623, -0.406551, -0.404587,
-0.402736, -0.401005, -0.399399, -0.397921, -0.396573, -0.395355,
-0.394267, -0.393307, -0.392472, -0.391757, -0.391157, -0.390663,
-0.390269, -0.389965, -0.389741, -0.389585, -0.389487, -0.389433,
-0.38941, -0.389405, -0.389405, -0.389395, -0.389363, -0.389293,
-0.389173, -0.38899, -0.388731, -0.388385, -0.387941, -0.387388,
-0.386717, -0.385921, -0.384992, -0.383925, -0.382715, -0.381361,
-0.379859, -0.37821, -0.376416, -0.374479, -0.372403, -0.370193,
-0.367856, -0.365401, -0.362836, -0.360171, -0.357418, -0.354589,
-0.351697, -0.348755, -0.345777, -0.342777, -0.33977, -0.336771,
-0.333795, -0.330855, -0.327965, -0.32514, -0.322392, -0.319733,
-0.317174, -0.314726, -0.312398, -0.310198, -0.308133, -0.306207,
-0.304425, -0.302789, -0.3013, -0.299957, -0.298759, -0.297702,
-0.296781, -0.295989, -0.295318, -0.29476, -0.294304, -0.293939,
-0.293652, -0.29343, -0.293259, -0.293124, -0.29301, -0.292902,
-0.292783, -0.292639, -0.292454, -0.292211, -0.291898, -0.291499,
-0.291, -0.29039, -0.289657, -0.28879, -0.287779, -0.286618,
-0.285298, -0.283816, -0.282168, -0.280352, -0.278367, -0.276215,
-0.273899, -0.271424, -0.268794, -0.266018, -0.263106, -0.260066,
-0.256911, -0.253654, -0.250308, -0.246888, -0.24341, -0.239889,
-0.236342, -0.232785, -0.229236, -0.225711, -0.222227, -0.218801,
-0.215447, -0.212181, -0.209016, -0.205967, -0.203045, -0.200261,
-0.197624, -0.195141, -0.19282, -0.190665, -0.18868, -0.186864,
-0.185219, -0.183741, -0.182426, -0.18127, -0.180265, -0.179401,
-0.178669, -0.178057, -0.177551, -0.177137, -0.176799, -0.176522,
-0.176288, -0.17608, -0.175879, -0.175668, -0.175427, -0.175139,
-0.174786, -0.17435, -0.173814, -0.173163, -0.172382, -0.171456,
-0.170374, -0.169123, -0.167696, -0.166082, -0.164278, -0.162277,
-0.160078, -0.15768, -0.155084, -0.152294, -0.149313, -0.146151,
-0.142814, -0.139314, -0.135662, -0.131873, -0.127961, -0.123941,
-0.119833, -0.115653, -0.111421, -0.107156, -0.102878, -0.0986068,
-0.0943634, -0.0901671, -0.0860374, -0.0819931, -0.0780523, -0.0742321,
-0.0705483, -0.0670155, -0.0636469, -0.0604539, -0.0574462, -0.0546318,
-0.0520165, -0.0496044, -0.0473974, -0.0453951, -0.0435953, -0.0419936,
-0.0405834, -0.0393562, -0.0383016, -0.0374071, -0.0366589, -0.0360411,
-0.0355365, -0.0351267, -0.0347921, -0.0345119, -0.0342649, -0.0340291,
-0.0337823, -0.0335021, -0.0331662, -0.0327527, -0.03224, -0.0316075,
-0.0308356, -0.0299056, -0.0288003, -0.0275042, -0.0260032, -0.0242852,
-0.0223402, -0.0201601, -0.0177392, -0.0150738, -0.0121627, -0.00900718,
-0.00561061, -0.00197885, 0.00187995, 0.00595544, 0.0102351, 0.0147043,
0.0193466, 0.0241438, 0.0290759, 0.0341218, 0.0392589, 0.0444637,
0.0497119, 0.0549787, 0.0602391, 0.0654677, 0.0706397, 0.0757304,
0.0807161, 0.0855737, 0.0902815, 0.0948191, 0.0991678, 0.10331,
0.107232, 0.11092, 0.114364, 0.117555, 0.120489, 0.123161,
0.125572, 0.127724, 0.129622, 0.131273, 0.132689, 0.133881,
0.134865, 0.135659, 0.136282, 0.136756, 0.137104, 0.137351,
0.137524, 0.137649, 0.137756, 0.137872, 0.138027, 0.138249,
0.138568, 0.139012, 0.139607, 0.14038, 0.141355, 0.142556,
0.144003, 0.145715, 0.14771, 0.150001, 0.152599, 0.155513,
0.158749, 0.162308, 0.166191, 0.170394, 0.17491, 0.179728,
0.184837, 0.19022, 0.195859, 0.201733, 0.207817, 0.214086,
0.220511, 0.227064, 0.233712, 0.240423, 0.247165, 0.253902,
0.260602, 0.267229, 0.27375, 0.280133, 0.286345, 0.292355,
0.298137, 0.303662, 0.308906, 0.313848, 0.318469, 0.322753,
0.326688, 0.330264, 0.333476, 0.336321, 0.338802, 0.340924,
0.342697, 0.344132, 0.345247, 0.346062, 0.3466, 0.346888,
0.346955, 0.346833, 0.346558, 0.346164, 0.345692, 0.345181,
0.344672, 0.344206, 0.343826, 0.343573, 0.343489, 0.343613,
0.343984, 0.344641, 0.345617, 0.346946, 0.348656, 0.350774,
0.353323, 0.356323, 0.359787, 0.363727, 0.368149, 0.373055,
0.378443, 0.384304, 0.390626, 0.397393, 0.404584, 0.412172,
0.420127, 0.428416, 0.437, 0.445838, 0.454886, 0.464097,
0.473421, 0.482807, 0.492202, 0.501553, 0.510805, 0.519904,
0.528797, 0.537431, 0.545757, 0.553724, 0.561288, 0.568405,
0.575038, 0.58115, 0.586712, 0.591698, 0.596088, 0.599868,
0.603027, 0.605565, 0.607483, 0.608791, 0.609506, 0.609649,
0.609249, 0.60834, 0.606964, 0.605165, 0.602995, 0.600512,
0.597775, 0.594851, 0.591807, 0.588716, 0.585652, 0.58269,
0.579909, 0.577387, 0.575199, 0.573424, 0.572136, 0.571407,
0.571306, 0.571899, 0.573247, 0.575405, 0.578423, 0.582342,
0.5872, 0.593024, 0.599834, 0.607642, 0.616448, 0.626248,
0.637023, 0.648747, 0.661385, 0.67489, 0.689207, 0.704269,
0.720003, 0.736324, 0.75314, 0.770349, 0.787842, 0.805503,
0.823209, 0.840831, 0.858236, 0.875286, 0.891838, 0.907749,
0.922872, 0.937062, 0.950172, 0.962059, 0.972579, 0.981593,
0.988969, 0.994575, 0.998291, 1, 0.999595, 0.996979,
0.992063, 0.984768, 0.97503, 0.962793, 0.948014, 0.930665,
0.910729, 0.888204, 0.8631, 0.835442, 0.805269, 0.772633,
0.737598, 0.700245, 0.660666, 0.618963, 0.575254, 0.529665,
0.482336, 0.433413, 0.383053, 0.331421, 0.27869, 0.225036,
0.170644, 0.1157
};
static const float WAVE_EXPONENTIAL_090[DEFAULT_WAVELEN] = {
0.114019, 0.085264, 0.0564473, 0.027596, -0.00126311, -0.0301032,
-0.0588977, -0.08762, -0.116244, -0.144743, -0.173091, -0.201263,
-0.229234, -0.256978, -0.284471, -0.311689, -0.338607, -0.365204,
-0.391456, -0.417342, -0.44284, -0.467928, -0.492588, -0.516799,
-0.540544, -0.563803, -0.586561, -0.6088, -0.630504, -0.65166,
-0.672254, -0.692272, -0.711702, -0.730534, -0.748757, -0.766361,
-0.783338, -0.799682, -0.815384, -0.830441, -0.844847, -0.858598,
-0.871693, -0.884129, -0.895905, -0.907023, -0.917482, -0.927285,
-0.936436, -0.944937, -0.952794, -0.960012, -0.966599, -0.97256,
-0.977906, -0.982643, -0.986783, -0.990336, -0.993313, -0.995726,
-0.997587, -0.998911, -0.99971, -1, -0.999795, -0.999112,
-0.997965, -0.996373, -0.994351, -0.991917, -0.98909, -0.985886,
-0.982325, -0.978424, -0.974204, -0.969682, -0.964878, -0.959812,
-0.954503, -0.94897, -0.943232, -0.93731, -0.931222, -0.924988,
-0.918626, -0.912156, -0.905597, -0.898966, -0.892283, -0.885566,
-0.878831, -0.872097, -0.86538, -0.858696, -0.852063, -0.845495,
-0.839008, -0.832617, -0.826335, -0.820176, -0.814154, -0.808281,
-0.802569, -0.797029, -0.791672, -0.786507, -0.781546, -0.776795,
-0.772263, -0.767959, -0.763887, -0.760056, -0.756469, -0.753132,
-0.75005, -0.747224, -0.744659, -0.742355, -0.740316, -0.73854,
-0.737029, -0.735782, -0.734798, -0.734075, -0.73361, -0.733401,
-0.733444, -0.733736, -0.734271, -0.735044, -0.73605, -0.737283,
-0.738736, -0.740403, -0.742275, -0.744345, -0.746605, -0.749047,
-0.75166, -0.754438, -0.757369, -0.760445, -0.763655, -0.76699,
-0.770439, -0.773992, -0.777638, -0.781368, -0.785169, -0.789033,
-0.792947, -0.796902, -0.800886, -0.80489, -0.808902, -0.812912,
-0.816911, -0.820888, -0.824833, -0.828736, -0.832589, -0.836381,
-0.840105, -0.84375, -0.847309, -0.850774, -0.854137, -0.85739,
-0.860527, -0.863541, -0.866425, -0.869174, -0.871782, -0.874243,
-0.876555, -0.878711, -0.880708, -0.882544, -0.884214, -0.885717,
-0.88705, -0.888212, -0.889201, -0.890017, -0.89066, -0.891129,
-0.891425, -0.89155, -0.891504, -0.89129, -0.890909, -0.890365,
-0.889659, -0.888797, -0.88778, -0.886614, -0.885303, -0.883851,
-0.882263, -0.880545, -0.878703, -0.876742, -0.874668, -0.872487,
-0.870207, -0.867833, -0.865373, -0.862834, -0.860222, -0.857546,
-0.854812, -0.852027, -0.8492, -0.846338, -0.843448, -0.840538,
-0.837616, -0.834689, -0.831764, -0.828849, -0.825951, -0.823077,
-0.820234, -0.81743, -0.814671, -0.811963, -0.809314, -0.806728,
-0.804213, -0.801773, -0.799416, -0.797144, -0.794965, -0.792882,
-0.7909, -0.789024, -0.787256, -0.785601, -0.784061, -0.782641,
-0.781342, -0.780166, -0.779116, -0.778194, -0.7774, -0.776735,
-0.776201, -0.775797, -0.775524, -0.775381, -0.775367, -0.775481,
-0.775723, -0.77609, -0.77658, -0.777192, -0.777923, -0.778769,
-0.779729, -0.780798, -0.781973, -0.78325, -0.784625, -0.786094,
-0.787652, -0.789295, -0.791017, -0.792815, -0.794682, -0.796613,
-0.798604, -0.800647, -0.802738, -0.804871, -0.80704, -0.80924,
-0.811464, -0.813706, -0.815961, -0.818223, -0.820485, -0.822743,
-0.824989, -0.827219, -0.829427, -0.831607, -0.833753, -0.835862,
-0.837926, -0.839942, -0.841904, -0.843807, -0.845648, -0.847421,
-0.849123, -0.850749, -0.852296, -0.85376, -0.855138, -0.856427,
-0.857624, -0.858727, -0.859733, -0.86064, -0.861446, -0.86215,
-0.862751, -0.863248, -0.863639, -0.863925, -0.864105, -0.86418,
-0.864149, -0.864014, -0.863774, -0.863433, -0.86299, -0.862447,
-0.861807, -0.861071, -0.860242, -0.859322, -0.858314, -0.857222,
-0.856048, -0.854795, -0.853468, -0.852069, -0.850604, -0.849075,
-0.847488, -0.845846, -0.844153, -0.842415, -0.840636, -0.83882,
-0.836972, -0.835098, -0.833202, -0.831288, -0.829362, -0.827429,
-0.825494, -0.82356, -0.821634, -0.81972, -0.817823, -0.815947,
-0.814098, -0.812279, -0.810494, -0.808749, -0.807048, -0.805394,
-0.803791, -0.802243, -0.800754, -0.799327, -0.797965, -0.796672,
-0.79545, -0.794302, -0.79323, -0.792237, -0.791325, -0.790496,
-0.78975, -0.789091, -0.788518, -0.788033, -0.787636, -0.787328,
-0.78711, -0.786981, -0.786941, -0.78699, -0.787127, -0.787351,
-0.787661, -0.788056, -0.788535, -0.789095, -0.789735, -0.790453,
-0.791246, -0.792111, -0.793048, -0.794051, -0.79512, -0.796249,
-0.797437, -0.79868, -0.799973, -0.801315, -0.8027, -0.804125,
-0.805587, -0.807081, -0.808602, -0.810148, -0.811714, -0.813295,
-0.814888, -0.816487, -0.81809, -0.819692, -0.821289, -0.822875,
-0.824449, -0.826004, -0.827538, -0.829046, -0.830525, -0.83197,
-0.833379, -0.834747, -0.836071, -0.837348, -0.838575, -0.839748,
-0.840866, -0.841924, -0.84292, -0.843853, -0.844719, -0.845517,
-0.846245, -0.846901, -0.847484, -0.847993, -0.848425, -0.848781,
-0.84906, -0.84926, -0.849383, -0.849427, -0.849393, -0.849281,
-0.849092, -0.848825, -0.848483, -0.848066, -0.847575, -0.847012,
-0.846379, -0.845676, -0.844907, -0.844073, -0.843176, -0.842219,
-0.841204, -0.840135, -0.839014, -0.837843, -0.836626, -0.835367,
-0.834067, -0.832732, -0.831363, -0.829965, -0.828541, -0.827095,
-0.825631, -0.824151, -0.822661, -0.821162, -0.819661, -0.818159,
-0.816661, -0.81517, -0.813691, -0.812226, -0.810779, -0.809354,
-0.807955, -0.806584, -0.805245, -0.80394, -0.802675, -0.80145,
-0.800269, -0.799135, -0.79805, -0.797017, -0.796039, -0.795116,
-0.794252, -0.793448, -0.792707, -0.792029, -0.791416, -0.790869,
-0.790389, -0.789977, -0.789635, -0.789361, -0.789157, -0.789023,
-0.788959, -0.788965, -0.78904, -0.789183, -0.789395, -0.789674,
-0.790018, -0.790428, -0.790901, -0.791436, -0.792031, -0.792685,
-0.793394, -0.794159, -0.794975, -0.79584, -0.796753, -0.797711,
-0.79871, -0.799748, -0.800822, -0.801929, -0.803066, -0.80423,
-0.805417, -0.806625, -0.80785, -0.809089, -0.810338, -0.811595,
-0.812855, -0.814115, -0.815372, -0.816623, -0.817864, -0.819091,
-0.820303, -0.821495, -0.822665, -0.823809, -0.824924, -0.826007,
-0.827056, -0.828068, -0.82904, -0.829969, -0.830854, -0.831692,
-0.832481, -0.833218, -0.833902, -0.834531, -0.835104, -0.835618,
-0.836074, -0.836469, -0.836802, -0.837073, -0.837281, -0.837426,
-0.837507, -0.837523, -0.837476, -0.837364, -0.837189, -0.83695,
-0.836649, -0.836286, -0.835862, -0.835378, -0.834836, -0.834236,
-0.833581, -0.832871, -0.832109, -0.831297, -0.830436, -0.829529,
-0.828578, -0.827586, -0.826555, -0.825486, -0.824385, -0.823251,
-0.82209, -0.820903, -0.819693, -0.818464, -0.817219, -0.815959,
-0.81469, -0.813413, -0.812131, -0.810849, -0.809568, -0.808293,
-0.807026, -0.80577, -0.804528, -0.803303, -0.802098, -0.800916,
-0.79976, -0.798632, -0.797535, -0.796472, -0.795445, -0.794456,
-0.793508, -0.792603, -0.791742, -0.790928, -0.790163, -0.789448,
-0.788784, -0.788174, -0.787618, -0.787118, -0.786674, -0.786287,
-0.785958, -0.785688, -0.785476, -0.785323, -0.78523, -0.785195,
-0.78522, -0.785302, -0.785443, -0.785641, -0.785895, -0.786204,
-0.786568, -0.786985, -0.787453, -0.787971, -0.788539, -0.789152,
-0.789811, -0.790513, -0.791255, -0.792036, -0.792854, -0.793705,
-0.794588, -0.7955, -0.796438, -0.7974, -0.798384, -0.799385,
-0.800402, -0.801431, -0.80247, -0.803516, -0.804566, -0.805617,
-0.806667, -0.807711, -0.808748, -0.809774, -0.810787, -0.811784,
-0.812762, -0.813718, -0.814651, -0.815557, -0.816433, -0.817278,
-0.818089, -0.818864, -0.819601, -0.820297, -0.820951, -0.821561,
-0.822125, -0.822642, -0.82311, -0.823528, -0.823894, -0.824208,
-0.824469, -0.824675, -0.824827, -0.824923, -0.824963, -0.824948,
-0.824876, -0.824748, -0.824565, -0.824326, -0.824032, -0.823683,
-0.823281, -0.822826, -0.822319, -0.821761, -0.821154, -0.820499,
-0.819798, -0.819051, -0.818262, -0.817431, -0.816561, -0.815654,
-0.814711, -0.813736, -0.81273, -0.811695, -0.810635, -0.809551,
-0.808447, -0.807325, -0.806187, -0.805036, -0.803875, -0.802707,
-0.801533, -0.800359, -0.799184, -0.798014, -0.79685, -0.795694,
-0.794551, -0.793422, -0.792309, -0.791217, -0.790146, -0.789099,
-0.78808, -0.787089, -0.78613, -0.785204, -0.784314, -0.783461,
-0.782648, -0.781875, -0.781146, -0.78046, -0.77982, -0.779228,
-0.778683, -0.778187, -0.777741, -0.777347, -0.777003, -0.776712,
-0.776474, -0.776287, -0.776154, -0.776074, -0.776046, -0.77607,
-0.776147, -0.776274, -0.776453, -0.776681, -0.776958, -0.777283,
-0.777655, -0.778072, -0.778533, -0.779037, -0.779581, -0.780164,
-0.780784, -0.78144, -0.782129, -0.782849, -0.783598, -0.784373,
-0.785173, -0.785995, -0.786836, -0.787695, -0.788568, -0.789453,
-0.790347, -0.791248, -0.792153, -0.79306, -0.793965, -0.794867,
-0.795763, -0.796649, -0.797524, -0.798385, -0.799229, -0.800054,
-0.800858, -0.801638, -0.802392, -0.803117, -0.803812, -0.804474,
-0.805102, -0.805694, -0.806247, -0.80676, -0.807232, -0.80766,
-0.808045, -0.808383, -0.808675, -0.808919, -0.809114, -0.80926,
-0.809355, -0.8094, -0.809393, -0.809335, -0.809226, -0.809065,
-0.808852, -0.808588, -0.808274, -0.807909, -0.807494, -0.807031,
-0.806519, -0.805961, -0.805356, -0.804707, -0.804015, -0.80328,
-0.802506, -0.801693, -0.800842, -0.799957, -0.799039, -0.798089,
-0.797111, -0.796106, -0.795076, -0.794024, -0.792952, -0.791862,
-0.790757, -0.78964, -0.788512, -0.787376, -0.786236, -0.785093,
-0.78395, -0.782809, -0.781673, -0.780545, -0.779427, -0.778322,
-0.777231, -0.776158, -0.775104, -0.774073, -0.773065, -0.772084,
-0.771132, -0.77021, -0.76932, -0.768465, -0.767645, -0.766864,
-0.766121, -0.76542, -0.76476, -0.764144, -0.763572, -0.763046,
-0.762566, -0.762134, -0.761749, -0.761413, -0.761125, -0.760886,
-0.760697, -0.760557, -0.760466, -0.760424, -0.760431, -0.760486,
-0.760588, -0.760738, -0.760933, -0.761173, -0.761457, -0.761784,
-0.762152, -0.762561, -0.763007, -0.763491, -0.76401, -0.764563,
-0.765147, -0.765761, -0.766402, -0.767069, -0.767759, -0.76847,
-0.7692, -0.769947, -0.770707, -0.77148, -0.772261, -0.77305,
-0.773843, -0.774637, -0.775431, -0.776222, -0.777007, -0.777784,
-0.778551, -0.779304, -0.780043, -0.780763, -0.781464, -0.782142,
-0.782796, -0.783423, -0.784022, -0.784589, -0.785125, -0.785626,
-0.786091, -0.786518, -0.786905, -0.787252, -0.787557, -0.787818,
-0.788035, -0.788206, -0.788331, -0.788408, -0.788437, -0.788418,
-0.78835, -0.788233, -0.788066, -0.78785, -0.787584, -0.787269,
-0.786905, -0.786493, -0.786033, -0.785526, -0.784972, -0.784372,
-0.783729, -0.783042, -0.782312, -0.781543, -0.780734, -0.779887,
-0.779004, -0.778087, -0.777137, -0.776157, -0.775148, -0.774113,
-0.773053, -0.771972, -0.77087, -0.76975, -0.768615, -0.767467,
-0.766309, -0.765142, -0.763969, -0.762794, -0.761617, -0.760442,
-0.759271, -0.758106, -0.756951, -0.755806, -0.754675, -0.753561,
-0.752464, -0.751388, -0.750335, -0.749306, -0.748305, -0.747332,
-0.74639, -0.74548, -0.744605, -0.743765, -0.742963, -0.7422,
-0.741478, -0.740797, -0.740158, -0.739563, -0.739013, -0.738509,
-0.73805, -0.737638, -0.737274, -0.736957, -0.736687, -0.736465,
-0.736291, -0.736164, -0.736085, -0.736052, -0.736066, -0.736125,
-0.736229, -0.736377, -0.736567, -0.7368, -0.737073, -0.737385,
-0.737735, -0.738122, -0.738543, -0.738996, -0.739481, -0.739995,
-0.740537, -0.741103, -0.741693, -0.742303, -0.742932, -0.743578,
-0.744238, -0.74491, -0.745591, -0.746279, -0.746971, -0.747666,
-0.74836, -0.749052, -0.749738, -0.750417, -0.751086, -0.751742,
-0.752383, -0.753008, -0.753613, -0.754196, -0.754755, -0.755288,
-0.755794, -0.756269, -0.756712, -0.757122, -0.757495, -0.757832,
-0.75813, -0.758388, -0.758604, -0.758777, -0.758906, -0.758989,
-0.759027, -0.759018, -0.758961, -0.758856, -0.758702, -0.7585,
-0.758248, -0.757946, -0.757596, -0.757196, -0.756747, -0.75625,
-0.755705, -0.755112, -0.754473, -0.753788, -0.753058, -0.752285,
-0.751469, -0.750612, -0.749715, -0.748781, -0.747809, -0.746803,
-0.745764, -0.744693, -0.743593, -0.742466, -0.741314, -0.740139,
-0.738943, -0.737728, -0.736497, -0.735253, -0.733997, -0.732731,
-0.73146, -0.730184, -0.728906, -0.727629, -0.726355, -0.725087,
-0.723826, -0.722577, -0.72134, -0.720118, -0.718913, -0.717729,
-0.716566, -0.715427, -0.714315, -0.713231, -0.712176, -0.711154,
-0.710166, -0.709213, -0.708296, -0.707419, -0.706581, -0.705785,
-0.705031, -0.70432, -0.703654, -0.703034, -0.702459, -0.701931,
-0.70145, -0.701017, -0.700631, -0.700293, -0.700003, -0.699761,
-0.699566, -0.699418, -0.699317, -0.699262, -0.699252, -0.699286,
-0.699363, -0.699483, -0.699644, -0.699845, -0.700084, -0.700359,
-0.70067, -0.701015, -0.70139, -0.701796, -0.70223, -0.702689,
-0.703172, -0.703676, -0.7042, -0.70474, -0.705295, -0.705862,
-0.706439, -0.707024, -0.707613, -0.708205, -0.708796, -0.709385,
-0.709969, -0.710545, -0.711112, -0.711666, -0.712204, -0.712726,
-0.713228, -0.713708, -0.714163, -0.714593, -0.714993, -0.715364,
-0.715701, -0.716004, -0.716271, -0.716499, -0.716688, -0.716835,
-0.71694, -0.717001, -0.717016, -0.716985, -0.716906, -0.716779,
-0.716603, -0.716377, -0.716101, -0.715774, -0.715396, -0.714967,
-0.714487, -0.713956, -0.713374, -0.712742, -0.712059, -0.711328,
-0.710547, -0.709719, -0.708844, -0.707923, -0.706958, -0.70595,
-0.7049, -0.70381, -0.702681, -0.701515, -0.700314, -0.69908,
-0.697815, -0.696521, -0.6952, -0.693854, -0.692485, -0.691097,
-0.68969, -0.688268, -0.686834, -0.685389, -0.683936, -0.682477,
-0.681016, -0.679555, -0.678095, -0.676641, -0.675194, -0.673757,
-0.672332, -0.670921, -0.669528, -0.668155, -0.666803, -0.665476,
-0.664175, -0.662902, -0.66166, -0.66045, -0.659275, -0.658135,
-0.657034, -0.655972, -0.65495, -0.653972, -0.653036, -0.652146,
-0.651301, -0.650503, -0.649753, -0.649051, -0.648398, -0.647794,
-0.647239, -0.646734, -0.646279, -0.645874, -0.645518, -0.645211,
-0.644953, -0.644742, -0.644579, -0.644462, -0.644391, -0.644363,
-0.644379, -0.644437, -0.644534, -0.644671, -0.644844, -0.645053,
-0.645295, -0.645568, -0.645871, -0.646201, -0.646556, -0.646933,
-0.647331, -0.647748, -0.648179, -0.648624, -0.649079, -0.649542,
-0.650011, -0.650482, -0.650953, -0.651422, -0.651886, -0.652341,
-0.652786, -0.653219, -0.653635, -0.654033, -0.654411, -0.654765,
-0.655093, -0.655394, -0.655664, -0.655902, -0.656105, -0.656272,
-0.6564, -0.656487, -0.656531, -0.656532, -0.656487, -0.656395,
-0.656255, -0.656064, -0.655823, -0.65553, -0.655184, -0.654785,
-0.654332, -0.653824, -0.653261, -0.652643, -0.651969, -0.651241,
-0.650457, -0.649619, -0.648727, -0.647781, -0.646783, -0.645732,
-0.644631, -0.643479, -0.642279, -0.641032, -0.639739, -0.638402,
-0.637022, -0.635602, -0.634143, -0.632647, -0.631117, -0.629554,
-0.627961, -0.626341, -0.624695, -0.623026, -0.621336, -0.619629,
-0.617907, -0.616172, -0.614428, -0.612676, -0.61092, -0.609163,
-0.607407, -0.605654, -0.603909, -0.602173, -0.600449, -0.598739,
-0.597047, -0.595375, -0.593726, -0.592102, -0.590504, -0.588937,
-0.587402, -0.5859, -0.584435, -0.583008, -0.581622, -0.580277,
-0.578976, -0.577719, -0.57651, -0.575348, -0.574235, -0.573172,
-0.572161, -0.571201, -0.570294, -0.56944, -0.568639, -0.567892,
-0.567199, -0.566559, -0.565973, -0.56544, -0.56496, -0.564532,
-0.564155, -0.563829, -0.563552, -0.563323, -0.563142, -0.563006,
-0.562913, -0.562864, -0.562854, -0.562883, -0.562949, -0.56305,
-0.563182, -0.563345, -0.563535, -0.56375, -0.563988, -0.564246,
-0.564521, -0.56481, -0.565112, -0.565422, -0.565738, -0.566057,
-0.566377, -0.566694, -0.567005, -0.567308, -0.567599, -0.567876,
-0.568136, -0.568376, -0.568593, -0.568784, -0.568947, -0.569079,
-0.569177, -0.56924, -0.569264, -0.569247, -0.569187, -0.569082,
-0.568929, -0.568728, -0.568475, -0.56817, -0.56781, -0.567395,
-0.566923, -0.566392, -0.565803, -0.565153, -0.564442, -0.56367,
-0.562836, -0.56194, -0.560981, -0.55996, -0.558876, -0.557731,
-0.556524, -0.555256, -0.553929, -0.552542, -0.551096, -0.549594,
-0.548036, -0.546424, -0.54476, -0.543045, -0.54128, -0.539469,
-0.537613, -0.535714, -0.533775, -0.531798, -0.529785, -0.52774,
-0.525665, -0.523562, -0.521435, -0.519286, -0.517119, -0.514936,
-0.51274, -0.510535, -0.508324, -0.506109, -0.503893, -0.501681,
-0.499475, -0.497278, -0.495093, -0.492923, -0.490771, -0.488641,
-0.486535, -0.484455, -0.482405, -0.480388, -0.478405, -0.47646,
-0.474555, -0.472692, -0.470874, -0.469102, -0.467378, -0.465705,
-0.464084, -0.462516, -0.461004, -0.459547, -0.458148, -0.456808,
-0.455527, -0.454305, -0.453144, -0.452044, -0.451005, -0.450027,
-0.449109, -0.448253, -0.447456, -0.446718, -0.44604, -0.445419,
-0.444854, -0.444345, -0.443889, -0.443486, -0.443134, -0.44283,
-0.442573, -0.44236, -0.44219, -0.44206, -0.441967, -0.441909,
-0.441882, -0.441885, -0.441915, -0.441967, -0.44204, -0.44213,
-0.442234, -0.442349, -0.44247, -0.442596, -0.442722, -0.442846,
-0.442963, -0.443071, -0.443165, -0.443244, -0.443302, -0.443337,
-0.443346, -0.443325, -0.443271, -0.443181, -0.443052, -0.442881,
-0.442664, -0.442401, -0.442086, -0.441719, -0.441296, -0.440815,
-0.440275, -0.439672, -0.439005, -0.438272, -0.437472, -0.436603,
-0.435664, -0.434653, -0.43357, -0.432414, -0.431184, -0.429879,
-0.4285, -0.427047, -0.425519, -0.423917, -0.422241, -0.420491,
-0.418669, -0.416776, -0.414813, -0.41278, -0.41068, -0.408514,
-0.406285, -0.403993, -0.401641, -0.399232, -0.396768, -0.394251,
-0.391684, -0.38907, -0.386412, -0.383712, -0.380975, -0.378204,
-0.375401, -0.37257, -0.369715, -0.366839, -0.363946, -0.361039,
-0.358122, -0.3552, -0.352275, -0.349351, -0.346433, -0.343523,
-0.340626, -0.337746, -0.334885, -0.332048, -0.329238, -0.326458,
-0.323713, -0.321004, -0.318337, -0.315712, -0.313135, -0.310607,
-0.308131, -0.305709, -0.303346, -0.301042, -0.298799, -0.296621,
-0.294508, -0.292462, -0.290486, -0.288579, -0.286744, -0.284981,
-0.283291, -0.281674, -0.280132, -0.278663, -0.277268, -0.275947,
-0.274699, -0.273524, -0.27242, -0.271387, -0.270423, -0.269528,
-0.268699, -0.267934, -0.267231, -0.266589, -0.266005, -0.265476,
-0.265, -0.264574, -0.264194, -0.263858, -0.263562, -0.263303,
-0.263078, -0.262882, -0.262712, -0.262564, -0.262434, -0.262318,
-0.262212, -0.262112, -0.262013, -0.261912, -0.261804, -0.261685,
-0.26155, -0.261395, -0.261217, -0.26101, -0.260771, -0.260496,
-0.260179, -0.259819, -0.259409, -0.258948, -0.25843, -0.257852,
-0.257211, -0.256504, -0.255727, -0.254877, -0.253951, -0.252947,
-0.251861, -0.250692, -0.249438, -0.248095, -0.246663, -0.24514,
-0.243524, -0.241814, -0.24001, -0.23811, -0.236114, -0.234021,
-0.231832, -0.229547, -0.227166, -0.22469, -0.222119, -0.219455,
-0.2167, -0.213853, -0.210918, -0.207896, -0.20479, -0.201602,
-0.198334, -0.194989, -0.19157, -0.188082, -0.184526, -0.180906,
-0.177226, -0.173491, -0.169703, -0.165868, -0.161989, -0.158071,
-0.154118, -0.150135, -0.146127, -0.142098, -0.138053, -0.133997,
-0.129935, -0.125872, -0.121812, -0.117762, -0.113725, -0.109707,
-0.105712, -0.101745, -0.0978113, -0.0939154, -0.0900616, -0.0862547,
-0.0824989, -0.0787986, -0.0751577, -0.0715804, -0.0680705, -0.0646315,
-0.0612671, -0.0579804, -0.0547746, -0.0516526, -0.048617, -0.0456703,
-0.0428147, -0.0400522, -0.0373846, -0.0348133, -0.0323397, -0.0299646,
-0.0276888, -0.0255128, -0.0234366, -0.0214604, -0.0195836, -0.0178057,
-0.0161257, -0.0145424, -0.0130545, -0.0116602, -0.0103574, -0.00914397,
-0.00801737, -0.00697482, -0.0060133, -0.00512954, -0.00432003, -0.00358105,
-0.00290864, -0.00229863, -0.00174664, -0.00124811, -0.000798269, -0.000392199,
-2.48035e-5, 0.000309162, 0.000615083, 0.000898469, 0.00116495, 0.00142024,
0.00167016, 0.0019206, 0.00217749, 0.00244683, 0.00273463, 0.00304694,
0.00338977, 0.00376915, 0.00419106, 0.00466144, 0.00518618, 0.00577108,
0.00642184, 0.00714409, 0.00794329, 0.00882482, 0.00979386, 0.0108555,
0.0120145, 0.0132756, 0.0146432, 0.0161217, 0.0177149, 0.0194268,
0.0212608, 0.0232202, 0.025308, 0.027527, 0.0298794, 0.0323675,
0.0349931, 0.0377577, 0.0406625, 0.0437083, 0.0468956, 0.0502248,
0.0536956, 0.0573075, 0.0610598, 0.0649513, 0.0689806, 0.0731457,
0.0774445, 0.0818746, 0.086433, 0.0911167, 0.0959222, 0.100846,
0.105883, 0.11103, 0.116281, 0.121632, 0.127078, 0.132613,
0.138232, 0.143927, 0.149694, 0.155526, 0.161415, 0.167356,
0.173341, 0.179363, 0.185415, 0.19149, 0.19758, 0.203677,
0.209775, 0.215864, 0.221939, 0.22799, 0.23401, 0.239992,
0.245928, 0.25181, 0.257631, 0.263384, 0.269062, 0.274656,
0.280161, 0.28557, 0.290877, 0.296074, 0.301156, 0.306117,
0.310951, 0.315654, 0.320221, 0.324646, 0.328926, 0.333056,
0.337033, 0.340854, 0.344516, 0.348016, 0.351353, 0.354525,
0.35753, 0.360369, 0.36304, 0.365544, 0.367881, 0.370053,
0.372061, 0.373907, 0.375593, 0.377122, 0.378498, 0.379724,
0.380804, 0.381743, 0.382547, 0.38322, 0.383769, 0.384199,
0.384519, 0.384733, 0.384852, 0.384881, 0.38483, 0.384706,
0.384519, 0.384278, 0.383992, 0.383671, 0.383325, 0.382963,
0.382597, 0.382237, 0.381894, 0.381577, 0.381299, 0.38107,
0.380901, 0.380803, 0.380787, 0.380865, 0.381047, 0.381344,
0.381767, 0.382327, 0.383034, 0.383898, 0.38493, 0.38614,
0.387537, 0.389131, 0.39093, 0.392943, 0.395179, 0.397645,
0.40035, 0.403299, 0.406501, 0.40996, 0.413682, 0.417674,
0.421938, 0.426479, 0.431302, 0.436407, 0.441798, 0.447476,
0.453442, 0.459697, 0.466239, 0.473069, 0.480183, 0.487581,
0.495257, 0.50321, 0.511434, 0.519923, 0.528673, 0.537676,
0.546925, 0.556411, 0.566127, 0.576062, 0.586207, 0.59655,
0.607081, 0.617786, 0.628654, 0.63967, 0.650822, 0.662093,
0.67347, 0.684936, 0.696475, 0.708071, 0.719706, 0.731363,
0.743023, 0.754668, 0.76628, 0.777838, 0.789324, 0.800717,
0.811998, 0.823147, 0.834142, 0.844964, 0.855591, 0.866003,
0.876179, 0.886099, 0.89574, 0.905083, 0.914108, 0.922792,
0.931117, 0.939061, 0.946606, 0.953731, 0.960417, 0.966646,
0.972398, 0.977656, 0.982402, 0.986619, 0.99029, 0.9934,
0.995932, 0.997872, 0.999205, 0.999919, 1, 0.999436,
0.998217, 0.996331, 0.993769, 0.990521, 0.986581, 0.981941,
0.976594, 0.970535, 0.96376, 0.956265, 0.948048, 0.939107,
0.929442, 0.919053, 0.907941, 0.896108, 0.883558, 0.870296,
0.856325, 0.841654, 0.826288, 0.810236, 0.793507, 0.776111,
0.75806, 0.739364, 0.720038, 0.700094, 0.679548, 0.658414,
0.636709, 0.614451, 0.591656, 0.568345, 0.544535, 0.520247,
0.495502, 0.470321, 0.444727, 0.418742, 0.392388, 0.36569,
0.338672, 0.311358, 0.283774, 0.255944, 0.227894, 0.199651,
0.171239, 0.142687
};
static const float WAVE_EXPONENTIAL_102[DEFAULT_WAVELEN] = {
0.206113, 0.190942, 0.175728, 0.160476, 0.145189, 0.129872,
0.114528, 0.0991625, 0.0837783, 0.0683797, 0.0529709, 0.0375558,
0.0221385, 0.00672297, -0.00868673, -0.0240866, -0.0394727, -0.054841,
-0.0701875, -0.0855083, -0.100799, -0.116057, -0.131277, -0.146456,
-0.16159, -0.176674, -0.191706, -0.206682, -0.221597, -0.236448,
-0.251231, -0.265943, -0.28058, -0.295138, -0.309615, -0.324006,
-0.338308, -0.352517, -0.366631, -0.380646, -0.394558, -0.408365,
-0.422063, -0.435649, -0.449121, -0.462474, -0.475706, -0.488815,
-0.501797, -0.514649, -0.527369, -0.539954, -0.552401, -0.564709,
-0.576874, -0.588893, -0.600765, -0.612488, -0.624058, -0.635475,
-0.646734, -0.657836, -0.668777, -0.679556, -0.690171, -0.70062,
-0.710902, -0.721014, -0.730955, -0.740725, -0.75032, -0.759741,
-0.768985, -0.778052, -0.78694, -0.795649, -0.804176, -0.812523,
-0.820687, -0.828668, -0.836464, -0.844077, -0.851505, -0.858747,
-0.865803, -0.872673, -0.879357, -0.885854, -0.892165, -0.898289,
-0.904226, -0.909977, -0.915542, -0.920921, -0.926114, -0.931121,
-0.935944, -0.940583, -0.945038, -0.94931, -0.9534, -0.957309,
-0.961037, -0.964586, -0.967956, -0.971149, -0.974166, -0.977007,
-0.979675, -0.982171, -0.984495, -0.98665, -0.988637, -0.990457,
-0.992113, -0.993605, -0.994936, -0.996108, -0.997122, -0.997979,
-0.998683, -0.999235, -0.999637, -0.999891, -1, -0.999965,
-0.999789, -0.999474, -0.999022, -0.998436, -0.997718, -0.99687,
-0.995895, -0.994796, -0.993575, -0.992234, -0.990776, -0.989204,
-0.98752, -0.985727, -0.983828, -0.981825, -0.979721, -0.977519,
-0.975222, -0.972832, -0.970353, -0.967786, -0.965136, -0.962404,
-0.959594, -0.956708, -0.953749, -0.950721, -0.947626, -0.944467,
-0.941247, -0.937968, -0.934634, -0.931248, -0.927812, -0.924329,
-0.920803, -0.917235, -0.913629, -0.909988, -0.906315, -0.902612,
-0.898882, -0.895128, -0.891353, -0.887559, -0.883749, -0.879927,
-0.876093, -0.872253, -0.868407, -0.864558, -0.86071, -0.856864,
-0.853023, -0.849191, -0.845368, -0.841558, -0.837763, -0.833985,
-0.830227, -0.826491, -0.822779, -0.819094, -0.815438, -0.811812,
-0.808219, -0.804662, -0.801141, -0.797659, -0.794219, -0.790821,
-0.787468, -0.784161, -0.780903, -0.777695, -0.774538, -0.771435,
-0.768386, -0.765394, -0.762459, -0.759584, -0.75677, -0.754017,
-0.751328, -0.748703, -0.746143, -0.743651, -0.741226, -0.738869,
-0.736583, -0.734367, -0.732223, -0.730151, -0.728152, -0.726227,
-0.724377, -0.722601, -0.720901, -0.719277, -0.717729, -0.716258,
-0.714865, -0.713549, -0.71231, -0.71115, -0.710067, -0.709063,
-0.708136, -0.707288, -0.706518, -0.705825, -0.705211, -0.704674,
-0.704214, -0.703831, -0.703524, -0.703294, -0.70314, -0.70306,
-0.703056, -0.703125, -0.703268, -0.703484, -0.703772, -0.704131,
-0.704561, -0.70506, -0.705628, -0.706264, -0.706967, -0.707737,
-0.708571, -0.709469, -0.71043, -0.711452, -0.712536, -0.713678,
-0.714879, -0.716137, -0.71745, -0.718818, -0.720239, -0.721712,
-0.723235, -0.724807, -0.726427, -0.728093, -0.729803, -0.731557,
-0.733352, -0.735187, -0.737062, -0.738973, -0.74092, -0.742901,
-0.744914, -0.746958, -0.749031, -0.751132, -0.753259, -0.755411,
-0.757585, -0.75978, -0.761995, -0.764227, -0.766476, -0.768739,
-0.771016, -0.773303, -0.7756, -0.777906, -0.780217, -0.782534,
-0.784854, -0.787175, -0.789496, -0.791816, -0.794132, -0.796443,
-0.798749, -0.801046, -0.803334, -0.805611, -0.807876, -0.810127,
-0.812363, -0.814581, -0.816782, -0.818963, -0.821123, -0.823261,
-0.825375, -0.827464, -0.829527, -0.831562, -0.833569, -0.835545,
-0.83749, -0.839403, -0.841283, -0.843128, -0.844937, -0.846709,
-0.848444, -0.85014, -0.851796, -0.853412, -0.854986, -0.856518,
-0.858006, -0.859451, -0.860851, -0.862205, -0.863513, -0.864774,
-0.865988, -0.867154, -0.868271, -0.869339, -0.870357, -0.871325,
-0.872242, -0.873109, -0.873924, -0.874687, -0.875399, -0.876059,
-0.876666, -0.877221, -0.877723, -0.878172, -0.878568, -0.878912,
-0.879203, -0.879441, -0.879626, -0.879759, -0.879839, -0.879866,
-0.879842, -0.879766, -0.879638, -0.879459, -0.879228, -0.878948,
-0.878617, -0.878236, -0.877806, -0.877327, -0.8768, -0.876225,
-0.875603, -0.874935, -0.87422, -0.873461, -0.872656, -0.871808,
-0.870917, -0.869984, -0.869009, -0.867993, -0.866938, -0.865843,
-0.86471, -0.863541, -0.862334, -0.861093, -0.859817, -0.858508,
-0.857166, -0.855793, -0.85439, -0.852957, -0.851496, -0.850008,
-0.848494, -0.846955, -0.845392, -0.843806, -0.842199, -0.840571,
-0.838924, -0.837259, -0.835577, -0.833879, -0.832167, -0.830441,
-0.828703, -0.826954, -0.825196, -0.823428, -0.821653, -0.819872,
-0.818086, -0.816296, -0.814504, -0.812709, -0.810915, -0.809122,
-0.80733, -0.805542, -0.803759, -0.801981, -0.800209, -0.798446,
-0.796691, -0.794947, -0.793214, -0.791493, -0.789785, -0.788092,
-0.786415, -0.784754, -0.783111, -0.781486, -0.779881, -0.778296,
-0.776733, -0.775192, -0.773675, -0.772182, -0.770714, -0.769272,
-0.767858, -0.76647, -0.765112, -0.763782, -0.762483, -0.761215,
-0.759978, -0.758773, -0.757601, -0.756462, -0.755358, -0.754288,
-0.753253, -0.752255, -0.751292, -0.750367, -0.749478, -0.748627,
-0.747815, -0.747041, -0.746305, -0.745609, -0.744952, -0.744335,
-0.743758, -0.743221, -0.742725, -0.742269, -0.741853, -0.741479,
-0.741145, -0.740852, -0.7406, -0.740389, -0.740219, -0.74009,
-0.740001, -0.739953, -0.739946, -0.739979, -0.740052, -0.740165,
-0.740317, -0.740509, -0.74074, -0.74101, -0.741318, -0.741665,
-0.742049, -0.74247, -0.742928, -0.743422, -0.743953, -0.744518,
-0.745118, -0.745753, -0.746421, -0.747123, -0.747856, -0.748622,
-0.749419, -0.750246, -0.751103, -0.751989, -0.752904, -0.753846,
-0.754815, -0.75581, -0.75683, -0.757875, -0.758943, -0.760034,
-0.761147, -0.762282, -0.763436, -0.76461, -0.765802, -0.767012,
-0.768238, -0.76948, -0.770737, -0.772008, -0.773291, -0.774587,
-0.775893, -0.77721, -0.778535, -0.779869, -0.78121, -0.782557,
-0.783909, -0.785265, -0.786625, -0.787987, -0.78935, -0.790713,
-0.792076, -0.793437, -0.794796, -0.796151, -0.797501, -0.798846,
-0.800185, -0.801516, -0.802839, -0.804153, -0.805457, -0.80675,
-0.808031, -0.809299, -0.810553, -0.811793, -0.813018, -0.814226,
-0.815418, -0.816591, -0.817746, -0.818882, -0.819997, -0.821091,
-0.822164, -0.823214, -0.824242, -0.825245, -0.826224, -0.827178,
-0.828106, -0.829008, -0.829883, -0.83073, -0.831549, -0.83234,
-0.833101, -0.833833, -0.834534, -0.835205, -0.835846, -0.836454,
-0.837031, -0.837576, -0.838088, -0.838567, -0.839014, -0.839426,
-0.839805, -0.840151, -0.840462, -0.840739, -0.840981, -0.841189,
-0.841362, -0.8415, -0.841603, -0.841672, -0.841705, -0.841704,
-0.841668, -0.841596, -0.84149, -0.84135, -0.841174, -0.840965,
-0.840721, -0.840442, -0.84013, -0.839785, -0.839406, -0.838993,
-0.838548, -0.838071, -0.837561, -0.837019, -0.836446, -0.835842,
-0.835207, -0.834541, -0.833847, -0.833122, -0.832369, -0.831588,
-0.830779, -0.829943, -0.82908, -0.828191, -0.827276, -0.826337,
-0.825373, -0.824386, -0.823376, -0.822343, -0.821289, -0.820214,
-0.819119, -0.818004, -0.816871, -0.815719, -0.81455, -0.813365,
-0.812164, -0.810948, -0.809718, -0.808475, -0.807219, -0.805951,
-0.804673, -0.803384, -0.802086, -0.800779, -0.799465, -0.798144,
-0.796818, -0.795486, -0.79415, -0.79281, -0.791468, -0.790124,
-0.788779, -0.787434, -0.786091, -0.784748, -0.783408, -0.782072,
-0.78074, -0.779412, -0.778091, -0.776776, -0.775469, -0.774169,
-0.772879, -0.771599, -0.770329, -0.769071, -0.767824, -0.766591,
-0.765371, -0.764166, -0.762975, -0.761801, -0.760643, -0.759502,
-0.758379, -0.757274, -0.756188, -0.755123, -0.754077, -0.753053,
-0.75205, -0.751069, -0.750111, -0.749176, -0.748265, -0.747378,
-0.746516, -0.745679, -0.744868, -0.744083, -0.743324, -0.742592,
-0.741888, -0.741211, -0.740562, -0.739941, -0.739349, -0.738785,
-0.738251, -0.737746, -0.737271, -0.736826, -0.73641, -0.736025,
-0.735669, -0.735344, -0.73505, -0.734786, -0.734553, -0.73435,
-0.734178, -0.734036, -0.733925, -0.733845, -0.733795, -0.733775,
-0.733785, -0.733826, -0.733897, -0.733997, -0.734127, -0.734286,
-0.734475, -0.734692, -0.734938, -0.735213, -0.735515, -0.735845,
-0.736202, -0.736587, -0.736998, -0.737435, -0.737898, -0.738386,
-0.738899, -0.739437, -0.739998, -0.740583, -0.741191, -0.741821,
-0.742473, -0.743146, -0.74384, -0.744554, -0.745288, -0.746041,
-0.746812, -0.7476, -0.748406, -0.749227, -0.750065, -0.750918,
-0.751784, -0.752665, -0.753558, -0.754464, -0.755381, -0.756309,
-0.757247, -0.758194, -0.75915, -0.760113, -0.761083, -0.76206,
-0.763042, -0.764029, -0.76502, -0.766014, -0.767011, -0.768009,
-0.769008, -0.770007, -0.771005, -0.772002, -0.772997, -0.773989,
-0.774977, -0.77596, -0.776938, -0.77791, -0.778876, -0.779833,
-0.780783, -0.781723, -0.782654, -0.783574, -0.784483, -0.78538,
-0.786265, -0.787136, -0.787994, -0.788837, -0.789664, -0.790476,
-0.791271, -0.792048, -0.792808, -0.79355, -0.794272, -0.794975,
-0.795658, -0.796321, -0.796962, -0.797581, -0.798178, -0.798752,
-0.799303, -0.79983, -0.800334, -0.800812, -0.801266, -0.801695,
-0.802097, -0.802474, -0.802824, -0.803148, -0.803444, -0.803713,
-0.803955, -0.804168, -0.804354, -0.804511, -0.80464, -0.80474,
-0.804811, -0.804853, -0.804866, -0.80485, -0.804805, -0.80473,
-0.804626, -0.804493, -0.80433, -0.804138, -0.803916, -0.803666,
-0.803386, -0.803077, -0.802738, -0.802371, -0.801976, -0.801551,
-0.801099, -0.800618, -0.800109, -0.799573, -0.799009, -0.798418,
-0.797801, -0.797156, -0.796486, -0.79579, -0.795068, -0.794321,
-0.793549, -0.792754, -0.791934, -0.791091, -0.790225, -0.789336,
-0.788426, -0.787494, -0.786541, -0.785568, -0.784574, -0.783562,
-0.782531, -0.781481, -0.780414, -0.77933, -0.77823, -0.777114,
-0.775982, -0.774837, -0.773677, -0.772505, -0.771319, -0.770123,
-0.768914, -0.767696, -0.766468, -0.765231, -0.763985, -0.762732,
-0.761472, -0.760205, -0.758934, -0.757657, -0.756377, -0.755093,
-0.753807, -0.752519, -0.751229, -0.74994, -0.748651, -0.747363,
-0.746077, -0.744793, -0.743513, -0.742237, -0.740965, -0.739699,
-0.738439, -0.737186, -0.735941, -0.734704, -0.733476, -0.732257,
-0.731049, -0.729852, -0.728666, -0.727493, -0.726332, -0.725186,
-0.724053, -0.722935, -0.721833, -0.720746, -0.719676, -0.718623,
-0.717588, -0.716571, -0.715573, -0.714594, -0.713635, -0.712696,
-0.711777, -0.71088, -0.710005, -0.709151, -0.70832, -0.707512,
-0.706727, -0.705966, -0.705229, -0.704516, -0.703827, -0.703164,
-0.702525, -0.701912, -0.701325, -0.700763, -0.700228, -0.699719,
-0.699237, -0.698781, -0.698352, -0.697949, -0.697574, -0.697226,
-0.696905, -0.696611, -0.696344, -0.696105, -0.695892, -0.695707,
-0.695549, -0.695418, -0.695314, -0.695237, -0.695186, -0.695162,
-0.695164, -0.695193, -0.695247, -0.695328, -0.695434, -0.695565,
-0.695721, -0.695902, -0.696108, -0.696337, -0.696591, -0.696867,
-0.697167, -0.69749, -0.697835, -0.698201, -0.698589, -0.698998,
-0.699428, -0.699878, -0.700347, -0.700835, -0.701341, -0.701866,
-0.702408, -0.702967, -0.703542, -0.704133, -0.704739, -0.70536,
-0.705995, -0.706642, -0.707303, -0.707976, -0.70866, -0.709354,
-0.710059, -0.710773, -0.711496, -0.712227, -0.712965, -0.71371,
-0.71446, -0.715216, -0.715977, -0.716741, -0.717508, -0.718278,
-0.71905, -0.719822, -0.720594, -0.721366, -0.722137, -0.722905,
-0.723671, -0.724434, -0.725192, -0.725945, -0.726693, -0.727435,
-0.728169, -0.728896, -0.729614, -0.730323, -0.731022, -0.731711,
-0.732389, -0.733054, -0.733707, -0.734347, -0.734973, -0.735585,
-0.736181, -0.736762, -0.737326, -0.737874, -0.738403, -0.738915,
-0.739408, -0.739881, -0.740335, -0.740769, -0.741181, -0.741572,
-0.741942, -0.742289, -0.742613, -0.742914, -0.743191, -0.743444,
-0.743672, -0.743876, -0.744054, -0.744207, -0.744333, -0.744434,
-0.744507, -0.744554, -0.744574, -0.744566, -0.74453, -0.744466,
-0.744375, -0.744255, -0.744106, -0.743929, -0.743724, -0.743489,
-0.743226, -0.742933, -0.742611, -0.742261, -0.741881, -0.741472,
-0.741034, -0.740567, -0.740071, -0.739546, -0.738992, -0.738409,
-0.737798, -0.737159, -0.736491, -0.735795, -0.735071, -0.73432,
-0.733541, -0.732735, -0.731903, -0.731044, -0.730158, -0.729247,
-0.72831, -0.727348, -0.726361, -0.725349, -0.724314, -0.723255,
-0.722173, -0.721068, -0.719941, -0.718792, -0.717622, -0.716431,
-0.71522, -0.71399, -0.71274, -0.711472, -0.710186, -0.708882,
-0.707562, -0.706226, -0.704874, -0.703507, -0.702126, -0.700731,
-0.699323, -0.697903, -0.696472, -0.695029, -0.693577, -0.692114,
-0.690643, -0.689164, -0.687677, -0.686184, -0.684684, -0.68318,
-0.681671, -0.680157, -0.678641, -0.677123, -0.675603, -0.674082,
-0.672561, -0.67104, -0.669521, -0.668004, -0.666489, -0.664978,
-0.663472, -0.66197, -0.660474, -0.658984, -0.657502, -0.656027,
-0.654561, -0.653104, -0.651657, -0.65022, -0.648795, -0.647381,
-0.64598, -0.644593, -0.643219, -0.641859, -0.640515, -0.639186,
-0.637874, -0.636578, -0.6353, -0.63404, -0.632798, -0.631576,
-0.630373, -0.62919, -0.628027, -0.626886, -0.625766, -0.624668,
-0.623593, -0.62254, -0.621511, -0.620505, -0.619523, -0.618566,
-0.617633, -0.616725, -0.615842, -0.614985, -0.614154, -0.613348,
-0.612569, -0.611817, -0.611091, -0.610392, -0.60972, -0.609075,
-0.608457, -0.607867, -0.607304, -0.606769, -0.606261, -0.60578,
-0.605327, -0.604902, -0.604504, -0.604133, -0.60379, -0.603474,
-0.603185, -0.602922, -0.602687, -0.602478, -0.602296, -0.60214,
-0.602009, -0.601905, -0.601826, -0.601771, -0.601742, -0.601737,
-0.601757, -0.6018, -0.601866, -0.601956, -0.602068, -0.602202,
-0.602358, -0.602535, -0.602733, -0.602951, -0.603189, -0.603446,
-0.603722, -0.604016, -0.604327, -0.604655, -0.605, -0.60536,
-0.605736, -0.606126, -0.606529, -0.606946, -0.607376, -0.607817,
-0.60827, -0.608732, -0.609205, -0.609687, -0.610177, -0.610674,
-0.611178, -0.611689, -0.612204, -0.612725, -0.613249, -0.613776,
-0.614305, -0.614836, -0.615368, -0.615899, -0.61643, -0.616959,
-0.617485, -0.618008, -0.618528, -0.619042, -0.619551, -0.620054,
-0.620549, -0.621037, -0.621515, -0.621985, -0.622444, -0.622892,
-0.623328, -0.623751, -0.624162, -0.624558, -0.62494, -0.625306,
-0.625656, -0.625989, -0.626304, -0.626602, -0.62688, -0.627138,
-0.627376, -0.627593, -0.627789, -0.627962, -0.628113, -0.62824,
-0.628342, -0.628421, -0.628474, -0.628501, -0.628503, -0.628477,
-0.628424, -0.628344, -0.628235, -0.628098, -0.627931, -0.627736,
-0.62751, -0.627254, -0.626967, -0.626649, -0.626301, -0.62592,
-0.625508, -0.625063, -0.624586, -0.624077, -0.623535, -0.62296,
-0.622351, -0.62171, -0.621035, -0.620326, -0.619584, -0.618808,
-0.617999, -0.617155, -0.616278, -0.615368, -0.614424, -0.613446,
-0.612434, -0.61139, -0.610312, -0.609201, -0.608057, -0.60688,
-0.605671, -0.60443, -0.603156, -0.601851, -0.600514, -0.599146,
-0.597747, -0.596318, -0.594859, -0.59337, -0.591852, -0.590305,
-0.588729, -0.587126, -0.585495, -0.583837, -0.582153, -0.580443,
-0.578708, -0.576947, -0.575163, -0.573355, -0.571524, -0.569671,
-0.567796, -0.5659, -0.563984, -0.562048, -0.560093, -0.558119,
-0.556129, -0.554121, -0.552097, -0.550058, -0.548005, -0.545938,
-0.543858, -0.541765, -0.539662, -0.537547, -0.535423, -0.53329,
-0.531149, -0.529001, -0.526846, -0.524685, -0.52252, -0.520351,
-0.518179, -0.516004, -0.513829, -0.511652, -0.509477, -0.507302,
-0.505129, -0.50296, -0.500794, -0.498632, -0.496476, -0.494327,
-0.492184, -0.49005, -0.487924, -0.485807, -0.483702, -0.481607,
-0.479524, -0.477454, -0.475398, -0.473356, -0.471329, -0.469318,
-0.467324, -0.465347, -0.463387, -0.461447, -0.459526, -0.457625,
-0.455745, -0.453886, -0.452049, -0.450235, -0.448444, -0.446677,
-0.444934, -0.443216, -0.441524, -0.439857, -0.438217, -0.436604,
-0.435019, -0.433461, -0.431931, -0.43043, -0.428959, -0.427516,
-0.426103, -0.424721, -0.423368, -0.422047, -0.420756, -0.419496,
-0.418267, -0.41707, -0.415905, -0.414771, -0.413669, -0.412599,
-0.411561, -0.410555, -0.409582, -0.40864, -0.40773, -0.406853,
-0.406007, -0.405193, -0.404411, -0.40366, -0.402941, -0.402253,
-0.401596, -0.400969, -0.400373, -0.399807, -0.399271, -0.398765,
-0.398287, -0.397838, -0.397418, -0.397026, -0.396661, -0.396323,
-0.396011, -0.395726, -0.395466, -0.395231, -0.39502, -0.394833,
-0.394669, -0.394527, -0.394408, -0.394309, -0.394231, -0.394172,
-0.394133, -0.394112, -0.394108, -0.394121, -0.39415, -0.394194,
-0.394252, -0.394324, -0.394408, -0.394504, -0.394611, -0.394727,
-0.394853, -0.394987, -0.395128, -0.395275, -0.395428, -0.395585,
-0.395745, -0.395908, -0.396072, -0.396237, -0.396401, -0.396563,
-0.396723, -0.39688, -0.397032, -0.397178, -0.397318, -0.39745,
-0.397574, -0.397688, -0.397791, -0.397883, -0.397963, -0.398028,
-0.398079, -0.398115, -0.398133, -0.398134, -0.398117, -0.39808,
-0.398022, -0.397943, -0.397842, -0.397717, -0.397567, -0.397393,
-0.397192, -0.396964, -0.396709, -0.396424, -0.39611, -0.395765,
-0.395389, -0.394981, -0.39454, -0.394065, -0.393555, -0.39301,
-0.39243, -0.391812, -0.391157, -0.390464, -0.389733, -0.388961,
-0.38815, -0.387299, -0.386406, -0.385472, -0.384495, -0.383476,
-0.382413, -0.381307, -0.380157, -0.378963, -0.377724, -0.376439,
-0.375109, -0.373733, -0.372312, -0.370844, -0.369329, -0.367768,
-0.36616, -0.364505, -0.362802, -0.361053, -0.359256, -0.357413,
-0.355521, -0.353583, -0.351598, -0.349565, -0.347485, -0.345359,
-0.343186, -0.340967, -0.338701, -0.33639, -0.334033, -0.33163,
-0.329183, -0.326691, -0.324155, -0.321575, -0.318952, -0.316285,
-0.313577, -0.310827, -0.308035, -0.305203, -0.302331, -0.29942,
-0.29647, -0.293481, -0.290456, -0.287394, -0.284296, -0.281163,
-0.277996, -0.274795, -0.271563, -0.268298, -0.265003, -0.261677,
-0.258323, -0.254941, -0.251532, -0.248097, -0.244637, -0.241153,
-0.237647, -0.234118, -0.230569, -0.227, -0.223412, -0.219807,
-0.216186, -0.212549, -0.208899, -0.205235, -0.20156, -0.197874,
-0.194179, -0.190476, -0.186766, -0.18305, -0.17933, -0.175607,
-0.171881, -0.168154, -0.164428, -0.160704, -0.156982, -0.153264,
-0.149552, -0.145846, -0.142148, -0.138459, -0.13478, -0.131112,
-0.127457, -0.123816, -0.120189, -0.116579, -0.112986, -0.109412,
-0.105856, -0.102322, -0.0988097, -0.0953202, -0.0918547, -0.0884144,
-0.0850002, -0.0816132, -0.0782545, -0.074925, -0.0716258, -0.0683578,
-0.0651219, -0.0619192, -0.0587504, -0.0556166, -0.0525185, -0.049457,
-0.0464329, -0.043447, -0.0405001, -0.0375928, -0.034726, -0.0319002,
-0.0291162, -0.0263745, -0.0236757, -0.0210205, -0.0184093, -0.0158427,
-0.0133211, -0.010845, -0.00841476, -0.00603075, -0.00369332, -0.00140279,
0.000840574, 0.00303653, 0.00518488, 0.00728545, 0.00933811, 0.0113428,
0.0132993, 0.0152078, 0.0170682, 0.0188805, 0.0206449, 0.0223614,
0.0240303, 0.0256517, 0.0272258, 0.0287529, 0.0302333, 0.0316674,
0.0330556, 0.0343982, 0.0356957, 0.0369486, 0.0381575, 0.0393228,
0.0404453, 0.0415255, 0.0425641, 0.0435619, 0.0445195, 0.0454378,
0.0463176, 0.0471597, 0.047965, 0.0487345, 0.0494691, 0.0501697,
0.0508375, 0.0514735, 0.0520787, 0.0526542, 0.0532013, 0.0537212,
0.0542149, 0.0546838, 0.0551292, 0.0555522, 0.0559544, 0.0563369,
0.0567013, 0.0570488, 0.0573809, 0.0576992, 0.058005, 0.0582999,
0.0585853, 0.0588629, 0.0591341, 0.0594007, 0.0596641, 0.059926,
0.060188, 0.0604518, 0.060719, 0.0609913, 0.0612705, 0.0615582,
0.0618561, 0.062166, 0.0624896, 0.0628286, 0.0631848, 0.06356,
0.0639558, 0.0643742, 0.0648167, 0.0652853, 0.0657816, 0.0663075,
0.0668647, 0.067455, 0.0680801, 0.0687418, 0.0694418, 0.070182,
0.0709639, 0.0717894, 0.0726602, 0.0735779, 0.0745443, 0.0755611,
0.0766298, 0.0777522, 0.0789298, 0.0801644, 0.0814574, 0.0828105,
0.0842252, 0.085703, 0.0872454, 0.088854, 0.0905301, 0.0922752,
0.0940907, 0.095978, 0.0979384, 0.0999731, 0.102084, 0.104271,
0.106537, 0.108881, 0.111307, 0.113814, 0.116403, 0.119076,
0.121834, 0.124677, 0.127607, 0.130624, 0.13373, 0.136924,
0.140208, 0.143582, 0.147047, 0.150604, 0.154253, 0.157995,
0.161829, 0.165758, 0.169779, 0.173896, 0.178106, 0.182411,
0.186811, 0.191305, 0.195894, 0.200578, 0.205357, 0.21023,
0.215198, 0.22026, 0.225416, 0.230665, 0.236007, 0.241442,
0.24697, 0.252588, 0.258298, 0.264098, 0.269987, 0.275965,
0.282031, 0.288184, 0.294423, 0.300746, 0.307154, 0.313644,
0.320215, 0.326867, 0.333597, 0.340405, 0.347289, 0.354248,
0.36128, 0.368383, 0.375556, 0.382797, 0.390104, 0.397476,
0.404911, 0.412406, 0.41996, 0.427571, 0.435237, 0.442955,
0.450724, 0.458541, 0.466404, 0.47431, 0.482258, 0.490245,
0.498268, 0.506325, 0.514414, 0.522531, 0.530675, 0.538842,
0.547031, 0.555237, 0.563459, 0.571694, 0.579938, 0.58819,
0.596445, 0.604702, 0.612957, 0.621207, 0.62945, 0.637681,
0.645899, 0.654099, 0.66228, 0.670437, 0.678568, 0.68667,
0.694738, 0.702771, 0.710765, 0.718716, 0.726622, 0.734479,
0.742284, 0.750033, 0.757724, 0.765354, 0.772917, 0.780413,
0.787837, 0.795186, 0.802456, 0.809645, 0.81675, 0.823766,
0.830691, 0.837522, 0.844255, 0.850886, 0.857414, 0.863835,
0.870145, 0.876342, 0.882422, 0.888382, 0.894219, 0.899931,
0.905513, 0.910964, 0.91628, 0.921458, 0.926495, 0.931389,
0.936137, 0.940736, 0.945182, 0.949474, 0.953609, 0.957584,
0.961397, 0.965044, 0.968524, 0.971834, 0.974972, 0.977936,
0.980722, 0.983329, 0.985755, 0.987997, 0.990054, 0.991923,
0.993602, 0.99509, 0.996385, 0.997485, 0.998388, 0.999093,
0.999597, 0.9999, 1, 0.999896, 0.999585, 0.999068,
0.998343, 0.997408, 0.996263, 0.994907, 0.993338, 0.991556,
0.989561, 0.987351, 0.984926, 0.982285, 0.979428, 0.976354,
0.973064, 0.969556, 0.965832, 0.96189, 0.95773, 0.953353,
0.94876, 0.943949, 0.938922, 0.933678, 0.928219, 0.922544,
0.916655, 0.910551, 0.904235, 0.897706, 0.890966, 0.884015,
0.876855, 0.869487, 0.861911, 0.85413, 0.846145, 0.837956,
0.829567, 0.820977, 0.812189, 0.803205, 0.794026, 0.784655,
0.775093, 0.765342, 0.755404, 0.745282, 0.734978, 0.724493,
0.713831, 0.702994, 0.691984, 0.680804, 0.669456, 0.657944,
0.646269, 0.634435, 0.622445, 0.610301, 0.598006, 0.585563,
0.572976, 0.560248, 0.547381, 0.53438, 0.521246, 0.507984,
0.494597, 0.481089, 0.467462, 0.45372, 0.439867, 0.425907,
0.411842, 0.397678, 0.383416, 0.369061, 0.354618, 0.340088,
0.325477, 0.310788, 0.296026, 0.281193, 0.266293, 0.251332,
0.236312, 0.221238
};
static const float WAVE_EXPONENTIAL_114[DEFAULT_WAVELEN] = {
0.347641, 0.339545, 0.331426, 0.323283, 0.315117, 0.306929,
0.29872, 0.290489, 0.282239, 0.273969, 0.26568, 0.257373,
0.249048, 0.240706, 0.232349, 0.223975, 0.215587, 0.207185,
0.198769, 0.19034, 0.181899, 0.173447, 0.164984, 0.156511,
0.148028, 0.139536, 0.131037, 0.12253, 0.114016, 0.105496,
0.0969705, 0.0884405, 0.0799064, 0.0713689, 0.0628287, 0.0542865,
0.045743, 0.0371988, 0.0286546, 0.020111, 0.0115688, 0.00302859,
-0.00550895, -0.0140431, -0.0225733, -0.0310988, -0.039619, -0.0481331,
-0.0566406, -0.0651408, -0.073633, -0.0821166, -0.0905908, -0.0990552,
-0.107509, -0.115951, -0.124382, -0.1328, -0.141205, -0.149596,
-0.157973, -0.166334, -0.17468, -0.18301, -0.191322, -0.199617,
-0.207894, -0.216152, -0.22439, -0.232609, -0.240806, -0.248983,
-0.257137, -0.265269, -0.273379, -0.281464, -0.289525, -0.297561,
-0.305572, -0.313557, -0.321515, -0.329446, -0.33735, -0.345225,
-0.353071, -0.360888, -0.368675, -0.376431, -0.384157, -0.39185,
-0.399512, -0.407141, -0.414737, -0.422299, -0.429828, -0.437321,
-0.444779, -0.452201, -0.459588, -0.466937, -0.474249, -0.481524,
-0.48876, -0.495958, -0.503117, -0.510236, -0.517315, -0.524354,
-0.531352, -0.538308, -0.545223, -0.552095, -0.558925, -0.565711,
-0.572454, -0.579154, -0.585809, -0.592419, -0.598984, -0.605504,
-0.611977, -0.618405, -0.624786, -0.63112, -0.637407, -0.643646,
-0.649837, -0.655979, -0.662073, -0.668118, -0.674114, -0.68006,
-0.685955, -0.691801, -0.697596, -0.70334, -0.709033, -0.714675,
-0.720265, -0.725803, -0.731289, -0.736722, -0.742103, -0.74743,
-0.752705, -0.757926, -0.763093, -0.768206, -0.773266, -0.778271,
-0.783222, -0.788118, -0.792959, -0.797745, -0.802476, -0.807151,
-0.811771, -0.816336, -0.820844, -0.825297, -0.829694, -0.834034,
-0.838318, -0.842546, -0.846717, -0.850832, -0.85489, -0.858891,
-0.862835, -0.866722, -0.870552, -0.874326, -0.878042, -0.8817,
-0.885302, -0.888847, -0.892334, -0.895764, -0.899136, -0.902451,
-0.905709, -0.90891, -0.912053, -0.91514, -0.918168, -0.92114,
-0.924055, -0.926912, -0.929712, -0.932456, -0.935142, -0.937771,
-0.940344, -0.94286, -0.945319, -0.947722, -0.950068, -0.952358,
-0.954592, -0.95677, -0.958891, -0.960957, -0.962967, -0.964922,
-0.966821, -0.968665, -0.970453, -0.972187, -0.973866, -0.975491,
-0.977061, -0.978577, -0.980038, -0.981446, -0.982801, -0.984102,
-0.985349, -0.986544, -0.987686, -0.988776, -0.989813, -0.990799,
-0.991732, -0.992614, -0.993445, -0.994225, -0.994954, -0.995632,
-0.996261, -0.996839, -0.997368, -0.997848, -0.998278, -0.99866,
-0.998994, -0.999279, -0.999517, -0.999707, -0.99985, -0.999946,
-0.999996, -1, -0.999958, -0.99987, -0.999738, -0.999561,
-0.999339, -0.999073, -0.998764, -0.998412, -0.998016, -0.997578,
-0.997098, -0.996577, -0.996014, -0.995409, -0.994765, -0.99408,
-0.993356, -0.992592, -0.991789, -0.990948, -0.990068, -0.989151,
-0.988197, -0.987205, -0.986178, -0.985114, -0.984015, -0.98288,
-0.981711, -0.980508, -0.979271, -0.978001, -0.976697, -0.975361,
-0.973994, -0.972594, -0.971164, -0.969703, -0.968211, -0.96669,
-0.96514, -0.963561, -0.961954, -0.960318, -0.958656, -0.956966,
-0.95525, -0.953508, -0.951741, -0.949948, -0.948131, -0.94629,
-0.944425, -0.942537, -0.940627, -0.938694, -0.93674, -0.934765,
-0.932769, -0.930752, -0.928716, -0.926661, -0.924587, -0.922494,
-0.920384, -0.918257, -0.916113, -0.913952, -0.911775, -0.909584,
-0.907377, -0.905156, -0.902921, -0.900672, -0.898411, -0.896137,
-0.893851, -0.891554, -0.889246, -0.886927, -0.884598, -0.882259,
-0.879911, -0.877555, -0.875191, -0.872819, -0.870439, -0.868053,
-0.865661, -0.863263, -0.860859, -0.858451, -0.856038, -0.853621,
-0.851201, -0.848778, -0.846352, -0.843924, -0.841494, -0.839063,
-0.836632, -0.8342, -0.831768, -0.829337, -0.826906, -0.824477,
-0.82205, -0.819626, -0.817204, -0.814785, -0.81237, -0.809959,
-0.807552, -0.80515, -0.802753, -0.800362, -0.797977, -0.795599,
-0.793227, -0.790863, -0.788506, -0.786157, -0.783817, -0.781486,
-0.779163, -0.776851, -0.774548, -0.772256, -0.769974, -0.767704,
-0.765445, -0.763198, -0.760962, -0.75874, -0.75653, -0.754333,
-0.75215, -0.749981, -0.747826, -0.745685, -0.743559, -0.741449,
-0.739354, -0.737274, -0.735211, -0.733164, -0.731134, -0.729121,
-0.727125, -0.725146, -0.723186, -0.721244, -0.71932, -0.717414,
-0.715528, -0.71366, -0.711813, -0.709985, -0.708176, -0.706388,
-0.704621, -0.702874, -0.701148, -0.699443, -0.697759, -0.696097,
-0.694457, -0.692838, -0.691242, -0.689668, -0.688117, -0.686588,
-0.685083, -0.6836, -0.682141, -0.680705, -0.679293, -0.677904,
-0.676539, -0.675199, -0.673883, -0.67259, -0.671323, -0.67008,
-0.668862, -0.667668, -0.6665, -0.665357, -0.664238, -0.663145,
-0.662078, -0.661036, -0.660019, -0.659029, -0.658063, -0.657124,
-0.65621, -0.655323, -0.654461, -0.653626, -0.652816, -0.652033,
-0.651275, -0.650544, -0.649839, -0.649161, -0.648508, -0.647882,
-0.647283, -0.646709, -0.646162, -0.645641, -0.645146, -0.644678,
-0.644236, -0.64382, -0.64343, -0.643067, -0.642729, -0.642418,
-0.642133, -0.641873, -0.64164, -0.641433, -0.641251, -0.641095,
-0.640965, -0.64086, -0.640781, -0.640728, -0.640699, -0.640696,
-0.640719, -0.640766, -0.640838, -0.640935, -0.641057, -0.641203,
-0.641374, -0.641569, -0.641789, -0.642033, -0.6423, -0.642592,
-0.642907, -0.643245, -0.643607, -0.643993, -0.644401, -0.644832,
-0.645286, -0.645763, -0.646262, -0.646783, -0.647326, -0.647891,
-0.648478, -0.649086, -0.649716, -0.650367, -0.651038, -0.65173,
-0.652443, -0.653176, -0.653929, -0.654702, -0.655494, -0.656306,
-0.657137, -0.657987, -0.658855, -0.659743, -0.660648, -0.661571,
-0.662512, -0.663471, -0.664447, -0.66544, -0.66645, -0.667476,
-0.668519, -0.669577, -0.670652, -0.671742, -0.672847, -0.673967,
-0.675102, -0.676251, -0.677414, -0.678591, -0.679782, -0.680986,
-0.682204, -0.683434, -0.684676, -0.685931, -0.687198, -0.688476,
-0.689766, -0.691067, -0.692378, -0.6937, -0.695032, -0.696374,
-0.697726, -0.699087, -0.700457, -0.701836, -0.703223, -0.704619,
-0.706022, -0.707433, -0.708851, -0.710276, -0.711707, -0.713145,
-0.714589, -0.716038, -0.717493, -0.718953, -0.720418, -0.721888,
-0.723361, -0.724839, -0.72632, -0.727804, -0.729292, -0.730782,
-0.732274, -0.733769, -0.735265, -0.736763, -0.738262, -0.739761,
-0.741262, -0.742762, -0.744263, -0.745763, -0.747263, -0.748762,
-0.750259, -0.751755, -0.753249, -0.754741, -0.756231, -0.757718,
-0.759202, -0.760682, -0.762159, -0.763633, -0.765102, -0.766567,
-0.768027, -0.769482, -0.770931, -0.772375, -0.773814, -0.775246,
-0.776672, -0.778091, -0.779503, -0.780909, -0.782306, -0.783696,
-0.785078, -0.786452, -0.787817, -0.789174, -0.790521, -0.791859,
-0.793188, -0.794507, -0.795816, -0.797115, -0.798403, -0.79968,
-0.800947, -0.802202, -0.803446, -0.804678, -0.805898, -0.807106,
-0.808302, -0.809485, -0.810656, -0.811813, -0.812958, -0.814088,
-0.815206, -0.816309, -0.817398, -0.818474, -0.819534, -0.82058,
-0.821612, -0.822628, -0.823629, -0.824615, -0.825585, -0.82654,
-0.827479, -0.828402, -0.829308, -0.830198, -0.831072, -0.831929,
-0.832769, -0.833593, -0.834399, -0.835188, -0.835959, -0.836713,
-0.83745, -0.838168, -0.838869, -0.839551, -0.840216, -0.840862,
-0.84149, -0.842099, -0.84269, -0.843262, -0.843816, -0.84435,
-0.844866, -0.845362, -0.84584, -0.846298, -0.846736, -0.847156,
-0.847556, -0.847937, -0.848298, -0.848639, -0.848961, -0.849263,
-0.849545, -0.849808, -0.85005, -0.850273, -0.850476, -0.850659,
-0.850822, -0.850965, -0.851088, -0.85119, -0.851273, -0.851336,
-0.851379, -0.851402, -0.851404, -0.851387, -0.85135, -0.851292,
-0.851215, -0.851118, -0.851, -0.850863, -0.850706, -0.850529,
-0.850332, -0.850116, -0.84988, -0.849624, -0.849348, -0.849053,
-0.848738, -0.848404, -0.84805, -0.847678, -0.847286, -0.846874,
-0.846444, -0.845995, -0.845526, -0.845039, -0.844533, -0.844009,
-0.843466, -0.842904, -0.842324, -0.841726, -0.84111, -0.840476,
-0.839824, -0.839154, -0.838466, -0.837761, -0.837039, -0.836299,
-0.835542, -0.834768, -0.833978, -0.83317, -0.832346, -0.831506,
-0.830649, -0.829776, -0.828887, -0.827983, -0.827063, -0.826127,
-0.825176, -0.82421, -0.823229, -0.822233, -0.821223, -0.820198,
-0.819158, -0.818105, -0.817038, -0.815957, -0.814863, -0.813755,
-0.812634, -0.811501, -0.810354, -0.809195, -0.808024, -0.80684,
-0.805645, -0.804438, -0.803219, -0.801989, -0.800749, -0.799497,
-0.798234, -0.796961, -0.795678, -0.794385, -0.793082, -0.79177,
-0.790448, -0.789117, -0.787778, -0.78643, -0.785073, -0.783708,
-0.782335, -0.780955, -0.779567, -0.778171, -0.776769, -0.77536,
-0.773945, -0.772523, -0.771095, -0.769661, -0.768222, -0.766777,
-0.765328, -0.763873, -0.762414, -0.760951, -0.759483, -0.758012,
-0.756537, -0.755059, -0.753577, -0.752093, -0.750606, -0.749117,
-0.747625, -0.746132, -0.744637, -0.74314, -0.741643, -0.740144,
-0.738645, -0.737146, -0.735646, -0.734146, -0.732647, -0.731148,
-0.72965, -0.728154, -0.726658, -0.725164, -0.723672, -0.722182,
-0.720694, -0.719208, -0.717725, -0.716246, -0.714769, -0.713296,
-0.711827, -0.710362, -0.7089, -0.707443, -0.705991, -0.704544,
-0.703102, -0.701665, -0.700233, -0.698807, -0.697388, -0.695974,
-0.694567, -0.693167, -0.691773, -0.690387, -0.689008, -0.687636,
-0.686272, -0.684916, -0.683568, -0.682229, -0.680898, -0.679575,
-0.678262, -0.676958, -0.675663, -0.674378, -0.673103, -0.671837,
-0.670582, -0.669336, -0.668102, -0.666878, -0.665665, -0.664462,
-0.663272, -0.662092, -0.660924, -0.659768, -0.658623, -0.657491,
-0.656371, -0.655263, -0.654168, -0.653085, -0.652015, -0.650959,
-0.649915, -0.648884, -0.647867, -0.646864, -0.645874, -0.644898,
-0.643936, -0.642988, -0.642055, -0.641135, -0.64023, -0.63934,
-0.638464, -0.637603, -0.636757, -0.635926, -0.635109, -0.634309,
-0.633523, -0.632753, -0.631998, -0.631259, -0.630535, -0.629827,
-0.629135, -0.628459, -0.627799, -0.627154, -0.626526, -0.625914,
-0.625318, -0.624738, -0.624175, -0.623628, -0.623097, -0.622583,
-0.622086, -0.621604, -0.62114, -0.620692, -0.62026, -0.619845,
-0.619447, -0.619066, -0.618701, -0.618353, -0.618021, -0.617706,
-0.617408, -0.617127, -0.616862, -0.616614, -0.616383, -0.616169,
-0.615971, -0.615789, -0.615624, -0.615476, -0.615345, -0.61523,
-0.615131, -0.615049, -0.614983, -0.614933, -0.6149, -0.614883,
-0.614882, -0.614898, -0.614929, -0.614976, -0.61504, -0.615119,
-0.615214, -0.615325, -0.615451, -0.615593, -0.61575, -0.615923,
-0.616111, -0.616314, -0.616532, -0.616765, -0.617013, -0.617276,
-0.617553, -0.617845, -0.618152, -0.618473, -0.618808, -0.619157,
-0.61952, -0.619896, -0.620287, -0.620691, -0.621108, -0.621539,
-0.621983, -0.62244, -0.622909, -0.623392, -0.623887, -0.624394,
-0.624913, -0.625445, -0.625988, -0.626543, -0.62711, -0.627688,
-0.628278, -0.628878, -0.629489, -0.630111, -0.630744, -0.631387,
-0.63204, -0.632703, -0.633376, -0.634058, -0.63475, -0.635451,
-0.636161, -0.63688, -0.637607, -0.638343, -0.639087, -0.639839,
-0.640599, -0.641367, -0.642142, -0.642924, -0.643713, -0.644508,
-0.645311, -0.646119, -0.646934, -0.647755, -0.648581, -0.649413,
-0.650249, -0.651091, -0.651938, -0.652789, -0.653645, -0.654504,
-0.655368, -0.656235, -0.657105, -0.657979, -0.658855, -0.659735,
-0.660616, -0.6615, -0.662386, -0.663274, -0.664163, -0.665053,
-0.665945, -0.666837, -0.66773, -0.668623, -0.669517, -0.67041,
-0.671302, -0.672195, -0.673086, -0.673976, -0.674865, -0.675752,
-0.676637, -0.67752, -0.678401, -0.67928, -0.680155, -0.681028,
-0.681897, -0.682763, -0.683625, -0.684483, -0.685337, -0.686186,
-0.687031, -0.687871, -0.688705, -0.689534, -0.690358, -0.691176,
-0.691987, -0.692792, -0.693591, -0.694383, -0.695168, -0.695945,
-0.696715, -0.697478, -0.698232, -0.698979, -0.699717, -0.700446,
-0.701167, -0.701878, -0.702581, -0.703273, -0.703957, -0.70463,
-0.705293, -0.705946, -0.706588, -0.70722, -0.707841, -0.70845,
-0.709048, -0.709635, -0.71021, -0.710773, -0.711324, -0.711863,
-0.712389, -0.712902, -0.713403, -0.71389, -0.714364, -0.714825,
-0.715272, -0.715706, -0.716125, -0.716531, -0.716922, -0.717298,
-0.71766, -0.718007, -0.71834, -0.718657, -0.718958, -0.719245,
-0.719516, -0.719771, -0.72001, -0.720234, -0.720441, -0.720632,
-0.720806, -0.720964, -0.721105, -0.72123, -0.721337, -0.721428,
-0.721501, -0.721557, -0.721596, -0.721617, -0.721621, -0.721606,
-0.721575, -0.721525, -0.721457, -0.721371, -0.721267, -0.721144,
-0.721003, -0.720844, -0.720667, -0.72047, -0.720255, -0.720022,
-0.719769, -0.719498, -0.719207, -0.718898, -0.71857, -0.718223,
-0.717856, -0.717471, -0.717066, -0.716642, -0.716199, -0.715736,
-0.715254, -0.714753, -0.714232, -0.713692, -0.713133, -0.712554,
-0.711956, -0.711338, -0.710701, -0.710044, -0.709368, -0.708673,
-0.707958, -0.707224, -0.706471, -0.705698, -0.704906, -0.704094,
-0.703264, -0.702414, -0.701545, -0.700656, -0.699749, -0.698823,
-0.697877, -0.696913, -0.69593, -0.694928, -0.693907, -0.692867,
-0.691809, -0.690733, -0.689637, -0.688524, -0.687392, -0.686242,
-0.685074, -0.683887, -0.682683, -0.681461, -0.680221, -0.678964,
-0.677689, -0.676396, -0.675086, -0.673759, -0.672415, -0.671054,
-0.669676, -0.668281, -0.66687, -0.665442, -0.663998, -0.662538,
-0.661062, -0.659569, -0.658061, -0.656538, -0.654999, -0.653445,
-0.651875, -0.650291, -0.648691, -0.647078, -0.645449, -0.643806,
-0.64215, -0.640479, -0.638794, -0.637096, -0.635384, -0.633659,
-0.631921, -0.63017, -0.628407, -0.626631, -0.624842, -0.623042,
-0.621229, -0.619405, -0.61757, -0.615723, -0.613865, -0.611996,
-0.610116, -0.608226, -0.606326, -0.604416, -0.602496, -0.600566,
-0.598627, -0.596679, -0.594722, -0.592756, -0.590781, -0.588799,
-0.586808, -0.58481, -0.582804, -0.58079, -0.57877, -0.576743,
-0.574709, -0.572668, -0.570622, -0.568569, -0.566511, -0.564448,
-0.562379, -0.560306, -0.558228, -0.556145, -0.554058, -0.551967,
-0.549873, -0.547775, -0.545673, -0.543569, -0.541462, -0.539353,
-0.537241, -0.535127, -0.533012, -0.530895, -0.528777, -0.526658,
-0.524539, -0.522418, -0.520298, -0.518178, -0.516058, -0.513938,
-0.511819, -0.509702, -0.507585, -0.50547, -0.503357, -0.501246,
-0.499138, -0.497031, -0.494928, -0.492827, -0.49073, -0.488636,
-0.486547, -0.484461, -0.482379, -0.480302, -0.478229, -0.476162,
-0.474099, -0.472043, -0.469991, -0.467946, -0.465907, -0.463874,
-0.461848, -0.459829, -0.457817, -0.455812, -0.453814, -0.451825,
-0.449843, -0.447869, -0.445904, -0.443948, -0.442, -0.440062,
-0.438133, -0.436213, -0.434303, -0.432403, -0.430513, -0.428633,
-0.426764, -0.424905, -0.423057, -0.421221, -0.419396, -0.417582,
-0.41578, -0.41399, -0.412212, -0.410446, -0.408692, -0.406951,
-0.405223, -0.403508, -0.401806, -0.400117, -0.398441, -0.396779,
-0.395131, -0.393497, -0.391876, -0.39027, -0.388679, -0.387101,
-0.385539, -0.383991, -0.382458, -0.38094, -0.379437, -0.37795,
-0.376477, -0.375021, -0.37358, -0.372155, -0.370745, -0.369352,
-0.367975, -0.366613, -0.365269, -0.36394, -0.362628, -0.361332,
-0.360054, -0.358791, -0.357546, -0.356317, -0.355106, -0.353911,
-0.352733, -0.351573, -0.350429, -0.349303, -0.348194, -0.347102,
-0.346028, -0.344971, -0.343931, -0.342909, -0.341905, -0.340917,
-0.339948, -0.338996, -0.338061, -0.337144, -0.336244, -0.335362,
-0.334498, -0.333651, -0.332821, -0.33201, -0.331215, -0.330438,
-0.329678, -0.328936, -0.328211, -0.327504, -0.326813, -0.32614,
-0.325485, -0.324846, -0.324224, -0.323619, -0.323032, -0.322461,
-0.321907, -0.321369, -0.320849, -0.320345, -0.319857, -0.319385,
-0.31893, -0.318491, -0.318069, -0.317662, -0.317271, -0.316895,
-0.316536, -0.316191, -0.315862, -0.315549, -0.31525, -0.314967,
-0.314698, -0.314444, -0.314204, -0.313979, -0.313768, -0.313571,
-0.313388, -0.313218, -0.313062, -0.31292, -0.312791, -0.312674,
-0.312571, -0.31248, -0.312402, -0.312335, -0.312281, -0.312239,
-0.312208, -0.312189, -0.312181, -0.312184, -0.312198, -0.312223,
-0.312257, -0.312302, -0.312357, -0.312421, -0.312495, -0.312578,
-0.31267, -0.31277, -0.312879, -0.312996, -0.313121, -0.313254,
-0.313394, -0.313541, -0.313695, -0.313856, -0.314023, -0.314196,
-0.314375, -0.314559, -0.314748, -0.314943, -0.315142, -0.315345,
-0.315553, -0.315764, -0.315979, -0.316197, -0.316417, -0.316641,
-0.316866, -0.317094, -0.317323, -0.317553, -0.317785, -0.318017,
-0.31825, -0.318483, -0.318715, -0.318947, -0.319178, -0.319408,
-0.319636, -0.319862, -0.320087, -0.320308, -0.320527, -0.320743,
-0.320955, -0.321163, -0.321367, -0.321566, -0.321761, -0.32195,
-0.322134, -0.322312, -0.322484, -0.322649, -0.322807, -0.322958,
-0.323102, -0.323237, -0.323364, -0.323482, -0.323592, -0.323692,
-0.323782, -0.323863, -0.323933, -0.323992, -0.32404, -0.324077,
-0.324102, -0.324114, -0.324115, -0.324102, -0.324077, -0.324038,
-0.323985, -0.323918, -0.323836, -0.323739, -0.323627, -0.3235,
-0.323357, -0.323197, -0.323021, -0.322828, -0.322618, -0.32239,
-0.322144, -0.32188, -0.321597, -0.321295, -0.320974, -0.320633,
-0.320273, -0.319892, -0.319491, -0.319068, -0.318625, -0.31816,
-0.317673, -0.317164, -0.316632, -0.316078, -0.3155, -0.314899,
-0.314274, -0.313626, -0.312953, -0.312255, -0.311532, -0.310784,
-0.310011, -0.309212, -0.308386, -0.307535, -0.306656, -0.305751,
-0.304818, -0.303858, -0.30287, -0.301855, -0.30081, -0.299738,
-0.298636, -0.297506, -0.296346, -0.295156, -0.293937, -0.292688,
-0.291408, -0.290098, -0.288757, -0.287385, -0.285982, -0.284547,
-0.283081, -0.281583, -0.280053, -0.27849, -0.276895, -0.275267,
-0.273607, -0.271913, -0.270186, -0.268426, -0.266632, -0.264804,
-0.262943, -0.261047, -0.259117, -0.257152, -0.255153, -0.253119,
-0.25105, -0.248947, -0.246808, -0.244633, -0.242424, -0.240178,
-0.237897, -0.235581, -0.233228, -0.23084, -0.228415, -0.225954,
-0.223458, -0.220924, -0.218354, -0.215748, -0.213105, -0.210426,
-0.20771, -0.204957, -0.202168, -0.199341, -0.196478, -0.193578,
-0.190641, -0.187667, -0.184656, -0.181608, -0.178523, -0.175401,
-0.172242, -0.169046, -0.165813, -0.162544, -0.159237, -0.155894,
-0.152513, -0.149096, -0.145642, -0.142152, -0.138625, -0.135061,
-0.131461, -0.127824, -0.124151, -0.120441, -0.116696, -0.112914,
-0.109097, -0.105243, -0.101354, -0.0974293, -0.093469, -0.0894732,
-0.0854422, -0.0813761, -0.077275, -0.0731391, -0.0689685, -0.0647635,
-0.0605241, -0.0562505, -0.051943, -0.0476016, -0.0432267, -0.0388183,
-0.0343768, -0.0299022, -0.0253948, -0.0208549, -0.0162826, -0.0116781,
-0.00704181, -0.00237383, 0.00232557, 0.00705613, 0.0118176, 0.0166097,
0.0214322, 0.0262848, 0.0311673, 0.0360793, 0.0410206, 0.0459909,
0.0509898, 0.0560172, 0.0610726, 0.0661558, 0.0712664, 0.0764041,
0.0815687, 0.0867597, 0.0919769, 0.0972198, 0.102488, 0.107782,
0.1131, 0.118442, 0.123809, 0.129199, 0.134613, 0.140049,
0.145508, 0.150989, 0.156492, 0.162015, 0.16756, 0.173126,
0.178711, 0.184316, 0.189941, 0.195584, 0.201246, 0.206925,
0.212622, 0.218337, 0.224067, 0.229815, 0.235577, 0.241355,
0.247148, 0.252955, 0.258777, 0.264611, 0.270459, 0.276318,
0.28219, 0.288074, 0.293968, 0.299873, 0.305788, 0.311712,
0.317645, 0.323587, 0.329537, 0.335494, 0.341458, 0.347429,
0.353406, 0.359387, 0.365374, 0.371365, 0.37736, 0.383358,
0.389359, 0.395362, 0.401366, 0.407372, 0.413378, 0.419384,
0.42539, 0.431394, 0.437397, 0.443397, 0.449395, 0.455389,
0.461379, 0.467365, 0.473346, 0.479321, 0.48529, 0.491252,
0.497206, 0.503153, 0.509091, 0.51502, 0.52094, 0.526849,
0.532747, 0.538634, 0.544509, 0.550371, 0.55622, 0.562055,
0.567876, 0.573682, 0.579472, 0.585247, 0.591004, 0.596745,
0.602467, 0.608171, 0.613856, 0.619521, 0.625166, 0.63079,
0.636393, 0.641974, 0.647532, 0.653067, 0.658578, 0.664064,
0.669526, 0.674963, 0.680373, 0.685756, 0.691113, 0.696441,
0.701741, 0.707012, 0.712253, 0.717465, 0.722645, 0.727794,
0.732912, 0.737996, 0.743048, 0.748066, 0.75305, 0.758,
0.762914, 0.767792, 0.772634, 0.777439, 0.782206, 0.786936,
0.791627, 0.796278, 0.80089, 0.805462, 0.809993, 0.814483,
0.818931, 0.823336, 0.827699, 0.832018, 0.836294, 0.840525,
0.844711, 0.848851, 0.852946, 0.856994, 0.860995, 0.864949,
0.868855, 0.872712, 0.876521, 0.88028, 0.883989, 0.887648,
0.891256, 0.894812, 0.898317, 0.90177, 0.90517, 0.908518,
0.911811, 0.915051, 0.918236, 0.921366, 0.924441, 0.92746,
0.930424, 0.93333, 0.93618, 0.938973, 0.941707, 0.944384,
0.947002, 0.949561, 0.952061, 0.954502, 0.956882, 0.959202,
0.961462, 0.96366, 0.965797, 0.967872, 0.969885, 0.971836,
0.973723, 0.975548, 0.97731, 0.979008, 0.980642, 0.982211,
0.983717, 0.985157, 0.986532, 0.987842, 0.989086, 0.990265,
0.991377, 0.992423, 0.993402, 0.994315, 0.99516, 0.995938,
0.996649, 0.997292, 0.997867, 0.998374, 0.998812, 0.999182,
0.999484, 0.999716, 0.99988, 0.999975, 1, 0.999956,
0.999842, 0.999659, 0.999406, 0.999083, 0.998689, 0.998226,
0.997693, 0.997089, 0.996415, 0.99567, 0.994855, 0.993969,
0.993013, 0.991986, 0.990888, 0.989719, 0.98848, 0.98717,
0.985789, 0.984337, 0.982815, 0.981221, 0.979557, 0.977822,
0.976016, 0.97414, 0.972193, 0.970175, 0.968087, 0.965928,
0.963699, 0.9614, 0.95903, 0.956591, 0.954081, 0.951501,
0.948852, 0.946132, 0.943344, 0.940485, 0.937558, 0.934561,
0.931495, 0.928361, 0.925158, 0.921886, 0.918546, 0.915138,
0.911662, 0.908118, 0.904507, 0.900829, 0.897083, 0.893271,
0.889392, 0.885447, 0.881436, 0.877359, 0.873216, 0.869008,
0.864735, 0.860397, 0.855995, 0.851529, 0.846999, 0.842405,
0.837748, 0.833028, 0.828246, 0.823401, 0.818495, 0.813527,
0.808498, 0.803408, 0.798257, 0.793047, 0.787776, 0.782447,
0.777058, 0.771611, 0.766106, 0.760543, 0.754923, 0.749245,
0.743512, 0.737722, 0.731877, 0.725976, 0.720021, 0.714011,
0.707948, 0.701831, 0.695662, 0.689439, 0.683165, 0.67684,
0.670464, 0.664037, 0.65756, 0.651033, 0.644458, 0.637834,
0.631163, 0.624443, 0.617677, 0.610865, 0.604007, 0.597103,
0.590155, 0.583163, 0.576126, 0.569047, 0.561925, 0.554762,
0.547557, 0.540311, 0.533025, 0.525699, 0.518334, 0.51093,
0.503489, 0.49601, 0.488495, 0.480944, 0.473357, 0.465735,
0.458078, 0.450389, 0.442666, 0.43491, 0.427123, 0.419305,
0.411456, 0.403577, 0.395669, 0.387732, 0.379767, 0.371775,
0.363756, 0.355711
};
static const float WAVE_EXPONENTIAL_126[DEFAULT_WAVELEN] = {
0.52899, 0.524721, 0.52044, 0.516145, 0.511837, 0.507517,
0.503185, 0.49884, 0.494483, 0.490113, 0.485732, 0.481339,
0.476934, 0.472517, 0.468088, 0.463649, 0.459198, 0.454735,
0.450262, 0.445777, 0.441282, 0.436776, 0.43226, 0.427733,
0.423195, 0.418647, 0.41409, 0.409522, 0.404944, 0.400357,
0.39576, 0.391153, 0.386537, 0.381912, 0.377278, 0.372634,
0.367982, 0.363321, 0.358651, 0.353973, 0.349286, 0.344591,
0.339888, 0.335177, 0.330458, 0.325732, 0.320997, 0.316255,
0.311506, 0.30675, 0.301986, 0.297215, 0.292438, 0.287653,
0.282862, 0.278065, 0.273261, 0.268451, 0.263635, 0.258813,
0.253984, 0.249151, 0.244311, 0.239466, 0.234616, 0.22976,
0.2249, 0.220034, 0.215164, 0.210289, 0.205409, 0.200525,
0.195636, 0.190744, 0.185847, 0.180946, 0.176042, 0.171133,
0.166222, 0.161307, 0.156388, 0.151466, 0.146542, 0.141614,
0.136684, 0.131751, 0.126815, 0.121877, 0.116937, 0.111995,
0.10705, 0.102104, 0.0971562, 0.0922067, 0.0872556, 0.0823032,
0.0773495, 0.0723947, 0.067439, 0.0624824, 0.0575251, 0.0525673,
0.0476089, 0.0426502, 0.0376914, 0.0327324, 0.0277735, 0.0228148,
0.0178564, 0.0128984, 0.00794104, 0.00298434, -0.00197155, -0.00692648,
-0.0118803, -0.016833, -0.0217843, -0.0267342, -0.0316825, -0.0366291,
-0.0415738, -0.0465166, -0.0514573, -0.0563957, -0.0613319, -0.0662655,
-0.0711966, -0.0761249, -0.0810504, -0.085973, -0.0908924, -0.0958087,
-0.100722, -0.105631, -0.110537, -0.115439, -0.120337, -0.125232,
-0.130122, -0.135008, -0.139889, -0.144767, -0.149639, -0.154507,
-0.15937, -0.164229, -0.169082, -0.17393, -0.178772, -0.18361,
-0.188441, -0.193267, -0.198088, -0.202902, -0.20771, -0.212513,
-0.217309, -0.222098, -0.226881, -0.231658, -0.236427, -0.24119,
-0.245946, -0.250695, -0.255437, -0.260171, -0.264898, -0.269617,
-0.274329, -0.279033, -0.283729, -0.288417, -0.293097, -0.297769,
-0.302432, -0.307087, -0.311733, -0.316371, -0.321, -0.32562,
-0.330231, -0.334833, -0.339425, -0.344009, -0.348583, -0.353147,
-0.357702, -0.362247, -0.366782, -0.371307, -0.375822, -0.380326,
-0.384821, -0.389305, -0.393779, -0.398242, -0.402694, -0.407135,
-0.411566, -0.415985, -0.420394, -0.424791, -0.429177, -0.433551,
-0.437914, -0.442265, -0.446605, -0.450932, -0.455248, -0.459552,
-0.463843, -0.468123, -0.47239, -0.476645, -0.480887, -0.485116,
-0.489333, -0.493537, -0.497729, -0.501907, -0.506072, -0.510224,
-0.514363, -0.518488, -0.5226, -0.526699, -0.530784, -0.534855,
-0.538912, -0.542956, -0.546985, -0.551001, -0.555002, -0.55899,
-0.562962, -0.566921, -0.570865, -0.574794, -0.578709, -0.582609,
-0.586495, -0.590365, -0.594221, -0.598061, -0.601887, -0.605697,
-0.609492, -0.613271, -0.617035, -0.620784, -0.624517, -0.628234,
-0.631936, -0.635621, -0.639291, -0.642945, -0.646583, -0.650205,
-0.653811, -0.6574, -0.660973, -0.66453, -0.668071, -0.671594,
-0.675102, -0.678592, -0.682066, -0.685523, -0.688964, -0.692387,
-0.695793, -0.699183, -0.702555, -0.70591, -0.709248, -0.712569,
-0.715872, -0.719158, -0.722426, -0.725677, -0.728911, -0.732126,
-0.735324, -0.738505, -0.741667, -0.744812, -0.747939, -0.751048,
-0.754138, -0.757211, -0.760266, -0.763302, -0.766321, -0.769321,
-0.772303, -0.775266, -0.778211, -0.781138, -0.784046, -0.786936,
-0.789807, -0.792659, -0.795493, -0.798308, -0.801104, -0.803882,
-0.80664, -0.80938, -0.812101, -0.814803, -0.817486, -0.82015,
-0.822795, -0.825421, -0.828028, -0.830616, -0.833184, -0.835733,
-0.838263, -0.840774, -0.843266, -0.845738, -0.84819, -0.850624,
-0.853038, -0.855432, -0.857807, -0.860162, -0.862498, -0.864815,
-0.867112, -0.869389, -0.871647, -0.873885, -0.876103, -0.878302,
-0.880481, -0.88264, -0.884779, -0.886899, -0.888999, -0.891079,
-0.89314, -0.89518, -0.897201, -0.899202, -0.901183, -0.903144,
-0.905086, -0.907007, -0.908909, -0.91079, -0.912652, -0.914494,
-0.916316, -0.918118, -0.9199, -0.921662, -0.923404, -0.925126,
-0.926829, -0.928511, -0.930173, -0.931816, -0.933438, -0.935041,
-0.936623, -0.938186, -0.939729, -0.941251, -0.942754, -0.944237,
-0.9457, -0.947143, -0.948566, -0.949969, -0.951352, -0.952716,
-0.954059, -0.955383, -0.956687, -0.957971, -0.959235, -0.960479,
-0.961703, -0.962908, -0.964093, -0.965258, -0.966404, -0.967529,
-0.968635, -0.969721, -0.970788, -0.971835, -0.972862, -0.97387,
-0.974858, -0.975827, -0.976776, -0.977705, -0.978615, -0.979505,
-0.980377, -0.981228, -0.98206, -0.982873, -0.983667, -0.984441,
-0.985196, -0.985932, -0.986648, -0.987345, -0.988024, -0.988683,
-0.989323, -0.989943, -0.990545, -0.991128, -0.991692, -0.992237,
-0.992763, -0.99327, -0.993759, -0.994229, -0.99468, -0.995112,
-0.995526, -0.995921, -0.996297, -0.996655, -0.996995, -0.997316,
-0.997619, -0.997903, -0.998169, -0.998417, -0.998647, -0.998858,
-0.999051, -0.999227, -0.999384, -0.999523, -0.999645, -0.999748,
-0.999834, -0.999902, -0.999952, -0.999985, -1, -0.999997,
-0.999977, -0.99994, -0.999885, -0.999813, -0.999724, -0.999617,
-0.999493, -0.999352, -0.999195, -0.99902, -0.998828, -0.998619,
-0.998394, -0.998152, -0.997893, -0.997617, -0.997325, -0.997017,
-0.996692, -0.996351, -0.995993, -0.995619, -0.995229, -0.994823,
-0.994401, -0.993963, -0.993509, -0.99304, -0.992554, -0.992053,
-0.991536, -0.991004, -0.990456, -0.989893, -0.989314, -0.98872,
-0.988111, -0.987487, -0.986848, -0.986194, -0.985525, -0.984841,
-0.984143, -0.983429, -0.982702, -0.981959, -0.981203, -0.980431,
-0.979646, -0.978846, -0.978033, -0.977205, -0.976363, -0.975507,
-0.974638, -0.973755, -0.972858, -0.971947, -0.971023, -0.970086,
-0.969135, -0.968171, -0.967194, -0.966204, -0.965201, -0.964185,
-0.963156, -0.962114, -0.96106, -0.959993, -0.958914, -0.957822,
-0.956718, -0.955602, -0.954474, -0.953333, -0.952181, -0.951016,
-0.94984, -0.948653, -0.947453, -0.946242, -0.94502, -0.943786,
-0.942541, -0.941285, -0.940018, -0.93874, -0.937451, -0.936151,
-0.93484, -0.933519, -0.932187, -0.930845, -0.929492, -0.92813,
-0.926757, -0.925374, -0.923981, -0.922578, -0.921165, -0.919743,
-0.918311, -0.91687, -0.915419, -0.913959, -0.912489, -0.911011,
-0.909523, -0.908027, -0.906522, -0.905007, -0.903485, -0.901954,
-0.900414, -0.898866, -0.89731, -0.895745, -0.894173, -0.892592,
-0.891004, -0.889408, -0.887804, -0.886192, -0.884573, -0.882947,
-0.881314, -0.879673, -0.878025, -0.87637, -0.874708, -0.87304,
-0.871365, -0.869683, -0.867995, -0.8663, -0.864599, -0.862892,
-0.861178, -0.859459, -0.857734, -0.856003, -0.854266, -0.852523,
-0.850775, -0.849022, -0.847264, -0.8455, -0.843731, -0.841957,
-0.840178, -0.838394, -0.836606, -0.834813, -0.833015, -0.831213,
-0.829407, -0.827596, -0.825782, -0.823963, -0.82214, -0.820314,
-0.818484, -0.81665, -0.814813, -0.812972, -0.811128, -0.809281,
-0.80743, -0.805577, -0.803721, -0.801861, -0.799999, -0.798135,
-0.796268, -0.794398, -0.792526, -0.790652, -0.788776, -0.786898,
-0.785017, -0.783135, -0.781251, -0.779366, -0.777479, -0.77559,
-0.7737, -0.771809, -0.769916, -0.768023, -0.766129, -0.764233,
-0.762337, -0.76044, -0.758543, -0.756645, -0.754747, -0.752848,
-0.75095, -0.749051, -0.747152, -0.745253, -0.743354, -0.741456,
-0.739558, -0.73766, -0.735763, -0.733867, -0.731971, -0.730076,
-0.728182, -0.726289, -0.724397, -0.722507, -0.720617, -0.718729,
-0.716843, -0.714958, -0.713075, -0.711193, -0.709313, -0.707436,
-0.70556, -0.703686, -0.701815, -0.699946, -0.698079, -0.696214,
-0.694353, -0.692493, -0.690637, -0.688783, -0.686933, -0.685085,
-0.68324, -0.681399, -0.679561, -0.677726, -0.675894, -0.674066,
-0.672242, -0.670421, -0.668604, -0.666791, -0.664982, -0.663176,
-0.661375, -0.659578, -0.657785, -0.655997, -0.654213, -0.652433,
-0.650659, -0.648888, -0.647123, -0.645362, -0.643606, -0.641855,
-0.64011, -0.638369, -0.636633, -0.634903, -0.633178, -0.631459,
-0.629745, -0.628037, -0.626334, -0.624637, -0.622946, -0.621261,
-0.619582, -0.617908, -0.616241, -0.61458, -0.612926, -0.611277,
-0.609635, -0.608, -0.606371, -0.604748, -0.603133, -0.601524,
-0.599921, -0.598326, -0.596738, -0.595156, -0.593582, -0.592015,
-0.590455, -0.588902, -0.587357, -0.585819, -0.584288, -0.582765,
-0.58125, -0.579742, -0.578242, -0.576749, -0.575265, -0.573788,
-0.57232, -0.570859, -0.569406, -0.567962, -0.566526, -0.565098,
-0.563678, -0.562267, -0.560864, -0.559469, -0.558083, -0.556706,
-0.555337, -0.553977, -0.552625, -0.551283, -0.549949, -0.548624,
-0.547308, -0.546001, -0.544703, -0.543414, -0.542134, -0.540864,
-0.539602, -0.53835, -0.537108, -0.535874, -0.53465, -0.533436,
-0.53223, -0.531035, -0.529849, -0.528673, -0.527506, -0.526349,
-0.525202, -0.524064, -0.522937, -0.521819, -0.520711, -0.519613,
-0.518525, -0.517447, -0.516379, -0.515321, -0.514274, -0.513236,
-0.512209, -0.511191, -0.510184, -0.509188, -0.508201, -0.507225,
-0.50626, -0.505304, -0.50436, -0.503425, -0.502501, -0.501588,
-0.500685, -0.499793, -0.498911, -0.49804, -0.497179, -0.49633,
-0.49549, -0.494662, -0.493844, -0.493037, -0.492241, -0.491456,
-0.490681, -0.489917, -0.489164, -0.488422, -0.487691, -0.486971,
-0.486261, -0.485563, -0.484875, -0.484198, -0.483533, -0.482878,
-0.482234, -0.481602, -0.48098, -0.480369, -0.47977, -0.479181,
-0.478603, -0.478037, -0.477481, -0.476937, -0.476403, -0.475881,
-0.47537, -0.47487, -0.474381, -0.473903, -0.473436, -0.47298,
-0.472536, -0.472102, -0.471679, -0.471268, -0.470868, -0.470479,
-0.4701, -0.469733, -0.469377, -0.469032, -0.468699, -0.468376,
-0.468064, -0.467763, -0.467474, -0.467195, -0.466927, -0.466671,
-0.466425, -0.466191, -0.465967, -0.465754, -0.465553, -0.465362,
-0.465182, -0.465013, -0.464855, -0.464708, -0.464572, -0.464446,
-0.464332, -0.464228, -0.464135, -0.464053, -0.463981, -0.463921,
-0.463871, -0.463831, -0.463803, -0.463785, -0.463777, -0.463781,
-0.463794, -0.463819, -0.463854, -0.463899, -0.463955, -0.464021,
-0.464098, -0.464185, -0.464283, -0.46439, -0.464508, -0.464637,
-0.464775, -0.464924, -0.465083, -0.465252, -0.465432, -0.465621,
-0.46582, -0.46603, -0.466249, -0.466478, -0.466717, -0.466966,
-0.467225, -0.467494, -0.467772, -0.46806, -0.468358, -0.468665,
-0.468982, -0.469308, -0.469644, -0.469989, -0.470344, -0.470708,
-0.471081, -0.471464, -0.471856, -0.472257, -0.472667, -0.473087,
-0.473515, -0.473952, -0.474398, -0.474854, -0.475318, -0.47579,
-0.476272, -0.476762, -0.477261, -0.477768, -0.478284, -0.478809,
-0.479342, -0.479883, -0.480432, -0.48099, -0.481556, -0.48213,
-0.482712, -0.483303, -0.483901, -0.484507, -0.485121, -0.485743,
-0.486372, -0.48701, -0.487654, -0.488307, -0.488967, -0.489634,
-0.490309, -0.490991, -0.49168, -0.492377, -0.49308, -0.493791,
-0.494508, -0.495233, -0.495964, -0.496703, -0.497447, -0.498199,
-0.498957, -0.499722, -0.500493, -0.501271, -0.502054, -0.502845,
-0.503641, -0.504443, -0.505252, -0.506066, -0.506886, -0.507712,
-0.508544, -0.509382, -0.510225, -0.511074, -0.511928, -0.512787,
-0.513652, -0.514522, -0.515398, -0.516278, -0.517163, -0.518054,
-0.518949, -0.519849, -0.520753, -0.521663, -0.522576, -0.523495,
-0.524417, -0.525344, -0.526276, -0.527211, -0.528151, -0.529094,
-0.530041, -0.530993, -0.531948, -0.532906, -0.533869, -0.534834,
-0.535804, -0.536776, -0.537752, -0.538731, -0.539713, -0.540698,
-0.541686, -0.542677, -0.543671, -0.544667, -0.545666, -0.546667,
-0.547671, -0.548678, -0.549686, -0.550697, -0.55171, -0.552724,
-0.553741, -0.554759, -0.55578, -0.556802, -0.557825, -0.55885,
-0.559876, -0.560904, -0.561933, -0.562963, -0.563994, -0.565026,
-0.566059, -0.567092, -0.568126, -0.569161, -0.570197, -0.571233,
-0.572269, -0.573305, -0.574342, -0.575378, -0.576415, -0.577451,
-0.578488, -0.579524, -0.580559, -0.581594, -0.582629, -0.583663,
-0.584696, -0.585728, -0.586759, -0.587789, -0.588819, -0.589847,
-0.590873, -0.591899, -0.592922, -0.593945, -0.594965, -0.595984,
-0.597001, -0.598016, -0.599029, -0.60004, -0.601048, -0.602055,
-0.603059, -0.60406, -0.605059, -0.606055, -0.607048, -0.608039,
-0.609026, -0.610011, -0.610992, -0.611971, -0.612945, -0.613917,
-0.614885, -0.615849, -0.61681, -0.617767, -0.61872, -0.619669,
-0.620614, -0.621555, -0.622491, -0.623424, -0.624351, -0.625275,
-0.626193, -0.627107, -0.628017, -0.628921, -0.629821, -0.630715,
-0.631604, -0.632488, -0.633367, -0.63424, -0.635108, -0.63597,
-0.636826, -0.637677, -0.638521, -0.63936, -0.640193, -0.641019,
-0.64184, -0.642654, -0.643461, -0.644263, -0.645057, -0.645845,
-0.646626, -0.6474, -0.648167, -0.648928, -0.649681, -0.650427,
-0.651165, -0.651897, -0.65262, -0.653337, -0.654045, -0.654746,
-0.655439, -0.656124, -0.656801, -0.657471, -0.658131, -0.658784,
-0.659428, -0.660064, -0.660692, -0.661311, -0.661921, -0.662522,
-0.663115, -0.663699, -0.664273, -0.664839, -0.665396, -0.665943,
-0.666481, -0.667009, -0.667528, -0.668038, -0.668537, -0.669027,
-0.669508, -0.669978, -0.670438, -0.670889, -0.671329, -0.671759,
-0.672178, -0.672588, -0.672987, -0.673375, -0.673753, -0.67412,
-0.674476, -0.674822, -0.675156, -0.67548, -0.675792, -0.676094,
-0.676384, -0.676663, -0.676931, -0.677187, -0.677432, -0.677665,
-0.677886, -0.678096, -0.678294, -0.67848, -0.678655, -0.678817,
-0.678967, -0.679105, -0.679231, -0.679345, -0.679446, -0.679535,
-0.679611, -0.679675, -0.679727, -0.679765, -0.679791, -0.679804,
-0.679804, -0.679792, -0.679766, -0.679727, -0.679675, -0.67961,
-0.679532, -0.679441, -0.679336, -0.679217, -0.679086, -0.67894,
-0.678781, -0.678609, -0.678422, -0.678222, -0.678008, -0.67778,
-0.677538, -0.677283, -0.677013, -0.676729, -0.676431, -0.676118,
-0.675792, -0.675451, -0.675096, -0.674726, -0.674342, -0.673943,
-0.67353, -0.673102, -0.672659, -0.672202, -0.67173, -0.671243,
-0.670741, -0.670224, -0.669693, -0.669146, -0.668584, -0.668007,
-0.667415, -0.666808, -0.666186, -0.665548, -0.664895, -0.664227,
-0.663544, -0.662845, -0.66213, -0.6614, -0.660654, -0.659893,
-0.659117, -0.658324, -0.657516, -0.656692, -0.655853, -0.654997,
-0.654126, -0.653239, -0.652336, -0.651417, -0.650483, -0.649532,
-0.648565, -0.647582, -0.646583, -0.645568, -0.644537, -0.64349,
-0.642427, -0.641347, -0.640251, -0.639139, -0.638011, -0.636866,
-0.635705, -0.634528, -0.633334, -0.632124, -0.630897, -0.629655,
-0.628395, -0.62712, -0.625827, -0.624519, -0.623193, -0.621852,
-0.620493, -0.619118, -0.617727, -0.616319, -0.614894, -0.613453,
-0.611995, -0.610521, -0.60903, -0.607522, -0.605998, -0.604457,
-0.602899, -0.601325, -0.599734, -0.598126, -0.596502, -0.594861,
-0.593203, -0.591528, -0.589837, -0.588129, -0.586405, -0.584663,
-0.582905, -0.581131, -0.579339, -0.577531, -0.575707, -0.573865,
-0.572007, -0.570132, -0.568241, -0.566333, -0.564408, -0.562466,
-0.560508, -0.558534, -0.556542, -0.554534, -0.55251, -0.550469,
-0.548411, -0.546337, -0.544246, -0.542139, -0.540015, -0.537874,
-0.535717, -0.533544, -0.531354, -0.529148, -0.526926, -0.524687,
-0.522431, -0.520159, -0.517871, -0.515567, -0.513246, -0.51091,
-0.508556, -0.506187, -0.503802, -0.5014, -0.498982, -0.496548,
-0.494098, -0.491632, -0.48915, -0.486652, -0.484138, -0.481608,
-0.479062, -0.476501, -0.473923, -0.47133, -0.468721, -0.466096,
-0.463456, -0.4608, -0.458128, -0.455441, -0.452738, -0.45002,
-0.447286, -0.444537, -0.441772, -0.438993, -0.436198, -0.433387,
-0.430562, -0.427721, -0.424865, -0.421994, -0.419109, -0.416208,
-0.413292, -0.410361, -0.407416, -0.404456, -0.401481, -0.398491,
-0.395487, -0.392468, -0.389435, -0.386387, -0.383325, -0.380249,
-0.377158, -0.374053, -0.370934, -0.367801, -0.364653, -0.361492,
-0.358317, -0.355127, -0.351924, -0.348707, -0.345477, -0.342233,
-0.338975, -0.335704, -0.332419, -0.329121, -0.32581, -0.322485,
-0.319147, -0.315796, -0.312432, -0.309055, -0.305665, -0.302262,
-0.298846, -0.295418, -0.291977, -0.288524, -0.285057, -0.281579,
-0.278088, -0.274585, -0.27107, -0.267542, -0.264003, -0.260451,
-0.256888, -0.253313, -0.249726, -0.246127, -0.242517, -0.238895,
-0.235262, -0.231618, -0.227962, -0.224295, -0.220617, -0.216928,
-0.213228, -0.209517, -0.205795, -0.202063, -0.19832, -0.194566,
-0.190802, -0.187028, -0.183243, -0.179449, -0.175644, -0.171829,
-0.168004, -0.16417, -0.160325, -0.156471, -0.152608, -0.148735,
-0.144853, -0.140961, -0.13706, -0.13315, -0.129231, -0.125304,
-0.121367, -0.117422, -0.113468, -0.109505, -0.105535, -0.101555,
-0.0975679, -0.0935723, -0.0895687, -0.0855572, -0.0815378, -0.0775107,
-0.0734759, -0.0694336, -0.0653839, -0.0613268, -0.0572625, -0.053191,
-0.0491125, -0.0450271, -0.0409348, -0.0368358, -0.0327302, -0.0286181,
-0.0244995, -0.0203746, -0.0162436, -0.0121064, -0.00796323, -0.00381417,
0.000340668, 0.00450118, 0.00866726, 0.0128388, 0.0170157, 0.0211978,
0.0253851, 0.0295774, 0.0337747, 0.0379767, 0.0421834, 0.0463948,
0.0506106, 0.0548307, 0.0590552, 0.0632837, 0.0675163, 0.0717529,
0.0759932, 0.0802373, 0.0844849, 0.088736, 0.0929904, 0.0972481,
0.101509, 0.105773, 0.11004, 0.114309, 0.118581, 0.122856,
0.127133, 0.131413, 0.135695, 0.139979, 0.144264, 0.148552,
0.152842, 0.157133, 0.161425, 0.165719, 0.170014, 0.174311,
0.178608, 0.182907, 0.187206, 0.191506, 0.195806, 0.200107,
0.204408, 0.20871, 0.213011, 0.217313, 0.221614, 0.225915,
0.230216, 0.234516, 0.238816, 0.243115, 0.247413, 0.25171,
0.256006, 0.2603, 0.264594, 0.268886, 0.273176, 0.277464,
0.281751, 0.286036, 0.290318, 0.294599, 0.298877, 0.303153,
0.307426, 0.311696, 0.315964, 0.320229, 0.324491, 0.328749,
0.333004, 0.337256, 0.341504, 0.345749, 0.34999, 0.354227,
0.35846, 0.362688, 0.366913, 0.371133, 0.375348, 0.379559,
0.383766, 0.387967, 0.392163, 0.396354, 0.40054, 0.404721,
0.408896, 0.413065, 0.417229, 0.421387, 0.425538, 0.429684,
0.433824, 0.437957, 0.442083, 0.446204, 0.450317, 0.454424,
0.458523, 0.462616, 0.466701, 0.470779, 0.47485, 0.478913,
0.482968, 0.487015, 0.491055, 0.495087, 0.49911, 0.503125,
0.507132, 0.51113, 0.515119, 0.5191, 0.523072, 0.527035,
0.530989, 0.534933, 0.538868, 0.542794, 0.54671, 0.550617,
0.554513, 0.5584, 0.562276, 0.566143, 0.569999, 0.573844,
0.577679, 0.581504, 0.585318, 0.58912, 0.592912, 0.596693,
0.600462, 0.60422, 0.607967, 0.611702, 0.615425, 0.619137,
0.622836, 0.626524, 0.6302, 0.633863, 0.637513, 0.641152,
0.644778, 0.648391, 0.651991, 0.655578, 0.659152, 0.662713,
0.666261, 0.669795, 0.673316, 0.676824, 0.680317, 0.683797,
0.687263, 0.690715, 0.694152, 0.697576, 0.700985, 0.704379,
0.707759, 0.711125, 0.714475, 0.717811, 0.721132, 0.724437,
0.727728, 0.731003, 0.734263, 0.737507, 0.740735, 0.743948,
0.747145, 0.750326, 0.753492, 0.75664, 0.759773, 0.76289,
0.76599, 0.769073, 0.77214, 0.77519, 0.778223, 0.78124,
0.784239, 0.787221, 0.790187, 0.793134, 0.796065, 0.798978,
0.801873, 0.80475, 0.80761, 0.810452, 0.813276, 0.816082,
0.81887, 0.82164, 0.824391, 0.827124, 0.829838, 0.832534,
0.835211, 0.83787, 0.840509, 0.84313, 0.845731, 0.848314,
0.850877, 0.853421, 0.855945, 0.85845, 0.860936, 0.863402,
0.865848, 0.868275, 0.870681, 0.873068, 0.875435, 0.877781,
0.880108, 0.882414, 0.884699, 0.886965, 0.88921, 0.891434,
0.893638, 0.895821, 0.897983, 0.900124, 0.902244, 0.904344,
0.906422, 0.908479, 0.910515, 0.91253, 0.914523, 0.916495,
0.918445, 0.920374, 0.922281, 0.924166, 0.92603, 0.927872,
0.929692, 0.93149, 0.933266, 0.935019, 0.936751, 0.93846,
0.940148, 0.941813, 0.943455, 0.945075, 0.946673, 0.948247,
0.9498, 0.951329, 0.952836, 0.95432, 0.955782, 0.95722,
0.958636, 0.960028, 0.961397, 0.962744, 0.964067, 0.965366,
0.966643, 0.967896, 0.969126, 0.970333, 0.971516, 0.972676,
0.973812, 0.974924, 0.976013, 0.977078, 0.97812, 0.979138,
0.980132, 0.981102, 0.982048, 0.982971, 0.983869, 0.984743,
0.985594, 0.98642, 0.987222, 0.988001, 0.988754, 0.989484,
0.99019, 0.990871, 0.991528, 0.992161, 0.992769, 0.993353,
0.993913, 0.994448, 0.994958, 0.995444, 0.995906, 0.996343,
0.996756, 0.997144, 0.997507, 0.997846, 0.99816, 0.998449,
0.998714, 0.998954, 0.999169, 0.99936, 0.999526, 0.999667,
0.999783, 0.999875, 0.999941, 0.999983, 1, 0.999992,
0.999959, 0.999902, 0.999819, 0.999712, 0.99958, 0.999422,
0.99924, 0.999033, 0.998801, 0.998544, 0.998263, 0.997956,
0.997624, 0.997268, 0.996886, 0.99648, 0.996048, 0.995592,
0.995111, 0.994604, 0.994073, 0.993517, 0.992936, 0.992331,
0.9917, 0.991044, 0.990364, 0.989658, 0.988928, 0.988173,
0.987393, 0.986588, 0.985759, 0.984905, 0.984026, 0.983122,
0.982193, 0.98124, 0.980262, 0.979259, 0.978231, 0.977179,
0.976102, 0.975001, 0.973875, 0.972725, 0.971549, 0.97035,
0.969126, 0.967877, 0.966604, 0.965307, 0.963985, 0.962639,
0.961268, 0.959873, 0.958454, 0.957011, 0.955543, 0.954051,
0.952535, 0.950995, 0.949431, 0.947843, 0.946231, 0.944595,
0.942935, 0.941251, 0.939543, 0.937812, 0.936056, 0.934277,
0.932474, 0.930648, 0.928798, 0.926924, 0.925027, 0.923107,
0.921163, 0.919196, 0.917205, 0.915191, 0.913154, 0.911094,
0.90901, 0.906904, 0.904774, 0.902622, 0.900446, 0.898248,
0.896027, 0.893783, 0.891517, 0.889227, 0.886916, 0.884581,
0.882225, 0.879846, 0.877444, 0.87502, 0.872574, 0.870106,
0.867616, 0.865104, 0.862569, 0.860013, 0.857435, 0.854836,
0.852214, 0.849571, 0.846906, 0.84422, 0.841512, 0.838783,
0.836033, 0.833262, 0.830469, 0.827655, 0.824821, 0.821965,
0.819088, 0.816191, 0.813273, 0.810334, 0.807375, 0.804395,
0.801395, 0.798375, 0.795334, 0.792273, 0.789192, 0.786091,
0.782971, 0.77983, 0.77667, 0.773489, 0.77029, 0.76707,
0.763832, 0.760574, 0.757297, 0.754, 0.750685, 0.74735,
0.743997, 0.740625, 0.737234, 0.733824, 0.730396, 0.72695,
0.723485, 0.720001, 0.7165, 0.712981, 0.709443, 0.705888,
0.702315, 0.698724, 0.695115, 0.691489, 0.687846, 0.684185,
0.680507, 0.676812, 0.6731, 0.669371, 0.665625, 0.661863,
0.658083, 0.654288, 0.650475, 0.646647, 0.642802, 0.638941,
0.635064, 0.631172, 0.627263, 0.623339, 0.619399, 0.615443,
0.611472, 0.607486, 0.603485, 0.599469, 0.595437, 0.591391,
0.58733, 0.583255, 0.579165, 0.57506, 0.570941, 0.566808,
0.562661, 0.5585, 0.554325, 0.550136, 0.545934, 0.541718,
0.537489, 0.533246
};
static const float *WAVE_EXPONENTIALS[DEFAULT_OCTAVES] = {
WAVE_EXPONENTIAL_000, WAVE_EXPONENTIAL_006, WAVE_EXPONENTIAL_018,
WAVE_EXPONENTIAL_030, WAVE_EXPONENTIAL_042, WAVE_EXPONENTIAL_054,
WAVE_EXPONENTIAL_066, WAVE_EXPONENTIAL_078, WAVE_EXPONENTIAL_090,
WAVE_EXPONENTIAL_102, WAVE_EXPONENTIAL_114, WAVE_EXPONENTIAL_126
};
|
jimd1989/boar
|
src/audio-output.c
|
<filename>src/audio-output.c
/* Functions related to audio output, including the main playback function. */
#include <err.h>
#include <limits.h>
#include <math.h>
#include <sndio.h>
#include <stdint.h>
#include <string.h>
#include "audio-output.h"
#include "amplitude.h"
#include "audio-init.h"
#include "buffers.h"
#include "constants/defaults.h"
#include "constants/errors.h"
#include "numerical.h"
#include "voice.h"
static void clearBuffer(Buffer *);
static void fillBuffer(Audio *);
static int16_t mixdownSample(const float, const float, const float);
static void writeFrames(Audio *);
static void
clearBuffer(Buffer *b) {
/* Explicitly zeroes Audio.Buffer.Mix, since sample data is summed up inside
* of it. This differs from Audio.Buffer.Output, which can simply be overwritten
* during each cycle. */
memset(b->Mix, 0, sizeof(*b->Mix) * DEFAULT_BUFSIZE);
}
static void
fillBuffer(Audio *a) {
/* Calculates all sample data from Audio.Voices and sums it up in
* Audio.Buffer.Mix. The master phase is incremented by DEFAULT_BUFSIZE as a
* rough phase-tracking heuristic for new notes. */
unsigned int n = 0;
for (; n < a->Settings.Polyphony ; n++) {
pollVoice(&a->Voices.All[n]);
}
a->Voices.Phase += DEFAULT_BUFSIZE; /* Maybe something else */
}
static int16_t
mixdownSample(const float s, const float masterAmp, const float chanAmp) {
/* Takes a float from Audio.MixingBuffer and returns an int16_t with simple
* dither noise added to it. This algorithm was adapted from <NAME>
* post on KVR Audio. */
float r = (rand() / ((float)RAND_MAX * 0.5f)) - 1.0f;
r /= (float)(USHRT_MAX + 1);
return (int16_t)(roundf(clip(s + r) * (float)SHRT_MAX) * masterAmp * chanAmp);
}
static void
writeFrames(Audio *a) {
/* Writes DEFAULT_BUFSIZE worth of frames from Audio.Buffer.Mix to
* Audio.Buffer.Output. These floats representing an internal monophonic
* signal are dithered and output as 16 bit signed integers representing
* the stereo signal. Since DEFAULT_BUFSIZE may not be a perfect multiple of
* Audio.Buffer.SizeFrames, a call to sio_write may take place within the middle
* of this loop. */
int16_t sl = 0;
int16_t sr = 0;
float s = 0.0f;
size_t n = 0;
size_t localFramesWritten = 0;
size_t limit = 0;
Buffer *b = &a->Buffer;
size_t tillWrite = b->SizeFrames - b->FramesWritten;
while (localFramesWritten < DEFAULT_BUFSIZE) {
limit = LESSER(tillWrite, DEFAULT_BUFSIZE);
for (n = 0 ; n < limit ; n++) {
/* Will eventually have channel independent amplitudes here. */
s = b->Mix[localFramesWritten + n];
sl = mixdownSample(s, a->Amplitude.Master, a->Amplitude.L);
sr = mixdownSample(s, a->Amplitude.Master, a->Amplitude.R);
b->Output[b->BytesWritten++] = (uint8_t)(sl & 255);
b->Output[b->BytesWritten++] = (uint8_t)(sl >> 8);
b->Output[b->BytesWritten++] = (uint8_t)(sr & 255);
b->Output[b->BytesWritten++] = (uint8_t)(sr >> 8);
}
localFramesWritten += limit;
b->FramesWritten += limit;
if (b->FramesWritten == b->SizeFrames) {
sio_write(a->Output, b->Output, b->SizeBytes);
b->FramesWritten = 0;
b->BytesWritten = 0;
}
tillWrite = DEFAULT_BUFSIZE - localFramesWritten;
}
}
void
play(Audio *a) {
/* Calculates DEFAULT_BUFSIZE frames worth of synthesis data and writes them to
* Audio.Buffer.Output. This output buffer will eventually be dumped to sndio,
* but this may not occur during every invocation of this function. It depends
* on the Audio.Buffer.SizeFrames returned by the hardware settings. */
clearBuffer(&a->Buffer);
fillBuffer(a);
writeFrames(a);
}
|
jimd1989/boar
|
src/voice.h
|
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include "audio-settings.h"
#include "constants/defaults.h"
#include "key.h"
#include "synthesis.h"
#include "wave.h"
typedef struct Voice {
/* A voice plays back an individual note in a polyphonic performance. To do
* this, it manages a carrier:modulator pair of Operators whose respective
* Pitch value are governed by Voice.Ratio. During every cycle of audio output,
* the values in Voice.Carrier's buffer are modulated against the values in
* Voice.Modulator's buffer. */
unsigned int Note;
Operator Carrier;
Operator Modulator;
} Voice;
typedef struct Voices {
/* Voices is a master struct with an array of all available Voices, plus
* additional playback information, most of which is self-explanatory.
* Voices.Amplitude is 1.0 / Voices.N, so that simultaenous playback of all
* Voices does not clip. Voices.Phase is incremented by the size of
* DEFAULT_BUFSIZE every time data is written to the soundcard.
* It serves as a rough measure of global phase, so that new notes do not start
* with a phase of zero. Voices.Keys contains pointers to active Voices in
* terms of MIDI notes, allowing for easy access when turning a note on/off.
* Voices.Current cycles through Voices.All looking for free voices to assign
* new notes to. */
unsigned int Current;
unsigned int Rate;
float Amplitude;
size_t N;
uint64_t Phase;
Operators Carrier;
Operators Modulator;
Voice * All;
Voice * Active[DEFAULT_KEYS_NUM];
Keyboard Keyboard;
float ModulatorBuffer[DEFAULT_BUFSIZE];
} Voices;
void voiceOn(Voices *, const uint16_t);
void voiceOff(Voices *, const uint16_t);
void pollVoice(Voice *);
void setPitchRatio(Voices *, const bool, const float);
void setFixedRate(Voices *, const bool, const float);
void setModulation(Voices *, const float);
void makeVoices(Voices *, float *, const AudioSettings *);
void killVoices(Voices *);
|
jimd1989/boar
|
src/noise.c
|
/* Functions related to the Noise type. Consult "noise.h" for more info. */
#include <stdlib.h>
#include "noise.h"
#include "constants/defaults.h"
#include "math.h"
float
readNoise(Noise *n, const float pitch) {
/* Returns a random sample from a Noise unit. */
n->Phase += pitch;
if (n->Phase > DEFAULT_WAVELEN) {
n->Phase = fmodf(n->Phase, (float)DEFAULT_WAVELEN);
n->Amplitude = (((float)rand() / (float)RAND_MAX) * 2.0f) - 1.0f;
}
return n->Amplitude;
}
void
makeNoise(Noise *n) {
/* Initialize a noise generator. */
n->Phase = 0.0f;
n->Amplitude = 0.0f;
}
|
jimd1989/boar
|
src/numerical.h
|
#pragma once
/* Return the lesser of two values. */
#define LESSER(x, y) (x > y ? y : x)
float truncateFloat(const float, const float);
float liftFloat(const float, const float);
float clip(const float);
float expCurve(const float);
float unipolar(const float);
float interpolate(const float *, const int, const float);
|
jimd1989/boar
|
src/envelope.c
|
<filename>src/envelope.c
/* Functions related to management of Env types. For more detailed information,
* consult "envelope.h". */
#include <stdbool.h>
#include "envelope.h"
#include "constants/defaults.h"
#include "constants/maximums.h"
#include "numerical.h"
#include "synthesis.h"
#include "wave.h"
static float envSpeed(const unsigned int, const float);
static void setEnvLevel(const unsigned int, EnvStep *, const float);
static void incrementAttack(Env *);
static void incrementDecay(Env *);
static void incrementRelease(Env *);
static float
envSpeed(const unsigned int rate, const float f) {
/* Derives the increment value of an envelope stage, and hence its speed, from
* the overall sample rate of the program "rate", and a user-specified float
* value between 0.0 and 1.0 "f". */
float curve = unipolar(expCurve(f));
return 1.0f / ((float)rate * curve * MAX_ENV_TIME);
}
static void
setEnvLevel(const unsigned int rate, EnvStep *est, const float f) {
/* Sets the speed of a specific envelope stage in terms of argument f. f must
* be less than 1.0 or else it will reference an out of bounds index of
* WAVE_EXPONENTIAL in expCurve(). f is capped at 1.0 at the REPL level with
* truncateFloat(). Make sure that this is the case for all user-facing
* procedures that call setEnvParameter(). */
est->Level = envSpeed(rate, f);
}
static void
incrementAttack(Env *e) {
/* Increments Env.Phase according to envelope's attack speed. */
e->Phase = truncateFloat(e->Phase + e->Attack->Level, 0.99f);
if (e->Phase >= 0.99f) {
e->Stage = ENV_DECAY;
e->Wave = &e->Decay->Wave;
}
}
static void
incrementDecay(Env *e) {
/* Decrements Env.Phase according to envelope's decay speed. */
e->Phase = liftFloat(e->Phase - e->Decay->Level, *e->Sustain);
if (e->Phase == *e->Sustain) {
if (*e->Loop) {
e->Stage = ENV_ATTACK;
e->Phase = 0.0f;
} else {
e->Stage = ENV_SUSTAIN;
}
}
}
static void
incrementRelease(Env *e) {
/* Decrements Env.Phase according to envelope's release speed. */
e->Phase = liftFloat(e->Phase - e->Release->Level, 0.0f);
if (e->Phase == 0.0f) {
e->Stage = ENV_FINISHED;
}
}
static void
incrementEnv(Env *e) {
/* Polls the envelope stage, runs the appropriate Env increment function. */
switch((unsigned int)e->Stage){
case ENV_ATTACK:
incrementAttack(e);
break;
case ENV_DECAY:
incrementDecay(e);
break;
case ENV_SUSTAIN:
break;
case ENV_RELEASE:
incrementRelease(e);
break;
}
}
float
applyEnv(Env *e) {
/* Returns a sample from the envelope's stage's wavetable based upon the
* envelope's phase. Weights it according to Env.Depth. */
float level = 0.0f;
incrementEnv(e);
switch((unsigned int)e->Stage){
case ENV_ATTACK:
level = interpolateCycle(&e->Attack->Wave, e->Phase);
break;
case ENV_DECAY:
level = interpolateCycle(&e->Decay->Wave, e->Phase);
break;
case ENV_SUSTAIN:
return *e->Sustain;
case ENV_RELEASE:
level = interpolateCycle(&e->Release->Wave, e->Phase);
break;
}
return 1.0f - ((1.0f - level) * *e->Depth);
}
void
resetEnv(Env *e) {
/* Sets an Env back to attack mode with 0.0 phase. */
e->Phase = 0.0f;
e->Stage = ENV_ATTACK;
}
void
retriggerEnv(Env *e) {
/* Sets an Env back to attack, but leaves its phase. */
e->Stage = ENV_ATTACK;
}
void
setLoop(Envs *es, const bool enabled) {
/* Sets the loop state of an envelope. */
es->Loop = enabled;
}
void
setDepth(Envs *es, const float level) {
/* Sets the modulation depth of an envelope. */
es->Depth = truncateFloat(level, 1.0f);
}
void
setAttackLevel(Envs *es, const float f) {
/* Sets the attack speed for an envelope. */
setEnvLevel(es->Rate, &es->Attack, truncateFloat(f, 1.0f));
}
void
setDecayLevel(Envs *es, const float f) {
/* Sets the decay speed for an envelope. */
setEnvLevel(es->Rate, &es->Decay, truncateFloat(f, 1.0f));
}
void
setSustainLevel(Envs *es, const float f) {
/* Sets the sustain level for an envelope. */
es->Sustain = truncateFloat(f, 1.0f);
}
void
setReleaseLevel(Envs *es, const float f) {
/* Sets the release speed for an envelope. */
setEnvLevel(es->Rate, &es->Release, truncateFloat(f, 1.0f));
}
void
setAttackWave(Envs *es, const int wt) {
/* Sets the wavetable of the attack stage. */
selectWave(&es->Attack.Wave, wt);
}
void
setDecayWave(Envs *es, const int wt) {
/* Sets the wavetable of the attack stage. */
selectWave(&es->Decay.Wave, wt);
}
void
setReleaseWave(Envs *es, const int wt) {
/* Sets the wavetable of the attack stage. */
selectWave(&es->Release.Wave, wt);
}
void
makeEnv(Envs *es, Env *e) {
/* Assigns an Env pointers to all the fields in an Envs. */
e->Loop = &es->Loop;
e->Depth = &es->Depth;
e->Attack = &es->Attack;
e->Decay = &es->Decay;
e->Sustain = &es->Sustain;
e->Release = &es->Release;
e->Stage = ENV_FINISHED;
}
void
makeEnvs(Envs *es, const unsigned int rate) {
/* Assigns Envs its sample rate and sets it to a sustain-only configuration. */
es->Loop = false;
es->Depth = 1.0f;
es->Rate = rate;
setAttackLevel(es, 0.0f);
setDecayLevel(es, 0.0f);
setSustainLevel(es, 0.99f);
setReleaseLevel(es, 0.0f);
setAttackWave(es, WAVE_TYPE_SAW);
setDecayWave(es, WAVE_TYPE_SAW);
setReleaseWave(es, WAVE_TYPE_SAW);
}
|
jimd1989/boar
|
src/parse.h
|
# pragma once
#include <stdint.h>
#include "constants/errors.h"
typedef union Arg {
/* A union where textual user input is parsed to. Can be an int, float, or a
* string. */
int32_t I;
float F;
char * S;
} Arg;
typedef struct Cmd {
/* The representation of a single boar command. Cmd.Func is a character that
* corresponds with one of boar's functions, Cmd.Type is the signature of the
* expected argument, and Cmd.Arg is the solitary argument to this function.
* Errors parsing commands are stored in Cmd.Error, since the return type of
* many parsing functions is the number of bytes read. */
unsigned int Func;
unsigned int Type;
Error Error;
Arg Arg;
} Cmd;
int parseCmd(Cmd *, char *);
|
jimd1989/boar
|
src/wavetables/sine.h
|
/* Array representing one cycle of a sine wave. A tone of an arbitrary pitch
* is derived from interpolated lookups to this table. */
#pragma once
#include "../constants/defaults.h"
static const float WAVE_SINE_000[DEFAULT_WAVELEN] = {
0, 0.00306796, 0.00613588, 0.00920375, 0.0122715, 0.0153392,
0.0184067, 0.0214741, 0.0245412, 0.0276081, 0.0306748, 0.0337412,
0.0368072, 0.0398729, 0.0429383, 0.0460032, 0.0490677, 0.0521317,
0.0551952, 0.0582583, 0.0613207, 0.0643826, 0.0674439, 0.0705046,
0.0735646, 0.0766239, 0.0796824, 0.0827403, 0.0857973, 0.0888536,
0.091909, 0.0949635, 0.0980171, 0.10107, 0.104122, 0.107172,
0.110222, 0.113271, 0.116319, 0.119365, 0.122411, 0.125455,
0.128498, 0.13154, 0.134581, 0.13762, 0.140658, 0.143695,
0.14673, 0.149765, 0.152797, 0.155828, 0.158858, 0.161886,
0.164913, 0.167938, 0.170962, 0.173984, 0.177004, 0.180023,
0.18304, 0.186055, 0.189069, 0.19208, 0.19509, 0.198098,
0.201105, 0.204109, 0.207111, 0.210112, 0.21311, 0.216107,
0.219101, 0.222094, 0.225084, 0.228072, 0.231058, 0.234042,
0.237024, 0.240003, 0.24298, 0.245955, 0.248928, 0.251898,
0.254866, 0.257831, 0.260794, 0.263755, 0.266713, 0.269668,
0.272621, 0.275572, 0.27852, 0.281465, 0.284408, 0.287347,
0.290285, 0.293219, 0.296151, 0.29908, 0.302006, 0.304929,
0.30785, 0.310767, 0.313682, 0.316593, 0.319502, 0.322408,
0.32531, 0.32821, 0.331106, 0.334, 0.33689, 0.339777,
0.342661, 0.345541, 0.348419, 0.351293, 0.354164, 0.357031,
0.359895, 0.362756, 0.365613, 0.368467, 0.371317, 0.374164,
0.377007, 0.379847, 0.382683, 0.385516, 0.388345, 0.39117,
0.393992, 0.39681, 0.399624, 0.402435, 0.405241, 0.408044,
0.410843, 0.413638, 0.41643, 0.419217, 0.422, 0.42478,
0.427555, 0.430326, 0.433094, 0.435857, 0.438616, 0.441371,
0.444122, 0.446869, 0.449611, 0.45235, 0.455084, 0.457813,
0.460539, 0.46326, 0.465976, 0.468689, 0.471397, 0.4741,
0.476799, 0.479494, 0.482184, 0.484869, 0.48755, 0.490226,
0.492898, 0.495565, 0.498228, 0.500885, 0.503538, 0.506187,
0.50883, 0.511469, 0.514103, 0.516732, 0.519356, 0.521975,
0.52459, 0.527199, 0.529804, 0.532403, 0.534998, 0.537587,
0.540171, 0.542751, 0.545325, 0.547894, 0.550458, 0.553017,
0.55557, 0.558119, 0.560662, 0.563199, 0.565732, 0.568259,
0.570781, 0.573297, 0.575808, 0.578314, 0.580814, 0.583309,
0.585798, 0.588282, 0.59076, 0.593232, 0.595699, 0.598161,
0.600616, 0.603067, 0.605511, 0.60795, 0.610383, 0.61281,
0.615232, 0.617647, 0.620057, 0.622461, 0.624859, 0.627252,
0.629638, 0.632019, 0.634393, 0.636762, 0.639124, 0.641481,
0.643832, 0.646176, 0.648514, 0.650847, 0.653173, 0.655493,
0.657807, 0.660114, 0.662416, 0.664711, 0.667, 0.669283,
0.671559, 0.673829, 0.676093, 0.67835, 0.680601, 0.682846,
0.685084, 0.687315, 0.689541, 0.691759, 0.693971, 0.696177,
0.698376, 0.700569, 0.702755, 0.704934, 0.707107, 0.709273,
0.711432, 0.713585, 0.715731, 0.71787, 0.720003, 0.722128,
0.724247, 0.726359, 0.728464, 0.730563, 0.732654, 0.734739,
0.736817, 0.738887, 0.740951, 0.743008, 0.745058, 0.747101,
0.749136, 0.751165, 0.753187, 0.755201, 0.757209, 0.759209,
0.761202, 0.763188, 0.765167, 0.767139, 0.769103, 0.771061,
0.77301, 0.774953, 0.776888, 0.778817, 0.780737, 0.782651,
0.784557, 0.786455, 0.788346, 0.79023, 0.792107, 0.793975,
0.795837, 0.797691, 0.799537, 0.801376, 0.803208, 0.805031,
0.806848, 0.808656, 0.810457, 0.812251, 0.814036, 0.815814,
0.817585, 0.819348, 0.821103, 0.82285, 0.824589, 0.826321,
0.828045, 0.829761, 0.83147, 0.83317, 0.834863, 0.836548,
0.838225, 0.839894, 0.841555, 0.843208, 0.844854, 0.846491,
0.84812, 0.849742, 0.851355, 0.852961, 0.854558, 0.856147,
0.857729, 0.859302, 0.860867, 0.862424, 0.863973, 0.865514,
0.867046, 0.868571, 0.870087, 0.871595, 0.873095, 0.874587,
0.87607, 0.877545, 0.879012, 0.880471, 0.881921, 0.883363,
0.884797, 0.886223, 0.88764, 0.889048, 0.890449, 0.891841,
0.893224, 0.894599, 0.895966, 0.897325, 0.898674, 0.900016,
0.901349, 0.902673, 0.903989, 0.905297, 0.906596, 0.907886,
0.909168, 0.910441, 0.911706, 0.912962, 0.91421, 0.915449,
0.916679, 0.917901, 0.919114, 0.920318, 0.921514, 0.922701,
0.92388, 0.925049, 0.92621, 0.927363, 0.928506, 0.929641,
0.930767, 0.931884, 0.932993, 0.934093, 0.935184, 0.936266,
0.937339, 0.938404, 0.939459, 0.940506, 0.941544, 0.942573,
0.943593, 0.944605, 0.945607, 0.946601, 0.947586, 0.948561,
0.949528, 0.950486, 0.951435, 0.952375, 0.953306, 0.954228,
0.955141, 0.956045, 0.95694, 0.957826, 0.958703, 0.959572,
0.960431, 0.96128, 0.962121, 0.962953, 0.963776, 0.96459,
0.965394, 0.96619, 0.966976, 0.967754, 0.968522, 0.969281,
0.970031, 0.970772, 0.971504, 0.972226, 0.97294, 0.973644,
0.974339, 0.975025, 0.975702, 0.97637, 0.977028, 0.977677,
0.978317, 0.978948, 0.97957, 0.980182, 0.980785, 0.981379,
0.981964, 0.982539, 0.983105, 0.983662, 0.98421, 0.984749,
0.985278, 0.985798, 0.986308, 0.986809, 0.987301, 0.987784,
0.988258, 0.988722, 0.989177, 0.989622, 0.990058, 0.990485,
0.990903, 0.991311, 0.99171, 0.992099, 0.99248, 0.99285,
0.993212, 0.993564, 0.993907, 0.99424, 0.994565, 0.994879,
0.995185, 0.995481, 0.995767, 0.996045, 0.996313, 0.996571,
0.99682, 0.99706, 0.99729, 0.997511, 0.997723, 0.997925,
0.998118, 0.998302, 0.998476, 0.99864, 0.998795, 0.998941,
0.999078, 0.999205, 0.999322, 0.999431, 0.999529, 0.999619,
0.999699, 0.999769, 0.999831, 0.999882, 0.999925, 0.999958,
0.999981, 0.999995, 1, 0.999995, 0.999981, 0.999958,
0.999925, 0.999882, 0.999831, 0.999769, 0.999699, 0.999619,
0.999529, 0.999431, 0.999322, 0.999205, 0.999078, 0.998941,
0.998795, 0.99864, 0.998476, 0.998302, 0.998118, 0.997925,
0.997723, 0.997511, 0.99729, 0.99706, 0.99682, 0.996571,
0.996313, 0.996045, 0.995767, 0.995481, 0.995185, 0.994879,
0.994565, 0.99424, 0.993907, 0.993564, 0.993212, 0.99285,
0.99248, 0.992099, 0.99171, 0.991311, 0.990903, 0.990485,
0.990058, 0.989622, 0.989177, 0.988722, 0.988258, 0.987784,
0.987301, 0.986809, 0.986308, 0.985798, 0.985278, 0.984749,
0.98421, 0.983662, 0.983105, 0.982539, 0.981964, 0.981379,
0.980785, 0.980182, 0.97957, 0.978948, 0.978317, 0.977677,
0.977028, 0.97637, 0.975702, 0.975025, 0.974339, 0.973644,
0.97294, 0.972226, 0.971504, 0.970772, 0.970031, 0.969281,
0.968522, 0.967754, 0.966976, 0.96619, 0.965394, 0.96459,
0.963776, 0.962953, 0.962121, 0.96128, 0.960431, 0.959572,
0.958703, 0.957826, 0.95694, 0.956045, 0.955141, 0.954228,
0.953306, 0.952375, 0.951435, 0.950486, 0.949528, 0.948561,
0.947586, 0.946601, 0.945607, 0.944605, 0.943593, 0.942573,
0.941544, 0.940506, 0.939459, 0.938404, 0.937339, 0.936266,
0.935184, 0.934093, 0.932993, 0.931884, 0.930767, 0.929641,
0.928506, 0.927363, 0.92621, 0.925049, 0.92388, 0.922701,
0.921514, 0.920318, 0.919114, 0.917901, 0.916679, 0.915449,
0.91421, 0.912962, 0.911706, 0.910441, 0.909168, 0.907886,
0.906596, 0.905297, 0.903989, 0.902673, 0.901349, 0.900016,
0.898674, 0.897325, 0.895966, 0.894599, 0.893224, 0.891841,
0.890449, 0.889048, 0.88764, 0.886223, 0.884797, 0.883363,
0.881921, 0.880471, 0.879012, 0.877545, 0.87607, 0.874587,
0.873095, 0.871595, 0.870087, 0.868571, 0.867046, 0.865514,
0.863973, 0.862424, 0.860867, 0.859302, 0.857729, 0.856147,
0.854558, 0.852961, 0.851355, 0.849742, 0.84812, 0.846491,
0.844854, 0.843208, 0.841555, 0.839894, 0.838225, 0.836548,
0.834863, 0.83317, 0.83147, 0.829761, 0.828045, 0.826321,
0.824589, 0.82285, 0.821103, 0.819348, 0.817585, 0.815814,
0.814036, 0.812251, 0.810457, 0.808656, 0.806848, 0.805031,
0.803208, 0.801376, 0.799537, 0.797691, 0.795837, 0.793975,
0.792107, 0.79023, 0.788346, 0.786455, 0.784557, 0.782651,
0.780737, 0.778817, 0.776888, 0.774953, 0.77301, 0.771061,
0.769103, 0.767139, 0.765167, 0.763188, 0.761202, 0.759209,
0.757209, 0.755201, 0.753187, 0.751165, 0.749136, 0.747101,
0.745058, 0.743008, 0.740951, 0.738887, 0.736817, 0.734739,
0.732654, 0.730563, 0.728464, 0.726359, 0.724247, 0.722128,
0.720003, 0.71787, 0.715731, 0.713585, 0.711432, 0.709273,
0.707107, 0.704934, 0.702755, 0.700569, 0.698376, 0.696177,
0.693971, 0.691759, 0.689541, 0.687315, 0.685084, 0.682846,
0.680601, 0.67835, 0.676093, 0.673829, 0.671559, 0.669283,
0.667, 0.664711, 0.662416, 0.660114, 0.657807, 0.655493,
0.653173, 0.650847, 0.648514, 0.646176, 0.643832, 0.641481,
0.639124, 0.636762, 0.634393, 0.632019, 0.629638, 0.627252,
0.624859, 0.622461, 0.620057, 0.617647, 0.615232, 0.61281,
0.610383, 0.60795, 0.605511, 0.603067, 0.600616, 0.598161,
0.595699, 0.593232, 0.59076, 0.588282, 0.585798, 0.583309,
0.580814, 0.578314, 0.575808, 0.573297, 0.570781, 0.568259,
0.565732, 0.563199, 0.560662, 0.558119, 0.55557, 0.553017,
0.550458, 0.547894, 0.545325, 0.542751, 0.540171, 0.537587,
0.534998, 0.532403, 0.529804, 0.527199, 0.52459, 0.521975,
0.519356, 0.516732, 0.514103, 0.511469, 0.50883, 0.506187,
0.503538, 0.500885, 0.498228, 0.495565, 0.492898, 0.490226,
0.48755, 0.484869, 0.482184, 0.479494, 0.476799, 0.4741,
0.471397, 0.468689, 0.465976, 0.46326, 0.460539, 0.457813,
0.455084, 0.45235, 0.449611, 0.446869, 0.444122, 0.441371,
0.438616, 0.435857, 0.433094, 0.430326, 0.427555, 0.42478,
0.422, 0.419217, 0.41643, 0.413638, 0.410843, 0.408044,
0.405241, 0.402435, 0.399624, 0.39681, 0.393992, 0.39117,
0.388345, 0.385516, 0.382683, 0.379847, 0.377007, 0.374164,
0.371317, 0.368467, 0.365613, 0.362756, 0.359895, 0.357031,
0.354164, 0.351293, 0.348419, 0.345541, 0.342661, 0.339777,
0.33689, 0.334, 0.331106, 0.32821, 0.32531, 0.322408,
0.319502, 0.316593, 0.313682, 0.310767, 0.30785, 0.304929,
0.302006, 0.29908, 0.296151, 0.293219, 0.290285, 0.287347,
0.284408, 0.281465, 0.27852, 0.275572, 0.272621, 0.269668,
0.266713, 0.263755, 0.260794, 0.257831, 0.254866, 0.251898,
0.248928, 0.245955, 0.24298, 0.240003, 0.237024, 0.234042,
0.231058, 0.228072, 0.225084, 0.222094, 0.219101, 0.216107,
0.21311, 0.210112, 0.207111, 0.204109, 0.201105, 0.198098,
0.19509, 0.19208, 0.189069, 0.186055, 0.18304, 0.180023,
0.177004, 0.173984, 0.170962, 0.167938, 0.164913, 0.161886,
0.158858, 0.155828, 0.152797, 0.149765, 0.14673, 0.143695,
0.140658, 0.13762, 0.134581, 0.13154, 0.128498, 0.125455,
0.122411, 0.119365, 0.116319, 0.113271, 0.110222, 0.107172,
0.104122, 0.10107, 0.0980171, 0.0949635, 0.091909, 0.0888536,
0.0857973, 0.0827403, 0.0796824, 0.0766239, 0.0735646, 0.0705046,
0.0674439, 0.0643826, 0.0613207, 0.0582583, 0.0551952, 0.0521317,
0.0490677, 0.0460032, 0.0429383, 0.0398729, 0.0368072, 0.0337412,
0.0306748, 0.0276081, 0.0245412, 0.0214741, 0.0184067, 0.0153392,
0.0122715, 0.00920375, 0.00613588, 0.00306796, 1.22465e-16, -0.00306796,
-0.00613588, -0.00920375, -0.0122715, -0.0153392, -0.0184067, -0.0214741,
-0.0245412, -0.0276081, -0.0306748, -0.0337412, -0.0368072, -0.0398729,
-0.0429383, -0.0460032, -0.0490677, -0.0521317, -0.0551952, -0.0582583,
-0.0613207, -0.0643826, -0.0674439, -0.0705046, -0.0735646, -0.0766239,
-0.0796824, -0.0827403, -0.0857973, -0.0888536, -0.091909, -0.0949635,
-0.0980171, -0.10107, -0.104122, -0.107172, -0.110222, -0.113271,
-0.116319, -0.119365, -0.122411, -0.125455, -0.128498, -0.13154,
-0.134581, -0.13762, -0.140658, -0.143695, -0.14673, -0.149765,
-0.152797, -0.155828, -0.158858, -0.161886, -0.164913, -0.167938,
-0.170962, -0.173984, -0.177004, -0.180023, -0.18304, -0.186055,
-0.189069, -0.19208, -0.19509, -0.198098, -0.201105, -0.204109,
-0.207111, -0.210112, -0.21311, -0.216107, -0.219101, -0.222094,
-0.225084, -0.228072, -0.231058, -0.234042, -0.237024, -0.240003,
-0.24298, -0.245955, -0.248928, -0.251898, -0.254866, -0.257831,
-0.260794, -0.263755, -0.266713, -0.269668, -0.272621, -0.275572,
-0.27852, -0.281465, -0.284408, -0.287347, -0.290285, -0.293219,
-0.296151, -0.29908, -0.302006, -0.304929, -0.30785, -0.310767,
-0.313682, -0.316593, -0.319502, -0.322408, -0.32531, -0.32821,
-0.331106, -0.334, -0.33689, -0.339777, -0.342661, -0.345541,
-0.348419, -0.351293, -0.354164, -0.357031, -0.359895, -0.362756,
-0.365613, -0.368467, -0.371317, -0.374164, -0.377007, -0.379847,
-0.382683, -0.385516, -0.388345, -0.39117, -0.393992, -0.39681,
-0.399624, -0.402435, -0.405241, -0.408044, -0.410843, -0.413638,
-0.41643, -0.419217, -0.422, -0.42478, -0.427555, -0.430326,
-0.433094, -0.435857, -0.438616, -0.441371, -0.444122, -0.446869,
-0.449611, -0.45235, -0.455084, -0.457813, -0.460539, -0.46326,
-0.465976, -0.468689, -0.471397, -0.4741, -0.476799, -0.479494,
-0.482184, -0.484869, -0.48755, -0.490226, -0.492898, -0.495565,
-0.498228, -0.500885, -0.503538, -0.506187, -0.50883, -0.511469,
-0.514103, -0.516732, -0.519356, -0.521975, -0.52459, -0.527199,
-0.529804, -0.532403, -0.534998, -0.537587, -0.540171, -0.542751,
-0.545325, -0.547894, -0.550458, -0.553017, -0.55557, -0.558119,
-0.560662, -0.563199, -0.565732, -0.568259, -0.570781, -0.573297,
-0.575808, -0.578314, -0.580814, -0.583309, -0.585798, -0.588282,
-0.59076, -0.593232, -0.595699, -0.598161, -0.600616, -0.603067,
-0.605511, -0.60795, -0.610383, -0.61281, -0.615232, -0.617647,
-0.620057, -0.622461, -0.624859, -0.627252, -0.629638, -0.632019,
-0.634393, -0.636762, -0.639124, -0.641481, -0.643832, -0.646176,
-0.648514, -0.650847, -0.653173, -0.655493, -0.657807, -0.660114,
-0.662416, -0.664711, -0.667, -0.669283, -0.671559, -0.673829,
-0.676093, -0.67835, -0.680601, -0.682846, -0.685084, -0.687315,
-0.689541, -0.691759, -0.693971, -0.696177, -0.698376, -0.700569,
-0.702755, -0.704934, -0.707107, -0.709273, -0.711432, -0.713585,
-0.715731, -0.71787, -0.720003, -0.722128, -0.724247, -0.726359,
-0.728464, -0.730563, -0.732654, -0.734739, -0.736817, -0.738887,
-0.740951, -0.743008, -0.745058, -0.747101, -0.749136, -0.751165,
-0.753187, -0.755201, -0.757209, -0.759209, -0.761202, -0.763188,
-0.765167, -0.767139, -0.769103, -0.771061, -0.77301, -0.774953,
-0.776888, -0.778817, -0.780737, -0.782651, -0.784557, -0.786455,
-0.788346, -0.79023, -0.792107, -0.793975, -0.795837, -0.797691,
-0.799537, -0.801376, -0.803208, -0.805031, -0.806848, -0.808656,
-0.810457, -0.812251, -0.814036, -0.815814, -0.817585, -0.819348,
-0.821103, -0.82285, -0.824589, -0.826321, -0.828045, -0.829761,
-0.83147, -0.83317, -0.834863, -0.836548, -0.838225, -0.839894,
-0.841555, -0.843208, -0.844854, -0.846491, -0.84812, -0.849742,
-0.851355, -0.852961, -0.854558, -0.856147, -0.857729, -0.859302,
-0.860867, -0.862424, -0.863973, -0.865514, -0.867046, -0.868571,
-0.870087, -0.871595, -0.873095, -0.874587, -0.87607, -0.877545,
-0.879012, -0.880471, -0.881921, -0.883363, -0.884797, -0.886223,
-0.88764, -0.889048, -0.890449, -0.891841, -0.893224, -0.894599,
-0.895966, -0.897325, -0.898674, -0.900016, -0.901349, -0.902673,
-0.903989, -0.905297, -0.906596, -0.907886, -0.909168, -0.910441,
-0.911706, -0.912962, -0.91421, -0.915449, -0.916679, -0.917901,
-0.919114, -0.920318, -0.921514, -0.922701, -0.92388, -0.925049,
-0.92621, -0.927363, -0.928506, -0.929641, -0.930767, -0.931884,
-0.932993, -0.934093, -0.935184, -0.936266, -0.937339, -0.938404,
-0.939459, -0.940506, -0.941544, -0.942573, -0.943593, -0.944605,
-0.945607, -0.946601, -0.947586, -0.948561, -0.949528, -0.950486,
-0.951435, -0.952375, -0.953306, -0.954228, -0.955141, -0.956045,
-0.95694, -0.957826, -0.958703, -0.959572, -0.960431, -0.96128,
-0.962121, -0.962953, -0.963776, -0.96459, -0.965394, -0.96619,
-0.966976, -0.967754, -0.968522, -0.969281, -0.970031, -0.970772,
-0.971504, -0.972226, -0.97294, -0.973644, -0.974339, -0.975025,
-0.975702, -0.97637, -0.977028, -0.977677, -0.978317, -0.978948,
-0.97957, -0.980182, -0.980785, -0.981379, -0.981964, -0.982539,
-0.983105, -0.983662, -0.98421, -0.984749, -0.985278, -0.985798,
-0.986308, -0.986809, -0.987301, -0.987784, -0.988258, -0.988722,
-0.989177, -0.989622, -0.990058, -0.990485, -0.990903, -0.991311,
-0.99171, -0.992099, -0.99248, -0.99285, -0.993212, -0.993564,
-0.993907, -0.99424, -0.994565, -0.994879, -0.995185, -0.995481,
-0.995767, -0.996045, -0.996313, -0.996571, -0.99682, -0.99706,
-0.99729, -0.997511, -0.997723, -0.997925, -0.998118, -0.998302,
-0.998476, -0.99864, -0.998795, -0.998941, -0.999078, -0.999205,
-0.999322, -0.999431, -0.999529, -0.999619, -0.999699, -0.999769,
-0.999831, -0.999882, -0.999925, -0.999958, -0.999981, -0.999995,
-1, -0.999995, -0.999981, -0.999958, -0.999925, -0.999882,
-0.999831, -0.999769, -0.999699, -0.999619, -0.999529, -0.999431,
-0.999322, -0.999205, -0.999078, -0.998941, -0.998795, -0.99864,
-0.998476, -0.998302, -0.998118, -0.997925, -0.997723, -0.997511,
-0.99729, -0.99706, -0.99682, -0.996571, -0.996313, -0.996045,
-0.995767, -0.995481, -0.995185, -0.994879, -0.994565, -0.99424,
-0.993907, -0.993564, -0.993212, -0.99285, -0.99248, -0.992099,
-0.99171, -0.991311, -0.990903, -0.990485, -0.990058, -0.989622,
-0.989177, -0.988722, -0.988258, -0.987784, -0.987301, -0.986809,
-0.986308, -0.985798, -0.985278, -0.984749, -0.98421, -0.983662,
-0.983105, -0.982539, -0.981964, -0.981379, -0.980785, -0.980182,
-0.97957, -0.978948, -0.978317, -0.977677, -0.977028, -0.97637,
-0.975702, -0.975025, -0.974339, -0.973644, -0.97294, -0.972226,
-0.971504, -0.970772, -0.970031, -0.969281, -0.968522, -0.967754,
-0.966976, -0.96619, -0.965394, -0.96459, -0.963776, -0.962953,
-0.962121, -0.96128, -0.960431, -0.959572, -0.958703, -0.957826,
-0.95694, -0.956045, -0.955141, -0.954228, -0.953306, -0.952375,
-0.951435, -0.950486, -0.949528, -0.948561, -0.947586, -0.946601,
-0.945607, -0.944605, -0.943593, -0.942573, -0.941544, -0.940506,
-0.939459, -0.938404, -0.937339, -0.936266, -0.935184, -0.934093,
-0.932993, -0.931884, -0.930767, -0.929641, -0.928506, -0.927363,
-0.92621, -0.925049, -0.92388, -0.922701, -0.921514, -0.920318,
-0.919114, -0.917901, -0.916679, -0.915449, -0.91421, -0.912962,
-0.911706, -0.910441, -0.909168, -0.907886, -0.906596, -0.905297,
-0.903989, -0.902673, -0.901349, -0.900016, -0.898674, -0.897325,
-0.895966, -0.894599, -0.893224, -0.891841, -0.890449, -0.889048,
-0.88764, -0.886223, -0.884797, -0.883363, -0.881921, -0.880471,
-0.879012, -0.877545, -0.87607, -0.874587, -0.873095, -0.871595,
-0.870087, -0.868571, -0.867046, -0.865514, -0.863973, -0.862424,
-0.860867, -0.859302, -0.857729, -0.856147, -0.854558, -0.852961,
-0.851355, -0.849742, -0.84812, -0.846491, -0.844854, -0.843208,
-0.841555, -0.839894, -0.838225, -0.836548, -0.834863, -0.83317,
-0.83147, -0.829761, -0.828045, -0.826321, -0.824589, -0.82285,
-0.821103, -0.819348, -0.817585, -0.815814, -0.814036, -0.812251,
-0.810457, -0.808656, -0.806848, -0.805031, -0.803208, -0.801376,
-0.799537, -0.797691, -0.795837, -0.793975, -0.792107, -0.79023,
-0.788346, -0.786455, -0.784557, -0.782651, -0.780737, -0.778817,
-0.776888, -0.774953, -0.77301, -0.771061, -0.769103, -0.767139,
-0.765167, -0.763188, -0.761202, -0.759209, -0.757209, -0.755201,
-0.753187, -0.751165, -0.749136, -0.747101, -0.745058, -0.743008,
-0.740951, -0.738887, -0.736817, -0.734739, -0.732654, -0.730563,
-0.728464, -0.726359, -0.724247, -0.722128, -0.720003, -0.71787,
-0.715731, -0.713585, -0.711432, -0.709273, -0.707107, -0.704934,
-0.702755, -0.700569, -0.698376, -0.696177, -0.693971, -0.691759,
-0.689541, -0.687315, -0.685084, -0.682846, -0.680601, -0.67835,
-0.676093, -0.673829, -0.671559, -0.669283, -0.667, -0.664711,
-0.662416, -0.660114, -0.657807, -0.655493, -0.653173, -0.650847,
-0.648514, -0.646176, -0.643832, -0.641481, -0.639124, -0.636762,
-0.634393, -0.632019, -0.629638, -0.627252, -0.624859, -0.622461,
-0.620057, -0.617647, -0.615232, -0.61281, -0.610383, -0.60795,
-0.605511, -0.603067, -0.600616, -0.598161, -0.595699, -0.593232,
-0.59076, -0.588282, -0.585798, -0.583309, -0.580814, -0.578314,
-0.575808, -0.573297, -0.570781, -0.568259, -0.565732, -0.563199,
-0.560662, -0.558119, -0.55557, -0.553017, -0.550458, -0.547894,
-0.545325, -0.542751, -0.540171, -0.537587, -0.534998, -0.532403,
-0.529804, -0.527199, -0.52459, -0.521975, -0.519356, -0.516732,
-0.514103, -0.511469, -0.50883, -0.506187, -0.503538, -0.500885,
-0.498228, -0.495565, -0.492898, -0.490226, -0.48755, -0.484869,
-0.482184, -0.479494, -0.476799, -0.4741, -0.471397, -0.468689,
-0.465976, -0.46326, -0.460539, -0.457813, -0.455084, -0.45235,
-0.449611, -0.446869, -0.444122, -0.441371, -0.438616, -0.435857,
-0.433094, -0.430326, -0.427555, -0.42478, -0.422, -0.419217,
-0.41643, -0.413638, -0.410843, -0.408044, -0.405241, -0.402435,
-0.399624, -0.39681, -0.393992, -0.39117, -0.388345, -0.385516,
-0.382683, -0.379847, -0.377007, -0.374164, -0.371317, -0.368467,
-0.365613, -0.362756, -0.359895, -0.357031, -0.354164, -0.351293,
-0.348419, -0.345541, -0.342661, -0.339777, -0.33689, -0.334,
-0.331106, -0.32821, -0.32531, -0.322408, -0.319502, -0.316593,
-0.313682, -0.310767, -0.30785, -0.304929, -0.302006, -0.29908,
-0.296151, -0.293219, -0.290285, -0.287347, -0.284408, -0.281465,
-0.27852, -0.275572, -0.272621, -0.269668, -0.266713, -0.263755,
-0.260794, -0.257831, -0.254866, -0.251898, -0.248928, -0.245955,
-0.24298, -0.240003, -0.237024, -0.234042, -0.231058, -0.228072,
-0.225084, -0.222094, -0.219101, -0.216107, -0.21311, -0.210112,
-0.207111, -0.204109, -0.201105, -0.198098, -0.19509, -0.19208,
-0.189069, -0.186055, -0.18304, -0.180023, -0.177004, -0.173984,
-0.170962, -0.167938, -0.164913, -0.161886, -0.158858, -0.155828,
-0.152797, -0.149765, -0.14673, -0.143695, -0.140658, -0.13762,
-0.134581, -0.13154, -0.128498, -0.125455, -0.122411, -0.119365,
-0.116319, -0.113271, -0.110222, -0.107172, -0.104122, -0.10107,
-0.0980171, -0.0949635, -0.091909, -0.0888536, -0.0857973, -0.0827403,
-0.0796824, -0.0766239, -0.0735646, -0.0705046, -0.0674439, -0.0643826,
-0.0613207, -0.0582583, -0.0551952, -0.0521317, -0.0490677, -0.0460032,
-0.0429383, -0.0398729, -0.0368072, -0.0337412, -0.0306748, -0.0276081,
-0.0245412, -0.0214741, -0.0184067, -0.0153392, -0.0122715, -0.00920375,
-0.00613588, -0.00306796
};
static const float *WAVE_SINES[DEFAULT_OCTAVES] = {
WAVE_SINE_000, WAVE_SINE_000, WAVE_SINE_000, WAVE_SINE_000,
WAVE_SINE_000, WAVE_SINE_000, WAVE_SINE_000, WAVE_SINE_000,
WAVE_SINE_000, WAVE_SINE_000, WAVE_SINE_000, WAVE_SINE_000
};
|
jimd1989/boar
|
src/envelope.h
|
<gh_stars>1-10
/* Defines the enums and structs used to manage envelope state. */
#pragma once
#include <stdbool.h>
#include "wave.h"
typedef enum EnvStage {
/* Marks which stage of A/D/S/R an envelope is currently in. */
ENV_ATTACK = 0,
ENV_DECAY,
ENV_SUSTAIN,
ENV_RELEASE,
ENV_FINISHED
} EnvStage;
typedef struct EnvStep {
/* Represents one stage of an Env (see below). Every stage contains its own
* wavetable, which it iterpolates a value from at each applyEnv() call. */
float Level;
Wave Wave;
} EnvStep;
typedef struct Env {
/* Envelopes track user input and then apply themselves against an arbitrary
* synthesis parameter, hereafter referred to as "x":
*
* - Attack is the amount of time that elapses between initial key press and
* the moment x affects the synthesis at its full value. Attacks are
* generally used to "fade in" parameters.
*
* - Decay is engaged after the attack phase reaches its zenith. It is the
* amount of time that elapses between a completed attack and the moment
* x reaches its sustain value.
*
* - Sustain occurs after a decay finishes. It is a constant value that x is
* multiplied against as long as the key is held down.
*
* - Release is engaged after the key is released. It is the amount of time
* that elapses after key release for x to dwindle back down to 0.
*
* All stages of the envelope are optional, but at least one attack, decay,
* or sustain value must be provided for x to have any effect.
*
* The amount of modulation an envelope performs on its target is governed
* by Env.Depth, which is between 0.0 (none) and 1.0 (full).
*
* If an Env is set to loop, it will cycle through the AD stages until the
* key is released.
*
* In terms of the program, every Voice has an individual Env struct for each
* parameter it expects to be modified by key events. Env.EnvStage and
* Env.Phase keep track of the local envelope state, while Env.Attack,
* Env.Decay, Env.Sustain, and Env.Release point to externally-defined float
* values in a master Envs struct. This allows the program to change envelope
* settings for all voices in O(1) time. Env.Phase is also the value that is
* multiplied against external parameter x at any given time. */
EnvStage Stage;
float Phase;
bool * Loop;
float * Depth;
EnvStep * Attack;
EnvStep * Decay;
float * Sustain;
EnvStep * Release;
Wave * Wave;
} Env;
typedef struct Envs {
/* Envs contains master values that Voice-local Env types point to. */
bool Loop;
float Depth;
unsigned int Rate;
EnvStep Attack;
EnvStep Decay;
float Sustain;
EnvStep Release;
} Envs;
float applyEnv(Env *);
void resetEnv(Env *);
void retriggerEnv(Env *);
void setLoop(Envs *, const bool);
void setDepth(Envs *, const float);
void setAttackLevel(Envs *, const float);
void setDecayLevel(Envs *, const float);
void setSustainLevel(Envs *, const float);
void setReleaseLevel(Envs *, const float);
void setAttackWave(Envs *, const int);
void setDecayWave(Envs *, const int);
void setReleaseWave(Envs *, const int);
void makeEnv(Envs *, Env *);
void makeEnvs(Envs *, const unsigned int);
|
jimd1989/boar
|
src/numerical.c
|
/* Defines miscellaneous numerical functions for use in multiple locations
* throughout the program. The procedures here should ideally be terse and
* referentially transparent, since they are decoupled from the types, enums,
* etc. in other files that give functions proper context. */
#include <stdbool.h>
#include <stdlib.h>
#include "numerical.h"
#include "constants/maximums.h"
#include "wavetables/exponential.h"
float
truncateFloat(const float f, const float max) {
/* Truncates the value of f in terms of max. */
const bool over = (f > max);
return ((float)over * max) + ((float)(! over) * f);
}
float
liftFloat(const float f, const float min) {
/* Ensures float f doesn't fall below min */
const bool under = (f < min);
return ((float)under * min) + ((float)(! under) * f);
}
float
clip(const float s) {
/* Clips a sample so that it is neither higher than 1.0 nor lower than -1.0.
* This could potentially be re-written as a macro, but is preserved as a
* function for readability's sake. */
if (s > 1.0f) {
return 1.0f;
} else if (s < -1.0f) {
return -1.0f;
} else {
return s;
}
}
float
expCurve(const float f) {
/* Takes a float value between 0.0 and 1.0 and returns another value between
* -1.0 and 1.0 from a wavetable representing an exponential function. This
* value must be made unipolar again before it is of any use to envelopes.
* The curve is applied to diminish the presence of extreme values rarely used
* as arguments to envelopes. Interpolation is foresaken for basic truncation,
* since the wavetable itself already provides a far superior resolution to
* traditional synthesis parameters, which are usually between 0 and 127. */
return WAVE_EXPONENTIALS[0][(unsigned int)(f * (DEFAULT_WAVELEN - 1))];
}
float
unipolar(const float s) {
/* All wavetables in the program are bipolar (-1.0 ... 1.0). This function
* takes a sample from one of these tables and converts it to its unipolar
* (MIN_FLOAT ... 1.0) equivalent. This allows normal wavetables to have other
* applications, such as stages in ASDR envelopes. */
const float f = 0.5f + (s / 2.0f);
if (f == 0.0f) {
/* Envelopes shouldn't take zero values unless explicitly specified
* by the user in the prompt. */
return MIN_FLOAT;
}
return f;
}
float
interpolate(const float *table, const int len, const float phase) {
/* Where phase ∈ [0, len), find an index of table by truncating phase to an
* integer. Then return a weighted average of the values between table[phase]
* and table[phase+1] based upon the fractional part of the phase. The phase
* must be modulo'd against len before invoking this function, as it will not
* bounds check itself. */
const int i = (int)phase;
const float r = fabsf(phase) - abs(i);
const float s1 = table[(unsigned int)i % len];
const float s2 = table[((unsigned int)i+1) % len];
return ((1.0f - r) * s1) + (r * s2);
}
|
jimd1989/boar
|
src/noise.h
|
#pragma once
typedef struct Noise {
/* A unit for generating random signals. On every sampling instance, the Phase
* is incremented by the Oscillator's pitch. If the Phase is greater than
* DEFAULT_WAVELEN, Amplitude is set to a random value ∈ [-1,1] and the Phase
* is reset. The Oscillator's buffer will be populated with the Amplitude value
* until the Phase surpasses DEFAULT_WAVELEN again. */
float Amplitude;
float Phase;
} Noise;
float readNoise(Noise *, const float);
void makeNoise(Noise *);
|
jimd1989/boar
|
src/constants/funcs.h
|
# pragma once
#include "defaults.h"
#include "types.h"
/* This file contains enum values for every function defined in boar. */
/* Assigns a function name and type to a character pair. */
#define FUNC_DEF(X, TYPE) (((unsigned int)(X) - DEFAULT_ASCII_A) | (TYPE))
/* (a) sets attack */
#define FUNC_ATTACK FUNC_DEF('a', TYPE_NORMAL)
/* (A) sets modulator attack */
#define FUNC_MOD_ATTACK FUNC_DEF('A', TYPE_NORMAL)
/* (a.) sets attack waveform */
#define FUNC_ATTACK_WAVE FUNC_DEF('a', TYPE_PERIOD)
/* (A.) sets modulator attack waveform */
#define FUNC_MOD_ATTACK_WAVE FUNC_DEF('A', TYPE_PERIOD)
/* (b) sets left/right channel balance*/
#define FUNC_CHAN_BALANCE FUNC_DEF('b', TYPE_NORMAL)
/* (d) sets decay */
#define FUNC_DECAY FUNC_DEF('d', TYPE_NORMAL)
/* (D) sets modulator decay */
#define FUNC_MOD_DECAY FUNC_DEF('D', TYPE_NORMAL)
/* (d.) sets decay waveform */
#define FUNC_DECAY_WAVE FUNC_DEF('d', TYPE_PERIOD)
/* (D.) sets modulator decay waveform */
#define FUNC_MOD_DECAY_WAVE FUNC_DEF('D', TYPE_PERIOD)
/* (d:) sets envelope loop */
#define FUNC_ENV_LOOP FUNC_DEF('d', TYPE_COLON)
/* (D:) sets modulator envelope loop */
#define FUNC_MOD_ENV_LOOP FUNC_DEF('D', TYPE_COLON)
/* (k) sets key follow */
#define FUNC_KEY_FOLLOW FUNC_DEF('k', TYPE_NORMAL)
/* (K) sets modulator key follow */
#define FUNC_MOD_KEY_FOLLOW FUNC_DEF('K', TYPE_NORMAL)
/* (l) sets amplitude */
#define FUNC_AMPLITUDE FUNC_DEF('l', TYPE_NORMAL)
/* (L) sets modulator amplitude */
#define FUNC_MOD_AMPLITUDE FUNC_DEF('L', TYPE_NORMAL)
/* (n) turns a note on */
#define FUNC_NOTE_ON FUNC_DEF('n', TYPE_NORMAL)
/* (o) turns a note off */
#define FUNC_NOTE_OFF FUNC_DEF('o', TYPE_NORMAL)
/* (p) sets pitch ratio */
#define FUNC_PITCH FUNC_DEF('p', TYPE_NORMAL)
/* (P) sets modulator pitch ratio */
#define FUNC_MOD_PITCH FUNC_DEF('P', TYPE_NORMAL)
/* (q) quits all boars in the pipe */
#define FUNC_QUIT FUNC_DEF('q', TYPE_NORMAL)
/* (r) sets release */
#define FUNC_RELEASE FUNC_DEF('r', TYPE_NORMAL)
/* (R) sets modulator release */
#define FUNC_MOD_RELEASE FUNC_DEF('R', TYPE_NORMAL)
/* (r.) sets release waveform */
#define FUNC_RELEASE_WAVE FUNC_DEF('r', TYPE_PERIOD)
/* (R.) sets release decay waveform*/
#define FUNC_MOD_RELEASE_WAVE FUNC_DEF('R', TYPE_PERIOD)
/* (s) sets sustain */
#define FUNC_SUSTAIN FUNC_DEF('s', TYPE_NORMAL)
/* (S) sets modulator sustain */
#define FUNC_MOD_SUSTAIN FUNC_DEF('S', TYPE_NORMAL)
/* (s.) sets carrier envelope depth */
#define FUNC_ENV_DEPTH FUNC_DEF('s', TYPE_PERIOD)
/* (S.) sets modulator envelope depth */
#define FUNC_MOD_ENV_DEPTH FUNC_DEF('S', TYPE_PERIOD)
/* (t) sets touch sensitivity */
#define FUNC_TOUCH FUNC_DEF('t', TYPE_NORMAL)
/* (T) sets modulator touch sensitivity */
#define FUNC_MOD_TOUCH FUNC_DEF('T', TYPE_NORMAL)
/* (u) tunes note */
#define FUNC_TUNE FUNC_DEF('u', TYPE_NORMAL)
/* (U) selects note to tune */
#define FUNC_TUNE_NOTE FUNC_DEF('U', TYPE_NORMAL)
/* (u.) selects detune source */
#define FUNC_TUNE_TARGET FUNC_DEF('u', TYPE_PERIOD)
/* (w) selects wave */
#define FUNC_WAVE FUNC_DEF('w', TYPE_NORMAL)
/* (W) selects modulator wave */
#define FUNC_MOD_WAVE FUNC_DEF('W', TYPE_NORMAL)
/* (x) sets a fixed frequency */
#define FUNC_FIXED FUNC_DEF('x', TYPE_NORMAL)
/* (X) sets modulator to a fixed frequency */
#define FUNC_MOD_FIXED FUNC_DEF('X', TYPE_NORMAL)
|
jimd1989/boar
|
src/key.h
|
<filename>src/key.h<gh_stars>1-10
# pragma once
#include "constants/defaults.h"
#include "synthesis.h"
#include "velocity.h"
#include "wave.h"
typedef struct KeyboardLayer {
/* A KeyboardLayer is holds all tuning, velocity, and key follow information
* for a carrier or modulator. */
float Tunings[DEFAULT_KEYS_NUM];
Wave VelocityCurve;
Wave KeyFollowCurve;
} KeyboardLayer;
typedef struct KeyboardSettings {
/* KeyboardSettings holds essential information passed from higher level
* types like Voices and Audio, without requiring direct pointers to them. */
unsigned int Rate;
uint64_t * Phase;
} KeyboardSettings;
typedef enum TuningLayer {
/* Determines which layer of the keyboard should be modified by tuning
* commands. */
TUNING_CARRIER = 0,
TUNING_MODULATOR = 1
} TuningLayer;
typedef struct Keyboard {
/* The Keyboard is a singleton type that contains all tuning, velocity, and
* key follow information for the entire program. The velocity and key follow
* settings of carriers and modulators are exposed to the user through the
* t/T and k/K commands of the REPL, but the tuning command u/U only points to
* one KeyboardLayer at any given time. Keyboard.TuningTarget is set through
* the extra parameters (E) interface in order to change which layer
* Keyboard.TuningNote is selected from with U. This value is ultimately
* altered by the u command. */
float * TuningNote;
float * TuningLayer;
KeyboardSettings Settings;
KeyboardLayer Carrier;
KeyboardLayer Modulator;
} Keyboard;
unsigned int getNote(const uint16_t);
void selectTuningLayer(Keyboard *, const TuningLayer);
void selectTuningKey(Keyboard *, const unsigned int);
void tuneKey(Keyboard *, const float);
void applyKey(const Keyboard *, Operator *, Operator *, const uint16_t);
void makeKeyboard(Keyboard *, const unsigned int, uint64_t *);
|
ratulKabir/depth_clustering
|
src/visualization/visualizer.h
|
<reponame>ratulKabir/depth_clustering
// Copyright (C) 2020 <NAME>, <NAME>
//
// GNU-GPL licence that follows one of libQGLViewer.
#ifndef SRC_VISUALIZATION_VISUALIZER_H_
#define SRC_VISUALIZATION_VISUALIZER_H_
#include <QGLViewer/qglviewer.h>
#include <map>
#include <mutex>
#include <string>
#include <thread>
#include <unordered_map>
#include <vector>
#include "communication/abstract_client.h"
#include "utils/cloud.h"
#include "utils/useful_typedefs.h"
namespace depth_clustering {
class IUpdateListener {
public:
virtual void onUpdate() = 0;
};
class ObjectPtrStorer
: public AbstractClient<std::unordered_map<uint16_t, Cloud>> {
public:
ObjectPtrStorer() : AbstractClient<std::unordered_map<uint16_t, Cloud>>() {}
void OnNewObjectReceived(const std::unordered_map<uint16_t, Cloud>& clouds,
const int id) override;
void SetUpdateListener(IUpdateListener* update_listener) {
_update_listener = update_listener;
}
virtual ~ObjectPtrStorer() {}
std::unordered_map<uint16_t, Cloud> object_clouds() const;
private:
std::unordered_map<uint16_t, Cloud> _obj_clouds;
IUpdateListener* _update_listener;
mutable std::mutex _cluster_mutex;
};
/**
* @brief An OpenGl visualizer that shows data that is subscribes to.
*/
class Visualizer : public QGLViewer,
public AbstractClient<Cloud>,
public IUpdateListener {
public:
explicit Visualizer(QWidget* parent = 0);
virtual ~Visualizer();
void OnNewObjectReceived(const Cloud& cloud, const int id) override;
void onUpdate() override;
ObjectPtrStorer* object_clouds_client() { return &_cloud_obj_storer; }
protected:
void draw() override;
void init() override;
private:
void DrawCloud(const Cloud& cloud);
void DrawCube(const Eigen::Vector3f& center, const Eigen::Vector3f& scale);
bool _updated;
ObjectPtrStorer _cloud_obj_storer;
Cloud _cloud;
mutable std::mutex _cloud_mutex;
};
} // namespace depth_clustering
#endif // SRC_VISUALIZATION_VISUALIZER_H_
|
zhusonghe/PaddleClas-1
|
deploy/cpp/include/cls_config.h
|
// Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#ifdef WIN32
#define OS_PATH_SEP "\\"
#else
#define OS_PATH_SEP "/"
#endif
#include "include/utility.h"
#include "yaml-cpp/yaml.h"
#include <iomanip>
#include <iostream>
#include <map>
#include <ostream>
#include <string>
#include <vector>
namespace PaddleClas {
class ClsConfig {
public:
explicit ClsConfig(const std::string &path) {
ReadYamlConfig(path);
this->infer_imgs =
this->config_file["Global"]["infer_imgs"].as<std::string>();
this->batch_size = this->config_file["Global"]["batch_size"].as<int>();
this->use_gpu = this->config_file["Global"]["use_gpu"].as<bool>();
if (this->config_file["Global"]["gpu_id"].IsDefined())
this->gpu_id = this->config_file["Global"]["gpu_id"].as<int>();
else
this->gpu_id = 0;
this->gpu_mem = this->config_file["Global"]["gpu_mem"].as<int>();
this->cpu_threads =
this->config_file["Global"]["cpu_num_threads"].as<int>();
this->use_mkldnn = this->config_file["Global"]["enable_mkldnn"].as<bool>();
this->use_tensorrt = this->config_file["Global"]["use_tensorrt"].as<bool>();
this->use_fp16 = this->config_file["Global"]["use_fp16"].as<bool>();
this->enable_benchmark =
this->config_file["Global"]["enable_benchmark"].as<bool>();
this->ir_optim = this->config_file["Global"]["ir_optim"].as<bool>();
this->enable_profile =
this->config_file["Global"]["enable_profile"].as<bool>();
this->cls_model_path =
this->config_file["Global"]["inference_model_dir"].as<std::string>() +
OS_PATH_SEP + "inference.pdmodel";
this->cls_params_path =
this->config_file["Global"]["inference_model_dir"].as<std::string>() +
OS_PATH_SEP + "inference.pdiparams";
this->resize_short_size =
this->config_file["PreProcess"]["transform_ops"][0]["ResizeImage"]
["resize_short"]
.as<int>();
this->crop_size =
this->config_file["PreProcess"]["transform_ops"][1]["CropImage"]["size"]
.as<int>();
this->scale = this->config_file["PreProcess"]["transform_ops"][2]
["NormalizeImage"]["scale"]
.as<float>();
this->mean = this->config_file["PreProcess"]["transform_ops"][2]
["NormalizeImage"]["mean"]
.as < std::vector < float >> ();
this->std = this->config_file["PreProcess"]["transform_ops"][2]
["NormalizeImage"]["std"]
.as < std::vector < float >> ();
if (this->config_file["Global"]["benchmark"].IsDefined())
this->benchmark = this->config_file["Global"]["benchmark"].as<bool>();
else
this->benchmark = false;
if (this->config_file["PostProcess"]["Topk"]["topk"].IsDefined())
this->topk = this->config_file["PostProcess"]["Topk"]["topk"].as<int>();
if (this->config_file["PostProcess"]["Topk"]["class_id_map_file"]
.IsDefined())
this->class_id_map_path =
this->config_file["PostProcess"]["Topk"]["class_id_map_file"]
.as<std::string>();
if (this->config_file["PostProcess"]["SavePreLabel"]["save_dir"]
.IsDefined())
this->label_save_dir =
this->config_file["PostProcess"]["SavePreLabel"]["save_dir"]
.as<std::string>();
ReadLabelMap();
}
YAML::Node config_file;
bool use_gpu = false;
int gpu_id = 0;
int gpu_mem = 4000;
int cpu_threads = 1;
bool use_mkldnn = false;
bool use_tensorrt = false;
bool use_fp16 = false;
bool benchmark = false;
int batch_size = 1;
bool enable_benchmark = false;
bool ir_optim = true;
bool enable_profile = false;
std::string cls_model_path;
std::string cls_params_path;
std::string infer_imgs;
int resize_short_size = 256;
int crop_size = 224;
float scale = 0.00392157;
std::vector<float> mean = {0.485, 0.456, 0.406};
std::vector<float> std = {0.229, 0.224, 0.225};
int topk = 5;
std::string class_id_map_path;
std::map<int, std::string> id_map;
std::string label_save_dir;
void PrintConfigInfo();
void ReadLabelMap();
void ReadYamlConfig(const std::string &path);
};
} // namespace PaddleClas
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.