blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 3
357
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
58
| license_type
stringclasses 2
values | repo_name
stringlengths 4
115
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringlengths 4
58
| visit_date
timestamp[ns]date 2015-07-14 21:31:45
2023-09-06 10:45:08
| revision_date
timestamp[ns]date 1970-01-01 00:00:00
2023-09-05 23:26:37
| committer_date
timestamp[ns]date 1970-01-01 00:00:00
2023-09-05 23:26:37
| github_id
int64 966
689M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 24
values | gha_event_created_at
timestamp[ns]date 2012-06-07 00:51:45
2023-09-14 21:58:52
⌀ | gha_created_at
timestamp[ns]date 2008-02-03 21:17:16
2023-08-24 19:49:39
⌀ | gha_language
stringclasses 180
values | src_encoding
stringclasses 35
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 6
10.4M
| extension
stringclasses 121
values | filename
stringlengths 1
148
| content
stringlengths 6
10.4M
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ad52fe5413e6100cb0c50db569208b50533dbaf6
|
7373f9f5ae26c9dba2d067f4a2580e7c53da3f03
|
/src/standart/ft_strdel.c
|
8f0bf7a93448439b09b2b5cb675c65a176dfa7d7
|
[] |
no_license
|
ValeraGin/libft
|
645728fce446ec6ef427c913623daf5a96c4cddc
|
ea74a14180d2f469ae453bc77c356c6707a66d8d
|
refs/heads/master
| 2022-04-07T06:45:16.195246 | 2020-03-07T17:36:05 | 2020-03-07T17:36:05 | 221,473,179 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 985 |
c
|
ft_strdel.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strdel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hmathew <hmathew@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/09/07 19:34:47 by hmathew #+# #+# */
/* Updated: 2019/09/07 23:17:59 by hmathew ### ########.fr */
/* */
/* ************************************************************************** */
#include "stdlib.h"
void ft_strdel(char **as)
{
if (as)
{
free(*as);
*as = NULL;
}
}
|
e40b6de0560fa734fa8e038539661d6fe428a3d9
|
e04ccf6cb4a8afec07fb6491d0fe7c9b05c86083
|
/src/io.c
|
d5472c42ac2e66e8f2342a63f659736658aa112e
|
[] |
no_license
|
brimonk/Asteroids
|
d8d0fc98d8452c1876ecce4de886346e0a7d9bbc
|
615ae6355ea0a2d1a01847e560f16b41660d8ada
|
refs/heads/master
| 2023-02-08T01:07:14.761655 | 2021-01-02T01:12:05 | 2021-01-02T01:12:05 | 325,769,243 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 6,218 |
c
|
io.c
|
// ////////////////////////////////////////////////////////////////////////////
// BRIAN CHRZANOWSKI
// 2020-12-05 02:12:51
//
// Input Functions
// ////////////////////////////////////////////////////////////////////////////
#include <SDL.h>
#include "common.h"
#include "io.h"
struct intmap_t {
s32 from, to;
};
static struct intmap_t sdlkey_to_inputkey[] = {
// numerics
{ SDLK_0, INPUT_KEY_0 },
{ SDLK_1, INPUT_KEY_1 },
{ SDLK_2, INPUT_KEY_2 },
{ SDLK_3, INPUT_KEY_3 },
{ SDLK_4, INPUT_KEY_4 },
{ SDLK_5, INPUT_KEY_5 },
{ SDLK_6, INPUT_KEY_6 },
{ SDLK_7, INPUT_KEY_7 },
{ SDLK_8, INPUT_KEY_8 },
{ SDLK_9, INPUT_KEY_9 },
// a-z keys in qwerty layout
{ SDLK_q, INPUT_KEY_Q },
{ SDLK_w, INPUT_KEY_W },
{ SDLK_e, INPUT_KEY_E },
{ SDLK_r, INPUT_KEY_R },
{ SDLK_t, INPUT_KEY_T },
{ SDLK_y, INPUT_KEY_Y },
{ SDLK_u, INPUT_KEY_U },
{ SDLK_i, INPUT_KEY_I },
{ SDLK_o, INPUT_KEY_O },
{ SDLK_p, INPUT_KEY_P },
{ SDLK_a, INPUT_KEY_A },
{ SDLK_s, INPUT_KEY_S },
{ SDLK_d, INPUT_KEY_D },
{ SDLK_f, INPUT_KEY_F },
{ SDLK_g, INPUT_KEY_G },
{ SDLK_h, INPUT_KEY_H },
{ SDLK_j, INPUT_KEY_J },
{ SDLK_k, INPUT_KEY_K },
{ SDLK_l, INPUT_KEY_L },
{ SDLK_z, INPUT_KEY_Z },
{ SDLK_x, INPUT_KEY_X },
{ SDLK_c, INPUT_KEY_C },
{ SDLK_v, INPUT_KEY_V },
{ SDLK_b, INPUT_KEY_B },
{ SDLK_n, INPUT_KEY_N },
{ SDLK_m, INPUT_KEY_M },
// modifier keys
{ SDLK_LSHIFT, INPUT_KEY_SHIFT },
{ SDLK_TAB, INPUT_KEY_TAB },
{ SDLK_UP, INPUT_KEY_UARROW },
{ SDLK_RIGHT, INPUT_KEY_RARROW },
{ SDLK_DOWN, INPUT_KEY_DARROW },
{ SDLK_LEFT, INPUT_KEY_LARROW },
// extras
{ SDLK_ESCAPE, INPUT_KEY_ESC },
{ SDLK_SPACE, INPUT_KEY_SPACE },
{ SDLK_HOME, INPUT_KEY_HOME },
{ SDLK_END, INPUT_KEY_END },
{ SDLK_LCTRL, INPUT_KEY_CTRL },
// mouse
{ SDL_BUTTON_LEFT, INPUT_MOUSE_LEFT },
{ SDL_BUTTON_MIDDLE, INPUT_MOUSE_CENTER },
{ SDL_BUTTON_RIGHT, INPUT_MOUSE_RIGHT },
// controller
{ SDL_CONTROLLER_BUTTON_A, INPUT_CTRLLR_A },
{ SDL_CONTROLLER_BUTTON_B, INPUT_CTRLLR_B },
{ SDL_CONTROLLER_BUTTON_X, INPUT_CTRLLR_X },
{ SDL_CONTROLLER_BUTTON_Y, INPUT_CTRLLR_Y },
{ SDL_CONTROLLER_BUTTON_BACK, INPUT_CTRLLR_BACK },
{ SDL_CONTROLLER_BUTTON_START, INPUT_CTRLLR_START },
{ SDL_CONTROLLER_BUTTON_LEFTSTICK, INPUT_CTRLLR_LSTICK },
{ SDL_CONTROLLER_BUTTON_RIGHTSTICK, INPUT_CTRLLR_RSTICK },
{ SDL_CONTROLLER_BUTTON_LEFTSHOULDER, INPUT_CTRLLR_LSHOULDER },
{ SDL_CONTROLLER_BUTTON_RIGHTSHOULDER, INPUT_CTRLLR_RSHOULDER },
{ SDL_CONTROLLER_BUTTON_DPAD_UP, INPUT_CTRLLR_DPAD_U },
{ SDL_CONTROLLER_BUTTON_DPAD_DOWN, INPUT_CTRLLR_DPAD_D },
{ SDL_CONTROLLER_BUTTON_DPAD_LEFT, INPUT_CTRLLR_DPAD_L },
{ SDL_CONTROLLER_BUTTON_DPAD_RIGHT, INPUT_CTRLLR_DPAD_R },
};
/* InputReadKeys : Handles the Keyboard */
s32 InputReadKeys(SDL_Event *event, struct io_t *input);
/* InputReadMouse : Handles the Mouse */
s32 InputReadMouse(SDL_Event *event, struct io_t *input);
/* InputReadWindow : Handles Window Events */
s32 InputReadWindow(SDL_Event *event, struct io_t *input);
// InputCycleKeyState : cycles the key state to give rising / falling edges
void InputCycleKeyState(struct io_t *io);
// InputRead : handles input from SDL
s32 InputRead(struct io_t *io)
{
SDL_Event event;
assert(io);
InputCycleKeyState(io);
while (SDL_PollEvent(&event) != 0) {
switch (event.type) {
case SDL_QUIT:
return -1;
break;
case SDL_MOUSEMOTION:
InputReadMouse(&event, io);
break;
case SDL_WINDOWEVENT:
InputReadWindow(&event, io);
break;
case SDL_KEYUP:
case SDL_KEYDOWN:
InputReadKeys(&event, io);
break;
default:
break;
}
}
return 0;
}
/* InputReadKeys : Handles the Keyboard */
s32 InputReadKeys(SDL_Event *event, struct io_t *io)
{
s32 start, end, bval, bstate, i;
switch (event->type) {
case SDL_KEYDOWN:
case SDL_KEYUP:
start = INPUT_KEY__START;
end = INPUT_KEY__END;
bval = event->key.keysym.sym;
bstate = event->key.state;
break;
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:
start = INPUT_KEY__START;
end = INPUT_KEY__START;
bval = event->button.button;
bstate = event->button.state;
break;
case SDL_CONTROLLERBUTTONDOWN:
case SDL_CONTROLLERBUTTONUP:
start = INPUT_CTRLLR__START;
end = INPUT_CTRLLR__END;
bval = event->cbutton.button;
bstate = event->cbutton.state;
break;
default:
LOG("Bad event type [%d] for %s", event->type, __FUNCTION__);
return -1;
}
for (i = start; i < end; i++) {
if (bval == sdlkey_to_inputkey[i].from) {
if (bstate == SDL_PRESSED) {
io->keys[sdlkey_to_inputkey[i].to] = INSTATE_PRESSED;
} else {
io->keys[sdlkey_to_inputkey[i].to] = INSTATE_RELEASED;
}
}
}
return 0;
}
// InputCycleKeyState : cycles the key state to give rising / falling edges
void InputCycleKeyState(struct io_t *io)
{
s32 i;
for (i = 0; i < INPUT_KEY_TOTAL; i++) {
switch (io->keys[i]) {
case INSTATE_PRESSED:
io->keys[i] = INSTATE_DOWN;
break;
case INSTATE_RELEASED:
io->keys[i] = INSTATE_UP;
break;
}
}
}
/* InputReadMouse : Handles the Mouse */
s32 InputReadMouse(SDL_Event *event, struct io_t *io)
{
assert(event);
assert(io);
if (event->type != SDL_MOUSEMOTION) {
return -1;
}
// SDL_GetMouseState(&vals->uMouse_x, &vals->uMouse_y);
return 0;
}
/* InputReadWindow : Handles Window Events */
s32 InputReadWindow(SDL_Event *event, struct io_t *io)
{
assert(event);
assert(io);
if (event->type != SDL_WINDOWEVENT) {
return -1;
}
switch (event->window.event) {
case SDL_WINDOWEVENT_SHOWN:
break;
case SDL_WINDOWEVENT_HIDDEN:
break;
case SDL_WINDOWEVENT_EXPOSED:
break;
case SDL_WINDOWEVENT_MOVED:
break;
case SDL_WINDOWEVENT_RESIZED:
case SDL_WINDOWEVENT_SIZE_CHANGED:
io->win_w = event->window.data1;
io->win_h = event->window.data2;
break;
case SDL_WINDOWEVENT_MINIMIZED:
break;
case SDL_WINDOWEVENT_MAXIMIZED:
break;
case SDL_WINDOWEVENT_RESTORED:
break;
case SDL_WINDOWEVENT_ENTER:
break;
case SDL_WINDOWEVENT_LEAVE:
break;
case SDL_WINDOWEVENT_FOCUS_GAINED:
break;
case SDL_WINDOWEVENT_FOCUS_LOST:
break;
default:
SDL_Log("Window %d got unknown event %d", event->window.windowID, event->window.event);
break;
}
return 0;
}
|
1d0221501aca530a0a06c17cbbe882e1e21d6921
|
8d753bb8f19b5b1f526b0688d3cb199b396ed843
|
/osp_sai_2.1.8/system/drvs/device/phy/aqr40x/AQ_HHD_PMA_registers_Defines.h
|
2b7badc82ef93e2e62608f942af94a2ca6897f1f
|
[] |
no_license
|
bonald/vim_cfg
|
f166e5ff650db9fa40b564d05dc5103552184db8
|
2fee6115caec25fd040188dda0cb922bfca1a55f
|
refs/heads/master
| 2023-01-23T05:33:00.416311 | 2020-11-19T02:09:18 | 2020-11-19T02:09:18 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 314,052 |
h
|
AQ_HHD_PMA_registers_Defines.h
|
/************************************************************************************
*
* Copyright (c) 2016, Aquantia Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
************************************************************************************/
/*! \file
* This file contains the compiler assist macros and doxygen comments
* for the PMA Registers block.
*/
/*! \defgroup PMA_registers_Defines PMA Registers Defines
* This module contains the compiler assist macros and doxygen comments
* for the PMA Registers block.
*/
/***********************************************************************
* Copyright Aquantia Corporation
* Freeware
*
* $File: //depot/icm/proj/Dena/rev1.0/c/Systems/tools/windows/regMapParser/src/gencheaders.py $
*
* $Revision: #13 $
*
* $DateTime: 2016/09/23 10:49:54 $
*
* $Author: wxia $
*
* $Label: $
*
* Description:
*
* This file contains the compiler assist macros for the registers contained in the PMA Registers block.
*
*
***********************************************************************/
/*@{*/
#ifndef AQ_HHD_PMA_REGS_DEFINES_HEADER
#define AQ_HHD_PMA_REGS_DEFINES_HEADER
/*-----------------------------------------------------------------------------*/
/*Access macro definitions */
/*-----------------------------------------------------------------------------*/
/*! \brief Base register address of structure AQ_PmaStandardControl_1_HHD */
#define AQ_PmaStandardControl_1_HHD_baseRegisterAddress 0x0000
/*! \brief MMD address of structure AQ_PmaStandardControl_1_HHD */
#define AQ_PmaStandardControl_1_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure reset in AQ_PmaStandardControl_1_HHD */
#define AQ_PmaStandardControl_1_HHD_reset 0
/*! \brief Preprocessor variable to relate field to bit position in structure reset in AQ_PmaStandardControl_1_HHD */
#define bits_AQ_PmaStandardControl_1_HHD_reset u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure reset in AQ_PmaStandardControl_1_HHD */
#define word_AQ_PmaStandardControl_1_HHD_reset u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure speedSelectionLsb in AQ_PmaStandardControl_1_HHD */
#define AQ_PmaStandardControl_1_HHD_speedSelectionLsb 0
/*! \brief Preprocessor variable to relate field to bit position in structure speedSelectionLsb in AQ_PmaStandardControl_1_HHD */
#define bits_AQ_PmaStandardControl_1_HHD_speedSelectionLsb u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure speedSelectionLsb in AQ_PmaStandardControl_1_HHD */
#define word_AQ_PmaStandardControl_1_HHD_speedSelectionLsb u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure lowPower in AQ_PmaStandardControl_1_HHD */
#define AQ_PmaStandardControl_1_HHD_lowPower 0
/*! \brief Preprocessor variable to relate field to bit position in structure lowPower in AQ_PmaStandardControl_1_HHD */
#define bits_AQ_PmaStandardControl_1_HHD_lowPower u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure lowPower in AQ_PmaStandardControl_1_HHD */
#define word_AQ_PmaStandardControl_1_HHD_lowPower u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure speedSelectionMsb in AQ_PmaStandardControl_1_HHD */
#define AQ_PmaStandardControl_1_HHD_speedSelectionMsb 0
/*! \brief Preprocessor variable to relate field to bit position in structure speedSelectionMsb in AQ_PmaStandardControl_1_HHD */
#define bits_AQ_PmaStandardControl_1_HHD_speedSelectionMsb u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure speedSelectionMsb in AQ_PmaStandardControl_1_HHD */
#define word_AQ_PmaStandardControl_1_HHD_speedSelectionMsb u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure _10gSpeedSelection in AQ_PmaStandardControl_1_HHD */
#define AQ_PmaStandardControl_1_HHD__10gSpeedSelection 0
/*! \brief Preprocessor variable to relate field to bit position in structure _10gSpeedSelection in AQ_PmaStandardControl_1_HHD */
#define bits_AQ_PmaStandardControl_1_HHD__10gSpeedSelection u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure _10gSpeedSelection in AQ_PmaStandardControl_1_HHD */
#define word_AQ_PmaStandardControl_1_HHD__10gSpeedSelection u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure loopback in AQ_PmaStandardControl_1_HHD */
#define AQ_PmaStandardControl_1_HHD_loopback 0
/*! \brief Preprocessor variable to relate field to bit position in structure loopback in AQ_PmaStandardControl_1_HHD */
#define bits_AQ_PmaStandardControl_1_HHD_loopback u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure loopback in AQ_PmaStandardControl_1_HHD */
#define word_AQ_PmaStandardControl_1_HHD_loopback u0.word_0
/*! \brief Base register address of structure AQ_PmaStandardStatus_1_HHD */
#define AQ_PmaStandardStatus_1_HHD_baseRegisterAddress 0x0001
/*! \brief MMD address of structure AQ_PmaStandardStatus_1_HHD */
#define AQ_PmaStandardStatus_1_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure fault in AQ_PmaStandardStatus_1_HHD */
#define AQ_PmaStandardStatus_1_HHD_fault 0
/*! \brief Preprocessor variable to relate field to bit position in structure fault in AQ_PmaStandardStatus_1_HHD */
#define bits_AQ_PmaStandardStatus_1_HHD_fault u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure fault in AQ_PmaStandardStatus_1_HHD */
#define word_AQ_PmaStandardStatus_1_HHD_fault u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmaReceiveLinkStatus in AQ_PmaStandardStatus_1_HHD */
#define AQ_PmaStandardStatus_1_HHD_pmaReceiveLinkStatus 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmaReceiveLinkStatus in AQ_PmaStandardStatus_1_HHD */
#define bits_AQ_PmaStandardStatus_1_HHD_pmaReceiveLinkStatus u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmaReceiveLinkStatus in AQ_PmaStandardStatus_1_HHD */
#define word_AQ_PmaStandardStatus_1_HHD_pmaReceiveLinkStatus u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure lowPowerAbility in AQ_PmaStandardStatus_1_HHD */
#define AQ_PmaStandardStatus_1_HHD_lowPowerAbility 0
/*! \brief Preprocessor variable to relate field to bit position in structure lowPowerAbility in AQ_PmaStandardStatus_1_HHD */
#define bits_AQ_PmaStandardStatus_1_HHD_lowPowerAbility u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure lowPowerAbility in AQ_PmaStandardStatus_1_HHD */
#define word_AQ_PmaStandardStatus_1_HHD_lowPowerAbility u0.word_0
/*! \brief Base register address of structure AQ_PmaStandardDeviceIdentifier_HHD */
#define AQ_PmaStandardDeviceIdentifier_HHD_baseRegisterAddress 0x0002
/*! \brief MMD address of structure AQ_PmaStandardDeviceIdentifier_HHD */
#define AQ_PmaStandardDeviceIdentifier_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure deviceIdMSW in AQ_PmaStandardDeviceIdentifier_HHD */
#define AQ_PmaStandardDeviceIdentifier_HHD_deviceIdMSW 0
/*! \brief Preprocessor variable to relate field to bit position in structure deviceIdMSW in AQ_PmaStandardDeviceIdentifier_HHD */
#define bits_AQ_PmaStandardDeviceIdentifier_HHD_deviceIdMSW u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure deviceIdMSW in AQ_PmaStandardDeviceIdentifier_HHD */
#define word_AQ_PmaStandardDeviceIdentifier_HHD_deviceIdMSW u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure deviceIdLSW in AQ_PmaStandardDeviceIdentifier_HHD */
#define AQ_PmaStandardDeviceIdentifier_HHD_deviceIdLSW 1
/*! \brief Preprocessor variable to relate field to bit position in structure deviceIdLSW in AQ_PmaStandardDeviceIdentifier_HHD */
#define bits_AQ_PmaStandardDeviceIdentifier_HHD_deviceIdLSW u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure deviceIdLSW in AQ_PmaStandardDeviceIdentifier_HHD */
#define word_AQ_PmaStandardDeviceIdentifier_HHD_deviceIdLSW u1.word_1
/*! \brief Base register address of structure AQ_PmaStandardSpeedAbility_HHD */
#define AQ_PmaStandardSpeedAbility_HHD_baseRegisterAddress 0x0004
/*! \brief MMD address of structure AQ_PmaStandardSpeedAbility_HHD */
#define AQ_PmaStandardSpeedAbility_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure pma10M_Capable in AQ_PmaStandardSpeedAbility_HHD */
#define AQ_PmaStandardSpeedAbility_HHD_pma10M_Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma10M_Capable in AQ_PmaStandardSpeedAbility_HHD */
#define bits_AQ_PmaStandardSpeedAbility_HHD_pma10M_Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma10M_Capable in AQ_PmaStandardSpeedAbility_HHD */
#define word_AQ_PmaStandardSpeedAbility_HHD_pma10M_Capable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma100M_Capable in AQ_PmaStandardSpeedAbility_HHD */
#define AQ_PmaStandardSpeedAbility_HHD_pma100M_Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma100M_Capable in AQ_PmaStandardSpeedAbility_HHD */
#define bits_AQ_PmaStandardSpeedAbility_HHD_pma100M_Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma100M_Capable in AQ_PmaStandardSpeedAbility_HHD */
#define word_AQ_PmaStandardSpeedAbility_HHD_pma100M_Capable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma1G_Capable in AQ_PmaStandardSpeedAbility_HHD */
#define AQ_PmaStandardSpeedAbility_HHD_pma1G_Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma1G_Capable in AQ_PmaStandardSpeedAbility_HHD */
#define bits_AQ_PmaStandardSpeedAbility_HHD_pma1G_Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma1G_Capable in AQ_PmaStandardSpeedAbility_HHD */
#define word_AQ_PmaStandardSpeedAbility_HHD_pma1G_Capable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure _10pass_tsCapable in AQ_PmaStandardSpeedAbility_HHD */
#define AQ_PmaStandardSpeedAbility_HHD__10pass_tsCapable 0
/*! \brief Preprocessor variable to relate field to bit position in structure _10pass_tsCapable in AQ_PmaStandardSpeedAbility_HHD */
#define bits_AQ_PmaStandardSpeedAbility_HHD__10pass_tsCapable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure _10pass_tsCapable in AQ_PmaStandardSpeedAbility_HHD */
#define word_AQ_PmaStandardSpeedAbility_HHD__10pass_tsCapable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure _2base_tlCapable in AQ_PmaStandardSpeedAbility_HHD */
#define AQ_PmaStandardSpeedAbility_HHD__2base_tlCapable 0
/*! \brief Preprocessor variable to relate field to bit position in structure _2base_tlCapable in AQ_PmaStandardSpeedAbility_HHD */
#define bits_AQ_PmaStandardSpeedAbility_HHD__2base_tlCapable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure _2base_tlCapable in AQ_PmaStandardSpeedAbility_HHD */
#define word_AQ_PmaStandardSpeedAbility_HHD__2base_tlCapable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma10G_Capable in AQ_PmaStandardSpeedAbility_HHD */
#define AQ_PmaStandardSpeedAbility_HHD_pma10G_Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma10G_Capable in AQ_PmaStandardSpeedAbility_HHD */
#define bits_AQ_PmaStandardSpeedAbility_HHD_pma10G_Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma10G_Capable in AQ_PmaStandardSpeedAbility_HHD */
#define word_AQ_PmaStandardSpeedAbility_HHD_pma10G_Capable u0.word_0
/*! \brief Base register address of structure AQ_PmaStandardDevicesInPackage_HHD */
#define AQ_PmaStandardDevicesInPackage_HHD_baseRegisterAddress 0x0005
/*! \brief MMD address of structure AQ_PmaStandardDevicesInPackage_HHD */
#define AQ_PmaStandardDevicesInPackage_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure autonegotiationPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define AQ_PmaStandardDevicesInPackage_HHD_autonegotiationPresent 0
/*! \brief Preprocessor variable to relate field to bit position in structure autonegotiationPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define bits_AQ_PmaStandardDevicesInPackage_HHD_autonegotiationPresent u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure autonegotiationPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define word_AQ_PmaStandardDevicesInPackage_HHD_autonegotiationPresent u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure tcPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define AQ_PmaStandardDevicesInPackage_HHD_tcPresent 0
/*! \brief Preprocessor variable to relate field to bit position in structure tcPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define bits_AQ_PmaStandardDevicesInPackage_HHD_tcPresent u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure tcPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define word_AQ_PmaStandardDevicesInPackage_HHD_tcPresent u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure dteXsPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define AQ_PmaStandardDevicesInPackage_HHD_dteXsPresent 0
/*! \brief Preprocessor variable to relate field to bit position in structure dteXsPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define bits_AQ_PmaStandardDevicesInPackage_HHD_dteXsPresent u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure dteXsPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define word_AQ_PmaStandardDevicesInPackage_HHD_dteXsPresent u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure phyXS_Present in AQ_PmaStandardDevicesInPackage_HHD */
#define AQ_PmaStandardDevicesInPackage_HHD_phyXS_Present 0
/*! \brief Preprocessor variable to relate field to bit position in structure phyXS_Present in AQ_PmaStandardDevicesInPackage_HHD */
#define bits_AQ_PmaStandardDevicesInPackage_HHD_phyXS_Present u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure phyXS_Present in AQ_PmaStandardDevicesInPackage_HHD */
#define word_AQ_PmaStandardDevicesInPackage_HHD_phyXS_Present u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pcsPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define AQ_PmaStandardDevicesInPackage_HHD_pcsPresent 0
/*! \brief Preprocessor variable to relate field to bit position in structure pcsPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define bits_AQ_PmaStandardDevicesInPackage_HHD_pcsPresent u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pcsPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define word_AQ_PmaStandardDevicesInPackage_HHD_pcsPresent u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure wisPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define AQ_PmaStandardDevicesInPackage_HHD_wisPresent 0
/*! \brief Preprocessor variable to relate field to bit position in structure wisPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define bits_AQ_PmaStandardDevicesInPackage_HHD_wisPresent u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure wisPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define word_AQ_PmaStandardDevicesInPackage_HHD_wisPresent u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmaPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define AQ_PmaStandardDevicesInPackage_HHD_pmaPresent 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmaPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define bits_AQ_PmaStandardDevicesInPackage_HHD_pmaPresent u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmaPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define word_AQ_PmaStandardDevicesInPackage_HHD_pmaPresent u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure clause_22RegistersPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define AQ_PmaStandardDevicesInPackage_HHD_clause_22RegistersPresent 0
/*! \brief Preprocessor variable to relate field to bit position in structure clause_22RegistersPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define bits_AQ_PmaStandardDevicesInPackage_HHD_clause_22RegistersPresent u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure clause_22RegistersPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define word_AQ_PmaStandardDevicesInPackage_HHD_clause_22RegistersPresent u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure vendorSpecificDevice_2Present in AQ_PmaStandardDevicesInPackage_HHD */
#define AQ_PmaStandardDevicesInPackage_HHD_vendorSpecificDevice_2Present 1
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSpecificDevice_2Present in AQ_PmaStandardDevicesInPackage_HHD */
#define bits_AQ_PmaStandardDevicesInPackage_HHD_vendorSpecificDevice_2Present u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure vendorSpecificDevice_2Present in AQ_PmaStandardDevicesInPackage_HHD */
#define word_AQ_PmaStandardDevicesInPackage_HHD_vendorSpecificDevice_2Present u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure vendorSpecificDevice_1Present in AQ_PmaStandardDevicesInPackage_HHD */
#define AQ_PmaStandardDevicesInPackage_HHD_vendorSpecificDevice_1Present 1
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSpecificDevice_1Present in AQ_PmaStandardDevicesInPackage_HHD */
#define bits_AQ_PmaStandardDevicesInPackage_HHD_vendorSpecificDevice_1Present u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure vendorSpecificDevice_1Present in AQ_PmaStandardDevicesInPackage_HHD */
#define word_AQ_PmaStandardDevicesInPackage_HHD_vendorSpecificDevice_1Present u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure clause_22ExtensionPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define AQ_PmaStandardDevicesInPackage_HHD_clause_22ExtensionPresent 1
/*! \brief Preprocessor variable to relate field to bit position in structure clause_22ExtensionPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define bits_AQ_PmaStandardDevicesInPackage_HHD_clause_22ExtensionPresent u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure clause_22ExtensionPresent in AQ_PmaStandardDevicesInPackage_HHD */
#define word_AQ_PmaStandardDevicesInPackage_HHD_clause_22ExtensionPresent u1.word_1
/*! \brief Base register address of structure AQ_PmaStandardControl_2_HHD */
#define AQ_PmaStandardControl_2_HHD_baseRegisterAddress 0x0007
/*! \brief MMD address of structure AQ_PmaStandardControl_2_HHD */
#define AQ_PmaStandardControl_2_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure pmaDeviceType in AQ_PmaStandardControl_2_HHD */
#define AQ_PmaStandardControl_2_HHD_pmaDeviceType 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmaDeviceType in AQ_PmaStandardControl_2_HHD */
#define bits_AQ_PmaStandardControl_2_HHD_pmaDeviceType u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmaDeviceType in AQ_PmaStandardControl_2_HHD */
#define word_AQ_PmaStandardControl_2_HHD_pmaDeviceType u0.word_0
/*! \brief Base register address of structure AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_baseRegisterAddress 0x0008
/*! \brief MMD address of structure AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure devicePresent in AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_devicePresent 0
/*! \brief Preprocessor variable to relate field to bit position in structure devicePresent in AQ_PmaStandardStatus_2_HHD */
#define bits_AQ_PmaStandardStatus_2_HHD_devicePresent u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure devicePresent in AQ_PmaStandardStatus_2_HHD */
#define word_AQ_PmaStandardStatus_2_HHD_devicePresent u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure transmitFaultLocationAbility in AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_transmitFaultLocationAbility 0
/*! \brief Preprocessor variable to relate field to bit position in structure transmitFaultLocationAbility in AQ_PmaStandardStatus_2_HHD */
#define bits_AQ_PmaStandardStatus_2_HHD_transmitFaultLocationAbility u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure transmitFaultLocationAbility in AQ_PmaStandardStatus_2_HHD */
#define word_AQ_PmaStandardStatus_2_HHD_transmitFaultLocationAbility u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure receiveFaultLocationAbility in AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_receiveFaultLocationAbility 0
/*! \brief Preprocessor variable to relate field to bit position in structure receiveFaultLocationAbility in AQ_PmaStandardStatus_2_HHD */
#define bits_AQ_PmaStandardStatus_2_HHD_receiveFaultLocationAbility u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure receiveFaultLocationAbility in AQ_PmaStandardStatus_2_HHD */
#define word_AQ_PmaStandardStatus_2_HHD_receiveFaultLocationAbility u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure transmitFault in AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_transmitFault 0
/*! \brief Preprocessor variable to relate field to bit position in structure transmitFault in AQ_PmaStandardStatus_2_HHD */
#define bits_AQ_PmaStandardStatus_2_HHD_transmitFault u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure transmitFault in AQ_PmaStandardStatus_2_HHD */
#define word_AQ_PmaStandardStatus_2_HHD_transmitFault u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure receiveFault in AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_receiveFault 0
/*! \brief Preprocessor variable to relate field to bit position in structure receiveFault in AQ_PmaStandardStatus_2_HHD */
#define bits_AQ_PmaStandardStatus_2_HHD_receiveFault u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure receiveFault in AQ_PmaStandardStatus_2_HHD */
#define word_AQ_PmaStandardStatus_2_HHD_receiveFault u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure extendedAbilities in AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_extendedAbilities 0
/*! \brief Preprocessor variable to relate field to bit position in structure extendedAbilities in AQ_PmaStandardStatus_2_HHD */
#define bits_AQ_PmaStandardStatus_2_HHD_extendedAbilities u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure extendedAbilities in AQ_PmaStandardStatus_2_HHD */
#define word_AQ_PmaStandardStatus_2_HHD_extendedAbilities u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmdTransmitDisableAbility in AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_pmdTransmitDisableAbility 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmdTransmitDisableAbility in AQ_PmaStandardStatus_2_HHD */
#define bits_AQ_PmaStandardStatus_2_HHD_pmdTransmitDisableAbility u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmdTransmitDisableAbility in AQ_PmaStandardStatus_2_HHD */
#define word_AQ_PmaStandardStatus_2_HHD_pmdTransmitDisableAbility u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma10GBaseSR_Capable in AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_pma10GBaseSR_Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma10GBaseSR_Capable in AQ_PmaStandardStatus_2_HHD */
#define bits_AQ_PmaStandardStatus_2_HHD_pma10GBaseSR_Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma10GBaseSR_Capable in AQ_PmaStandardStatus_2_HHD */
#define word_AQ_PmaStandardStatus_2_HHD_pma10GBaseSR_Capable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma10GBaseLR_Capable in AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_pma10GBaseLR_Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma10GBaseLR_Capable in AQ_PmaStandardStatus_2_HHD */
#define bits_AQ_PmaStandardStatus_2_HHD_pma10GBaseLR_Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma10GBaseLR_Capable in AQ_PmaStandardStatus_2_HHD */
#define word_AQ_PmaStandardStatus_2_HHD_pma10GBaseLR_Capable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma10GBaseER_Capable in AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_pma10GBaseER_Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma10GBaseER_Capable in AQ_PmaStandardStatus_2_HHD */
#define bits_AQ_PmaStandardStatus_2_HHD_pma10GBaseER_Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma10GBaseER_Capable in AQ_PmaStandardStatus_2_HHD */
#define word_AQ_PmaStandardStatus_2_HHD_pma10GBaseER_Capable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma10G_base_lx4Capable in AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_pma10G_base_lx4Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma10G_base_lx4Capable in AQ_PmaStandardStatus_2_HHD */
#define bits_AQ_PmaStandardStatus_2_HHD_pma10G_base_lx4Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma10G_base_lx4Capable in AQ_PmaStandardStatus_2_HHD */
#define word_AQ_PmaStandardStatus_2_HHD_pma10G_base_lx4Capable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma10GBaseSW_Capable in AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_pma10GBaseSW_Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma10GBaseSW_Capable in AQ_PmaStandardStatus_2_HHD */
#define bits_AQ_PmaStandardStatus_2_HHD_pma10GBaseSW_Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma10GBaseSW_Capable in AQ_PmaStandardStatus_2_HHD */
#define word_AQ_PmaStandardStatus_2_HHD_pma10GBaseSW_Capable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma10GBaseLW_Capable in AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_pma10GBaseLW_Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma10GBaseLW_Capable in AQ_PmaStandardStatus_2_HHD */
#define bits_AQ_PmaStandardStatus_2_HHD_pma10GBaseLW_Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma10GBaseLW_Capable in AQ_PmaStandardStatus_2_HHD */
#define word_AQ_PmaStandardStatus_2_HHD_pma10GBaseLW_Capable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma10GBaseEW_Capable in AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_pma10GBaseEW_Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma10GBaseEW_Capable in AQ_PmaStandardStatus_2_HHD */
#define bits_AQ_PmaStandardStatus_2_HHD_pma10GBaseEW_Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma10GBaseEW_Capable in AQ_PmaStandardStatus_2_HHD */
#define word_AQ_PmaStandardStatus_2_HHD_pma10GBaseEW_Capable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmaLoopbackAbility in AQ_PmaStandardStatus_2_HHD */
#define AQ_PmaStandardStatus_2_HHD_pmaLoopbackAbility 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmaLoopbackAbility in AQ_PmaStandardStatus_2_HHD */
#define bits_AQ_PmaStandardStatus_2_HHD_pmaLoopbackAbility u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmaLoopbackAbility in AQ_PmaStandardStatus_2_HHD */
#define word_AQ_PmaStandardStatus_2_HHD_pmaLoopbackAbility u0.word_0
/*! \brief Base register address of structure AQ_PmdStandardTransmitDisableControl_HHD */
#define AQ_PmdStandardTransmitDisableControl_HHD_baseRegisterAddress 0x0009
/*! \brief MMD address of structure AQ_PmdStandardTransmitDisableControl_HHD */
#define AQ_PmdStandardTransmitDisableControl_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure pmdChannel_3TransmitDisable in AQ_PmdStandardTransmitDisableControl_HHD */
#define AQ_PmdStandardTransmitDisableControl_HHD_pmdChannel_3TransmitDisable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmdChannel_3TransmitDisable in AQ_PmdStandardTransmitDisableControl_HHD */
#define bits_AQ_PmdStandardTransmitDisableControl_HHD_pmdChannel_3TransmitDisable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmdChannel_3TransmitDisable in AQ_PmdStandardTransmitDisableControl_HHD */
#define word_AQ_PmdStandardTransmitDisableControl_HHD_pmdChannel_3TransmitDisable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmdChannel_2TransmitDisable in AQ_PmdStandardTransmitDisableControl_HHD */
#define AQ_PmdStandardTransmitDisableControl_HHD_pmdChannel_2TransmitDisable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmdChannel_2TransmitDisable in AQ_PmdStandardTransmitDisableControl_HHD */
#define bits_AQ_PmdStandardTransmitDisableControl_HHD_pmdChannel_2TransmitDisable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmdChannel_2TransmitDisable in AQ_PmdStandardTransmitDisableControl_HHD */
#define word_AQ_PmdStandardTransmitDisableControl_HHD_pmdChannel_2TransmitDisable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmdChannel_1TransmitDisable in AQ_PmdStandardTransmitDisableControl_HHD */
#define AQ_PmdStandardTransmitDisableControl_HHD_pmdChannel_1TransmitDisable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmdChannel_1TransmitDisable in AQ_PmdStandardTransmitDisableControl_HHD */
#define bits_AQ_PmdStandardTransmitDisableControl_HHD_pmdChannel_1TransmitDisable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmdChannel_1TransmitDisable in AQ_PmdStandardTransmitDisableControl_HHD */
#define word_AQ_PmdStandardTransmitDisableControl_HHD_pmdChannel_1TransmitDisable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmdChannel_0TransmitDisable in AQ_PmdStandardTransmitDisableControl_HHD */
#define AQ_PmdStandardTransmitDisableControl_HHD_pmdChannel_0TransmitDisable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmdChannel_0TransmitDisable in AQ_PmdStandardTransmitDisableControl_HHD */
#define bits_AQ_PmdStandardTransmitDisableControl_HHD_pmdChannel_0TransmitDisable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmdChannel_0TransmitDisable in AQ_PmdStandardTransmitDisableControl_HHD */
#define word_AQ_PmdStandardTransmitDisableControl_HHD_pmdChannel_0TransmitDisable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmdGlobalTransmitDisable in AQ_PmdStandardTransmitDisableControl_HHD */
#define AQ_PmdStandardTransmitDisableControl_HHD_pmdGlobalTransmitDisable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmdGlobalTransmitDisable in AQ_PmdStandardTransmitDisableControl_HHD */
#define bits_AQ_PmdStandardTransmitDisableControl_HHD_pmdGlobalTransmitDisable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmdGlobalTransmitDisable in AQ_PmdStandardTransmitDisableControl_HHD */
#define word_AQ_PmdStandardTransmitDisableControl_HHD_pmdGlobalTransmitDisable u0.word_0
/*! \brief Base register address of structure AQ_PmdStandardSignalDetect_HHD */
#define AQ_PmdStandardSignalDetect_HHD_baseRegisterAddress 0x000A
/*! \brief MMD address of structure AQ_PmdStandardSignalDetect_HHD */
#define AQ_PmdStandardSignalDetect_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure pmdChannel_3SignalDetect in AQ_PmdStandardSignalDetect_HHD */
#define AQ_PmdStandardSignalDetect_HHD_pmdChannel_3SignalDetect 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmdChannel_3SignalDetect in AQ_PmdStandardSignalDetect_HHD */
#define bits_AQ_PmdStandardSignalDetect_HHD_pmdChannel_3SignalDetect u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmdChannel_3SignalDetect in AQ_PmdStandardSignalDetect_HHD */
#define word_AQ_PmdStandardSignalDetect_HHD_pmdChannel_3SignalDetect u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmdChannel_2SignalDetect in AQ_PmdStandardSignalDetect_HHD */
#define AQ_PmdStandardSignalDetect_HHD_pmdChannel_2SignalDetect 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmdChannel_2SignalDetect in AQ_PmdStandardSignalDetect_HHD */
#define bits_AQ_PmdStandardSignalDetect_HHD_pmdChannel_2SignalDetect u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmdChannel_2SignalDetect in AQ_PmdStandardSignalDetect_HHD */
#define word_AQ_PmdStandardSignalDetect_HHD_pmdChannel_2SignalDetect u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmdChannel_1SignalDetect in AQ_PmdStandardSignalDetect_HHD */
#define AQ_PmdStandardSignalDetect_HHD_pmdChannel_1SignalDetect 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmdChannel_1SignalDetect in AQ_PmdStandardSignalDetect_HHD */
#define bits_AQ_PmdStandardSignalDetect_HHD_pmdChannel_1SignalDetect u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmdChannel_1SignalDetect in AQ_PmdStandardSignalDetect_HHD */
#define word_AQ_PmdStandardSignalDetect_HHD_pmdChannel_1SignalDetect u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmdChannel_0SignalDetect in AQ_PmdStandardSignalDetect_HHD */
#define AQ_PmdStandardSignalDetect_HHD_pmdChannel_0SignalDetect 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmdChannel_0SignalDetect in AQ_PmdStandardSignalDetect_HHD */
#define bits_AQ_PmdStandardSignalDetect_HHD_pmdChannel_0SignalDetect u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmdChannel_0SignalDetect in AQ_PmdStandardSignalDetect_HHD */
#define word_AQ_PmdStandardSignalDetect_HHD_pmdChannel_0SignalDetect u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmdGlobalSignalDetect in AQ_PmdStandardSignalDetect_HHD */
#define AQ_PmdStandardSignalDetect_HHD_pmdGlobalSignalDetect 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmdGlobalSignalDetect in AQ_PmdStandardSignalDetect_HHD */
#define bits_AQ_PmdStandardSignalDetect_HHD_pmdGlobalSignalDetect u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmdGlobalSignalDetect in AQ_PmdStandardSignalDetect_HHD */
#define word_AQ_PmdStandardSignalDetect_HHD_pmdGlobalSignalDetect u0.word_0
/*! \brief Base register address of structure AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_baseRegisterAddress 0x000B
/*! \brief MMD address of structure AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure pma10BaseT_Capable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10BaseT_Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma10BaseT_Capable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define bits_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10BaseT_Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma10BaseT_Capable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define word_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10BaseT_Capable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma_100base_txCapable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma_100base_txCapable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma_100base_txCapable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define bits_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma_100base_txCapable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma_100base_txCapable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define word_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma_100base_txCapable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma_1000base_kxCapable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma_1000base_kxCapable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma_1000base_kxCapable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define bits_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma_1000base_kxCapable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma_1000base_kxCapable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define word_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma_1000base_kxCapable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma1000BaseT_Capable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma1000BaseT_Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma1000BaseT_Capable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define bits_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma1000BaseT_Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma1000BaseT_Capable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define word_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma1000BaseT_Capable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma10GBaseK_rCapable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10GBaseK_rCapable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma10GBaseK_rCapable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define bits_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10GBaseK_rCapable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma10GBaseK_rCapable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define word_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10GBaseK_rCapable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma10GBaseK_x4Capable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10GBaseK_x4Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma10GBaseK_x4Capable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define bits_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10GBaseK_x4Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma10GBaseK_x4Capable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define word_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10GBaseK_x4Capable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma10GBaseT_Capable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10GBaseT_Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma10GBaseT_Capable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define bits_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10GBaseT_Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma10GBaseT_Capable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define word_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10GBaseT_Capable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma10GBaseLR_mCapable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10GBaseLR_mCapable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma10GBaseLR_mCapable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define bits_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10GBaseLR_mCapable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma10GBaseLR_mCapable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define word_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10GBaseLR_mCapable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pma10GBaseCX4_Capable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10GBaseCX4_Capable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pma10GBaseCX4_Capable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define bits_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10GBaseCX4_Capable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pma10GBaseCX4_Capable in AQ_PmdStandard10G_ExtendedAbilityRegister_HHD */
#define word_AQ_PmdStandard10G_ExtendedAbilityRegister_HHD_pma10GBaseCX4_Capable u0.word_0
/*! \brief Base register address of structure AQ_PmaStandardPackageIdentifier_HHD */
#define AQ_PmaStandardPackageIdentifier_HHD_baseRegisterAddress 0x000E
/*! \brief MMD address of structure AQ_PmaStandardPackageIdentifier_HHD */
#define AQ_PmaStandardPackageIdentifier_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure packageIdMSW in AQ_PmaStandardPackageIdentifier_HHD */
#define AQ_PmaStandardPackageIdentifier_HHD_packageIdMSW 0
/*! \brief Preprocessor variable to relate field to bit position in structure packageIdMSW in AQ_PmaStandardPackageIdentifier_HHD */
#define bits_AQ_PmaStandardPackageIdentifier_HHD_packageIdMSW u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure packageIdMSW in AQ_PmaStandardPackageIdentifier_HHD */
#define word_AQ_PmaStandardPackageIdentifier_HHD_packageIdMSW u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure packageIdLSW in AQ_PmaStandardPackageIdentifier_HHD */
#define AQ_PmaStandardPackageIdentifier_HHD_packageIdLSW 1
/*! \brief Preprocessor variable to relate field to bit position in structure packageIdLSW in AQ_PmaStandardPackageIdentifier_HHD */
#define bits_AQ_PmaStandardPackageIdentifier_HHD_packageIdLSW u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure packageIdLSW in AQ_PmaStandardPackageIdentifier_HHD */
#define word_AQ_PmaStandardPackageIdentifier_HHD_packageIdLSW u1.word_1
/*! \brief Base register address of structure AQ_Pma10GBaseT_Status_HHD */
#define AQ_Pma10GBaseT_Status_HHD_baseRegisterAddress 0x0081
/*! \brief MMD address of structure AQ_Pma10GBaseT_Status_HHD */
#define AQ_Pma10GBaseT_Status_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure linkPartnerInformationValid in AQ_Pma10GBaseT_Status_HHD */
#define AQ_Pma10GBaseT_Status_HHD_linkPartnerInformationValid 0
/*! \brief Preprocessor variable to relate field to bit position in structure linkPartnerInformationValid in AQ_Pma10GBaseT_Status_HHD */
#define bits_AQ_Pma10GBaseT_Status_HHD_linkPartnerInformationValid u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure linkPartnerInformationValid in AQ_Pma10GBaseT_Status_HHD */
#define word_AQ_Pma10GBaseT_Status_HHD_linkPartnerInformationValid u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD */
#define AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD_baseRegisterAddress 0x0082
/*! \brief MMD address of structure AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD */
#define AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure pairPolarity in AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD */
#define AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD_pairPolarity 0
/*! \brief Preprocessor variable to relate field to bit position in structure pairPolarity in AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD */
#define bits_AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD_pairPolarity u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pairPolarity in AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD */
#define word_AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD_pairPolarity u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure mdi_Md_xConnectionState in AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD */
#define AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD_mdi_Md_xConnectionState 0
/*! \brief Preprocessor variable to relate field to bit position in structure mdi_Md_xConnectionState in AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD */
#define bits_AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD_mdi_Md_xConnectionState u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure mdi_Md_xConnectionState in AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD */
#define word_AQ_Pma10GBaseT_PairSwapAndPolarityStatus_HHD_mdi_Md_xConnectionState u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD */
#define AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD_baseRegisterAddress 0x0083
/*! \brief MMD address of structure AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD */
#define AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure linkPartnerTxPowerBackoff in AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD */
#define AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD_linkPartnerTxPowerBackoff 0
/*! \brief Preprocessor variable to relate field to bit position in structure linkPartnerTxPowerBackoff in AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD */
#define bits_AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD_linkPartnerTxPowerBackoff u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure linkPartnerTxPowerBackoff in AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD */
#define word_AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD_linkPartnerTxPowerBackoff u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure txPowerBackoff in AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD */
#define AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD_txPowerBackoff 0
/*! \brief Preprocessor variable to relate field to bit position in structure txPowerBackoff in AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD */
#define bits_AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD_txPowerBackoff u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure txPowerBackoff in AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD */
#define word_AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD_txPowerBackoff u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure shortReachMode in AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD */
#define AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD_shortReachMode 0
/*! \brief Preprocessor variable to relate field to bit position in structure shortReachMode in AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD */
#define bits_AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD_shortReachMode u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure shortReachMode in AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD */
#define word_AQ_Pma10GBaseT_TxPowerBackoffAndShortReachSetting_HHD_shortReachMode u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_TestModes_HHD */
#define AQ_Pma10GBaseT_TestModes_HHD_baseRegisterAddress 0x0084
/*! \brief MMD address of structure AQ_Pma10GBaseT_TestModes_HHD */
#define AQ_Pma10GBaseT_TestModes_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure testModeControl in AQ_Pma10GBaseT_TestModes_HHD */
#define AQ_Pma10GBaseT_TestModes_HHD_testModeControl 0
/*! \brief Preprocessor variable to relate field to bit position in structure testModeControl in AQ_Pma10GBaseT_TestModes_HHD */
#define bits_AQ_Pma10GBaseT_TestModes_HHD_testModeControl u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure testModeControl in AQ_Pma10GBaseT_TestModes_HHD */
#define word_AQ_Pma10GBaseT_TestModes_HHD_testModeControl u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure transmitterTestFrequencies in AQ_Pma10GBaseT_TestModes_HHD */
#define AQ_Pma10GBaseT_TestModes_HHD_transmitterTestFrequencies 0
/*! \brief Preprocessor variable to relate field to bit position in structure transmitterTestFrequencies in AQ_Pma10GBaseT_TestModes_HHD */
#define bits_AQ_Pma10GBaseT_TestModes_HHD_transmitterTestFrequencies u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure transmitterTestFrequencies in AQ_Pma10GBaseT_TestModes_HHD */
#define word_AQ_Pma10GBaseT_TestModes_HHD_transmitterTestFrequencies u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_SNR_OperatingMarginChannelA_HHD */
#define AQ_Pma10GBaseT_SNR_OperatingMarginChannelA_HHD_baseRegisterAddress 0x0085
/*! \brief MMD address of structure AQ_Pma10GBaseT_SNR_OperatingMarginChannelA_HHD */
#define AQ_Pma10GBaseT_SNR_OperatingMarginChannelA_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure channelAOperatingMargin in AQ_Pma10GBaseT_SNR_OperatingMarginChannelA_HHD */
#define AQ_Pma10GBaseT_SNR_OperatingMarginChannelA_HHD_channelAOperatingMargin 0
/*! \brief Preprocessor variable to relate field to bit position in structure channelAOperatingMargin in AQ_Pma10GBaseT_SNR_OperatingMarginChannelA_HHD */
#define bits_AQ_Pma10GBaseT_SNR_OperatingMarginChannelA_HHD_channelAOperatingMargin u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channelAOperatingMargin in AQ_Pma10GBaseT_SNR_OperatingMarginChannelA_HHD */
#define word_AQ_Pma10GBaseT_SNR_OperatingMarginChannelA_HHD_channelAOperatingMargin u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_SNR_OperatingMarginChannelB_HHD */
#define AQ_Pma10GBaseT_SNR_OperatingMarginChannelB_HHD_baseRegisterAddress 0x0086
/*! \brief MMD address of structure AQ_Pma10GBaseT_SNR_OperatingMarginChannelB_HHD */
#define AQ_Pma10GBaseT_SNR_OperatingMarginChannelB_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure channelBOperatingMargin in AQ_Pma10GBaseT_SNR_OperatingMarginChannelB_HHD */
#define AQ_Pma10GBaseT_SNR_OperatingMarginChannelB_HHD_channelBOperatingMargin 0
/*! \brief Preprocessor variable to relate field to bit position in structure channelBOperatingMargin in AQ_Pma10GBaseT_SNR_OperatingMarginChannelB_HHD */
#define bits_AQ_Pma10GBaseT_SNR_OperatingMarginChannelB_HHD_channelBOperatingMargin u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channelBOperatingMargin in AQ_Pma10GBaseT_SNR_OperatingMarginChannelB_HHD */
#define word_AQ_Pma10GBaseT_SNR_OperatingMarginChannelB_HHD_channelBOperatingMargin u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_SNR_OperatingMarginChannelC_HHD */
#define AQ_Pma10GBaseT_SNR_OperatingMarginChannelC_HHD_baseRegisterAddress 0x0087
/*! \brief MMD address of structure AQ_Pma10GBaseT_SNR_OperatingMarginChannelC_HHD */
#define AQ_Pma10GBaseT_SNR_OperatingMarginChannelC_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure channelCOperatingMargin in AQ_Pma10GBaseT_SNR_OperatingMarginChannelC_HHD */
#define AQ_Pma10GBaseT_SNR_OperatingMarginChannelC_HHD_channelCOperatingMargin 0
/*! \brief Preprocessor variable to relate field to bit position in structure channelCOperatingMargin in AQ_Pma10GBaseT_SNR_OperatingMarginChannelC_HHD */
#define bits_AQ_Pma10GBaseT_SNR_OperatingMarginChannelC_HHD_channelCOperatingMargin u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channelCOperatingMargin in AQ_Pma10GBaseT_SNR_OperatingMarginChannelC_HHD */
#define word_AQ_Pma10GBaseT_SNR_OperatingMarginChannelC_HHD_channelCOperatingMargin u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_SNR_OperatingMarginChannelD_HHD */
#define AQ_Pma10GBaseT_SNR_OperatingMarginChannelD_HHD_baseRegisterAddress 0x0088
/*! \brief MMD address of structure AQ_Pma10GBaseT_SNR_OperatingMarginChannelD_HHD */
#define AQ_Pma10GBaseT_SNR_OperatingMarginChannelD_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure channelDOperatingMargin in AQ_Pma10GBaseT_SNR_OperatingMarginChannelD_HHD */
#define AQ_Pma10GBaseT_SNR_OperatingMarginChannelD_HHD_channelDOperatingMargin 0
/*! \brief Preprocessor variable to relate field to bit position in structure channelDOperatingMargin in AQ_Pma10GBaseT_SNR_OperatingMarginChannelD_HHD */
#define bits_AQ_Pma10GBaseT_SNR_OperatingMarginChannelD_HHD_channelDOperatingMargin u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channelDOperatingMargin in AQ_Pma10GBaseT_SNR_OperatingMarginChannelD_HHD */
#define word_AQ_Pma10GBaseT_SNR_OperatingMarginChannelD_HHD_channelDOperatingMargin u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelA_HHD */
#define AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelA_HHD_baseRegisterAddress 0x0089
/*! \brief MMD address of structure AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelA_HHD */
#define AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelA_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure channelAMinimumOperatingMargin in AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelA_HHD */
#define AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelA_HHD_channelAMinimumOperatingMargin 0
/*! \brief Preprocessor variable to relate field to bit position in structure channelAMinimumOperatingMargin in AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelA_HHD */
#define bits_AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelA_HHD_channelAMinimumOperatingMargin u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channelAMinimumOperatingMargin in AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelA_HHD */
#define word_AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelA_HHD_channelAMinimumOperatingMargin u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelB_HHD */
#define AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelB_HHD_baseRegisterAddress 0x008A
/*! \brief MMD address of structure AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelB_HHD */
#define AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelB_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure channelBMinimumOperatingMargin in AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelB_HHD */
#define AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelB_HHD_channelBMinimumOperatingMargin 0
/*! \brief Preprocessor variable to relate field to bit position in structure channelBMinimumOperatingMargin in AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelB_HHD */
#define bits_AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelB_HHD_channelBMinimumOperatingMargin u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channelBMinimumOperatingMargin in AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelB_HHD */
#define word_AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelB_HHD_channelBMinimumOperatingMargin u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelC_HHD */
#define AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelC_HHD_baseRegisterAddress 0x008B
/*! \brief MMD address of structure AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelC_HHD */
#define AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelC_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure channelCMinimumOperatingMargin in AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelC_HHD */
#define AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelC_HHD_channelCMinimumOperatingMargin 0
/*! \brief Preprocessor variable to relate field to bit position in structure channelCMinimumOperatingMargin in AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelC_HHD */
#define bits_AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelC_HHD_channelCMinimumOperatingMargin u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channelCMinimumOperatingMargin in AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelC_HHD */
#define word_AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelC_HHD_channelCMinimumOperatingMargin u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelD_HHD */
#define AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelD_HHD_baseRegisterAddress 0x008C
/*! \brief MMD address of structure AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelD_HHD */
#define AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelD_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure channelDMinimumOperatingMargin in AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelD_HHD */
#define AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelD_HHD_channelDMinimumOperatingMargin 0
/*! \brief Preprocessor variable to relate field to bit position in structure channelDMinimumOperatingMargin in AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelD_HHD */
#define bits_AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelD_HHD_channelDMinimumOperatingMargin u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channelDMinimumOperatingMargin in AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelD_HHD */
#define word_AQ_Pma10GBaseT_SNR_MinimumOperatingMarginChannelD_HHD_channelDMinimumOperatingMargin u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_ReceiveSignalPowerChannelA_HHD */
#define AQ_Pma10GBaseT_ReceiveSignalPowerChannelA_HHD_baseRegisterAddress 0x008D
/*! \brief MMD address of structure AQ_Pma10GBaseT_ReceiveSignalPowerChannelA_HHD */
#define AQ_Pma10GBaseT_ReceiveSignalPowerChannelA_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure channelAReceivedSignalPower in AQ_Pma10GBaseT_ReceiveSignalPowerChannelA_HHD */
#define AQ_Pma10GBaseT_ReceiveSignalPowerChannelA_HHD_channelAReceivedSignalPower 0
/*! \brief Preprocessor variable to relate field to bit position in structure channelAReceivedSignalPower in AQ_Pma10GBaseT_ReceiveSignalPowerChannelA_HHD */
#define bits_AQ_Pma10GBaseT_ReceiveSignalPowerChannelA_HHD_channelAReceivedSignalPower u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channelAReceivedSignalPower in AQ_Pma10GBaseT_ReceiveSignalPowerChannelA_HHD */
#define word_AQ_Pma10GBaseT_ReceiveSignalPowerChannelA_HHD_channelAReceivedSignalPower u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_ReceiveSignalPowerChannelB_HHD */
#define AQ_Pma10GBaseT_ReceiveSignalPowerChannelB_HHD_baseRegisterAddress 0x008E
/*! \brief MMD address of structure AQ_Pma10GBaseT_ReceiveSignalPowerChannelB_HHD */
#define AQ_Pma10GBaseT_ReceiveSignalPowerChannelB_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure channelBReceivedSignalPower in AQ_Pma10GBaseT_ReceiveSignalPowerChannelB_HHD */
#define AQ_Pma10GBaseT_ReceiveSignalPowerChannelB_HHD_channelBReceivedSignalPower 0
/*! \brief Preprocessor variable to relate field to bit position in structure channelBReceivedSignalPower in AQ_Pma10GBaseT_ReceiveSignalPowerChannelB_HHD */
#define bits_AQ_Pma10GBaseT_ReceiveSignalPowerChannelB_HHD_channelBReceivedSignalPower u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channelBReceivedSignalPower in AQ_Pma10GBaseT_ReceiveSignalPowerChannelB_HHD */
#define word_AQ_Pma10GBaseT_ReceiveSignalPowerChannelB_HHD_channelBReceivedSignalPower u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_ReceiveSignalPowerChannelC_HHD */
#define AQ_Pma10GBaseT_ReceiveSignalPowerChannelC_HHD_baseRegisterAddress 0x008F
/*! \brief MMD address of structure AQ_Pma10GBaseT_ReceiveSignalPowerChannelC_HHD */
#define AQ_Pma10GBaseT_ReceiveSignalPowerChannelC_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure channelCReceivedSignalPower in AQ_Pma10GBaseT_ReceiveSignalPowerChannelC_HHD */
#define AQ_Pma10GBaseT_ReceiveSignalPowerChannelC_HHD_channelCReceivedSignalPower 0
/*! \brief Preprocessor variable to relate field to bit position in structure channelCReceivedSignalPower in AQ_Pma10GBaseT_ReceiveSignalPowerChannelC_HHD */
#define bits_AQ_Pma10GBaseT_ReceiveSignalPowerChannelC_HHD_channelCReceivedSignalPower u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channelCReceivedSignalPower in AQ_Pma10GBaseT_ReceiveSignalPowerChannelC_HHD */
#define word_AQ_Pma10GBaseT_ReceiveSignalPowerChannelC_HHD_channelCReceivedSignalPower u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_ReceiveSignalPowerChannelD_HHD */
#define AQ_Pma10GBaseT_ReceiveSignalPowerChannelD_HHD_baseRegisterAddress 0x0090
/*! \brief MMD address of structure AQ_Pma10GBaseT_ReceiveSignalPowerChannelD_HHD */
#define AQ_Pma10GBaseT_ReceiveSignalPowerChannelD_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure channelDReceivedSignalPower in AQ_Pma10GBaseT_ReceiveSignalPowerChannelD_HHD */
#define AQ_Pma10GBaseT_ReceiveSignalPowerChannelD_HHD_channelDReceivedSignalPower 0
/*! \brief Preprocessor variable to relate field to bit position in structure channelDReceivedSignalPower in AQ_Pma10GBaseT_ReceiveSignalPowerChannelD_HHD */
#define bits_AQ_Pma10GBaseT_ReceiveSignalPowerChannelD_HHD_channelDReceivedSignalPower u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channelDReceivedSignalPower in AQ_Pma10GBaseT_ReceiveSignalPowerChannelD_HHD */
#define word_AQ_Pma10GBaseT_ReceiveSignalPowerChannelD_HHD_channelDReceivedSignalPower u0.word_0
/*! \brief Base register address of structure AQ_Pma10GBaseT_SkewDelay_HHD */
#define AQ_Pma10GBaseT_SkewDelay_HHD_baseRegisterAddress 0x0091
/*! \brief MMD address of structure AQ_Pma10GBaseT_SkewDelay_HHD */
#define AQ_Pma10GBaseT_SkewDelay_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure skewDelayB in AQ_Pma10GBaseT_SkewDelay_HHD */
#define AQ_Pma10GBaseT_SkewDelay_HHD_skewDelayB 0
/*! \brief Preprocessor variable to relate field to bit position in structure skewDelayB in AQ_Pma10GBaseT_SkewDelay_HHD */
#define bits_AQ_Pma10GBaseT_SkewDelay_HHD_skewDelayB u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure skewDelayB in AQ_Pma10GBaseT_SkewDelay_HHD */
#define word_AQ_Pma10GBaseT_SkewDelay_HHD_skewDelayB u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure skewDelayD in AQ_Pma10GBaseT_SkewDelay_HHD */
#define AQ_Pma10GBaseT_SkewDelay_HHD_skewDelayD 1
/*! \brief Preprocessor variable to relate field to bit position in structure skewDelayD in AQ_Pma10GBaseT_SkewDelay_HHD */
#define bits_AQ_Pma10GBaseT_SkewDelay_HHD_skewDelayD u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure skewDelayD in AQ_Pma10GBaseT_SkewDelay_HHD */
#define word_AQ_Pma10GBaseT_SkewDelay_HHD_skewDelayD u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure skewDelayC in AQ_Pma10GBaseT_SkewDelay_HHD */
#define AQ_Pma10GBaseT_SkewDelay_HHD_skewDelayC 1
/*! \brief Preprocessor variable to relate field to bit position in structure skewDelayC in AQ_Pma10GBaseT_SkewDelay_HHD */
#define bits_AQ_Pma10GBaseT_SkewDelay_HHD_skewDelayC u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure skewDelayC in AQ_Pma10GBaseT_SkewDelay_HHD */
#define word_AQ_Pma10GBaseT_SkewDelay_HHD_skewDelayC u1.word_1
/*! \brief Base register address of structure AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_baseRegisterAddress 0x0093
/*! \brief MMD address of structure AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure lpFastRetrainCount in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_lpFastRetrainCount 0
/*! \brief Preprocessor variable to relate field to bit position in structure lpFastRetrainCount in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define bits_AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_lpFastRetrainCount u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure lpFastRetrainCount in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define word_AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_lpFastRetrainCount u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure ldFastRetrainCount in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_ldFastRetrainCount 0
/*! \brief Preprocessor variable to relate field to bit position in structure ldFastRetrainCount in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define bits_AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_ldFastRetrainCount u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure ldFastRetrainCount in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define word_AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_ldFastRetrainCount u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure fastRetrainAbility in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_fastRetrainAbility 0
/*! \brief Preprocessor variable to relate field to bit position in structure fastRetrainAbility in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define bits_AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_fastRetrainAbility u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure fastRetrainAbility in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define word_AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_fastRetrainAbility u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure fastRetrainNegotiated in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_fastRetrainNegotiated 0
/*! \brief Preprocessor variable to relate field to bit position in structure fastRetrainNegotiated in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define bits_AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_fastRetrainNegotiated u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure fastRetrainNegotiated in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define word_AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_fastRetrainNegotiated u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure fastRetrainSignalType in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_fastRetrainSignalType 0
/*! \brief Preprocessor variable to relate field to bit position in structure fastRetrainSignalType in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define bits_AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_fastRetrainSignalType u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure fastRetrainSignalType in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define word_AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_fastRetrainSignalType u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure fastRetrainEnable in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_fastRetrainEnable 0
/*! \brief Preprocessor variable to relate field to bit position in structure fastRetrainEnable in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define bits_AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_fastRetrainEnable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure fastRetrainEnable in AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD */
#define word_AQ_Pma10GBaseT_FastRetrainStatusAndControl_HHD_fastRetrainEnable u0.word_0
/*! \brief Base register address of structure AQ_Phy10GBaseK_rPmdStatus_HHD */
#define AQ_Phy10GBaseK_rPmdStatus_HHD_baseRegisterAddress 0x0097
/*! \brief MMD address of structure AQ_Phy10GBaseK_rPmdStatus_HHD */
#define AQ_Phy10GBaseK_rPmdStatus_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure trainingFailure in AQ_Phy10GBaseK_rPmdStatus_HHD */
#define AQ_Phy10GBaseK_rPmdStatus_HHD_trainingFailure 0
/*! \brief Preprocessor variable to relate field to bit position in structure trainingFailure in AQ_Phy10GBaseK_rPmdStatus_HHD */
#define bits_AQ_Phy10GBaseK_rPmdStatus_HHD_trainingFailure u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure trainingFailure in AQ_Phy10GBaseK_rPmdStatus_HHD */
#define word_AQ_Phy10GBaseK_rPmdStatus_HHD_trainingFailure u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure start_upProtocolStatus in AQ_Phy10GBaseK_rPmdStatus_HHD */
#define AQ_Phy10GBaseK_rPmdStatus_HHD_start_upProtocolStatus 0
/*! \brief Preprocessor variable to relate field to bit position in structure start_upProtocolStatus in AQ_Phy10GBaseK_rPmdStatus_HHD */
#define bits_AQ_Phy10GBaseK_rPmdStatus_HHD_start_upProtocolStatus u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure start_upProtocolStatus in AQ_Phy10GBaseK_rPmdStatus_HHD */
#define word_AQ_Phy10GBaseK_rPmdStatus_HHD_start_upProtocolStatus u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure frameLock in AQ_Phy10GBaseK_rPmdStatus_HHD */
#define AQ_Phy10GBaseK_rPmdStatus_HHD_frameLock 0
/*! \brief Preprocessor variable to relate field to bit position in structure frameLock in AQ_Phy10GBaseK_rPmdStatus_HHD */
#define bits_AQ_Phy10GBaseK_rPmdStatus_HHD_frameLock u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure frameLock in AQ_Phy10GBaseK_rPmdStatus_HHD */
#define word_AQ_Phy10GBaseK_rPmdStatus_HHD_frameLock u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure receiverStatus in AQ_Phy10GBaseK_rPmdStatus_HHD */
#define AQ_Phy10GBaseK_rPmdStatus_HHD_receiverStatus 0
/*! \brief Preprocessor variable to relate field to bit position in structure receiverStatus in AQ_Phy10GBaseK_rPmdStatus_HHD */
#define bits_AQ_Phy10GBaseK_rPmdStatus_HHD_receiverStatus u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure receiverStatus in AQ_Phy10GBaseK_rPmdStatus_HHD */
#define word_AQ_Phy10GBaseK_rPmdStatus_HHD_receiverStatus u0.word_0
/*! \brief Base register address of structure AQ_TimesyncPmaCapability_HHD */
#define AQ_TimesyncPmaCapability_HHD_baseRegisterAddress 0x1800
/*! \brief MMD address of structure AQ_TimesyncPmaCapability_HHD */
#define AQ_TimesyncPmaCapability_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure timesyncTransmitPathDataDelay in AQ_TimesyncPmaCapability_HHD */
#define AQ_TimesyncPmaCapability_HHD_timesyncTransmitPathDataDelay 0
/*! \brief Preprocessor variable to relate field to bit position in structure timesyncTransmitPathDataDelay in AQ_TimesyncPmaCapability_HHD */
#define bits_AQ_TimesyncPmaCapability_HHD_timesyncTransmitPathDataDelay u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure timesyncTransmitPathDataDelay in AQ_TimesyncPmaCapability_HHD */
#define word_AQ_TimesyncPmaCapability_HHD_timesyncTransmitPathDataDelay u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure timesyncReceivePathDataDelay in AQ_TimesyncPmaCapability_HHD */
#define AQ_TimesyncPmaCapability_HHD_timesyncReceivePathDataDelay 0
/*! \brief Preprocessor variable to relate field to bit position in structure timesyncReceivePathDataDelay in AQ_TimesyncPmaCapability_HHD */
#define bits_AQ_TimesyncPmaCapability_HHD_timesyncReceivePathDataDelay u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure timesyncReceivePathDataDelay in AQ_TimesyncPmaCapability_HHD */
#define word_AQ_TimesyncPmaCapability_HHD_timesyncReceivePathDataDelay u0.word_0
/*! \brief Base register address of structure AQ_TimesyncPmaTransmitPathDataDelay_HHD */
#define AQ_TimesyncPmaTransmitPathDataDelay_HHD_baseRegisterAddress 0x1801
/*! \brief MMD address of structure AQ_TimesyncPmaTransmitPathDataDelay_HHD */
#define AQ_TimesyncPmaTransmitPathDataDelay_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure maximumPmaTransmitPathDataDelayLSW in AQ_TimesyncPmaTransmitPathDataDelay_HHD */
#define AQ_TimesyncPmaTransmitPathDataDelay_HHD_maximumPmaTransmitPathDataDelayLSW 0
/*! \brief Preprocessor variable to relate field to bit position in structure maximumPmaTransmitPathDataDelayLSW in AQ_TimesyncPmaTransmitPathDataDelay_HHD */
#define bits_AQ_TimesyncPmaTransmitPathDataDelay_HHD_maximumPmaTransmitPathDataDelayLSW u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure maximumPmaTransmitPathDataDelayLSW in AQ_TimesyncPmaTransmitPathDataDelay_HHD */
#define word_AQ_TimesyncPmaTransmitPathDataDelay_HHD_maximumPmaTransmitPathDataDelayLSW u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure maximumPmaTransmitPathDataDelayMSW in AQ_TimesyncPmaTransmitPathDataDelay_HHD */
#define AQ_TimesyncPmaTransmitPathDataDelay_HHD_maximumPmaTransmitPathDataDelayMSW 1
/*! \brief Preprocessor variable to relate field to bit position in structure maximumPmaTransmitPathDataDelayMSW in AQ_TimesyncPmaTransmitPathDataDelay_HHD */
#define bits_AQ_TimesyncPmaTransmitPathDataDelay_HHD_maximumPmaTransmitPathDataDelayMSW u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure maximumPmaTransmitPathDataDelayMSW in AQ_TimesyncPmaTransmitPathDataDelay_HHD */
#define word_AQ_TimesyncPmaTransmitPathDataDelay_HHD_maximumPmaTransmitPathDataDelayMSW u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure minimumPmaTransmitPathDataDelayLSW in AQ_TimesyncPmaTransmitPathDataDelay_HHD */
#define AQ_TimesyncPmaTransmitPathDataDelay_HHD_minimumPmaTransmitPathDataDelayLSW 2
/*! \brief Preprocessor variable to relate field to bit position in structure minimumPmaTransmitPathDataDelayLSW in AQ_TimesyncPmaTransmitPathDataDelay_HHD */
#define bits_AQ_TimesyncPmaTransmitPathDataDelay_HHD_minimumPmaTransmitPathDataDelayLSW u2.bits_2
/*! \brief Preprocessor variable to relate field to word position in structure minimumPmaTransmitPathDataDelayLSW in AQ_TimesyncPmaTransmitPathDataDelay_HHD */
#define word_AQ_TimesyncPmaTransmitPathDataDelay_HHD_minimumPmaTransmitPathDataDelayLSW u2.word_2
/*! \brief Preprocessor variable to relate field to word number in structure minimumPmaTransmitPathDataDelayMSW in AQ_TimesyncPmaTransmitPathDataDelay_HHD */
#define AQ_TimesyncPmaTransmitPathDataDelay_HHD_minimumPmaTransmitPathDataDelayMSW 3
/*! \brief Preprocessor variable to relate field to bit position in structure minimumPmaTransmitPathDataDelayMSW in AQ_TimesyncPmaTransmitPathDataDelay_HHD */
#define bits_AQ_TimesyncPmaTransmitPathDataDelay_HHD_minimumPmaTransmitPathDataDelayMSW u3.bits_3
/*! \brief Preprocessor variable to relate field to word position in structure minimumPmaTransmitPathDataDelayMSW in AQ_TimesyncPmaTransmitPathDataDelay_HHD */
#define word_AQ_TimesyncPmaTransmitPathDataDelay_HHD_minimumPmaTransmitPathDataDelayMSW u3.word_3
/*! \brief Base register address of structure AQ_TimesyncPmaReceivePathDataDelay_HHD */
#define AQ_TimesyncPmaReceivePathDataDelay_HHD_baseRegisterAddress 0x1805
/*! \brief MMD address of structure AQ_TimesyncPmaReceivePathDataDelay_HHD */
#define AQ_TimesyncPmaReceivePathDataDelay_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure maximumPmaReceivePathDataDelayLSW in AQ_TimesyncPmaReceivePathDataDelay_HHD */
#define AQ_TimesyncPmaReceivePathDataDelay_HHD_maximumPmaReceivePathDataDelayLSW 0
/*! \brief Preprocessor variable to relate field to bit position in structure maximumPmaReceivePathDataDelayLSW in AQ_TimesyncPmaReceivePathDataDelay_HHD */
#define bits_AQ_TimesyncPmaReceivePathDataDelay_HHD_maximumPmaReceivePathDataDelayLSW u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure maximumPmaReceivePathDataDelayLSW in AQ_TimesyncPmaReceivePathDataDelay_HHD */
#define word_AQ_TimesyncPmaReceivePathDataDelay_HHD_maximumPmaReceivePathDataDelayLSW u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure maximumPmaReceivePathDataDelayMSW in AQ_TimesyncPmaReceivePathDataDelay_HHD */
#define AQ_TimesyncPmaReceivePathDataDelay_HHD_maximumPmaReceivePathDataDelayMSW 1
/*! \brief Preprocessor variable to relate field to bit position in structure maximumPmaReceivePathDataDelayMSW in AQ_TimesyncPmaReceivePathDataDelay_HHD */
#define bits_AQ_TimesyncPmaReceivePathDataDelay_HHD_maximumPmaReceivePathDataDelayMSW u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure maximumPmaReceivePathDataDelayMSW in AQ_TimesyncPmaReceivePathDataDelay_HHD */
#define word_AQ_TimesyncPmaReceivePathDataDelay_HHD_maximumPmaReceivePathDataDelayMSW u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure minimumPmaReceivePathDataDelayLSW in AQ_TimesyncPmaReceivePathDataDelay_HHD */
#define AQ_TimesyncPmaReceivePathDataDelay_HHD_minimumPmaReceivePathDataDelayLSW 2
/*! \brief Preprocessor variable to relate field to bit position in structure minimumPmaReceivePathDataDelayLSW in AQ_TimesyncPmaReceivePathDataDelay_HHD */
#define bits_AQ_TimesyncPmaReceivePathDataDelay_HHD_minimumPmaReceivePathDataDelayLSW u2.bits_2
/*! \brief Preprocessor variable to relate field to word position in structure minimumPmaReceivePathDataDelayLSW in AQ_TimesyncPmaReceivePathDataDelay_HHD */
#define word_AQ_TimesyncPmaReceivePathDataDelay_HHD_minimumPmaReceivePathDataDelayLSW u2.word_2
/*! \brief Preprocessor variable to relate field to word number in structure minimumPmaReceivePathDataDelayMSW in AQ_TimesyncPmaReceivePathDataDelay_HHD */
#define AQ_TimesyncPmaReceivePathDataDelay_HHD_minimumPmaReceivePathDataDelayMSW 3
/*! \brief Preprocessor variable to relate field to bit position in structure minimumPmaReceivePathDataDelayMSW in AQ_TimesyncPmaReceivePathDataDelay_HHD */
#define bits_AQ_TimesyncPmaReceivePathDataDelay_HHD_minimumPmaReceivePathDataDelayMSW u3.bits_3
/*! \brief Preprocessor variable to relate field to word position in structure minimumPmaReceivePathDataDelayMSW in AQ_TimesyncPmaReceivePathDataDelay_HHD */
#define word_AQ_TimesyncPmaReceivePathDataDelay_HHD_minimumPmaReceivePathDataDelayMSW u3.word_3
/*! \brief Base register address of structure AQ_XenpakControl_HHD */
#define AQ_XenpakControl_HHD_baseRegisterAddress 0x8000
/*! \brief MMD address of structure AQ_XenpakControl_HHD */
#define AQ_XenpakControl_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure vendorSpecific in AQ_XenpakControl_HHD */
#define AQ_XenpakControl_HHD_vendorSpecific 0
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSpecific in AQ_XenpakControl_HHD */
#define bits_AQ_XenpakControl_HHD_vendorSpecific u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure vendorSpecific in AQ_XenpakControl_HHD */
#define word_AQ_XenpakControl_HHD_vendorSpecific u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure command in AQ_XenpakControl_HHD */
#define AQ_XenpakControl_HHD_command 0
/*! \brief Preprocessor variable to relate field to bit position in structure command in AQ_XenpakControl_HHD */
#define bits_AQ_XenpakControl_HHD_command u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure command in AQ_XenpakControl_HHD */
#define word_AQ_XenpakControl_HHD_command u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure commandStatus in AQ_XenpakControl_HHD */
#define AQ_XenpakControl_HHD_commandStatus 0
/*! \brief Preprocessor variable to relate field to bit position in structure commandStatus in AQ_XenpakControl_HHD */
#define bits_AQ_XenpakControl_HHD_commandStatus u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure commandStatus in AQ_XenpakControl_HHD */
#define word_AQ_XenpakControl_HHD_commandStatus u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure extendedCommands in AQ_XenpakControl_HHD */
#define AQ_XenpakControl_HHD_extendedCommands 0
/*! \brief Preprocessor variable to relate field to bit position in structure extendedCommands in AQ_XenpakControl_HHD */
#define bits_AQ_XenpakControl_HHD_extendedCommands u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure extendedCommands in AQ_XenpakControl_HHD */
#define word_AQ_XenpakControl_HHD_extendedCommands u0.word_0
/*! \brief Base register address of structure AQ_XenpakHeader_XenpakMsaVersionSupported_HHD */
#define AQ_XenpakHeader_XenpakMsaVersionSupported_HHD_baseRegisterAddress 0x8007
/*! \brief MMD address of structure AQ_XenpakHeader_XenpakMsaVersionSupported_HHD */
#define AQ_XenpakHeader_XenpakMsaVersionSupported_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure version in AQ_XenpakHeader_XenpakMsaVersionSupported_HHD */
#define AQ_XenpakHeader_XenpakMsaVersionSupported_HHD_version 0
/*! \brief Preprocessor variable to relate field to bit position in structure version in AQ_XenpakHeader_XenpakMsaVersionSupported_HHD */
#define bits_AQ_XenpakHeader_XenpakMsaVersionSupported_HHD_version u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure version in AQ_XenpakHeader_XenpakMsaVersionSupported_HHD */
#define word_AQ_XenpakHeader_XenpakMsaVersionSupported_HHD_version u0.word_0
/*! \brief Base register address of structure AQ_XenpakHeader_NvrSize_HHD */
#define AQ_XenpakHeader_NvrSize_HHD_baseRegisterAddress 0x8008
/*! \brief MMD address of structure AQ_XenpakHeader_NvrSize_HHD */
#define AQ_XenpakHeader_NvrSize_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure nvrSizeMSW in AQ_XenpakHeader_NvrSize_HHD */
#define AQ_XenpakHeader_NvrSize_HHD_nvrSizeMSW 0
/*! \brief Preprocessor variable to relate field to bit position in structure nvrSizeMSW in AQ_XenpakHeader_NvrSize_HHD */
#define bits_AQ_XenpakHeader_NvrSize_HHD_nvrSizeMSW u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure nvrSizeMSW in AQ_XenpakHeader_NvrSize_HHD */
#define word_AQ_XenpakHeader_NvrSize_HHD_nvrSizeMSW u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure nvrSizeLSW in AQ_XenpakHeader_NvrSize_HHD */
#define AQ_XenpakHeader_NvrSize_HHD_nvrSizeLSW 1
/*! \brief Preprocessor variable to relate field to bit position in structure nvrSizeLSW in AQ_XenpakHeader_NvrSize_HHD */
#define bits_AQ_XenpakHeader_NvrSize_HHD_nvrSizeLSW u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure nvrSizeLSW in AQ_XenpakHeader_NvrSize_HHD */
#define word_AQ_XenpakHeader_NvrSize_HHD_nvrSizeLSW u1.word_1
/*! \brief Base register address of structure AQ_XenpakHeader_MemoryUsed_HHD */
#define AQ_XenpakHeader_MemoryUsed_HHD_baseRegisterAddress 0x800A
/*! \brief MMD address of structure AQ_XenpakHeader_MemoryUsed_HHD */
#define AQ_XenpakHeader_MemoryUsed_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure memoryUsedMSW in AQ_XenpakHeader_MemoryUsed_HHD */
#define AQ_XenpakHeader_MemoryUsed_HHD_memoryUsedMSW 0
/*! \brief Preprocessor variable to relate field to bit position in structure memoryUsedMSW in AQ_XenpakHeader_MemoryUsed_HHD */
#define bits_AQ_XenpakHeader_MemoryUsed_HHD_memoryUsedMSW u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure memoryUsedMSW in AQ_XenpakHeader_MemoryUsed_HHD */
#define word_AQ_XenpakHeader_MemoryUsed_HHD_memoryUsedMSW u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure memoryUsedLSW in AQ_XenpakHeader_MemoryUsed_HHD */
#define AQ_XenpakHeader_MemoryUsed_HHD_memoryUsedLSW 1
/*! \brief Preprocessor variable to relate field to bit position in structure memoryUsedLSW in AQ_XenpakHeader_MemoryUsed_HHD */
#define bits_AQ_XenpakHeader_MemoryUsed_HHD_memoryUsedLSW u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure memoryUsedLSW in AQ_XenpakHeader_MemoryUsed_HHD */
#define word_AQ_XenpakHeader_MemoryUsed_HHD_memoryUsedLSW u1.word_1
/*! \brief Base register address of structure AQ_XenpakHeader_BasicMemoryStartAddress_HHD */
#define AQ_XenpakHeader_BasicMemoryStartAddress_HHD_baseRegisterAddress 0x800C
/*! \brief MMD address of structure AQ_XenpakHeader_BasicMemoryStartAddress_HHD */
#define AQ_XenpakHeader_BasicMemoryStartAddress_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure basicMemoryOffset in AQ_XenpakHeader_BasicMemoryStartAddress_HHD */
#define AQ_XenpakHeader_BasicMemoryStartAddress_HHD_basicMemoryOffset 0
/*! \brief Preprocessor variable to relate field to bit position in structure basicMemoryOffset in AQ_XenpakHeader_BasicMemoryStartAddress_HHD */
#define bits_AQ_XenpakHeader_BasicMemoryStartAddress_HHD_basicMemoryOffset u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure basicMemoryOffset in AQ_XenpakHeader_BasicMemoryStartAddress_HHD */
#define word_AQ_XenpakHeader_BasicMemoryStartAddress_HHD_basicMemoryOffset u0.word_0
/*! \brief Base register address of structure AQ_XenpakHeader_CustomerMemoryOffset_HHD */
#define AQ_XenpakHeader_CustomerMemoryOffset_HHD_baseRegisterAddress 0x800D
/*! \brief MMD address of structure AQ_XenpakHeader_CustomerMemoryOffset_HHD */
#define AQ_XenpakHeader_CustomerMemoryOffset_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure customerMemoryOffset in AQ_XenpakHeader_CustomerMemoryOffset_HHD */
#define AQ_XenpakHeader_CustomerMemoryOffset_HHD_customerMemoryOffset 0
/*! \brief Preprocessor variable to relate field to bit position in structure customerMemoryOffset in AQ_XenpakHeader_CustomerMemoryOffset_HHD */
#define bits_AQ_XenpakHeader_CustomerMemoryOffset_HHD_customerMemoryOffset u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure customerMemoryOffset in AQ_XenpakHeader_CustomerMemoryOffset_HHD */
#define word_AQ_XenpakHeader_CustomerMemoryOffset_HHD_customerMemoryOffset u0.word_0
/*! \brief Base register address of structure AQ_XenpakHeader_VendorMemoryStartAddress_HHD */
#define AQ_XenpakHeader_VendorMemoryStartAddress_HHD_baseRegisterAddress 0x800E
/*! \brief MMD address of structure AQ_XenpakHeader_VendorMemoryStartAddress_HHD */
#define AQ_XenpakHeader_VendorMemoryStartAddress_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure vendorMemoryOffset in AQ_XenpakHeader_VendorMemoryStartAddress_HHD */
#define AQ_XenpakHeader_VendorMemoryStartAddress_HHD_vendorMemoryOffset 0
/*! \brief Preprocessor variable to relate field to bit position in structure vendorMemoryOffset in AQ_XenpakHeader_VendorMemoryStartAddress_HHD */
#define bits_AQ_XenpakHeader_VendorMemoryStartAddress_HHD_vendorMemoryOffset u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure vendorMemoryOffset in AQ_XenpakHeader_VendorMemoryStartAddress_HHD */
#define word_AQ_XenpakHeader_VendorMemoryStartAddress_HHD_vendorMemoryOffset u0.word_0
/*! \brief Base register address of structure AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD */
#define AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD_baseRegisterAddress 0x800F
/*! \brief MMD address of structure AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD */
#define AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure extendedVendorOffsetLSW in AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD */
#define AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD_extendedVendorOffsetLSW 0
/*! \brief Preprocessor variable to relate field to bit position in structure extendedVendorOffsetLSW in AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD */
#define bits_AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD_extendedVendorOffsetLSW u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure extendedVendorOffsetLSW in AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD */
#define word_AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD_extendedVendorOffsetLSW u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure extendedVendorOffsetMSW in AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD */
#define AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD_extendedVendorOffsetMSW 1
/*! \brief Preprocessor variable to relate field to bit position in structure extendedVendorOffsetMSW in AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD */
#define bits_AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD_extendedVendorOffsetMSW u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure extendedVendorOffsetMSW in AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD */
#define word_AQ_XenpakHeader_ExtendedVendorMemoryOffset_HHD_extendedVendorOffsetMSW u1.word_1
/*! \brief Base register address of structure AQ_XenpakBasic_Reserved_0x11_HHD */
#define AQ_XenpakBasic_Reserved_0x11_HHD_baseRegisterAddress 0x8011
/*! \brief MMD address of structure AQ_XenpakBasic_Reserved_0x11_HHD */
#define AQ_XenpakBasic_Reserved_0x11_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x11 in AQ_XenpakBasic_Reserved_0x11_HHD */
#define AQ_XenpakBasic_Reserved_0x11_HHD_basicReserved_0x11 0
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x11 in AQ_XenpakBasic_Reserved_0x11_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x11_HHD_basicReserved_0x11 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x11 in AQ_XenpakBasic_Reserved_0x11_HHD */
#define word_AQ_XenpakBasic_Reserved_0x11_HHD_basicReserved_0x11 u0.word_0
/*! \brief Base register address of structure AQ_XenpakBasic_TransceiverType_HHD */
#define AQ_XenpakBasic_TransceiverType_HHD_baseRegisterAddress 0x8012
/*! \brief MMD address of structure AQ_XenpakBasic_TransceiverType_HHD */
#define AQ_XenpakBasic_TransceiverType_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure transceiverType in AQ_XenpakBasic_TransceiverType_HHD */
#define AQ_XenpakBasic_TransceiverType_HHD_transceiverType 0
/*! \brief Preprocessor variable to relate field to bit position in structure transceiverType in AQ_XenpakBasic_TransceiverType_HHD */
#define bits_AQ_XenpakBasic_TransceiverType_HHD_transceiverType u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure transceiverType in AQ_XenpakBasic_TransceiverType_HHD */
#define word_AQ_XenpakBasic_TransceiverType_HHD_transceiverType u0.word_0
/*! \brief Base register address of structure AQ_XenpakBasic_ConnectorType_HHD */
#define AQ_XenpakBasic_ConnectorType_HHD_baseRegisterAddress 0x8013
/*! \brief MMD address of structure AQ_XenpakBasic_ConnectorType_HHD */
#define AQ_XenpakBasic_ConnectorType_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure connectorType in AQ_XenpakBasic_ConnectorType_HHD */
#define AQ_XenpakBasic_ConnectorType_HHD_connectorType 0
/*! \brief Preprocessor variable to relate field to bit position in structure connectorType in AQ_XenpakBasic_ConnectorType_HHD */
#define bits_AQ_XenpakBasic_ConnectorType_HHD_connectorType u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure connectorType in AQ_XenpakBasic_ConnectorType_HHD */
#define word_AQ_XenpakBasic_ConnectorType_HHD_connectorType u0.word_0
/*! \brief Base register address of structure AQ_XenpakBasic_Encoding_HHD */
#define AQ_XenpakBasic_Encoding_HHD_baseRegisterAddress 0x8014
/*! \brief MMD address of structure AQ_XenpakBasic_Encoding_HHD */
#define AQ_XenpakBasic_Encoding_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure encoding in AQ_XenpakBasic_Encoding_HHD */
#define AQ_XenpakBasic_Encoding_HHD_encoding 0
/*! \brief Preprocessor variable to relate field to bit position in structure encoding in AQ_XenpakBasic_Encoding_HHD */
#define bits_AQ_XenpakBasic_Encoding_HHD_encoding u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure encoding in AQ_XenpakBasic_Encoding_HHD */
#define word_AQ_XenpakBasic_Encoding_HHD_encoding u0.word_0
/*! \brief Base register address of structure AQ_XenpakBasic_BitRate_HHD */
#define AQ_XenpakBasic_BitRate_HHD_baseRegisterAddress 0x8015
/*! \brief MMD address of structure AQ_XenpakBasic_BitRate_HHD */
#define AQ_XenpakBasic_BitRate_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure bitRateMSW in AQ_XenpakBasic_BitRate_HHD */
#define AQ_XenpakBasic_BitRate_HHD_bitRateMSW 0
/*! \brief Preprocessor variable to relate field to bit position in structure bitRateMSW in AQ_XenpakBasic_BitRate_HHD */
#define bits_AQ_XenpakBasic_BitRate_HHD_bitRateMSW u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure bitRateMSW in AQ_XenpakBasic_BitRate_HHD */
#define word_AQ_XenpakBasic_BitRate_HHD_bitRateMSW u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure bitRateLSW in AQ_XenpakBasic_BitRate_HHD */
#define AQ_XenpakBasic_BitRate_HHD_bitRateLSW 1
/*! \brief Preprocessor variable to relate field to bit position in structure bitRateLSW in AQ_XenpakBasic_BitRate_HHD */
#define bits_AQ_XenpakBasic_BitRate_HHD_bitRateLSW u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure bitRateLSW in AQ_XenpakBasic_BitRate_HHD */
#define word_AQ_XenpakBasic_BitRate_HHD_bitRateLSW u1.word_1
/*! \brief Base register address of structure AQ_XenpakBasic_Protocol_HHD */
#define AQ_XenpakBasic_Protocol_HHD_baseRegisterAddress 0x8017
/*! \brief MMD address of structure AQ_XenpakBasic_Protocol_HHD */
#define AQ_XenpakBasic_Protocol_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure protocol in AQ_XenpakBasic_Protocol_HHD */
#define AQ_XenpakBasic_Protocol_HHD_protocol 0
/*! \brief Preprocessor variable to relate field to bit position in structure protocol in AQ_XenpakBasic_Protocol_HHD */
#define bits_AQ_XenpakBasic_Protocol_HHD_protocol u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure protocol in AQ_XenpakBasic_Protocol_HHD */
#define word_AQ_XenpakBasic_Protocol_HHD_protocol u0.word_0
/*! \brief Base register address of structure AQ_XenpakBasic_StandardsComplianceCodes_HHD */
#define AQ_XenpakBasic_StandardsComplianceCodes_HHD_baseRegisterAddress 0x8018
/*! \brief MMD address of structure AQ_XenpakBasic_StandardsComplianceCodes_HHD */
#define AQ_XenpakBasic_StandardsComplianceCodes_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure standardCode in AQ_XenpakBasic_StandardsComplianceCodes_HHD */
#define AQ_XenpakBasic_StandardsComplianceCodes_HHD_standardCode 0
/*! \brief Preprocessor variable to relate field to bit position in structure standardCode in AQ_XenpakBasic_StandardsComplianceCodes_HHD */
#define bits_AQ_XenpakBasic_StandardsComplianceCodes_HHD_standardCode u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure standardCode in AQ_XenpakBasic_StandardsComplianceCodes_HHD */
#define word_AQ_XenpakBasic_StandardsComplianceCodes_HHD_standardCode u0.word_0
/*! \brief Base register address of structure AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_baseRegisterAddress 0x8019
/*! \brief MMD address of structure AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x19 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x19 0
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x19 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x19 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x19 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x19 u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x1a in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1a 1
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x1a in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1a u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x1a in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1a u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x1b in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1b 2
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x1b in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1b u2.bits_2
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x1b in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1b u2.word_2
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x1c in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1c 3
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x1c in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1c u3.bits_3
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x1c in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1c u3.word_3
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x1d in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1d 4
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x1d in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1d u4.bits_4
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x1d in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1d u4.word_4
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x1e in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1e 5
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x1e in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1e u5.bits_5
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x1e in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1e u5.word_5
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x1f in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1f 6
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x1f in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1f u6.bits_6
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x1f in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x1f u6.word_6
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x20 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x20 7
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x20 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x20 u7.bits_7
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x20 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x20 u7.word_7
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x21 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x21 8
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x21 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x21 u8.bits_8
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x21 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x21 u8.word_8
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x22 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x22 9
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x22 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x22 u9.bits_9
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x22 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x22 u9.word_9
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x23 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x23 10
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x23 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x23 u10.bits_10
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x23 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x23 u10.word_10
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x24 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x24 11
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x24 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x24 u11.bits_11
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x24 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x24 u11.word_11
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x25 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x25 12
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x25 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x25 u12.bits_12
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x25 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x25 u12.word_12
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x26 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x26 13
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x26 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x26 u13.bits_13
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x26 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x26 u13.word_13
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x27 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x27 14
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x27 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x27 u14.bits_14
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x27 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x27 u14.word_14
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x28 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x28 15
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x28 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x28 u15.bits_15
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x28 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x28 u15.word_15
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x29 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x29 16
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x29 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x29 u16.bits_16
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x29 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x29 u16.word_16
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x2a in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2a 17
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x2a in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2a u17.bits_17
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x2a in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2a u17.word_17
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x2b in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2b 18
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x2b in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2b u18.bits_18
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x2b in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2b u18.word_18
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x2c in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2c 19
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x2c in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2c u19.bits_19
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x2c in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2c u19.word_19
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x2d in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2d 20
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x2d in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2d u20.bits_20
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x2d in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2d u20.word_20
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x2e in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2e 21
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x2e in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2e u21.bits_21
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x2e in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2e u21.word_21
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x2f in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2f 22
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x2f in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2f u22.bits_22
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x2f in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x2f u22.word_22
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x30 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x30 23
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x30 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x30 u23.bits_23
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x30 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x30 u23.word_23
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x31 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x31 24
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x31 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x31 u24.bits_24
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x31 in AQ_XenpakBasic_Reserved_0x19_HHD */
#define word_AQ_XenpakBasic_Reserved_0x19_HHD_basicReserved_0x31 u24.word_24
/*! \brief Base register address of structure AQ_XenpakBasic_PackageIdentifier_HHD */
#define AQ_XenpakBasic_PackageIdentifier_HHD_baseRegisterAddress 0x8032
/*! \brief MMD address of structure AQ_XenpakBasic_PackageIdentifier_HHD */
#define AQ_XenpakBasic_PackageIdentifier_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure packageID_1 in AQ_XenpakBasic_PackageIdentifier_HHD */
#define AQ_XenpakBasic_PackageIdentifier_HHD_packageID_1 0
/*! \brief Preprocessor variable to relate field to bit position in structure packageID_1 in AQ_XenpakBasic_PackageIdentifier_HHD */
#define bits_AQ_XenpakBasic_PackageIdentifier_HHD_packageID_1 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure packageID_1 in AQ_XenpakBasic_PackageIdentifier_HHD */
#define word_AQ_XenpakBasic_PackageIdentifier_HHD_packageID_1 u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure packageID_2 in AQ_XenpakBasic_PackageIdentifier_HHD */
#define AQ_XenpakBasic_PackageIdentifier_HHD_packageID_2 1
/*! \brief Preprocessor variable to relate field to bit position in structure packageID_2 in AQ_XenpakBasic_PackageIdentifier_HHD */
#define bits_AQ_XenpakBasic_PackageIdentifier_HHD_packageID_2 u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure packageID_2 in AQ_XenpakBasic_PackageIdentifier_HHD */
#define word_AQ_XenpakBasic_PackageIdentifier_HHD_packageID_2 u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure packageID_3 in AQ_XenpakBasic_PackageIdentifier_HHD */
#define AQ_XenpakBasic_PackageIdentifier_HHD_packageID_3 2
/*! \brief Preprocessor variable to relate field to bit position in structure packageID_3 in AQ_XenpakBasic_PackageIdentifier_HHD */
#define bits_AQ_XenpakBasic_PackageIdentifier_HHD_packageID_3 u2.bits_2
/*! \brief Preprocessor variable to relate field to word position in structure packageID_3 in AQ_XenpakBasic_PackageIdentifier_HHD */
#define word_AQ_XenpakBasic_PackageIdentifier_HHD_packageID_3 u2.word_2
/*! \brief Preprocessor variable to relate field to word number in structure packageID_4 in AQ_XenpakBasic_PackageIdentifier_HHD */
#define AQ_XenpakBasic_PackageIdentifier_HHD_packageID_4 3
/*! \brief Preprocessor variable to relate field to bit position in structure packageID_4 in AQ_XenpakBasic_PackageIdentifier_HHD */
#define bits_AQ_XenpakBasic_PackageIdentifier_HHD_packageID_4 u3.bits_3
/*! \brief Preprocessor variable to relate field to word position in structure packageID_4 in AQ_XenpakBasic_PackageIdentifier_HHD */
#define word_AQ_XenpakBasic_PackageIdentifier_HHD_packageID_4 u3.word_3
/*! \brief Base register address of structure AQ_XenpakBasic_VendorIdentifier_HHD */
#define AQ_XenpakBasic_VendorIdentifier_HHD_baseRegisterAddress 0x8036
/*! \brief MMD address of structure AQ_XenpakBasic_VendorIdentifier_HHD */
#define AQ_XenpakBasic_VendorIdentifier_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure vendorID_1 in AQ_XenpakBasic_VendorIdentifier_HHD */
#define AQ_XenpakBasic_VendorIdentifier_HHD_vendorID_1 0
/*! \brief Preprocessor variable to relate field to bit position in structure vendorID_1 in AQ_XenpakBasic_VendorIdentifier_HHD */
#define bits_AQ_XenpakBasic_VendorIdentifier_HHD_vendorID_1 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure vendorID_1 in AQ_XenpakBasic_VendorIdentifier_HHD */
#define word_AQ_XenpakBasic_VendorIdentifier_HHD_vendorID_1 u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure vendorID_2 in AQ_XenpakBasic_VendorIdentifier_HHD */
#define AQ_XenpakBasic_VendorIdentifier_HHD_vendorID_2 1
/*! \brief Preprocessor variable to relate field to bit position in structure vendorID_2 in AQ_XenpakBasic_VendorIdentifier_HHD */
#define bits_AQ_XenpakBasic_VendorIdentifier_HHD_vendorID_2 u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure vendorID_2 in AQ_XenpakBasic_VendorIdentifier_HHD */
#define word_AQ_XenpakBasic_VendorIdentifier_HHD_vendorID_2 u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure vendorID_3 in AQ_XenpakBasic_VendorIdentifier_HHD */
#define AQ_XenpakBasic_VendorIdentifier_HHD_vendorID_3 2
/*! \brief Preprocessor variable to relate field to bit position in structure vendorID_3 in AQ_XenpakBasic_VendorIdentifier_HHD */
#define bits_AQ_XenpakBasic_VendorIdentifier_HHD_vendorID_3 u2.bits_2
/*! \brief Preprocessor variable to relate field to word position in structure vendorID_3 in AQ_XenpakBasic_VendorIdentifier_HHD */
#define word_AQ_XenpakBasic_VendorIdentifier_HHD_vendorID_3 u2.word_2
/*! \brief Preprocessor variable to relate field to word number in structure vendorID_4 in AQ_XenpakBasic_VendorIdentifier_HHD */
#define AQ_XenpakBasic_VendorIdentifier_HHD_vendorID_4 3
/*! \brief Preprocessor variable to relate field to bit position in structure vendorID_4 in AQ_XenpakBasic_VendorIdentifier_HHD */
#define bits_AQ_XenpakBasic_VendorIdentifier_HHD_vendorID_4 u3.bits_3
/*! \brief Preprocessor variable to relate field to word position in structure vendorID_4 in AQ_XenpakBasic_VendorIdentifier_HHD */
#define word_AQ_XenpakBasic_VendorIdentifier_HHD_vendorID_4 u3.word_3
/*! \brief Base register address of structure AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_baseRegisterAddress 0x803A
/*! \brief MMD address of structure AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_1 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_1 0
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_1 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_1 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_1 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_1 u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_2 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_2 1
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_2 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_2 u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_2 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_2 u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_3 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_3 2
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_3 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_3 u2.bits_2
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_3 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_3 u2.word_2
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_4 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_4 3
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_4 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_4 u3.bits_3
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_4 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_4 u3.word_3
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_5 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_5 4
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_5 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_5 u4.bits_4
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_5 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_5 u4.word_4
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_6 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_6 5
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_6 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_6 u5.bits_5
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_6 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_6 u5.word_5
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_7 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_7 6
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_7 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_7 u6.bits_6
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_7 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_7 u6.word_6
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_8 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_8 7
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_8 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_8 u7.bits_7
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_8 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_8 u7.word_7
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_9 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_9 8
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_9 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_9 u8.bits_8
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_9 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_9 u8.word_8
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_10 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_10 9
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_10 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_10 u9.bits_9
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_10 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_10 u9.word_9
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_11 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_11 10
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_11 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_11 u10.bits_10
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_11 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_11 u10.word_10
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_12 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_12 11
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_12 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_12 u11.bits_11
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_12 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_12 u11.word_11
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_13 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_13 12
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_13 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_13 u12.bits_12
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_13 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_13 u12.word_12
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_14 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_14 13
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_14 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_14 u13.bits_13
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_14 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_14 u13.word_13
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_15 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_15 14
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_15 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_15 u14.bits_14
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_15 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_15 u14.word_14
/*! \brief Preprocessor variable to relate field to word number in structure vendorName_16 in AQ_XenpakBasic_VendorName_HHD */
#define AQ_XenpakBasic_VendorName_HHD_vendorName_16 15
/*! \brief Preprocessor variable to relate field to bit position in structure vendorName_16 in AQ_XenpakBasic_VendorName_HHD */
#define bits_AQ_XenpakBasic_VendorName_HHD_vendorName_16 u15.bits_15
/*! \brief Preprocessor variable to relate field to word position in structure vendorName_16 in AQ_XenpakBasic_VendorName_HHD */
#define word_AQ_XenpakBasic_VendorName_HHD_vendorName_16 u15.word_15
/*! \brief Base register address of structure AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_baseRegisterAddress 0x804A
/*! \brief MMD address of structure AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_1 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_1 0
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_1 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_1 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_1 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_1 u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_2 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_2 1
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_2 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_2 u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_2 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_2 u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_3 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_3 2
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_3 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_3 u2.bits_2
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_3 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_3 u2.word_2
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_4 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_4 3
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_4 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_4 u3.bits_3
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_4 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_4 u3.word_3
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_5 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_5 4
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_5 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_5 u4.bits_4
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_5 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_5 u4.word_4
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_6 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_6 5
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_6 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_6 u5.bits_5
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_6 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_6 u5.word_5
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_7 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_7 6
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_7 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_7 u6.bits_6
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_7 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_7 u6.word_6
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_8 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_8 7
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_8 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_8 u7.bits_7
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_8 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_8 u7.word_7
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_9 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_9 8
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_9 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_9 u8.bits_8
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_9 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_9 u8.word_8
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_10 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_10 9
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_10 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_10 u9.bits_9
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_10 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_10 u9.word_9
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_11 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_11 10
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_11 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_11 u10.bits_10
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_11 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_11 u10.word_10
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_12 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_12 11
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_12 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_12 u11.bits_11
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_12 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_12 u11.word_11
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_13 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_13 12
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_13 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_13 u12.bits_12
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_13 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_13 u12.word_12
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_14 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_14 13
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_14 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_14 u13.bits_13
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_14 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_14 u13.word_13
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_15 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_15 14
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_15 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_15 u14.bits_14
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_15 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_15 u14.word_14
/*! \brief Preprocessor variable to relate field to word number in structure vendorPN_16 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_16 15
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPN_16 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_16 u15.bits_15
/*! \brief Preprocessor variable to relate field to word position in structure vendorPN_16 in AQ_XenpakBasic_VendorPartNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartNumber_HHD_vendorPN_16 u15.word_15
/*! \brief Base register address of structure AQ_XenpakBasic_VendorPartRevisionNumber_HHD */
#define AQ_XenpakBasic_VendorPartRevisionNumber_HHD_baseRegisterAddress 0x805A
/*! \brief MMD address of structure AQ_XenpakBasic_VendorPartRevisionNumber_HHD */
#define AQ_XenpakBasic_VendorPartRevisionNumber_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure vendorPartRN_1 in AQ_XenpakBasic_VendorPartRevisionNumber_HHD */
#define AQ_XenpakBasic_VendorPartRevisionNumber_HHD_vendorPartRN_1 0
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPartRN_1 in AQ_XenpakBasic_VendorPartRevisionNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartRevisionNumber_HHD_vendorPartRN_1 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure vendorPartRN_1 in AQ_XenpakBasic_VendorPartRevisionNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartRevisionNumber_HHD_vendorPartRN_1 u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure vendorPartRN_2 in AQ_XenpakBasic_VendorPartRevisionNumber_HHD */
#define AQ_XenpakBasic_VendorPartRevisionNumber_HHD_vendorPartRN_2 1
/*! \brief Preprocessor variable to relate field to bit position in structure vendorPartRN_2 in AQ_XenpakBasic_VendorPartRevisionNumber_HHD */
#define bits_AQ_XenpakBasic_VendorPartRevisionNumber_HHD_vendorPartRN_2 u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure vendorPartRN_2 in AQ_XenpakBasic_VendorPartRevisionNumber_HHD */
#define word_AQ_XenpakBasic_VendorPartRevisionNumber_HHD_vendorPartRN_2 u1.word_1
/*! \brief Base register address of structure AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_baseRegisterAddress 0x805C
/*! \brief MMD address of structure AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_1 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_1 0
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_1 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_1 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_1 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_1 u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_2 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_2 1
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_2 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_2 u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_2 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_2 u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_3 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_3 2
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_3 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_3 u2.bits_2
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_3 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_3 u2.word_2
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_4 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_4 3
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_4 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_4 u3.bits_3
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_4 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_4 u3.word_3
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_5 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_5 4
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_5 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_5 u4.bits_4
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_5 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_5 u4.word_4
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_6 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_6 5
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_6 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_6 u5.bits_5
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_6 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_6 u5.word_5
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_7 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_7 6
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_7 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_7 u6.bits_6
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_7 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_7 u6.word_6
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_8 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_8 7
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_8 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_8 u7.bits_7
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_8 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_8 u7.word_7
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_9 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_9 8
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_9 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_9 u8.bits_8
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_9 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_9 u8.word_8
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_10 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_10 9
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_10 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_10 u9.bits_9
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_10 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_10 u9.word_9
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_11 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_11 10
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_11 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_11 u10.bits_10
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_11 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_11 u10.word_10
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_12 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_12 11
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_12 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_12 u11.bits_11
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_12 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_12 u11.word_11
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_13 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_13 12
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_13 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_13 u12.bits_12
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_13 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_13 u12.word_12
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_14 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_14 13
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_14 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_14 u13.bits_13
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_14 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_14 u13.word_13
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_15 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_15 14
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_15 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_15 u14.bits_14
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_15 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_15 u14.word_14
/*! \brief Preprocessor variable to relate field to word number in structure vendorSN_16 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_16 15
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSN_16 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define bits_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_16 u15.bits_15
/*! \brief Preprocessor variable to relate field to word position in structure vendorSN_16 in AQ_XenpakBasic_VendorSerialNumber_HHD */
#define word_AQ_XenpakBasic_VendorSerialNumber_HHD_vendorSN_16 u15.word_15
/*! \brief Base register address of structure AQ_XenpakBasic_VendorDateCode_HHD */
#define AQ_XenpakBasic_VendorDateCode_HHD_baseRegisterAddress 0x806C
/*! \brief MMD address of structure AQ_XenpakBasic_VendorDateCode_HHD */
#define AQ_XenpakBasic_VendorDateCode_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure year_1 in AQ_XenpakBasic_VendorDateCode_HHD */
#define AQ_XenpakBasic_VendorDateCode_HHD_year_1 0
/*! \brief Preprocessor variable to relate field to bit position in structure year_1 in AQ_XenpakBasic_VendorDateCode_HHD */
#define bits_AQ_XenpakBasic_VendorDateCode_HHD_year_1 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure year_1 in AQ_XenpakBasic_VendorDateCode_HHD */
#define word_AQ_XenpakBasic_VendorDateCode_HHD_year_1 u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure year_2 in AQ_XenpakBasic_VendorDateCode_HHD */
#define AQ_XenpakBasic_VendorDateCode_HHD_year_2 1
/*! \brief Preprocessor variable to relate field to bit position in structure year_2 in AQ_XenpakBasic_VendorDateCode_HHD */
#define bits_AQ_XenpakBasic_VendorDateCode_HHD_year_2 u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure year_2 in AQ_XenpakBasic_VendorDateCode_HHD */
#define word_AQ_XenpakBasic_VendorDateCode_HHD_year_2 u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure year_3 in AQ_XenpakBasic_VendorDateCode_HHD */
#define AQ_XenpakBasic_VendorDateCode_HHD_year_3 2
/*! \brief Preprocessor variable to relate field to bit position in structure year_3 in AQ_XenpakBasic_VendorDateCode_HHD */
#define bits_AQ_XenpakBasic_VendorDateCode_HHD_year_3 u2.bits_2
/*! \brief Preprocessor variable to relate field to word position in structure year_3 in AQ_XenpakBasic_VendorDateCode_HHD */
#define word_AQ_XenpakBasic_VendorDateCode_HHD_year_3 u2.word_2
/*! \brief Preprocessor variable to relate field to word number in structure year_4 in AQ_XenpakBasic_VendorDateCode_HHD */
#define AQ_XenpakBasic_VendorDateCode_HHD_year_4 3
/*! \brief Preprocessor variable to relate field to bit position in structure year_4 in AQ_XenpakBasic_VendorDateCode_HHD */
#define bits_AQ_XenpakBasic_VendorDateCode_HHD_year_4 u3.bits_3
/*! \brief Preprocessor variable to relate field to word position in structure year_4 in AQ_XenpakBasic_VendorDateCode_HHD */
#define word_AQ_XenpakBasic_VendorDateCode_HHD_year_4 u3.word_3
/*! \brief Preprocessor variable to relate field to word number in structure month_1 in AQ_XenpakBasic_VendorDateCode_HHD */
#define AQ_XenpakBasic_VendorDateCode_HHD_month_1 4
/*! \brief Preprocessor variable to relate field to bit position in structure month_1 in AQ_XenpakBasic_VendorDateCode_HHD */
#define bits_AQ_XenpakBasic_VendorDateCode_HHD_month_1 u4.bits_4
/*! \brief Preprocessor variable to relate field to word position in structure month_1 in AQ_XenpakBasic_VendorDateCode_HHD */
#define word_AQ_XenpakBasic_VendorDateCode_HHD_month_1 u4.word_4
/*! \brief Preprocessor variable to relate field to word number in structure month_2 in AQ_XenpakBasic_VendorDateCode_HHD */
#define AQ_XenpakBasic_VendorDateCode_HHD_month_2 5
/*! \brief Preprocessor variable to relate field to bit position in structure month_2 in AQ_XenpakBasic_VendorDateCode_HHD */
#define bits_AQ_XenpakBasic_VendorDateCode_HHD_month_2 u5.bits_5
/*! \brief Preprocessor variable to relate field to word position in structure month_2 in AQ_XenpakBasic_VendorDateCode_HHD */
#define word_AQ_XenpakBasic_VendorDateCode_HHD_month_2 u5.word_5
/*! \brief Preprocessor variable to relate field to word number in structure day_1 in AQ_XenpakBasic_VendorDateCode_HHD */
#define AQ_XenpakBasic_VendorDateCode_HHD_day_1 6
/*! \brief Preprocessor variable to relate field to bit position in structure day_1 in AQ_XenpakBasic_VendorDateCode_HHD */
#define bits_AQ_XenpakBasic_VendorDateCode_HHD_day_1 u6.bits_6
/*! \brief Preprocessor variable to relate field to word position in structure day_1 in AQ_XenpakBasic_VendorDateCode_HHD */
#define word_AQ_XenpakBasic_VendorDateCode_HHD_day_1 u6.word_6
/*! \brief Preprocessor variable to relate field to word number in structure day_2 in AQ_XenpakBasic_VendorDateCode_HHD */
#define AQ_XenpakBasic_VendorDateCode_HHD_day_2 7
/*! \brief Preprocessor variable to relate field to bit position in structure day_2 in AQ_XenpakBasic_VendorDateCode_HHD */
#define bits_AQ_XenpakBasic_VendorDateCode_HHD_day_2 u7.bits_7
/*! \brief Preprocessor variable to relate field to word position in structure day_2 in AQ_XenpakBasic_VendorDateCode_HHD */
#define word_AQ_XenpakBasic_VendorDateCode_HHD_day_2 u7.word_7
/*! \brief Preprocessor variable to relate field to word number in structure lot_1 in AQ_XenpakBasic_VendorDateCode_HHD */
#define AQ_XenpakBasic_VendorDateCode_HHD_lot_1 8
/*! \brief Preprocessor variable to relate field to bit position in structure lot_1 in AQ_XenpakBasic_VendorDateCode_HHD */
#define bits_AQ_XenpakBasic_VendorDateCode_HHD_lot_1 u8.bits_8
/*! \brief Preprocessor variable to relate field to word position in structure lot_1 in AQ_XenpakBasic_VendorDateCode_HHD */
#define word_AQ_XenpakBasic_VendorDateCode_HHD_lot_1 u8.word_8
/*! \brief Preprocessor variable to relate field to word number in structure lot_2 in AQ_XenpakBasic_VendorDateCode_HHD */
#define AQ_XenpakBasic_VendorDateCode_HHD_lot_2 9
/*! \brief Preprocessor variable to relate field to bit position in structure lot_2 in AQ_XenpakBasic_VendorDateCode_HHD */
#define bits_AQ_XenpakBasic_VendorDateCode_HHD_lot_2 u9.bits_9
/*! \brief Preprocessor variable to relate field to word position in structure lot_2 in AQ_XenpakBasic_VendorDateCode_HHD */
#define word_AQ_XenpakBasic_VendorDateCode_HHD_lot_2 u9.word_9
/*! \brief Base register address of structure AQ_XenpakBasic__5vLoading_HHD */
#define AQ_XenpakBasic__5vLoading_HHD_baseRegisterAddress 0x8076
/*! \brief MMD address of structure AQ_XenpakBasic__5vLoading_HHD */
#define AQ_XenpakBasic__5vLoading_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure _5vLoading in AQ_XenpakBasic__5vLoading_HHD */
#define AQ_XenpakBasic__5vLoading_HHD__5vLoading 0
/*! \brief Preprocessor variable to relate field to bit position in structure _5vLoading in AQ_XenpakBasic__5vLoading_HHD */
#define bits_AQ_XenpakBasic__5vLoading_HHD__5vLoading u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure _5vLoading in AQ_XenpakBasic__5vLoading_HHD */
#define word_AQ_XenpakBasic__5vLoading_HHD__5vLoading u0.word_0
/*! \brief Base register address of structure AQ_XenpakBasic__3_3vLoading_HHD */
#define AQ_XenpakBasic__3_3vLoading_HHD_baseRegisterAddress 0x8077
/*! \brief MMD address of structure AQ_XenpakBasic__3_3vLoading_HHD */
#define AQ_XenpakBasic__3_3vLoading_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure _3_3vLoading in AQ_XenpakBasic__3_3vLoading_HHD */
#define AQ_XenpakBasic__3_3vLoading_HHD__3_3vLoading 0
/*! \brief Preprocessor variable to relate field to bit position in structure _3_3vLoading in AQ_XenpakBasic__3_3vLoading_HHD */
#define bits_AQ_XenpakBasic__3_3vLoading_HHD__3_3vLoading u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure _3_3vLoading in AQ_XenpakBasic__3_3vLoading_HHD */
#define word_AQ_XenpakBasic__3_3vLoading_HHD__3_3vLoading u0.word_0
/*! \brief Base register address of structure AQ_XenpakBasic_ApsLoading_HHD */
#define AQ_XenpakBasic_ApsLoading_HHD_baseRegisterAddress 0x8078
/*! \brief MMD address of structure AQ_XenpakBasic_ApsLoading_HHD */
#define AQ_XenpakBasic_ApsLoading_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure apsLoading in AQ_XenpakBasic_ApsLoading_HHD */
#define AQ_XenpakBasic_ApsLoading_HHD_apsLoading 0
/*! \brief Preprocessor variable to relate field to bit position in structure apsLoading in AQ_XenpakBasic_ApsLoading_HHD */
#define bits_AQ_XenpakBasic_ApsLoading_HHD_apsLoading u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure apsLoading in AQ_XenpakBasic_ApsLoading_HHD */
#define word_AQ_XenpakBasic_ApsLoading_HHD_apsLoading u0.word_0
/*! \brief Base register address of structure AQ_XenpakBasic_ApsVoltage_HHD */
#define AQ_XenpakBasic_ApsVoltage_HHD_baseRegisterAddress 0x8079
/*! \brief MMD address of structure AQ_XenpakBasic_ApsVoltage_HHD */
#define AQ_XenpakBasic_ApsVoltage_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure apsVoltage in AQ_XenpakBasic_ApsVoltage_HHD */
#define AQ_XenpakBasic_ApsVoltage_HHD_apsVoltage 0
/*! \brief Preprocessor variable to relate field to bit position in structure apsVoltage in AQ_XenpakBasic_ApsVoltage_HHD */
#define bits_AQ_XenpakBasic_ApsVoltage_HHD_apsVoltage u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure apsVoltage in AQ_XenpakBasic_ApsVoltage_HHD */
#define word_AQ_XenpakBasic_ApsVoltage_HHD_apsVoltage u0.word_0
/*! \brief Base register address of structure AQ_XenpakBasic_DomCapability_HHD */
#define AQ_XenpakBasic_DomCapability_HHD_baseRegisterAddress 0x807A
/*! \brief MMD address of structure AQ_XenpakBasic_DomCapability_HHD */
#define AQ_XenpakBasic_DomCapability_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure domControlCapability in AQ_XenpakBasic_DomCapability_HHD */
#define AQ_XenpakBasic_DomCapability_HHD_domControlCapability 0
/*! \brief Preprocessor variable to relate field to bit position in structure domControlCapability in AQ_XenpakBasic_DomCapability_HHD */
#define bits_AQ_XenpakBasic_DomCapability_HHD_domControlCapability u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure domControlCapability in AQ_XenpakBasic_DomCapability_HHD */
#define word_AQ_XenpakBasic_DomCapability_HHD_domControlCapability u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure domCapability in AQ_XenpakBasic_DomCapability_HHD */
#define AQ_XenpakBasic_DomCapability_HHD_domCapability 0
/*! \brief Preprocessor variable to relate field to bit position in structure domCapability in AQ_XenpakBasic_DomCapability_HHD */
#define bits_AQ_XenpakBasic_DomCapability_HHD_domCapability u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure domCapability in AQ_XenpakBasic_DomCapability_HHD */
#define word_AQ_XenpakBasic_DomCapability_HHD_domCapability u0.word_0
/*! \brief Base register address of structure AQ_XenpakBasic_Low_powerStartupCapability_HHD */
#define AQ_XenpakBasic_Low_powerStartupCapability_HHD_baseRegisterAddress 0x807B
/*! \brief MMD address of structure AQ_XenpakBasic_Low_powerStartupCapability_HHD */
#define AQ_XenpakBasic_Low_powerStartupCapability_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure lowPowerStart_upCapability in AQ_XenpakBasic_Low_powerStartupCapability_HHD */
#define AQ_XenpakBasic_Low_powerStartupCapability_HHD_lowPowerStart_upCapability 0
/*! \brief Preprocessor variable to relate field to bit position in structure lowPowerStart_upCapability in AQ_XenpakBasic_Low_powerStartupCapability_HHD */
#define bits_AQ_XenpakBasic_Low_powerStartupCapability_HHD_lowPowerStart_upCapability u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure lowPowerStart_upCapability in AQ_XenpakBasic_Low_powerStartupCapability_HHD */
#define word_AQ_XenpakBasic_Low_powerStartupCapability_HHD_lowPowerStart_upCapability u0.word_0
/*! \brief Base register address of structure AQ_XenpakBasic_Reserved_0x7c_HHD */
#define AQ_XenpakBasic_Reserved_0x7c_HHD_baseRegisterAddress 0x807C
/*! \brief MMD address of structure AQ_XenpakBasic_Reserved_0x7c_HHD */
#define AQ_XenpakBasic_Reserved_0x7c_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure basicReserved_0x7c in AQ_XenpakBasic_Reserved_0x7c_HHD */
#define AQ_XenpakBasic_Reserved_0x7c_HHD_basicReserved_0x7c 0
/*! \brief Preprocessor variable to relate field to bit position in structure basicReserved_0x7c in AQ_XenpakBasic_Reserved_0x7c_HHD */
#define bits_AQ_XenpakBasic_Reserved_0x7c_HHD_basicReserved_0x7c u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure basicReserved_0x7c in AQ_XenpakBasic_Reserved_0x7c_HHD */
#define word_AQ_XenpakBasic_Reserved_0x7c_HHD_basicReserved_0x7c u0.word_0
/*! \brief Base register address of structure AQ_XenpakBasic_Checksum_HHD */
#define AQ_XenpakBasic_Checksum_HHD_baseRegisterAddress 0x807D
/*! \brief MMD address of structure AQ_XenpakBasic_Checksum_HHD */
#define AQ_XenpakBasic_Checksum_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure checksum in AQ_XenpakBasic_Checksum_HHD */
#define AQ_XenpakBasic_Checksum_HHD_checksum 0
/*! \brief Preprocessor variable to relate field to bit position in structure checksum in AQ_XenpakBasic_Checksum_HHD */
#define bits_AQ_XenpakBasic_Checksum_HHD_checksum u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure checksum in AQ_XenpakBasic_Checksum_HHD */
#define word_AQ_XenpakBasic_Checksum_HHD_checksum u0.word_0
/*! \brief Base register address of structure AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_baseRegisterAddress 0x807E
/*! \brief MMD address of structure AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x7e in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x7e 0
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x7e in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x7e u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x7e in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x7e u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x7f in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x7f 1
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x7f in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x7f u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x7f in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x7f u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x80 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x80 2
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x80 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x80 u2.bits_2
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x80 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x80 u2.word_2
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x81 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x81 3
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x81 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x81 u3.bits_3
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x81 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x81 u3.word_3
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x82 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x82 4
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x82 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x82 u4.bits_4
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x82 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x82 u4.word_4
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x83 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x83 5
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x83 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x83 u5.bits_5
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x83 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x83 u5.word_5
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x84 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x84 6
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x84 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x84 u6.bits_6
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x84 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x84 u6.word_6
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x85 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x85 7
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x85 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x85 u7.bits_7
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x85 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x85 u7.word_7
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x86 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x86 8
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x86 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x86 u8.bits_8
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x86 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x86 u8.word_8
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x87 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x87 9
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x87 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x87 u9.bits_9
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x87 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x87 u9.word_9
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x88 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x88 10
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x88 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x88 u10.bits_10
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x88 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x88 u10.word_10
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x89 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x89 11
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x89 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x89 u11.bits_11
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x89 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x89 u11.word_11
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x8a in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8a 12
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x8a in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8a u12.bits_12
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x8a in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8a u12.word_12
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x8b in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8b 13
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x8b in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8b u13.bits_13
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x8b in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8b u13.word_13
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x8c in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8c 14
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x8c in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8c u14.bits_14
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x8c in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8c u14.word_14
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x8d in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8d 15
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x8d in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8d u15.bits_15
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x8d in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8d u15.word_15
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x8e in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8e 16
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x8e in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8e u16.bits_16
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x8e in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8e u16.word_16
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x8f in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8f 17
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x8f in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8f u17.bits_17
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x8f in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x8f u17.word_17
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x90 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x90 18
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x90 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x90 u18.bits_18
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x90 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x90 u18.word_18
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x91 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x91 19
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x91 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x91 u19.bits_19
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x91 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x91 u19.word_19
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x92 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x92 20
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x92 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x92 u20.bits_20
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x92 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x92 u20.word_20
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x93 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x93 21
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x93 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x93 u21.bits_21
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x93 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x93 u21.word_21
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x94 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x94 22
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x94 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x94 u22.bits_22
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x94 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x94 u22.word_22
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x95 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x95 23
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x95 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x95 u23.bits_23
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x95 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x95 u23.word_23
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x96 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x96 24
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x96 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x96 u24.bits_24
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x96 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x96 u24.word_24
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x97 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x97 25
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x97 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x97 u25.bits_25
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x97 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x97 u25.word_25
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x98 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x98 26
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x98 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x98 u26.bits_26
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x98 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x98 u26.word_26
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x99 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x99 27
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x99 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x99 u27.bits_27
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x99 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x99 u27.word_27
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x9a in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9a 28
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x9a in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9a u28.bits_28
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x9a in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9a u28.word_28
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x9b in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9b 29
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x9b in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9b u29.bits_29
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x9b in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9b u29.word_29
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x9c in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9c 30
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x9c in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9c u30.bits_30
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x9c in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9c u30.word_30
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x9d in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9d 31
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x9d in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9d u31.bits_31
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x9d in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9d u31.word_31
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x9e in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9e 32
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x9e in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9e u32.bits_32
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x9e in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9e u32.word_32
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0x9f in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9f 33
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0x9f in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9f u33.bits_33
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0x9f in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0x9f u33.word_33
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0xa0 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa0 34
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0xa0 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa0 u34.bits_34
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0xa0 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa0 u34.word_34
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0xa1 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa1 35
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0xa1 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa1 u35.bits_35
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0xa1 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa1 u35.word_35
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0xa2 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa2 36
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0xa2 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa2 u36.bits_36
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0xa2 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa2 u36.word_36
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0xa3 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa3 37
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0xa3 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa3 u37.bits_37
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0xa3 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa3 u37.word_37
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0xa4 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa4 38
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0xa4 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa4 u38.bits_38
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0xa4 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa4 u38.word_38
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0xa5 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa5 39
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0xa5 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa5 u39.bits_39
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0xa5 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa5 u39.word_39
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0xa6 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa6 40
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0xa6 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa6 u40.bits_40
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0xa6 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa6 u40.word_40
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0xa7 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa7 41
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0xa7 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa7 u41.bits_41
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0xa7 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa7 u41.word_41
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0xa8 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa8 42
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0xa8 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa8 u42.bits_42
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0xa8 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa8 u42.word_42
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0xa9 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa9 43
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0xa9 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa9 u43.bits_43
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0xa9 in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xa9 u43.word_43
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0xaa in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xaa 44
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0xaa in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xaa u44.bits_44
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0xaa in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xaa u44.word_44
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0xab in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xab 45
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0xab in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xab u45.bits_45
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0xab in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xab u45.word_45
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0xac in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xac 46
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0xac in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xac u46.bits_46
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0xac in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xac u46.word_46
/*! \brief Preprocessor variable to relate field to word number in structure customerReserved_0xad in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xad 47
/*! \brief Preprocessor variable to relate field to bit position in structure customerReserved_0xad in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define bits_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xad u47.bits_47
/*! \brief Preprocessor variable to relate field to word position in structure customerReserved_0xad in AQ_XenpakCustomer_Reserved_0x7e_HHD */
#define word_AQ_XenpakCustomer_Reserved_0x7e_HHD_customerReserved_0xad u47.word_47
/*! \brief Base register address of structure AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_baseRegisterAddress 0x80AE
/*! \brief MMD address of structure AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xae in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xae 0
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xae in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xae u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xae in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xae u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xaf in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xaf 1
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xaf in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xaf u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xaf in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xaf u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xbo in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbo 2
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xbo in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbo u2.bits_2
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xbo in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbo u2.word_2
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xb1 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb1 3
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xb1 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb1 u3.bits_3
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xb1 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb1 u3.word_3
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xb2 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb2 4
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xb2 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb2 u4.bits_4
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xb2 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb2 u4.word_4
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xb3 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb3 5
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xb3 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb3 u5.bits_5
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xb3 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb3 u5.word_5
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xb4 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb4 6
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xb4 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb4 u6.bits_6
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xb4 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb4 u6.word_6
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xb5 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb5 7
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xb5 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb5 u7.bits_7
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xb5 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb5 u7.word_7
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xb6 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb6 8
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xb6 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb6 u8.bits_8
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xb6 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb6 u8.word_8
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xb7 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb7 9
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xb7 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb7 u9.bits_9
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xb7 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb7 u9.word_9
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xb8 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb8 10
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xb8 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb8 u10.bits_10
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xb8 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb8 u10.word_10
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xb9 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb9 11
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xb9 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb9 u11.bits_11
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xb9 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xb9 u11.word_11
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xba in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xba 12
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xba in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xba u12.bits_12
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xba in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xba u12.word_12
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xbb in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbb 13
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xbb in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbb u13.bits_13
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xbb in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbb u13.word_13
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xbc in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbc 14
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xbc in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbc u14.bits_14
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xbc in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbc u14.word_14
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xbd in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbd 15
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xbd in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbd u15.bits_15
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xbd in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbd u15.word_15
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xbe in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbe 16
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xbe in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbe u16.bits_16
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xbe in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbe u16.word_16
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xbf in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbf 17
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xbf in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbf u17.bits_17
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xbf in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xbf u17.word_17
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xc0 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc0 18
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xc0 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc0 u18.bits_18
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xc0 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc0 u18.word_18
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xc1 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc1 19
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xc1 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc1 u19.bits_19
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xc1 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc1 u19.word_19
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xc2 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc2 20
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xc2 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc2 u20.bits_20
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xc2 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc2 u20.word_20
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xc3 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc3 21
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xc3 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc3 u21.bits_21
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xc3 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc3 u21.word_21
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xc4 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc4 22
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xc4 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc4 u22.bits_22
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xc4 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc4 u22.word_22
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xc5 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc5 23
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xc5 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc5 u23.bits_23
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xc5 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc5 u23.word_23
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xc6 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc6 24
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xc6 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc6 u24.bits_24
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xc6 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc6 u24.word_24
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xc7 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc7 25
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xc7 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc7 u25.bits_25
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xc7 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc7 u25.word_25
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xc8 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc8 26
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xc8 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc8 u26.bits_26
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xc8 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc8 u26.word_26
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xc9 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc9 27
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xc9 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc9 u27.bits_27
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xc9 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xc9 u27.word_27
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xca in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xca 28
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xca in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xca u28.bits_28
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xca in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xca u28.word_28
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xcb in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xcb 29
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xcb in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xcb u29.bits_29
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xcb in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xcb u29.word_29
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xcc in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xcc 30
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xcc in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xcc u30.bits_30
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xcc in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xcc u30.word_30
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xcd in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xcd 31
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xcd in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xcd u31.bits_31
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xcd in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xcd u31.word_31
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xce in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xce 32
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xce in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xce u32.bits_32
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xce in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xce u32.word_32
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xcf in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xcf 33
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xcf in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xcf u33.bits_33
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xcf in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xcf u33.word_33
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xd0 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd0 34
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xd0 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd0 u34.bits_34
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xd0 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd0 u34.word_34
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xd1 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd1 35
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xd1 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd1 u35.bits_35
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xd1 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd1 u35.word_35
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xd2 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd2 36
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xd2 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd2 u36.bits_36
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xd2 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd2 u36.word_36
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xd3 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd3 37
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xd3 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd3 u37.bits_37
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xd3 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd3 u37.word_37
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xd4 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd4 38
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xd4 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd4 u38.bits_38
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xd4 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd4 u38.word_38
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xd5 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd5 39
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xd5 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd5 u39.bits_39
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xd5 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd5 u39.word_39
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xd6 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd6 40
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xd6 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd6 u40.bits_40
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xd6 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd6 u40.word_40
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xd7 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd7 41
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xd7 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd7 u41.bits_41
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xd7 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd7 u41.word_41
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xd8 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd8 42
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xd8 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd8 u42.bits_42
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xd8 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd8 u42.word_42
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xd9 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd9 43
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xd9 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd9 u43.bits_43
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xd9 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xd9 u43.word_43
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xda in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xda 44
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xda in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xda u44.bits_44
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xda in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xda u44.word_44
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xdb in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xdb 45
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xdb in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xdb u45.bits_45
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xdb in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xdb u45.word_45
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xdc in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xdc 46
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xdc in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xdc u46.bits_46
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xdc in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xdc u46.word_46
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xdd in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xdd 47
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xdd in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xdd u47.bits_47
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xdd in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xdd u47.word_47
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xde in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xde 48
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xde in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xde u48.bits_48
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xde in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xde u48.word_48
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xdf in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xdf 49
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xdf in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xdf u49.bits_49
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xdf in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xdf u49.word_49
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xe0 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe0 50
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xe0 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe0 u50.bits_50
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xe0 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe0 u50.word_50
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xe1 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe1 51
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xe1 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe1 u51.bits_51
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xe1 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe1 u51.word_51
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xe2 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe2 52
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xe2 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe2 u52.bits_52
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xe2 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe2 u52.word_52
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xe3 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe3 53
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xe3 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe3 u53.bits_53
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xe3 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe3 u53.word_53
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xe4 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe4 54
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xe4 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe4 u54.bits_54
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xe4 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe4 u54.word_54
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xe5 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe5 55
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xe5 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe5 u55.bits_55
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xe5 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe5 u55.word_55
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xe6 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe6 56
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xe6 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe6 u56.bits_56
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xe6 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe6 u56.word_56
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xe7 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe7 57
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xe7 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe7 u57.bits_57
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xe7 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe7 u57.word_57
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xe8 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe8 58
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xe8 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe8 u58.bits_58
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xe8 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe8 u58.word_58
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xe9 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe9 59
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xe9 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe9 u59.bits_59
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xe9 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xe9 u59.word_59
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xea in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xea 60
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xea in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xea u60.bits_60
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xea in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xea u60.word_60
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xeb in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xeb 61
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xeb in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xeb u61.bits_61
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xeb in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xeb u61.word_61
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xec in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xec 62
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xec in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xec u62.bits_62
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xec in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xec u62.word_62
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xed in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xed 63
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xed in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xed u63.bits_63
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xed in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xed u63.word_63
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xee in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xee 64
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xee in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xee u64.bits_64
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xee in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xee u64.word_64
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xef in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xef 65
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xef in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xef u65.bits_65
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xef in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xef u65.word_65
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xf0 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf0 66
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xf0 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf0 u66.bits_66
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xf0 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf0 u66.word_66
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xf1 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf1 67
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xf1 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf1 u67.bits_67
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xf1 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf1 u67.word_67
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xf2 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf2 68
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xf2 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf2 u68.bits_68
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xf2 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf2 u68.word_68
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xf3 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf3 69
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xf3 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf3 u69.bits_69
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xf3 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf3 u69.word_69
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xf4 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf4 70
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xf4 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf4 u70.bits_70
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xf4 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf4 u70.word_70
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xf5 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf5 71
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xf5 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf5 u71.bits_71
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xf5 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf5 u71.word_71
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xf6 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf6 72
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xf6 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf6 u72.bits_72
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xf6 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf6 u72.word_72
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xf7 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf7 73
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xf7 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf7 u73.bits_73
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xf7 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf7 u73.word_73
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xf8 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf8 74
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xf8 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf8 u74.bits_74
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xf8 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf8 u74.word_74
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xf9 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf9 75
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xf9 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf9 u75.bits_75
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xf9 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xf9 u75.word_75
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xfa in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xfa 76
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xfa in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xfa u76.bits_76
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xfa in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xfa u76.word_76
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xfb in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xfb 77
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xfb in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xfb u77.bits_77
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xfb in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xfb u77.word_77
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xfc in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xfc 78
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xfc in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xfc u78.bits_78
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xfc in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xfc u78.word_78
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xfd in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xfd 79
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xfd in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xfd u79.bits_79
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xfd in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xfd u79.word_79
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xfe in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xfe 80
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xfe in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xfe u80.bits_80
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xfe in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xfe u80.word_80
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0xff in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xff 81
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0xff in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xff u81.bits_81
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0xff in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0xff u81.word_81
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0x100 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x100 82
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0x100 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x100 u82.bits_82
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0x100 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x100 u82.word_82
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0x101 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x101 83
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0x101 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x101 u83.bits_83
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0x101 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x101 u83.word_83
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0x102 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x102 84
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0x102 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x102 u84.bits_84
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0x102 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x102 u84.word_84
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0x103 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x103 85
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0x103 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x103 u85.bits_85
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0x103 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x103 u85.word_85
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0x104 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x104 86
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0x104 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x104 u86.bits_86
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0x104 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x104 u86.word_86
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0x105 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x105 87
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0x105 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x105 u87.bits_87
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0x105 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x105 u87.word_87
/*! \brief Preprocessor variable to relate field to word number in structure vendorReserved_0x106 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x106 88
/*! \brief Preprocessor variable to relate field to bit position in structure vendorReserved_0x106 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define bits_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x106 u88.bits_88
/*! \brief Preprocessor variable to relate field to word position in structure vendorReserved_0x106 in AQ_XenpakVendor_Reserved_0xae_HHD */
#define word_AQ_XenpakVendor_Reserved_0xae_HHD_vendorReserved_0x106 u88.word_88
/*! \brief Base register address of structure AQ_XenpakRxAlarm_Control_HHD */
#define AQ_XenpakRxAlarm_Control_HHD_baseRegisterAddress 0x9000
/*! \brief MMD address of structure AQ_XenpakRxAlarm_Control_HHD */
#define AQ_XenpakRxAlarm_Control_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure reserved_1 in AQ_XenpakRxAlarm_Control_HHD */
#define AQ_XenpakRxAlarm_Control_HHD_reserved_1 0
/*! \brief Preprocessor variable to relate field to bit position in structure reserved_1 in AQ_XenpakRxAlarm_Control_HHD */
#define bits_AQ_XenpakRxAlarm_Control_HHD_reserved_1 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure reserved_1 in AQ_XenpakRxAlarm_Control_HHD */
#define word_AQ_XenpakRxAlarm_Control_HHD_reserved_1 u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmaReceiveFaultEnable in AQ_XenpakRxAlarm_Control_HHD */
#define AQ_XenpakRxAlarm_Control_HHD_pmaReceiveFaultEnable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmaReceiveFaultEnable in AQ_XenpakRxAlarm_Control_HHD */
#define bits_AQ_XenpakRxAlarm_Control_HHD_pmaReceiveFaultEnable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmaReceiveFaultEnable in AQ_XenpakRxAlarm_Control_HHD */
#define word_AQ_XenpakRxAlarm_Control_HHD_pmaReceiveFaultEnable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pcsReceiveFaultEnable in AQ_XenpakRxAlarm_Control_HHD */
#define AQ_XenpakRxAlarm_Control_HHD_pcsReceiveFaultEnable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pcsReceiveFaultEnable in AQ_XenpakRxAlarm_Control_HHD */
#define bits_AQ_XenpakRxAlarm_Control_HHD_pcsReceiveFaultEnable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pcsReceiveFaultEnable in AQ_XenpakRxAlarm_Control_HHD */
#define word_AQ_XenpakRxAlarm_Control_HHD_pcsReceiveFaultEnable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure phyXS_ReceiveFaultEnable in AQ_XenpakRxAlarm_Control_HHD */
#define AQ_XenpakRxAlarm_Control_HHD_phyXS_ReceiveFaultEnable 0
/*! \brief Preprocessor variable to relate field to bit position in structure phyXS_ReceiveFaultEnable in AQ_XenpakRxAlarm_Control_HHD */
#define bits_AQ_XenpakRxAlarm_Control_HHD_phyXS_ReceiveFaultEnable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure phyXS_ReceiveFaultEnable in AQ_XenpakRxAlarm_Control_HHD */
#define word_AQ_XenpakRxAlarm_Control_HHD_phyXS_ReceiveFaultEnable u0.word_0
/*! \brief Base register address of structure AQ_XenpakTxAlarm_Control_HHD */
#define AQ_XenpakTxAlarm_Control_HHD_baseRegisterAddress 0x9001
/*! \brief MMD address of structure AQ_XenpakTxAlarm_Control_HHD */
#define AQ_XenpakTxAlarm_Control_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure temperatureFaultEnable in AQ_XenpakTxAlarm_Control_HHD */
#define AQ_XenpakTxAlarm_Control_HHD_temperatureFaultEnable 0
/*! \brief Preprocessor variable to relate field to bit position in structure temperatureFaultEnable in AQ_XenpakTxAlarm_Control_HHD */
#define bits_AQ_XenpakTxAlarm_Control_HHD_temperatureFaultEnable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure temperatureFaultEnable in AQ_XenpakTxAlarm_Control_HHD */
#define word_AQ_XenpakTxAlarm_Control_HHD_temperatureFaultEnable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure reserved_1 in AQ_XenpakTxAlarm_Control_HHD */
#define AQ_XenpakTxAlarm_Control_HHD_reserved_1 0
/*! \brief Preprocessor variable to relate field to bit position in structure reserved_1 in AQ_XenpakTxAlarm_Control_HHD */
#define bits_AQ_XenpakTxAlarm_Control_HHD_reserved_1 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure reserved_1 in AQ_XenpakTxAlarm_Control_HHD */
#define word_AQ_XenpakTxAlarm_Control_HHD_reserved_1 u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmaTransmitFaultEnable in AQ_XenpakTxAlarm_Control_HHD */
#define AQ_XenpakTxAlarm_Control_HHD_pmaTransmitFaultEnable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmaTransmitFaultEnable in AQ_XenpakTxAlarm_Control_HHD */
#define bits_AQ_XenpakTxAlarm_Control_HHD_pmaTransmitFaultEnable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmaTransmitFaultEnable in AQ_XenpakTxAlarm_Control_HHD */
#define word_AQ_XenpakTxAlarm_Control_HHD_pmaTransmitFaultEnable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pcsTransmitFaultEnable in AQ_XenpakTxAlarm_Control_HHD */
#define AQ_XenpakTxAlarm_Control_HHD_pcsTransmitFaultEnable 0
/*! \brief Preprocessor variable to relate field to bit position in structure pcsTransmitFaultEnable in AQ_XenpakTxAlarm_Control_HHD */
#define bits_AQ_XenpakTxAlarm_Control_HHD_pcsTransmitFaultEnable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pcsTransmitFaultEnable in AQ_XenpakTxAlarm_Control_HHD */
#define word_AQ_XenpakTxAlarm_Control_HHD_pcsTransmitFaultEnable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure phyXS_TransmitFaultEnable in AQ_XenpakTxAlarm_Control_HHD */
#define AQ_XenpakTxAlarm_Control_HHD_phyXS_TransmitFaultEnable 0
/*! \brief Preprocessor variable to relate field to bit position in structure phyXS_TransmitFaultEnable in AQ_XenpakTxAlarm_Control_HHD */
#define bits_AQ_XenpakTxAlarm_Control_HHD_phyXS_TransmitFaultEnable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure phyXS_TransmitFaultEnable in AQ_XenpakTxAlarm_Control_HHD */
#define word_AQ_XenpakTxAlarm_Control_HHD_phyXS_TransmitFaultEnable u0.word_0
/*! \brief Base register address of structure AQ_XenpakLASI__Control_HHD */
#define AQ_XenpakLASI__Control_HHD_baseRegisterAddress 0x9002
/*! \brief MMD address of structure AQ_XenpakLASI__Control_HHD */
#define AQ_XenpakLASI__Control_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure rxAlarmEnable in AQ_XenpakLASI__Control_HHD */
#define AQ_XenpakLASI__Control_HHD_rxAlarmEnable 0
/*! \brief Preprocessor variable to relate field to bit position in structure rxAlarmEnable in AQ_XenpakLASI__Control_HHD */
#define bits_AQ_XenpakLASI__Control_HHD_rxAlarmEnable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure rxAlarmEnable in AQ_XenpakLASI__Control_HHD */
#define word_AQ_XenpakLASI__Control_HHD_rxAlarmEnable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure txAlarmEnable in AQ_XenpakLASI__Control_HHD */
#define AQ_XenpakLASI__Control_HHD_txAlarmEnable 0
/*! \brief Preprocessor variable to relate field to bit position in structure txAlarmEnable in AQ_XenpakLASI__Control_HHD */
#define bits_AQ_XenpakLASI__Control_HHD_txAlarmEnable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure txAlarmEnable in AQ_XenpakLASI__Control_HHD */
#define word_AQ_XenpakLASI__Control_HHD_txAlarmEnable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure linkStatusAlarmEnable in AQ_XenpakLASI__Control_HHD */
#define AQ_XenpakLASI__Control_HHD_linkStatusAlarmEnable 0
/*! \brief Preprocessor variable to relate field to bit position in structure linkStatusAlarmEnable in AQ_XenpakLASI__Control_HHD */
#define bits_AQ_XenpakLASI__Control_HHD_linkStatusAlarmEnable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure linkStatusAlarmEnable in AQ_XenpakLASI__Control_HHD */
#define word_AQ_XenpakLASI__Control_HHD_linkStatusAlarmEnable u0.word_0
/*! \brief Base register address of structure AQ_XenpakRxAlarm_Status_HHD */
#define AQ_XenpakRxAlarm_Status_HHD_baseRegisterAddress 0x9003
/*! \brief MMD address of structure AQ_XenpakRxAlarm_Status_HHD */
#define AQ_XenpakRxAlarm_Status_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure reserved_1 in AQ_XenpakRxAlarm_Status_HHD */
#define AQ_XenpakRxAlarm_Status_HHD_reserved_1 0
/*! \brief Preprocessor variable to relate field to bit position in structure reserved_1 in AQ_XenpakRxAlarm_Status_HHD */
#define bits_AQ_XenpakRxAlarm_Status_HHD_reserved_1 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure reserved_1 in AQ_XenpakRxAlarm_Status_HHD */
#define word_AQ_XenpakRxAlarm_Status_HHD_reserved_1 u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmaReceiveFault in AQ_XenpakRxAlarm_Status_HHD */
#define AQ_XenpakRxAlarm_Status_HHD_pmaReceiveFault 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmaReceiveFault in AQ_XenpakRxAlarm_Status_HHD */
#define bits_AQ_XenpakRxAlarm_Status_HHD_pmaReceiveFault u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmaReceiveFault in AQ_XenpakRxAlarm_Status_HHD */
#define word_AQ_XenpakRxAlarm_Status_HHD_pmaReceiveFault u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pcsReceiveFault in AQ_XenpakRxAlarm_Status_HHD */
#define AQ_XenpakRxAlarm_Status_HHD_pcsReceiveFault 0
/*! \brief Preprocessor variable to relate field to bit position in structure pcsReceiveFault in AQ_XenpakRxAlarm_Status_HHD */
#define bits_AQ_XenpakRxAlarm_Status_HHD_pcsReceiveFault u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pcsReceiveFault in AQ_XenpakRxAlarm_Status_HHD */
#define word_AQ_XenpakRxAlarm_Status_HHD_pcsReceiveFault u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure phyXS_ReceiveFault in AQ_XenpakRxAlarm_Status_HHD */
#define AQ_XenpakRxAlarm_Status_HHD_phyXS_ReceiveFault 0
/*! \brief Preprocessor variable to relate field to bit position in structure phyXS_ReceiveFault in AQ_XenpakRxAlarm_Status_HHD */
#define bits_AQ_XenpakRxAlarm_Status_HHD_phyXS_ReceiveFault u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure phyXS_ReceiveFault in AQ_XenpakRxAlarm_Status_HHD */
#define word_AQ_XenpakRxAlarm_Status_HHD_phyXS_ReceiveFault u0.word_0
/*! \brief Base register address of structure AQ_XenpakTxAlarm_Status_HHD */
#define AQ_XenpakTxAlarm_Status_HHD_baseRegisterAddress 0x9004
/*! \brief MMD address of structure AQ_XenpakTxAlarm_Status_HHD */
#define AQ_XenpakTxAlarm_Status_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure temperatureFault in AQ_XenpakTxAlarm_Status_HHD */
#define AQ_XenpakTxAlarm_Status_HHD_temperatureFault 0
/*! \brief Preprocessor variable to relate field to bit position in structure temperatureFault in AQ_XenpakTxAlarm_Status_HHD */
#define bits_AQ_XenpakTxAlarm_Status_HHD_temperatureFault u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure temperatureFault in AQ_XenpakTxAlarm_Status_HHD */
#define word_AQ_XenpakTxAlarm_Status_HHD_temperatureFault u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure reserved_1 in AQ_XenpakTxAlarm_Status_HHD */
#define AQ_XenpakTxAlarm_Status_HHD_reserved_1 0
/*! \brief Preprocessor variable to relate field to bit position in structure reserved_1 in AQ_XenpakTxAlarm_Status_HHD */
#define bits_AQ_XenpakTxAlarm_Status_HHD_reserved_1 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure reserved_1 in AQ_XenpakTxAlarm_Status_HHD */
#define word_AQ_XenpakTxAlarm_Status_HHD_reserved_1 u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pmaTransmitFault in AQ_XenpakTxAlarm_Status_HHD */
#define AQ_XenpakTxAlarm_Status_HHD_pmaTransmitFault 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmaTransmitFault in AQ_XenpakTxAlarm_Status_HHD */
#define bits_AQ_XenpakTxAlarm_Status_HHD_pmaTransmitFault u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmaTransmitFault in AQ_XenpakTxAlarm_Status_HHD */
#define word_AQ_XenpakTxAlarm_Status_HHD_pmaTransmitFault u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure pcsTransmitFault in AQ_XenpakTxAlarm_Status_HHD */
#define AQ_XenpakTxAlarm_Status_HHD_pcsTransmitFault 0
/*! \brief Preprocessor variable to relate field to bit position in structure pcsTransmitFault in AQ_XenpakTxAlarm_Status_HHD */
#define bits_AQ_XenpakTxAlarm_Status_HHD_pcsTransmitFault u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pcsTransmitFault in AQ_XenpakTxAlarm_Status_HHD */
#define word_AQ_XenpakTxAlarm_Status_HHD_pcsTransmitFault u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure phyXS_TransmitFault in AQ_XenpakTxAlarm_Status_HHD */
#define AQ_XenpakTxAlarm_Status_HHD_phyXS_TransmitFault 0
/*! \brief Preprocessor variable to relate field to bit position in structure phyXS_TransmitFault in AQ_XenpakTxAlarm_Status_HHD */
#define bits_AQ_XenpakTxAlarm_Status_HHD_phyXS_TransmitFault u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure phyXS_TransmitFault in AQ_XenpakTxAlarm_Status_HHD */
#define word_AQ_XenpakTxAlarm_Status_HHD_phyXS_TransmitFault u0.word_0
/*! \brief Base register address of structure AQ_XenpakLASI__Status_HHD */
#define AQ_XenpakLASI__Status_HHD_baseRegisterAddress 0x9005
/*! \brief MMD address of structure AQ_XenpakLASI__Status_HHD */
#define AQ_XenpakLASI__Status_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure rxAlarm in AQ_XenpakLASI__Status_HHD */
#define AQ_XenpakLASI__Status_HHD_rxAlarm 0
/*! \brief Preprocessor variable to relate field to bit position in structure rxAlarm in AQ_XenpakLASI__Status_HHD */
#define bits_AQ_XenpakLASI__Status_HHD_rxAlarm u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure rxAlarm in AQ_XenpakLASI__Status_HHD */
#define word_AQ_XenpakLASI__Status_HHD_rxAlarm u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure txAlarm in AQ_XenpakLASI__Status_HHD */
#define AQ_XenpakLASI__Status_HHD_txAlarm 0
/*! \brief Preprocessor variable to relate field to bit position in structure txAlarm in AQ_XenpakLASI__Status_HHD */
#define bits_AQ_XenpakLASI__Status_HHD_txAlarm u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure txAlarm in AQ_XenpakLASI__Status_HHD */
#define word_AQ_XenpakLASI__Status_HHD_txAlarm u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure linkStatusAlarm in AQ_XenpakLASI__Status_HHD */
#define AQ_XenpakLASI__Status_HHD_linkStatusAlarm 0
/*! \brief Preprocessor variable to relate field to bit position in structure linkStatusAlarm in AQ_XenpakLASI__Status_HHD */
#define bits_AQ_XenpakLASI__Status_HHD_linkStatusAlarm u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure linkStatusAlarm in AQ_XenpakLASI__Status_HHD */
#define word_AQ_XenpakLASI__Status_HHD_linkStatusAlarm u0.word_0
/*! \brief Base register address of structure AQ_XenpakDom_TxControl_HHD */
#define AQ_XenpakDom_TxControl_HHD_baseRegisterAddress 0x9006
/*! \brief MMD address of structure AQ_XenpakDom_TxControl_HHD */
#define AQ_XenpakDom_TxControl_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure highTemperatureAlarmEnable in AQ_XenpakDom_TxControl_HHD */
#define AQ_XenpakDom_TxControl_HHD_highTemperatureAlarmEnable 0
/*! \brief Preprocessor variable to relate field to bit position in structure highTemperatureAlarmEnable in AQ_XenpakDom_TxControl_HHD */
#define bits_AQ_XenpakDom_TxControl_HHD_highTemperatureAlarmEnable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure highTemperatureAlarmEnable in AQ_XenpakDom_TxControl_HHD */
#define word_AQ_XenpakDom_TxControl_HHD_highTemperatureAlarmEnable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure lowTemperatureAlarmEnable in AQ_XenpakDom_TxControl_HHD */
#define AQ_XenpakDom_TxControl_HHD_lowTemperatureAlarmEnable 0
/*! \brief Preprocessor variable to relate field to bit position in structure lowTemperatureAlarmEnable in AQ_XenpakDom_TxControl_HHD */
#define bits_AQ_XenpakDom_TxControl_HHD_lowTemperatureAlarmEnable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure lowTemperatureAlarmEnable in AQ_XenpakDom_TxControl_HHD */
#define word_AQ_XenpakDom_TxControl_HHD_lowTemperatureAlarmEnable u0.word_0
/*! \brief Base register address of structure AQ_XenpakDom_HighTemperatureAlarmThresholdLSW_HHD */
#define AQ_XenpakDom_HighTemperatureAlarmThresholdLSW_HHD_baseRegisterAddress 0xA000
/*! \brief MMD address of structure AQ_XenpakDom_HighTemperatureAlarmThresholdLSW_HHD */
#define AQ_XenpakDom_HighTemperatureAlarmThresholdLSW_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure highTempThreshold in AQ_XenpakDom_HighTemperatureAlarmThresholdLSW_HHD */
#define AQ_XenpakDom_HighTemperatureAlarmThresholdLSW_HHD_highTempThreshold 0
/*! \brief Preprocessor variable to relate field to bit position in structure highTempThreshold in AQ_XenpakDom_HighTemperatureAlarmThresholdLSW_HHD */
#define bits_AQ_XenpakDom_HighTemperatureAlarmThresholdLSW_HHD_highTempThreshold u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure highTempThreshold in AQ_XenpakDom_HighTemperatureAlarmThresholdLSW_HHD */
#define word_AQ_XenpakDom_HighTemperatureAlarmThresholdLSW_HHD_highTempThreshold u0.word_0
/*! \brief Base register address of structure AQ_XenpakDom_HighTemperatureAlarmThresholdMSW_HHD */
#define AQ_XenpakDom_HighTemperatureAlarmThresholdMSW_HHD_baseRegisterAddress 0xA001
/*! \brief MMD address of structure AQ_XenpakDom_HighTemperatureAlarmThresholdMSW_HHD */
#define AQ_XenpakDom_HighTemperatureAlarmThresholdMSW_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure highTempThreshold in AQ_XenpakDom_HighTemperatureAlarmThresholdMSW_HHD */
#define AQ_XenpakDom_HighTemperatureAlarmThresholdMSW_HHD_highTempThreshold 0
/*! \brief Preprocessor variable to relate field to bit position in structure highTempThreshold in AQ_XenpakDom_HighTemperatureAlarmThresholdMSW_HHD */
#define bits_AQ_XenpakDom_HighTemperatureAlarmThresholdMSW_HHD_highTempThreshold u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure highTempThreshold in AQ_XenpakDom_HighTemperatureAlarmThresholdMSW_HHD */
#define word_AQ_XenpakDom_HighTemperatureAlarmThresholdMSW_HHD_highTempThreshold u0.word_0
/*! \brief Base register address of structure AQ_XenpakDom_LowTemperatureAlarmThresholdLSW_HHD */
#define AQ_XenpakDom_LowTemperatureAlarmThresholdLSW_HHD_baseRegisterAddress 0xA002
/*! \brief MMD address of structure AQ_XenpakDom_LowTemperatureAlarmThresholdLSW_HHD */
#define AQ_XenpakDom_LowTemperatureAlarmThresholdLSW_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure lowTempThreshold in AQ_XenpakDom_LowTemperatureAlarmThresholdLSW_HHD */
#define AQ_XenpakDom_LowTemperatureAlarmThresholdLSW_HHD_lowTempThreshold 0
/*! \brief Preprocessor variable to relate field to bit position in structure lowTempThreshold in AQ_XenpakDom_LowTemperatureAlarmThresholdLSW_HHD */
#define bits_AQ_XenpakDom_LowTemperatureAlarmThresholdLSW_HHD_lowTempThreshold u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure lowTempThreshold in AQ_XenpakDom_LowTemperatureAlarmThresholdLSW_HHD */
#define word_AQ_XenpakDom_LowTemperatureAlarmThresholdLSW_HHD_lowTempThreshold u0.word_0
/*! \brief Base register address of structure AQ_XenpakDom_LowTemperatureAlarmThresholdMSW_HHD */
#define AQ_XenpakDom_LowTemperatureAlarmThresholdMSW_HHD_baseRegisterAddress 0xA003
/*! \brief MMD address of structure AQ_XenpakDom_LowTemperatureAlarmThresholdMSW_HHD */
#define AQ_XenpakDom_LowTemperatureAlarmThresholdMSW_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure lowTempThreshold in AQ_XenpakDom_LowTemperatureAlarmThresholdMSW_HHD */
#define AQ_XenpakDom_LowTemperatureAlarmThresholdMSW_HHD_lowTempThreshold 0
/*! \brief Preprocessor variable to relate field to bit position in structure lowTempThreshold in AQ_XenpakDom_LowTemperatureAlarmThresholdMSW_HHD */
#define bits_AQ_XenpakDom_LowTemperatureAlarmThresholdMSW_HHD_lowTempThreshold u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure lowTempThreshold in AQ_XenpakDom_LowTemperatureAlarmThresholdMSW_HHD */
#define word_AQ_XenpakDom_LowTemperatureAlarmThresholdMSW_HHD_lowTempThreshold u0.word_0
/*! \brief Base register address of structure AQ_XenpakDom_HighTemperatureWarningThresholdLSW_HHD */
#define AQ_XenpakDom_HighTemperatureWarningThresholdLSW_HHD_baseRegisterAddress 0xA004
/*! \brief MMD address of structure AQ_XenpakDom_HighTemperatureWarningThresholdLSW_HHD */
#define AQ_XenpakDom_HighTemperatureWarningThresholdLSW_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure highTempWarningThreshold in AQ_XenpakDom_HighTemperatureWarningThresholdLSW_HHD */
#define AQ_XenpakDom_HighTemperatureWarningThresholdLSW_HHD_highTempWarningThreshold 0
/*! \brief Preprocessor variable to relate field to bit position in structure highTempWarningThreshold in AQ_XenpakDom_HighTemperatureWarningThresholdLSW_HHD */
#define bits_AQ_XenpakDom_HighTemperatureWarningThresholdLSW_HHD_highTempWarningThreshold u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure highTempWarningThreshold in AQ_XenpakDom_HighTemperatureWarningThresholdLSW_HHD */
#define word_AQ_XenpakDom_HighTemperatureWarningThresholdLSW_HHD_highTempWarningThreshold u0.word_0
/*! \brief Base register address of structure AQ_XenpakDom_HighTemperatureWarningThresholdMSW_HHD */
#define AQ_XenpakDom_HighTemperatureWarningThresholdMSW_HHD_baseRegisterAddress 0xA005
/*! \brief MMD address of structure AQ_XenpakDom_HighTemperatureWarningThresholdMSW_HHD */
#define AQ_XenpakDom_HighTemperatureWarningThresholdMSW_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure highTempWarningThreshold in AQ_XenpakDom_HighTemperatureWarningThresholdMSW_HHD */
#define AQ_XenpakDom_HighTemperatureWarningThresholdMSW_HHD_highTempWarningThreshold 0
/*! \brief Preprocessor variable to relate field to bit position in structure highTempWarningThreshold in AQ_XenpakDom_HighTemperatureWarningThresholdMSW_HHD */
#define bits_AQ_XenpakDom_HighTemperatureWarningThresholdMSW_HHD_highTempWarningThreshold u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure highTempWarningThreshold in AQ_XenpakDom_HighTemperatureWarningThresholdMSW_HHD */
#define word_AQ_XenpakDom_HighTemperatureWarningThresholdMSW_HHD_highTempWarningThreshold u0.word_0
/*! \brief Base register address of structure AQ_XenpakDom_LowTemperatureWarningThresholdLSW_HHD */
#define AQ_XenpakDom_LowTemperatureWarningThresholdLSW_HHD_baseRegisterAddress 0xA006
/*! \brief MMD address of structure AQ_XenpakDom_LowTemperatureWarningThresholdLSW_HHD */
#define AQ_XenpakDom_LowTemperatureWarningThresholdLSW_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure lowTempWarningThreshold in AQ_XenpakDom_LowTemperatureWarningThresholdLSW_HHD */
#define AQ_XenpakDom_LowTemperatureWarningThresholdLSW_HHD_lowTempWarningThreshold 0
/*! \brief Preprocessor variable to relate field to bit position in structure lowTempWarningThreshold in AQ_XenpakDom_LowTemperatureWarningThresholdLSW_HHD */
#define bits_AQ_XenpakDom_LowTemperatureWarningThresholdLSW_HHD_lowTempWarningThreshold u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure lowTempWarningThreshold in AQ_XenpakDom_LowTemperatureWarningThresholdLSW_HHD */
#define word_AQ_XenpakDom_LowTemperatureWarningThresholdLSW_HHD_lowTempWarningThreshold u0.word_0
/*! \brief Base register address of structure AQ_XenpakDom_LowTemperatureWarningThresholdMSW_HHD */
#define AQ_XenpakDom_LowTemperatureWarningThresholdMSW_HHD_baseRegisterAddress 0xA007
/*! \brief MMD address of structure AQ_XenpakDom_LowTemperatureWarningThresholdMSW_HHD */
#define AQ_XenpakDom_LowTemperatureWarningThresholdMSW_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure lowTempWarningThreshold in AQ_XenpakDom_LowTemperatureWarningThresholdMSW_HHD */
#define AQ_XenpakDom_LowTemperatureWarningThresholdMSW_HHD_lowTempWarningThreshold 0
/*! \brief Preprocessor variable to relate field to bit position in structure lowTempWarningThreshold in AQ_XenpakDom_LowTemperatureWarningThresholdMSW_HHD */
#define bits_AQ_XenpakDom_LowTemperatureWarningThresholdMSW_HHD_lowTempWarningThreshold u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure lowTempWarningThreshold in AQ_XenpakDom_LowTemperatureWarningThresholdMSW_HHD */
#define word_AQ_XenpakDom_LowTemperatureWarningThresholdMSW_HHD_lowTempWarningThreshold u0.word_0
/*! \brief Base register address of structure AQ_XenpakDom_TemperatureLSW_HHD */
#define AQ_XenpakDom_TemperatureLSW_HHD_baseRegisterAddress 0xA060
/*! \brief MMD address of structure AQ_XenpakDom_TemperatureLSW_HHD */
#define AQ_XenpakDom_TemperatureLSW_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure temperature in AQ_XenpakDom_TemperatureLSW_HHD */
#define AQ_XenpakDom_TemperatureLSW_HHD_temperature 0
/*! \brief Preprocessor variable to relate field to bit position in structure temperature in AQ_XenpakDom_TemperatureLSW_HHD */
#define bits_AQ_XenpakDom_TemperatureLSW_HHD_temperature u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure temperature in AQ_XenpakDom_TemperatureLSW_HHD */
#define word_AQ_XenpakDom_TemperatureLSW_HHD_temperature u0.word_0
/*! \brief Base register address of structure AQ_XenpakDom_TemperatureMSW_HHD */
#define AQ_XenpakDom_TemperatureMSW_HHD_baseRegisterAddress 0xA061
/*! \brief MMD address of structure AQ_XenpakDom_TemperatureMSW_HHD */
#define AQ_XenpakDom_TemperatureMSW_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure temperature in AQ_XenpakDom_TemperatureMSW_HHD */
#define AQ_XenpakDom_TemperatureMSW_HHD_temperature 0
/*! \brief Preprocessor variable to relate field to bit position in structure temperature in AQ_XenpakDom_TemperatureMSW_HHD */
#define bits_AQ_XenpakDom_TemperatureMSW_HHD_temperature u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure temperature in AQ_XenpakDom_TemperatureMSW_HHD */
#define word_AQ_XenpakDom_TemperatureMSW_HHD_temperature u0.word_0
/*! \brief Base register address of structure AQ_XenpakDom_Status_HHD */
#define AQ_XenpakDom_Status_HHD_baseRegisterAddress 0xA06E
/*! \brief MMD address of structure AQ_XenpakDom_Status_HHD */
#define AQ_XenpakDom_Status_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure temperatureReady in AQ_XenpakDom_Status_HHD */
#define AQ_XenpakDom_Status_HHD_temperatureReady 0
/*! \brief Preprocessor variable to relate field to bit position in structure temperatureReady in AQ_XenpakDom_Status_HHD */
#define bits_AQ_XenpakDom_Status_HHD_temperatureReady u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure temperatureReady in AQ_XenpakDom_Status_HHD */
#define word_AQ_XenpakDom_Status_HHD_temperatureReady u0.word_0
/*! \brief Base register address of structure AQ_XenpakDom_Capability_HHD */
#define AQ_XenpakDom_Capability_HHD_baseRegisterAddress 0xA06F
/*! \brief MMD address of structure AQ_XenpakDom_Capability_HHD */
#define AQ_XenpakDom_Capability_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure temperatureCapability in AQ_XenpakDom_Capability_HHD */
#define AQ_XenpakDom_Capability_HHD_temperatureCapability 0
/*! \brief Preprocessor variable to relate field to bit position in structure temperatureCapability in AQ_XenpakDom_Capability_HHD */
#define bits_AQ_XenpakDom_Capability_HHD_temperatureCapability u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure temperatureCapability in AQ_XenpakDom_Capability_HHD */
#define word_AQ_XenpakDom_Capability_HHD_temperatureCapability u0.word_0
/*! \brief Base register address of structure AQ_XenpakDom_Alarms_HHD */
#define AQ_XenpakDom_Alarms_HHD_baseRegisterAddress 0xA070
/*! \brief MMD address of structure AQ_XenpakDom_Alarms_HHD */
#define AQ_XenpakDom_Alarms_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure highTemperatureAlarm in AQ_XenpakDom_Alarms_HHD */
#define AQ_XenpakDom_Alarms_HHD_highTemperatureAlarm 0
/*! \brief Preprocessor variable to relate field to bit position in structure highTemperatureAlarm in AQ_XenpakDom_Alarms_HHD */
#define bits_AQ_XenpakDom_Alarms_HHD_highTemperatureAlarm u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure highTemperatureAlarm in AQ_XenpakDom_Alarms_HHD */
#define word_AQ_XenpakDom_Alarms_HHD_highTemperatureAlarm u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure lowTemperatureAlarm in AQ_XenpakDom_Alarms_HHD */
#define AQ_XenpakDom_Alarms_HHD_lowTemperatureAlarm 0
/*! \brief Preprocessor variable to relate field to bit position in structure lowTemperatureAlarm in AQ_XenpakDom_Alarms_HHD */
#define bits_AQ_XenpakDom_Alarms_HHD_lowTemperatureAlarm u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure lowTemperatureAlarm in AQ_XenpakDom_Alarms_HHD */
#define word_AQ_XenpakDom_Alarms_HHD_lowTemperatureAlarm u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure highTemperatureWarning in AQ_XenpakDom_Alarms_HHD */
#define AQ_XenpakDom_Alarms_HHD_highTemperatureWarning 4
/*! \brief Preprocessor variable to relate field to bit position in structure highTemperatureWarning in AQ_XenpakDom_Alarms_HHD */
#define bits_AQ_XenpakDom_Alarms_HHD_highTemperatureWarning u4.bits_4
/*! \brief Preprocessor variable to relate field to word position in structure highTemperatureWarning in AQ_XenpakDom_Alarms_HHD */
#define word_AQ_XenpakDom_Alarms_HHD_highTemperatureWarning u4.word_4
/*! \brief Preprocessor variable to relate field to word number in structure lowTemperatureWarning in AQ_XenpakDom_Alarms_HHD */
#define AQ_XenpakDom_Alarms_HHD_lowTemperatureWarning 4
/*! \brief Preprocessor variable to relate field to bit position in structure lowTemperatureWarning in AQ_XenpakDom_Alarms_HHD */
#define bits_AQ_XenpakDom_Alarms_HHD_lowTemperatureWarning u4.bits_4
/*! \brief Preprocessor variable to relate field to word position in structure lowTemperatureWarning in AQ_XenpakDom_Alarms_HHD */
#define word_AQ_XenpakDom_Alarms_HHD_lowTemperatureWarning u4.word_4
/*! \brief Base register address of structure AQ_XenpakDom_ControlAndStatus_HHD */
#define AQ_XenpakDom_ControlAndStatus_HHD_baseRegisterAddress 0xA100
/*! \brief MMD address of structure AQ_XenpakDom_ControlAndStatus_HHD */
#define AQ_XenpakDom_ControlAndStatus_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure reserved_1 in AQ_XenpakDom_ControlAndStatus_HHD */
#define AQ_XenpakDom_ControlAndStatus_HHD_reserved_1 0
/*! \brief Preprocessor variable to relate field to bit position in structure reserved_1 in AQ_XenpakDom_ControlAndStatus_HHD */
#define bits_AQ_XenpakDom_ControlAndStatus_HHD_reserved_1 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure reserved_1 in AQ_XenpakDom_ControlAndStatus_HHD */
#define word_AQ_XenpakDom_ControlAndStatus_HHD_reserved_1 u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure reserved_2 in AQ_XenpakDom_ControlAndStatus_HHD */
#define AQ_XenpakDom_ControlAndStatus_HHD_reserved_2 0
/*! \brief Preprocessor variable to relate field to bit position in structure reserved_2 in AQ_XenpakDom_ControlAndStatus_HHD */
#define bits_AQ_XenpakDom_ControlAndStatus_HHD_reserved_2 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure reserved_2 in AQ_XenpakDom_ControlAndStatus_HHD */
#define word_AQ_XenpakDom_ControlAndStatus_HHD_reserved_2 u0.word_0
/*! \brief Base register address of structure AQ_PmaTransmitClockPhaseSelectionControl_HHD */
#define AQ_PmaTransmitClockPhaseSelectionControl_HHD_baseRegisterAddress 0xC142
/*! \brief MMD address of structure AQ_PmaTransmitClockPhaseSelectionControl_HHD */
#define AQ_PmaTransmitClockPhaseSelectionControl_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure channel_3TxClockPhaseSelection in AQ_PmaTransmitClockPhaseSelectionControl_HHD */
#define AQ_PmaTransmitClockPhaseSelectionControl_HHD_channel_3TxClockPhaseSelection 0
/*! \brief Preprocessor variable to relate field to bit position in structure channel_3TxClockPhaseSelection in AQ_PmaTransmitClockPhaseSelectionControl_HHD */
#define bits_AQ_PmaTransmitClockPhaseSelectionControl_HHD_channel_3TxClockPhaseSelection u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channel_3TxClockPhaseSelection in AQ_PmaTransmitClockPhaseSelectionControl_HHD */
#define word_AQ_PmaTransmitClockPhaseSelectionControl_HHD_channel_3TxClockPhaseSelection u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure channel_2TxClockPhaseSelection in AQ_PmaTransmitClockPhaseSelectionControl_HHD */
#define AQ_PmaTransmitClockPhaseSelectionControl_HHD_channel_2TxClockPhaseSelection 0
/*! \brief Preprocessor variable to relate field to bit position in structure channel_2TxClockPhaseSelection in AQ_PmaTransmitClockPhaseSelectionControl_HHD */
#define bits_AQ_PmaTransmitClockPhaseSelectionControl_HHD_channel_2TxClockPhaseSelection u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channel_2TxClockPhaseSelection in AQ_PmaTransmitClockPhaseSelectionControl_HHD */
#define word_AQ_PmaTransmitClockPhaseSelectionControl_HHD_channel_2TxClockPhaseSelection u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure channel_1TxClockPhaseSelection in AQ_PmaTransmitClockPhaseSelectionControl_HHD */
#define AQ_PmaTransmitClockPhaseSelectionControl_HHD_channel_1TxClockPhaseSelection 0
/*! \brief Preprocessor variable to relate field to bit position in structure channel_1TxClockPhaseSelection in AQ_PmaTransmitClockPhaseSelectionControl_HHD */
#define bits_AQ_PmaTransmitClockPhaseSelectionControl_HHD_channel_1TxClockPhaseSelection u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channel_1TxClockPhaseSelection in AQ_PmaTransmitClockPhaseSelectionControl_HHD */
#define word_AQ_PmaTransmitClockPhaseSelectionControl_HHD_channel_1TxClockPhaseSelection u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure channel_0TxClockPhaseSelection in AQ_PmaTransmitClockPhaseSelectionControl_HHD */
#define AQ_PmaTransmitClockPhaseSelectionControl_HHD_channel_0TxClockPhaseSelection 0
/*! \brief Preprocessor variable to relate field to bit position in structure channel_0TxClockPhaseSelection in AQ_PmaTransmitClockPhaseSelectionControl_HHD */
#define bits_AQ_PmaTransmitClockPhaseSelectionControl_HHD_channel_0TxClockPhaseSelection u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure channel_0TxClockPhaseSelection in AQ_PmaTransmitClockPhaseSelectionControl_HHD */
#define word_AQ_PmaTransmitClockPhaseSelectionControl_HHD_channel_0TxClockPhaseSelection u0.word_0
/*! \brief Base register address of structure AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define AQ_PmaTransmitReservedVendorProvisioning_HHD_baseRegisterAddress 0xC412
/*! \brief MMD address of structure AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define AQ_PmaTransmitReservedVendorProvisioning_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure testModeRate in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define AQ_PmaTransmitReservedVendorProvisioning_HHD_testModeRate 0
/*! \brief Preprocessor variable to relate field to bit position in structure testModeRate in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define bits_AQ_PmaTransmitReservedVendorProvisioning_HHD_testModeRate u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure testModeRate in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define word_AQ_PmaTransmitReservedVendorProvisioning_HHD_testModeRate u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure reservedSpareTransmitProvisioning_0 in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define AQ_PmaTransmitReservedVendorProvisioning_HHD_reservedSpareTransmitProvisioning_0 0
/*! \brief Preprocessor variable to relate field to bit position in structure reservedSpareTransmitProvisioning_0 in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define bits_AQ_PmaTransmitReservedVendorProvisioning_HHD_reservedSpareTransmitProvisioning_0 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure reservedSpareTransmitProvisioning_0 in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define word_AQ_PmaTransmitReservedVendorProvisioning_HHD_reservedSpareTransmitProvisioning_0 u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure txPolarityInvertEnable in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define AQ_PmaTransmitReservedVendorProvisioning_HHD_txPolarityInvertEnable 0
/*! \brief Preprocessor variable to relate field to bit position in structure txPolarityInvertEnable in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define bits_AQ_PmaTransmitReservedVendorProvisioning_HHD_txPolarityInvertEnable u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure txPolarityInvertEnable in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define word_AQ_PmaTransmitReservedVendorProvisioning_HHD_txPolarityInvertEnable u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure channelMask in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define AQ_PmaTransmitReservedVendorProvisioning_HHD_channelMask 1
/*! \brief Preprocessor variable to relate field to bit position in structure channelMask in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define bits_AQ_PmaTransmitReservedVendorProvisioning_HHD_channelMask u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure channelMask in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define word_AQ_PmaTransmitReservedVendorProvisioning_HHD_channelMask u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure reservedSpareTransmitProvisioning_1 in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define AQ_PmaTransmitReservedVendorProvisioning_HHD_reservedSpareTransmitProvisioning_1 1
/*! \brief Preprocessor variable to relate field to bit position in structure reservedSpareTransmitProvisioning_1 in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define bits_AQ_PmaTransmitReservedVendorProvisioning_HHD_reservedSpareTransmitProvisioning_1 u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure reservedSpareTransmitProvisioning_1 in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define word_AQ_PmaTransmitReservedVendorProvisioning_HHD_reservedSpareTransmitProvisioning_1 u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure incrementalTxPsdTarget in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define AQ_PmaTransmitReservedVendorProvisioning_HHD_incrementalTxPsdTarget 1
/*! \brief Preprocessor variable to relate field to bit position in structure incrementalTxPsdTarget in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define bits_AQ_PmaTransmitReservedVendorProvisioning_HHD_incrementalTxPsdTarget u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure incrementalTxPsdTarget in AQ_PmaTransmitReservedVendorProvisioning_HHD */
#define word_AQ_PmaTransmitReservedVendorProvisioning_HHD_incrementalTxPsdTarget u1.word_1
/*! \brief Base register address of structure AQ_PmaTransmitVendorAlarms_HHD */
#define AQ_PmaTransmitVendorAlarms_HHD_baseRegisterAddress 0xCC00
/*! \brief MMD address of structure AQ_PmaTransmitVendorAlarms_HHD */
#define AQ_PmaTransmitVendorAlarms_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure reservedPmaTransmitAlarms_3 in AQ_PmaTransmitVendorAlarms_HHD */
#define AQ_PmaTransmitVendorAlarms_HHD_reservedPmaTransmitAlarms_3 2
/*! \brief Preprocessor variable to relate field to bit position in structure reservedPmaTransmitAlarms_3 in AQ_PmaTransmitVendorAlarms_HHD */
#define bits_AQ_PmaTransmitVendorAlarms_HHD_reservedPmaTransmitAlarms_3 u2.bits_2
/*! \brief Preprocessor variable to relate field to word position in structure reservedPmaTransmitAlarms_3 in AQ_PmaTransmitVendorAlarms_HHD */
#define word_AQ_PmaTransmitVendorAlarms_HHD_reservedPmaTransmitAlarms_3 u2.word_2
/*! \brief Preprocessor variable to relate field to word number in structure zero in AQ_PmaTransmitVendorAlarms_HHD */
#define AQ_PmaTransmitVendorAlarms_HHD_zero 2
/*! \brief Preprocessor variable to relate field to bit position in structure zero in AQ_PmaTransmitVendorAlarms_HHD */
#define bits_AQ_PmaTransmitVendorAlarms_HHD_zero u2.bits_2
/*! \brief Preprocessor variable to relate field to word position in structure zero in AQ_PmaTransmitVendorAlarms_HHD */
#define word_AQ_PmaTransmitVendorAlarms_HHD_zero u2.word_2
/*! \brief Preprocessor variable to relate field to word number in structure resetComplete in AQ_PmaTransmitVendorAlarms_HHD */
#define AQ_PmaTransmitVendorAlarms_HHD_resetComplete 2
/*! \brief Preprocessor variable to relate field to bit position in structure resetComplete in AQ_PmaTransmitVendorAlarms_HHD */
#define bits_AQ_PmaTransmitVendorAlarms_HHD_resetComplete u2.bits_2
/*! \brief Preprocessor variable to relate field to word position in structure resetComplete in AQ_PmaTransmitVendorAlarms_HHD */
#define word_AQ_PmaTransmitVendorAlarms_HHD_resetComplete u2.word_2
/*! \brief Base register address of structure AQ_PmaTransmitStandardInterruptMask_HHD */
#define AQ_PmaTransmitStandardInterruptMask_HHD_baseRegisterAddress 0xD000
/*! \brief MMD address of structure AQ_PmaTransmitStandardInterruptMask_HHD */
#define AQ_PmaTransmitStandardInterruptMask_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure pmaReceiveLinkStatusMask in AQ_PmaTransmitStandardInterruptMask_HHD */
#define AQ_PmaTransmitStandardInterruptMask_HHD_pmaReceiveLinkStatusMask 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmaReceiveLinkStatusMask in AQ_PmaTransmitStandardInterruptMask_HHD */
#define bits_AQ_PmaTransmitStandardInterruptMask_HHD_pmaReceiveLinkStatusMask u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmaReceiveLinkStatusMask in AQ_PmaTransmitStandardInterruptMask_HHD */
#define word_AQ_PmaTransmitStandardInterruptMask_HHD_pmaReceiveLinkStatusMask u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure transmitFaultMask in AQ_PmaTransmitStandardInterruptMask_HHD */
#define AQ_PmaTransmitStandardInterruptMask_HHD_transmitFaultMask 1
/*! \brief Preprocessor variable to relate field to bit position in structure transmitFaultMask in AQ_PmaTransmitStandardInterruptMask_HHD */
#define bits_AQ_PmaTransmitStandardInterruptMask_HHD_transmitFaultMask u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure transmitFaultMask in AQ_PmaTransmitStandardInterruptMask_HHD */
#define word_AQ_PmaTransmitStandardInterruptMask_HHD_transmitFaultMask u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure receiveFaultMask in AQ_PmaTransmitStandardInterruptMask_HHD */
#define AQ_PmaTransmitStandardInterruptMask_HHD_receiveFaultMask 1
/*! \brief Preprocessor variable to relate field to bit position in structure receiveFaultMask in AQ_PmaTransmitStandardInterruptMask_HHD */
#define bits_AQ_PmaTransmitStandardInterruptMask_HHD_receiveFaultMask u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure receiveFaultMask in AQ_PmaTransmitStandardInterruptMask_HHD */
#define word_AQ_PmaTransmitStandardInterruptMask_HHD_receiveFaultMask u1.word_1
/*! \brief Base register address of structure AQ_PmaTransmitVendorInterruptMask_HHD */
#define AQ_PmaTransmitVendorInterruptMask_HHD_baseRegisterAddress 0xD400
/*! \brief MMD address of structure AQ_PmaTransmitVendorInterruptMask_HHD */
#define AQ_PmaTransmitVendorInterruptMask_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure resetCompleteMask in AQ_PmaTransmitVendorInterruptMask_HHD */
#define AQ_PmaTransmitVendorInterruptMask_HHD_resetCompleteMask 2
/*! \brief Preprocessor variable to relate field to bit position in structure resetCompleteMask in AQ_PmaTransmitVendorInterruptMask_HHD */
#define bits_AQ_PmaTransmitVendorInterruptMask_HHD_resetCompleteMask u2.bits_2
/*! \brief Preprocessor variable to relate field to word position in structure resetCompleteMask in AQ_PmaTransmitVendorInterruptMask_HHD */
#define word_AQ_PmaTransmitVendorInterruptMask_HHD_resetCompleteMask u2.word_2
/*! \brief Base register address of structure AQ_PmaTransmitVendorDebug_HHD */
#define AQ_PmaTransmitVendorDebug_HHD_baseRegisterAddress 0xD800
/*! \brief MMD address of structure AQ_PmaTransmitVendorDebug_HHD */
#define AQ_PmaTransmitVendorDebug_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure pmaDigitalSystemLoopback in AQ_PmaTransmitVendorDebug_HHD */
#define AQ_PmaTransmitVendorDebug_HHD_pmaDigitalSystemLoopback 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmaDigitalSystemLoopback in AQ_PmaTransmitVendorDebug_HHD */
#define bits_AQ_PmaTransmitVendorDebug_HHD_pmaDigitalSystemLoopback u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmaDigitalSystemLoopback in AQ_PmaTransmitVendorDebug_HHD */
#define word_AQ_PmaTransmitVendorDebug_HHD_pmaDigitalSystemLoopback u0.word_0
/*! \brief Base register address of structure AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define AQ_PmaReceiveReservedVendorProvisioning_HHD_baseRegisterAddress 0xE400
/*! \brief MMD address of structure AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define AQ_PmaReceiveReservedVendorProvisioning_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure externalPhyLoopback in AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define AQ_PmaReceiveReservedVendorProvisioning_HHD_externalPhyLoopback 0
/*! \brief Preprocessor variable to relate field to bit position in structure externalPhyLoopback in AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define bits_AQ_PmaReceiveReservedVendorProvisioning_HHD_externalPhyLoopback u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure externalPhyLoopback in AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define word_AQ_PmaReceiveReservedVendorProvisioning_HHD_externalPhyLoopback u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure reservedReceiveProvisioning_1 in AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define AQ_PmaReceiveReservedVendorProvisioning_HHD_reservedReceiveProvisioning_1 0
/*! \brief Preprocessor variable to relate field to bit position in structure reservedReceiveProvisioning_1 in AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define bits_AQ_PmaReceiveReservedVendorProvisioning_HHD_reservedReceiveProvisioning_1 u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure reservedReceiveProvisioning_1 in AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define word_AQ_PmaReceiveReservedVendorProvisioning_HHD_reservedReceiveProvisioning_1 u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure enableAquantiaFastRetrain in AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define AQ_PmaReceiveReservedVendorProvisioning_HHD_enableAquantiaFastRetrain 0
/*! \brief Preprocessor variable to relate field to bit position in structure enableAquantiaFastRetrain in AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define bits_AQ_PmaReceiveReservedVendorProvisioning_HHD_enableAquantiaFastRetrain u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure enableAquantiaFastRetrain in AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define word_AQ_PmaReceiveReservedVendorProvisioning_HHD_enableAquantiaFastRetrain u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure forceMdiConfiguration in AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define AQ_PmaReceiveReservedVendorProvisioning_HHD_forceMdiConfiguration 0
/*! \brief Preprocessor variable to relate field to bit position in structure forceMdiConfiguration in AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define bits_AQ_PmaReceiveReservedVendorProvisioning_HHD_forceMdiConfiguration u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure forceMdiConfiguration in AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define word_AQ_PmaReceiveReservedVendorProvisioning_HHD_forceMdiConfiguration u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure mdiConfiguration in AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define AQ_PmaReceiveReservedVendorProvisioning_HHD_mdiConfiguration 0
/*! \brief Preprocessor variable to relate field to bit position in structure mdiConfiguration in AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define bits_AQ_PmaReceiveReservedVendorProvisioning_HHD_mdiConfiguration u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure mdiConfiguration in AQ_PmaReceiveReservedVendorProvisioning_HHD */
#define word_AQ_PmaReceiveReservedVendorProvisioning_HHD_mdiConfiguration u0.word_0
/*! \brief Base register address of structure AQ_PmaReceiveVendorState_HHD */
#define AQ_PmaReceiveVendorState_HHD_baseRegisterAddress 0xE800
/*! \brief MMD address of structure AQ_PmaReceiveVendorState_HHD */
#define AQ_PmaReceiveVendorState_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure pmaReceiveLinkCurrentStatus in AQ_PmaReceiveVendorState_HHD */
#define AQ_PmaReceiveVendorState_HHD_pmaReceiveLinkCurrentStatus 0
/*! \brief Preprocessor variable to relate field to bit position in structure pmaReceiveLinkCurrentStatus in AQ_PmaReceiveVendorState_HHD */
#define bits_AQ_PmaReceiveVendorState_HHD_pmaReceiveLinkCurrentStatus u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure pmaReceiveLinkCurrentStatus in AQ_PmaReceiveVendorState_HHD */
#define word_AQ_PmaReceiveVendorState_HHD_pmaReceiveLinkCurrentStatus u0.word_0
/*! \brief Base register address of structure AQ_PmaReceiveReservedVendorState_HHD */
#define AQ_PmaReceiveReservedVendorState_HHD_baseRegisterAddress 0xE810
/*! \brief MMD address of structure AQ_PmaReceiveReservedVendorState_HHD */
#define AQ_PmaReceiveReservedVendorState_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure accumulatedFastRetrainTime in AQ_PmaReceiveReservedVendorState_HHD */
#define AQ_PmaReceiveReservedVendorState_HHD_accumulatedFastRetrainTime 0
/*! \brief Preprocessor variable to relate field to bit position in structure accumulatedFastRetrainTime in AQ_PmaReceiveReservedVendorState_HHD */
#define bits_AQ_PmaReceiveReservedVendorState_HHD_accumulatedFastRetrainTime u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure accumulatedFastRetrainTime in AQ_PmaReceiveReservedVendorState_HHD */
#define word_AQ_PmaReceiveReservedVendorState_HHD_accumulatedFastRetrainTime u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure totalNumberOfLinkRecoveryEventsSinceLastAutoneg in AQ_PmaReceiveReservedVendorState_HHD */
#define AQ_PmaReceiveReservedVendorState_HHD_totalNumberOfLinkRecoveryEventsSinceLastAutoneg 1
/*! \brief Preprocessor variable to relate field to bit position in structure totalNumberOfLinkRecoveryEventsSinceLastAutoneg in AQ_PmaReceiveReservedVendorState_HHD */
#define bits_AQ_PmaReceiveReservedVendorState_HHD_totalNumberOfLinkRecoveryEventsSinceLastAutoneg u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure totalNumberOfLinkRecoveryEventsSinceLastAutoneg in AQ_PmaReceiveReservedVendorState_HHD */
#define word_AQ_PmaReceiveReservedVendorState_HHD_totalNumberOfLinkRecoveryEventsSinceLastAutoneg u1.word_1
/*! \brief Preprocessor variable to relate field to word number in structure totalNumberOfRfiTrainingLinkRecoveryEventsSinceLastAutoneg in AQ_PmaReceiveReservedVendorState_HHD */
#define AQ_PmaReceiveReservedVendorState_HHD_totalNumberOfRfiTrainingLinkRecoveryEventsSinceLastAutoneg 1
/*! \brief Preprocessor variable to relate field to bit position in structure totalNumberOfRfiTrainingLinkRecoveryEventsSinceLastAutoneg in AQ_PmaReceiveReservedVendorState_HHD */
#define bits_AQ_PmaReceiveReservedVendorState_HHD_totalNumberOfRfiTrainingLinkRecoveryEventsSinceLastAutoneg u1.bits_1
/*! \brief Preprocessor variable to relate field to word position in structure totalNumberOfRfiTrainingLinkRecoveryEventsSinceLastAutoneg in AQ_PmaReceiveReservedVendorState_HHD */
#define word_AQ_PmaReceiveReservedVendorState_HHD_totalNumberOfRfiTrainingLinkRecoveryEventsSinceLastAutoneg u1.word_1
/*! \brief Base register address of structure AQ_PmaVendorGlobalInterruptFlags_HHD */
#define AQ_PmaVendorGlobalInterruptFlags_HHD_baseRegisterAddress 0xFC00
/*! \brief MMD address of structure AQ_PmaVendorGlobalInterruptFlags_HHD */
#define AQ_PmaVendorGlobalInterruptFlags_HHD_mmdAddress 0x01
/*! \brief Preprocessor variable to relate field to word number in structure vendorSpecificTxAlarms_1Interrupt in AQ_PmaVendorGlobalInterruptFlags_HHD */
#define AQ_PmaVendorGlobalInterruptFlags_HHD_vendorSpecificTxAlarms_1Interrupt 0
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSpecificTxAlarms_1Interrupt in AQ_PmaVendorGlobalInterruptFlags_HHD */
#define bits_AQ_PmaVendorGlobalInterruptFlags_HHD_vendorSpecificTxAlarms_1Interrupt u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure vendorSpecificTxAlarms_1Interrupt in AQ_PmaVendorGlobalInterruptFlags_HHD */
#define word_AQ_PmaVendorGlobalInterruptFlags_HHD_vendorSpecificTxAlarms_1Interrupt u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure vendorSpecificTxAlarms_2Interrupt in AQ_PmaVendorGlobalInterruptFlags_HHD */
#define AQ_PmaVendorGlobalInterruptFlags_HHD_vendorSpecificTxAlarms_2Interrupt 0
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSpecificTxAlarms_2Interrupt in AQ_PmaVendorGlobalInterruptFlags_HHD */
#define bits_AQ_PmaVendorGlobalInterruptFlags_HHD_vendorSpecificTxAlarms_2Interrupt u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure vendorSpecificTxAlarms_2Interrupt in AQ_PmaVendorGlobalInterruptFlags_HHD */
#define word_AQ_PmaVendorGlobalInterruptFlags_HHD_vendorSpecificTxAlarms_2Interrupt u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure vendorSpecificTxAlarms_3Interrupt in AQ_PmaVendorGlobalInterruptFlags_HHD */
#define AQ_PmaVendorGlobalInterruptFlags_HHD_vendorSpecificTxAlarms_3Interrupt 0
/*! \brief Preprocessor variable to relate field to bit position in structure vendorSpecificTxAlarms_3Interrupt in AQ_PmaVendorGlobalInterruptFlags_HHD */
#define bits_AQ_PmaVendorGlobalInterruptFlags_HHD_vendorSpecificTxAlarms_3Interrupt u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure vendorSpecificTxAlarms_3Interrupt in AQ_PmaVendorGlobalInterruptFlags_HHD */
#define word_AQ_PmaVendorGlobalInterruptFlags_HHD_vendorSpecificTxAlarms_3Interrupt u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure standardAlarm_1Interrupt in AQ_PmaVendorGlobalInterruptFlags_HHD */
#define AQ_PmaVendorGlobalInterruptFlags_HHD_standardAlarm_1Interrupt 0
/*! \brief Preprocessor variable to relate field to bit position in structure standardAlarm_1Interrupt in AQ_PmaVendorGlobalInterruptFlags_HHD */
#define bits_AQ_PmaVendorGlobalInterruptFlags_HHD_standardAlarm_1Interrupt u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure standardAlarm_1Interrupt in AQ_PmaVendorGlobalInterruptFlags_HHD */
#define word_AQ_PmaVendorGlobalInterruptFlags_HHD_standardAlarm_1Interrupt u0.word_0
/*! \brief Preprocessor variable to relate field to word number in structure standardAlarm_2Interrupt in AQ_PmaVendorGlobalInterruptFlags_HHD */
#define AQ_PmaVendorGlobalInterruptFlags_HHD_standardAlarm_2Interrupt 0
/*! \brief Preprocessor variable to relate field to bit position in structure standardAlarm_2Interrupt in AQ_PmaVendorGlobalInterruptFlags_HHD */
#define bits_AQ_PmaVendorGlobalInterruptFlags_HHD_standardAlarm_2Interrupt u0.bits_0
/*! \brief Preprocessor variable to relate field to word position in structure standardAlarm_2Interrupt in AQ_PmaVendorGlobalInterruptFlags_HHD */
#define word_AQ_PmaVendorGlobalInterruptFlags_HHD_standardAlarm_2Interrupt u0.word_0
#endif
/*@}*/
/*@}*/
|
0c02981b264fa0295a045f92ae0a384793bd4521
|
1c27e0b71f6f4090200dd1773ea627039c310250
|
/Matrix/Eig.h
|
c3a5bda2bf5ab781699590994104960a7c860325
|
[] |
no_license
|
LYYtG/numerical-algebra
|
62dd10e640116d3a39aa75ceff1602af6c217d5e
|
04002d071f116abdf6665e9cb6995cf9cd38587c
|
refs/heads/master
| 2023-06-20T14:31:08.307622 | 2021-07-09T09:15:18 | 2021-07-09T09:15:18 | 356,481,796 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 18,487 |
h
|
Eig.h
|
/**
* @file Eig.h
* @author 李杨野 (1300096763@qq.com 3190103519@zju.edu.cn)
* @brief Functions for Eigenvalue
* @version 0.1
* @date 2021-05-28
*
* @copyright Copyright (c) 2021
*
*/
#include "Matrix.h"
#include <complex>
/**
* @brief Construct the matrix according to the polynomial.
*
* @param x
* @return vector<vector<double > > Matrix
*/
vector<vector<double > > Polynomial(vector<double> x)
{
int n = x.size();
vector<vector<double > > A(n,vector<double> (n));
int i,j,k;
for(i = 0;i<n-1;i++){
A[i+1][i] = 1;
A[i][n-1] = -x[i];
}
A[n-1][n-1] = -x[n-1];
return A;
}
/**
* @brief Subfunction of power method, to judge if the iteration is about to end.
*
* @param u
* @param v
* @return true
* @return false
*/
bool uv(vector<double> u,vector<double> v)
{
int i;
double t;
int n = u.size();
for(i = 0;i<n;i++){
t = fabs(u[i]/v[i]);
if(fabs(t-1)>=0.000001){
return true;
}
}
return false;
}
/**
* @brief Power Method. Can only apply to specific Matrixs.
*
* @param A
* @return vector<double>
*/
vector<double> PowerMethod(vector<vector<double > > A)
{
int n = A[0].size();
vector<double> u(n),v(n),p(n);
double t;
int i,j,k = 0;
for(i = 0;i<n;i++)
{
u[i] = 1.0;//Initialize...
}
do{
v = u;//v = u_k-1
u = Multiply(A,u);
t = InfiniteNorm(u);
for(i = 0;i<n;i++){
u[i]/=t;
}
//Print(u);
k++;
}while(uv(u,v)&&k<100);
if(k>=100)cout <<"Too much iteration!"<<endl;
cout << t << endl;
return u;
}
vector<double> Rev_PowerMethod(vector<vector<double > > A,double lambda)
{
int n = A[0].size();
vector<double> u(n),v(n);
double t;
int i,j,k = 0;
for(i = 0;i<n;i++)
{
u[i] = 1.0;//Initialize...
A[i][i]-=lambda;
}
do{
v = u;//v = u_k-1
u = GaussColumnPivot(A,u);
t = TwoNorm(u);
for(i = 0;i<n;i++){
u[i]/=t;
}
//Print(u);
k++;
}while(uv(u,v)&&k<100);
if(k=100){
//cout << "???";
}
return u;
}
/**
* @brief Initial QR, with low time efficiency. NOT used in the homework.
*
* @param A
*/
void QREig(vector<vector<double> > A)
{
int n = A[0].size();
vector<vector<double> > Q(n,vector<double> (n));
int i,j,k;
for(k = 1;k<50;k++){
//repeat 50 times… well that's not precise. For some real matrixs that gives a good result, though.
Q = QR(A);
A = Multiply(A,Q);
}
for(i = 0;i<n;i++)
{
cout << A[i][i] << " ";
}
}
/**
* @brief Convert A to an upper Hessenberg Matrix
*
* @param A
*/
void Hessenberg(vector<vector<double> > &A)
{
int n = A[0].size();
double u = 1e-15;
vector<vector<double> > H(n,vector<double> (n));
vector<vector<double> > Q(n,vector<double> (n));
int i,j,k;
double beta;
k = 0;
for(k = 0;k<n-2;k++)
{
vector<double> h(n-k-1),v(n-k-1);
for(i = 0;i<n-k-1;i++){
h[i] = A[k+i+1][k];
}
v = Householder(h,beta);
H = HouseholderMatrix(v,beta,n);
A = Multiply(H,A);
A = Multiply(A,H);
}
for(i = 0;i<n;i++){
for(j = 0;j<n;j++)
{
if(fabs(A[i][j])<u){
A[i][j] = 0;
}
}
}
//Print(A);
}
vector<vector<double> > Francis(vector<vector<double> > H)//not &H!
{
//H is an upper Hessenberg matrix.
int n = H[0].size();
if(n==1){
vector<vector<double> > I(1,vector<double> (1));
I[0][0] = 1;
return I;
}
int m = n-1;
int i,j,k,q,r;
double u = 1e-15;
double s = H[m-1][m-1] + H[n-1][n-1];
double t = H[m-1][m-1]*H[n-1][n-1]-H[m-1][n-1]*H[n-1][m-1];
double beta;
vector<double> x(3);
vector<double> v(3);
vector<vector<double> > Q(n,vector<double> (n));
x[0] = H[0][0]*H[0][0]+H[0][1]*H[1][0]-s*H[0][0]+t;
x[1] = H[1][0]*(H[0][0]+H[1][1]-s);
if(n>=3){
x[2] = H[1][0]*H[2][1];
}
for(k = -1;k<n-3;k++)
{
v = Householder(x,beta);//Householder vector.
if(k>0){
q = k;//first row.
}else{
q = 0;
}
vector<vector<double> > H1(3,vector<double> (3));
H1 = HouseholderMatrix(v,beta,3);//Householder Matrix.
vector<vector<double> > P(n,vector<double> (n));
for(i = k+1;i<=k+3;i++){
for(j = k+1;j<=k+3;j++){
P[i][j] = H1[i-k-1][j-k-1];
}
}
for(i = 0;i<k+1;i++){
P[i][i] = 1;
}
for(i = k+4;i<n;i++){
P[i][i] = 1;
}
//Print(P);
if(k == -1){
Q = P;
}else{
Q = Multiply(Q,P);
}
H = Multiply(P,H);
H = Multiply(H,P);
x[0] = H[k+2][k+1];
x[1] = H[k+3][k+1];
if(k<n-4){
x[2] = H[k+4][k+1];
}
/*
vector<vector<double> > T(3,vector<double > (n-q));//temp Matrix.
for(i = k+1;i<k+4;i++){
for(j = q;j<n;j++){
T[i-k-1][j-q] = H[i][j];
}
}
T = Multiply(H1,T);
for(i = k+1;i<k+4;i++){
for(j = q;j<n;j++){
H[i][j] = T[i-k-1][j-q];
}
}
if(k+4<n-1){
r = k+4;//last column.
}else{
r = n-1;
}
vector<vector<double> > T2(r+1,vector<double > (3));
for(i = 0;i<=r;i++){
for(j = k+1;j<k+4;j++){
T2[i][j-k-1] = H[i][j];
}
}
T2 = Multiply(T2,H1);
for(i = 0;i<=r;i++){
for(j = k+1;j<k+4;j++){
H[i][j] = T2[i][j-k-1];
}
}
x[0] = H[k+2][k+1];
x[1] = H[k+3][k+1];
if(k<n-4){
x[2] = H[k+4][k+1];
}
*/
}
vector<double> x1(2);
x1[0] = x[0];
x1[1] = x[1];
vector<double> v1(2);
v1 = Householder(x1,beta);
vector<vector<double> > H2(2,vector<double> (2));
H2 = HouseholderMatrix(v1,beta,2);
vector<vector<double> > P1(n,vector<double> (n));
for(i = n-2;i<n;i++){
for(j = n-2;j<n;j++){
P1[i][j] = H2[i-n+2][j-n+2];
}
}
for(i = 0;i<n-2;i++){
P1[i][i] = 1;
}
H = Multiply(P1,H);
H = Multiply(H,P1);
if(n == 2){
Q = P1;
}else{
Q = Multiply(Q,P1);
}
/*
vector<vector<double> > Tr(2,vector<double > (3));
vector<vector<double> > Tc(n,vector<double > (2));
for(j = 0;j<2;j++){
for(i = 0;i<n;i++){
Tc[i][j] = H[i][n-2+j];
}
for(i = 0;i<3;i++){
Tr[j][i] = H[n-2+j][n-3+i];
}
}
Tr = Multiply(H2,Tr);
Tc = Multiply(Tc,H2);
for(j = 0;j<2;j++){
for(i = 0;i<n;i++){
H[i][n-2+j] = Tc[i][j];
}
for(i = 0;i<3;i++){
H[n-2+j][n-3+i] = Tr[j][i];
}
}
*/
for(i = 0;i<n;i++){
for(j = 0;j<n;j++)
{
if(fabs(H[i][j])<u){
H[i][j] = 0;
}
}
}
//Print(H);
return Q;
}
/**
* @brief subfunction of implicit QR
*
* @param A
* @param m
* @return true
* @return false
*/
bool IsUpper(vector<vector<double> > &A,int m)
{
int n = A[0].size();
if(A[n-m][n-m-1]!=0)return false;
if(m<=2)return true;
int i,j,k;
for(i = n-m+1;i<n;i++){
if(A[i][i-1]!=0){
if(i == n-m+1&&A[i+1][i]!=0){
return false;
}else if(i == n-1&&A[i-2][i-1]!=0){
return false;
}else if(A[i+1][i]!=0||A[i-2][i-1]!=0){
return false;
}
}
}
return true;
}
vector<double> EigVector(vector<vector<double> > A,double lambda)
{
int i,j,k = 0;
int n = A[0].size();
vector<double> b(n),v(n);
for(i = 0;i<n;i++){
A[i][i]-=lambda;
}
v = GaussColumnPivot(A,b);
return v;
}//I can't figure out how to use C++ to manipulate complex...if I use class "complex", I'm forced to rewrite whole Matrix.h\
to get the complex eigenvector...so I simply gave up.
/**
* @brief Implicit QR
*
* @param A
*/
vector<complex<double>> ImplicitQR(vector<vector<double> > &A)
{
int i,j,k = 0;
int m = 0,l = 0;
int n = A[0].size();
vector<complex<double>> eig(n);
complex<double> temp;
Hessenberg(A);
double u = 1e-22;
while((m!=n||l!=n)&&k<100){
for(i = 1;i<n;i++){
if(fabs(A[i][i-1])<u*(fabs(A[i][i])+fabs(A[i-1][i-1]))){
A[i][i-1] = 0;
}
}
m = 1;
while(IsUpper(A,m)){
m++;
}
m--;
for(i = n-m-1;i>=1;i--){
if(A[i][i-1] == 0){
break;
}
}
l = i;
//cout << "l:"<< l<< ",m:"<< m<<endl;
vector<vector<double> > H22(n-m-l,vector<double> (n-m-l));
vector<vector<double> > P1(n-m-l,vector<double> (n-m-l));
vector<vector<double> > P(n,vector<double> (n));
vector<vector<double> > PT(n,vector<double> (n));
//vector<vector<double> > H12(l,vector<double> (n-m-l));
//vector<vector<double> > H23(n-m-l,vector<double> (l));
for(i = 0;i<n-m-l;i++){
for(j = 0;j<n-m-l;j++){
H22[i][j] = A[i+l][j+l];
}
}
//Print(H22);
P1 = Francis(H22);
for(i = l;i<n-m;i++){
for(j = l;j<n-m;j++){
P[i][j] = P1[i-l][j-l];
}
}
for(i = 0;i<l;i++){
P[i][i] = 1;
}
for(i = n-m;i<n;i++){
P[i][i] = 1;
}
//Print(P);
PT = Transposition(P);
A = Multiply(PT,A);
A = Multiply(A,P);
for(i = 0;i<n;i++){
for(j = 0;j<n;j++)
{
if(fabs(A[i][j])<u){
A[i][j] = 0;
}
}
}
//Print(A);
k++;
}
//Print(A);
double a = 1,b,c,R,C;
double g;
for(i = 0;i<n-1;i++){
if(A[i+1][i] == 0){
R = A[i][i];
eig[i] = complex<double>(R,0);
}else{
b = -A[i][i]-A[i+1][i+1];
c = A[i][i]*A[i+1][i+1]-A[i+1][i]*A[i][i+1];
g = b*b-4*a*c;
if(g>=0){
R = 0.5*(-b+sqrt(g));
eig[i] = complex<double>(R,0);
R = 0.5*(-b-sqrt(g));
eig[++i] = complex<double>(R,0);
}else{
g = -g;
R = -0.5*b;
C = 0.5*sqrt(g);
eig[i] = complex<double>(R,C);
eig[++i] = complex<double>(R,-C);
}
}
}
if(i == n-1){
eig[i] = complex<double>(A[i][i],0);
}
return eig;
}
vector<vector<double> > Givens(double a,double b ,int j,int k,int n)
{
double c,s,t;
if(b == 0){
c = 1;
s = 0;
}else{
if(fabs(b)>fabs(a)){
t = a/b;s = 1/(sqrt(1+t*t));c = s*t;
}else{
t = b/a;s = 1/sqrt(1+t*t);s = c*t;
}
}
vector<vector<double> > A(n,vector<double> (n));
int i;
for(i = 0;i<n;i++){
A[i][i] = 1;
}
A[j][j] = c;
A[j][k] = s;
A[k][j] = -s;
A[k][k] = c;
return A;
}
vector<vector<double> > Wilkinson(vector<vector<double> > T)
{
int n = T[0].size();
if(n==1){
vector<vector<double> > I(1,vector<double> (1));
I[0][0] = 1;
return I;
}
vector<vector<double> > Q(n,vector<double> (n));
int i,j,k;
double d = (T[n-2][n-2]-T[n-1][n-1])/2;
double u = T[n-1][n-1]-T[n-1][n-2]*T[n-1][n-2]/(d+Sign(d)*sqrt(d*d+T[n-1][n-2]*T[n-1][n-2]));
double x = T[0][0]-u;
double z = T[1][0];
for(k = 0;k<n-1;k++){
vector<vector<double> > G(n,vector<double> (n));
vector<vector<double> > GT(n,vector<double> (n));
G = Givens(x,z,k,k+1,n);
GT = Transposition(G);
T = Multiply(G,T);
T = Multiply(T,GT);
if(k == 0){
Q = G;
}else{
Q = Multiply(G,Q);
}
if(k<n-2){
x = T[k+1][k];
z = T[k+2][k];
}
}
return Q;
}
bool IsUpper2(vector<vector<double> > &A,int m)
{
int n = A[0].size();
int i,j,k;
for(i = n-m+1;i<n;i++){
if(A[i][i-1]!=0){
return false;
}
}
return true;
}
vector<complex<double>> ImplicitQR2(vector<vector<double> > &A)
{
int i,j,k = 0;
int m = 0,l = 0;
int n = A[0].size();
vector<complex<double>> eig(n);
complex<double> temp;
double u = 1e-14;
while((m!=n||l!=n)&&k<100){
for(i = 1;i<n;i++){
if(fabs(A[i][i-1])<u*(fabs(A[i][i])+fabs(A[i-1][i-1]))){
A[i][i-1] = 0;
A[i-1][i] = 0;
}
}
m = 1;
while(IsUpper2(A,m)){
m++;
}
m--;
for(i = n-m-1;i>=1;i--){
if(A[i][i-1] == 0){
break;
}
}
l = i;
//cout << "l:"<< l<< ",m:"<< m<<endl;
vector<vector<double> > H22(n-m-l,vector<double> (n-m-l));
vector<vector<double> > P1(n-m-l,vector<double> (n-m-l));
vector<vector<double> > P(n,vector<double> (n));
vector<vector<double> > PT(n,vector<double> (n));
//vector<vector<double> > H12(l,vector<double> (n-m-l));
//vector<vector<double> > H23(n-m-l,vector<double> (l));
for(i = 0;i<n-m-l;i++){
for(j = 0;j<n-m-l;j++){
H22[i][j] = A[i+l][j+l];
}
}
//Print(H22);
P1 = Wilkinson(H22);
for(i = l;i<n-m;i++){
for(j = l;j<n-m;j++){
P[i][j] = P1[i-l][j-l];
}
}
for(i = 0;i<l;i++){
P[i][i] = 1;
}
for(i = n-m;i<n;i++){
P[i][i] = 1;
}
//Print(P);
PT = Transposition(P);
A = Multiply(P,A);
A = Multiply(A,PT);
for(i = 0;i<n;i++){
for(j = 0;j<n;j++)
{
if(fabs(A[i][j])<u){
A[i][j] = 0;
}
}
}
//Print(A);
k++;
}
//Print(A);
double a = 1,b,c,R,C;
double g;
for(i = 0;i<n-1;i++){
if(A[i+1][i] == 0){
R = A[i][i];
eig[i] = complex<double>(R,0);
}else{
b = -A[i][i]-A[i+1][i+1];
c = A[i][i]*A[i+1][i+1]-A[i+1][i]*A[i][i+1];
g = b*b-4*a*c;
if(g>=0){
R = 0.5*(-b+sqrt(g));
eig[i] = complex<double>(R,0);
R = 0.5*(-b-sqrt(g));
eig[++i] = complex<double>(R,0);
}else{
g = -g;
R = -0.5*b;
C = 0.5*sqrt(g);
eig[i] = complex<double>(R,C);
eig[++i] = complex<double>(R,-C);
}
}
}
if(i == n-1){
eig[i] = complex<double>(A[i][i],0);
}
return eig;
}
vector<vector<double> > JacobiEig(vector<vector<double> > A)
{
int i,j,k,p,q;
int n = A[0].size();
vector<double> temp1(n),temp2(n);
vector<vector<double> > Q(n,vector<double> (n));
double c,s,delta = 0,t1,t2;
for(i = 0;i<n;i++){
for(j = 0;j<n;j++){
if(i!=j){
delta+=A[i][j]*A[i][j];
}else{
Q[i][i] = 1;
}
}
}
delta = sqrt(delta);
while(delta>=1e-13){
int flag = 0;
for(p = 0;p<=n-1;p++){
for(q = 0;q<=n-1;q++){
if(fabs(A[p][q])>=delta&&p!=q){
double tao = (A[q][q]-A[p][p])/(2*A[p][q]);
double t = Sign(tao)/(fabs(tao)+sqrt(1+tao*tao));
c = 1.0/sqrt(1+t*t);
s = c*t;
//cout << "c:"<< c<<" s:"<<s<< endl;
for(i = 0;i<n;i++){
if(i == p){
temp1[i] = c*c*A[p][p]-2*s*c*A[p][q]+s*s*A[q][q];
temp2[i] = 0;
}else if(i == q){
temp1[i] = 0;
temp2[i] = s*s*A[p][p]+2*s*c*A[p][q]+c*c*A[q][q];
}else{
temp1[i] = c*A[i][p]-s*A[i][q];
temp2[i] = s*A[i][p]+c*A[i][q];
}
}
for(i = 0;i<n;i++){
A[i][p] = temp1[i];
A[p][i] = temp1[i];
A[i][q] = temp2[i];
A[q][i] = temp2[i];
t1 = Q[i][p];
t2 = Q[i][q];
Q[i][p] = c*t1-s*t2;
Q[i][q] = s*t1+c*t2;//construct Q.
}
flag = 1;
}
}
}
if(!flag){
delta/=n;
}
}
for(i = 0;i<n;i++){
cout << A[i][i]<< " ";
}
cout << endl;
return Q;
}
int AltCount(double u,vector<double> x,vector<double> y)
{
int n = x.size();
double q = x[0]-u;
int s = 0;
int i,j,k;
for(k = 0;k<n;k++){
if(q<0){
s++;
}
if(k<n-1){
if(q == 0){
q = fabs(y[k+1])+1e-14;
}
q = x[k+1]-u-y[k+1]*y[k+1]/q;
}
}
return s;
}
double Dich(vector<vector<double > > A,int m)
{
int n = A[0].size();
int i,j,k;
vector<double> x(n);
vector<double> y(n);
double u = 1e-14;
double upper = InfiniteNorm(A)+u;
double lower = -upper;//Eigenvalue belongs to [l,u].
for(i = 0;i<n;i++){
x[i] = A[i][i];
if(i == 0){
y[i] = 0;
}else{
y[i] = A[i-1][i];
}
}//x = {a_1,a_2,...,a_n} y = {0,b_1,...,b_n}
while(fabs(upper-lower)>=u){
//cout << upper << " "<<lower<<" " <<AltCount(upper,x,y)<<endl;
double mid = (upper+lower)/2;
if(AltCount(mid,x,y)>=m){
upper = mid;
}else{
lower = mid;
}
}
return (upper+lower)/2;
}
|
e84e2409272562ee179caa16d8d3ad01159d4db6
|
1bc2b8f8492352d05df99ead7b8238750103fcba
|
/app_service/tank_memory/tank_mm.c
|
da764817bbfd91ca1463423e4002bbd4004b3b50
|
[] |
no_license
|
wankuan/graduation_project
|
15336f8770444cd00c5859811cfa2e8bd74a2c42
|
6a96fa329c9d7515773ae1407b0e204df8619ccc
|
refs/heads/master
| 2020-12-29T22:15:48.264127 | 2020-06-21T15:41:32 | 2020-06-21T15:41:32 | 238,751,676 | 1 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,140 |
c
|
tank_mm.c
|
#include "tank_mm.h"
#include "tank_log_api.h"
#define FILE_NAME "tank_mm"
tank_status_t tank_mm_register(tank_mm_t *handler, uint32_t addr, uint32_t size, const char *name)
{
strncpy(handler->name, name, 32);
log_info("%s is register\n", handler->name);
handler->heap.addr = addr;
handler->heap.total_size = size;
handler->heap.pxEnd = NULL;
handler->heap.xFreeBytesRemaining = 0;
handler->heap.xMinimumEverFreeBytesRemaining = 0;
my_sem_creat(&handler->sem, 1);
return TANK_SUCCESS;
}
void *tank_mm_malloc(tank_mm_t *handler, uint32_t size)
{
void *p = NULL;
my_sem_wait(&handler->sem);
p = pvPortMalloc(&handler->heap, size);
my_sem_post(&handler->sem);
return p;
}
void *tank_mm_calloc(tank_mm_t *handler, uint32_t size)
{
void *p = NULL;
my_sem_wait(&handler->sem);
p = pvPortMalloc(&handler->heap, size);
if(p != NULL){
memset(p, 0, size);
}
my_sem_post(&handler->sem);
return p;
}
void tank_mm_free(tank_mm_t *handler, void *addr)
{
my_sem_wait(&handler->sem);
vPortFree(&handler->heap, addr);
my_sem_post(&handler->sem);
}
|
292a92e4960e1e547da1eb87e8d1a93a1c0a1077
|
2a8613dea0a99b064c30d7d2d2927c7e9bcf7540
|
/define定义常量 宏/define定义常量和宏/源.c
|
2d1907b893b868d27a22f6b2a84af8adc0f3dc3d
|
[] |
no_license
|
matchyo103/C_CODE
|
95d08d50b1332d8184f9d64d4bdf23246ff4bf74
|
ad5b07ee0523e52e55e54e886cb5dbeff5fbf4e9
|
refs/heads/master
| 2023-05-08T18:35:06.365857 | 2021-06-02T11:43:45 | 2021-06-02T11:43:45 | 364,916,727 | 0 | 0 | null | null | null | null |
GB18030
|
C
| false | false | 488 |
c
|
源.c
|
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
//#define定义标识符常量
//#define MAX 100
//#define可以定义宏--带参数
//函数的实现
int Max(int x, int y)
{
if (x > y)
return x;
else
return y;
}
//宏的定义
#define MAX(X, Y) X>Y?X:Y;
int main()
{
//int a = MAX;
int a = 10;
int b = 20;
//函数
int max = Max(a, b);
printf("max = %d\n", max);
//宏的方式
max = MAX(a, b); //-- > max = (a > b ? a : b;);
printf("max = %d\n", max);
return 0;
}
|
1263ce014f66a5cdbb00fcbff3dc235e60a7fe7a
|
2136dd4e96700de087f55413539341b9517b70ef
|
/pages.c
|
643765df9ec2d77a5ba95ce5fc4213b67ed76aa3
|
[] |
no_license
|
Matthieu14/Cafards
|
f1e0ecb7409488940e572522d173e1fcdea418d5
|
752738708b5a2fbe5251c6f6d7ed0d9bd0f27436
|
refs/heads/master
| 2021-07-20T23:29:10.219273 | 2017-10-31T10:29:17 | 2017-10-31T10:29:17 | 108,980,078 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 6,622 |
c
|
pages.c
|
#include "pages.h"
SDL_Surface *init ( char * imgFond_filename, SDL_Surface **pFond ){
srand(time(NULL));
SDL_Surface *fond;
fond = SDL_LoadBMP(imgFond_filename);
if (fond == NULL) {
fprintf(stderr, "Impossible de charger le fichier %s: %s\n",imgFond_filename, SDL_GetError());
exit(EXIT_FAILURE); // On quitte le programme
}
SDL_Surface *ecran;
ecran = SDL_SetVideoMode(fond->w, fond->h, 32, SDL_HWSURFACE|
SDL_DOUBLEBUF);
/* Test si ecran est NULL */
if (ecran == NULL){
fprintf(stderr, "Impossible de charger le mode vidéo : %s\n",
SDL_GetError());
exit(EXIT_FAILURE);
}
SDL_WM_SetCaption("cafards", NULL);
SDL_BlitSurface(fond, NULL, ecran, NULL);
*pFond = fond;
return ecran;
}
SDL_Surface *LoadSprites ( char * sprites_filename ){
SDL_Surface *cafard;
cafard = SDL_LoadBMP(sprites_filename);
if (cafard == NULL) {
fprintf(stderr, "Impossible de charger le mode vidéo : %s\n",
SDL_GetError());
exit(EXIT_FAILURE);
}
SDL_SetColorKey ( cafard, SDL_SRCCOLORKEY,SDL_MapRGB( cafard->format, 255, 255, 255 ) );
return cafard;
}
void DrawRoach ( Roach roach, SDL_Surface *ecran ){
SDL_Rect rect_src; // Rectangle source
SDL_Rect rect_dest; // Rectangle destination
rect_src.x = ( roach.dir % NB_SPRITES_P_LINE ) * ROACH_WIDTH;
rect_src.y = ( roach.dir / NB_SPRITES_P_LINE ) * ROACH_HEIGHT;
rect_src.w = ROACH_WIDTH;
rect_src.h = ROACH_HEIGHT;
rect_dest.x = roach.x;
rect_dest.y = roach.y;
SDL_BlitSurface(roach.sprites, &rect_src, ecran, &rect_dest);
}
/* Génère un entier aléatoire entre 0 et maxVal-1 */
int RandInt(int maxVal) {
return rand() % maxVal;
}
/* Création d'un cafard */
Roach CreateRoach( SDL_Surface *ecran, SDL_Surface *sprites ){
Roach roach;
roach.sprites = sprites; // surface correspondant au sprite sheet
roach.dir = RandInt(ROACH_ORIENTATIONS);
roach.x = RandInt(ecran->w - ROACH_WIDTH);
roach.y = RandInt(ecran->h - ROACH_HEIGHT);
roach.hidden = 0;
roach.steps = RandInt(MAX_STEPS);
roach.angle = roach.dir * ROACH_ANGLE / 180.0 * M_PI; // radians
roach.turnLeft = RandInt(2); // droitier: 0, gaucher: 1
return roach;
}
/* Teste si le cafard est complètement dans le rectangle spécifié */
int RoachInRect(int x, int y,int rectx, int recty, int rectwidth, int rectheight){
if (x < rectx) return 0;
if ((x + ROACH_WIDTH) > (rectx + rectwidth)) return 0;
if (y < recty) return 0;
if ((y + ROACH_HEIGHT) > (recty + rectheight)) return 0;
return 1;
}
/* Changement de direction */
void TurnRoach(Roach *roach){
if (roach->turnLeft) {
roach->dir += RandInt(3) + 1; // +1 à 3
if (roach->dir >= ROACH_ORIENTATIONS)
roach->dir -= ROACH_ORIENTATIONS;
} else {
roach->dir -= RandInt(3) + 1; // -1 à 3
if (roach->dir < 0)
roach->dir += ROACH_ORIENTATIONS;
}
roach->angle = roach->dir * ROACH_ANGLE / 180.0 * M_PI; //radians
}
/* Déplacement d'un cafard */
void MoveRoach(Roach *roaches, int nbRoaches, int index, float roachSpeed, SDL_Surface *ecran){
Roach *roach = &roaches[index];
int newX, newY;
int i;
if (roach->hidden==0){
newX = roach->x + (int)(roachSpeed * cos (roach->angle) );
newY = roach->y - (int)(roachSpeed * sin (roach->angle) );
// Si dans la fenetre
if (RoachInRect(newX, newY, 0, 0, ecran->w, ecran->h)) {
// Gestion des collisions
for ( i = 0; i < index; i++ ) {
if (RoachIntersectRect(newX, newY, roaches[i].x, roaches[i].y, ROACH_WIDTH, ROACH_HEIGHT)) {
TurnRoach(roach);
break;
}
}
// Le reste du code de la fonction est identique
roach->x = newX;
roach->y = newY;
if (roach->steps-- <= 0) {
TurnRoach(roach);
roach->steps = RandInt(MAX_STEPS);
}
} else {
TurnRoach(roach);
}
}
}
void DrawRoaches(Roach *roaches, int nbRoach, SDL_Surface *ecran){
int i;
for ( i = 0; i < nbRoach; i++ ) {
DrawRoach( roaches[i], ecran);
}
}
Roach *CreateRoaches ( SDL_Surface *ecran, SDL_Surface *sprites,int nbRoach ){
int i;
Roach * roach = malloc(nbRoach * sizeof(Roach));
for (i=0; i<nbRoach; i++){
roach[i]=CreateRoach(ecran,sprites);
}
return roach;
}
void MoveRoaches ( Roach *roaches, int nbRoach, float roachSpeed,SDL_Surface *ecran){
int i;
for (i=0; i< nbRoach; i++){
// MoveRoach(&roaches[i], ROACH_SPEED,ecran);
MoveRoach( roaches, nbRoach, i, roachSpeed, ecran );
}
}
/* Teste si le cafard est en intersection avec le rectangle spécifié */
int RoachIntersectRect(int x, int y, int rectx, int recty, int rectwidth, int rectheight){
if (x >= (rectx + rectwidth)) return 0;
if ((x + ROACH_WIDTH) <= rectx) return 0;
if (y >= (recty + rectheight)) return 0;
if ((y + ROACH_HEIGHT) <= recty) return 0;
return 1;
}
SDL_Surface *LoadImage ( char * img_filename, int x, int y){
SDL_Surface *tapis;
tapis = SDL_LoadBMP(img_filename);
tapis->clip_rect.x=x;
tapis->clip_rect.y=y;
if (tapis == NULL) {
fprintf(stderr, "Impossible de charger le mode vidéo : %s\n",
SDL_GetError());
exit(EXIT_FAILURE);
}
SDL_SetColorKey ( tapis, SDL_SRCCOLORKEY,SDL_MapRGB( tapis->format, 255, 255, 255 ) );
return tapis;
}
void DrawImage (SDL_Surface *img, SDL_Surface *ecran){
SDL_Rect rect_dest; // Rectangle destination
rect_dest.x = img->clip_rect.x;
rect_dest.y = img->clip_rect.y;
SDL_BlitSurface(img, NULL, ecran, &rect_dest);
}
/* Marque les cafards cachés */
int MarkHiddenRoaches(Roach *roaches,int nbRoaches,SDL_Surface *rect){
int i;
int nVisible = 0;
for ( i = 0; i < nbRoaches; i++ ) {
if (RoachInRect( roaches[i].x, roaches[i].y, rect->clip_rect.x,
rect->clip_rect.y, rect->w, rect->h)) {
roaches[i].hidden = 1;
}
else {
roaches[i].hidden = 0;
nVisible++;
}
}
return nVisible;
}
/* Teste si le point est dans le rectangle spécifié */
int PointInRect(int x, int y, int rectx, int recty, int rectwidth, int rectheight) {
if (x < rectx) return 0;
if (x > (rectx + rectwidth)) return 0;
if (y < recty) return 0;
if (y > (recty + rectheight)) return 0;
return 1;
}
int TapisInRect(int x, int y,int rectx, int recty, int rectwidth, int rectheight){
if (x < rectx) return 0;
if ((x + TAPIS_WIDTH) > (rectx + rectwidth)) return 0;
if (y < recty) return 0;
if ((y + TAPIS_HEIGHT) > (recty + rectheight)) return 0;
return 1;
}
|
b513150fa99d1c649964cb93f89305082294e047
|
c736b820c4143631c481f92b7c745212c1473dff
|
/DS/05/linkstack_string/main.c
|
68ede1cbc939694914c3ad8448d32d47a994e9e1
|
[] |
no_license
|
hbw199633/ARM
|
102d86244350f59fd87b1adf5a82ee3665f6ea1e
|
d9286de8f10c22757a4068c593415da5a8ffdb52
|
refs/heads/master
| 2020-03-28T22:35:01.981557 | 2018-09-18T07:08:27 | 2018-09-18T07:08:27 | 149,243,003 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 876 |
c
|
main.c
|
/***************************************************
> Copyright (C) 2017 ==KINGYI== All rights reserved.
> File Name: main.c
> Author: Kingyi
> Mail:joseph2009@163.com
> Created Time: 2017年06月23日 星期五 10时38分22秒
***************************************************/
#include "linkstack.h"
int main(int argc,const char* argv[])
{
// int i = 0;
datatype va = {0};
linkstack *ls = create_linkstack();
while(1)
{
printf("请输入字符串按'quit'退出\n");
scanf("%s",va.str);
if(strcmp(va.str,"quit")==0)
break;
push_linkstack(ls,va);
printf("push = %s \n",va.str);
}
/* find_linkstack(ls,buff);
printf("%d \n",buff);
printf("请输入要修改的栈顶元素的值\n");
scanf("%d",&va);
chg_linkstack(ls,va);
*/ while(!empty_linkstack(ls))
{
pop_linkstack(ls,&va);
printf("pop = %s \n",va.str);
}
free(ls);
return 0;
}
|
86b61a370d08f5c02a4123f7784a9916686098d4
|
2615cd8164541ed70df5bf34b127822e880d9ea5
|
/CS 0449 Computer Systems with C/assig4/e_driver/e.h
|
779f70be375b422553ebd98306e6dd17a33da613
|
[] |
no_license
|
ejh38/school
|
c58db114ca4d1dd6fff4d20bcad6ca6859dc4a52
|
56a3bc1214c9b183cbcd718cb30b887c6180b3a9
|
refs/heads/master
| 2020-12-28T19:22:42.801560 | 2014-04-05T20:19:42 | 2014-04-05T20:19:42 | 33,056,031 | 2 | 0 | null | 2015-03-29T00:38:05 | 2015-03-29T00:38:05 | null |
UTF-8
|
C
| false | false | 764 |
h
|
e.h
|
#ifndef _E_H
#define _E_H
//I define malloc as a macro so you can test out the code without building
//it into the kernel module, just to get your feet wet.
#ifdef GFP_KERNEL
#define MALLOC(s) kmalloc(s, GFP_KERNEL)
#define FREE(s) kfree(s)
#else
#define MALLOC(s) malloc(s)
#define FREE(s) free(s)
#endif
//This is a spigot algorithm for generating the digits of e without
//floating point math.
void e(char *buffer, int m)
{
int i, j, q;
int *A;
A = MALLOC(m * sizeof(int));
buffer[0] = '2';
int next = 1;
for ( j = 0; j < m; j++ )
A[j] = 1;
for ( i = 0; i < m - 2; i++ ) {
q = 0;
for ( j = m - 1; j >= 0; ) {
A[j] = 10 * A[j] + q;
q = A[j] / (j + 2);
A[j] %= (j + 2);
j--;
}
buffer[next++] = (q + '0');
}
FREE(A);
}
#endif
|
13c51f55f3207cf3c68e7d18f72baa15f0ca7ab0
|
7e2158492223974cd7cede3b328d73b5c9bd95a5
|
/2018/programas/strcpy.c
|
fc100ab8f97ceaa9ad717ce49e288ebc5edad2fb
|
[] |
no_license
|
profJulioMomente/EstruturasDados_2SI
|
32013fd50705b2fac07684d786262d52b8b79740
|
c8f035da4a2afc0fd23ecea94e3e8abb08bc7a3c
|
refs/heads/master
| 2021-01-02T22:46:27.331330 | 2018-10-27T19:49:14 | 2018-10-27T19:49:14 | 99,384,213 | 0 | 1 | null | null | null | null |
UTF-8
|
C
| false | false | 452 |
c
|
strcpy.c
|
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
main() {
char Str1[50], Str2[50], Str3[50];
printf("Str2: %s\n", Str2);
printf("Digite uma palavra: ");
gets(Str1);
printf("Copiando Str1 para Str2\n");
strcpy(Str2,Str1);
printf("Str1 %s\n",Str1);
printf("Str2 %s\n", Str2);
printf("Copiando \"Sistemas de Informacao\" para Str3\n");
strcpy(Str3,"Sistemas de Informacao");
printf("Str3 %s\n", Str3);
system("pause");
}
|
1ca2c82108e79b432eb65df436a1a12c8f8388f8
|
336583e22121f838ee62b327fc71aea1f3982677
|
/str7.c
|
9e65cb148c114380209bfd1b3d4bfc1e6f03eb19
|
[] |
no_license
|
Aish-29/my_first
|
5f6273f579b205af0e4889daaa9bd92b6e4bb590
|
876a315158425dd6f467bb7f927862bcab30af20
|
refs/heads/master
| 2020-07-21T04:12:04.350925 | 2019-10-04T12:19:43 | 2019-10-04T12:19:43 | 206,754,079 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 249 |
c
|
str7.c
|
#include<stdio.h>
void my_fun(char *p,char*q)
{
while(*q++=*p++);
for(int i=0;i<5;i++)
printf("%c",*(q+i));
}
int main()
{
char arr1[] ="hello";
char arr2[5];
char *p1=arr1;
char *p2=arr2;
my_fun(p1,p2);
return 0;
}
|
b4f668d21d7de420aa519f5132802046eeee4757
|
dc55155e4a3fa5c13f7a29feb4c88ff1f8b809f1
|
/7.3-Widening_the_Word_Width_of_Memories/src/word_width.h
|
191f5d9f589a95780070fcad3c6367e222a4e255
|
[] |
no_license
|
kaiiiz/hls-bluebook-memory-architectures
|
318f67b2aae1b8dabcedbb9d5b44415d1e59a14b
|
aaba2a259e1f25a82a29622e7b535e870ca6794b
|
refs/heads/main
| 2023-04-14T03:37:17.669656 | 2021-04-13T01:43:15 | 2021-04-13T01:43:15 | 354,569,084 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 321 |
h
|
word_width.h
|
#ifndef __WORD_WIDTH__
#define __WORD_WIDTH__
#define NUM_WORDS (9)
#include "ap_int.h"
void word_width(ap_int<8> x_in[NUM_WORDS], ap_int<8> y[NUM_WORDS / 3],
bool load);
void word_width_manual(ap_int<8> x_in[NUM_WORDS], ap_int<8> y[NUM_WORDS / 3],
bool load);
#endif
|
ec171e8ca2c0d248f46d6d225193f35c9c07688d
|
f40ca0ffdbce4be950902fca847d1e9288220158
|
/Voice2/libspeex/speexclient/speex_jitter_buffer.c
|
aa76d26c7827bf75b000f71209e4d374ebe38285
|
[
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-free-unknown"
] |
permissive
|
barronwaffles/RetroSpySDK
|
3cec710020847bea3b4de013f8afaccc943ad7db
|
7e6c8650eae74a830d178b4fb9ddb9b3f5348f5d
|
refs/heads/master
| 2020-04-14T01:05:07.499810 | 2018-11-14T17:53:31 | 2018-11-14T17:53:31 | 163,551,579 | 1 | 0 |
BSD-3-Clause
| 2018-12-30T00:50:35 | 2018-12-30T00:50:35 | null |
UTF-8
|
C
| false | false | 2,331 |
c
|
speex_jitter_buffer.c
|
#include <speex/speex_jitter.h>
#include "speex_jitter_buffer.h"
#ifndef NULL
#define NULL 0
#endif
void speex_jitter_init(SpeexJitter *jitter, void *decoder, int sampling_rate)
{
jitter->dec = decoder;
speex_decoder_ctl(decoder, SPEEX_GET_FRAME_SIZE, &jitter->frame_size);
jitter->packets = jitter_buffer_init(jitter->frame_size);
speex_bits_init(&jitter->current_packet);
jitter->valid_bits = 0;
}
void speex_jitter_destroy(SpeexJitter *jitter)
{
jitter_buffer_destroy(jitter->packets);
speex_bits_destroy(&jitter->current_packet);
}
void speex_jitter_put(SpeexJitter *jitter, char *packet, int len, int timestamp)
{
JitterBufferPacket p;
p.data = packet;
p.len = len;
p.timestamp = timestamp;
p.span = jitter->frame_size;
jitter_buffer_put(jitter->packets, &p);
}
void speex_jitter_get(SpeexJitter *jitter, spx_int16_t *out, int *current_timestamp)
{
int i;
int ret;
spx_int32_t activity;
char data[2048];
JitterBufferPacket packet;
packet.data = data;
packet.len = 2048;
if (jitter->valid_bits)
{
/* Try decoding last received packet */
ret = speex_decode_int(jitter->dec, &jitter->current_packet, out);
if (ret == 0)
{
jitter_buffer_tick(jitter->packets);
return;
} else {
jitter->valid_bits = 0;
}
}
ret = jitter_buffer_get(jitter->packets, &packet, jitter->frame_size, NULL);
if (ret != JITTER_BUFFER_OK)
{
/* No packet found */
/*fprintf (stderr, "lost/late frame\n");*/
/*Packet is late or lost*/
speex_decode_int(jitter->dec, NULL, out);
} else {
speex_bits_read_from(&jitter->current_packet, packet.data, packet.len);
/* Decode packet */
ret = speex_decode_int(jitter->dec, &jitter->current_packet, out);
if (ret == 0)
{
jitter->valid_bits = 1;
} else {
/* Error while decoding */
for (i=0;i<jitter->frame_size;i++)
out[i]=0;
}
}
speex_decoder_ctl(jitter->dec, SPEEX_GET_ACTIVITY, &activity);
if (activity < 30)
jitter_buffer_update_delay(jitter->packets, &packet, NULL);
jitter_buffer_tick(jitter->packets);
}
int speex_jitter_get_pointer_timestamp(SpeexJitter *jitter)
{
return jitter_buffer_get_pointer_timestamp(jitter->packets);
}
|
ed2ff8eafe8102dde2fa67180aede4035da72b61
|
c8438f31721efd2fed3ce0c5752ff033b1e71d72
|
/c64/vice-2.4/src/c64/cart/c64carthooks.c
|
cd6c097c2450c1bd55c1625d6a0a75b3d87df228
|
[
"GPL-2.0-or-later",
"GPL-1.0-or-later",
"GPL-2.0-only",
"MIT"
] |
permissive
|
century-arcade/src
|
8c9151d9847dd0f6d6b92f662444c70064b6845d
|
b6abba2679f5eaa5a71871b916459aab7ae50d1c
|
refs/heads/master
| 2022-06-21T09:50:06.176276 | 2022-06-15T23:00:41 | 2022-06-15T23:00:47 | 13,259,218 | 4 | 1 |
MIT
| 2022-06-16T14:24:17 | 2013-10-02T00:18:36 |
C
|
UTF-8
|
C
| false | false | 100,995 |
c
|
c64carthooks.c
|
/*
* c64carthooks.c - C64 cartridge emulation.
*
* Written by
* Andreas Boose <viceteam@t-online.de>
* groepaz <groepaz@gmx.net>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA.
*
*/
#include "vice.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "alarm.h"
#include "archdep.h"
#include "c64.h"
#include "c64cart.h"
#define CARTRIDGE_INCLUDE_SLOTMAIN_API
#include "c64cartsystem.h"
#undef CARTRIDGE_INCLUDE_SLOTMAIN_API
#include "c64export.h"
#include "c64mem.h"
#include "cartio.h"
#include "cartridge.h"
#include "cmdline.h"
#include "crt.h"
#include "interrupt.h"
#include "lib.h"
#include "log.h"
#include "machine.h"
#include "maincpu.h"
#include "mem.h"
#include "monitor.h"
#include "resources.h"
#include "snapshot.h"
#include "translate.h"
#include "types.h"
#include "util.h"
#define CARTRIDGE_INCLUDE_PRIVATE_API
#include "actionreplay2.h"
#include "actionreplay3.h"
#include "actionreplay4.h"
#include "actionreplay.h"
#include "atomicpower.h"
#include "c64acia.h"
#include "c64-generic.h"
#include "c64-midi.h"
#include "c64tpi.h"
#include "comal80.h"
#include "capture.h"
#include "delaep256.h"
#include "delaep64.h"
#include "delaep7x8.h"
#include "diashowmaker.h"
#include "digimax.h"
#include "dinamic.h"
#include "dqbb.h"
#include "ds12c887rtc.h"
#include "easyflash.h"
#include "epyxfastload.h"
#include "exos.h"
#include "expert.h"
#include "final.h"
#include "finalplus.h"
#include "final3.h"
#include "formel64.h"
#include "freezeframe.h"
#include "freezemachine.h"
#include "funplay.h"
#include "gamekiller.h"
#include "georam.h"
#include "gs.h"
#include "ide64.h"
#include "isepic.h"
#include "kcs.h"
#include "kingsoft.h"
#include "mach5.h"
#include "magicdesk.h"
#include "magicformel.h"
#include "magicvoice.h"
#include "mikroass.h"
#include "mmc64.h"
#include "mmcreplay.h"
#include "sfx_soundexpander.h"
#include "sfx_soundsampler.h"
#include "ocean.h"
#include "pagefox.h"
#include "prophet64.h"
#include "ramcart.h"
#include "retroreplay.h"
#include "reu.h"
#include "rexep256.h"
#include "rexutility.h"
#include "ross.h"
#include "silverrock128.h"
#include "simonsbasic.h"
#include "snapshot64.h"
#include "stardos.h"
#include "stb.h"
#include "supergames.h"
#include "superexplode5.h"
#include "supersnapshot.h"
#include "supersnapshot4.h"
#ifdef HAVE_TFE
#include "tfe.h"
#endif
#include "warpspeed.h"
#include "westermann.h"
#include "zaxxon.h"
#undef CARTRIDGE_INCLUDE_PRIVATE_API
/* #define DEBUGCART */
#ifdef DEBUGCART
#define DBG(x) printf x
#else
#define DBG(x)
#endif
/*
this file is supposed to include ONLY the implementations of all non-memory
related (which go into c64cartmem.c) hooks that wrap to the individual cart
implementations.
*/
/* from c64cart.c */
extern int mem_cartridge_type; /* Type of the cartridge attached. ("Main Slot") */
/* from c64cartmem.c */
extern export_t export_slot1;
extern export_t export_slotmain;
extern export_t export_passthrough; /* slot1 and main combined, goes into slot0 passthrough or c64 export */
/*
TODO: keep in sync with cartridge.h (currently highest: CARTRIDGE_DIASHOW_MAKER)
TODO: keep -cartXYZ options in sync with cartconv -t option
the following carts, which do not have any rom or ram, are NOT in the list below,
for obvious reasons:
CARTRIDGE_DIGIMAX
CARTRIDGE_DS12C887RTC
CARTRIDGE_SFX_SOUND_EXPANDER
CARTRIDGE_SFX_SOUND_SAMPLER
CARTRIDGE_MIDI_PASSPORT
CARTRIDGE_MIDI_DATEL
CARTRIDGE_MIDI_SEQUENTIAL
CARTRIDGE_MIDI_NAMESOFT
CARTRIDGE_MIDI_MAPLIN
CARTRIDGE_TFE
CARTRIDGE_TURBO232
all other carts should get a commandline option here like this:
-cartXYZ <name> attach a ram/rom image for cartridgeXYZ
*/
static const cmdline_option_t cmdline_options[] =
{
/* generic cartridges */
{ "-cart8", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_GENERIC_8KB, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_GENERIC_8KB_CART,
NULL, NULL },
{ "-cart16", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_GENERIC_16KB, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_GENERIC_16KB_CART,
NULL, NULL },
{ "-cartultimax", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_ULTIMAX, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_GENERIC_16KB_ULTIMAX_CART,
NULL, NULL },
/* smart-insert CRT */
{ "-cartcrt", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_CRT, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_CRT_CART,
NULL, NULL },
/* binary images: */
{ "-cartap", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_ATOMIC_POWER, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_ATOMIC_POWER_CART,
NULL, NULL },
{ "-cartar2", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_ACTION_REPLAY2, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_ACTION_REPLAY2_CART,
NULL, NULL },
{ "-cartar3", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_ACTION_REPLAY3, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_ACTION_REPLAY3_CART,
NULL, NULL },
{ "-cartar4", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_ACTION_REPLAY4, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_ACTION_REPLAY4_CART,
NULL, NULL },
{ "-cartar5", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_ACTION_REPLAY, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_ACTION_REPLAY_CART },
{ "-cartcap", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_CAPTURE, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_CAPTURE_CART,
NULL, NULL },
{ "-cartcomal", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_COMAL80, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_COMAL80_CART,
NULL, NULL },
{ "-cartdep256", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_DELA_EP256, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_DELA_EP256_CART,
NULL, NULL },
{ "-cartdep64", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_DELA_EP64, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_DELA_EP64_CART,
NULL, NULL },
{ "-cartdep7x8", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_DELA_EP7x8, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_DELA_EP7X8_CART,
NULL, NULL },
{ "-cartdin", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_DINAMIC, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_DINAMIC_CART,
NULL, NULL },
{ "-cartdsm", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_DIASHOW_MAKER, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_DIASHOW_MAKER_CART,
NULL, NULL },
{ "-cartdqbb", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_DQBB, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_DQBB_CART,
NULL, NULL },
{ "-carteasy", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_EASYFLASH, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_EASY_FLASH_CART,
NULL, NULL },
/* omitted: CARTRIDGE_EASYFLASH_XBANK (NO CART EXISTS!) */
{ "-cartepyx", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_EPYX_FASTLOAD, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_EPYX_FASTLOAD_CART,
NULL, NULL },
{ "-cartexos", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_EXOS, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_EXOS_CART,
NULL, NULL },
{ "-cartexpert", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_EXPERT, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_EXPERT_CART,
NULL, NULL },
{ "-cartf64", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_FORMEL64, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_F64_CART,
NULL, NULL },
{ "-cartfc1", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_FINAL_I, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_FC1_CART,
NULL, NULL },
{ "-cartfc3", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_FINAL_III, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_FC3_CART,
NULL, NULL },
{ "-cartfcplus", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_FINAL_PLUS, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_FCPLUS_CART,
NULL, NULL },
{ "-cartff", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_FREEZE_FRAME, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_FREEZE_FRAME_CART,
NULL, NULL },
{ "-cartfm", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_FREEZE_MACHINE, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_FREEZE_MACHINE_CART,
NULL, NULL },
{ "-cartfp", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_FUNPLAY, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_FP_PP_CART,
NULL, NULL },
{ "-cartgk", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_GAME_KILLER, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_GAME_KILLER_CART,
NULL, NULL },
{ "-cartgeoram", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_GEORAM, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_GEORAM_CART,
NULL, NULL },
{ "-cartgs", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_GS, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_GAME_SYSTEM_CART,
NULL, NULL },
{ "-cartide64", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_IDE64, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_IDE64_CART,
NULL, NULL },
{ "-cartieee", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_IEEE488, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_CBM_IEEE488_CART,
NULL, NULL },
{ "-cartisepic", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_ISEPIC, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_ISEPIC_CART,
NULL, NULL },
{ "-cartkcs", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_KCS_POWER, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_KCS_CART,
NULL, NULL },
{ "-cartks", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_KINGSOFT, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_KINGSOFT_CART,
NULL, NULL },
{ "-cartmach5", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_MACH5, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_MACH5_CART,
NULL, NULL },
{ "-cartmd", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_MAGIC_DESK, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_MAGIC_DESK_CART,
NULL, NULL },
{ "-cartmf", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_MAGIC_FORMEL, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_MAGIC_FORMEL_CART,
NULL, NULL },
{ "-cartmikro", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_MIKRO_ASSEMBLER, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_MIKRO_ASSEMBLER_CART,
NULL, NULL },
{ "-cartmmc64", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_MMC64, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_MMC64_CART,
NULL, NULL },
{ "-cartmmcr", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_MMC_REPLAY, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_MMC_REPLAY_CART,
NULL, NULL },
{ "-cartmv", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_MAGIC_VOICE, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_MAGIC_VOICE_CART,
NULL, NULL },
{ "-cartocean", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_OCEAN, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_OCEAN_CART,
NULL, NULL },
{ "-cartpf", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_PAGEFOX, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_PAGEFOX_CART,
NULL, NULL },
{ "-cartp64", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_P64, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_P64_CART,
NULL, NULL },
{ "-cartramcart", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_RAMCART, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_RAMCART_CART,
NULL, NULL },
{ "-cartreu", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_REU, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_REU_CART,
NULL, NULL },
{ "-cartrep256", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_REX_EP256, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_REX_EP256_CART,
NULL, NULL },
{ "-cartross", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_ROSS, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_ROSS_CART,
NULL, NULL },
{ "-cartrr", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_RETRO_REPLAY, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_RETRO_REPLAY_CART,
NULL, NULL },
{ "-cartru", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_REX, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_REX_UTILITY_CART,
NULL, NULL },
{ "-carts64", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_SNAPSHOT64, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_SS64_CART,
NULL, NULL },
{ "-cartsb", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_STRUCTURED_BASIC, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_STB_CART,
NULL, NULL },
{ "-cartse5", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_SUPER_EXPLODE_V5, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_SE5_CART,
NULL, NULL },
{ "-cartsg", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_SUPER_GAMES, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_SUPER_GAMES_CART,
NULL, NULL },
{ "-cartsilver", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_SILVERROCK_128, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_SILVERROCK_128_CART,
NULL, NULL },
{ "-cartsimon", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_SIMONS_BASIC, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_SIMONS_BASIC_CART,
NULL, NULL },
{ "-cartss4", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_SUPER_SNAPSHOT, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_SS4_CART,
NULL, NULL },
{ "-cartss5", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_SUPER_SNAPSHOT_V5, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_SS5_CART,
NULL, NULL },
{ "-cartstar", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_STARDOS, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_STARDOS_CART,
NULL, NULL },
{ "-cartwl", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_WESTERMANN, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_WESTERMANN_CART,
NULL, NULL },
{ "-cartws", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_WARPSPEED, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_WARPSPEED_CART,
NULL, NULL },
{ "-cartzaxxon", CALL_FUNCTION, 1,
cart_attach_cmdline, (void *)CARTRIDGE_ZAXXON, NULL, NULL,
USE_PARAM_ID, USE_DESCRIPTION_ID,
IDCLS_P_NAME, IDCLS_ATTACH_RAW_ZAXXON_CART,
NULL, NULL },
{ NULL }
};
int cart_cmdline_options_init(void)
{
/* "Slot 0" */
if (mmc64_cmdline_options_init() < 0
|| tpi_cmdline_options_init() < 0
/* "Slot 1" */
|| dqbb_cmdline_options_init() < 0
|| expert_cmdline_options_init() < 0
|| isepic_cmdline_options_init() < 0
|| ramcart_cmdline_options_init() < 0
/* "I/O Slot" */
#ifdef HAVE_MIDI
|| c64_midi_cmdline_options_init() < 0
#endif
#ifdef HAVE_RS232
|| aciacart_cmdline_options_init() < 0
#endif
|| digimax_cmdline_options_init() < 0
|| ds12c887rtc_cmdline_options_init() < 0
|| georam_cmdline_options_init() < 0
|| reu_cmdline_options_init() < 0
|| sfx_soundexpander_cmdline_options_init() < 0
|| sfx_soundsampler_cmdline_options_init() < 0
#ifdef HAVE_TFE
|| tfe_cmdline_options_init() < 0
#endif
/* "Main Slot" */
|| easyflash_cmdline_options_init() < 0
|| ide64_cmdline_options_init() < 0
|| mmcreplay_cmdline_options_init() < 0
|| retroreplay_cmdline_options_init() < 0
) {
return -1;
}
return cmdline_register_options(cmdline_options);
}
/* ------------------------------------------------------------------------- */
/*
resource init and de-init
- every cart that has an _init hook should also have a _shutdown hook!
*/
int cart_resources_init(void)
{
/* "Slot 0" */
if (mmc64_resources_init() < 0
|| magicvoice_resources_init() < 0
|| tpi_resources_init() < 0
/* "Slot 1" */
|| expert_resources_init() < 0
|| dqbb_resources_init() < 0
|| isepic_resources_init() < 0
|| ramcart_resources_init() < 0
/* "IO Slot" */
|| digimax_resources_init() < 0
|| ds12c887rtc_resources_init() < 0
|| georam_resources_init() < 0
#ifdef HAVE_MIDI
|| c64_midi_resources_init() < 0
#endif
|| reu_resources_init() < 0
|| sfx_soundexpander_resources_init() < 0
|| sfx_soundsampler_resources_init() < 0
#ifdef HAVE_TFE
|| tfe_resources_init() < 0
#endif
#ifdef HAVE_RS232
|| aciacart_resources_init() < 0
#endif
/* "Main Slot" */
|| easyflash_resources_init() < 0
|| ide64_resources_init() < 0
|| mmcreplay_resources_init() < 0
|| retroreplay_resources_init() < 0
) {
return -1;
}
return 0;
}
void cart_resources_shutdown(void)
{
/* "IO Slot" */
digimax_resources_shutdown();
ds12c887rtc_resources_shutdown();
georam_resources_shutdown();
#ifdef HAVE_MIDI
midi_resources_shutdown();
#endif
reu_resources_shutdown();
sfx_soundexpander_resources_shutdown();
sfx_soundsampler_resources_shutdown();
#ifdef HAVE_TFE
tfe_resources_shutdown();
#endif
#ifdef HAVE_RS232
aciacart_resources_shutdown();
#endif
/* "Main Slot" */
easyflash_resources_shutdown();
ide64_resources_shutdown();
mmcreplay_resources_shutdown();
retroreplay_resources_shutdown();
/* "Slot 1" */
expert_resources_shutdown();
dqbb_resources_shutdown();
ramcart_resources_shutdown();
isepic_resources_shutdown();
/* "Slot 0" */
mmc64_resources_shutdown();
magicvoice_resources_shutdown();
tpi_resources_shutdown();
}
/* ------------------------------------------------------------------------- */
/*
returns 1 if given cart type is in "Main Slot"
*/
int cart_is_slotmain(int type)
{
switch (type) {
/* slot 0 */
case CARTRIDGE_MMC64:
case CARTRIDGE_MAGIC_VOICE:
case CARTRIDGE_IEEE488:
/* slot 1 */
case CARTRIDGE_DQBB:
case CARTRIDGE_EXPERT:
case CARTRIDGE_ISEPIC:
case CARTRIDGE_RAMCART:
/* io slot */
case CARTRIDGE_DIGIMAX:
case CARTRIDGE_DS12C887RTC:
case CARTRIDGE_GEORAM:
case CARTRIDGE_MIDI_PASSPORT:
case CARTRIDGE_MIDI_DATEL:
case CARTRIDGE_MIDI_SEQUENTIAL:
case CARTRIDGE_MIDI_NAMESOFT:
case CARTRIDGE_MIDI_MAPLIN:
case CARTRIDGE_REU:
case CARTRIDGE_SFX_SOUND_EXPANDER:
case CARTRIDGE_SFX_SOUND_SAMPLER:
case CARTRIDGE_TFE:
case CARTRIDGE_TURBO232:
return 0;
default:
return 1;
}
}
int cart_getid_slot0(void)
{
if (mmc64_cart_enabled()) {
return CARTRIDGE_MMC64;
}
if (magicvoice_cart_enabled()) {
return CARTRIDGE_MAGIC_VOICE;
}
if (tpi_cart_enabled()) {
return CARTRIDGE_IEEE488;
}
return CARTRIDGE_NONE;
}
int cart_getid_slot1(void)
{
if (isepic_cart_active()) {
return CARTRIDGE_ISEPIC;
}
if (expert_cart_enabled()) {
return CARTRIDGE_EXPERT;
}
if (ramcart_cart_enabled()) {
return CARTRIDGE_RAMCART;
}
if (dqbb_cart_enabled()) {
return CARTRIDGE_DQBB;
}
return CARTRIDGE_NONE;
}
/* ------------------------------------------------------------------------- */
/*
returns 1 if the cartridge of the given type is enabled
- used by c64iec.c:iec_available_busses (checks for CARTRIDGE_IEEE488)
*/
int cart_type_enabled(int type)
{
switch (type) {
/* "Slot 0" */
case CARTRIDGE_IEEE488:
return tpi_cart_enabled();
case CARTRIDGE_MAGIC_VOICE:
return magicvoice_cart_enabled();
case CARTRIDGE_MMC64:
return mmc64_cart_enabled();
/* "Slot 1" */
case CARTRIDGE_DQBB:
return dqbb_cart_enabled();
case CARTRIDGE_EXPERT:
return expert_cart_enabled();
case CARTRIDGE_ISEPIC:
return isepic_cart_enabled();
case CARTRIDGE_RAMCART:
return ramcart_cart_enabled();
/* "I/O Slot" */
case CARTRIDGE_DIGIMAX:
return digimax_cart_enabled();
case CARTRIDGE_DS12C887RTC:
return ds12c887rtc_cart_enabled();
case CARTRIDGE_GEORAM:
return georam_cart_enabled();
#ifdef HAVE_MIDI
case CARTRIDGE_MIDI_PASSPORT:
return c64_midi_pp_cart_enabled();
case CARTRIDGE_MIDI_DATEL:
return c64_midi_datel_cart_enabled();
case CARTRIDGE_MIDI_SEQUENTIAL:
return c64_midi_seq_cart_enabled();
case CARTRIDGE_MIDI_NAMESOFT:
return c64_midi_nsoft_cart_enabled();
case CARTRIDGE_MIDI_MAPLIN:
return c64_midi_maplin_cart_enabled();
#endif
case CARTRIDGE_REU:
return reu_cart_enabled();
case CARTRIDGE_SFX_SOUND_EXPANDER:
return sfx_soundexpander_cart_enabled();
case CARTRIDGE_SFX_SOUND_SAMPLER:
return sfx_soundsampler_cart_enabled();
#ifdef HAVE_TFE
case CARTRIDGE_TFE:
return tfe_cart_enabled();
#endif
#ifdef HAVE_RS232
case CARTRIDGE_TURBO232:
return aciacart_cart_enabled();
#endif
/* Main Slot handled in c64cart.c:cartridge_type_enabled */
}
return 0;
}
/*
get filename of cart with given type
*/
const char *cart_get_file_name(int type)
{
switch (type) {
/* "Slot 0" */
case CARTRIDGE_IEEE488:
return tpi_get_file_name();
case CARTRIDGE_MAGIC_VOICE:
return magicvoice_get_file_name();
case CARTRIDGE_MMC64:
return mmc64_get_file_name();
/* "Slot 1" */
case CARTRIDGE_DQBB:
return dqbb_get_file_name();
case CARTRIDGE_EXPERT:
return expert_get_file_name();
case CARTRIDGE_ISEPIC:
return isepic_get_file_name();
case CARTRIDGE_RAMCART:
return ramcart_get_file_name();
/* "I/O Slot" */
case CARTRIDGE_GEORAM:
return georam_get_file_name();
case CARTRIDGE_REU:
return reu_get_file_name();
/* the following have no associated file */
case CARTRIDGE_DIGIMAX:
case CARTRIDGE_DS12C887RTC:
#ifdef HAVE_MIDI
case CARTRIDGE_MIDI_PASSPORT:
case CARTRIDGE_MIDI_DATEL:
case CARTRIDGE_MIDI_SEQUENTIAL:
case CARTRIDGE_MIDI_NAMESOFT:
case CARTRIDGE_MIDI_MAPLIN:
#endif
case CARTRIDGE_SFX_SOUND_EXPANDER:
case CARTRIDGE_SFX_SOUND_SAMPLER:
#ifdef HAVE_TFE
case CARTRIDGE_TFE:
#endif
#ifdef HAVE_RS232
case CARTRIDGE_TURBO232:
#endif
break;
/* Main Slot handled in c64cart.c:cartridge_get_file_name */
}
return ""; /* FIXME: NULL or empty string? */
}
/* ------------------------------------------------------------------------- */
/* FIXME: shutdown missing */
/* called once by machine_setup_context */
void cartridge_setup_context(machine_context_t *machine_context)
{
/* "Slot 0" */
tpi_setup_context(machine_context);
magicvoice_setup_context(machine_context);
/* mmc64 */
/* "Slot 1" */
/* "Main Slot" */
/* "I/O Slot" */
}
/* ------------------------------------------------------------------------- */
int cart_bin_attach(int type, const char *filename, BYTE *rawcart)
{
switch(type) {
/* "Slot 0" */
case CARTRIDGE_IEEE488:
return tpi_bin_attach(filename, rawcart);
case CARTRIDGE_MAGIC_VOICE:
return magicvoice_bin_attach(filename, rawcart);
case CARTRIDGE_MMC64:
return mmc64_bin_attach(filename, rawcart);
/* "Slot 1" */
case CARTRIDGE_DQBB:
return dqbb_bin_attach(filename, rawcart);
case CARTRIDGE_EXPERT:
return expert_bin_attach(filename, rawcart);
case CARTRIDGE_ISEPIC:
return isepic_bin_attach(filename, rawcart);
case CARTRIDGE_RAMCART:
return ramcart_bin_attach(filename, rawcart);
/* "I/O Slot" */
case CARTRIDGE_GEORAM:
return georam_bin_attach(filename, rawcart);
case CARTRIDGE_REU:
return reu_bin_attach(filename, rawcart);
/* "Main Slot" */
case CARTRIDGE_ACTION_REPLAY:
return actionreplay_bin_attach(filename, rawcart);
case CARTRIDGE_ACTION_REPLAY2:
return actionreplay2_bin_attach(filename, rawcart);
case CARTRIDGE_ACTION_REPLAY3:
return actionreplay3_bin_attach(filename, rawcart);
case CARTRIDGE_ACTION_REPLAY4:
return actionreplay4_bin_attach(filename, rawcart);
case CARTRIDGE_ATOMIC_POWER:
return atomicpower_bin_attach(filename, rawcart);
case CARTRIDGE_CAPTURE:
return capture_bin_attach(filename, rawcart);
case CARTRIDGE_COMAL80:
return comal80_bin_attach(filename, rawcart);
case CARTRIDGE_DELA_EP64:
return delaep64_bin_attach(filename, rawcart);
case CARTRIDGE_DELA_EP7x8:
return delaep7x8_bin_attach(filename, rawcart);
case CARTRIDGE_DELA_EP256:
return delaep256_bin_attach(filename, rawcart);
case CARTRIDGE_DIASHOW_MAKER:
return dsm_bin_attach(filename, rawcart);
case CARTRIDGE_DINAMIC:
return dinamic_bin_attach(filename, rawcart);
case CARTRIDGE_EASYFLASH:
return easyflash_bin_attach(filename, rawcart);
case CARTRIDGE_EASYFLASH_XBANK:
return -1; /* NO CART EXISTS */
case CARTRIDGE_EPYX_FASTLOAD:
return epyxfastload_bin_attach(filename, rawcart);
case CARTRIDGE_EXOS:
return exos_bin_attach(filename, rawcart);
case CARTRIDGE_FINAL_I:
return final_v1_bin_attach(filename, rawcart);
case CARTRIDGE_FINAL_III:
return final_v3_bin_attach(filename, rawcart);
case CARTRIDGE_FINAL_PLUS:
return final_plus_bin_attach(filename, rawcart);
case CARTRIDGE_FORMEL64:
return formel64_bin_attach(filename, rawcart);
case CARTRIDGE_FREEZE_FRAME:
return freezeframe_bin_attach(filename, rawcart);
case CARTRIDGE_FREEZE_MACHINE:
return freezemachine_bin_attach(filename, rawcart);
case CARTRIDGE_FUNPLAY:
return funplay_bin_attach(filename, rawcart);
case CARTRIDGE_GAME_KILLER:
return gamekiller_bin_attach(filename, rawcart);
case CARTRIDGE_GENERIC_8KB:
return generic_8kb_bin_attach(filename, rawcart);
case CARTRIDGE_GENERIC_16KB:
return generic_16kb_bin_attach(filename, rawcart);
case CARTRIDGE_GS:
return gs_bin_attach(filename, rawcart);
case CARTRIDGE_IDE64:
return ide64_bin_attach(filename, rawcart);
case CARTRIDGE_KCS_POWER:
return kcs_bin_attach(filename, rawcart);
case CARTRIDGE_KINGSOFT:
return kingsoft_bin_attach(filename, rawcart);
case CARTRIDGE_MACH5:
return mach5_bin_attach(filename, rawcart);
case CARTRIDGE_MAGIC_DESK:
return magicdesk_bin_attach(filename, rawcart);
case CARTRIDGE_MAGIC_FORMEL:
return magicformel_bin_attach(filename, rawcart);
case CARTRIDGE_MIKRO_ASSEMBLER:
return mikroass_bin_attach(filename, rawcart);
case CARTRIDGE_MMC_REPLAY:
return mmcreplay_bin_attach(filename, rawcart);
case CARTRIDGE_OCEAN:
return ocean_bin_attach(filename, rawcart);
case CARTRIDGE_P64:
return p64_bin_attach(filename, rawcart);
case CARTRIDGE_PAGEFOX:
return pagefox_bin_attach(filename, rawcart);
case CARTRIDGE_RETRO_REPLAY:
return retroreplay_bin_attach(filename, rawcart);
case CARTRIDGE_REX:
return rex_bin_attach(filename, rawcart);
case CARTRIDGE_REX_EP256:
return rexep256_bin_attach(filename, rawcart);
case CARTRIDGE_ROSS:
return ross_bin_attach(filename, rawcart);
case CARTRIDGE_SILVERROCK_128:
return silverrock128_bin_attach(filename, rawcart);
case CARTRIDGE_SIMONS_BASIC:
return simon_bin_attach(filename, rawcart);
case CARTRIDGE_SNAPSHOT64:
return snapshot64_bin_attach(filename, rawcart);
case CARTRIDGE_STARDOS:
return stardos_bin_attach(filename, rawcart);
case CARTRIDGE_STRUCTURED_BASIC:
return stb_bin_attach(filename, rawcart);
case CARTRIDGE_SUPER_EXPLODE_V5:
return se5_bin_attach(filename, rawcart);
case CARTRIDGE_SUPER_GAMES:
return supergames_bin_attach(filename, rawcart);
case CARTRIDGE_SUPER_SNAPSHOT:
return supersnapshot_v4_bin_attach(filename, rawcart);
case CARTRIDGE_SUPER_SNAPSHOT_V5:
return supersnapshot_v5_bin_attach(filename, rawcart);
case CARTRIDGE_ULTIMAX:
return generic_ultimax_bin_attach(filename, rawcart);
case CARTRIDGE_WARPSPEED:
return warpspeed_bin_attach(filename, rawcart);
case CARTRIDGE_WESTERMANN:
return westermann_bin_attach(filename, rawcart);
case CARTRIDGE_ZAXXON:
return zaxxon_bin_attach(filename, rawcart);
}
return -1;
}
/*
called by cartridge_attach_image after cart_crt/bin_attach
XYZ_config_setup should copy the raw cart image into the
individual implementations array.
*/
void cart_attach(int type, BYTE *rawcart)
{
cart_detach_conflicting(type);
switch (type) {
/* "Slot 0" */
case CARTRIDGE_IEEE488:
tpi_config_setup(rawcart);
break;
case CARTRIDGE_MAGIC_VOICE:
magicvoice_config_setup(rawcart);
break;
case CARTRIDGE_MMC64:
mmc64_config_setup(rawcart);
break;
/* "Slot 1" */
case CARTRIDGE_EXPERT:
expert_config_setup(rawcart);
break;
case CARTRIDGE_ISEPIC:
isepic_config_setup(rawcart);
break;
case CARTRIDGE_DQBB:
dqbb_config_setup(rawcart);
break;
case CARTRIDGE_RAMCART:
ramcart_config_setup(rawcart);
break;
/* "IO Slot" */
case CARTRIDGE_GEORAM:
georam_config_setup(rawcart);
break;
case CARTRIDGE_REU:
reu_config_setup(rawcart);
break;
/* "Main Slot" */
case CARTRIDGE_ACTION_REPLAY:
actionreplay_config_setup(rawcart);
break;
case CARTRIDGE_ACTION_REPLAY2:
actionreplay2_config_setup(rawcart);
break;
case CARTRIDGE_ACTION_REPLAY3:
actionreplay3_config_setup(rawcart);
break;
case CARTRIDGE_ACTION_REPLAY4:
actionreplay4_config_setup(rawcart);
break;
case CARTRIDGE_ATOMIC_POWER:
atomicpower_config_setup(rawcart);
break;
case CARTRIDGE_CAPTURE:
capture_config_setup(rawcart);
break;
case CARTRIDGE_COMAL80:
comal80_config_setup(rawcart);
break;
case CARTRIDGE_DELA_EP256:
delaep256_config_setup(rawcart);
break;
case CARTRIDGE_DELA_EP64:
delaep64_config_setup(rawcart);
break;
case CARTRIDGE_DELA_EP7x8:
delaep7x8_config_setup(rawcart);
break;
case CARTRIDGE_DIASHOW_MAKER:
dsm_config_setup(rawcart);
break;
case CARTRIDGE_DINAMIC:
dinamic_config_setup(rawcart);
break;
case CARTRIDGE_EASYFLASH:
easyflash_config_setup(rawcart);
break;
case CARTRIDGE_EPYX_FASTLOAD:
epyxfastload_config_setup(rawcart);
break;
case CARTRIDGE_EXOS:
exos_config_setup(rawcart);
break;
case CARTRIDGE_FINAL_I:
final_v1_config_setup(rawcart);
break;
case CARTRIDGE_FINAL_III:
final_v3_config_setup(rawcart);
break;
case CARTRIDGE_FINAL_PLUS:
final_plus_config_setup(rawcart);
break;
case CARTRIDGE_FORMEL64:
formel64_config_setup(rawcart);
break;
case CARTRIDGE_FREEZE_FRAME:
freezeframe_config_setup(rawcart);
break;
case CARTRIDGE_FREEZE_MACHINE:
freezemachine_config_setup(rawcart);
break;
case CARTRIDGE_FUNPLAY:
funplay_config_setup(rawcart);
break;
case CARTRIDGE_GAME_KILLER:
gamekiller_config_setup(rawcart);
break;
case CARTRIDGE_GENERIC_8KB:
generic_8kb_config_setup(rawcart);
break;
case CARTRIDGE_GENERIC_16KB:
generic_16kb_config_setup(rawcart);
break;
case CARTRIDGE_GS:
gs_config_setup(rawcart);
break;
case CARTRIDGE_IDE64:
ide64_config_setup(rawcart);
break;
case CARTRIDGE_KCS_POWER:
kcs_config_setup(rawcart);
break;
case CARTRIDGE_KINGSOFT:
kingsoft_config_setup(rawcart);
break;
case CARTRIDGE_MACH5:
mach5_config_setup(rawcart);
break;
case CARTRIDGE_MAGIC_DESK:
magicdesk_config_setup(rawcart);
break;
case CARTRIDGE_MAGIC_FORMEL:
magicformel_config_setup(rawcart);
break;
case CARTRIDGE_MIKRO_ASSEMBLER:
mikroass_config_setup(rawcart);
break;
case CARTRIDGE_MMC_REPLAY:
mmcreplay_config_setup(rawcart);
break;
case CARTRIDGE_OCEAN:
ocean_config_setup(rawcart);
break;
case CARTRIDGE_P64:
p64_config_setup(rawcart);
break;
case CARTRIDGE_PAGEFOX:
pagefox_config_setup(rawcart);
break;
case CARTRIDGE_RETRO_REPLAY:
retroreplay_config_setup(rawcart);
break;
case CARTRIDGE_REX:
rex_config_setup(rawcart);
break;
case CARTRIDGE_REX_EP256:
rexep256_config_setup(rawcart);
break;
case CARTRIDGE_ROSS:
ross_config_setup(rawcart);
break;
case CARTRIDGE_SILVERROCK_128:
silverrock128_config_setup(rawcart);
break;
case CARTRIDGE_SIMONS_BASIC:
simon_config_setup(rawcart);
break;
case CARTRIDGE_SNAPSHOT64:
snapshot64_config_setup(rawcart);
break;
case CARTRIDGE_STARDOS:
stardos_config_setup(rawcart);
break;
case CARTRIDGE_STRUCTURED_BASIC:
stb_config_setup(rawcart);
break;
case CARTRIDGE_SUPER_EXPLODE_V5:
se5_config_setup(rawcart);
break;
case CARTRIDGE_SUPER_GAMES:
supergames_config_setup(rawcart);
break;
case CARTRIDGE_SUPER_SNAPSHOT:
supersnapshot_v4_config_setup(rawcart);
break;
case CARTRIDGE_SUPER_SNAPSHOT_V5:
supersnapshot_v5_config_setup(rawcart);
break;
case CARTRIDGE_ULTIMAX:
generic_ultimax_config_setup(rawcart);
break;
case CARTRIDGE_WARPSPEED:
warpspeed_config_setup(rawcart);
break;
case CARTRIDGE_WESTERMANN:
westermann_config_setup(rawcart);
break;
case CARTRIDGE_ZAXXON:
zaxxon_config_setup(rawcart);
break;
default:
DBG(("CART: no attach hook %d\n", type));
break;
}
}
/* only one of the "Slot 0" carts can be enabled at a time */
static int slot0conflicts[]=
{
CARTRIDGE_IEEE488,
CARTRIDGE_MAGIC_VOICE,
CARTRIDGE_MMC64,
0
};
/* only one of the "Slot 1" carts can be enabled at a time */
static int slot1conflicts[]=
{
CARTRIDGE_EXPERT,
CARTRIDGE_ISEPIC,
CARTRIDGE_DQBB,
CARTRIDGE_RAMCART,
0
};
void cart_detach_conflicts0(int *list, int type)
{
int *l = list;
/* find in list */
while (*l != 0) {
if (*l == type) {
/* if in list, remove all others */
while (*list != 0) {
if (*list != type) {
if (cartridge_type_enabled(*list)) {
DBG(("CART: detach conflicting cart: %d (only one Slot 0 cart can be active)\n", *list));
cartridge_detach_image(*list);
}
}
list++;
}
return;
}
l++;
}
}
void cart_detach_conflicting(int type)
{
DBG(("CART: detach conflicting for type: %d ...\n", type));
cart_detach_conflicts0(slot0conflicts, type);
cart_detach_conflicts0(slot1conflicts, type);
}
/*
attach a cartridge without setting an image name
*/
int cartridge_enable(int type)
{
DBG(("CART: enable type: %d\n", type));
switch (type) {
/* "Slot 0" */
case CARTRIDGE_IEEE488:
tpi_enable();
break;
case CARTRIDGE_MAGIC_VOICE:
magicvoice_enable();
break;
case CARTRIDGE_MMC64:
mmc64_enable();
break;
/* "Slot 1" */
case CARTRIDGE_DQBB:
dqbb_enable();
break;
case CARTRIDGE_EXPERT:
expert_enable();
break;
case CARTRIDGE_ISEPIC:
isepic_enable();
break;
case CARTRIDGE_RAMCART:
ramcart_enable();
break;
/* "I/O Slot" */
case CARTRIDGE_DIGIMAX:
digimax_enable();
break;
case CARTRIDGE_DS12C887RTC:
ds12c887rtc_enable();
break;
case CARTRIDGE_GEORAM:
georam_enable();
break;
#ifdef HAVE_MIDI
case CARTRIDGE_MIDI_PASSPORT:
case CARTRIDGE_MIDI_DATEL:
case CARTRIDGE_MIDI_SEQUENTIAL:
case CARTRIDGE_MIDI_NAMESOFT:
case CARTRIDGE_MIDI_MAPLIN:
c64_midi_enable();
break;
#endif
case CARTRIDGE_REU:
reu_enable();
break;
case CARTRIDGE_SFX_SOUND_EXPANDER:
sfx_soundexpander_enable();
break;
case CARTRIDGE_SFX_SOUND_SAMPLER:
sfx_soundsampler_enable();
break;
#ifdef HAVE_TFE
case CARTRIDGE_TFE:
tfe_enable();
break;
#endif
#ifdef HAVE_RS232
case CARTRIDGE_TURBO232:
aciacart_enable();
break;
#endif
/* "Main Slot" */
default:
DBG(("CART: no enable hook %d\n", type));
break;
}
cart_detach_conflicting(type);
if (cart_type_enabled(type)) {
return 0;
}
return -1;
}
/*
detach all cartridges
- carts not in "Main Slot" must make sure their _detach hook does not
fail when it is called and the cart is not actually attached.
*/
void cart_detach_all(void)
{
DBG(("CART: detach all\n"));
/* "slot 0" */
tpi_detach();
magicvoice_detach();
mmc64_detach();
/* "Slot 1" */
dqbb_detach();
expert_detach();
isepic_detach();
ramcart_detach();
/* "io Slot" */
digimax_detach();
ds12c887rtc_detach();
georam_detach();
#ifdef HAVE_MIDI
c64_midi_detach();
#endif
reu_detach();
sfx_soundexpander_detach();
sfx_soundsampler_detach();
#ifdef HAVE_TFE
tfe_detach();
#endif
#ifdef HAVE_RS232
aciacart_detach();
#endif
/* "Main Slot" */
cart_detach_slotmain();
}
/*
detach a cartridge
- carts that are not "main" cartridges can be disabled individually
- carts not in "Main Slot" must make sure their _detach hook does not
fail when it is called and the cart is not actually attached.
*/
void cart_detach(int type)
{
DBG(("CART: cart_detach ID: %d\n", type));
switch (type) {
/* "Slot 0" */
case CARTRIDGE_IEEE488:
tpi_detach();
break;
case CARTRIDGE_MAGIC_VOICE:
magicvoice_detach();
break;
case CARTRIDGE_MMC64:
mmc64_detach();
break;
/* "Slot 1" */
case CARTRIDGE_DQBB:
dqbb_detach();
break;
case CARTRIDGE_EXPERT:
expert_detach();
break;
case CARTRIDGE_ISEPIC:
isepic_detach();
break;
case CARTRIDGE_RAMCART:
ramcart_detach();
break;
/* "IO Slot" */
case CARTRIDGE_DIGIMAX:
digimax_detach();
break;
case CARTRIDGE_DS12C887RTC:
ds12c887rtc_detach();
break;
case CARTRIDGE_GEORAM:
georam_detach();
break;
#ifdef HAVE_MIDI
case CARTRIDGE_MIDI_PASSPORT:
case CARTRIDGE_MIDI_DATEL:
case CARTRIDGE_MIDI_SEQUENTIAL:
case CARTRIDGE_MIDI_NAMESOFT:
case CARTRIDGE_MIDI_MAPLIN:
c64_midi_detach();
break;
#endif
case CARTRIDGE_REU:
reu_detach();
break;
case CARTRIDGE_SFX_SOUND_EXPANDER:
sfx_soundexpander_detach();
break;
case CARTRIDGE_SFX_SOUND_SAMPLER:
sfx_soundsampler_detach();
break;
#ifdef HAVE_TFE
case CARTRIDGE_TFE:
tfe_detach();
break;
#endif
#ifdef HAVE_RS232
case CARTRIDGE_TURBO232:
aciacart_detach();
break;
#endif
/* "Main Slot" */
case CARTRIDGE_ACTION_REPLAY:
actionreplay_detach();
break;
case CARTRIDGE_ACTION_REPLAY2:
actionreplay2_detach();
break;
case CARTRIDGE_ACTION_REPLAY3:
actionreplay3_detach();
break;
case CARTRIDGE_ACTION_REPLAY4:
actionreplay4_detach();
break;
case CARTRIDGE_ATOMIC_POWER:
atomicpower_detach();
break;
case CARTRIDGE_CAPTURE:
capture_detach();
break;
case CARTRIDGE_COMAL80:
comal80_detach();
break;
case CARTRIDGE_DELA_EP64:
delaep64_detach();
break;
case CARTRIDGE_DELA_EP7x8:
delaep7x8_detach();
break;
case CARTRIDGE_DELA_EP256:
delaep256_detach();
break;
case CARTRIDGE_DIASHOW_MAKER:
dsm_detach();
break;
case CARTRIDGE_DINAMIC:
dinamic_detach();
break;
case CARTRIDGE_EASYFLASH:
easyflash_detach();
break;
case CARTRIDGE_EPYX_FASTLOAD:
epyxfastload_detach();
break;
case CARTRIDGE_EXOS:
exos_detach();
break;
case CARTRIDGE_FINAL_I:
final_v1_detach();
break;
case CARTRIDGE_FINAL_III:
final_v3_detach();
break;
case CARTRIDGE_FINAL_PLUS:
final_plus_detach();
break;
case CARTRIDGE_FORMEL64:
formel64_detach();
break;
case CARTRIDGE_FREEZE_FRAME:
freezeframe_detach();
break;
case CARTRIDGE_FREEZE_MACHINE:
freezemachine_detach();
break;
case CARTRIDGE_FUNPLAY:
funplay_detach();
break;
case CARTRIDGE_GENERIC_16KB:
generic_16kb_detach();
break;
case CARTRIDGE_GENERIC_8KB:
generic_8kb_detach();
break;
case CARTRIDGE_GS:
gs_detach();
break;
case CARTRIDGE_IDE64:
ide64_detach();
break;
case CARTRIDGE_KCS_POWER:
kcs_detach();
break;
case CARTRIDGE_KINGSOFT:
kingsoft_detach();
break;
case CARTRIDGE_MACH5:
mach5_detach();
break;
case CARTRIDGE_MAGIC_DESK:
magicdesk_detach();
break;
case CARTRIDGE_MAGIC_FORMEL:
magicformel_detach();
break;
case CARTRIDGE_MIKRO_ASSEMBLER:
mikroass_detach();
break;
case CARTRIDGE_MMC_REPLAY:
mmcreplay_detach();
break;
case CARTRIDGE_OCEAN:
ocean_detach();
break;
case CARTRIDGE_PAGEFOX:
pagefox_detach();
break;
case CARTRIDGE_RETRO_REPLAY:
retroreplay_detach();
break;
case CARTRIDGE_REX:
rex_detach();
break;
case CARTRIDGE_REX_EP256:
rexep256_detach();
break;
case CARTRIDGE_ROSS:
ross_detach();
break;
case CARTRIDGE_SILVERROCK_128:
silverrock128_detach();
break;
case CARTRIDGE_SIMONS_BASIC:
simon_detach();
break;
case CARTRIDGE_SNAPSHOT64:
snapshot64_detach();
break;
case CARTRIDGE_STARDOS:
stardos_detach();
break;
case CARTRIDGE_STRUCTURED_BASIC:
stb_detach();
break;
case CARTRIDGE_SUPER_EXPLODE_V5:
se5_detach();
break;
case CARTRIDGE_SUPER_GAMES:
supergames_detach();
break;
case CARTRIDGE_SUPER_SNAPSHOT:
supersnapshot_v4_detach();
break;
case CARTRIDGE_SUPER_SNAPSHOT_V5:
supersnapshot_v5_detach();
break;
case CARTRIDGE_ULTIMAX:
generic_ultimax_detach();
break;
case CARTRIDGE_WARPSPEED:
warpspeed_detach();
break;
case CARTRIDGE_WESTERMANN:
westermann_detach();
break;
case CARTRIDGE_ZAXXON:
zaxxon_detach();
break;
default:
DBG(("CART: no detach hook ID: %d\n", type));
break;
}
}
/* called once by cartridge_init at machine init */
void cart_init(void)
{
DBG(("CART: cart_init\n"));
/* "Slot 0" */
mmc64_init();
magicvoice_init();
tpi_init();
/* "Slot 1" */
ramcart_init();
/* isepic_init(); */
/* expert_init(); */
/* dqbb_init(); */
/* "Main Slot" */
/* "IO Slot" */
/* digimax */
/* ds12c887rtc */
georam_init();
#ifdef HAVE_MIDI
midi_init();
#endif
reu_init();
/* sfx sound expander */
/* sfx sound sampler */
#ifdef HAVE_TFE
tfe_init();
#endif
#ifdef HAVE_RS232
aciacart_init();
#endif
}
/* Initialize RAM for power-up. */
void cartridge_ram_init(void)
{
memset(export_ram0, 0xff, C64CART_RAM_LIMIT);
}
/* called once by c64.c:machine_specific_shutdown at machine shutdown */
void cartridge_shutdown(void)
{
/* "Slot 0" */
tpi_shutdown();
magicvoice_shutdown();
/* mmc64_shutdown(); */
/* "Main Slot" */
/* "Slot 1" */
/* "IO Slot" */
}
/*
called from c64mem.c:mem_initialize_memory (calls XYZ_config_init)
*/
void cartridge_init_config(void)
{
/* "Main Slot" */
switch (mem_cartridge_type) {
case CARTRIDGE_STARDOS:
stardos_config_init();
break;
case CARTRIDGE_ACTION_REPLAY:
actionreplay_config_init();
break;
case CARTRIDGE_ACTION_REPLAY2:
actionreplay2_config_init();
break;
case CARTRIDGE_ACTION_REPLAY3:
actionreplay3_config_init();
break;
case CARTRIDGE_ACTION_REPLAY4:
actionreplay4_config_init();
break;
case CARTRIDGE_ATOMIC_POWER:
atomicpower_config_init();
break;
case CARTRIDGE_CAPTURE:
capture_config_init();
break;
case CARTRIDGE_COMAL80:
comal80_config_init();
break;
case CARTRIDGE_DELA_EP64:
delaep64_config_init();
break;
case CARTRIDGE_DELA_EP7x8:
delaep7x8_config_init();
break;
case CARTRIDGE_DELA_EP256:
delaep256_config_init();
break;
case CARTRIDGE_DIASHOW_MAKER:
dsm_config_init();
break;
case CARTRIDGE_DINAMIC:
dinamic_config_init();
break;
case CARTRIDGE_EASYFLASH:
easyflash_config_init();
break;
case CARTRIDGE_EPYX_FASTLOAD:
epyxfastload_config_init();
break;
case CARTRIDGE_EXOS:
exos_config_init();
break;
case CARTRIDGE_FINAL_I:
final_v1_config_init();
break;
case CARTRIDGE_FINAL_PLUS:
final_plus_config_init();
break;
case CARTRIDGE_FINAL_III:
final_v3_config_init();
break;
case CARTRIDGE_FORMEL64:
formel64_config_init();
break;
case CARTRIDGE_FREEZE_FRAME:
freezeframe_config_init();
break;
case CARTRIDGE_FREEZE_MACHINE:
freezemachine_config_init();
break;
case CARTRIDGE_FUNPLAY:
funplay_config_init();
break;
case CARTRIDGE_GAME_KILLER:
gamekiller_config_init();
break;
case CARTRIDGE_GENERIC_8KB:
generic_8kb_config_init();
break;
case CARTRIDGE_GENERIC_16KB:
generic_16kb_config_init();
break;
case CARTRIDGE_GS:
gs_config_init();
break;
case CARTRIDGE_IDE64:
ide64_config_init();
break;
case CARTRIDGE_KCS_POWER:
kcs_config_init();
break;
case CARTRIDGE_KINGSOFT:
kingsoft_config_init();
break;
case CARTRIDGE_MACH5:
mach5_config_init();
break;
case CARTRIDGE_MAGIC_DESK:
magicdesk_config_init();
break;
case CARTRIDGE_MAGIC_FORMEL:
magicformel_config_init();
break;
case CARTRIDGE_MIKRO_ASSEMBLER:
mikroass_config_init();
break;
case CARTRIDGE_MMC_REPLAY:
mmcreplay_config_init();
break;
case CARTRIDGE_OCEAN:
ocean_config_init();
break;
case CARTRIDGE_P64:
p64_config_init();
break;
case CARTRIDGE_PAGEFOX:
pagefox_config_init();
break;
case CARTRIDGE_RETRO_REPLAY:
retroreplay_config_init();
break;
case CARTRIDGE_REX:
rex_config_init();
break;
case CARTRIDGE_REX_EP256:
rexep256_config_init();
break;
case CARTRIDGE_ROSS:
ross_config_init();
break;
case CARTRIDGE_SILVERROCK_128:
silverrock128_config_init();
break;
case CARTRIDGE_SIMONS_BASIC:
simon_config_init();
break;
case CARTRIDGE_SNAPSHOT64:
snapshot64_config_init();
break;
case CARTRIDGE_STRUCTURED_BASIC:
stb_config_init();
break;
case CARTRIDGE_SUPER_EXPLODE_V5:
se5_config_init();
break;
case CARTRIDGE_SUPER_SNAPSHOT:
supersnapshot_v4_config_init();
break;
case CARTRIDGE_SUPER_SNAPSHOT_V5:
supersnapshot_v5_config_init();
break;
case CARTRIDGE_SUPER_GAMES:
supergames_config_init();
break;
case CARTRIDGE_ULTIMAX:
generic_ultimax_config_init();
break;
case CARTRIDGE_WARPSPEED:
warpspeed_config_init();
break;
case CARTRIDGE_WESTERMANN:
westermann_config_init();
break;
case CARTRIDGE_ZAXXON:
zaxxon_config_init();
break;
/* FIXME: add all missing ones instead of using the default */
case CARTRIDGE_NONE:
break;
default:
DBG(("CART: no init hook ID: %d\n", mem_cartridge_type));
cart_config_changed_slotmain(CMODE_RAM, CMODE_RAM, CMODE_READ);
break;
}
/* "Slot 1" */
if (ramcart_cart_enabled()) {
ramcart_init_config();
}
if (dqbb_cart_enabled()) {
dqbb_init_config();
}
if (expert_cart_enabled()) {
expert_config_init();
}
if (isepic_cart_enabled()) {
isepic_config_init();
}
cart_passthrough_changed();
/* "Slot 0" */
if (magicvoice_cart_enabled()) {
magicvoice_config_init((struct export_s*)&export_passthrough);
} else if (mmc64_cart_enabled()) {
mmc64_config_init((struct export_s*)&export_passthrough);
} else if (tpi_cart_enabled()) {
tpi_config_init((struct export_s*)&export_passthrough);
}
}
/*
called by c64.c:machine_specific_reset (calls XYZ_reset)
the reset signal goes to all active carts. we call the hooks
in "back to front" order, so carts closer to the "front" will
win with whatever they do.
*/
void cartridge_reset(void)
{
cart_unset_alarms();
cart_reset_memptr();
/* "IO Slot" */
if (digimax_cart_enabled()) {
digimax_reset();
}
if (ds12c887rtc_cart_enabled()) {
ds12c887rtc_reset();
}
if (georam_cart_enabled()) {
georam_reset();
}
#ifdef HAVE_MIDI
if (c64_midi_cart_enabled()) {
midi_reset();
}
#endif
if (reu_cart_enabled()) {
reu_reset();
}
if (sfx_soundexpander_cart_enabled()) {
sfx_soundexpander_reset();
}
if (sfx_soundsampler_cart_enabled()) {
sfx_soundsampler_reset();
}
#ifdef HAVE_TFE
if (tfe_cart_enabled()) {
tfe_reset();
}
#endif
#ifdef HAVE_RS232
if (aciacart_cart_enabled()) {
aciacart_reset();
}
#endif
/* "Main Slot" */
switch (mem_cartridge_type) {
case CARTRIDGE_ACTION_REPLAY:
actionreplay_reset();
break;
case CARTRIDGE_ACTION_REPLAY2:
actionreplay2_reset();
break;
case CARTRIDGE_ACTION_REPLAY3:
actionreplay3_reset();
break;
case CARTRIDGE_ACTION_REPLAY4:
actionreplay4_reset();
break;
case CARTRIDGE_ATOMIC_POWER:
atomicpower_reset();
break;
case CARTRIDGE_CAPTURE:
capture_reset();
break;
case CARTRIDGE_EPYX_FASTLOAD:
epyxfastload_reset();
break;
case CARTRIDGE_FORMEL64:
formel64_reset();
break;
case CARTRIDGE_FREEZE_MACHINE:
freezemachine_reset();
break;
case CARTRIDGE_MAGIC_FORMEL:
magicformel_reset();
break;
case CARTRIDGE_MMC_REPLAY:
mmcreplay_reset();
break;
case CARTRIDGE_RETRO_REPLAY:
retroreplay_reset();
break;
}
/* "Slot 1" */
if (dqbb_cart_enabled()) {
dqbb_reset();
}
if (expert_cart_enabled()) {
expert_reset();
}
if (ramcart_cart_enabled()) {
ramcart_reset();
}
if (isepic_cart_enabled()) {
isepic_reset();
}
/* "Slot 0" */
if (tpi_cart_enabled()) {
tpi_reset();
}
if (magicvoice_cart_enabled()) {
magicvoice_reset();
}
if (mmc64_cart_enabled()) {
mmc64_reset();
}
}
/* ------------------------------------------------------------------------- */
/* called by cart_nmi_alarm_triggered, after an alarm occured */
void cart_freeze(int type)
{
DBG(("CART: freeze\n"));
switch (type) {
/* "Slot 0" (no freezer carts) */
/* "Slot 1" */
case CARTRIDGE_EXPERT:
expert_freeze();
break;
case CARTRIDGE_ISEPIC:
isepic_freeze();
break;
/* "IO Slot" (no freezer carts) */
/* "Main Slot" */
case CARTRIDGE_ACTION_REPLAY:
actionreplay_freeze();
break;
case CARTRIDGE_ACTION_REPLAY2:
actionreplay2_freeze();
break;
case CARTRIDGE_ACTION_REPLAY3:
actionreplay3_freeze();
break;
case CARTRIDGE_ACTION_REPLAY4:
actionreplay4_freeze();
break;
case CARTRIDGE_ATOMIC_POWER:
atomicpower_freeze();
break;
case CARTRIDGE_CAPTURE:
capture_freeze();
break;
case CARTRIDGE_DIASHOW_MAKER:
dsm_freeze();
break;
case CARTRIDGE_FINAL_I:
final_v1_freeze();
break;
case CARTRIDGE_FINAL_III:
final_v3_freeze();
break;
case CARTRIDGE_FINAL_PLUS:
final_plus_freeze();
break;
case CARTRIDGE_FREEZE_FRAME:
freezeframe_freeze();
break;
case CARTRIDGE_FREEZE_MACHINE:
freezemachine_freeze();
break;
case CARTRIDGE_GAME_KILLER:
gamekiller_freeze();
break;
case CARTRIDGE_KCS_POWER:
kcs_freeze();
break;
case CARTRIDGE_MAGIC_FORMEL:
magicformel_freeze();
break;
case CARTRIDGE_MMC_REPLAY:
mmcreplay_freeze();
break;
case CARTRIDGE_RETRO_REPLAY:
retroreplay_freeze();
break;
case CARTRIDGE_SNAPSHOT64:
snapshot64_freeze();
break;
case CARTRIDGE_SUPER_SNAPSHOT:
supersnapshot_v4_freeze();
break;
case CARTRIDGE_SUPER_SNAPSHOT_V5:
supersnapshot_v5_freeze();
break;
}
}
/* called by cart_nmi_alarm_triggered */
void cart_nmi_alarm(CLOCK offset, void *data)
{
/* "Slot 0" (no freezer carts) */
/* "Slot 1" */
if (expert_freeze_allowed()) {
cart_freeze(CARTRIDGE_EXPERT);
}
if (isepic_freeze_allowed()) {
cart_freeze(CARTRIDGE_ISEPIC);
}
/* "I/O Slot" (no freezer carts) */
/* "Main Slot" */
cart_freeze(cart_getid_slotmain());
}
/* called by the UI when the freeze button is pressed */
int cart_freeze_allowed(void)
{
int maintype = cart_getid_slotmain();
/* "Slot 0" (no freezer carts) */
/* "Slot 1" */
if (expert_freeze_allowed()) {
return 1;
}
if (isepic_freeze_allowed()) {
return 1;
}
/* "Main Slot" */
switch (maintype) {
case CARTRIDGE_ACTION_REPLAY4:
case CARTRIDGE_ACTION_REPLAY3:
case CARTRIDGE_ACTION_REPLAY2:
case CARTRIDGE_ACTION_REPLAY:
case CARTRIDGE_ATOMIC_POWER:
case CARTRIDGE_CAPTURE:
case CARTRIDGE_DIASHOW_MAKER:
case CARTRIDGE_FINAL_I:
case CARTRIDGE_FINAL_III:
case CARTRIDGE_FINAL_PLUS:
case CARTRIDGE_FREEZE_FRAME:
case CARTRIDGE_FREEZE_MACHINE:
case CARTRIDGE_GAME_KILLER:
case CARTRIDGE_KCS_POWER:
case CARTRIDGE_MAGIC_FORMEL:
return 1;
case CARTRIDGE_MMC_REPLAY:
if (mmcreplay_freeze_allowed()) {
return 1;
}
break;
case CARTRIDGE_RETRO_REPLAY:
if (retroreplay_freeze_allowed()) {
return 1;
}
break;
case CARTRIDGE_SNAPSHOT64:
case CARTRIDGE_SUPER_SNAPSHOT:
case CARTRIDGE_SUPER_SNAPSHOT_V5:
return 1;
}
/* "I/O Slot" (no freezer carts) */
return 0;
}
/* ------------------------------------------------------------------------- */
/*
flush cart image
all carts whose image might be modified at runtime should be hooked up here.
*/
int cartridge_flush_image(int type)
{
switch (type) {
/* "Slot 0" */
case CARTRIDGE_MMC64:
return mmc64_flush_image();
/* "Slot 1" */
case CARTRIDGE_DQBB:
return dqbb_flush_image();
case CARTRIDGE_EXPERT:
return expert_flush_image();
case CARTRIDGE_ISEPIC:
return isepic_flush_image();
case CARTRIDGE_RAMCART:
return ramcart_flush_image();
/* "Main Slot" */
case CARTRIDGE_EASYFLASH:
return easyflash_flush_image();
case CARTRIDGE_MMC_REPLAY:
return mmcreplay_flush_image();
case CARTRIDGE_RETRO_REPLAY:
return retroreplay_flush_image();
/* "I/O" */
case CARTRIDGE_GEORAM:
return georam_flush_image();
case CARTRIDGE_REU:
return reu_flush_image();
}
return -1;
}
/*
save cartridge to binary file
*atleast* all carts whose image might be modified at runtime should be hooked up here.
TODO: add bin save for all ROM carts also
*/
int cartridge_bin_save(int type, const char *filename)
{
switch (type) {
/* "Slot 0" */
case CARTRIDGE_MMC64:
return mmc64_bin_save(filename);
/* "Slot 1" */
case CARTRIDGE_DQBB:
return dqbb_bin_save(filename);
case CARTRIDGE_EXPERT:
return expert_bin_save(filename);
case CARTRIDGE_ISEPIC:
return isepic_bin_save(filename);
case CARTRIDGE_RAMCART:
return ramcart_bin_save(filename);
/* "Main Slot" */
case CARTRIDGE_EASYFLASH:
return easyflash_bin_save(filename);
case CARTRIDGE_MMC_REPLAY:
return mmcreplay_bin_save(filename);
case CARTRIDGE_RETRO_REPLAY:
return retroreplay_bin_save(filename);
/* "I/O Slot" */
case CARTRIDGE_GEORAM:
return georam_bin_save(filename);
case CARTRIDGE_REU:
return reu_bin_save(filename);
}
return -1;
}
/*
save cartridge to crt file
*atleast* all carts whose image might be modified at runtime AND
which have a valid crt id should be hooked up here.
TODO: add crt save for all ROM carts also
*/
int cartridge_crt_save(int type, const char *filename)
{
switch (type) {
/* "Slot 0" */
case CARTRIDGE_MMC64:
return mmc64_crt_save(filename);
/* "Slot 1" */
case CARTRIDGE_EXPERT:
return expert_crt_save(filename);
case CARTRIDGE_ISEPIC:
return isepic_crt_save(filename);
/* "Main Slot" */
case CARTRIDGE_EASYFLASH:
return easyflash_crt_save(filename);
case CARTRIDGE_MMC_REPLAY:
return mmcreplay_crt_save(filename);
case CARTRIDGE_RETRO_REPLAY:
return retroreplay_crt_save(filename);
}
return -1;
}
/* ------------------------------------------------------------------------- */
void cartridge_sound_chip_init(void)
{
digimax_sound_chip_init();
sfx_soundsampler_sound_chip_init();
sfx_soundexpander_sound_chip_init();
magicvoice_sound_chip_init();
}
/* ------------------------------------------------------------------------- */
/* Perform MMU translation for simple cartridge RAM/ROM mappings */
/* TODO: add more */
void cartridge_mmu_translate(unsigned int addr, BYTE **base, int *start, int *limit)
{
int res = CART_READ_THROUGH;
/* "Slot 0" */
if (mmc64_cart_enabled()) {
if ((res = mmc64_mmu_translate(addr, base, start, limit)) == CART_READ_VALID) {
return;
}
} else if (magicvoice_cart_enabled()) {
if ((res = magicvoice_mmu_translate(addr, base, start, limit)) == CART_READ_VALID) {
return;
}
} else if (tpi_cart_enabled()) {
if ((res = tpi_mmu_translate(addr, base, start, limit)) == CART_READ_VALID) {
return;
}
}
switch (res) {
case CART_READ_C64MEM:
*base = NULL;
*start = 0;
*limit = 0;
return;
case CART_READ_THROUGH_NO_ULTIMAX:
break;
}
/* continue with "Slot 1" */
if (isepic_cart_active()) {
isepic_mmu_translate(addr, base, start, limit);
return;
}
if (expert_cart_enabled()) {
expert_mmu_translate(addr, base, start, limit);
return;
}
if (ramcart_cart_enabled()) {
ramcart_mmu_translate(addr, base, start, limit);
return;
}
if (dqbb_cart_enabled()) {
dqbb_mmu_translate(addr, base, start, limit);
return;
}
/* continue with "Main Slot" */
switch (mem_cartridge_type) {
case CARTRIDGE_GENERIC_16KB:
case CARTRIDGE_GENERIC_8KB:
case CARTRIDGE_ULTIMAX:
generic_mmu_translate(addr, base, start, limit);
return;
case CARTRIDGE_IDE64:
ide64_mmu_translate(addr, base, start, limit);
return;
default:
*base = NULL;
*start = 0;
*limit = 0;
return;
}
}
/* ------------------------------------------------------------------------- */
/*
Snapshot reading and writing
*/
#define C64CART_DUMP_MAX_CARTS 16
#define C64CART_DUMP_VER_MAJOR 0
#define C64CART_DUMP_VER_MINOR 1
#define SNAP_MODULE_NAME "C64CART"
int cartridge_snapshot_write_modules(struct snapshot_s *s)
{
snapshot_module_t *m;
BYTE i;
BYTE number_of_carts = 0;
int cart_ids[C64CART_DUMP_MAX_CARTS];
int last_cart = 0;
memset(cart_ids, 0, sizeof(cart_ids));
/* Find out which carts are attached */
{
export_list_t *e = c64export_query_list(NULL);
while (e != NULL) {
if (number_of_carts == C64CART_DUMP_MAX_CARTS) {
DBG(("CART snapshot save: active carts > max (%i)\n", number_of_carts));
return -1;
}
if (last_cart != (int)e->device->cartid) {
last_cart = e->device->cartid;
cart_ids[number_of_carts++] = last_cart;
}
e = e->next;
}
}
m = snapshot_module_create(s, SNAP_MODULE_NAME,
C64CART_DUMP_VER_MAJOR, C64CART_DUMP_VER_MINOR);
if (m == NULL) {
return -1;
}
if (SMW_B(m, number_of_carts) < 0) {
goto fail;
}
/* Not much to do if no carts present */
if (number_of_carts == 0) {
return snapshot_module_close(m);
}
/* Save "global" cartridge things */
if (0
|| SMW_DW(m, (DWORD)mem_cartridge_type) < 0
|| SMW_B(m, export.game) < 0
|| SMW_B(m, export.exrom) < 0
|| SMW_DW(m, (DWORD)romh_bank) < 0
|| SMW_DW(m, (DWORD)roml_bank) < 0
|| SMW_B(m, (BYTE)export_ram) < 0
|| SMW_B(m, export.ultimax_phi1) < 0
|| SMW_B(m, export.ultimax_phi2) < 0
|| SMW_DW(m, (DWORD)cart_freeze_alarm_time) < 0
|| SMW_DW(m, (DWORD)cart_nmi_alarm_time) < 0
|| SMW_B(m, export_slot1.game) < 0
|| SMW_B(m, export_slot1.exrom) < 0
|| SMW_B(m, export_slot1.ultimax_phi1) < 0
|| SMW_B(m, export_slot1.ultimax_phi2) < 0
|| SMW_B(m, export_slotmain.game) < 0
|| SMW_B(m, export_slotmain.exrom) < 0
|| SMW_B(m, export_slotmain.ultimax_phi1) < 0
|| SMW_B(m, export_slotmain.ultimax_phi2) < 0
|| SMW_B(m, export_passthrough.game) < 0
|| SMW_B(m, export_passthrough.exrom) < 0
|| SMW_B(m, export_passthrough.ultimax_phi1) < 0
|| SMW_B(m, export_passthrough.ultimax_phi2) < 0
/* some room for future expansion */
|| SMW_DW(m, 0) < 0
|| SMW_DW(m, 0) < 0
|| SMW_DW(m, 0) < 0
|| SMW_DW(m, 0) < 0) {
goto fail;
}
/* Save cart IDs */
for (i = 0; i < number_of_carts; i++) {
if (SMW_DW(m, (DWORD)cart_ids[i]) < 0) {
goto fail;
}
}
/* Main module done */
snapshot_module_close(m);
m = NULL;
/* Save individual cart data */
for (i = 0; i < number_of_carts; i++) {
switch (cart_ids[i]) {
/* "Slot 0" */
case CARTRIDGE_MMC64:
if (mmc64_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_MAGIC_VOICE:
if (magicvoice_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_IEEE488:
if (tpi_snapshot_write_module(s) < 0) {
return -1;
}
break;
/* "Slot 1" */
case CARTRIDGE_DQBB:
if (dqbb_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_EXPERT:
if (expert_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_ISEPIC:
if (isepic_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_RAMCART:
if (ramcart_snapshot_write_module(s) < 0) {
return -1;
}
break;
/* "Main Slot" */
case CARTRIDGE_ACTION_REPLAY:
if (actionreplay_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_ACTION_REPLAY2:
if (actionreplay2_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_ACTION_REPLAY3:
if (actionreplay3_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_ACTION_REPLAY4:
if (actionreplay4_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_ATOMIC_POWER:
if (atomicpower_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_CAPTURE:
if (capture_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_COMAL80:
if (comal80_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_DELA_EP64:
if (delaep64_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_DELA_EP7x8:
if (delaep7x8_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_DELA_EP256:
if (delaep256_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_DIASHOW_MAKER:
if (dsm_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_DINAMIC:
if (dinamic_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_EASYFLASH:
if (easyflash_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_EPYX_FASTLOAD:
if (epyxfastload_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_EXOS:
if (exos_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_FINAL_I:
if (final_v1_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_FINAL_III:
if (final_v3_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_FINAL_PLUS:
if (final_plus_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_FORMEL64:
if (formel64_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_FREEZE_FRAME:
if (freezeframe_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_FREEZE_MACHINE:
if (freezemachine_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_FUNPLAY:
if (funplay_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_GAME_KILLER:
if (gamekiller_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_GENERIC_16KB:
case CARTRIDGE_GENERIC_8KB:
case CARTRIDGE_ULTIMAX:
if (generic_snapshot_write_module(s, cart_ids[i]) < 0) {
return -1;
}
break;
case CARTRIDGE_GS:
if (gs_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_IDE64:
if (ide64_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_KCS_POWER:
if (kcs_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_KINGSOFT:
if (kingsoft_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_MACH5:
if (mach5_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_MAGIC_DESK:
if (magicdesk_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_MAGIC_FORMEL:
if (magicformel_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_MIKRO_ASSEMBLER:
if (mikroass_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_MMC_REPLAY:
if (mmcreplay_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_OCEAN:
if (ocean_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_P64:
if (p64_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_PAGEFOX:
if (pagefox_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_RETRO_REPLAY:
if (retroreplay_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_REX:
if (rex_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_REX_EP256:
if (rexep256_snapshot_read_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_ROSS:
if (ross_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_SILVERROCK_128:
if (silverrock128_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_SIMONS_BASIC:
if (simon_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_SNAPSHOT64:
if (snapshot64_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_STARDOS:
if (stardos_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_STRUCTURED_BASIC:
if (stb_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_SUPER_EXPLODE_V5:
if (se5_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_SUPER_GAMES:
if (supergames_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_SUPER_SNAPSHOT:
if (supersnapshot_v4_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_SUPER_SNAPSHOT_V5:
if (supersnapshot_v5_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_WARPSPEED:
if (warpspeed_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_WESTERMANN:
if (westermann_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_ZAXXON:
if (zaxxon_snapshot_write_module(s) < 0) {
return -1;
}
break;
/* "IO Slot" */
case CARTRIDGE_DIGIMAX:
if (digimax_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_DS12C887RTC:
if (ds12c887rtc_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_GEORAM:
if (georam_write_snapshot_module(s) < 0) {
return -1;
}
break;
#ifdef HAVE_MIDI
case CARTRIDGE_MIDI_PASSPORT:
case CARTRIDGE_MIDI_DATEL:
case CARTRIDGE_MIDI_SEQUENTIAL:
case CARTRIDGE_MIDI_NAMESOFT:
case CARTRIDGE_MIDI_MAPLIN:
if (c64_midi_snapshot_write_module(s) < 0) {
return -1;
}
break;
#endif
case CARTRIDGE_REU:
if (reu_write_snapshot_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_SFX_SOUND_EXPANDER:
if (sfx_soundexpander_snapshot_write_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_SFX_SOUND_SAMPLER:
if (sfx_soundsampler_snapshot_write_module(s) < 0) {
return -1;
}
break;
#ifdef HAVE_TFE
case CARTRIDGE_TFE:
if (tfe_snapshot_write_module(s) < 0) {
return -1;
}
break;
#endif
#ifdef HAVE_RS232
case CARTRIDGE_TURBO232:
if (aciacart_snapshot_write_module(s) < 0) {
return -1;
}
break;
#endif
default:
/* If the cart cannot be saved, we obviously can't load it either.
Returning an error at this point is better than failing at later. */
DBG(("CART snapshot save: cart %i handler missing\n", cart_ids[i]));
return -1;
}
}
return 0;
fail:
if (m != NULL) {
snapshot_module_close(m);
}
return -1;
}
int cartridge_snapshot_read_modules(struct snapshot_s *s)
{
snapshot_module_t *m;
BYTE vmajor, vminor;
BYTE i;
BYTE number_of_carts;
int cart_ids[C64CART_DUMP_MAX_CARTS];
int local_cartridge_reset;
DWORD dummy;
m = snapshot_module_open(s, SNAP_MODULE_NAME, &vmajor, &vminor);
if (m == NULL) {
return -1;
}
if ((vmajor != C64CART_DUMP_VER_MAJOR) || (vminor != C64CART_DUMP_VER_MINOR)) {
goto fail;
}
/* disable cartridge reset while detaching old cart */
resources_get_int("CartridgeReset", &local_cartridge_reset);
resources_set_int("CartridgeReset", 0);
cartridge_detach_image(-1);
resources_set_int("CartridgeReset", local_cartridge_reset);
if (SMR_B(m, &number_of_carts) < 0) {
goto fail;
}
/* Not much to do if no carts in snapshot */
if (number_of_carts == 0) {
return snapshot_module_close(m);
}
if (number_of_carts > C64CART_DUMP_MAX_CARTS) {
DBG(("CART snapshot read: carts %i > max %i\n", number_of_carts, C64CART_DUMP_MAX_CARTS));
goto fail;
}
/* Read "global" cartridge things */
if (0
|| SMR_DW_INT(m, &mem_cartridge_type) < 0
|| SMR_B(m, &export.game) < 0
|| SMR_B(m, &export.exrom) < 0
|| SMR_DW_INT(m, &romh_bank) < 0
|| SMR_DW_INT(m, &roml_bank) < 0
|| SMR_B_INT(m, &export_ram) < 0
|| SMR_B(m, &export.ultimax_phi1) < 0
|| SMR_B(m, &export.ultimax_phi2) < 0
|| SMR_DW(m, &cart_freeze_alarm_time) < 0
|| SMR_DW(m, &cart_nmi_alarm_time) < 0
|| SMR_B(m, &export_slot1.game) < 0
|| SMR_B(m, &export_slot1.exrom) < 0
|| SMR_B(m, &export_slot1.ultimax_phi1) < 0
|| SMR_B(m, &export_slot1.ultimax_phi2) < 0
|| SMR_B(m, &export_slotmain.game) < 0
|| SMR_B(m, &export_slotmain.exrom) < 0
|| SMR_B(m, &export_slotmain.ultimax_phi1) < 0
|| SMR_B(m, &export_slotmain.ultimax_phi2) < 0
|| SMR_B(m, &export_passthrough.game) < 0
|| SMR_B(m, &export_passthrough.exrom) < 0
|| SMR_B(m, &export_passthrough.ultimax_phi1) < 0
|| SMR_B(m, &export_passthrough.ultimax_phi2) < 0
/* some room for future expansion */
|| SMR_DW(m, &dummy) < 0
|| SMR_DW(m, &dummy) < 0
|| SMR_DW(m, &dummy) < 0
|| SMR_DW(m, &dummy) < 0) {
goto fail;
}
/* Read cart IDs */
for (i = 0; i < number_of_carts; i++) {
if (SMR_DW_INT(m, &cart_ids[i]) < 0) {
goto fail;
}
}
/* Main module done */
snapshot_module_close(m);
m = NULL;
/* Read individual cart data */
for (i = 0; i < number_of_carts; i++) {
switch (cart_ids[i]) {
/* "Slot 0" */
case CARTRIDGE_MMC64:
if (mmc64_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_MAGIC_VOICE:
if (magicvoice_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_IEEE488:
if (tpi_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
/* "Slot 1" */
case CARTRIDGE_DQBB:
if (dqbb_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_EXPERT:
if (expert_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_ISEPIC:
if (isepic_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_RAMCART:
if (ramcart_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
/* "Main Slot" */
case CARTRIDGE_ACTION_REPLAY:
if (actionreplay_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_ACTION_REPLAY2:
if (actionreplay2_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_ACTION_REPLAY3:
if (actionreplay3_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_ACTION_REPLAY4:
if (actionreplay4_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_ATOMIC_POWER:
if (atomicpower_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_CAPTURE:
if (capture_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_COMAL80:
if (comal80_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_DELA_EP64:
if (delaep64_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_DELA_EP7x8:
if (delaep7x8_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_DELA_EP256:
if (delaep256_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_DIASHOW_MAKER:
if (dsm_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_DINAMIC:
if (dinamic_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_EASYFLASH:
if (easyflash_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_EPYX_FASTLOAD:
if (epyxfastload_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_EXOS:
if (exos_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_FINAL_I:
if (final_v1_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_FINAL_III:
if (final_v3_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_FINAL_PLUS:
if (final_plus_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_FORMEL64:
if (formel64_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_FREEZE_FRAME:
if (freezeframe_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_FREEZE_MACHINE:
if (freezemachine_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_FUNPLAY:
if (funplay_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_GAME_KILLER:
if (gamekiller_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_GENERIC_16KB:
case CARTRIDGE_GENERIC_8KB:
case CARTRIDGE_ULTIMAX:
if (generic_snapshot_read_module(s, cart_ids[i]) < 0) {
goto fail2;
}
break;
case CARTRIDGE_GS:
if (gs_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_IDE64:
if (ide64_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_KCS_POWER:
if (kcs_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_KINGSOFT:
if (kingsoft_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_MACH5:
if (mach5_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_MAGIC_DESK:
if (magicdesk_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_MAGIC_FORMEL:
if (magicformel_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_MIKRO_ASSEMBLER:
if (mikroass_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_MMC_REPLAY:
if (mmcreplay_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_OCEAN:
if (ocean_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_P64:
if (p64_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_PAGEFOX:
if (pagefox_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_RETRO_REPLAY:
if (retroreplay_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_REX:
if (rex_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_REX_EP256:
if (rexep256_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_ROSS:
if (ross_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_SILVERROCK_128:
if (silverrock128_snapshot_read_module(s) < 0) {
return -1;
}
break;
case CARTRIDGE_SIMONS_BASIC:
if (simon_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_SNAPSHOT64:
if (snapshot64_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_STARDOS:
if (stardos_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_STRUCTURED_BASIC:
if (stb_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_SUPER_EXPLODE_V5:
if (se5_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_SUPER_GAMES:
if (supergames_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_SUPER_SNAPSHOT:
if (supersnapshot_v4_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_SUPER_SNAPSHOT_V5:
if (supersnapshot_v5_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_WARPSPEED:
if (warpspeed_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_WESTERMANN:
if (westermann_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_ZAXXON:
if (zaxxon_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
/* "IO Slot" */
case CARTRIDGE_DIGIMAX:
if (digimax_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_DS12C887RTC:
if (ds12c887rtc_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_GEORAM:
if (georam_read_snapshot_module(s) < 0) {
goto fail2;
}
break;
#ifdef HAVE_MIDI
case CARTRIDGE_MIDI_PASSPORT:
case CARTRIDGE_MIDI_DATEL:
case CARTRIDGE_MIDI_SEQUENTIAL:
case CARTRIDGE_MIDI_NAMESOFT:
case CARTRIDGE_MIDI_MAPLIN:
if (c64_midi_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
#endif
case CARTRIDGE_REU:
if (reu_read_snapshot_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_SFX_SOUND_EXPANDER:
if (sfx_soundexpander_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
case CARTRIDGE_SFX_SOUND_SAMPLER:
if (sfx_soundsampler_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
#ifdef HAVE_TFE
case CARTRIDGE_TFE:
if (tfe_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
#endif
#ifdef HAVE_RS232
case CARTRIDGE_TURBO232:
if (aciacart_snapshot_read_module(s) < 0) {
goto fail2;
}
break;
#endif
default:
DBG(("CART snapshot read: cart %i handler missing\n", cart_ids[i]));
goto fail2;
}
cart_attach_from_snapshot(cart_ids[i]);
}
/* set up config */
mem_pla_config_changed();
machine_update_memory_ptrs();
/* restore alarms */
cart_undump_alarms();
return 0;
fail:
if (m != NULL) {
snapshot_module_close(m);
}
fail2:
mem_cartridge_type = CARTRIDGE_NONE; /* Failed to load cartridge! */
return -1;
}
|
5018334ecc77bde94af8bb60005b755cd8844486
|
3265336028e28becd17e4758cac7d1335b76582c
|
/projects/dk_apps/demos/peripherals_demo/demos/common.h
|
cd4d1140500bf7ec7a33cb85a1856a0ec4477c9d
|
[] |
no_license
|
andrew-ongh/fresh_SDK
|
9bf7af79a4c234fa2a7e5be878d32467e82f7a1e
|
f35806fe67ce18c15eb341a47885c7f503ecd08d
|
refs/heads/master
| 2023-07-29T18:51:39.765604 | 2021-06-23T08:51:47 | 2021-06-23T08:51:47 | 369,693,478 | 2 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 10,673 |
h
|
common.h
|
/**
****************************************************************************************
*
* @file common.h
*
* @brief Common definitions for demo application
*
* Copyright (C) 2015-2016 Dialog Semiconductor.
* This computer program includes Confidential, Proprietary Information
* of Dialog Semiconductor. All Rights Reserved.
*
****************************************************************************************
*/
#ifndef COMMON_H_
#define COMMON_H_
#include <stdbool.h>
#include "app/menu.h"
#include "app/tasklist.h"
/**
* \brief Setup peripherals used in demo application
*
*/
void periph_setup(void);
#define uart_printfln_s(fmt, ...) uart_printfln(false, fmt, __VA_ARGS__)
#define uart_printfln_a(fmt, ...) uart_printfln(true, fmt, __VA_ARGS__)
void uart_printfln(bool async, const char *fmt, ...);
void task_uart_printf_init_func(const struct task_item *t);
void task_uart_printf_func(const struct task_item *t);
void menu_system_clock_func(const struct menu_item *m, bool checked);
bool menu_system_clock_checked_cb_func(const struct menu_item *m);
void menu_irgen_send_nec_func(const struct menu_item *m, bool checked);
void menu_irgen_stop_func(const struct menu_item *m, bool checked);
void menu_breath_constant_dim_func(const struct menu_item *m, bool checked);
void menu_breath_constant_bright_func(const struct menu_item *m, bool checked);
void menu_breath_emergency_blink_func(const struct menu_item *m, bool checked);
void menu_breath_dim_standby_breath_func(const struct menu_item *m, bool checked);
void menu_breath_standby_breath_func(const struct menu_item *m, bool checked);
void menu_breath_stop_func(const struct menu_item *m, bool checked);
void menu_timer0_blink_led_func(const struct menu_item *m, bool checked);
void menu_timer0_blink_led_dim_func(const struct menu_item *m, bool checked);
void menu_timer0_light_led_func(const struct menu_item *m, bool checked);
void menu_timer0_slow_blink_func(const struct menu_item *m, bool checked);
void menu_timer0_turn_off_func(const struct menu_item *m, bool checked);
void menu_qspi_set_quad_func(const struct menu_item *m, bool checked);
void menu_qspi_set_single_func(const struct menu_item *m, bool checked);
void menu_qspi_test_performance_func(const struct menu_item *m, bool checked);
void menu_qspi_div_func(const struct menu_item *m, bool checked);
bool menu_qspi_div_checked_cb_func(const struct menu_item *m);
void menu_timer1_set_pwm_freq_func(const struct menu_item *m, bool checked);
void menu_timer1_set_pwm_dc_func(const struct menu_item *m, bool checked);
void demo_timer2_init(void);
void menu_timer2_pwm_freq_func(const struct menu_item *m, bool checked);
void menu_timer2_pwm_dc_func(const struct menu_item *m, bool checked);
void menu_timer2_pwm_light_rgb_func(const struct menu_item *m, bool checked);
void menu_timer2_pwm_state_func(const struct menu_item *m, bool checked);
void menu_timer2_pause_func(const struct menu_item *m, bool checked);
bool menu_timer2_pause_checked_cb_func(const struct menu_item *m);
#define QUAD_CHANNEL_X_ON 10
#define QUAD_CHANNEL_X_OFF 11
#define QUAD_CHANNEL_Y_ON 20
#define QUAD_CHANNEL_Y_OFF 21
#define QUAD_CHANNEL_Z_ON 30
#define QUAD_CHANNEL_Z_OFF 31
#define QUAD_CHANNEL_XYZ_ON 40
#define QUAD_CHANNEL_XYZ_OFF 41
void demo_quad_init(void);
void menu_quad_channel_ctrl_func(const struct menu_item *m, bool checked);
void menu_quad_set_threshold_func(const struct menu_item *m, bool checked);
void menu_quad_channels_state_func(const struct menu_item *m, bool checked);
/* hw_wkup demo definitions */
void demo_wkup_init(void);
void menu_wkup_pin_enabled_func(const struct menu_item *m, bool checked);
bool menu_wkup_pin_enabled_checked_cb_func(const struct menu_item *m);
void menu_wkup_pin_trigger_func(const struct menu_item *m, bool checked);
bool menu_wkup_pin_trigger_checked_cb_func(const struct menu_item *m);
void menu_wkup_disable_all_func(const struct menu_item *m, bool checked);
void menu_wkup_threshold_func(const struct menu_item *m, bool checked);
void menu_wkup_debounce_func(const struct menu_item *m, bool checked);
void menu_wkup_reset_func(const struct menu_item *m, bool checked);
void menu_wkup_keyhit_func(const struct menu_item *m, bool checked);
void menu_wkup_state_func(const struct menu_item *m, bool checked);
/* hw_gpadc definitions */
void demo_gpadc_init(void);
void menu_gpadc_input_se_func(const struct menu_item *m, bool checked);
bool menu_gpadc_input_se_checked_cb_func(const struct menu_item *m);
void menu_gpadc_input_diff_func(const struct menu_item *m, bool checked);
bool menu_gpadc_input_diff_checked_cb_func(const struct menu_item *m);
void menu_gpadc_cfg_digiclk_func(const struct menu_item *m, bool checked);
bool menu_gpadc_cfg_digiclk_checked_cb_func(const struct menu_item *m);
void menu_gpadc_cfg_attenuator_func(const struct menu_item *m, bool checked);
bool menu_gpadc_cfg_attenuator_checked_cb_func(const struct menu_item *m);
void menu_gpadc_cfg_chopping_func(const struct menu_item *m, bool checked);
bool menu_gpadc_cfg_chopping_checked_cb_func(const struct menu_item *m);
void menu_gpadc_cfg_sign_func(const struct menu_item *m, bool checked);
bool menu_gpadc_cfg_sign_checked_cb_func(const struct menu_item *m);
void menu_gpadc_cfg_sample_func(const struct menu_item *m, bool checked);
bool menu_gpadc_cfg_sample_checked_cb_func(const struct menu_item *m);
void menu_gpadc_cfg_oversampling_func(const struct menu_item *m, bool checked);
bool menu_gpadc_cfg_oversampling_checked_cb_func(const struct menu_item *m);
void menu_gpadc_cfg_interval_func(const struct menu_item *m, bool checked);
bool menu_gpadc_cfg_interval_checked_cb_func(const struct menu_item *m);
void menu_gpadc_calibrate_func(const struct menu_item *m, bool checked);
void menu_gpadc_measure_func(const struct menu_item *m, bool checked);
void menu_gpadc_continuous_func(const struct menu_item *m, bool checked);
bool menu_gpadc_continuous_checked_cb_func(const struct menu_item *m);
void menu_gpadc_state_func(const struct menu_item *m, bool checked);
/* ad_gpadc demo definitions */
#define GPADC_BATTERY_LEVEL_ID 1
#define GPADC_TEMP_SENSOR_ID 2
#define GPADC_LIGHT_SENSOR_ID 3
#define GPADC_ENCODER_SENSOR_ID 4
void demo_ad_gpadc_init(void);
void task_ad_gpadc_worker_func(const struct task_item *task);
void menu_gpadc_read_func(const struct menu_item *m, bool checked);
void menu_gpadc_state_func(const struct menu_item *m, bool checked);
void menu_gpadc_read_cyclic_func(const struct menu_item *m, bool checked);
bool menu_gpadc_read_cyclic_checked_cb_func(const struct menu_item *m);
#define ALARM_RANGE(low, high) ((int8_t) high << 8 | (int8_t) low)
#define ALARM_GET_LOW(range) ((int8_t) (range & 0xFF))
#define ALARM_GET_HIGH(range) ((int8_t) ((range >> 8) & 0xFF))
void demo_i2c_init(void);
void task_i2c_get_temp_init(const struct task_item *task);
void task_i2c_get_temp_func(const struct task_item *task);
void menu_i2c_get_temp_start_func(const struct menu_item *m, bool checked);
bool menu_i2c_get_temp_start_checked_cb_func(const struct menu_item *m);
void menu_i2c_write_to_eeprom_func(const struct menu_item *m, bool checked);
void menu_i2c_read_from_eeprom_func(const struct menu_item *m, bool checked);
void menu_i2c_fm75_set_resolution_func(const struct menu_item *m, bool checked);
void menu_i2c_fm75_set_alarm_limits_func(const struct menu_item *m, bool checked);
void demo_i2c_async_init(void);
void task_i2c_async_get_temp_init(const struct task_item *task);
void task_i2c_async_get_temp_func(const struct task_item *task);
void menu_i2c_async_get_temp_start_func(const struct menu_item *m, bool checked);
bool menu_i2c_async_get_temp_start_checked_cb_func(const struct menu_item *m);
void menu_i2c_async_write_to_eeprom_func(const struct menu_item *m, bool checked);
void menu_i2c_async_read_from_eeprom_func(const struct menu_item *m, bool checked);
void menu_i2c_async_fm75_set_resolution_func(const struct menu_item *m, bool checked);
void menu_i2c_async_fm75_set_alarm_limits_func(const struct menu_item *m, bool checked);
/* ad_uart */
void task_ad_uart_worker_init(const struct task_item *task);
void task_ad_uart_worker_func(const struct task_item *task);
void menu_ad_uart_worker_enable_func(const struct menu_item *m, bool checked);
bool menu_ad_uart_worker_enable_checked_cb_func(const struct menu_item *m);
void menu_ad_uart_prompt_func(const struct menu_item *m, bool checked);
void menu_ad_uart_worker_lock_func(const struct menu_item *m, bool checked);
bool menu_ad_uart_worker_lock_checked_cb_func(const struct menu_item *m);
void task_ad_spi_at45_worker_func(const struct task_item *task);
void menu_ad_spi_at45_write_func(const struct menu_item *m, bool checked);
void menu_ad_spi_at45_erase_func(const struct menu_item *m, bool checked);
void menu_ad_spi_at45_print_log_func(const struct menu_item *m, bool checked);
void menu_ad_i2c_spi_copy_sync_func(const struct menu_item *m, bool checked);
void menu_ad_i2c_spi_copy_async_func(const struct menu_item *m, bool checked);
void menu_ad_spi_i2c_copy_sync_func(const struct menu_item *m, bool checked);
void menu_ad_spi_i2c_copy_async_func(const struct menu_item *m, bool checked);
/* sensor board demo */
void menu_sensor_board_bh1750_read_func(const struct menu_item *m, bool checked);
void menu_sensor_board_bme280_read_func(const struct menu_item *m, bool checked);
void menu_sensor_board_adxl362_read_func(const struct menu_item *m, bool checked);
void menu_sensor_board_bmm150_read_func(const struct menu_item *m, bool checked);
void menu_sensor_board_bmg160_read_func(const struct menu_item *m, bool checked);
void menu_sensor_board_cyclic_read_func(const struct menu_item *m, bool checked);
bool menu_sensor_board_cyclic_read_checked_cb_func(const struct menu_item *m);
void task_sensor_board_worker_func(const struct task_item *task);
/* temperature sensor demo */
void menu_temperature_sensor_read_func(const struct menu_item *m, bool checked);
void menu_temperature_sensor_read_async_func(const struct menu_item *m, bool checked);
void menu_temperature_sensor_read_cyclic_func(const struct menu_item *m, bool checked);
bool menu_temperature_sensor_read_cyclic_checked_cb_func(const struct menu_item *m);
void task_temperature_sensor_worker_func(const struct task_item *task);
/* power mode demo */
void demo_power_mode_init(void);
void menu_power_mode_active_func(const struct menu_item *m, bool checked);
void menu_power_mode_extended_sleep_func(const struct menu_item *m, bool checked);
void menu_power_mode_hibernation_func(const struct menu_item *m, bool checked);
#endif /* COMMON_H_ */
|
35952562992eb1db18b0484fa3bb166ea22b8800
|
976f5e0b583c3f3a87a142187b9a2b2a5ae9cf6f
|
/source/git/extr_commit.c_repo_get_commit_tree.c
|
9b932f5f9b8e14b2cfe237a700addc7051243db9
|
[] |
no_license
|
isabella232/AnghaBench
|
7ba90823cf8c0dd25a803d1688500eec91d1cf4e
|
9a5f60cdc907a0475090eef45e5be43392c25132
|
refs/heads/master
| 2023-04-20T09:05:33.024569 | 2021-05-07T18:36:26 | 2021-05-07T18:36:26 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,029 |
c
|
extr_commit.c_repo_get_commit_tree.c
|
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__ ;
/* Type definitions */
struct tree {int dummy; } ;
struct repository {int dummy; } ;
struct TYPE_2__ {int /*<<< orphan*/ parsed; } ;
struct commit {scalar_t__ graph_pos; struct tree* maybe_tree; TYPE_1__ object; } ;
/* Variables and functions */
scalar_t__ COMMIT_NOT_FROM_GRAPH ;
struct tree* get_commit_tree_in_graph (struct repository*,struct commit const*) ;
struct tree *repo_get_commit_tree(struct repository *r,
const struct commit *commit)
{
if (commit->maybe_tree || !commit->object.parsed)
return commit->maybe_tree;
if (commit->graph_pos != COMMIT_NOT_FROM_GRAPH)
return get_commit_tree_in_graph(r, commit);
return NULL;
}
|
90a7b1d9a0c58f62f5f813fb241a9af37863ff54
|
e946e88dd278936cf67db8858e59c812bbfc6293
|
/libft/ft_strlcat.c
|
c08431f73cae90af4b04658905e85e8823c1fa6e
|
[] |
no_license
|
hipopotamus/ft_printf
|
f5003d8591c6f321e8266f15c7bd1cd036ebe433
|
80aafae77eec2dfaf81e0e1e52810593d85cfd24
|
refs/heads/master
| 2023-06-15T14:32:03.512063 | 2021-07-05T13:10:52 | 2021-07-05T13:10:52 | 381,546,503 | 1 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,291 |
c
|
ft_strlcat.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlcat.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sungwopa <sungwopa@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/05/03 20:35:42 by sungwopa #+# #+# */
/* Updated: 2021/07/05 22:01:14 by sungwopa ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
size_t ft_strlcat(char *dst, const char *src, size_t dstsize)
{
size_t len_dst;
size_t len_src;
size_t i;
len_dst = ft_strlen(dst);
len_src = ft_strlen(src);
i = 0;
if (dstsize <= len_dst)
return (dstsize + len_src);
while (src[i] != '\0' && i < dstsize - len_dst - 1)
{
dst[len_dst + i] = src[i];
i++;
}
dst[len_dst + i] = '\0';
return (len_dst + len_src);
}
|
ffb79f9688bd158aaa5862c01c8d8b82fd3d89e3
|
fd42b5f3e40ad2f19d4dc20a42012c87102f6142
|
/chapter9/5/Parameter.c
|
2c231266300a7d4339b32e44ebeabab35ab05922
|
[] |
no_license
|
PhoenixFate/Clion_C_Language
|
c5765c6300e89a7447495a708b975cc245c43a90
|
3e7021dcd58af1ac007ecc82a28ad9adf2972194
|
refs/heads/master
| 2021-01-04T12:39:49.515042 | 2020-02-16T09:25:47 | 2020-02-16T09:25:47 | 240,553,783 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 822 |
c
|
Parameter.c
|
#include<stdio.h>
#include<string.h>
void DrinkMilk(char *cBottle); /*声明函数*/
int main() {
char cPoke[] = ""; /*定义字符数组变量*/
printf("%llu\n", sizeof(cPoke));
printf("%d\n", cPoke[0]);
printf("Mother wanna give the baby:"); /*输出信息提示*/
scanf("%s", &cPoke);
DrinkMilk(cPoke); /*将实际参数传递给形式参数*/
return 0; /*程序结束*/
}
/*喝牛奶的动作*/
void DrinkMilk(char *cBottle) /*cBottle为形式参数*/
{
printf("%llu\n", sizeof(cBottle));
printf("%llu\n",strlen(cBottle));
for(int i=0;cBottle[i]!='\0';i++)
{
printf("%d\t",i);
}
puts("");
printf("The Baby drink the %s\n", cBottle);/*输出提示,进行喝牛奶动作*/
}
|
a41c00d5ca0d98912bcd474c7c3e7924876fed70
|
762b4c72de992050bac4a4559a2ff9c234fc0f6d
|
/src/php56/consulate/values.zep.c
|
7d96d4a8ba4d0b40d6528ceab2e6dac5e2b41ba3
|
[] |
no_license
|
Jian881219/consul-php
|
6bc07ec8e71fdbe9d22dbc86609c4e1ef42455eb
|
165fc46cec258e98b59943210a0a170996428e3a
|
refs/heads/master
| 2021-04-23T04:11:17.527218 | 2020-03-25T05:46:10 | 2020-03-25T05:46:10 | 249,875,491 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | true | 8,301 |
c
|
values.zep.c
|
#ifdef HAVE_CONFIG_H
#include "../ext_config.h"
#endif
#include <php.h>
#include "../php_ext.h"
#include "../ext.h"
#include <Zend/zend_operators.h>
#include <Zend/zend_exceptions.h>
#include <Zend/zend_interfaces.h>
#include "kernel/main.h"
#include "ext/spl/spl_iterators.h"
#include "kernel/array.h"
#include "kernel/object.h"
#include "kernel/operators.h"
#include "kernel/memory.h"
#include "kernel/fcall.h"
#include "kernel/exception.h"
ZEPHIR_INIT_CLASS(Consulate_Values) {
ZEPHIR_REGISTER_CLASS(Consulate, Values, consulate, values, consulate_values_method_entry, 0);
zend_declare_property_null(consulate_values_ce, SL("values"), ZEND_ACC_PROTECTED TSRMLS_CC);
consulate_values_ce->create_object = zephir_init_properties_Consulate_Values;
zend_class_implements(consulate_values_ce TSRMLS_CC, 1, zephir_get_internal_ce(SS("jsonserializable") TSRMLS_CC));
zend_class_implements(consulate_values_ce TSRMLS_CC, 1, spl_ce_Countable);
return SUCCESS;
}
PHP_METHOD(Consulate_Values, get) {
zval *key_param = NULL, *values = NULL, *_0, *_1$$3;
zval *key = NULL;
ZEPHIR_MM_GROW();
zephir_fetch_params(1, 1, 0, &key_param);
zephir_get_strval(key, key_param);
_0 = zephir_fetch_nproperty_this(this_ptr, SL("values"), PH_NOISY_CC);
if (zephir_array_isset_fetch(&values, _0, key, 1 TSRMLS_CC)) {
zephir_array_fetch_long(&_1$$3, values, 0, PH_NOISY | PH_READONLY, "consulate/values.zep", 9 TSRMLS_CC);
RETURN_CTOR(_1$$3);
}
RETURN_MM_STRING("", 1);
}
PHP_METHOD(Consulate_Values, getAll) {
zval *key_param = NULL, *values = NULL, *_0;
zval *key = NULL;
ZEPHIR_MM_GROW();
zephir_fetch_params(1, 1, 0, &key_param);
zephir_get_strval(key, key_param);
_0 = zephir_fetch_nproperty_this(this_ptr, SL("values"), PH_NOISY_CC);
if (zephir_array_isset_fetch(&values, _0, key, 1 TSRMLS_CC)) {
RETURN_CTOR(values);
}
array_init(return_value);
RETURN_MM();
}
PHP_METHOD(Consulate_Values, set) {
zval *_2$$3;
zend_long ZEPHIR_LAST_CALL_STATUS;
zval *key_param = NULL, *value, *_0, *_1 = NULL, *_3$$4, *_4$$4, _5$$4, *_6$$4 = NULL;
zval *key = NULL;
ZEPHIR_MM_GROW();
zephir_fetch_params(1, 2, 0, &key_param, &value);
zephir_get_strval(key, key_param);
ZEPHIR_INIT_VAR(_0);
ZVAL_STRING(_0, "string", ZEPHIR_TEMP_PARAM_COPY);
ZEPHIR_MAKE_REF(value);
ZEPHIR_CALL_FUNCTION(&_1, "settype", NULL, 17, value, _0);
zephir_check_temp_parameter(_0);
ZEPHIR_UNREF(value);
zephir_check_call_status();
if (zephir_is_true(_1)) {
ZEPHIR_INIT_VAR(_2$$3);
zephir_create_array(_2$$3, 1, 0 TSRMLS_CC);
zephir_array_fast_append(_2$$3, value);
zephir_update_property_array(this_ptr, SL("values"), key, _2$$3 TSRMLS_CC);
} else {
ZEPHIR_INIT_VAR(_3$$4);
object_init_ex(_3$$4, consulate_exception_ce);
ZEPHIR_INIT_VAR(_4$$4);
zephir_gettype(_4$$4, value TSRMLS_CC);
ZEPHIR_SINIT_VAR(_5$$4);
ZVAL_STRING(&_5$$4, "$value must be castable to string, saw \"%s\".", 0);
ZEPHIR_CALL_FUNCTION(&_6$$4, "sprintf", NULL, 10, &_5$$4, _4$$4);
zephir_check_call_status();
ZEPHIR_CALL_METHOD(NULL, _3$$4, "__construct", NULL, 11, _6$$4);
zephir_check_call_status();
zephir_throw_exception_debug(_3$$4, "consulate/values.zep", 28 TSRMLS_CC);
ZEPHIR_MM_RESTORE();
return;
}
ZEPHIR_MM_RESTORE();
}
PHP_METHOD(Consulate_Values, add) {
zval *_3$$5;
zend_long ZEPHIR_LAST_CALL_STATUS;
zval *key_param = NULL, *value, *_0, *_1 = NULL, *_2$$3, *_4$$6, *_5$$6, _6$$6, *_7$$6 = NULL;
zval *key = NULL;
ZEPHIR_MM_GROW();
zephir_fetch_params(1, 2, 0, &key_param, &value);
zephir_get_strval(key, key_param);
ZEPHIR_INIT_VAR(_0);
ZVAL_STRING(_0, "string", ZEPHIR_TEMP_PARAM_COPY);
ZEPHIR_MAKE_REF(value);
ZEPHIR_CALL_FUNCTION(&_1, "settype", NULL, 17, value, _0);
zephir_check_temp_parameter(_0);
ZEPHIR_UNREF(value);
zephir_check_call_status();
if (zephir_is_true(_1)) {
_2$$3 = zephir_fetch_nproperty_this(this_ptr, SL("values"), PH_NOISY_CC);
if (zephir_array_isset(_2$$3, key)) {
zephir_update_property_array_multi(this_ptr, SL("values"), &value TSRMLS_CC, SL("za"), 2, key);
} else {
ZEPHIR_INIT_VAR(_3$$5);
zephir_create_array(_3$$5, 1, 0 TSRMLS_CC);
zephir_array_fast_append(_3$$5, value);
zephir_update_property_array(this_ptr, SL("values"), key, _3$$5 TSRMLS_CC);
}
} else {
ZEPHIR_INIT_VAR(_4$$6);
object_init_ex(_4$$6, consulate_exception_ce);
ZEPHIR_INIT_VAR(_5$$6);
zephir_gettype(_5$$6, value TSRMLS_CC);
ZEPHIR_SINIT_VAR(_6$$6);
ZVAL_STRING(&_6$$6, "$value must be castable to string, saw \"%s\".", 0);
ZEPHIR_CALL_FUNCTION(&_7$$6, "sprintf", NULL, 10, &_6$$6, _5$$6);
zephir_check_call_status();
ZEPHIR_CALL_METHOD(NULL, _4$$6, "__construct", NULL, 11, _7$$6);
zephir_check_call_status();
zephir_throw_exception_debug(_4$$6, "consulate/values.zep", 40 TSRMLS_CC);
ZEPHIR_MM_RESTORE();
return;
}
ZEPHIR_MM_RESTORE();
}
PHP_METHOD(Consulate_Values, delete) {
zval *key_param = NULL, *_0;
zval *key = NULL;
ZEPHIR_MM_GROW();
zephir_fetch_params(1, 1, 0, &key_param);
zephir_get_strval(key, key_param);
_0 = zephir_fetch_nproperty_this(this_ptr, SL("values"), PH_NOISY_CC);
zephir_array_unset(&_0, key, PH_SEPARATE);
ZEPHIR_MM_RESTORE();
}
PHP_METHOD(Consulate_Values, count) {
zval *_0;
_0 = zephir_fetch_nproperty_this(this_ptr, SL("values"), PH_NOISY_CC);
RETURN_LONG(zephir_fast_count_int(_0 TSRMLS_CC));
}
PHP_METHOD(Consulate_Values, jsonSerialize) {
RETURN_MEMBER(getThis(), "values");
}
PHP_METHOD(Consulate_Values, toArray) {
RETURN_MEMBER(getThis(), "values");
}
PHP_METHOD(Consulate_Values, __toString) {
HashTable *_2, *_5$$3;
HashPosition _1, _4$$3;
zval *str = NULL;
zval *k = NULL, *v = NULL, *vs = NULL, *_0, **_3, **_6$$3, _7$$4 = zval_used_for_init, _8$$4 = zval_used_for_init, *_9$$7 = NULL, _11$$7 = zval_used_for_init, *_12$$7 = NULL;
zephir_fcall_cache_entry *_10 = NULL, *_13 = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
ZEPHIR_MM_GROW();
ZEPHIR_INIT_VAR(str);
ZVAL_EMPTY_STRING(str);
_0 = zephir_fetch_nproperty_this(this_ptr, SL("values"), PH_NOISY_CC);
zephir_is_iterable(_0, &_2, &_1, 0, 0, "consulate/values.zep", 78);
for (
; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS
; zend_hash_move_forward_ex(_2, &_1)
) {
ZEPHIR_GET_HMKEY(k, _2, _1);
ZEPHIR_GET_HVALUE(vs, _3);
zephir_is_iterable(vs, &_5$$3, &_4$$3, 0, 0, "consulate/values.zep", 77);
for (
; zend_hash_get_current_data_ex(_5$$3, (void**) &_6$$3, &_4$$3) == SUCCESS
; zend_hash_move_forward_ex(_5$$3, &_4$$3)
) {
ZEPHIR_GET_HVALUE(v, _6$$3);
ZEPHIR_SINIT_NVAR(_7$$4);
ZVAL_STRING(&_7$$4, "", 0);
if (!ZEPHIR_IS_IDENTICAL(&_7$$4, str)) {
zephir_concat_self_str(&str, "&", sizeof("&")-1 TSRMLS_CC);
}
ZEPHIR_SINIT_NVAR(_8$$4);
ZVAL_STRING(&_8$$4, "", 0);
if (ZEPHIR_IS_IDENTICAL(&_8$$4, v)) {
zephir_concat_self(&str, k TSRMLS_CC);
} else {
ZEPHIR_CALL_METHOD(&_9$$7, this_ptr, "encode", &_10, 0, v);
zephir_check_call_status();
ZEPHIR_SINIT_NVAR(_11$$7);
ZVAL_STRING(&_11$$7, "%s=%s", 0);
ZEPHIR_CALL_FUNCTION(&_12$$7, "sprintf", &_13, 10, &_11$$7, k, _9$$7);
zephir_check_call_status();
zephir_concat_self(&str, _12$$7 TSRMLS_CC);
}
}
}
RETURN_CTOR(str);
}
PHP_METHOD(Consulate_Values, encode) {
zval *v;
zephir_fetch_params(0, 1, 0, &v);
RETVAL_ZVAL(v, 1, 0);
return;
}
zend_object_value zephir_init_properties_Consulate_Values(zend_class_entry *class_type TSRMLS_DC) {
zval *_0, *_1$$3;
ZEPHIR_MM_GROW();
{
zval zthis = zval_used_for_init;
zval *this_ptr = &zthis;
zend_object* obj = ecalloc(1, sizeof(zend_object));
zend_object_value retval;
zend_object_std_init(obj, class_type TSRMLS_CC);
object_properties_init(obj, class_type);
retval.handle = zend_objects_store_put(obj, (zend_objects_store_dtor_t)zend_objects_destroy_object, zephir_free_object_storage, NULL TSRMLS_CC);
retval.handlers = zend_get_std_object_handlers();
Z_TYPE(zthis) = IS_OBJECT;
Z_OBJVAL(zthis) = retval;
_0 = zephir_fetch_nproperty_this(this_ptr, SL("values"), PH_NOISY_CC);
if (Z_TYPE_P(_0) == IS_NULL) {
ZEPHIR_INIT_VAR(_1$$3);
array_init(_1$$3);
zephir_update_property_this(getThis(), SL("values"), _1$$3 TSRMLS_CC);
}
ZEPHIR_MM_RESTORE();
return retval;
}
}
|
1ad36b7690d2719b8c3d27a89e58a4afd6bf6526
|
286532f825019d7f34fc57cba70f661a3e0ab395
|
/TI_DM355/IPNC_2.5.0_UBL_nandprogramer_org/IPNC_UBL_nandprogramer/ublNAND/include/dm355_evm.h
|
75fd4fa84a7b70f6e4810d7dbb8fd4b0ac4ac683
|
[] |
no_license
|
prime5711/blackbox
|
e074a8fb2895909d2ff92800ac07f031dbaadc85
|
99a055869354d8fd573556c9caddeb97a1044115
|
refs/heads/master
| 2016-09-06T07:56:38.746927 | 2014-03-11T18:28:42 | 2014-03-11T18:28:42 | 17,400,158 | 1 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 13,060 |
h
|
dm355_evm.h
|
/* --------------------------------------------------------------------------
FILE : dm355_evm.h
PURPOSE : Platform init header file
PROJECT : DaVinci CCS NAND Flashing Utility
AUTHOR : Hui Geng
DATE : 06-Jun-2007
HISTORY
v1.00 - DJA - 04-Jun-2007
Completion (with support for DM6441 and DM6441_LV)
----------------------------------------------------------------------------- */
#ifndef _DM355EVM_H_
#define _DM355EVM_H_
#include "tistdtypes.h"
#define DM355_EVM
//Return type defines
#define E_PASS 0x00000000u
#define E_FAIL 0x00000001u
#define E_TIMEOUT 0x00000002u
// BIT mask defines
// BIT masks
#define BIT0 0x00000001
#define BIT1 0x00000002
#define BIT2 0x00000004
#define BIT3 0x00000008
#define BIT4 0x00000010
#define BIT5 0x00000020
#define BIT6 0x00000040
#define BIT7 0x00000080
#define BIT8 0x00000100
#define BIT9 0x00000200
#define BIT10 0x00000400
#define BIT11 0x00000800
#define BIT12 0x00001000
#define BIT13 0x00002000
#define BIT14 0x00004000
#define BIT15 0x00008000
#define BIT16 0x00010000
#define BIT17 0x00020000
#define BIT18 0x00040000
#define BIT19 0x00080000
#define BIT20 0x00100000
#define BIT21 0x00200000
#define BIT22 0x00400000
#define BIT23 0x00800000
#define BIT24 0x01000000
#define BIT25 0x02000000
#define BIT26 0x04000000
#define BIT27 0x08000000
#define BIT28 0x10000000
#define BIT29 0x20000000
#define BIT30 0x40000000
#define BIT31 0x80000000
/* -------------------------------------------------------------------------- *
* System Control Module register structure - See sprue14.pdf, Chapter 10 *
* for more details. *
* -------------------------------------------------------------------------- */
typedef struct _sys_module_regs_
{
VUint32 PINMUX[5]; //0x00
VUint32 BOOTCFG; //0x14
VUint32 ARM_INTMUX; //0x18
VUint32 EDMA_EVTMUX; //0x1C
VUint32 DDR_SLEW; //0x20
VUint32 CLKOUT; //0x24
VUint32 DEVICE_ID; //0x28
VUint32 VDAC_CONFIG; //0x2C
VUint32 TIMER64_CTL; //0x30
VUint32 USB_PHY_CTRL; //0x34
VUint32 MISC; //0x38
VUint32 MSTPRI[2]; //0x3C
VUint32 VPSS_CLKCTL; //0x44
VUint32 DEEPSLEEP; //0x48
VUint32 DFT_ENABLE; //0x4C
VUint32 DEBOUNCE[8]; //0x50
VUint32 VTPIOCR; //0x70
} sysModuleRegs;
#define SYSTEM ((sysModuleRegs*) 0x01C40000)
static inline int DataBusWidth(void)
{
return 0x02; //( ( (SYSTEM->BOOTCFG) >> 3) & 0x1 )?0x01:0x02;
}
/* -------------------------------------------------------------------------- *
* ARM Interrupt Controller register structure - See sprue26.pdf for more *
* details. *
* -------------------------------------------------------------------------- */
typedef struct _aintc_regs_
{
VUint32 FIQ0;
VUint32 FIQ1;
VUint32 IRQ0;
VUint32 IRQ1;
VUint32 FIQENTRY;
VUint32 IRQENTRY;
VUint32 EINT0;
VUint32 EINT1;
VUint32 INTCTL;
VUint32 EABASE;
VUint8 RSVD0[8];
VUint32 INTPRI0;
VUint32 INTPRI1;
VUint32 INTPRI2;
VUint32 INTPRI3;
VUint32 INTPRI4;
VUint32 INTPRI5;
VUint32 INTPRI6;
VUint32 INTPRI7;
} aintcRegs;
#define AINTC ((aintcRegs*) 0x01C48000)
/* -------------------------------------------------------------------------- *
* PLL Register structure - See sprue14.pdf, Chapter 6 for more details. *
* -------------------------------------------------------------------------- */
typedef struct _PLL_regs_
{
VUint32 PID;
VUint8 RSVD0[224];
VUint32 RSTYPE;
VUint8 RSVD1[24];
VUint32 PLLCTL;
VUint8 RSVD2[12];
VUint32 PLLM;
VUint8 RSVD3[4];
VUint32 PLLDIV1;
VUint32 PLLDIV2;
VUint32 PLLDIV3;
VUint8 RSVD4[4];
VUint32 POSTDIV;
VUint32 BPDIV;
VUint8 RSVD5[8];
VUint32 PLLCMD;
VUint32 PLLSTAT;
VUint32 ALNCTL;
VUint32 DCHANGE;
VUint32 CKEN;
VUint32 CKSTAT;
VUint32 SYSTAT;
VUint8 RSVD6[12];
VUint32 PLLDIV4;
VUint32 PLLDIV5;
} PLLRegs;
#define PLL1 ((PLLRegs*) 0x01C40800)
#define PLL2 ((PLLRegs*) 0x01C40C00)
/* -------------------------------------------------------------------------- *
* Power/Sleep Ctrl Register structure - See sprue14.pdf, Chapter 7 *
* for more details. *
* -------------------------------------------------------------------------- */
typedef struct _PSC_regs_
{
VUint32 PID; // 0x000
VUint8 RSVD0[12]; // 0x004
VUint32 GBLCTL; // 0x010
VUint8 RSVD1[4]; // 0x014
VUint32 INTEVAL; // 0x018
VUint8 RSVD2[36]; // 0x01C
VUint32 MERRPR0; // 0x040
VUint32 MERRPR1; // 0x044
VUint8 RSVD3[8]; // 0x048
VUint32 MERRCR0; // 0x050
VUint32 MERRCR1; // 0x054
VUint8 RSVD4[8]; // 0x058
VUint32 PERRPR; // 0x060
VUint8 RSVD5[4]; // 0x064
VUint32 PERRCR; // 0x068
VUint8 RSVD6[4]; // 0x06C
VUint32 EPCPR; // 0x070
VUint8 RSVD7[4]; // 0x074
VUint32 EPCCR; // 0x078
VUint8 RSVD8[132]; // 0x07C
VUint32 RAILSTAT; // 0x100
VUint32 RAILCTL; // 0x104
VUint32 RAILSEL; // 0x108
VUint8 RSVD9[20]; // 0x10C
VUint32 PTCMD; // 0x120
VUint8 RSVD10[4]; // 0x124
VUint32 PTSTAT; // 0x128
VUint8 RSVD11[212]; // 0x12C
VUint32 PDSTAT0; // 0x200
VUint32 PDSTAT1; // 0x204
VUint8 RSVD12[248]; // 0x208
VUint32 PDCTL0; // 0x300
VUint32 PDCTL1; // 0x304
VUint8 RSVD13[536]; // 0x308
VUint32 MCKOUT0; // 0x520
VUint32 MCKOUT1; // 0x524
VUint8 RSVD14[728]; // 0x528
VUint32 MDSTAT[41]; // 0x800
VUint8 RSVD15[348]; // 0x8A4
VUint32 MDCTL[42]; // 0xA00
} PSCRegs;
#define PSC ((PSCRegs*) 0x01C41000)
/* PSC constants */
#define LPSC_VPSS_MAST 0
#define LPSC_VPSS_SLV 1
#define LPSC_TPCC 2
#define LPSC_TPTC0 3
#define LPSC_TPTC1 4
#define LPSC_EMAC0 5
#define LPSC_EMAC1 6
#define LPSC_MDIO 7
#define LPSC_1394 8
#define LPSC_USB 9
#define LPSC_ATA 10
#define LPSC_VLYNQ 11
#define LPSC_HPI 12
#define LPSC_DDR2 13
#define LPSC_AEMIF 14
#define LPSC_MMCSD 15
#define LPSC_MEMSTK 16
#define LPSC_ASP 17
#define LPSC_I2C 18
#define LPSC_UART0 19
#define LPSC_GPIO 26
#define LPSC_TIMER0 27
#define LPSC_ARM 31
#define LPSC_DSP 39
#define LPSC_IMCOP 40
#define EMURSTIE_MASK 0x00000200
#define PSC_ENABLE 0x3
#define PSC_DISABLE 0x2
#define PSC_SYNCRESET 0x1
#define PSC_SWRSTDISABLE 0x0
/* -------------------------------------------------------------------------- *
* DDR2 Memory Ctrl Register structure - See sprue22b.pdf for more details.*
* -------------------------------------------------------------------------- */
typedef struct _DDR2_MEM_CTL_REGS_
{
VUint32 EIDRR; //0x00
VUint32 SDRSTAT; //0x04
VUint32 SDBCR; //0x08
VUint32 SDRCR; //0x0C
VUint32 SDTIMR0; //0x10
VUint32 SDTIMR1; //0x14
VUint8 RSVD1[8]; //0x18
VUint32 PBBPR; //0x20
VUint8 RSVD2[156]; //0x24
VUint32 IRR; //0xC0
VUint32 IMR; //0xC4
VUint32 IMSR; //0xC8
VUint32 IMCR; //0xCC
VUint8 RSVD3[20]; //0xD0
VUint32 DDRPHYCR; //0xE4
VUint8 RSVD4[8]; //0xE8
VUint32 VTPIOCR; //0xF0
} DDR2Regs;
#define DDRVTPR (*((VUint32*) 0x01C42030))
#define DDR ((DDR2Regs*) 0x20000000)
#define DDR_TEST_PATTERN (0xA55AA55Au)
#define DDR_RAM_SIZE (0x10000000u)
/* -------------------------------------------------------------------------- *
* AEMIF Register structure - See sprue20a.pdf for more details. *
* -------------------------------------------------------------------------- */
typedef struct _emif_regs_
{
VUint32 ERCSR; // 0x00
VUint32 AWCCR; // 0x04
VUint32 SDBCR; // 0x08
VUint32 SDRCR; // 0x0C
VUint32 AB1CR; // 0x10
VUint32 AB2CR; // 0x14
VUint32 AB3CR;
VUint32 AB4CR;
VUint32 SDTIMR; // 0x20
VUint32 DDRSR;
VUint32 DDRPHYCR;
VUint32 DDRPHYSR;
VUint32 TOTAR; // 0x30
VUint32 TOTACTR;
VUint32 DDRPHYID_REV;
VUint32 SDSRETR;
VUint32 EIRR; // 0x40
VUint32 EIMR;
VUint32 EIMSR;
VUint32 EIMCR;
VUint32 IOCTRLR; // 0x50
VUint32 IOSTATR;
VUint8 RSVD0[8];
VUint32 NANDFCR; // 0x60
VUint32 NANDFSR;
VUint8 RSVD1[8];
VUint32 NANDF1ECC; // 0x70
VUint32 NANDF2ECC;
VUint32 NANDF3ECC;
VUint32 NANDF4ECC;
VUint8 RSVD2[4]; // 0x80
VUint32 IODFTECR;
VUint32 IODFTGCR;
VUint8 RSVD3[4];
VUint32 IODFTMRLR; // 0x90
VUint32 IODFTMRMR;
VUint32 IODFTMRMSBR;
VUint8 RSVD4[20];
VUint32 MODRNR; // 0xB0
} emifRegs;
#define AEMIF ((emifRegs*) 0x01E10000)
/* -------------------------------------------------------------------------- *
* UART Register structure - See sprue33.pdf for more details. *
* -------------------------------------------------------------------------- */
typedef struct _uart_regs_
{
VUint32 RBR;
VUint32 IER;
VUint32 IIR;
VUint32 LCR;
VUint32 MCR;
VUint32 LSR;
VUint32 MSR;
VUint32 SCR;
VUint8 DLL;
VUint8 RSVDO[3];
VUint8 DLH;
VUint8 RSVD1[3];
VUint32 PID1;
VUint32 PID2;
VUint32 PWREMU_MGNT;
} uartRegs;
#define THR RBR
#define FCR IIR
#define UART0 ((uartRegs*) 0x01C20400)//((uartRegs*) 0x01C20000)
/* -------------------------------------------------------------------------- *
* Timer Register structure - See sprue26.pdf for more details. *
* -------------------------------------------------------------------------- */
typedef struct _timer_regs_
{
VUint32 PID12;
VUint32 EMUMGT_CLKSPD;
VUint32 GPINT_GPEN;
VUint32 GPTDAT_GPDIR;
VUint32 TIM12;
VUint32 TIM34;
VUint32 PRD12;
VUint32 PRD34;
VUint32 TCR;
VUint32 TGCR;
VUint32 WDTCR;
VUint8 RSVD0[8];
VUint32 REL12;
VUint32 REL34;
VUint32 CAP12;
VUint32 CAP34;
VUint32 INTCTL_STAT;
} timerRegs;
#define TIMER0 ((timerRegs*) 0x01C21400)
/* -------------------------------------------------------------------------- *
* SPI Register structure
* -------------------------------------------------------------------------- */
typedef struct _spi_regs_
{
VUint32 SPIGCR0; //0x00
VUint32 SPIGCR1; //0x04
VUint32 SPIINT; //0x08
VUint32 SPILVL; //0x0C
VUint32 SPIFLG; //0x10
VUint32 SPIPC0; //0x14
VUint8 RSVD0[4];
VUint32 SPIPC2; //0x1C
VUint8 RSVD1[28];
VUint32 SPIDAT1; //0x3C
VUint32 SPIBUF; //0x40
VUint32 SPIEMU; //0x44
VUint32 SPIDELAY; //0x48
VUint32 SPIDEF; //0x4C
VUint32 SPIFMT0; //0x50
VUint32 SPIFMT1; //0x54
VUint32 SPIFMT2; //0x58
VUint32 SPIFMT3; //0x5C
VUint32 INTVECT0; //0x60
VUint32 INTVECT1; //0x64
} spiRegs;
#define SPI0 ((spiRegs*) 0x01C66000)
#define SPI1 ((spiRegs*) 0x01C66800)
#define SPI2 ((spiRegs*) 0x01C67800)
/* GIO register */
#define GIO_BINTEN 0x01C67008 /* GPIO Interrupt Per-Bank Enable Register */
#define GIO_DIR01 0x01C67010
#define GIO_OUT_DATA01 0x01C67014
#define GIO_SET_DATA01 0x01C67018
#define GIO_CLR_DATA01 0x01C6701C
#define GIO_IN_DATA01 0x01C67020
#define GIO_SET_RIS_TRIG01 0x01C67024
#define GIO_SET_FAL_TRIG01 0x01C6702c
//Timer inline functions
static inline void TIMER0Start(void)
{
AINTC->IRQ1 |= 0x00000001;
TIMER0->TGCR = 0x00000000;
TIMER0->TIM12 = 0x0;
TIMER0->TCR = 0x00400040;
TIMER0->TGCR = 0x00000003;
}
static inline int TIMER0Status(void)
{
return ((AINTC->IRQ1)&1);
}
// Function Prototypes
// Execute LPSC state transition
void LPSCTransition(Uint8 module, Uint8 state);
// Initialization prototypes
void DM355EvmInit(void);
void PSCInit(void);
void UARTInit(void);
Int16 EVMDM355_I2C_init( );
void PLL1Init(void);
void PLL2Init(void);
void DDR2Init(void);
void AEMIFInit(void);
Int32 GetStringLen(Uint8* seq);
Uint32 UARTSendData(Uint8* seq, Bool includeNull);
Uint32 UARTSendInt(Uint32 value);
//void IVTInit(void);
#define CPLD_PAGE_SIZE 0x8000
#endif // End _DM355EVM_H_
|
bfe581969c22efa85f5c83190c43dc0033aa0aa2
|
bcb1ea5a62b33724fc7f6bd2da71bf81504fc9d9
|
/homework/ch05/question_5.c
|
ecdcbef3ea7b98707eb666edcb189945ae32eb10
|
[] |
no_license
|
sepiggy/ostep
|
e4fdcaa107127af2c0a502ca1526de498dec4a0b
|
6e5bf859786ba4c0b8131c0ba83e506fed2c2f0e
|
refs/heads/master
| 2021-01-24T10:48:24.224065 | 2018-03-03T12:30:24 | 2018-03-03T12:30:24 | 123,064,552 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 516 |
c
|
question_5.c
|
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int
main() {
int rc = fork();
if (rc < 0) {
fprintf(stderr, "fork failed.\n");
exit(1);
} else if (rc == 0) {
int pid = (int) wait(NULL);
printf("the returning of wait is %d\n", (int) pid);
printf("the pid is %d in the child\n", (int) getpid());
} else {
// int pid = (int) wait(NULL);
// printf("the returning of wait is %d\n", (int) pid);
printf("the pid is %d in the parent\n", (int) getpid());
}
return 0;
}
|
85e66e138dabc1c8059127a9d893f2fdc7cad07a
|
315840f4c44dffce903c81d1b10e28ea4e43325e
|
/src/events.h
|
fa11552400ddb5510b61fb402ae132432c388618
|
[] |
no_license
|
peterasplund/sdl-game
|
5601ffeb0257e6604ac625c8c5c94e866f5d2575
|
0a22d54fdbdc0861fa9c8a92357e14f96bde9723
|
refs/heads/master
| 2022-08-02T07:11:02.102707 | 2020-05-20T22:44:14 | 2020-05-20T22:44:14 | 232,354,110 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 310 |
h
|
events.h
|
#pragma once
#include "stdafx.h"
struct collisionEvent {
entt::entity self;
entt::entity other;
};
enum CollisionDirection {
top,
bottom,
left,
right
};
struct collisionSideEvent {
entt::entity self;
entt::entity other;
CollisionDirection direction;
};
struct dummyEvent {
int foo;
};
|
0a742e2bf0d0c7d11c740bdeaaf64496c6af2bdd
|
0365ae57f1d5e3beb9b2d1393edcbd9acd449583
|
/hdcam/src/main/jni/native/stun/sstool/src/GetOpt/GetOpt.c
|
e88e9b4008edf6fc8e71d9ae2967939a613e28f8
|
[] |
no_license
|
xeonye/HomeHawk
|
833fb3279b915f52d0be3cd0b598471aea04b903
|
dcab753dd92612f4477370728d2701a326fd0645
|
refs/heads/master
| 2020-03-18T22:48:33.513044 | 2018-05-29T06:49:24 | 2018-05-29T06:49:24 | 135,366,277 | 2 | 9 | null | 2020-07-30T08:55:33 | 2018-05-30T00:18:41 |
C
|
UTF-8
|
C
| false | false | 7,952 |
c
|
GetOpt.c
|
/*
* NNPF 2.0
*
* $Id: GetOpt.c 13 2012-07-20 11:53:15Z terado.syusuke $
*/
const static unsigned int __fileno__ = 10;
#include "Print.h"
#include "GetOpt.h"
// getopt_longが気に入らなかったので自作。
// これで多少プラットフォームにも依存しないはず。
// optresetとか、もろもろ便利な機能をついでに実装。
// *flagにvalを入れる処理は無しにした。
char *OptArg;
int OptInd;
int OptOpt;
int OptErr = 1;
int OptReset = 1;
int
getOpt_long(
int argc,
char** argv,
char* optString,
struct option* longOptionTbl,
int* indexPtr)
{
// staticにしておかないと位置を保持できない。
static uint32_t argvIndex = 0;
if (0 != OptReset)
{
OptReset = 0;
OptInd = 1;
OptErr = 1;
OptArg = 0;
OptOpt = 0;
argvIndex = 0;
}
for (; OptInd < argc;)
{
switch (strspn(argv[OptInd], "-"))
{
case 0:
{
OptInd++;
continue;
}
case 1:
{
if (0 == argvIndex)
{
argvIndex = strspn(argv[OptInd], "-");
}
for (;0 != *optString; optString++)
{
if (*optString == *(argv[OptInd] + argvIndex))
{
// 引数あり
switch (strspn(optString, ":"))
{
case 0:
{
OptArg = 0;
if (0 == *(argv[OptInd] + argvIndex + 1))
{
OptInd++;
}
OptOpt = 0;
*indexPtr = 0;
argvIndex++;
return *optString;
}
case 1:
{
if (0 != *(argv[OptInd] + argvIndex + 1))
{
OptArg = argv[OptInd] + argvIndex + 1;
OptInd++;
OptOpt = 0;
*indexPtr = 0;
argvIndex++;
return *optString;
}
else if (OptInd < (argc - 1))
{
OptArg = argv[OptInd + 1];
OptInd++;
OptOpt = 0;
*indexPtr = 0;
argvIndex = 0;
return *optString;
}
OptArg = 0;
OptInd++;
OptOpt = *optString;
*indexPtr = 0;
argvIndex = 0;
return '?';
}
case 2:
default:
{
if (0 != *(argv[OptInd] + argvIndex + 1))
{
OptArg = argv[OptInd] + argvIndex + 1;
OptInd++;
OptOpt = 0;
*indexPtr = 0;
argvIndex++;
return *optString;
}
else if (OptInd < (argc - 1))
{
OptArg = argv[OptInd + 1];
OptInd++;
OptOpt = 0;
*indexPtr = 0;
argvIndex = 0;
return *optString;
}
OptArg = 0;
OptInd++;
OptOpt = 0;
*indexPtr = 0;
argvIndex = 0;
return *optString;
}
}
}
}
OptArg = 0;
if (0 == *(argv[OptInd] + argvIndex) + 1)
{
OptInd++;
}
OptOpt = *(argv[OptInd - 1] + argvIndex);
argvIndex++;
*indexPtr = 0;
return '?';
}
case 2:
{
uint32_t longOptionTblIndex;
for (longOptionTblIndex = 0; 0 != longOptionTbl[longOptionTblIndex].name; longOptionTblIndex++)
{
if (0 == strncmp(argv[OptInd] + strlen("--"), longOptionTbl[longOptionTblIndex].name, strlen(argv[OptInd]) - strlen("--")))
{
switch (longOptionTbl[longOptionTblIndex].has_arg)
{
case 0:
{
OptArg = 0;
OptInd++;
OptOpt = 0;
*indexPtr = longOptionTblIndex;
return 0;
}
case 1:
{
if (argc <= (OptInd + 1))
{
OptArg = 0;
OptInd++;
OptOpt = 0;
*indexPtr = longOptionTblIndex;
return '?';
}
OptArg = argv[OptInd + 1];
OptInd++;
OptOpt = 0;
*indexPtr = longOptionTblIndex;
return 0;
}
case 2:
default:
{
if (argc <= (OptInd + 1))
{
OptArg = 0;
OptInd++;
OptOpt = 0;
*indexPtr = longOptionTblIndex;
return 0;
}
OptArg = argv[OptInd + 1];
OptInd++;
OptOpt = 0;
*indexPtr = longOptionTblIndex;
return 0;
}
}
}
}
//PrintLog(1<<0, "%d:%d:%d unrecognized option %s \'%s\'\n",__revision__,__fileno__,__LINE__,argv[0], argv[OptInd]);
OptArg = 0;
OptInd++;
OptOpt = 0;
*indexPtr = 0;
return '?';
}
default:
{
OptArg = 0;
OptInd++;
OptOpt = 0;
*indexPtr = 0;
return '?';
}
}
}
OptArg = 0;
OptOpt = 0;
*indexPtr = 0;
return -1;
}
|
319673b57ae41094bdbb959df7b483febb497637
|
e368d28ab359f703b784b23280a98caa58d4fa72
|
/project/realtek_amebaD_va0_example/example_sources/PMC/raw/pm_tickless/src/main.c
|
021b9c5e5f8c954f6dec58288043c2963ce49a40
|
[
"MIT"
] |
permissive
|
Seeed-Studio/seeed-ambd-sdk
|
93b3f853142026b0bb15f320129f7e893c981ae1
|
3cc64f293f756ffb3cd379fffb972b7401cb0951
|
refs/heads/AT
| 2022-11-25T06:55:17.361575 | 2020-07-31T05:45:10 | 2020-07-31T05:45:10 | 255,220,669 | 12 | 7 | null | 2020-07-31T05:45:11 | 2020-04-13T03:18:22 |
C
|
UTF-8
|
C
| false | false | 1,668 |
c
|
main.c
|
#include "ameba_soc.h"
#include "main.h"
#if defined(CONFIG_WIFI_NORMAL) && defined(CONFIG_NETWORK)
extern VOID wlan_network(VOID);
#endif
static u32 app_loguart_suspend(u32 expected_idle_time, void *param)
{
// For peripherals that need turned off before sleep, call disable or deinit peripheral here
DBG_8195A("app_loguart_suspend\n");
return TRUE;
}
static u32 app_loguart_resume(u32 expected_idle_time, void *param)
{
// For peripherals that are turned off before sleep, call enable or init peripheral here
DBG_8195A("app_loguart_resume\n");
/*set km4 active time*/
pmu_set_sysactive_time(5000);
return TRUE;
}
/**
* @brief Main program.
* @param None
* @retval None
*/
int main(void)
{
/* init console */
shell_recv_all_data_onetime = 1;
InterruptRegister(IPC_INTHandler, IPC_IRQ, (u32)IPCM0_DEV, 10);
InterruptEn(IPC_IRQ, 10);
shell_init_rom(0, 0);
shell_init_ram();
ipc_table_init();
/* Register Log Uart Callback function */
InterruptRegister((IRQ_FUN) shell_uart_irq_rom, UART_LOG_IRQ, (u32)NULL, 10);
InterruptEn(UART_LOG_IRQ,10);
#if defined(CONFIG_WIFI_NORMAL) && defined(CONFIG_NETWORK)
rtw_efuse_boot_write();
wlan_network();
#endif
/*set KM4 sleep type*/
pmu_set_sleep_type(SLEEP_PG);
/*acquire wakelock to avoid KM4 enter sleep mode*/
pmu_acquire_wakelock(PMU_OS);
pmu_register_sleep_callback(PMU_LOGUART_DEVICE, (PSM_HOOK_FUN)app_loguart_suspend, NULL, (PSM_HOOK_FUN)app_loguart_resume, NULL);
/*release wakelock to allow KM4 enter sleep mode*/
pmu_release_wakelock(PMU_OS);
/* Enable Schedule, Start Kernel */
vTaskStartScheduler();
}
|
7069202c5e13ede4ccde1879df66dcf69ffc00e3
|
c0c337d5d6407c91cc9d87316107102798010258
|
/contrib/gfx/libs/pixman/pixman/pixman-mips-dspr2-asm.h
|
7cf3281ed7edae51a9fad3830d424060f5ddc638
|
[
"MIT",
"FSFUL"
] |
permissive
|
ezrec/AROS-mirror
|
27c5747762a46021636370d9acdf752662a35f56
|
0386b906ada312f26ac0eb1f42c7676df50d00d2
|
refs/heads/ABI_V1
| 2021-01-24T10:34:40.027991 | 2019-05-03T00:55:49 | 2019-05-03T00:55:49 | 32,241,651 | 37 | 27 | null | 2019-05-20T16:49:31 | 2015-03-15T02:28:51 |
C
|
UTF-8
|
C
| false | false | 24,516 |
h
|
pixman-mips-dspr2-asm.h
|
/*
* Copyright (c) 2012
* MIPS Technologies, Inc., California.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the MIPS Technologies, Inc., nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE MIPS TECHNOLOGIES, INC. ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE MIPS TECHNOLOGIES, INC. BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Author: Nemanja Lukic (nlukic@mips.com)
*/
#ifndef PIXMAN_MIPS_DSPR2_ASM_H
#define PIXMAN_MIPS_DSPR2_ASM_H
#define zero $0
#define AT $1
#define v0 $2
#define v1 $3
#define a0 $4
#define a1 $5
#define a2 $6
#define a3 $7
#define t0 $8
#define t1 $9
#define t2 $10
#define t3 $11
#define t4 $12
#define t5 $13
#define t6 $14
#define t7 $15
#define s0 $16
#define s1 $17
#define s2 $18
#define s3 $19
#define s4 $20
#define s5 $21
#define s6 $22
#define s7 $23
#define t8 $24
#define t9 $25
#define k0 $26
#define k1 $27
#define gp $28
#define sp $29
#define fp $30
#define s8 $30
#define ra $31
/*
* LEAF_MIPS32R2 - declare leaf routine for MIPS32r2
*/
#define LEAF_MIPS32R2(symbol) \
.globl symbol; \
.align 2; \
.type symbol, @function; \
.ent symbol, 0; \
symbol: .frame sp, 0, ra; \
.set push; \
.set arch=mips32r2; \
.set noreorder; \
.set noat;
/*
* LEAF_MIPS32R2 - declare leaf routine for MIPS DSPr2
*/
#define LEAF_MIPS_DSPR2(symbol) \
LEAF_MIPS32R2(symbol) \
.set dspr2;
/*
* END - mark end of function
*/
#define END(function) \
.set pop; \
.end function; \
.size function,.-function
/*
* Checks if stack offset is big enough for storing/restoring regs_num
* number of register to/from stack. Stack offset must be greater than
* or equal to the number of bytes needed for storing registers (regs_num*4).
* Since MIPS ABI allows usage of first 16 bytes of stack frame (this is
* preserved for input arguments of the functions, already stored in a0-a3),
* stack size can be further optimized by utilizing this space.
*/
.macro CHECK_STACK_OFFSET regs_num, stack_offset
.if \stack_offset < \regs_num * 4 - 16
.error "Stack offset too small."
.endif
.endm
/*
* Saves set of registers on stack. Maximum number of registers that
* can be saved on stack is limitted to 14 (a0-a3, v0-v1 and s0-s7).
* Stack offset is number of bytes that are added to stack pointer (sp)
* before registers are pushed in order to provide enough space on stack
* (offset must be multiple of 4, and must be big enough, as described by
* CHECK_STACK_OFFSET macro). This macro is intended to be used in
* combination with RESTORE_REGS_FROM_STACK macro. Example:
* SAVE_REGS_ON_STACK 4, v0, v1, s0, s1
* RESTORE_REGS_FROM_STACK 4, v0, v1, s0, s1
*/
.macro SAVE_REGS_ON_STACK stack_offset = 0, r1, \
r2 = 0, r3 = 0, r4 = 0, \
r5 = 0, r6 = 0, r7 = 0, \
r8 = 0, r9 = 0, r10 = 0, \
r11 = 0, r12 = 0, r13 = 0, \
r14 = 0
.if (\stack_offset < 0) || (\stack_offset - (\stack_offset / 4) * 4)
.error "Stack offset must be pozitive and multiple of 4."
.endif
.if \stack_offset != 0
addiu sp, sp, -\stack_offset
.endif
sw \r1, 0(sp)
.if \r2 != 0
sw \r2, 4(sp)
.endif
.if \r3 != 0
sw \r3, 8(sp)
.endif
.if \r4 != 0
sw \r4, 12(sp)
.endif
.if \r5 != 0
CHECK_STACK_OFFSET 5, \stack_offset
sw \r5, 16(sp)
.endif
.if \r6 != 0
CHECK_STACK_OFFSET 6, \stack_offset
sw \r6, 20(sp)
.endif
.if \r7 != 0
CHECK_STACK_OFFSET 7, \stack_offset
sw \r7, 24(sp)
.endif
.if \r8 != 0
CHECK_STACK_OFFSET 8, \stack_offset
sw \r8, 28(sp)
.endif
.if \r9 != 0
CHECK_STACK_OFFSET 9, \stack_offset
sw \r9, 32(sp)
.endif
.if \r10 != 0
CHECK_STACK_OFFSET 10, \stack_offset
sw \r10, 36(sp)
.endif
.if \r11 != 0
CHECK_STACK_OFFSET 11, \stack_offset
sw \r11, 40(sp)
.endif
.if \r12 != 0
CHECK_STACK_OFFSET 12, \stack_offset
sw \r12, 44(sp)
.endif
.if \r13 != 0
CHECK_STACK_OFFSET 13, \stack_offset
sw \r13, 48(sp)
.endif
.if \r14 != 0
CHECK_STACK_OFFSET 14, \stack_offset
sw \r14, 52(sp)
.endif
.endm
/*
* Restores set of registers from stack. Maximum number of registers that
* can be restored from stack is limitted to 14 (a0-a3, v0-v1 and s0-s7).
* Stack offset is number of bytes that are added to stack pointer (sp)
* after registers are restored (offset must be multiple of 4, and must
* be big enough, as described by CHECK_STACK_OFFSET macro). This macro is
* intended to be used in combination with RESTORE_REGS_FROM_STACK macro.
* Example:
* SAVE_REGS_ON_STACK 4, v0, v1, s0, s1
* RESTORE_REGS_FROM_STACK 4, v0, v1, s0, s1
*/
.macro RESTORE_REGS_FROM_STACK stack_offset = 0, r1, \
r2 = 0, r3 = 0, r4 = 0, \
r5 = 0, r6 = 0, r7 = 0, \
r8 = 0, r9 = 0, r10 = 0, \
r11 = 0, r12 = 0, r13 = 0, \
r14 = 0
.if (\stack_offset < 0) || (\stack_offset - (\stack_offset/4)*4)
.error "Stack offset must be pozitive and multiple of 4."
.endif
lw \r1, 0(sp)
.if \r2 != 0
lw \r2, 4(sp)
.endif
.if \r3 != 0
lw \r3, 8(sp)
.endif
.if \r4 != 0
lw \r4, 12(sp)
.endif
.if \r5 != 0
CHECK_STACK_OFFSET 5, \stack_offset
lw \r5, 16(sp)
.endif
.if \r6 != 0
CHECK_STACK_OFFSET 6, \stack_offset
lw \r6, 20(sp)
.endif
.if \r7 != 0
CHECK_STACK_OFFSET 7, \stack_offset
lw \r7, 24(sp)
.endif
.if \r8 != 0
CHECK_STACK_OFFSET 8, \stack_offset
lw \r8, 28(sp)
.endif
.if \r9 != 0
CHECK_STACK_OFFSET 9, \stack_offset
lw \r9, 32(sp)
.endif
.if \r10 != 0
CHECK_STACK_OFFSET 10, \stack_offset
lw \r10, 36(sp)
.endif
.if \r11 != 0
CHECK_STACK_OFFSET 11, \stack_offset
lw \r11, 40(sp)
.endif
.if \r12 != 0
CHECK_STACK_OFFSET 12, \stack_offset
lw \r12, 44(sp)
.endif
.if \r13 != 0
CHECK_STACK_OFFSET 13, \stack_offset
lw \r13, 48(sp)
.endif
.if \r14 != 0
CHECK_STACK_OFFSET 14, \stack_offset
lw \r14, 52(sp)
.endif
.if \stack_offset != 0
addiu sp, sp, \stack_offset
.endif
.endm
/*
* Conversion of single r5g6b5 pixel (in_565) to single a8r8g8b8 pixel
* returned in (out_8888) register. Requires two temporary registers
* (scratch1 and scratch2).
*/
.macro CONVERT_1x0565_TO_1x8888 in_565, \
out_8888, \
scratch1, scratch2
lui \out_8888, 0xff00
sll \scratch1, \in_565, 0x3
andi \scratch2, \scratch1, 0xff
ext \scratch1, \in_565, 0x2, 0x3
or \scratch1, \scratch2, \scratch1
or \out_8888, \out_8888, \scratch1
sll \scratch1, \in_565, 0x5
andi \scratch1, \scratch1, 0xfc00
srl \scratch2, \in_565, 0x1
andi \scratch2, \scratch2, 0x300
or \scratch2, \scratch1, \scratch2
or \out_8888, \out_8888, \scratch2
andi \scratch1, \in_565, 0xf800
srl \scratch2, \scratch1, 0x5
andi \scratch2, \scratch2, 0xff00
or \scratch1, \scratch1, \scratch2
sll \scratch1, \scratch1, 0x8
or \out_8888, \out_8888, \scratch1
.endm
/*
* Conversion of two r5g6b5 pixels (in1_565 and in2_565) to two a8r8g8b8 pixels
* returned in (out1_8888 and out2_8888) registers. Requires four scratch
* registers (scratch1 ... scratch4). It also requires maskG and maskB for
* color component extractions. These masks must have following values:
* li maskG, 0x07e007e0
* li maskB, 0x001F001F
*/
.macro CONVERT_2x0565_TO_2x8888 in1_565, in2_565, \
out1_8888, out2_8888, \
maskG, maskB, \
scratch1, scratch2, scratch3, scratch4
sll \scratch1, \in1_565, 16
or \scratch1, \scratch1, \in2_565
lui \out2_8888, 0xff00
ori \out2_8888, \out2_8888, 0xff00
shrl.ph \scratch2, \scratch1, 11
and \scratch3, \scratch1, \maskG
shra.ph \scratch4, \scratch2, 2
shll.ph \scratch2, \scratch2, 3
shll.ph \scratch3, \scratch3, 5
or \scratch2, \scratch2, \scratch4
shrl.qb \scratch4, \scratch3, 6
or \out2_8888, \out2_8888, \scratch2
or \scratch3, \scratch3, \scratch4
and \scratch1, \scratch1, \maskB
shll.ph \scratch2, \scratch1, 3
shra.ph \scratch4, \scratch1, 2
or \scratch2, \scratch2, \scratch4
or \scratch3, \scratch2, \scratch3
precrq.ph.w \out1_8888, \out2_8888, \scratch3
precr_sra.ph.w \out2_8888, \scratch3, 0
.endm
/*
* Conversion of single a8r8g8b8 pixel (in_8888) to single r5g6b5 pixel
* returned in (out_565) register. Requires two temporary registers
* (scratch1 and scratch2).
*/
.macro CONVERT_1x8888_TO_1x0565 in_8888, \
out_565, \
scratch1, scratch2
ext \out_565, \in_8888, 0x3, 0x5
srl \scratch1, \in_8888, 0x5
andi \scratch1, \scratch1, 0x07e0
srl \scratch2, \in_8888, 0x8
andi \scratch2, \scratch2, 0xf800
or \out_565, \out_565, \scratch1
or \out_565, \out_565, \scratch2
.endm
/*
* Conversion of two a8r8g8b8 pixels (in1_8888 and in2_8888) to two r5g6b5
* pixels returned in (out1_565 and out2_565) registers. Requires two temporary
* registers (scratch1 and scratch2). It also requires maskR, maskG and maskB
* for color component extractions. These masks must have following values:
* li maskR, 0xf800f800
* li maskG, 0x07e007e0
* li maskB, 0x001F001F
* Value of input register in2_8888 is lost.
*/
.macro CONVERT_2x8888_TO_2x0565 in1_8888, in2_8888, \
out1_565, out2_565, \
maskR, maskG, maskB, \
scratch1, scratch2
precrq.ph.w \scratch1, \in2_8888, \in1_8888
precr_sra.ph.w \in2_8888, \in1_8888, 0
shll.ph \scratch1, \scratch1, 8
srl \in2_8888, \in2_8888, 3
and \scratch2, \in2_8888, \maskB
and \scratch1, \scratch1, \maskR
srl \in2_8888, \in2_8888, 2
and \out2_565, \in2_8888, \maskG
or \out2_565, \out2_565, \scratch2
or \out1_565, \out2_565, \scratch1
srl \out2_565, \out1_565, 16
.endm
/*
* Multiply pixel (a8) with single pixel (a8r8g8b8). It requires maskLSR needed
* for rounding process. maskLSR must have following value:
* li maskLSR, 0x00ff00ff
*/
.macro MIPS_UN8x4_MUL_UN8 s_8888, \
m_8, \
d_8888, \
maskLSR, \
scratch1, scratch2, scratch3
replv.ph \m_8, \m_8 /* 0 | M | 0 | M */
muleu_s.ph.qbl \scratch1, \s_8888, \m_8 /* A*M | R*M */
muleu_s.ph.qbr \scratch2, \s_8888, \m_8 /* G*M | B*M */
shra_r.ph \scratch3, \scratch1, 8
shra_r.ph \d_8888, \scratch2, 8
and \scratch3, \scratch3, \maskLSR /* 0 |A*M| 0 |R*M */
and \d_8888, \d_8888, \maskLSR /* 0 |G*M| 0 |B*M */
addq.ph \scratch1, \scratch1, \scratch3 /* A*M+A*M | R*M+R*M */
addq.ph \scratch2, \scratch2, \d_8888 /* G*M+G*M | B*M+B*M */
shra_r.ph \scratch1, \scratch1, 8
shra_r.ph \scratch2, \scratch2, 8
precr.qb.ph \d_8888, \scratch1, \scratch2
.endm
/*
* Multiply two pixels (a8) with two pixels (a8r8g8b8). It requires maskLSR
* needed for rounding process. maskLSR must have following value:
* li maskLSR, 0x00ff00ff
*/
.macro MIPS_2xUN8x4_MUL_2xUN8 s1_8888, \
s2_8888, \
m1_8, \
m2_8, \
d1_8888, \
d2_8888, \
maskLSR, \
scratch1, scratch2, scratch3, \
scratch4, scratch5, scratch6
replv.ph \m1_8, \m1_8 /* 0 | M1 | 0 | M1 */
replv.ph \m2_8, \m2_8 /* 0 | M2 | 0 | M2 */
muleu_s.ph.qbl \scratch1, \s1_8888, \m1_8 /* A1*M1 | R1*M1 */
muleu_s.ph.qbr \scratch2, \s1_8888, \m1_8 /* G1*M1 | B1*M1 */
muleu_s.ph.qbl \scratch3, \s2_8888, \m2_8 /* A2*M2 | R2*M2 */
muleu_s.ph.qbr \scratch4, \s2_8888, \m2_8 /* G2*M2 | B2*M2 */
shra_r.ph \scratch5, \scratch1, 8
shra_r.ph \d1_8888, \scratch2, 8
shra_r.ph \scratch6, \scratch3, 8
shra_r.ph \d2_8888, \scratch4, 8
and \scratch5, \scratch5, \maskLSR /* 0 |A1*M1| 0 |R1*M1 */
and \d1_8888, \d1_8888, \maskLSR /* 0 |G1*M1| 0 |B1*M1 */
and \scratch6, \scratch6, \maskLSR /* 0 |A2*M2| 0 |R2*M2 */
and \d2_8888, \d2_8888, \maskLSR /* 0 |G2*M2| 0 |B2*M2 */
addq.ph \scratch1, \scratch1, \scratch5
addq.ph \scratch2, \scratch2, \d1_8888
addq.ph \scratch3, \scratch3, \scratch6
addq.ph \scratch4, \scratch4, \d2_8888
shra_r.ph \scratch1, \scratch1, 8
shra_r.ph \scratch2, \scratch2, 8
shra_r.ph \scratch3, \scratch3, 8
shra_r.ph \scratch4, \scratch4, 8
precr.qb.ph \d1_8888, \scratch1, \scratch2
precr.qb.ph \d2_8888, \scratch3, \scratch4
.endm
/*
* Multiply pixel (a8r8g8b8) with single pixel (a8r8g8b8). It requires maskLSR
* needed for rounding process. maskLSR must have following value:
* li maskLSR, 0x00ff00ff
*/
.macro MIPS_UN8x4_MUL_UN8x4 s_8888, \
m_8888, \
d_8888, \
maskLSR, \
scratch1, scratch2, scratch3, scratch4
preceu.ph.qbl \scratch1, \m_8888 /* 0 | A | 0 | R */
preceu.ph.qbr \scratch2, \m_8888 /* 0 | G | 0 | B */
muleu_s.ph.qbl \scratch3, \s_8888, \scratch1 /* A*A | R*R */
muleu_s.ph.qbr \scratch4, \s_8888, \scratch2 /* G*G | B*B */
shra_r.ph \scratch1, \scratch3, 8
shra_r.ph \scratch2, \scratch4, 8
and \scratch1, \scratch1, \maskLSR /* 0 |A*A| 0 |R*R */
and \scratch2, \scratch2, \maskLSR /* 0 |G*G| 0 |B*B */
addq.ph \scratch1, \scratch1, \scratch3
addq.ph \scratch2, \scratch2, \scratch4
shra_r.ph \scratch1, \scratch1, 8
shra_r.ph \scratch2, \scratch2, 8
precr.qb.ph \d_8888, \scratch1, \scratch2
.endm
/*
* Multiply two pixels (a8r8g8b8) with two pixels (a8r8g8b8). It requires
* maskLSR needed for rounding process. maskLSR must have following value:
* li maskLSR, 0x00ff00ff
*/
.macro MIPS_2xUN8x4_MUL_2xUN8x4 s1_8888, \
s2_8888, \
m1_8888, \
m2_8888, \
d1_8888, \
d2_8888, \
maskLSR, \
scratch1, scratch2, scratch3, \
scratch4, scratch5, scratch6
preceu.ph.qbl \scratch1, \m1_8888 /* 0 | A | 0 | R */
preceu.ph.qbr \scratch2, \m1_8888 /* 0 | G | 0 | B */
preceu.ph.qbl \scratch3, \m2_8888 /* 0 | A | 0 | R */
preceu.ph.qbr \scratch4, \m2_8888 /* 0 | G | 0 | B */
muleu_s.ph.qbl \scratch5, \s1_8888, \scratch1 /* A*A | R*R */
muleu_s.ph.qbr \scratch6, \s1_8888, \scratch2 /* G*G | B*B */
muleu_s.ph.qbl \scratch1, \s2_8888, \scratch3 /* A*A | R*R */
muleu_s.ph.qbr \scratch2, \s2_8888, \scratch4 /* G*G | B*B */
shra_r.ph \scratch3, \scratch5, 8
shra_r.ph \scratch4, \scratch6, 8
shra_r.ph \d1_8888, \scratch1, 8
shra_r.ph \d2_8888, \scratch2, 8
and \scratch3, \scratch3, \maskLSR /* 0 |A*A| 0 |R*R */
and \scratch4, \scratch4, \maskLSR /* 0 |G*G| 0 |B*B */
and \d1_8888, \d1_8888, \maskLSR /* 0 |A*A| 0 |R*R */
and \d2_8888, \d2_8888, \maskLSR /* 0 |G*G| 0 |B*B */
addq.ph \scratch3, \scratch3, \scratch5
addq.ph \scratch4, \scratch4, \scratch6
addq.ph \d1_8888, \d1_8888, \scratch1
addq.ph \d2_8888, \d2_8888, \scratch2
shra_r.ph \scratch3, \scratch3, 8
shra_r.ph \scratch4, \scratch4, 8
shra_r.ph \scratch5, \d1_8888, 8
shra_r.ph \scratch6, \d2_8888, 8
precr.qb.ph \d1_8888, \scratch3, \scratch4
precr.qb.ph \d2_8888, \scratch5, \scratch6
.endm
/*
* OVER operation on single a8r8g8b8 source pixel (s_8888) and single a8r8g8b8
* destination pixel (d_8888) using a8 mask (m_8). It also requires maskLSR
* needed for rounding process. maskLSR must have following value:
* li maskLSR, 0x00ff00ff
*/
.macro OVER_8888_8_8888 s_8888, \
m_8, \
d_8888, \
out_8888, \
maskLSR, \
scratch1, scratch2, scratch3, scratch4
MIPS_UN8x4_MUL_UN8 \s_8888, \m_8, \
\scratch1, \maskLSR, \
\scratch2, \scratch3, \scratch4
not \scratch2, \scratch1
srl \scratch2, \scratch2, 24
MIPS_UN8x4_MUL_UN8 \d_8888, \scratch2, \
\d_8888, \maskLSR, \
\scratch3, \scratch4, \out_8888
addu_s.qb \out_8888, \d_8888, \scratch1
.endm
/*
* OVER operation on two a8r8g8b8 source pixels (s1_8888 and s2_8888) and two
* a8r8g8b8 destination pixels (d1_8888 and d2_8888) using a8 masks (m1_8 and
* m2_8). It also requires maskLSR needed for rounding process. maskLSR must
* have following value:
* li maskLSR, 0x00ff00ff
*/
.macro OVER_2x8888_2x8_2x8888 s1_8888, \
s2_8888, \
m1_8, \
m2_8, \
d1_8888, \
d2_8888, \
out1_8888, \
out2_8888, \
maskLSR, \
scratch1, scratch2, scratch3, \
scratch4, scratch5, scratch6
MIPS_2xUN8x4_MUL_2xUN8 \s1_8888, \s2_8888, \
\m1_8, \m2_8, \
\scratch1, \scratch2, \
\maskLSR, \
\scratch3, \scratch4, \out1_8888, \
\out2_8888, \scratch5, \scratch6
not \scratch3, \scratch1
srl \scratch3, \scratch3, 24
not \scratch4, \scratch2
srl \scratch4, \scratch4, 24
MIPS_2xUN8x4_MUL_2xUN8 \d1_8888, \d2_8888, \
\scratch3, \scratch4, \
\d1_8888, \d2_8888, \
\maskLSR, \
\scratch5, \scratch6, \out1_8888, \
\out2_8888, \scratch3, \scratch4
addu_s.qb \out1_8888, \d1_8888, \scratch1
addu_s.qb \out2_8888, \d2_8888, \scratch2
.endm
.macro BILINEAR_INTERPOLATE_SINGLE_PIXEL tl, tr, bl, br, \
scratch1, scratch2, \
alpha, red, green, blue \
wt1, wt2, wb1, wb2
andi \scratch1, \tl, 0xff
andi \scratch2, \tr, 0xff
andi \alpha, \bl, 0xff
andi \red, \br, 0xff
multu $ac0, \wt1, \scratch1
maddu $ac0, \wt2, \scratch2
maddu $ac0, \wb1, \alpha
maddu $ac0, \wb2, \red
ext \scratch1, \tl, 8, 8
ext \scratch2, \tr, 8, 8
ext \alpha, \bl, 8, 8
ext \red, \br, 8, 8
multu $ac1, \wt1, \scratch1
maddu $ac1, \wt2, \scratch2
maddu $ac1, \wb1, \alpha
maddu $ac1, \wb2, \red
ext \scratch1, \tl, 16, 8
ext \scratch2, \tr, 16, 8
ext \alpha, \bl, 16, 8
ext \red, \br, 16, 8
mflo \blue, $ac0
multu $ac2, \wt1, \scratch1
maddu $ac2, \wt2, \scratch2
maddu $ac2, \wb1, \alpha
maddu $ac2, \wb2, \red
ext \scratch1, \tl, 24, 8
ext \scratch2, \tr, 24, 8
ext \alpha, \bl, 24, 8
ext \red, \br, 24, 8
mflo \green, $ac1
multu $ac3, \wt1, \scratch1
maddu $ac3, \wt2, \scratch2
maddu $ac3, \wb1, \alpha
maddu $ac3, \wb2, \red
mflo \red, $ac2
mflo \alpha, $ac3
precr.qb.ph \alpha, \alpha, \red
precr.qb.ph \scratch1, \green, \blue
precrq.qb.ph \tl, \alpha, \scratch1
.endm
#endif //PIXMAN_MIPS_DSPR2_ASM_H
|
7fbffaab09b89393327eacd6cab4c886045eef4b
|
b8846467fdf9ff54b30b1cbad9666a9ecf18fef4
|
/quickSort.c
|
5647f17f219e886ebaeee8a96c729e7a2a9f910e
|
[] |
no_license
|
bogomazov/SortAlgorithms
|
8772b81502ef3684979ea29d62e4175b4e523162
|
09582d03aab2655ea32f3ce994883f9d43667eb3
|
refs/heads/master
| 2021-01-01T18:55:46.496594 | 2015-07-30T19:58:37 | 2015-07-30T19:58:37 | 39,969,405 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,403 |
c
|
quickSort.c
|
#include <stdio.h>
int getLength(FILE *in) {
int length = 0;
fscanf(in, "%d", &length);
return length;
}
int partition(int array[], int start, int end) {
int avarage = (start + end) / 2;
int pivot = array[avarage];
int tail;
array[avarage] = array[end];
array[end] = pivot;
for ( tail = start; array[tail] < array[end]; tail++ );
for ( int i = tail + 1; i < end; i++ ) {
if ( array[i] <= array[end] ) {
int tmp = array[i];
array[i] = array[tail];
array[tail] = tmp;
tail += 1;
}
}
pivot = array[tail];
array[tail] = array[end];
array[end] = pivot;
return tail;
}
void quickSort(int array[], int lo, int hi) {
int pivot;
if ( hi - lo < 1 ) {
return;
}
pivot = partition(array, lo, hi);
quickSort(array, lo, pivot-1);
quickSort(array, pivot+1, hi);
}
int main() {
FILE *in = fopen("task.in", "r");
FILE *out = fopen("task.out", "w");
int len = getLength(in);
int array[len-1];
for ( int i = 0; i < len && fscanf(in, "%d", &array[i]) != 0; i += 1 );
quickSort(array, 0, len-1);
for ( int i = 0; i < len - 1; i++ ) {
fprintf(out, "%d ", array[i]);
}
fprintf(out, "%d\n", array[len-1]);
fclose(in);
fclose(out);
return 0;
}
|
59e757f8cc38af60d27fa6aa6cdfedac4d24ac31
|
6395b149b01d49d76e4764e9f64fdd319af4972d
|
/source/CheckCastling.c
|
806c481c6d429b0bfa35dd4c9e275dc55e202042
|
[] |
no_license
|
MichelKrispin/Chess
|
e2c72f377a3e6aefa1eaac18d47a218c4a0f36a7
|
6816c46285a28ca482a5f8bd8abfd56d7a1682e0
|
refs/heads/master
| 2021-08-09T00:49:24.424209 | 2021-06-16T17:09:39 | 2021-06-16T17:09:39 | 164,455,065 | 2 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 661 |
c
|
CheckCastling.c
|
#include "CheckCastling.h"
int CheckCastling(char activePlayer,
unsigned int destcolumn,
unsigned int field[][8][2],
SpecialMoveSet specialMoveSet)
{
if(activePlayer && !specialMoveSet.whiteKing)
{
if(destcolumn > 4 && !specialMoveSet.wRightRook)
return 1;
else if(destcolumn < 4 && !specialMoveSet.wLeftRook)
return 1;
}
else if(!specialMoveSet.blackKing)
{
if(destcolumn > 4 && !specialMoveSet.bRightRook)
return 1;
else if(destcolumn < 4 && !specialMoveSet.bLeftRook)
return 1;
}
return 0;
}
|
4a667821684ee543a505f9cedd02226c513493cc
|
5fe9fb23e5df770cd15ead80cb48808288d6da75
|
/xbox360/xcompress.h
|
757afe5c4b9dc1e79c55afdf15d22fea0c49360b
|
[] |
no_license
|
DennisStanistan/stevens
|
bd3788f2ae74815036794a53e15e92edbacbe54b
|
caf92c4bf3cfce0f5461e3f22f60753593cec410
|
refs/heads/master
| 2022-04-06T21:27:03.051608 | 2020-02-26T09:55:46 | 2020-02-26T09:55:46 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 8,390 |
h
|
xcompress.h
|
/************************************************************************
* *
* xcompress.h -- This module defines the Xbox Compression APIs *
* *
* Copyright (c) Microsoft Corp. All rights reserved. *
* *
************************************************************************/
#pragma once
#ifndef _XCOMPRESS_H_
#define _XCOMPRESS_H_
#include <sal.h>
#ifndef XBOXAPI
#define XBOXAPI
#endif
#ifdef __cplusplus
#define XCTDEXTERN extern "C"
#else
#define XCTDEXTERN extern
#endif
#ifdef __cplusplus
extern "C"
{
#endif
#pragma warning(push)
#pragma warning(disable: 4200) // zero-sized array
typedef enum _XMEMCODEC_TYPE
{
XMEMCODEC_DEFAULT = 0,
XMEMCODEC_LZX = 1
} XMEMCODEC_TYPE;
/*
* Data compression flags
*/
#define XMEMCOMPRESS_STREAM 0x00000001
/*
* Data compression functions
*/
typedef VOID* XMEMCOMPRESSION_CONTEXT;
XBOXAPI
HRESULT
WINAPI
XMemCreateCompressionContext(
__in XMEMCODEC_TYPE CodecType,
__in_opt CONST VOID* pCodecParams,
__in DWORD Flags,
__deref_out XMEMCOMPRESSION_CONTEXT* pContext
);
XBOXAPI
XMEMCOMPRESSION_CONTEXT
WINAPI
XMemInitializeCompressionContext(
__in XMEMCODEC_TYPE CodecType,
__in_opt CONST VOID* pCodecParams,
__in DWORD Flags,
__out_bcount(ContextSize) VOID* pContextData,
__in SIZE_T ContextSize
);
XBOXAPI
VOID
WINAPI
XMemDestroyCompressionContext(
__in XMEMCOMPRESSION_CONTEXT Context
);
XBOXAPI
SIZE_T
WINAPI
XMemGetCompressionContextSize(
__in XMEMCODEC_TYPE CodecType,
__in_opt CONST VOID* pCodecParams,
__in DWORD Flags
);
XBOXAPI
HRESULT
WINAPI
XMemResetCompressionContext(
__in XMEMCOMPRESSION_CONTEXT Context);
XBOXAPI
HRESULT
WINAPI
XMemCompress(
__in XMEMCOMPRESSION_CONTEXT Context,
__out_bcount_opt( *pDestSize ) VOID* pDestination,
__inout SIZE_T* pDestSize,
__in_bcount( SrcSize ) CONST VOID* pSource,
__in SIZE_T SrcSize
);
XBOXAPI
HRESULT
WINAPI
XMemCompressStream(
__in XMEMCOMPRESSION_CONTEXT Context,
__out_bcount_opt( *pDestSize ) VOID* pDestination,
__inout SIZE_T* pDestSize,
__in_bcount( *pSrcSize ) CONST VOID* pSource,
__inout SIZE_T* pSrcSize
);
/*
* Data decompression functions
*/
typedef VOID* XMEMDECOMPRESSION_CONTEXT;
XBOXAPI
HRESULT
WINAPI
XMemCreateDecompressionContext(
__in XMEMCODEC_TYPE CodecType,
__in_opt CONST VOID* pCodecParams,
__in DWORD Flags,
__deref_out XMEMDECOMPRESSION_CONTEXT* pContext
);
XBOXAPI
XMEMDECOMPRESSION_CONTEXT
WINAPI
XMemInitializeDecompressionContext(
__in XMEMCODEC_TYPE CodecType,
__in_opt CONST VOID* pCodecParams,
__in DWORD Flags,
__out_bcount( ContextSize ) VOID* pContextData,
__in SIZE_T ContextSize
);
XBOXAPI
VOID
WINAPI
XMemDestroyDecompressionContext(
__in XMEMDECOMPRESSION_CONTEXT Context
);
XBOXAPI
SIZE_T
WINAPI
XMemGetDecompressionContextSize(
__in XMEMCODEC_TYPE CodecType,
__in_opt CONST VOID* pCodecParams,
__in DWORD Flags
);
XBOXAPI
HRESULT
WINAPI
XMemResetDecompressionContext(
__in XMEMDECOMPRESSION_CONTEXT Context);
XBOXAPI
HRESULT
WINAPI
XMemDecompress(
__in XMEMDECOMPRESSION_CONTEXT Context,
__out_bcount( *pDestSize ) VOID* pDestination,
__inout SIZE_T* pDestSize,
__in_bcount( SrcSize) CONST VOID* pSource,
__in SIZE_T SrcSize
);
XBOXAPI
HRESULT
WINAPI
XMemDecompressStream(
__in XMEMDECOMPRESSION_CONTEXT Context,
__out_bcount( *pDestSize ) VOID* pDestination,
__inout SIZE_T* pDestSize,
__in_bcount( *pSrcSize ) CONST VOID* pSource,
__inout SIZE_T* pSrcSize
);
/*
* LZX codec for lossless compression
*/
typedef struct _XMEMCODEC_PARAMETERS_LZX
{
DWORD Flags;
DWORD WindowSize;
DWORD CompressionPartitionSize;
} XMEMCODEC_PARAMETERS_LZX;
#define XCOMPRESS_LZX_BLOCK_SIZE (32 * 1024)
#define XCOMPRESS_LZX_BLOCK_GROWTH_SIZE_MAX 6155
/*
* Error codes
*/
#define XMCDERR_MOREDATA _HRESULT_TYPEDEF_(0x81DE2001)
/*
* Transparent decoding
*/
#if defined(_M_PPCBE)
typedef struct _XTDECODER_PARAMETERS
{
XMEMCODEC_TYPE CodecType;
CONST VOID* pCodecParams;
DWORD Flags;
DWORD HardwareThread;
INT ThreadPriority;
DWORD SegmentSizeLimit;
DWORD PendingReadLimit;
DWORD OpenFileLimit;
DWORD TranslationCacheSize;
} XTDECODER_PARAMETERS;
/*
* Transparent decoding flags
*/
#define XTDECODER_NO_READ_ALIGNMENT_ENFORCEMENT 0x00000001
/*
* Transparent decoding global which, when set to TRUE before transparent
* decompression has been enabled, will force an explicit examination (read)
* of all files when created to determine their compression state (ignoring
* the presence or absence of the GDF compressed attribute bit). Use of this
* global should be done for debugging purposes only.
*/
XCTDEXTERN BOOL XCTD__ProbeFileCompressionState;
/*
* Transparent decoding functions
*/
XBOXAPI
HRESULT
WINAPI
XFileEnableTransparentDecompression(
__in_opt CONST XTDECODER_PARAMETERS* pDecoderParams
);
XBOXAPI
VOID
WINAPI
XFileDisableTransparentDecompression();
#endif
/*
* Compression file headers
*/
#define XCOMPRESS_FILE_IDENTIFIER_LZXTDECODE 0x0FF512ED
#define XCOMPRESS_FILE_IDENTIFIER_LZXNATIVE 0x0FF512EE
#define XCOMPRESS_SET_FILE_VERSION(Major, Minor) ((((Major) & 0xFF) << 8) | ((Minor) & 0xFF))
#define XCOMPRESS_GET_FILE_VERSION_MAJOR(Version) (((Version) >> 8) & 0xFF)
#define XCOMPRESS_GET_FILE_VERSION_MINOR(Version) ((Version) & 0xFF)
#define XCOMPRESS_LZXTDECODE_VERSION_MAJOR 1
#define XCOMPRESS_LZXTDECODE_VERSION_MINOR 0
#define XCOMPRESS_LZXNATIVE_VERSION_MAJOR 1
#define XCOMPRESS_LZXNATIVE_VERSION_MINOR 3
typedef struct _XCOMPRESS_FILE_HEADER
{
DWORD Identifier;
WORD Version;
WORD Reserved;
} XCOMPRESS_FILE_HEADER;
typedef struct _XCOMPRESS_FILE_HEADER_LZXNATIVE
{
XCOMPRESS_FILE_HEADER Common;
DWORD ContextFlags;
XMEMCODEC_PARAMETERS_LZX CodecParams;
DWORD UncompressedSizeHigh;
DWORD UncompressedSizeLow;
DWORD CompressedSizeHigh;
DWORD CompressedSizeLow;
DWORD UncompressedBlockSize;
DWORD CompressedBlockSizeMax;
} XCOMPRESS_FILE_HEADER_LZXNATIVE;
typedef struct _XCOMPRESS_BLOCK_HEADER_LZXNATIVE
{
DWORD CompressedBlockSize;
BYTE pCompressedData[0];
} XCOMPRESS_BLOCK_HEADER_LZXNATIVE;
#pragma warning(pop)
#ifdef __cplusplus
}
#endif
#endif /* _XCOMPRESS_H_ */
|
67bec976b130d062b2cad3587ac032ad36ba3876
|
b1adc0d6d6f8762d131c7c0d8c6b49eda8118e15
|
/samples32/test02.bts
|
6c3bbbd54458dc321470b1ae7a4a9af904eadfb9
|
[
"BSD-3-Clause"
] |
permissive
|
xyproto/battlestar
|
5547b791a576b81ea5e9a4e9fa9e25076b63708a
|
8e137a0e9623cfdf11c1c301dd7fe303a77c6b43
|
refs/heads/main
| 2023-05-25T03:53:09.848771 | 2023-05-13T14:11:59 | 2023-05-13T14:11:59 | 17,027,713 | 74 | 7 |
MIT
| 2021-07-10T22:08:30 | 2014-02-20T16:49:03 |
C
|
UTF-8
|
C
| false | false | 249 |
bts
|
test02.bts
|
const commence = "Commence jump prep.", 10
const nebula = "We're going to the ionian nebula.", 10
fun _start
int(80, 4, 1, commence, len(commence))
int(80, 4, 1, nebula, len(nebula))
int(80, 1)
ret 2
// vim: syntax=c ts=4 sw=4 et:
|
449db24ff2b8dd353a5f2ca85084d6ad5194a308
|
56e33f7c7613b923422d4c6f181d32ec9781ed06
|
/src/zobrist_hash.h
|
cf9c6892f5220c6a806e66f28958ebc18b6f834b
|
[] |
no_license
|
ds282547/TCGFinal
|
53638e0e6e34c5e31a354179fc10cabcb753712a
|
649d64ffc62310491a39e6a6ac34ec35ffc3d850
|
refs/heads/main
| 2023-03-19T14:11:44.876580 | 2021-03-21T23:06:23 | 2021-03-22T04:08:18 | 350,142,804 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 2,880 |
h
|
zobrist_hash.h
|
#include "random.h"
struct _board_status
{
unsigned long long board;
float value[8];
unsigned char search_depth[8];
unsigned short bagstatus[8];
unsigned char has_dead_board[8];
};
typedef struct _board_status boardStatus;
unsigned long long* fast_hash_table;
boardStatus* transposition_table;
int index_mask;
void initialize_z_hash(){
unsigned long long normal_hash_table[16][16];
unsigned i,j;
random_init(0);
for(i = 0;i < 16;i++)
for(j = 0;j < 16;j++)
normal_hash_table[i][j] = random_value();
fast_hash_table = (unsigned long long *) malloc( sizeof(unsigned long long) * (0x40000) ); // 4 row
for(i = 0;i < 65536;i++) {
for(j = 0;j < 4;j++) {
fast_hash_table[i * 4 + j] = normal_hash_table[(i & 0xf000) >> 12][j * 4] ^
normal_hash_table[(i & 0x0f00) >> 8][j * 4 + 1] ^
normal_hash_table[(i & 0x00f0) >> 4][j * 4 + 2] ^
normal_hash_table[(i & 0x000f)][j * 4 + 3];
}
}
transposition_table = (boardStatus*) malloc ( sizeof(boardStatus) * 0x1000000);
if(transposition_table == NULL){
printf("\n\n\nDead\n\n\n\n");
}
index_mask = 0x1000000 - 1;
}
unsigned long long get_hash_value(unsigned long long board)
{
return fast_hash_table[((board & 0xffff000000000000) >> 46)] ^
fast_hash_table[((board & 0x0000ffff00000000) >> 30) + 1] ^
fast_hash_table[((board & 0x00000000ffff0000) >> 14) + 2] ^
fast_hash_table[((board & 0x000000000000ffff) << 2) + 3];
}
float z_hash_table_get_value(bitboard board,unsigned search_depth, bool *has_dead_board, bool* find_value, unsigned bag, unsigned hint, unsigned op)
{
unsigned h = (hint-1) | (op<<2);
unsigned long long hash_value = get_hash_value(board);;
*find_value = false;
boardStatus* board_status = transposition_table + (hash_value & index_mask);
if(board_status->board == board && board_status->search_depth[h] >= search_depth && board_status->bagstatus[h] == bag) {
*find_value = true;
*has_dead_board = board_status->has_dead_board[h];
return board_status->value[h];
}
return 0.0;
}
void z_hash_table_set_value(bitboard board,Float value,unsigned search_depth, bool has_dead_board, unsigned bag, unsigned hint, unsigned op)
{
unsigned h = (hint-1) | (op<<2);
unsigned long long hash_value = get_hash_value(board);
boardStatus* board_status = transposition_table + (hash_value & index_mask);
if(board_status->board != board) {
board_status->board = board;
board_status->value[h] = value;
board_status->has_dead_board[h] = has_dead_board;
board_status->search_depth[h] = search_depth;
board_status->bagstatus[h] = bag;
}else if(board_status->search_depth[h] < search_depth) {
board_status->value[h] = value;
board_status->has_dead_board[h] = has_dead_board;
board_status->search_depth[h] = search_depth;
board_status->bagstatus[h] = bag;
}
}
void free_zhashing(){
free(transposition_table);
}
|
0cc3d1f9ff0c693902ac4017b4c842905dcbc719
|
57c0f17779bf94754bc12948f5c07f54bb2c19ba
|
/src/headers/util.h
|
a777b3a1ce9cc084dbea08f7b10b8bc1e911687d
|
[] |
no_license
|
Pikby/TheAbyss
|
f469795c28e71817cb7271aab82138d7ab837fbd
|
ef4280f2f5e3e1b2d18961cfef90e0dc62c25879
|
refs/heads/master
| 2021-06-08T19:15:15.986617 | 2020-02-07T21:17:36 | 2020-02-07T21:17:36 | 91,918,301 | 2 | 4 | null | 2019-12-15T03:19:16 | 2017-05-20T21:50:24 |
C++
|
UTF-8
|
C
| false | false | 181 |
h
|
util.h
|
inline int pack4chars(uint8_t a, uint8_t b, uint8_t c, uint8_t d)
{
return ((a << 24) | (b << 16) | (c << 8) | d);
}
inline int floatBitsToInt(float f)
{
return *(int*)&f;
}
|
1cf0ea9884cd6be4bd41c5e65864f0fc9f817e9a
|
56728ca1ee9f571235723a68c658f94ee8aebb88
|
/windows/sstpmsg.h
|
31a599770215c9aed84a199e2fa7b608f57235b1
|
[
"MIT",
"GPL-1.0-or-later"
] |
permissive
|
libretro/NP2kai
|
4b5867622a790649840bc62ce751e762e4c75e74
|
749d88e5a49c625a340275a9eaa33830f1602bbb
|
refs/heads/master
| 2023-06-10T03:56:51.304948 | 2023-05-28T04:00:22 | 2023-05-28T04:00:22 | 121,966,104 | 10 | 16 |
MIT
| 2023-05-28T04:00:23 | 2018-02-18T15:56:05 |
C
|
UTF-8
|
C
| false | false | 224 |
h
|
sstpmsg.h
|
void sstpmsg_welcome(void);
void sstpmsg_reset(void);
void sstpmsg_about(void);
void sstpmsg_config(void);
BOOL sstpconfirm_reset(void);
BOOL sstpconfirm_exit(void);
BOOL sstpmsg_running(void);
BOOL sstpmsg_dxerror(void);
|
b8a4c5787d25ccd2a03ad48f2d4e0daaa540cadc
|
27cfa0484a330c32fcc7085239028ebb2e9ab4ba
|
/test/return.c
|
dc72c6ded70c0bf2a97ee3023d036bed8510f85a
|
[] |
no_license
|
wgwjifeng/ucc
|
cb76ac6841697e088dd2b06c3e9c7015bcb4ebc9
|
aa3c131748e5293a0ecea90d1afd164d8fb8be92
|
refs/heads/master
| 2020-03-31T00:11:32.785570 | 2016-11-18T15:39:26 | 2016-11-18T15:39:26 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 160 |
c
|
return.c
|
/*
2
3
5
*/
#include "test.h"
void foo()
{
print_int(3);
return;
print_int(4);
}
int main()
{
print_int(2);
foo();
print_int(5);
return 0;
}
|
26c6e1ede19d2621749ce434ae0f9b67b0e5aec2
|
12bcfdb057a49ead35aff8e856617497425fb491
|
/ZKW_Magnetisierer/ZKW_Magnetisier_neu/ZKW_Magnetisier_neu/magnetisierer.h
|
6493bddb7fb047a812ce6945d99a337e7c8433fd
|
[] |
no_license
|
arminbaumgartner/magnetisierer
|
d0270bd9f15119f3e4fb6f7de2ecc62e7eaf504a
|
f04f2678f19053d19a8edd65eab18e102aed8929
|
refs/heads/master
| 2020-04-08T00:21:04.576852 | 2018-12-12T09:46:23 | 2018-12-12T09:46:23 | 158,848,722 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 491 |
h
|
magnetisierer.h
|
/*
Include datei
*/
#define MOSFETTIME 10
#define V_CAP 30
#define WARTEZEIT 3
#define MOSFET_EIN PORTB = PORTB | (1<<PB1)
#define MOSFET_AUS PORTB = PORTB &~ (1<<PB1)
char volatile taster_ein = 0;
char volatile adc_high;
char volatile adc_low;
char volatile sleep_flag = 0;
void init_timer(void);
void init_adc(void);
void init_ext_interrupt(void);
void init_sleep_mode (void);
void sleep_on (void);
void mosfet_schalten(void);
void led_on (void);
|
315472f94189d83a8545b90f6734b6105b8ab54f
|
f3a945705e6627a3c6ca427bb15783683b491d28
|
/hw1/services/callback.h
|
26b801b013e321a1c067369135ae666b99e2b2dc
|
[] |
no_license
|
Joowce/cse4116
|
179ad7c0100cd63586342aa2001d553dda89826a
|
ea3d181860b1f54f4123f0a4324def4a93fc9ccd
|
refs/heads/master
| 2020-05-07T17:51:09.175115 | 2019-09-16T13:06:02 | 2019-09-16T13:06:02 | 180,743,533 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 194 |
h
|
callback.h
|
//
// Created by 민지우 on 2019-04-11.
//
#ifndef EMBEDED_TYPE_H
#define EMBEDED_TYPE_H
typedef int (*callback) (int, ...);
typedef int (* callback_no_arg) (void);
#endif //EMBEDED_TYPE_H
|
a83c67c6026c52ef4df98786777b3641fd182e3b
|
bed05496e526a2716d6aa2ca7904c1b89c9058f3
|
/HackerRank/goblet.c
|
6e54b47f76d438bfca939b5429ce1d9f6e13af3e
|
[] |
no_license
|
dushyant7917/Competitive-Programming
|
2e5b6141e87f42bb5dbb61db3b6bcb383c559c16
|
d25bbb12235bdaf42435342e4865b5b0b6b37a31
|
refs/heads/master
| 2020-06-28T12:05:58.959849 | 2019-08-02T12:24:15 | 2019-08-02T12:24:15 | 200,230,019 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 2,487 |
c
|
goblet.c
|
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
typedef struct LinkedListNode LinkedListNode;
struct LinkedListNode {
int val;
LinkedListNode *next;
};
LinkedListNode* _insert_node_into_singlylinkedlist(LinkedListNode *head, LinkedListNode *tail, int val) {
if(head == NULL) {
head = (LinkedListNode *) (malloc(sizeof(LinkedListNode)));
head->val = val;
head->next = NULL;
tail = head;
}
else {
LinkedListNode *node = (LinkedListNode *) (malloc(sizeof(LinkedListNode)));
node->val = val;
node->next = NULL;
tail->next = node;
tail = tail->next;
}
return tail;
}
/*
* Complete the function below.
*/
/*
For your reference:
LinkedListNode {
int val;
LinkedListNode *next;
};
*/
bool findIntersection(LinkedListNode* head1, LinkedListNode* head2) {
LinkedListNode *node1=head1;
LinkedListNode *node2=head2;
while(node1->next!=NULL){
node1=node1->next;
}
while(node2->next!=NULL){
node2=node2->next;
}
if(node1==node2){
return true;
}
return false;
}
int main()
{
FILE *f = stdout;
char *output_path = getenv("OUTPUT_PATH");
if (output_path) {
f = fopen(output_path, "w");
}
bool res;
int head1_size = 0;
LinkedListNode* head1 = NULL;
LinkedListNode* head1_tail = NULL;
scanf("%d", &head1_size);
for(int i = 0; i < head1_size; i++) {
int head1_item;
scanf("%d", &head1_item);
head1_tail = _insert_node_into_singlylinkedlist(head1, head1_tail, head1_item);
if(i == 0) {
head1 = head1_tail;
}
}
int head2_size = 0;
LinkedListNode* head2 = NULL;
LinkedListNode* head2_tail = NULL;
scanf("%d", &head2_size);
for(int i = 0; i < head2_size; i++) {
int head2_item;
scanf("%d", &head2_item);
head2_tail = _insert_node_into_singlylinkedlist(head2, head2_tail, head2_item);
if(i == 0) {
head2 = head2_tail;
}
}
int token;
scanf("%d", &token);
if (token != 0){
token--;
LinkedListNode* ptr = head1;
while(token--){
ptr = ptr->next;
}
if (head2 == NULL) head2 = ptr;
else head2_tail->next = ptr;
}
res = findIntersection(head1, head2);
fprintf(f, "%d\n", res);
fclose(f);
return 0;
}
|
664c16acd4738e356a4bdb6bc15bc1129ddc89ad
|
165ec143dbad5d827b714938684c74731d0d9609
|
/src/mixer.c
|
ee815e64280fdc6967bb4046be12767f140a1490
|
[
"MIT"
] |
permissive
|
ford442/astronoids
|
82ee5bb6f4ece166eb150c7b9a89a0a0ea45fff9
|
0c260db07cbe063477f1cad3f0aade636e1c8553
|
refs/heads/master
| 2023-07-08T11:30:35.075263 | 2021-08-01T21:34:47 | 2021-08-01T21:34:47 | 388,295,282 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 3,190 |
c
|
mixer.c
|
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef __EMSCRIPTEN__
#include <SDL/SDL_mixer.h>
#else
#include <SDL.h>
#include <SDL_mixer.h>
#endif
#include "./mixer.h"
static Mix_Chunk **samples=NULL;
static int num_samples=0;
static bool audio_device_open=false;
bool mixer_init(int mixer_channels){
static const Uint16 format=AUDIO_S16;
static const int frequency=44100;
static const int channels=1;
static const int chunksize=512;
Mix_Init(0);
if(false == audio_device_open){
if(0 > Mix_OpenAudio(frequency,format,channels,chunksize)){
fprintf(stderr,"Failed to open audio device: %s\n",Mix_GetError());
return false;
}
audio_device_open=true;
}
if(MIXER_DEFAULT == mixer_channels){
Mix_AllocateChannels(MIX_CHANNELS);
} else{
Mix_AllocateChannels(mixer_channels);
}
return true;
}
void mixer_set_channel_completion_handler(void (*callback)(int)){
Mix_ChannelFinished(callback);
}
int mixer_load_sample_from_file(const char *path){
static const size_t PTR_SIZE=sizeof(Mix_Chunk * );
if(num_samples * PTR_SIZE > SIZE_MAX-PTR_SIZE){
fprintf(stderr,"Maximum number of samples (%d) reached while loading audio file (%s)",
num_samples,path);
return MIXER_INVALID_SAMPLE;
}
Mix_Chunk **const realloc_samples=realloc(samples,(num_samples+1) * PTR_SIZE);
if(NULL == realloc_samples){
fprintf(stderr,"realloc failed while loading audio file (%s): %s",path,strerror(errno));
return MIXER_INVALID_SAMPLE;
} else{
samples=realloc_samples;
}
FILE *const f=fopen(path,"rb");
if(NULL == f){
fprintf(stderr,"Failed to open file (%s): %s\n",path,strerror(errno));
return MIXER_INVALID_SAMPLE;
}
fseek(f,0L,SEEK_END);
const int sz=ftell(f);
fseek(f,0L,SEEK_SET);
void *buffer=malloc(sz);
int result=fread(buffer,sz,1,f);
fclose(f);
if(result != 1){
fprintf(stderr,"Failed to read sample from file (%s)\n",path);
return MIXER_INVALID_SAMPLE;
}
SDL_RWops *const rw=SDL_RWFromMem(buffer,sz);
if(NULL == rw){
free(buffer);
fprintf(stderr,"SDL_RWFromMem failed while loading audio file (%s): %s\n",path,
SDL_GetError());
return MIXER_INVALID_SAMPLE;
}
samples[num_samples]=Mix_LoadWAV_RW(rw,0);
if(NULL == samples[num_samples]){
fprintf(stderr,"Mix_LoadWAV failed while loading audio file (%s): %s\n",path,
Mix_GetError());
}
#ifdef __EMSCRIPTEN__
SDL_FreeRW(rw);
#else
if(0 != SDL_RWclose(rw)){
fprintf(stderr,"SDL_RW close failed while loading audio file (%s): %s\n",path,
SDL_GetError());
}
#endif
free(buffer);
return NULL == samples[num_samples] ? MIXER_INVALID_SAMPLE : num_samples++;
}
int mixer_play_sample(const int sample){
static const int ANY_CHANNEL=-1;
if(sample > num_samples-1 || NULL == samples[sample]){
return MIXER_INVALID_CHANNEL;
}
return Mix_PlayChannel(ANY_CHANNEL,samples[sample],0);
}
bool mixer_stop_playing_on_channel(int channel){
if(0 == Mix_Playing(channel)){
return false;
}
Mix_HaltChannel(channel);
return true;
}
void mixer_cleanup(){
static const int ALL_CHANNELS=-1;
Mix_HaltChannel(ALL_CHANNELS);
if(NULL != samples){
for (int i=0; i < num_samples; ++i){
if(NULL != samples[i]){
Mix_FreeChunk(samples[i]);
samples[i]=NULL;
}
}
free(samples);
samples=NULL;
}
Mix_CloseAudio();
audio_device_open=false;
Mix_Quit();
}
|
2dba2ecfcac5d05d1812eb9e5c346324f3cae107
|
5605f08febad36f051d9e1f4db6b3be256a43d52
|
/client/src/passeggero.c
|
bec8bedb2e76ab7b01aeadac8e8725967a30a7d9
|
[] |
no_license
|
Adrianaaa1/public-transport
|
be4bb3e4d023421db7ef220c15affb80cddbc2e5
|
4e6ab7634fe056d49328df4c3b3d949193df6a30
|
refs/heads/main
| 2023-08-11T00:42:31.870663 | 2021-09-03T22:11:53 | 2021-09-03T22:11:53 | 400,806,521 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 8,133 |
c
|
passeggero.c
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "defines.h"
#define MAX_DEGREES 128
struct average_grades {
int latitudineI;
int longitudineI;
double avg;
};
float ftemp;
float ftemp2;
static void Timbra_biglietto(MYSQL* conn) {
MYSQL_STMT* TimbraB;
MYSQL_BIND param[3];
int biglietto;
int veicolo;
int tratta;
printf("Inserisci il numero del biglietto : ");
scanf_s("%d", &biglietto);
printf("Su quale veicolo ti trovi : ");
scanf_s("%d", &veicolo);
printf("Quale tratta stai percorrendo : ");
scanf_s("%d", &tratta);
if (!setup_prepared_stmt(&TimbraB, "call Timbra_biglietto(?, ?, ?)", conn)) {
print_stmt_error(TimbraB, "Unable to initialize login statement\n");
}
// Prepare parameters
memset(param, 0, sizeof(param));
param[0].buffer_type = MYSQL_TYPE_LONG; //IN
param[0].buffer = &biglietto;
param[0].buffer_length = sizeof(biglietto);
param[1].buffer_type = MYSQL_TYPE_LONG; //IN
param[1].buffer = &tratta;
param[1].buffer_length = sizeof(tratta);
param[2].buffer_type = MYSQL_TYPE_LONG; //IN
param[2].buffer = &veicolo;
param[2].buffer_length = sizeof(veicolo);
if (mysql_stmt_bind_param(TimbraB, param) != 0) {
finish_with_stmt_error(conn, TimbraB, "Could not bind parameters for career report\n", true);
}
// Run procedure
if (mysql_stmt_execute(TimbraB) != 0) {
print_stmt_error(TimbraB, "An error occurred while retrieving the career report.");
goto out;
}
printf("Hai tibrato il bigletto [%d]\n", biglietto);
system("pause");
mysql_stmt_close(TimbraB);
return;
out:
mysql_stmt_close(TimbraB);
}
static void Convalida_abbonamento(MYSQL* conn) {
MYSQL_STMT* TimbraA;
MYSQL_BIND param[3];
int abbonamento;
int veicolo;
int tratta;
printf("Inserisci il numero dell'abbonamento : ");
scanf_s("%d", &abbonamento);
printf("Su quale veicolo ti trovi : ");
scanf_s("%d", &veicolo);
printf("Quale tratta stai percorrendo : ");
scanf_s("%d", &tratta);
if (!setup_prepared_stmt(&TimbraA, "call Convalida_abbonamento(?, ?, ?)", conn)) {
print_stmt_error(TimbraA, "Unable to initialize login statement\n");
}
// Prepare parameters
memset(param, 0, sizeof(param));
param[0].buffer_type = MYSQL_TYPE_LONG; //IN
param[0].buffer = &abbonamento;
param[0].buffer_length = sizeof(abbonamento);
param[1].buffer_type = MYSQL_TYPE_LONG; //IN
param[1].buffer = &tratta;
param[1].buffer_length = sizeof(tratta);
param[2].buffer_type = MYSQL_TYPE_LONG; //IN
param[2].buffer = &veicolo;
param[2].buffer_length = sizeof(veicolo);
if (mysql_stmt_bind_param(TimbraA, param) != 0) {
finish_with_stmt_error(conn, TimbraA, "Could not bind parameters for career report\n", true);
}
// Run procedure
if (mysql_stmt_execute(TimbraA) != 0) {
print_stmt_error(TimbraA, "An error occurred while retrieving the career report.");
goto out;
}
printf("Hai convalidato l'abbonamento [%d]\n", abbonamento);
system("pause");
mysql_stmt_close(TimbraA);
return;
out:
mysql_stmt_close(TimbraA);
}
static size_t parse_avgs(MYSQL* conn, MYSQL_STMT* stmt, struct average_grades** ret)
{
int status;
size_t row = 0;
MYSQL_BIND param[3];
double avg;
char latitudine[12];
char longitudine[12];
int veicolo;
if (mysql_stmt_store_result(stmt)) {
fprintf(stderr, " mysql_stmt_execute(), 1 failed\n");
fprintf(stderr, " %s\n", mysql_stmt_error(stmt));
exit(0);
}
*ret = malloc(mysql_stmt_num_rows(stmt) * sizeof(struct average_grades));
memset(param, 0, sizeof(param));
param[0].buffer_type = MYSQL_TYPE_VAR_STRING;
param[0].buffer = latitudine;
param[0].buffer_length = 12;
/*Devo restiturilo nella store procedure*/
param[1].buffer_type = MYSQL_TYPE_VAR_STRING;
param[1].buffer = longitudine;
param[1].buffer_length = 12;
param[2].buffer_type = MYSQL_TYPE_LONG;
param[2].buffer = &veicolo;
param[2].buffer_length = sizeof(veicolo);
if (mysql_stmt_bind_result(stmt, param)) {
finish_with_stmt_error(conn, stmt, "Unable to bind column parameters\n", true);
}
int i = 1;
/* assemble course general information */
while (true) {
status = mysql_stmt_fetch(stmt);
if (status == 1 || status == MYSQL_NO_DATA)
break;
(*ret)[row].latitudineI= latitudine;
(*ret)[row].longitudineI = longitudine;
printf_s("La tua fermata si trova qui:\nLatitudine : %s Longitudine : %s\n", latitudine, longitudine);
/*VALORE DELLA FERMATA DOVE SI TROVANO*/
ftemp = atof(latitudine);
ftemp2 = atof(longitudine);
row++;
}
return row;
}
static void Calcola_distanza_veicolo(MYSQL* conn) {
MYSQL_STMT* Distanza;
int status;
MYSQL_BIND param[1];
bool first = true;
struct average_grades* avgs = NULL; /*DEVO TOGLIERE IL NULL MA MI DA ERRORE*/
size_t longitudineI = 0;
size_t latitudineI = 0;
int Tratta;
char header[512];
// Prepare stored procedure call
if (!setup_prepared_stmt(&Distanza, "call Calcola_distanza_veicolo(?)", conn)) {
finish_with_stmt_error(conn, Distanza, "Unable to initialize career report statement\n", false);
}
printf("A quale fermata ti trovi ? \n");
printf("SCELTA: ");
scanf_s("%d", &Tratta);
printf("\n\n\n");
// Prepare parameters
memset(param, 0, sizeof(param));
param[0].buffer_type = MYSQL_TYPE_LONG; //IN
param[0].buffer = &Tratta;
param[0].buffer_length = sizeof(Tratta);
if (mysql_stmt_bind_param(Distanza, param) != 0) {
finish_with_stmt_error(conn, Distanza, "Could not bind parameters for career report\n", true);
}
// Run procedure
if (mysql_stmt_execute(Distanza) != 0) {
print_stmt_error(Distanza, "An error occurred while retrieving the career report.");
goto out;
}
// We have multiple result sets here!
do {
// Skip OUT variables (although they are not present in the procedure...)
if (conn->server_status & SERVER_PS_OUT_PARAMS) {
goto next;
}
if (first) {
parse_avgs(conn, Distanza, &avgs);
first = false;
}
else {
sprintf_s(header, 512, "\nI veicoli si trovano: " ,avgs[latitudineI].latitudineI, avgs[longitudineI].longitudineI);
dump_result_set(conn, Distanza, header);
latitudineI++;
longitudineI++;
}
// more results? -1 = no, >0 = error, 0 = yes (keep looking)
next:
status = mysql_stmt_next_result(Distanza);
if (status > 0)
finish_with_stmt_error(conn, Distanza, "Unexpected condition", true);
} while (status == 0);
out:
mysql_stmt_close(Distanza);
}
void run_as_passeggero(MYSQL* conn)
{
int s;
int i = 0;
int numero;
while (true) {
printf("------------------------------*** Cosa vuoi fare? ***------------------------------\n\n");
printf("1) Timbra un biglietto\n");
printf("2) Convalida un abbonamento\n");
printf("3) Calcola distanza veicolo\n");
printf("4) Logout\n");
printf("SCELTA: ");
scanf_s("%i", &numero);
switch (numero)
{
case 1:
printf("---------------------------Timbra un biglietto--------------------------------------------\n");
Timbra_biglietto(conn);
break;
case 2:
printf("---------------------------------------------Convalida un abbonamento---------------------------------------------\n");
Convalida_abbonamento(conn);
break;
case 3:
printf("---------------------------------------------Calcola distanza veicolo--------------------------------------------\n");
Calcola_distanza_veicolo(conn);
float lat;
float lon;
int c;
printf("Ci sono veicoli passati per li ? (s = 1|n = 0)\n");
scanf_s("%d",&c);
if (c == 1)
{
printf("\n\n Inserisci i dati del veicolo di interesse \n");
printf("Latitudine: ");
scanf_s("%f", &lat);
printf("Longitudine: ");
scanf_s("%f", &lon);
double risultato;
risultato = 2 * 6371 * asin(sqrt(((sin(lat-ftemp) / 2) * (sin(lat-ftemp) / 2)) + cos(ftemp) * cos(lat) * (sin((lon - ftemp2) / 2) * sin((lon - ftemp2) / 2))));
printf("\nIl veicolo si trova a %f Km di distanza\n risultato ", risultato);
break;
}
else
{
break;
}
case 4:
printf("----------------------------------------Logout----------------------------------------\n");
return;
default:
fprintf(stderr, "Invalid condition at %s:%d\n", __FILE__, __LINE__);
return;
}
}
}
|
a2586f0e074e740f34c9d13f3734001fd251df48
|
73d43472692ba8b646d5c266c7fe58d8d7c10249
|
/dt302/apps/readsinglechan_dt302.c
|
7fe9e40c4bbeded183f19379f6f7a45ebacdd09a
|
[] |
no_license
|
kurtsiefer/linuxmeasurement
|
66f55f0eedf17a0dcc18ebc9e1293be1f3dfe673
|
4f71e269f50f2c97ecb028e9ed9f8d921f45e789
|
refs/heads/master
| 2018-10-15T15:55:54.650304 | 2018-07-12T05:42:49 | 2018-07-12T05:42:49 | 32,445,169 | 1 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 4,345 |
c
|
readsinglechan_dt302.c
|
/* program to read in a single voltage on a differential input channel
with the dt302 card.
adapted such that usage is similar to NI multifunct card.
usage:
readsinglechan_dt302 [channel [gain]]
channel ranges from 0 to 7, 0 is default.
gain can be 1,2,4,8; default is 1.
sample time increased to 40 usec to have less noise. 29.8.09chk
*/
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include "dt302.h"
#include <time.h>
#include <signal.h>
#include <sys/ioctl.h>
/* using definitions of minor device 1 */
#define BOARDNAME "/dev/ioboards/dt30x_0"
/* error handling */
char *errormessage[] = {
"No error.",
"Can't open devcice.", /* 1 */
"Wrong number of args. Usage: readsinglechannel [kanal [gain]]\n",
"channel argument not in range 0..7",
"Wrong gain value (choose 1,2,10 or 100).",
"timeout occured.", /* 5 */
"fifo empty!!! (should not occur)",
};
int emsg(int code) {
fprintf(stderr,"%s\n",errormessage[code]);
return code;
};
/* timeout procedure */
int timedout;
void sighandler(int sig) {
if (sig==SIGALRM) timedout = 1;
return;
};
#define DEFAULT_CHANNEL 0
#define DEFAULT_GAIN 1
#define DEFAULT_TIMEOUT 1 /* in seconds */
#define conversion_offset -10.0
#define conversion_LSB_12 (20.0/4096)
#define conversion_LSB_16 (20.0/65536)
int main(int argc, char *argv[]) {
int fh; /* card filehandle */
int raw_value, i;
float fval;
int channel = DEFAULT_CHANNEL;
int gain = DEFAULT_GAIN;
int gainlist[4]={1,2,4,8};
int gaintab[4]={SELECT_GAIN_1,SELECT_GAIN_2,SELECT_GAIN_4,SELECT_GAIN_8};
int gain_code;
float conversion; /* conversion factor for various converter */
int device;
/* board suchen */
fh=open(BOARDNAME,O_RDWR);
if (fh==-1) return -emsg(1);
/* eingabeparemater testen */
switch(argc) {
case 1: /* no args, take default */
break;
case 3: /* read in gain */
sscanf(argv[2],"%d",&gain);
case 2: /* only channel given */
sscanf(argv[1],"%d",&channel);
if (channel & ~0x7) return -emsg(3);
break;
default:
return -emsg(2); /* wrong arg no. */
};
/* create gain code */
for (i=0;((i<4) && (gain != gainlist[i])) ;i++);
if (i>=4) return -emsg(4); /* wrong gain */
gain_code = gaintab[i];
/* initialize TIMER unit to create a scan clock of 25 kHz and a frame
periode of 100 msec*/
ioctl(fh,TIMER_RESET);
ioctl(fh,SET_AD_SAMPLE_PERIODE,0xffffff+2-200); /* 800 main clk cycles */
ioctl(fh,SET_AD_TRIG_PERIODE, 0xffffff+2-2000000); /* 2E6 main clk cycles */
/* initialize ADC card */
ioctl(fh,RESET_AD_UNIT);
/* set AD operation mode : internal triggered scan */
ioctl(fh,SELECT_AD_CONFIGURATION,
CONTINUOUS_SCAN_MODE );
/*| SOFTWARE_INITIAL_TRIGGER | INTERNAL_RETRIGGER_AD
| INTERNAL_AD_SAMPLE_CLK | AD_BIPOLAR_MODE | AD_DIFFERENTIAL_ENDED);*/
/* initialize hardware buffer */
ioctl(fh,LOAD_PCI_MASTER);
/* install channel-gain list: one setup, one real sample */
ioctl(fh,PUSH_CGL_FIFO, channel | gain_code ); /* allow for setup */
ioctl(fh,PUSH_CGL_FIFO, channel | gain_code );
ioctl(fh,PUSH_CGL_FIFO, channel | gain_code );
/* preload CGL list */
ioctl(fh, PRELOAD_CGL);
/* arm the thing... */
ioctl(fh,ARM_CONVERSION);
/* ... and trigger int per software */
ioctl(fh,SOFTWARE_TRIGGER);
/* read in with timeout procedure */
timedout=0;
signal(SIGALRM, &sighandler); /* install signal handler */
alarm(DEFAULT_TIMEOUT);
while ((ioctl(fh,HOW_MANY_FRESH_VALUES)<3) && !timedout) {
/* printf("wait for fifo\n"); */
usleep(20000);
};
alarm(0);
/* disarm the card */
ioctl(fh,STOP_SCAN);
if (timedout) return -emsg(5); /* timeout */
/* read in data */
raw_value = ioctl(fh,GET_NEXT_VALUE);
raw_value = ioctl(fh,GET_NEXT_VALUE);
raw_value = ioctl(fh,GET_NEXT_VALUE);
/* printf("raw value: %x\n",raw_value); */
/* do adaption to different cards */
device = ioctl(fh, IDENTIFY_DTAX_CARD );
/* printf("device: %d\n",device); */
switch (device) {
case 322: /* for 16-bit converter */
conversion=conversion_LSB_16;
break;
default: /* for 12-bit converter */
conversion=conversion_LSB_12;
break;
}
fval = ((float)raw_value)*conversion+conversion_offset;
printf("%f\n", fval);
close(fh);
return 0;
}
|
e45a91aae350d4b931413d4a45849108b1668fd6
|
c4e0c68a288724929385acefc2e3c493ca1977e7
|
/C/Project1/Project1/2.c
|
5de6977b02bbac53adddd374deec85bf77054ae8
|
[] |
no_license
|
JiaLee0707/ITSTORY
|
1130c749d744ddaf7afae87faf04d9ea0a1d2b67
|
b77960ee6159459e879c2919820af23eaa2a069f
|
refs/heads/master
| 2021-04-02T06:23:18.617383 | 2020-10-01T14:26:29 | 2020-10-01T14:26:29 | 248,248,253 | 0 | 0 | null | null | null | null |
UHC
|
C
| false | false | 529 |
c
|
2.c
|
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void) {
int money, won = 50000, n[4] = { 0 };
printf("금액을 입력(천원단위까지 입력) : ");
while (1) {
scanf("%d", &money);
if (money >= 1000) break;
}
for (int i = 0; i < sizeof(n) / sizeof(int); i++) {
if (money >= won) {
n[i] = money / won;
money -= n[i] * won;
}
printf("%d원권 %d개\n", won, n[i]);
if (i % 2 == 0) won /= 5;
else won /= 2;
}
}
|
e90c53f5e9303b05dc6560a90c5a230c6c210f0d
|
f940e42979a6c03da35e9f9c6ec92581cd5dbc32
|
/FirstPythonExtension.c
|
4e790e13b1d3a6d3877e3544a668a613fbf54d1d
|
[] |
no_license
|
BDD16/C_Cpp_misc
|
62a062f5e189fc7333c1642f3f8be52296ed7837
|
6c2f976f5a9cab35f707a1dd693ba3f77ed61e2d
|
refs/heads/master
| 2021-06-27T23:40:05.322781 | 2020-10-17T01:30:44 | 2020-10-17T01:30:44 | 148,073,979 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 3,186 |
c
|
FirstPythonExtension.c
|
#include <Python.h>
// Function 2: A C fibonacci implementation
// this is nothing special and looks exactly
// like a normal C version of fibonacci would look
// recursively of course
int Cfib(int n)
{
if (n < 2)
return n;
else
return Cfib(n-1)+Cfib(n-2);
}
// a non recursive, so in this particular case a faster
// implementation of the fibbonacci sequence
long CFastFib(int n )
{
unsigned long previous = 0;
unsigned long current = 1;
unsigned long extra = 0;
unsigned long result = 0;
for(int i = 0; i < n; i += 1){
if( i == 0){
result = previous + current;
current = result;
previous = current;
}
else{
extra = current + previous;
previous = current;
current = extra;
}
}
return extra;
}
char[] Shelly_The_Snail(int length, char flags){
//Auto Generate a arbitrary code based on given flags
//
/****************************************************************************
+_+_+_+_+_+_+
| ARCH | OP | OS |
+_+_+_+_+_+_+
:ARCH: Architecture 4 bits 1000, 0100, 0010, 0001 will be supported
:OP: Optimizations 2 bits 00 and 10 will be supported
:OS: Operating System of Shell Code 2 bits 00 and 10 will be supported
#TODO: Everything, leaving as a stub for now, in the future will start
implementings
*****************************************************************************/
//
MIPS = ^flags &(~ 0x8000) // MIPS
xEigtySix = ^flags &(~ 0x8000) // MIPS
xSixtyFour = ^flags &(~ 0x8000) // MIPS
ARM = ^flags &(~ 0x8000) // MIPS
}
// Our Python binding to our C function
// This will take one and only one non-keyword argument
static PyObject* fib(PyObject* self, PyObject* args)
{
// instantiate our `n` value
int n;
// if our `n` value
if(!PyArg_ParseTuple(args, "i", &n))
return NULL;
// return our computed fib number
return Py_BuildValue("i", Cfib(n));
}
// Our Python binding to our C function
// This will take one and only one non-keyword argument
static PyObject* FastFib(PyObject* self, PyObject* args)
{
// instantiate our `n` value
int n;
// if our `n` value
if(!PyArg_ParseTuple(args, "i", &n))
return NULL;
// return our computed fib number
return Py_BuildValue("l", CFastFib(n));
}
// Function 1: A simple 'hello world' function
static PyObject* helloworld(PyObject* self, PyObject* args)
{
printf("Hello World\n");
return Py_None;
}
// Our Module's Function Definition struct
// We require this `NULL` to signal the end of our method
// definition
static PyMethodDef myMethods[] = {
{ "helloworld", helloworld, METH_NOARGS, "Prints Hello World" },
{"FastFib", FastFib, METH_VARARGS, "fibonacci Test Function Fast"},
{"fib", fib, METH_VARARGS, "fibonacci Test function"},
{NULL, NULL, 0, NULL }
};
// Our Module Definition struct
static struct PyModuleDef myTechTestModule = {
PyModuleDef_HEAD_INIT,
"myTechTestModule",
"Test Module",
-1,
myMethods
};
// Initializes our module using our above struct
PyMODINIT_FUNC PyInit_myTechTestModule(void)
{
return PyModule_Create(&myTechTestModule);
}
|
20906b72790cec0168147104a7b27b5951085b79
|
c5930226232fd335dbaa288d64161f26beae00c1
|
/ex1.c
|
daa6ba711ea92293fa38967b15ad5695db44c544
|
[] |
no_license
|
Roy-Mao/c_ex1
|
7f73230bc0a86812abd518fb3a52d01ae6d45a2b
|
b9b04bdcfaaa2bc9f0dbc67b7c1852497a546d82
|
refs/heads/master
| 2021-07-21T15:21:51.600474 | 2017-10-29T03:55:47 | 2017-10-29T03:55:47 | 108,703,248 | 2 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,769 |
c
|
ex1.c
|
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
char *mptr; /*a char pointer to heap*/
char *more_mptr; /*a char pointer to heap for more memory*/
char c; /*where to store each of the read-in char*/
int length = 0; /*the length of the read-in string*/
int size = 2; /*the size of the dynamically allocated spaces on the heap*/
FILE *fp = fopen("test.txt", "w");
if (fp == NULL)
{
exit(1);
}
puts("The file test.txt created successfully...!!");
puts("Input a sentence for the file: ");
mptr = malloc(size); /*Initially allocate 2 char space on the heap*/
if (mptr == NULL)
{
puts("something wrong with mallloc");
exit(2);
}
while (((c = getchar()) != EOF) && (c != '\n')) /*Ccontinue this block if c does not receive either \n or end of file signal*/
{
if (length >= size)
{
size *= 2;
more_mptr = realloc(mptr, size);
if (more_mptr == NULL)
{
puts("something wrong with realloc");
exit(3);
}
else
{
mptr = more_mptr; /*notic the correct way to swap the pointer after realloc*/
}
}
mptr[length++] = c;
}
mptr[length] = '\0';
puts("your input string has been added to the heap section mptr");
puts("Now, print out the string you write to the heap: ");
printf("Your input string is: %s \n", mptr);
puts("Now, I am trying to write your string into the newly created file...");
fprintf(fp, "%s\n", mptr);
puts("The rewrite process is finished. Going close the newly created file and then free the malloc");
int close_int = fclose(fp);
if (close_int != 0)
{
puts("something wrong when closing the file");
exit(4);
}
free(mptr);
return (0);
}
|
8b64a0958353f9513b83651efbed23618d2c94bb
|
9250c1e4685b1bfb689325f2a3c58e933e738791
|
/src/libs/Memoria/uj/balance.C
|
5bcf71c805a15e89fb05efa9bde7d58dff4e71ad
|
[] |
no_license
|
canliture/DSystem
|
a58ba3ca867b16a69cd0e35125aeb66f20641f96
|
7810a6423ae4435d336374195743e1f0cec94b0c
|
refs/heads/master
| 2023-03-15T22:54:11.021114 | 2020-11-17T18:08:36 | 2020-11-17T18:08:36 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 9,285 |
c
|
balance.C
|
/* $Id: balance.C,v 1.11 1997/03/27 20:28:01 carr Exp $ */
/******************************************************************************/
/* Copyright (c) 1990, 1991, 1992, 1993, 1994 Rice University */
/* All Rights Reserved */
/******************************************************************************/
/****************************************************************************/
/* */
/* File: balance.C */
/* */
/* Description: Functions to compute the balance of a loop given a set */
/* of unroll values. */
/* */
/****************************************************************************/
#include <libs/Memoria/uj/balance.h>
#include <libs/Memoria/uj/compute_uj.h>
#include <libs/Memoria/include/mem_util.h>
/****************************************************************************/
/* */
/* Function: get_coeff_index */
/* */
/* Input: x - unroll amount */
/* */
/* Description: Determine which coefficient to use in computing balance */
/* distance 0, distance 1 or 0 or all distances */
/* */
/****************************************************************************/
static int get_coeff_index(int x)
{
switch (x-1)
{
case 0:
return 0;
case 1:
return 1;
default:
return 2;
}
}
/****************************************************************************/
/* */
/* Function: mh_fp_register_pressure */
/* */
/* Input: reg_coeff - coefficients to the register pressure */
/* pressure formula */
/* scalar_coeff - coefficients for scalar array refs */
/* x1,x2 - unroll amounts for the two loops. */
/* */
/* Description: Determine the number of floating point registers */
/* required by a loop, given the unroll amounts for two */
/* loops. This comes from Carr's thesis. */
/* */
/****************************************************************************/
int mh_fp_register_pressure(int reg_coeff[4][3][3],
int *scalar_coeff,
int x1,
int x2)
{
int regs,cindex1,cindex2;
cindex1 = get_coeff_index(x1);
cindex2 = get_coeff_index(x2);
regs = (reg_coeff[0][cindex1][cindex2] + scalar_coeff[0]) * x1 * x2 +
reg_coeff[1][cindex1][cindex2] * x1 +
reg_coeff[2][cindex1][cindex2] * x2 +
reg_coeff[3][cindex1][cindex2];
if (x1 != 1)
regs += scalar_coeff[2] * x2;
if (x2 != 1)
regs += scalar_coeff[1] * x1;
return(regs);
}
/****************************************************************************/
/* */
/* Function: mh_addr_register_pressure */
/* */
/* Input: addr_coeff - coefficients for determining address */
/* register pressure */
/* x1,x2 - unroll amounts for two loops */
/* */
/* Description: Determine the address-register pressure in a loop given */
/* two unroll amounts. */
/* */
/****************************************************************************/
int mh_addr_register_pressure(int addr_coeff[4][3][3],
int x1,
int x2)
{
int regs,cindex1,cindex2;
cindex1 = get_coeff_index(x1);
cindex2 = get_coeff_index(x2);
regs = addr_coeff[0][cindex1][cindex2] * x1 * x2 +
addr_coeff[1][cindex1][cindex2] * x1 +
addr_coeff[2][cindex1][cindex2] * x2 +
addr_coeff[3][cindex1][cindex2];
return(regs);
}
/****************************************************************************/
/* */
/* Function: mh_loop_balance */
/* */
/* Input: mem_coeff - coefficients for formula to compute the */
/* number of memory references in a loop. */
/* flops - number of floating-point ops in a loop. */
/* x1,x2 - unroll amount for two loops. */
/* */
/* Description: Determine the ratio of memory ops to flops in a loop */
/* nest given unroll amounts for two loops. This is from */
/* Carr's thesis. */
/* */
/****************************************************************************/
float mh_loop_balance(int mem_coeff[4][3][3],
int flops,
int x1,
int x2)
{
float ML,FL;
int cindex1,cindex2;
cindex1 = get_coeff_index(x1);
cindex2 = get_coeff_index(x2);
ML = (float)(mem_coeff[0][cindex1][cindex2] * x1 * x2 +
mem_coeff[1][cindex1][cindex2] * x1 +
mem_coeff[2][cindex1][cindex2] * x2 +
mem_coeff[3][cindex1][cindex2]);
FL = (float)(flops * x1 * x2);
if (FL == 0)
return(0.0);
else
return(ML/FL);
}
/* Return How Many Memory References in the loop */
int mh_memref(int mem_coeff[4][3][3],
int x1,
int x2)
{
int cindex1,cindex2;
int num_memref;
cindex1 = get_coeff_index(x1);
cindex2 = get_coeff_index(x2);
num_memref = (mem_coeff[0][cindex1][cindex2] * x1 * x2 +
mem_coeff[1][cindex1][cindex2] * x1 +
mem_coeff[2][cindex1][cindex2] * x2 +
mem_coeff[3][cindex1][cindex2]);
return(num_memref);
}
float mh_PrefetchRequirements(float PrefetchCoeff[4][3][3],
int flops,
int x1,
int x2,
PrefetchCoeffComponentType Comp[4][3][3],
int LineSize)
{
int cindex1,cindex2;
cindex1 = get_coeff_index(x1);
cindex2 = get_coeff_index(x2);
return(x1*x2*(Comp[0][cindex1][cindex2].unit +
Comp[0][cindex1][cindex2].fraction/(float)LineSize) +
ceil_ab(x1*x2,LineSize) * (Comp[0][cindex1][cindex2].ceil_fraction +
Comp[0][cindex1][cindex2].ceil_min_fraction_x) +
x1*(Comp[1][cindex1][cindex2].unit +
Comp[1][cindex1][cindex2].fraction/(float)LineSize +
Comp[1][cindex1][cindex2].ceil_min_fraction_d) +
ceil_ab(x1,LineSize) * (Comp[1][cindex1][cindex2].ceil_fraction +
Comp[1][cindex1][cindex2].ceil_min_fraction_x) +
x2*(Comp[2][cindex1][cindex2].unit +
Comp[2][cindex1][cindex2].fraction/(float)LineSize +
Comp[2][cindex1][cindex2].ceil_min_fraction_d) +
ceil_ab(x2,LineSize) * (Comp[2][cindex1][cindex2].ceil_fraction +
Comp[2][cindex1][cindex2].ceil_min_fraction_x) +
Comp[3][cindex1][cindex2].ceil_fraction +
Comp[3][cindex1][cindex2].unit +
Comp[3][cindex1][cindex2].fraction/(float)LineSize +
Comp[3][cindex1][cindex2].ceil_min_fraction_d);
}
float mh_CacheBalance(int mem_coeff[4][3][3],
float PrefetchCoeff[4][3][3],
int flops,
int x1,
int x2,
float MissCost,
PrefetchCoeffComponentType Comp[4][3][3],
int LineSize,
float IM)
{
float PL,FL,MemBal,LL;
MemBal = mh_loop_balance(mem_coeff,flops,x1,x2);
PL = mh_PrefetchRequirements(PrefetchCoeff,flops,x1,x2,Comp,LineSize);
FL = (float)(flops * x1 * x2);
LL = MemBal >= 1.0 ? MemBal*FL : FL;
if (FL == 0)
return(0.0);
else
return((POSITIVE_PART(PL - IM*LL)*MissCost)/FL + MemBal);
}
|
2836772dce4582c546dc76fd7671f49ec4f6bc2a
|
1738a7632769179e0a24bf98503d8578879c1c70
|
/minishell-VM/srcs/build/export.c
|
b6481611f39ef39fd8aa4c482e95a5ef81af3282
|
[] |
no_license
|
thi-nguy/minishell-group
|
22dc6dec4c8a3222b8b57bafe6361f7f720420bb
|
fc4600efbb3beab579d631d53922e6dd9d77a605
|
refs/heads/main
| 2023-08-25T19:04:02.707332 | 2021-10-20T10:25:56 | 2021-10-20T10:25:56 | 404,297,132 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 2,925 |
c
|
export.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* export.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: idamouttou <idamouttou@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/04 23:29:46 by idamouttou #+# #+# */
/* Updated: 2021/10/14 16:10:34 by thi-nguy ### ########.fr */
/* */
/* ************************************************************************** */
#include "../../includes/minishell.h"
// check le egal segm fault si pas fin
//export ida= cree la variable
//free content
int export_one(char *varval, t_list *env)
{
int i;
t_list *tmp;
int eq;
i = 0;
eq = 0;
while (varval[eq + i] != '=' && varval[eq + i] != '\0')
eq++;
if (varval[eq] == '\0')
return (1);
tmp = env;
while (tmp != NULL)
{
if (!ft_strncmp(tmp->content, &varval[i], eq + 1))
{
free(tmp->content);
tmp->content = ft_strdup(&varval[i]);
return (0);
}
tmp = tmp->next;
}
ft_lstadd_back(&env, ft_lstnew(ft_strdup(&varval[i])));
return (0);
}
void sort_alpha(t_list **alst)
{
t_list *list;
char *tmp;
list = *alst;
if (list != NULL)
{
while (list != NULL && list->next != NULL)
{
if (ft_strcmp(list->content, list->next->content) > 0)
{
tmp = list->content;
list->content = list->next->content;
list->next->content = tmp;
}
list = list->next;
}
}
}
void list_add(t_list **alst, t_list *newElement)
{
t_list *temp;
temp = *alst;
if (newElement)
{
newElement->next = *alst;
*alst = newElement;
sort_alpha(alst);
}
}
//check apres la command export si un chiffre ou
//caractere speciaux et renvoie une erreur
//export 123 ou export > ou = ou .
int check_export(char **varval)
{
while (*varval)
{
if (ft_isdigit(**varval) || ft_isprint_no_equal(**varval))
{
ft_putstr_fd("export: \'", 2);
ft_putstr_fd(*varval, 2);
ft_putstr_fd("\' : not a valid identifier\n", 2);
return (1);
}
varval++;
}
return (0);
}
//command expot
//print sorted check export sans argument et sort la liste des variable
//check export error valeur numeric ou speciaux
//export one check si apres egale pas de argumment cree la variable et
//cree si argument si chaine de caractere vide ou non
int my_export(char **varval, t_list *env)
{
if (varval[1] == NULL)
{
print_sorted(env);
return (0);
}
while (*varval != NULL)
{
if (check_export(varval))
return (1);
export_one(*varval, env);
varval++;
}
return (0);
}
|
94e816297c68ee0f39b7b662a3a0728d115afeec
|
f4a18deea6a6b7202e62e03cc61a6588b081026b
|
/p64.c
|
061dcf71de123d40e91d461e4d91d260d0952742
|
[] |
no_license
|
vanithaguvi/vanitha
|
610a385971c7e0b6ee68f22fb20b0bb51824413a
|
da584f79f9c2280a416ef5dc6252d6f18e81fb58
|
refs/heads/master
| 2021-09-09T20:00:52.066583 | 2018-03-19T11:19:58 | 2018-03-19T11:19:58 | 103,817,909 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 190 |
c
|
p64.c
|
#include<stdio.h>
int main()
{
int n,m,sum;
printf("enter the two numbers");
scanf("%d%d",&n,&m);
sum=n+m;
if(sum%2==0)
{
printf("sum is even");
}
else
{
printf("sum is odd");
}
return 0;
}
|
e7d4444d81c78d91c1db1456f623974e33723e34
|
498a9632078c1bbdd63255c87b3fb175cd884b36
|
/Temp/StagingArea/Data/il2cppOutput/t3768552235MD.h
|
0b6e33544d4d0e49cb54b45540ca4abe740bf4be
|
[] |
no_license
|
VitorVilete/EndlessRunner
|
6d8cb91541b96333bf3b7af501849410e9cc011e
|
2c05c65cde1f36b2a61bdc684644e91deeabca66
|
refs/heads/master
| 2020-12-24T21:23:00.416974 | 2016-04-27T16:49:33 | 2016-04-27T16:49:33 | 57,231,013 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,035 |
h
|
t3768552235MD.h
|
#pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <assert.h>
#include <exception>
struct t3768552235;
struct Il2CppObject;
struct t3099937104;
struct t1538479585;
struct t889871978;
#include "codegen/il2cpp-codegen.h"
#include "Il2CppObject.h"
#include "IntPtr_t.h"
#include "t3099937104.h"
#include "t889871978.h"
extern "C" void m3692393942 (t3768552235 * __this, Il2CppObject * p0, IntPtr_t p1, const MethodInfo* method) IL2CPP_METHOD_ATTR;
extern "C" bool m3389138368 (t3768552235 * __this, t3099937104 * p0, const MethodInfo* method) IL2CPP_METHOD_ATTR;
extern "C" bool pinvoke_delegate_wrapper_t3768552235(Il2CppObject* delegate, t3099937104 * p0);
extern "C" Il2CppObject * m1741046139 (t3768552235 * __this, t3099937104 * p0, t889871978 * p1, Il2CppObject * p2, const MethodInfo* method) IL2CPP_METHOD_ATTR;
extern "C" bool m121475984 (t3768552235 * __this, Il2CppObject * p0, const MethodInfo* method) IL2CPP_METHOD_ATTR;
|
5e12d3f8c5cbdddcd625ae378e6003ba0d12860c
|
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
|
/govern/data-security/krb-1.2.1/src/lib/gssapi/generic/gssapi_generic.c
|
c2f98d410ae5334ef687a5068b79a4ce3abd9c42
|
[
"BSD-4-Clause",
"LicenseRef-scancode-generic-export-compliance",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-mit-old-style",
"BSD-4-Clause-UC",
"LicenseRef-scancode-rsa-1990",
"BSD-3-Clause",
"MIT-CMU",
"LicenseRef-scancode-mit-no-advert-export-control",
"CC-BY-SA-3.0",
"LicenseRef-scancode-mit-modification-obligations",
"LicenseRef-scancode-proprietary-license",
"GPL-2.0-or-later",
"LicenseRef-scancode-michigan-disclaimer",
"ISC",
"LicenseRef-scancode-nrl-permission",
"FreeBSD-DOC",
"LicenseRef-scancode-rsa-md4",
"RSA-MD",
"OLDAP-2.8",
"FSFULLRWD",
"BSD-2-Clause",
"LicenseRef-scancode-brian-gladman",
"MIT",
"Apache-2.0"
] |
permissive
|
alldatacenter/alldata
|
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
|
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
|
refs/heads/master
| 2023-08-05T07:32:25.442740 | 2023-08-03T13:17:24 | 2023-08-03T13:17:24 | 213,321,771 | 774 | 250 |
Apache-2.0
| 2023-09-06T17:35:32 | 2019-10-07T07:36:18 | null |
UTF-8
|
C
| false | false | 17,415 |
c
|
gssapi_generic.c
|
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 1993 by OpenVision Technologies, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all copies and
* that both that copyright notice and this permission notice appear in
* supporting documentation, and that the name of OpenVision not be used
* in advertising or publicity pertaining to distribution of the software
* without specific, written prior permission. OpenVision makes no
* representations about the suitability of this software for any
* purpose. It is provided "as is" without express or implied warranty.
*
* OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
* EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
* USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/*
* $Id$
*/
#include "gssapiP_generic.h"
/*
* See krb5/gssapi_krb5.c for a description of the algorithm for
* encoding an object identifier.
*/
/* Reserved static storage for GSS_oids. Comments are quotes from RFC 2744. */
#define oids ((gss_OID_desc *)const_oids)
static const gss_OID_desc const_oids[] = {
/*
* The implementation must reserve static storage for a
* gss_OID_desc object containing the value */
{10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x01"},
/* corresponding to an object-identifier value of
* {iso(1) member-body(2) United States(840) mit(113554)
* infosys(1) gssapi(2) generic(1) user_name(1)}. The constant
* GSS_C_NT_USER_NAME should be initialized to point
* to that gss_OID_desc.
*/
/*
* The implementation must reserve static storage for a
* gss_OID_desc object containing the value */
{10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x02"},
/* corresponding to an object-identifier value of
* {iso(1) member-body(2) United States(840) mit(113554)
* infosys(1) gssapi(2) generic(1) machine_uid_name(2)}.
* The constant GSS_C_NT_MACHINE_UID_NAME should be
* initialized to point to that gss_OID_desc.
*/
/*
* The implementation must reserve static storage for a
* gss_OID_desc object containing the value */
{10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x03"},
/* corresponding to an object-identifier value of
* {iso(1) member-body(2) United States(840) mit(113554)
* infosys(1) gssapi(2) generic(1) string_uid_name(3)}.
* The constant GSS_C_NT_STRING_UID_NAME should be
* initialized to point to that gss_OID_desc.
*/
/*
* The implementation must reserve static storage for a
* gss_OID_desc object containing the value */
{6, (void *)"\x2b\x06\x01\x05\x06\x02"},
/* corresponding to an object-identifier value of
* {iso(1) org(3) dod(6) internet(1) security(5)
* nametypes(6) gss-host-based-services(2)). The constant
* GSS_C_NT_HOSTBASED_SERVICE_X should be initialized to point
* to that gss_OID_desc. This is a deprecated OID value, and
* implementations wishing to support hostbased-service names
* should instead use the GSS_C_NT_HOSTBASED_SERVICE OID,
* defined below, to identify such names;
* GSS_C_NT_HOSTBASED_SERVICE_X should be accepted a synonym
* for GSS_C_NT_HOSTBASED_SERVICE when presented as an input
* parameter, but should not be emitted by GSS-API
* implementations
*/
/*
* The implementation must reserve static storage for a
* gss_OID_desc object containing the value */
{10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x04"},
/* corresponding to an object-identifier value of
* {iso(1) member-body(2) Unites States(840) mit(113554)
* infosys(1) gssapi(2) generic(1) service_name(4)}.
* The constant GSS_C_NT_HOSTBASED_SERVICE should be
* initialized to point to that gss_OID_desc.
*/
/*
* The implementation must reserve static storage for a
* gss_OID_desc object containing the value */
{6, (void *)"\x2b\x06\01\x05\x06\x03"},
/* corresponding to an object identifier value of
* {1(iso), 3(org), 6(dod), 1(internet), 5(security),
* 6(nametypes), 3(gss-anonymous-name)}. The constant
* and GSS_C_NT_ANONYMOUS should be initialized to point
* to that gss_OID_desc.
*/
/*
* The implementation must reserve static storage for a
* gss_OID_desc object containing the value */
{6, (void *)"\x2b\x06\x01\x05\x06\x04"},
/* corresponding to an object-identifier value of
* {1(iso), 3(org), 6(dod), 1(internet), 5(security),
* 6(nametypes), 4(gss-api-exported-name)}. The constant
* GSS_C_NT_EXPORT_NAME should be initialized to point
* to that gss_OID_desc.
*/
{6, (void *)"\x2b\x06\x01\x05\x06\x06"},
/* corresponding to an object-identifier value of
* {1(iso), 3(org), 6(dod), 1(internet), 5(security),
* 6(nametypes), 6(gss-composite-export)}. The constant
* GSS_C_NT_COMPOSITE_EXPORT should be initialized to point
* to that gss_OID_desc.
*/
/* GSS_C_INQ_SSPI_SESSION_KEY 1.2.840.113554.1.2.2.5.5 */
{11, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x05\x05"},
/* GSS_C_INQ_NEGOEX_KEY 1.2.840.113554.1.2.2.5.16 */
{11, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x05\x10"},
/* GSS_C_INQ_NEGOEX_VERIFY_KEY 1.2.840.113554.1.2.2.5.17 */
{11, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x05\x11"},
/* RFC 5587 attributes, see below */
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x01"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x02"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x03"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x04"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x05"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x06"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x07"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x08"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x09"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x0a"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x0b"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x0c"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x0d"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x0e"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x0f"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x10"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x11"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x12"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x13"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x14"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x15"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x16"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x17"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x18"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x19"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x1a"},
{7, (void *)"\x2b\x06\x01\x05\x05\x0d\x1b"},
/* GSS_C_MA_NEGOEX_AND_SPNEGO 1.2.840.113554.1.2.2.5.18 */
{11, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x05\x12"},
/*
* GSS_SEC_CONTEXT_SASL_SSF_OID 1.2.840.113554.1.2.2.5.15
* iso(1) member-body(2) United States(840) mit(113554)
* infosys(1) gssapi(2) krb5(2) krb5-gssapi-ext(5) sasl-ssf(15)
*/
{11, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x05\x0f"},
};
/* Here are the constants which point to the static structure above.
*
* Constants of the form GSS_C_NT_* are specified by rfc 2744.
*
* Constants of the form gss_nt_* are the original MIT krb5 names
* found in gssapi_generic.h. They are provided for compatibility. */
GSS_DLLIMP gss_OID GSS_C_NT_USER_NAME = oids+0;
GSS_DLLIMP gss_OID gss_nt_user_name = oids+0;
GSS_DLLIMP gss_OID GSS_C_NT_MACHINE_UID_NAME = oids+1;
GSS_DLLIMP gss_OID gss_nt_machine_uid_name = oids+1;
GSS_DLLIMP gss_OID GSS_C_NT_STRING_UID_NAME = oids+2;
GSS_DLLIMP gss_OID gss_nt_string_uid_name = oids+2;
GSS_DLLIMP gss_OID GSS_C_NT_HOSTBASED_SERVICE_X = oids+3;
gss_OID gss_nt_service_name_v2 = oids+3;
GSS_DLLIMP gss_OID GSS_C_NT_HOSTBASED_SERVICE = oids+4;
GSS_DLLIMP gss_OID gss_nt_service_name = oids+4;
GSS_DLLIMP gss_OID GSS_C_NT_ANONYMOUS = oids+5;
GSS_DLLIMP gss_OID GSS_C_NT_EXPORT_NAME = oids+6;
gss_OID gss_nt_exported_name = oids+6;
GSS_DLLIMP gss_OID GSS_C_NT_COMPOSITE_EXPORT = oids+7;
GSS_DLLIMP gss_OID GSS_C_INQ_SSPI_SESSION_KEY = oids+8;
GSS_DLLIMP gss_OID GSS_C_INQ_NEGOEX_KEY = oids+9;
GSS_DLLIMP gss_OID GSS_C_INQ_NEGOEX_VERIFY_KEY = oids+10;
GSS_DLLIMP gss_const_OID GSS_C_MA_MECH_CONCRETE = oids+11;
GSS_DLLIMP gss_const_OID GSS_C_MA_MECH_PSEUDO = oids+12;
GSS_DLLIMP gss_const_OID GSS_C_MA_MECH_COMPOSITE = oids+13;
GSS_DLLIMP gss_const_OID GSS_C_MA_MECH_NEGO = oids+14;
GSS_DLLIMP gss_const_OID GSS_C_MA_MECH_GLUE = oids+15;
GSS_DLLIMP gss_const_OID GSS_C_MA_NOT_MECH = oids+16;
GSS_DLLIMP gss_const_OID GSS_C_MA_DEPRECATED = oids+17;
GSS_DLLIMP gss_const_OID GSS_C_MA_NOT_DFLT_MECH = oids+18;
GSS_DLLIMP gss_const_OID GSS_C_MA_ITOK_FRAMED = oids+19;
GSS_DLLIMP gss_const_OID GSS_C_MA_AUTH_INIT = oids+20;
GSS_DLLIMP gss_const_OID GSS_C_MA_AUTH_TARG = oids+21;
GSS_DLLIMP gss_const_OID GSS_C_MA_AUTH_INIT_INIT = oids+22;
GSS_DLLIMP gss_const_OID GSS_C_MA_AUTH_TARG_INIT = oids+23;
GSS_DLLIMP gss_const_OID GSS_C_MA_AUTH_INIT_ANON = oids+24;
GSS_DLLIMP gss_const_OID GSS_C_MA_AUTH_TARG_ANON = oids+25;
GSS_DLLIMP gss_const_OID GSS_C_MA_DELEG_CRED = oids+26;
GSS_DLLIMP gss_const_OID GSS_C_MA_INTEG_PROT = oids+27;
GSS_DLLIMP gss_const_OID GSS_C_MA_CONF_PROT = oids+28;
GSS_DLLIMP gss_const_OID GSS_C_MA_MIC = oids+29;
GSS_DLLIMP gss_const_OID GSS_C_MA_WRAP = oids+30;
GSS_DLLIMP gss_const_OID GSS_C_MA_PROT_READY = oids+31;
GSS_DLLIMP gss_const_OID GSS_C_MA_REPLAY_DET = oids+32;
GSS_DLLIMP gss_const_OID GSS_C_MA_OOS_DET = oids+33;
GSS_DLLIMP gss_const_OID GSS_C_MA_CBINDINGS = oids+34;
GSS_DLLIMP gss_const_OID GSS_C_MA_PFS = oids+35;
GSS_DLLIMP gss_const_OID GSS_C_MA_COMPRESS = oids+36;
GSS_DLLIMP gss_const_OID GSS_C_MA_CTX_TRANS = oids+37;
GSS_DLLIMP gss_const_OID GSS_C_MA_NEGOEX_AND_SPNEGO = oids+38;
GSS_DLLIMP gss_OID GSS_C_SEC_CONTEXT_SASL_SSF = oids+39;
static gss_OID_set_desc gss_ma_known_attrs_desc = { 28, oids+11 };
gss_OID_set gss_ma_known_attrs = &gss_ma_known_attrs_desc;
static struct mech_attr_info_desc {
gss_OID mech_attr;
const char *name;
const char *short_desc;
const char *long_desc;
} mech_attr_info[] = {
{
oids+11,
"GSS_C_MA_MECH_CONCRETE",
"concrete-mech",
"Mechanism is neither a pseudo-mechanism nor a composite mechanism.",
},
{
oids+12,
"GSS_C_MA_MECH_PSEUDO",
"pseudo-mech",
"Mechanism is a pseudo-mechanism.",
},
{
oids+13,
"GSS_C_MA_MECH_COMPOSITE",
"composite-mech",
"Mechanism is a composite of other mechanisms.",
},
{
oids+14,
"GSS_C_MA_MECH_NEGO",
"mech-negotiation-mech",
"Mechanism negotiates other mechanisms.",
},
{
oids+15,
"GSS_C_MA_MECH_GLUE",
"mech-glue",
"OID is not a mechanism but the GSS-API itself.",
},
{
oids+16,
"GSS_C_MA_NOT_MECH",
"not-mech",
"Known OID but not a mechanism OID.",
},
{
oids+17,
"GSS_C_MA_DEPRECATED",
"mech-deprecated",
"Mechanism is deprecated.",
},
{
oids+18,
"GSS_C_MA_NOT_DFLT_MECH",
"mech-not-default",
"Mechanism must not be used as a default mechanism.",
},
{
oids+19,
"GSS_C_MA_ITOK_FRAMED",
"initial-is-framed",
"Mechanism's initial contexts are properly framed.",
},
{
oids+20,
"GSS_C_MA_AUTH_INIT",
"auth-init-princ",
"Mechanism supports authentication of initiator to acceptor.",
},
{
oids+21,
"GSS_C_MA_AUTH_TARG",
"auth-targ-princ",
"Mechanism supports authentication of acceptor to initiator.",
},
{
oids+22,
"GSS_C_MA_AUTH_INIT_INIT",
"auth-init-princ-initial",
"Mechanism supports authentication of initiator using "
"initial credentials.",
},
{
oids+23,
"GSS_C_MA_AUTH_TARG_INIT",
"auth-target-princ-initial",
"Mechanism supports authentication of acceptor using "
"initial credentials.",
},
{
oids+24,
"GSS_C_MA_AUTH_INIT_ANON",
"auth-init-princ-anon",
"Mechanism supports GSS_C_NT_ANONYMOUS as an initiator name.",
},
{
oids+25,
"GSS_C_MA_AUTH_TARG_ANON",
"auth-targ-princ-anon",
"Mechanism supports GSS_C_NT_ANONYMOUS as an acceptor name.",
},
{
oids+26,
"GSS_C_MA_DELEG_CRED",
"deleg-cred",
"Mechanism supports credential delegation.",
},
{
oids+27,
"GSS_C_MA_INTEG_PROT",
"integ-prot",
"Mechanism supports per-message integrity protection.",
},
{
oids+28,
"GSS_C_MA_CONF_PROT",
"conf-prot",
"Mechanism supports per-message confidentiality protection.",
},
{
oids+29,
"GSS_C_MA_MIC",
"mic",
"Mechanism supports Message Integrity Code (MIC) tokens.",
},
{
oids+30,
"GSS_C_MA_WRAP",
"wrap",
"Mechanism supports wrap tokens.",
},
{
oids+31,
"GSS_C_MA_PROT_READY",
"prot-ready",
"Mechanism supports per-message proteciton prior to "
"full context establishment.",
},
{
oids+32,
"GSS_C_MA_REPLAY_DET",
"replay-detection",
"Mechanism supports replay detection.",
},
{
oids+33,
"GSS_C_MA_OOS_DET",
"oos-detection",
"Mechanism supports out-of-sequence detection.",
},
{
oids+34,
"GSS_C_MA_CBINDINGS",
"channel-bindings",
"Mechanism supports channel bindings.",
},
{
oids+35,
"GSS_C_MA_PFS",
"pfs",
"Mechanism supports Perfect Forward Security.",
},
{
oids+36,
"GSS_C_MA_COMPRESS",
"compress",
"Mechanism supports compression of data inputs to gss_wrap().",
},
{
oids+37,
"GSS_C_MA_CTX_TRANS",
"context-transfer",
"Mechanism supports security context export/import.",
},
{
oids+38,
"GSS_C_MA_NEGOEX_AND_SPNEGO",
"negoex-only",
"NegoEx mechanism should also be negotiable through SPNEGO.",
},
};
OM_uint32
generic_gss_display_mech_attr(
OM_uint32 *minor_status,
gss_const_OID mech_attr,
gss_buffer_t name,
gss_buffer_t short_desc,
gss_buffer_t long_desc)
{
size_t i;
if (minor_status != NULL)
*minor_status = 0;
if (name != GSS_C_NO_BUFFER) {
name->length = 0;
name->value = NULL;
}
if (short_desc != GSS_C_NO_BUFFER) {
short_desc->length = 0;
short_desc->value = NULL;
}
if (long_desc != GSS_C_NO_BUFFER) {
long_desc->length = 0;
long_desc->value = NULL;
}
if (minor_status == NULL)
return GSS_S_CALL_INACCESSIBLE_WRITE;
for (i = 0; i < sizeof(mech_attr_info)/sizeof(mech_attr_info[0]); i++) {
struct mech_attr_info_desc *mai = &mech_attr_info[i];
if (g_OID_equal(mech_attr, mai->mech_attr)) {
if (name != GSS_C_NO_BUFFER &&
!g_make_string_buffer(mai->name, name)) {
*minor_status = ENOMEM;
return GSS_S_FAILURE;
}
if (short_desc != GSS_C_NO_BUFFER &&
!g_make_string_buffer(mai->short_desc, short_desc)) {
*minor_status = ENOMEM;
return GSS_S_FAILURE;
}
if (long_desc != GSS_C_NO_BUFFER &&
!g_make_string_buffer(mai->long_desc, long_desc)) {
*minor_status = ENOMEM;
return GSS_S_FAILURE;
}
return GSS_S_COMPLETE;
}
}
return GSS_S_BAD_MECH_ATTR;
}
static gss_buffer_desc const_attrs[] = {
{ sizeof("local-login-user") - 1,
"local-login-user" },
};
GSS_DLLIMP gss_buffer_t GSS_C_ATTR_LOCAL_LOGIN_USER = &const_attrs[0];
|
10223ca2c1126b06bec68a1d2c61d65ac1e2dc19
|
8d7514271b08caaa8c757d0747853d54642e9e63
|
/plutommi/Service/BtAudioSrv/BtAudioSrv.h
|
5774b0a534f62ea4f87ff50234907d305680007e
|
[] |
no_license
|
npnet/MyCode
|
0bd3e32d5890c411b16e01cdb8acf5624c7c0a02
|
9fa7aa78d62f1cd3c2a39a36875cb41cf00522fe
|
refs/heads/master
| 2023-07-23T13:19:29.575050 | 2018-07-05T13:01:09 | 2018-07-05T13:01:09 | 140,229,839 | 1 | 2 | null | 2023-07-21T10:21:01 | 2018-07-09T04:07:28 |
C
|
UTF-8
|
C
| false | false | 9,497 |
h
|
BtAudioSrv.h
|
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2005
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*****************************************************************************
*
* Filename:
* ---------
* BtAudioSrv.h
*
* Project:
* --------
* Maui
*
* Description:
* ------------
* This file is to provide bluetooth audio related service.
*
* Author:
* -------
* -------
*
*============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*============================================================================
****************************************************************************/
#include "MmiDataType.h"
#include "UCMSrvGprot.h"
#include "BtAudioSrvGprot.h"
#ifdef __MMI_BT_SLIM__
#ifndef _MMI_BT_ULTRA_SLIM_
#define _MMI_BT_ULTRA_SLIM_
#endif
#endif
#define NULL_CHNL 0
#define MONO_CHNL 1
#define STEREO_CHNL 2
#define DUAL_CHNL 3
#if defined(__MMI_HFP_SUPPORT__) && defined(__MMI_A2DP_SUPPORT__)
#define AUD_CHNL_SUPPORT DUAL_CHNL
#elif defined(__MMI_HFP_SUPPORT__)
#define AUD_CHNL_SUPPORT MONO_CHNL
#elif defined(__MMI_A2DP_SUPPORT__)
#define AUD_CHNL_SUPPORT STEREO_CHNL
#else
#define AUD_CHNL_SUPPORT NULL_CHNL
#endif
enum {
STATE_IDLE,
STATE_DISCOVERY,
STATE_CONNECT,
STATE_CONNECT_ED,
STATE_SWITCH_ON,
STATE_AUDIO_ON,
STATE_SWITCH_OFF,
STATE_AUTHORIZE,
STATE_NUM
};
enum {
OP_DISCOVERY,
OP_DEV_CONN,
OP_AUDIO_ON,
OP_AUDIO_OFF,
OP_CONN_RSP,
OP_NUM,
SERVICE_IND,
SERVICE_CNF,
DEV_REQ_CONN,
DEV_CONN_ED,
DEV_CONN_FAIL,
AUDIO_ON_ED,
AUDIO_ON_FAIL,
AUDIO_OFF_ED,
AUDIO_OFF_FAIL,
DEV_DISC_ED
};
enum {
REQ_INIT = 0x01,
REQ_START,
REQ_DONE
};
enum {
AUD_CHNL_ANY = BTAUD_CHNL_ANY,
AUD_CHNL_MONO = BTAUD_CHNL_MONO,
AUD_CHNL_STEREO = BTAUD_CHNL_STEREO,
AUD_CHNL_ALL = BTAUD_CHNL_ALL
};
enum {
CHNL_HFP,
CHNL_A2DP,
MAX_CHANNEL_NUM
};
enum {
FLAG_ABORT = 0x01,
FLAG_HEADSET = 0x02,
FLAG_HANDSFREE = 0x04,
FLAG_DETACH = 0x08
};
enum {
EV_ATTACH_IND = BTAUD_EV_ATTACH_IND,
EV_ATTACH_FAIL = BTAUD_EV_ATTACH_FAIL,
EV_DETACH_IND = BTAUD_EV_DETACH_IND,
EV_SWITCH_IND = BTAUD_EV_SWITCH_IND,
EV_SWITCH_FAIL = BTAUD_EV_SWITCH_FAIL,
EV_CHNL_UPDATE = BTAUD_EV_CHNL_UPDATE,
EV_ATTACH_REQ = BTAUD_EV_ATTACH_REQ,
EV_ATTACH_ABORT = BTAUD_EV_ATTACH_ABORT,
EV_VOLUME_IND = BTAUD_EV_VOLUME_IND,
EV_STEREO_CONFIG_IND = BTAUD_EV_STEREO_CONFIG_IND,
EV_MAX_COUNT
};
#define MAX_INSTANCE_NUM (6)
#define MAX_CHANNEL_NUM (2)
#define MAX_OPTION_NUM (2)
#define BTAUD_EVENT_ID (1024+3)
typedef struct {
BtAudOption item;
U32 value;
} btaud_option;
typedef struct {
U32 events;
void *user_data;
BtAudAccessLevel level;
BtAudNotify notify;
BtAudChannel sel_chnl;
btaud_option options[MAX_OPTION_NUM];
U32 alloc;
} btaud_instance;
typedef struct {
btaud_instance *inst;
U32 evt_id;
U32 arg;
} btaud_notification;
typedef struct _btaud_chnl btaud_channel;
typedef struct _btaud_dev btaud_device;
typedef struct _btaud_input {
U32 op_code;
U32 arg;
U32 status;
U32 flags;
btaud_instance *caller;
btaud_channel *owner;
struct _btaud_input *next;
} btaud_request;
typedef struct _btaud_chnl{
U32 state;
U32 type;
U32 chnl_hd;
U32 dev_id;
U32 status;
btaud_instance *inst;
btaud_device *device;
btaud_request *req_list;
} btaud_channel;
typedef struct _btaud_dev {
BtAudDevAddr addr;
BtAudStatus status;
U32 active_chnl;
U32 link_chnl;
U32 flags;
U32 service;
btaud_channel *chnls[MAX_CHANNEL_NUM];
} btaud_device;
typedef S32 (*BtAudNotifyEx)(BtAudEvent event, U32 arg, void *user_data);
typedef MMI_BOOL (*ChnlStateHdlr)(btaud_channel *chnl, U32 op_code, void *args);
typedef struct {
btaud_instance insts[MAX_INSTANCE_NUM];
btaud_device device;
btaud_channel chnls[MAX_CHANNEL_NUM];
MMI_BOOL ongoing_call;
} btaud_cntx_struct;
static U8 btaud_service_hdlr(void *para, U32 src_mod, ilm_struct *ilm);
static void btaud_cm_notify_hdlr(U32 event, void *args);
static S32 btaud_hf_notify_hdlr(U32 handle, U32 event, U32 args);
MMI_RET btaud_ucm_notify_hdlr(srv_ucm_ind_evt_struct *ind);
MMI_RET btaud_speech_notify_hdlr(mmi_evt_mdi_audio_speech_ind_struct *ind);
static MMI_BOOL btaud_chnl_run(btaud_channel *chnl, U32 op_code, void* args);
static MMI_BOOL chnl_state_idle(btaud_channel *chnl, U32 op_code, void *arg);
static MMI_BOOL chnl_state_discovery(btaud_channel *chnl, U32 op_code, void *arg);
static MMI_BOOL chnl_state_conn(btaud_channel *chnl, U32 op_code, void *arg);
static MMI_BOOL chnl_state_conn_ed(btaud_channel *chnl, U32 op_code, void *arg);
static MMI_BOOL chnl_state_switch_on(btaud_channel *chnl, U32 op_code, void *arg);
static MMI_BOOL chnl_state_audio_on(btaud_channel *chnl, U32 op_code, void *arg);
static MMI_BOOL chnl_state_switch_off(btaud_channel *chnl, U32 op_code, void *arg);
static MMI_BOOL chnl_state_authorize(btaud_channel *chnl, U32 op_code, void *arg);
static btaud_instance *btaud_new(BtAudAccessLevel level);
static void btaud_delete(btaud_instance *inst);
static btaud_instance *btaud_find(U32 srv_hd);
static btaud_device *btaud_new_device(const BtAudDevAddr *addr);
static void btaud_delete_device(void);
static btaud_device *btaud_get_device(void);
static btaud_channel *btaud_new_chnl(btaud_instance *inst, const BtAudDevAddr *addr, U32 type);
static void btaud_delete_chnl(btaud_channel *chnl);
static void btaud_enable_chnl(U32 type);
static void btaud_disable_chnl(U32 type, MMI_BOOL passive);
static void btaud_call_begin(void);
static void btaud_call_end(void);
static btaud_channel *btaud_get_chnl(U32 type);
static void btaud_link_chnl(btaud_device *device, btaud_channel *chnl);
static void btaud_unlink_chnl(btaud_channel *chnl);
static btaud_request *btaud_new_req(
btaud_instance *inst,
btaud_channel *chnl,
U32 op_code, U32 arg);
static void btaud_delete_req(btaud_request **req_list, btaud_request *req);
static MMI_BOOL btaud_add_req(
btaud_instance *inst,
btaud_channel *chnl,
U32 op_code, U32 arg);
static MMI_BOOL btaud_check_req(btaud_channel *chnl);
static void btaud_abort_req(btaud_instance *inst, btaud_channel *chnl);
static void btaud_notify(btaud_instance *inst, U32 event, U32 arg);
static void btaud_notify_all(U32 event, U32 arg);
static mmi_ret btaud_event_proc(mmi_event_struct *evt);
static S32 btaud_send_notify(void);
|
211e96d53e482e31b7a0b82f06e89a77eddb2f2f
|
f31b03436f67ee59547008939c8ab4b89d7b99cb
|
/libft/src/ft_strsub.c
|
c5a42a018cb372d7a3481f58f17410e6a2a57c9f
|
[] |
no_license
|
vliubko/FdF
|
c31d9fb6e8a5e3b924792ffd6a7dc7f30ca0088d
|
8b19861096fc4744dad540c9ce59a32d392404a2
|
refs/heads/master
| 2021-09-10T07:51:49.396018 | 2018-03-22T12:04:40 | 2018-03-22T12:04:40 | 126,027,819 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,277 |
c
|
ft_strsub.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strsub.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vliubko <vliubko@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/06 16:13:44 by vliubko #+# #+# */
/* Updated: 2017/11/13 17:00:34 by vliubko ### ########.fr */
/* */
/* ************************************************************************** */
#include "../includes/libft.h"
char *ft_strsub(char const *s, unsigned int start, size_t len)
{
char *new;
size_t i;
if (!s)
return (NULL);
if (len == 0)
return (new = (char*)malloc(sizeof(char) * (len + 1)));
new = (char*)malloc(sizeof(char) * (len + 1));
if (!new)
return (NULL);
i = 0;
while (i < len)
{
new[i++] = s[start++];
}
new[i] = '\0';
return (new);
}
|
e43e2cf881f035488a1aac7eca13913ef880945a
|
5066570282b7e833c18aa2106f2204d04d5f98a2
|
/main.c
|
f8abf6830b31dc5ae0b5b0b719ca857fc05b5138
|
[] |
no_license
|
BenMoussaIlyes/parallel-programming
|
15dd548b01ecf72b8d99af54401fedaff8fd21c7
|
c5b674cd61ea6d7685f05fb72b91439629443127
|
refs/heads/master
| 2021-03-27T01:17:32.775860 | 2020-03-16T16:59:54 | 2020-03-16T16:59:54 | 247,771,045 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,727 |
c
|
main.c
|
#include <semaphore.h>
#include <pthread.h>
#include <stdio.h>
#include <signal.h>
int currentval ;
sem_t semaphoreManger;
sem_t semaphoreRefillFood;
int currentfood;
int food;
int oisillons;
//gcc -o executable main.c -lpthread ; ./executable
void pere();
void fils(){
while (1){
sem_wait( &semaphoreManger );
if(currentfood != 0){
currentfood-- ;
printf("%s%d\n", "oisillon mange, portion restants :" ,currentfood);
sem_post( &semaphoreManger );
}
else
{
sem_getvalue(&semaphoreRefillFood, ¤tval);
if( currentval!=1){ // si aucun oisillon n'a deja signaler le remplissage , cela est fait maintenant
sem_post( &semaphoreRefillFood );
}
}
}
}
void pere(){
while(1){
sem_getvalue(&semaphoreRefillFood, ¤tval);// verifier si le semaphore de remplissage est egal a 1
if (currentval == 1)
{
printf("parent remplit la nourriture\n");
currentfood = food ;
sem_wait( &semaphoreRefillFood);
sem_post( &semaphoreManger );
}
}
}
int main()
{
pthread_t Tpere;
pthread_t Tfils[20];
printf("donner N nombre de oisillons :");
scanf("%d", &oisillons);
printf("donner F nombre de portions :");
scanf("%d", &food);
sem_init( &semaphoreManger, 0, 1 );
sem_init( &semaphoreRefillFood, 0, 0);
pthread_create(&Tpere, NULL, pere,NULL);
for(int i=0;i<5 ; i++){
pthread_create(&Tfils[i], NULL, fils, NULL);
}
int value_ptr , value_ptr2[5];
pthread_join(Tpere, &value_ptr);
for(int i=0;i<5 ; i++){
pthread_join(Tfils[i], &value_ptr2[i]);
}
sem_destroy( &semaphoreManger );
sem_destroy( &semaphoreRefillFood );
}
|
bcad0181f977f6bebe9ebdc4cfc6470785e22994
|
de21f9075f55640514c29ef0f1fe3f0690845764
|
/regression/cbmc-concurrency/malloc2/main.c
|
1e5a3f47a8645ffd0daf0fff9f30cc757f60a862
|
[
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-4-Clause"
] |
permissive
|
diffblue/cbmc
|
975a074ac445febb3b5715f8792beb545522dc18
|
decd2839c2f51a54b2ad0f3e89fdc1b4bf78cd16
|
refs/heads/develop
| 2023-08-31T05:52:05.342195 | 2023-08-30T13:31:51 | 2023-08-30T13:31:51 | 51,877,056 | 589 | 309 |
NOASSERTION
| 2023-09-14T18:49:17 | 2016-02-16T23:03:52 |
C++
|
UTF-8
|
C
| false | false | 309 |
c
|
main.c
|
#include <stdlib.h>
_Bool set_done;
int *ptr;
void *set_x(void *arg)
{
*(int *)arg = 10;
set_done = 1;
}
int main(int argc, char *argv[])
{
__CPROVER_assume(argc >= sizeof(int));
ptr = malloc(argc);
__CPROVER_ASYNC_1: set_x(ptr);
__CPROVER_assume(set_done);
assert(*ptr == 10);
return 0;
}
|
84a081c18df71844ab15788eb421d800e659e389
|
cf129b6893f52031f413d68a4f37b34e439464a1
|
/libft/ft_strcpy.c
|
4f28747b4bd1d142962506fec9fd0774797db084
|
[] |
no_license
|
DevRaph/Algorithmie
|
fe68a7201f41bac672fe9124aee08c1d423a98a4
|
4fec2ac69d7ff922cbadc663e1cd1c12c1a15971
|
refs/heads/master
| 2021-01-16T20:37:10.764708 | 2015-06-10T13:04:32 | 2015-06-10T13:04:32 | 28,516,199 | 0 | 1 | null | null | null | null |
UTF-8
|
C
| false | false | 1,030 |
c
|
ft_strcpy.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rpinet <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/11/05 18:24:54 by rpinet #+# #+# */
/* Updated: 2014/11/06 19:27:37 by rpinet ### ########.fr */
/* */
/* ************************************************************************** */
char *ft_strcpy(char *dest, const char *src)
{
char *tmp;
tmp = dest;
while (*src)
*tmp++ = *src++;
*tmp = '\0';
return (dest);
}
|
69d838f17798fbd1bd8f8d641f73f865f78a576b
|
9fbbd3b43bf2b7d774b1e991393c2f519597a368
|
/state.c
|
7e1b61768b2563be20bd9d7099d4581c6d66f186
|
[
"MIT"
] |
permissive
|
frostburn/tinytsumego
|
b67592c5a1c3579f958dfa5a2029a744a66f0417
|
71fc52eec2be703044d2af8b55e0d93efe351399
|
refs/heads/master
| 2021-01-21T04:40:31.224082 | 2016-07-14T05:59:36 | 2016-07-14T05:59:36 | 51,691,934 | 1 | 0 | null | 2016-07-09T06:29:57 | 2016-02-14T11:25:57 |
C
|
UTF-8
|
C
| false | false | 35,252 |
c
|
state.c
|
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define WIDTH (9)
#define HEIGHT (7)
#define STATE_SIZE (WIDTH * HEIGHT)
#define H_SHIFT (1ULL)
#define V_SHIFT (WIDTH)
#define D_SHIFT (WIDTH - 1ULL)
#define NORTH_WALL ((1ULL << WIDTH) - 1ULL)
#define WEST_WALL (0x40201008040201ULL)
#define WEST_BLOCK (0X3FDFEFF7FBFDFEFF)
#define H0 (NORTH_WALL)
#define H1 (H0 << V_SHIFT)
#define H2 (H1 << V_SHIFT)
#define H3 (H2 << V_SHIFT)
#define H4 (H3 << V_SHIFT)
#define H5 (H4 << V_SHIFT)
#define H6 (H5 << V_SHIFT)
#define V0 (WEST_WALL)
#define V1 (V0 << H_SHIFT)
#define V2 (V1 << H_SHIFT)
#define V3 (V2 << H_SHIFT)
#define V4 (V3 << H_SHIFT)
#define V5 (V4 << H_SHIFT)
#define V6 (V5 << H_SHIFT)
#define V7 (V6 << H_SHIFT)
#define V8 (V7 << H_SHIFT)
typedef unsigned long long int stones_t;
typedef struct state
{
stones_t playing_area;
stones_t player;
stones_t opponent;
stones_t ko;
stones_t target;
stones_t immortal;
int passes;
int ko_threats;
int white_to_play;
} state;
// This is for the binary interface (no padding)
#define SIZE_OF_STATE (6 * sizeof(stones_t) + 3 * sizeof(int))
typedef struct state_info
{
int size;
int width;
int height;
int num_moves;
stones_t moves[STATE_SIZE + 1];
int num_external;
stones_t externals[STATE_SIZE];
int external_sizes[STATE_SIZE];
stones_t external;
stones_t internal;
int num_blocks;
size_t exponents[STATE_SIZE];
int shifts[STATE_SIZE];
stones_t masks[STATE_SIZE];
int color_symmetry;
int mirror_v_symmetry;
int mirror_h_symmetry;
int mirror_d_symmetry;
// No rotational or color + spatial symmetries implemented.
} state_info;
void print_stones(const stones_t stones) {
printf(" ");
for (int i = 0; i < WIDTH; i++) {
printf(" %c", 'A' + i);
}
printf("\n");
for (int i = 0; i < 64; i++) {
if (i % V_SHIFT == 0) {
printf("%d", i / V_SHIFT);
}
if ((1ULL << i) & stones) {
printf(" @");
}
else {
printf(" .");
}
if (i % V_SHIFT == V_SHIFT - 1){
printf("\n");
}
}
printf("\n");
}
void print_state(const state *s) {
stones_t black, white;
if (s->white_to_play) {
white = s->player;
black = s->opponent;
}
else {
black = s->player;
white = s->opponent;
}
printf(" ");
for (int i = 0; i < WIDTH; i++) {
printf(" %c", 'A' + i);
}
printf("\n");
for (int i = 0; i < STATE_SIZE; i++) {
if (i % V_SHIFT == 0) {
printf("%d", i / V_SHIFT);
}
stones_t p = (1ULL << i);
if (p & s->playing_area) {
printf("\x1b[0;30;43m"); // Yellow BG
}
else {
printf("\x1b[0m");
}
if (p & black) {
printf("\x1b[30m"); // Black
if (p & s->target) {
printf(" b");
}
else if (p & s->immortal) {
printf(" B");
}
else {
printf(" @");
}
}
else if (p & white) {
printf("\x1b[37m"); // White
if (p & s->target) {
printf(" w");
}
else if (p & s->immortal) {
printf(" W");
}
else {
printf(" 0");
}
}
else if (p & s->ko) {
printf("\x1b[35m");
printf(" *");
}
else if (p & s->playing_area) {
printf("\x1b[35m");
printf(" .");
}
else {
printf(" ");
}
if (i % V_SHIFT == V_SHIFT - 1){
printf("\x1b[0m\n");
}
}
printf("passes = %d ko_threats = %d white_to_play = %d\n", s->passes, s->ko_threats, s->white_to_play);
}
void repr_state(const state *s) {
printf(
"%llu %llu %llu %llu %llu %llu %d %d %d\n",
s->playing_area,
s->player,
s->opponent,
s->ko,
s->target,
s->immortal,
s->passes,
s->ko_threats,
s->white_to_play
);
}
void sscanf_state(const char *str, state *s) {
assert(sscanf(
str,
"%llu %llu %llu %llu %llu %llu %d %d %d",
&(s->playing_area),
&(s->player),
&(s->opponent),
&(s->ko),
&(s->target),
&(s->immortal),
&(s->passes),
&(s->ko_threats),
&(s->white_to_play)
) == 9);
}
int popcount(const stones_t stones) {
return __builtin_popcountll(stones);
}
size_t bitscan(const stones_t stones) {
assert(stones);
size_t index = 0;
while (!((1ULL << index) & stones)) {
index++;
}
return index;
}
size_t bitscan_left(const stones_t stones) {
assert(stones);
size_t index = STATE_SIZE - 1;
while (!((1ULL << index) & stones)) {
index--;
}
return index;
}
stones_t rectangle(const int width, const int height) {
stones_t r = 0;
for (int i = 0; i < width; ++i)
{
for (int j = 0; j < height; ++j)
{
r |= 1ULL << (i * H_SHIFT + j * V_SHIFT);
}
}
return r;
}
stones_t one(int x, int y) {
return 1ULL << (x * H_SHIFT + y * V_SHIFT);
}
stones_t two(int x, int y) {
return 3ULL << (x * H_SHIFT + y * V_SHIFT);
}
stones_t tvo(int x, int y) {
return (1ULL | (1ULL << V_SHIFT)) << (x * H_SHIFT + y * V_SHIFT);
}
void dimensions(const stones_t stones, int *width, int *height) {
for (int i = WIDTH - 1; i >= 0; i--) {
if (stones & (WEST_WALL << i)) {
*width = i + 1;
break;
}
}
for (int i = HEIGHT - 1; i >= 0; i--) {
if (stones & (NORTH_WALL << (i * V_SHIFT))) {
*height = i + 1;
return;
}
}
assert(0);
}
stones_t flood(register stones_t source, const register stones_t target) {
source &= target;
// Conditionals are costly.
// if (!source){
// return source;
// }
// Must & source with WEST_BLOCK because otherwise this would overflow
// 0 1 1 source
// 0 0 0
// 1 1 0 temp
// 1 1 0
// Disabled for now until further testing.
// register stones_t temp = WEST_BLOCK & target;
// source |= temp & ~((source & WEST_BLOCK) + temp);
// The following might be worth it, but it is hard to say.
// source |= (
// (source << V_SHIFT) |
// (source >> V_SHIFT)
// ) & target;
register stones_t temp;
do {
temp = source;
source |= (
((source & WEST_BLOCK) << H_SHIFT) |
((source >> H_SHIFT) & WEST_BLOCK) |
(source << V_SHIFT) |
(source >> V_SHIFT)
) & target;
} while (temp != source);
return source;
}
stones_t north(const stones_t stones) {
return stones >> V_SHIFT;
}
stones_t south(const stones_t stones) {
return stones << V_SHIFT;
}
stones_t west(const stones_t stones) {
return (stones >> H_SHIFT) & WEST_BLOCK;
}
stones_t east(const stones_t stones) {
return (stones & WEST_BLOCK) << H_SHIFT;
}
stones_t cross(const stones_t stones) {
return (
((stones & WEST_BLOCK) << H_SHIFT) |
((stones >> H_SHIFT) & WEST_BLOCK) |
(stones << V_SHIFT) |
(stones >> V_SHIFT) |
stones
);
}
stones_t blob(stones_t stones) {
stones |= ((stones & WEST_BLOCK) << H_SHIFT) | ((stones >> H_SHIFT) & WEST_BLOCK);
return stones | (stones << V_SHIFT) | (stones >> V_SHIFT);
}
stones_t liberties(const stones_t stones, const stones_t empty) {
return (
((stones & WEST_BLOCK) << H_SHIFT) |
((stones >> H_SHIFT) & WEST_BLOCK) |
(stones << V_SHIFT) |
(stones >> V_SHIFT)
) & ~stones & empty;
}
int target_dead(const state *s) {
return !!(s->target & ~(s->player | s->opponent));
}
int chinese_liberty_score(const state *s) {
stones_t player_controlled = s->player | liberties(s->player, s->playing_area & ~s->opponent);
stones_t opponent_controlled = s->opponent | liberties(s->opponent, s->playing_area & ~s->player);
return popcount(player_controlled) - popcount(opponent_controlled);
}
int japanese_liberty_score(const state *s) {
return popcount(liberties(s->player, s->playing_area & ~s->opponent)) - popcount(liberties(s->opponent, s->playing_area & ~s->player));
}
int make_move(state *s, const stones_t move, int *num_kill) {
stones_t old_player = s->player;
if (!move) {
if (s->ko){
s->ko = 0;
}
else {
s->passes += 1;
}
s->player = s->opponent;
s->opponent = old_player;
s->ko_threats = -s->ko_threats;
s->white_to_play = !s->white_to_play;
*num_kill = 0;
// assert(is_legal(s));
return 1;
}
stones_t old_opponent = s->opponent;
stones_t old_ko = s->ko;
int old_ko_threats = s->ko_threats;
if (move & s->ko) {
if (s->ko_threats <= 0) {
return 0;
}
s->ko_threats--;
}
if (move & (s->player | s->opponent | ~s->playing_area)) {
return 0;
}
s->player |= move;
s->ko = 0;
// Conditionals are expensive.
// if (!liberties(move, s->opponent | s->player)) {
// *num_kill = 0;
// goto swap_players;
// }
stones_t kill = 0;
stones_t empty = s->playing_area & ~s->player;
// Killing targets with external liberties would produce a random number of extra prisoners.
// Fix it so that target kills give no prisoners.
#define KILL_CHAIN \
if (!liberties(chain, empty) && !(chain & s->immortal)) {\
if (!(chain & s->target)) {\
kill |= chain;\
}\
s->opponent ^= chain;\
}
stones_t chain = flood(move >> V_SHIFT, s->opponent);
KILL_CHAIN
chain = flood(move << V_SHIFT, s->opponent);
KILL_CHAIN
chain = flood((move >> H_SHIFT) & WEST_BLOCK, s->opponent);
KILL_CHAIN
chain = flood((move & WEST_BLOCK) << H_SHIFT, s->opponent);
KILL_CHAIN
*num_kill = popcount(kill);
if (*num_kill == 1) {
if (liberties(move, s->playing_area & ~s->opponent) == kill) {
s->ko = kill;
}
}
chain = flood(move, s->player);
if (!liberties(chain, s->playing_area & ~s->opponent) && !(chain & s->immortal)) {
s->player = old_player;
s->opponent = old_opponent;
s->ko = old_ko;
s->ko_threats = old_ko_threats;
return 0;
}
// swap_players:
s->passes = 0;
old_player = s->player;
s->player = s->opponent;
s->opponent = old_player;
s->ko_threats = -s->ko_threats;
s->white_to_play = !s->white_to_play;
// assert(is_legal(s));
return 1;
}
int is_legal(const state *s) {
stones_t p;
stones_t chain;
stones_t player = s->player;
stones_t opponent = s->opponent;
for (int i = 0; i < WIDTH; i++) {
for (int j = 0; j + 1 < HEIGHT; j += 2) {
p = (1ULL | (1ULL << V_SHIFT)) << (i + j * V_SHIFT);
chain = flood(p, player);
player ^= chain;
if (chain && !liberties(chain, s->playing_area & ~s->opponent) && !(chain & s->immortal)) {
return 0;
}
chain = flood(p, opponent);
opponent ^= chain;
if (chain && !liberties(chain, s->playing_area & ~s->player) && !(chain & s->immortal)) {
return 0;
}
}
if (!(player | opponent)) {
return 1;
}
}
if (HEIGHT % 2) {
for (int i = 0; i < WIDTH ; i += 2) {
p = 3ULL << (i + (HEIGHT - 1) * V_SHIFT); // Assumes that end bits don't matter.
chain = flood(p, player);
player ^= chain;
if (chain && !liberties(chain, s->playing_area & ~s->opponent) && !(chain & s->immortal)) {
return 0;
}
chain = flood(p, opponent);
opponent ^= chain;
if (chain && !liberties(chain, s->playing_area & ~s->player) && !(chain & s->immortal)) {
return 0;
}
}
}
// Checking for ko legality omitted.
return 1;
}
/*
int is_legal(state *s) {
stones_t p;
stones_t chain;
stones_t player = s->player;
stones_t opponent = s->opponent;
for (int i = 0; i < STATE_SIZE; i++) {
p = 1ULL << i;
chain = flood(p, player);
player ^= chain;
if (chain && !liberties(chain, s->playing_area & ~s->opponent) && !(chain & s->immortal)) {
return 0;
}
chain = flood(p, opponent);
opponent ^= chain;
if (chain && !liberties(chain, s->playing_area & ~s->player) && !(chain & s->immortal)) {
return 0;
}
}
// Checking for ko legality omitted.
return 1;
}
*/
static stones_t PLAYER_BLOCKS[243] = {0, 1, 0, 2, 3, 2, 0, 1, 0, 4, 5, 4, 6, 7, 6, 4, 5, 4, 0, 1, 0, 2, 3, 2, 0, 1, 0, 8, 9, 8, 10, 11, 10, 8, 9, 8, 12, 13, 12, 14, 15, 14, 12, 13, 12, 8, 9, 8, 10, 11, 10, 8, 9, 8, 0, 1, 0, 2, 3, 2, 0, 1, 0, 4, 5, 4, 6, 7, 6, 4, 5, 4, 0, 1, 0, 2, 3, 2, 0, 1, 0, 16, 17, 16, 18, 19, 18, 16, 17, 16, 20, 21, 20, 22, 23, 22, 20, 21, 20, 16, 17, 16, 18, 19, 18, 16, 17, 16, 24, 25, 24, 26, 27, 26, 24, 25, 24, 28, 29, 28, 30, 31, 30, 28, 29, 28, 24, 25, 24, 26, 27, 26, 24, 25, 24, 16, 17, 16, 18, 19, 18, 16, 17, 16, 20, 21, 20, 22, 23, 22, 20, 21, 20, 16, 17, 16, 18, 19, 18, 16, 17, 16, 0, 1, 0, 2, 3, 2, 0, 1, 0, 4, 5, 4, 6, 7, 6, 4, 5, 4, 0, 1, 0, 2, 3, 2, 0, 1, 0, 8, 9, 8, 10, 11, 10, 8, 9, 8, 12, 13, 12, 14, 15, 14, 12, 13, 12, 8, 9, 8, 10, 11, 10, 8, 9, 8, 0, 1, 0, 2, 3, 2, 0, 1, 0, 4, 5, 4, 6, 7, 6, 4, 5, 4, 0, 1, 0, 2, 3, 2, 0, 1, 0};
static stones_t OPPONENT_BLOCKS[243] = {0, 0, 1, 0, 0, 1, 2, 2, 3, 0, 0, 1, 0, 0, 1, 2, 2, 3, 4, 4, 5, 4, 4, 5, 6, 6, 7, 0, 0, 1, 0, 0, 1, 2, 2, 3, 0, 0, 1, 0, 0, 1, 2, 2, 3, 4, 4, 5, 4, 4, 5, 6, 6, 7, 8, 8, 9, 8, 8, 9, 10, 10, 11, 8, 8, 9, 8, 8, 9, 10, 10, 11, 12, 12, 13, 12, 12, 13, 14, 14, 15, 0, 0, 1, 0, 0, 1, 2, 2, 3, 0, 0, 1, 0, 0, 1, 2, 2, 3, 4, 4, 5, 4, 4, 5, 6, 6, 7, 0, 0, 1, 0, 0, 1, 2, 2, 3, 0, 0, 1, 0, 0, 1, 2, 2, 3, 4, 4, 5, 4, 4, 5, 6, 6, 7, 8, 8, 9, 8, 8, 9, 10, 10, 11, 8, 8, 9, 8, 8, 9, 10, 10, 11, 12, 12, 13, 12, 12, 13, 14, 14, 15, 16, 16, 17, 16, 16, 17, 18, 18, 19, 16, 16, 17, 16, 16, 17, 18, 18, 19, 20, 20, 21, 20, 20, 21, 22, 22, 23, 16, 16, 17, 16, 16, 17, 18, 18, 19, 16, 16, 17, 16, 16, 17, 18, 18, 19, 20, 20, 21, 20, 20, 21, 22, 22, 23, 24, 24, 25, 24, 24, 25, 26, 26, 27, 24, 24, 25, 24, 24, 25, 26, 26, 27, 28, 28, 29, 28, 28, 29, 30, 30, 31};
static size_t BLOCK_KEYS[32] = {0, 1, 3, 4, 9, 10, 12, 13, 27, 28, 30, 31, 36, 37, 39, 40, 81, 82, 84, 85, 90, 91, 93, 94, 108, 109, 111, 112, 117, 118, 120, 121};
int from_key(state *s, const state_info *si, size_t key) {
stones_t fixed = s->target | s->immortal;
s->player &= fixed;
s->opponent &= fixed;
s->ko = 0;
for (int i = 0; i < si->num_external; i++) {
stones_t external = si->externals[i];
size_t e_size = si->external_sizes[i];
size_t num_filled = key % e_size;
key /= e_size;
stones_t p = 1ULL;
while (num_filled) {
if (p & external) {
s->player |= p;
num_filled--;
}
p <<= 1;
}
}
for (int i = 0; i < si->num_blocks; i++) {
size_t e = si->exponents[i];
int shift = si->shifts[i];
s->player |= PLAYER_BLOCKS[key % e] << shift;
s->opponent |= OPPONENT_BLOCKS[key % e] << shift;
key /= e;
}
return is_legal(s);
}
size_t to_key(const state *s, const state_info *si) {
size_t key = 0;
for (int i = si->num_blocks - 1; i >= 0; i--) {
size_t e = si->exponents[i];
int shift = si->shifts[i];
stones_t mask = si->masks[i];
stones_t player = (s->player >> shift) & mask;
stones_t opponent = (s->opponent >> shift) & mask;
key *= e;
key += BLOCK_KEYS[player] + 2 * BLOCK_KEYS[opponent];
}
for (int i = si->num_external - 1; i >= 0; i--) {
stones_t external = si->externals[i];
size_t e_size = si->external_sizes[i];
size_t num_filled = popcount(external & (s->player | s->opponent));
assert(num_filled < e_size);
key *= e_size;
key += num_filled;
}
return key;
}
size_t key_size(const state_info *si) {
size_t size = 1;
for (int i = si->num_blocks - 1; i >= 0; i--) {
size *= si->exponents[i];
}
for (int i = si->num_external - 1; i >= 0; i--) {
stones_t external = si->externals[i];
size *= popcount(external) + 1;
}
// TODO: Make sure that we're under 1 << 64.
return size;
}
#define HB3 (H0 | H1 | H2)
#define HE7 (H0 | H4)
#define HC7 (H1 | H3 | H5)
stones_t s_mirror_v(stones_t stones) {
assert(HEIGHT == 7);
stones = ((stones >> (4 * V_SHIFT)) & HB3) | ((stones & HB3) << (4 * V_SHIFT)) | (stones & H3);
return ((stones >> (2 * V_SHIFT)) & HE7) | ((stones & HE7) << (2 * V_SHIFT)) | (stones & HC7);
}
#define HE6 (H0 | H3)
#define HC6 (H1 | H4)
stones_t s_mirror_v6(stones_t stones) {
stones = ((stones >> (3 * V_SHIFT)) & HB3) | ((stones & HB3) << (3 * V_SHIFT));
return ((stones >> (2 * V_SHIFT)) & HE6) | ((stones & HE6) << (2 * V_SHIFT)) | (stones & HC6);
}
stones_t s_mirror_v5(stones_t stones) {
return (
((stones & H0) << (4 * V_SHIFT)) |
((stones & H1) << (2 * V_SHIFT)) |
(stones & H2) |
((stones & H3) >> (2 * V_SHIFT)) |
((stones & H4) >> (4 * V_SHIFT))
);
}
stones_t s_mirror_v4(stones_t stones) {
return (
((stones & H0) << (3 * V_SHIFT)) |
((stones & H1) << V_SHIFT) |
((stones & H2) >> V_SHIFT) |
((stones & H3) >> (3 * V_SHIFT))
);
}
stones_t s_mirror_v3(stones_t stones) {
return (
((stones & H0) << (2 * V_SHIFT)) |
(stones & H1) |
((stones & H2) >> (2 * V_SHIFT))
);
}
stones_t s_mirror_v2(stones_t stones) {
return (
((stones & H0) << V_SHIFT) |
((stones & H1) >> V_SHIFT)
);
}
#define VB3 (V0 | V1 | V2)
#define VBC3 (V3 | V4 | V5)
#define VE9 (V0 | V3 | V6)
#define VC9 (V1 | V4 | V7)
stones_t s_mirror_h(stones_t stones) {
assert(WIDTH == 9);
stones = ((stones >> 6) & VB3) | ((stones & VB3) << 6) | (stones & VBC3);
return ((stones >> 2) & VE9) | ((stones & VE9) << 2) | (stones & VC9);
}
#define VB4 (VB3 | V3)
#define VBE2 (V0 | V1 | V4 | V5)
#define VBE1 (V0 | V2 | V4 | V6)
stones_t s_mirror_h8(stones_t stones) {
stones = ((stones >> 4) & VB4) | ((stones & VB4) << 4);
stones = ((stones >> 2) & VBE2) | ((stones & VBE2) << 2);
return ((stones >> 1) & VBE1) | ((stones & VBE1) << 1);
}
#define VE7 (V0 | V4)
#define VC7 (V1 | V3 | V5)
stones_t s_mirror_h7(stones_t stones) {
stones = ((stones >> 4) & VB3) | ((stones & VB3) << 4) | (stones & V3);
return ((stones >> 2) & VE7) | ((stones & VE7) << 2) | (stones & VC7);
}
#define VE6 (V0 | V3)
#define VC6 (V1 | V4)
stones_t s_mirror_h6(stones_t stones) {
stones = ((stones >> 3) & VB3) | ((stones & VB3) << 3);
return ((stones >> 2) & VE6) | ((stones & VE6) << 2) | (stones & VC6);
}
stones_t s_mirror_h5(stones_t stones) {
return (
((stones & V0) << 4) |
((stones & V1) << 2) |
(stones & V2) |
((stones & V3) >> 2) |
((stones & V4) >> 4)
);
}
stones_t s_mirror_h4(stones_t stones) {
return (
((stones & V0) << 3) |
((stones & V1) << 1) |
((stones & V2) >> 1) |
((stones & V3) >> 3)
);
}
stones_t s_mirror_h3(stones_t stones) {
return (
((stones & V0) << 2) |
(stones & V1) |
((stones & V2) >> 2)
);
}
stones_t s_mirror_h2(stones_t stones) {
return (
((stones & V0) << 1) |
((stones & V1) >> 1)
);
}
stones_t s_mirror_d(stones_t stones) {
assert(HEIGHT == 7 && HEIGHT < WIDTH);
return (
(stones & 0x1004010040100401ULL) |
((stones & 0x8020080200802ULL) << D_SHIFT) |
((stones >> D_SHIFT) & 0x8020080200802ULL) |
((stones & 0x40100401004ULL) << (2 * D_SHIFT)) |
((stones >> (2 * D_SHIFT)) & 0x40100401004ULL) |
((stones & 0x200802008ULL) << (3 * D_SHIFT)) |
((stones >> (3 * D_SHIFT)) & 0x200802008ULL) |
((stones & 0x1004010ULL) << (4 * D_SHIFT)) |
((stones >> (4 * D_SHIFT)) & 0x1004010ULL) |
((stones & 0x8020ULL) << (5 * D_SHIFT)) |
((stones >> (5 * D_SHIFT)) & 0x8020ULL) |
((stones & 0x40ULL) << (6 * D_SHIFT)) |
((stones >> (6 * D_SHIFT)) & 0x40ULL)
);
}
void snap(state *s) {
for (int i = 0; i < WIDTH; i++) {
if (s->playing_area & (WEST_WALL << i)){
s->playing_area >>= i;
s->player >>= i;
s->opponent >>= i;
s->ko >>= i;
s->target >>= i;
s->immortal >>= i;
break;
}
}
for (int i = 0; i < HEIGHT * V_SHIFT; i += V_SHIFT) {
if (s->playing_area & (NORTH_WALL << i)){
s->playing_area >>= i;
s->player >>= i;
s->opponent >>= i;
s->ko >>= i;
s->target >>= i;
s->immortal >>= i;
return;
}
}
}
void mirror_v_full(state *s) {
s->playing_area = s_mirror_v(s->playing_area);
s->player = s_mirror_v(s->player);
s->opponent = s_mirror_v(s->opponent);
s->ko = s_mirror_v(s->ko);
s->target = s_mirror_v(s->target);
s->immortal = s_mirror_v(s->immortal);
snap(s);
}
void mirror_h_full(state *s) {
s->playing_area = s_mirror_h(s->playing_area);
s->player = s_mirror_h(s->player);
s->opponent = s_mirror_h(s->opponent);
s->ko = s_mirror_h(s->ko);
s->target = s_mirror_h(s->target);
s->immortal = s_mirror_h(s->immortal);
snap(s);
}
void mirror_d_full(state *s) {
s->playing_area = s_mirror_d(s->playing_area);
s->player = s_mirror_d(s->player);
s->opponent = s_mirror_d(s->opponent);
s->ko = s_mirror_d(s->ko);
s->target = s_mirror_d(s->target);
s->immortal = s_mirror_d(s->immortal);
snap(s);
}
void mirror_v(state *s, const state_info *si) {
if (si->height == 7) {
s->player = s_mirror_v(s->player);
s->opponent = s_mirror_v(s->opponent);
s->ko = s_mirror_v(s->ko);
}
else if (si->height == 6) {
s->player = s_mirror_v6(s->player);
s->opponent = s_mirror_v6(s->opponent);
s->ko = s_mirror_v6(s->ko);
}
else if (si->height == 5) {
s->player = s_mirror_v5(s->player);
s->opponent = s_mirror_v5(s->opponent);
s->ko = s_mirror_v5(s->ko);
}
else if (si->height == 4) {
s->player = s_mirror_v4(s->player);
s->opponent = s_mirror_v4(s->opponent);
s->ko = s_mirror_v4(s->ko);
}
else if (si->height == 3) {
s->player = s_mirror_v3(s->player);
s->opponent = s_mirror_v3(s->opponent);
s->ko = s_mirror_v3(s->ko);
}
else if (si->height == 2) {
s->player = s_mirror_v2(s->player);
s->opponent = s_mirror_v2(s->opponent);
s->ko = s_mirror_v2(s->ko);
}
}
void mirror_h(state *s, const state_info *si) {
if (si->width == 9) {
s->player = s_mirror_h(s->player);
s->opponent = s_mirror_h(s->opponent);
s->ko = s_mirror_h(s->ko);
}
else if (si->width == 8) {
s->player = s_mirror_h8(s->player);
s->opponent = s_mirror_h8(s->opponent);
s->ko = s_mirror_h8(s->ko);
}
else if (si->width == 7) {
s->player = s_mirror_h7(s->player);
s->opponent = s_mirror_h7(s->opponent);
s->ko = s_mirror_h7(s->ko);
}
else if (si->width == 6) {
s->player = s_mirror_h6(s->player);
s->opponent = s_mirror_h6(s->opponent);
s->ko = s_mirror_h6(s->ko);
}
else if (si->width == 5) {
s->player = s_mirror_h5(s->player);
s->opponent = s_mirror_h5(s->opponent);
s->ko = s_mirror_h5(s->ko);
}
else if (si->width == 4) {
s->player = s_mirror_h4(s->player);
s->opponent = s_mirror_h4(s->opponent);
s->ko = s_mirror_h4(s->ko);
}
else if (si->width == 3) {
s->player = s_mirror_h3(s->player);
s->opponent = s_mirror_h3(s->opponent);
s->ko = s_mirror_h3(s->ko);
}
else if (si->width == 2) {
s->player = s_mirror_h2(s->player);
s->opponent = s_mirror_h2(s->opponent);
s->ko = s_mirror_h2(s->ko);
}
}
void mirror_d(state *s) {
s->player = s_mirror_d(s->player);
s->opponent = s_mirror_d(s->opponent);
s->ko = s_mirror_d(s->ko);
}
int less_than(const state *a, const state *b, const state_info *si) {
stones_t a_player = a->player & si->internal;
stones_t b_player = b->player & si->internal;
if (a_player < b_player) {
return 1;
}
else if (a_player == b_player){
stones_t a_opponent = a->opponent & si->internal;
stones_t b_opponent = b->opponent & si->internal;
if (a_opponent < b_opponent) {
return 1;
}
else if (a_opponent == b_opponent) {
if (a->ko < b->ko) {
return 1;
}
else if (a->ko == b->ko) {
size_t key_a = 0;
size_t key_b = 0;
stones_t a_filling = a->player | a->opponent;
stones_t b_filling = b->player | b->opponent;
for (int i = si->num_external - 1; i >= 0; i--) {
stones_t external = si->externals[i];
size_t e_size = si->external_sizes[i];
key_a *= e_size;
key_b *= e_size;
key_a += popcount(external & a_filling);
key_b += popcount(external & b_filling);
}
return key_a < key_b;
}
}
}
return 0;
}
void normalize_external(state *s, const state_info *si) {
for (int i = 0; i < si->num_external; i++) {
stones_t external = si->externals[i];
int num_filled = popcount(external & (s->player | s->opponent));
s->player &= ~external;
s->opponent &= ~external;
stones_t p = 1ULL;
while (num_filled) {
if (p & external) {
s->player |= p;
num_filled--;
}
p <<= 1;
}
}
}
void canonize(state *s, const state_info *si) {
if (si->color_symmetry) {
s->white_to_play = 0;
}
state temp_ = *s;
state *temp = &temp_;
if (si->mirror_v_symmetry) {
mirror_v(temp, si);
if (less_than(temp, s, si)) {
*s = *temp;
}
}
if (si->mirror_h_symmetry) {
mirror_h(temp, si);
if (less_than(temp, s, si)) {
*s = *temp;
}
if (si->mirror_v_symmetry) {
mirror_v(temp, si);
if (less_than(temp, s, si)) {
*s = *temp;
}
}
}
if (si->mirror_d_symmetry) {
mirror_d(temp);
if (less_than(temp, s, si)) {
*s = *temp;
}
if (si->mirror_v_symmetry) {
mirror_v(temp, si);
if (less_than(temp, s, si)) {
*s = *temp;
}
}
if (si->mirror_h_symmetry) {
mirror_h(temp, si);
if (less_than(temp, s, si)) {
*s = *temp;
}
if (si->mirror_v_symmetry) {
mirror_v(temp, si);
if (less_than(temp, s, si)) {
*s = *temp;
}
}
}
}
}
int is_canonical(const state *s, const state_info *si) {
if (si->color_symmetry) {
if (s->white_to_play) {
return 0;
}
}
state temp_ = *s;
state *temp = &temp_;
if (si->mirror_v_symmetry) {
mirror_v(temp, si);
if (less_than(temp, s, si)) {
return 0;
}
}
if (si->mirror_h_symmetry) {
mirror_h(temp, si);
if (less_than(temp, s, si)) {
return 0;
}
if (si->mirror_v_symmetry) {
mirror_v(temp, si);
if (less_than(temp, s, si)) {
return 0;
}
}
}
if (si->mirror_d_symmetry) {
mirror_d(temp);
if (less_than(temp, s, si)) {
return 0;;
}
if (si->mirror_v_symmetry) {
mirror_v(temp, si);
if (less_than(temp, s, si)) {
return 0;;
}
}
if (si->mirror_h_symmetry) {
mirror_h(temp, si);
if (less_than(temp, s, si)) {
return 0;;
}
if (si->mirror_v_symmetry) {
mirror_v(temp, si);
if (less_than(temp, s, si)) {
return 0;;
}
}
}
}
return 1;
}
// Externals are groups of intersections where it doesn't matter
// which player has filled them or in which order.
// Player target liberties shared by opponent immortal liberties can only be filled once.
// The ones that don't matter are those that can never take a liberty of any other chain.
void process_external(state_info *si, stones_t player_target, stones_t opponent_immortal, stones_t playing_area) {
for (int i = 0;i < STATE_SIZE; i++) {
stones_t p = 1ULL << i;
stones_t chain = flood(p, player_target);
if (chain) {
stones_t external = liberties(chain, playing_area) & liberties(opponent_immortal, playing_area);
stones_t everything_else = playing_area & ~(chain | opponent_immortal | external);
external &= ~cross(everything_else);
if (external) {
si->externals[si->num_external++] = external;
}
player_target ^= chain;
}
}
}
void init_state(state *s, state_info *si) {
assert(!(~s->playing_area & (s->player | s->opponent | s->ko | s->target | s->immortal)));
assert(!(s->player & s->opponent));
assert(!((s->player | s->opponent) & s->ko));
dimensions(s->playing_area, &(si->width), &(si->height));
stones_t open = s->playing_area & ~(s->target | s->immortal);
si->num_moves = 1;
si->moves[0] = 0;
si->size = 0;
for (int i = 0;i < STATE_SIZE; i++) {
stones_t p = 1ULL << i;
if (p & open) {
si->size++;
si->moves[si->num_moves++] = p;
}
}
si->num_external = 0;
process_external(si, s->player & s->target, s->opponent & s->immortal, s->playing_area);
process_external(si, s->opponent & s->target, s->player & s->immortal, s->playing_area);
stones_t external = 0;
for (int i = 0;i < si->num_external; i++) {
si->external_sizes[i] = popcount(si->externals[i]) + 1;
external |= si->externals[i];
open ^= si->externals[i];
}
si->external = external;
si->internal = open;
si->num_blocks = 0;
for (int i = 0;i < STATE_SIZE; i++) {
if (!((31ULL << i) & ~open)) {
si->exponents[si->num_blocks] = 243;
si->masks[si->num_blocks] = 31ULL;
si->shifts[si->num_blocks++] = i;
i += 4;
}
else if (!((15ULL << i) & ~open)) {
si->exponents[si->num_blocks] = 81;
si->masks[si->num_blocks] = 15ULL;
si->shifts[si->num_blocks++] = i;
i += 3;
}
else if (!((7ULL << i) & ~open)) {
si->exponents[si->num_blocks] = 27;
si->masks[si->num_blocks] = 7ULL;
si->shifts[si->num_blocks++] = i;
i += 2;
}
else if (!((3ULL << i) & ~open)) {
si->exponents[si->num_blocks] = 9;
si->masks[si->num_blocks] = 3ULL;
si->shifts[si->num_blocks++] = i++;
}
else if ((1ULL << i) & open) {
si->exponents[si->num_blocks] = 3;
si->masks[si->num_blocks] = 1ULL;
si->shifts[si->num_blocks++] = i;
}
}
si->color_symmetry = !(s->target | s->immortal);
state temp_;
state *temp = &temp_;
*temp = *s;
mirror_v_full(temp);
si->mirror_v_symmetry = (s->playing_area == temp->playing_area && s->target == temp->target && s->immortal == temp->immortal);
*temp = *s;
mirror_h_full(temp);
si->mirror_h_symmetry = (s->playing_area == temp->playing_area && s->target == temp->target && s->immortal == temp->immortal);
*temp = *s;
mirror_d_full(temp);
si->mirror_d_symmetry = (s->playing_area == temp->playing_area && s->target == temp->target && s->immortal == temp->immortal);
}
#include "atari_state.c"
#ifndef MAIN
int main() {
stones_t a = 0x19bf3315;
stones_t b = 1ULL;
stones_t c = flood(b, a);
print_stones(a);
printf("%d\n", popcount(a));
print_stones(b);
printf("%d\n", popcount(b));
print_stones(c);
state s_ = (state) {rectangle(5, 4), 0, 0, 0, 0, 0, 0};
state *s = &s_;
state_info si_;
state_info *si = &si_;
init_state(s, si);
int prisoners;
make_move(s, 1ULL << (2 + 3 * V_SHIFT), &prisoners);
make_move(s, 1ULL << (4 + 1 * V_SHIFT), &prisoners);
print_state(s);
size_t key = to_key(s, si);
printf("%zu\n", key);
printf("%d\n", from_key(s, si, key));
print_state(s);
print_stones(NORTH_WALL);
print_stones(WEST_WALL);
print_stones(WEST_BLOCK);
int width;
int height;
dimensions(rectangle(4, 3), &width, &height);
printf("%d, %d\n", width, height);
*s = (state) {rectangle(6, 7), WEST_WALL, 2ULL, 0, 2ULL, WEST_WALL, 0};
init_state(s, si);
state z_;
state *z = &z_;
*z = *s;
assert(from_key(z, si, to_key(s, si)));
assert(z->player == s->player && z->opponent == s->opponent);
time_t t = time(0);
srand(t);
for (int i = 0; i < 3000; i++) {
if (make_move(s, one(rand() % WIDTH, rand() % HEIGHT), &prisoners)) {
print_state(s);
from_key(s, si, to_key(s, si));
if (target_dead(s)) {
break;
}
}
}
printf("%ld\n", t);
print_stones(0x1C0E070381C0E07ULL);
print_stones(0xE070381C0E07038ULL);
print_stones(0x1249249249249249ULL);
print_stones(0x2492492492492492ULL);
print_stones(0x7FFFFFFULL);
print_stones(0xFF8000000ULL);
print_stones(0x1FF0000001FFULL);
print_stones(0x3FE00FF803FE00ULL);
print_stones(a);
print_stones(s_mirror_h(a));
print_stones(s_mirror_v(a));
print_stones(0x1004010040100401ULL);
print_stones(0x8020080200802ULL);
print_stones(s_mirror_d(a));
s->target = 0;
s->immortal = 0;
print_state(s);
init_state(s, si);
// assert(si->symmetry == 2);
canonize(s, si);
print_state(s);
test_atari_state();
return 0;
}
#endif
|
a08d72a0eaaf77fb7a30d0bfce18c6dc4dd601ce
|
13a6b43f044ef6c1082798c89572ff03f04e4dae
|
/Presenter/Pods/Headers/Private/AvitoTestTask/CVInterfaceProtocol.h
|
bbb6bb62205cd9e4dfc57c471c6cacc09e774e0f
|
[] |
no_license
|
Usipov/AvitoTestTask
|
8fb803bbd5ac3d468bf97fe2c4d9a7d27079d26b
|
1308ae7ee87c1cfbc50727563479b5f7a680ad1e
|
refs/heads/master
| 2016-08-12T10:26:38.735861 | 2016-01-21T11:57:02 | 2016-01-21T11:57:02 | 43,156,302 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 46 |
h
|
CVInterfaceProtocol.h
|
../../../../../View/View/CVInterfaceProtocol.h
|
ef6e9abfec53648b9150210c70666e61f1b73dfd
|
ada9029c9477af7db20d90b6eb51ac904e7abb05
|
/DSA Lab Assignment/pgm/main.c
|
678879f3bd3767aa5c568a9a53900472916a4072
|
[] |
no_license
|
Devil-99/Cpp-Programs
|
a2880736da5ce62e4664dc8bce843dd1f4c71721
|
42f39162d3283bc588394db4c3d36dd1de123653
|
refs/heads/master
| 2023-03-19T16:18:35.725207 | 2021-03-06T08:02:45 | 2021-03-06T08:02:45 | 345,037,595 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 648 |
c
|
main.c
|
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *fin,*fout;
fin=fopen("balloons.ascii.pgm","r");
if(fin==NULL)
printf("Unable to open\n");
else
{
fout=fopen("new.pgm","w");
char s[100];
int x,i=0;
while(i<4)
{
fgets(s,99,fin);
fputs(s,fout);
i++;
}
while(!feof(fin))
{
fscanf(fin,"%d",&x);
x=255-x;
fprintf(fout,"%d\n",x);
}
fclose(fin);
fclose(fout);
}
return 0;
}
|
badd5e0550094cfda7026978e5141fc25c07174e
|
68be75817e015e0bc3e2ce9becefc65445a0b603
|
/Ch07/is_class1.C
|
0150d05179980e229c045860478706b799750d8f
|
[
"MIT"
] |
permissive
|
salingers/Hands-On-Design-Patterns-with-C-
|
c7528cc26e6e2e19f5e807ed4b9caa442688b23c
|
f9b5184681e5a41cfd8fa4040177372bda446ec7
|
refs/heads/master
| 2020-04-01T07:31:20.958369 | 2018-10-01T15:54:45 | 2018-10-01T15:54:45 | 152,992,861 | 1 | 0 |
MIT
| 2018-10-14T16:08:51 | 2018-10-14T16:08:51 | null |
UTF-8
|
C
| false | false | 249 |
c
|
is_class1.C
|
#include <iostream>
template <typename T> void f(int T::*) { std::cout << "T is a class" << std::endl; }
template <typename T> void f(...) { std::cout << "T is not a class" << std::endl; }
struct A {
};
int main() {
f<int>(0);
f<A>(0);
}
|
066e03b67e910a9f0739ea457081cd644c579df1
|
1fabbdfd1ca9ea1b6808893e12bd907eb74de414
|
/xcode/Classes/Native/mscorlib_System_Collections_Generic_KeyValuePair_2_gen_111MethodDeclarations.h
|
84331313f26cff8941cc15fad5fbc14251096530
|
[] |
no_license
|
Klanly/TutorialPackageClient
|
6f889e96c40ab13c97d107708ae8f3c71a484301
|
b9d61ba2f287c491c9565b432f852980ec3fee28
|
refs/heads/master
| 2020-12-03T01:42:35.256114 | 2016-11-01T02:40:21 | 2016-11-01T02:40:21 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 2,019 |
h
|
mscorlib_System_Collections_Generic_KeyValuePair_2_gen_111MethodDeclarations.h
|
#pragma once
#include <stdint.h>
#include <assert.h>
#include <exception>
#include "codegen/il2cpp-codegen.h"
// System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.List`1<GCGame.Table.Tab_EquipAttr>>
struct KeyValuePair_2_t10946;
// System.Collections.Generic.List`1<GCGame.Table.Tab_EquipAttr>
struct List_1_t436;
// System.String
struct String_t;
// System.Void System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.List`1<GCGame.Table.Tab_EquipAttr>>::.ctor(TKey,TValue)
void KeyValuePair_2__ctor_m77308 (KeyValuePair_2_t10946 * __this, int32_t ___key, List_1_t436 * ___value, MethodInfo* method) IL2CPP_METHOD_ATTR;
// TKey System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.List`1<GCGame.Table.Tab_EquipAttr>>::get_Key()
int32_t KeyValuePair_2_get_Key_m77309 (KeyValuePair_2_t10946 * __this, MethodInfo* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.List`1<GCGame.Table.Tab_EquipAttr>>::set_Key(TKey)
void KeyValuePair_2_set_Key_m77310 (KeyValuePair_2_t10946 * __this, int32_t ___value, MethodInfo* method) IL2CPP_METHOD_ATTR;
// TValue System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.List`1<GCGame.Table.Tab_EquipAttr>>::get_Value()
List_1_t436 * KeyValuePair_2_get_Value_m77311 (KeyValuePair_2_t10946 * __this, MethodInfo* method) IL2CPP_METHOD_ATTR;
// System.Void System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.List`1<GCGame.Table.Tab_EquipAttr>>::set_Value(TValue)
void KeyValuePair_2_set_Value_m77312 (KeyValuePair_2_t10946 * __this, List_1_t436 * ___value, MethodInfo* method) IL2CPP_METHOD_ATTR;
// System.String System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.List`1<GCGame.Table.Tab_EquipAttr>>::ToString()
String_t* KeyValuePair_2_ToString_m77313 (KeyValuePair_2_t10946 * __this, MethodInfo* method) IL2CPP_METHOD_ATTR;
|
d2663025feaf516a6b3953ffbd847a2b95631a22
|
79b51662e92f6441d3e6ac08c6b12eec4abf4a74
|
/rover/exe_main.c
|
9acc9bd8f65ac9d49491a2bb509babb7d4f36170
|
[] |
no_license
|
AKI-Tutorial/CONTROL
|
4de2a0bcc18db5860551d02ec42a4c73e89d36ff
|
963a20884578d687bafb65e981f7848ec911aae0
|
refs/heads/master
| 2021-01-12T05:36:42.551384 | 2017-04-30T04:13:00 | 2017-04-30T04:13:00 | 77,149,368 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 819 |
c
|
exe_main.c
|
//main function
#include "exe_main.h"
int main(int argc, char *argv[]){
int i=0, j=1;
float rslv_data[2]={0.0,0.0};
printf("Into initializing \n");
//initializing
init_all();
//printf("Into while loop \n");
while(1){
for(i=0;i<2;i++){
rslv_data[i] = get_rslv(i);
}
printf("angles = %3.2f, %3.2f deg\n", rslv_data[0]*180.0/PI, rslv_data[1]*180.0/PI);
usleep(1000000);
}
/*
get_add();
for(i=0;i<AD_CHN_NMB;i++){
if(j%100000==1)
printf("ad_data[%d].vlt=%f \n", i, ad_data[i].vlt);
j=1; //reset
}
j++;
//printf("in the loop of while");
}
*/
/*while(1){
get_add();
for(i=0;i<AD_CHN_NMB;i++){
if((j%100000==1))
printf("ad_data[%d].vlt=%f \n", i, ad_data[i].vlt);
}
j++;
}*/
for(;;){
signal(SIGINT, sig_fnc);
}
return 0;
}
|
857b903db427a46f091a9777c9a543d8db5d42c2
|
79d74acdd2eb4e5b1c7f0dee7c7121f4fce1d09f
|
/171-gustavo-05 - tarefa-01c/08 - Sequências Crescentes.c
|
8cd257e2a867645f8b2b6f40c7a5de462a642d38
|
[] |
no_license
|
mersonfufu/sharif
|
3672eef9983594d942d26348c0fc98486b8f253c
|
867837b5564a446301f513de10baa3b31b776c97
|
refs/heads/master
| 2021-06-17T20:24:51.070917 | 2019-09-18T15:27:39 | 2021-06-01T14:39:17 | 209,335,165 | 1 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 496 |
c
|
08 - Sequências Crescentes.c
|
#include <stdio.h>
int main(){
int quant = 1, cont, desordem;
float numero, anterior;
while(quant){
scanf("%d", &quant);
if(quant == 0)
return 0;
else {
cont = 1;
desordem = 0;
while(scanf("%f", &numero)){
if(cont == 1)
anterior = numero;
else if(numero < anterior)
desordem = 1;
anterior = numero;
cont++;
if(cont > quant)
break;
}
if(desordem == 1)
printf("DESORDENADA\n");
else
printf("ORDENADA\n");
}
}
return 0;
}
|
72bcf6cdd77e81ef1ce36638492fa276bc2e38fd
|
db0226f5536ac7e83e2b07cdbf24c1da6c140917
|
/basics/time_local.c
|
807706c9f00936c62cbae2b2bf7535c444d0c43d
|
[] |
no_license
|
ashishsonone/OS_Lab
|
ad82ad420c50c8a0f47d0376fbbe0d931377944e
|
2e386017cb43fef9f98144c3361b73e07664b57e
|
refs/heads/master
| 2021-01-21T10:12:49.910182 | 2014-04-16T19:19:00 | 2014-04-16T19:19:00 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 942 |
c
|
time_local.c
|
#include <stdio.h> /* puts, printf */
#include <time.h> /* time_t, struct tm, time, localtime */
int main ()
{
time_t rawtime;
struct tm * timeinfo;
time (&rawtime);
timeinfo = localtime (&rawtime); //Note pointer to tm struct
printf ("Current local time and date: %s", asctime(timeinfo));
/*
* STRUCT tm
tm_sec int seconds after the minute 0-61*
tm_min int minutes after the hour 0-59
tm_hour int hours since midnight 0-23
tm_mday int day of the month 1-31
tm_mon int months since January 0-11
tm_year int years since 1900
tm_wday int days since Sunday 0-6
tm_yday int days since January 1 0-365
tm_isdst int Daylight Saving Time flag
*/
printf("month = %d, weekday = %d, dayofmonth = %d\n hour = %d, minute = %d\n",
timeinfo->tm_mon, timeinfo->tm_wday, timeinfo->tm_mday, timeinfo->tm_hour, timeinfo->tm_min
);
return 0;
}
|
38e3270136bbe414f0d31c6302b3e0bfe275f041
|
5aa43659dd73b2760361fdbf405ba6f59d1a0717
|
/Motesquito.h
|
8130afdfdd55f40458f72eee8eadd9ba7cdaa43b
|
[] |
no_license
|
vbohinc/Masters_Project
|
01e696087a7b41da09b3293b3a8fdcf64524c069
|
8aeb356e306698a570372d6e3ae3718a2ee5ae40
|
refs/heads/master
| 2020-06-10T08:51:46.960433 | 2015-11-15T00:49:36 | 2015-11-15T00:49:36 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 582 |
h
|
Motesquito.h
|
/*
* Motesquito.h
*
* Created: 3/27/2014 12:26:01 AM
* Author: Waron
*/
#ifndef MOTESQUITO_H_
#define MOTESQUITO_H_
#include <stdio.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include "Xbee.h"
#define F_CPU 16000000 //be sure to adjust for various clock settings
#define FTDI_USART_BAUDRATE 9600
#define FTDI_BAUD_PRESCALE (((F_CPU / (FTDI_USART_BAUDRATE * 16UL))) - 1)
#define FTDI_UDR UDR0
#define FTDI_UART_BUFFER_IS_FULL() ((UCSR0A & (1 << UDRE0)) == 0)
void USART0_init(void);
void motesquitoInit(void);
#endif /* MOTESQUITO_H_ */
|
5d9fcee57e3ded978c7db160cafbe002d9c325e5
|
4c4adeef3f2a8252fa9d1b6486df8813695faff9
|
/src/_MyiLLDFramework_TC23A/0_Src/BaseSw/iLLD/TC23A/Tricore/Smu/Std/IfxSmu.h
|
5655d4bc5efadaed3c1fd86fff07450474bb4420
|
[] |
no_license
|
realsosy/InfineonRacer
|
637fd1364e47f99cd0cb830f93b6e175b54e84d5
|
7fc847ba9eb1d3caa230baa7240fd332bcaa1d13
|
refs/heads/master
| 2021-04-26T03:05:31.202330 | 2019-04-04T15:15:02 | 2019-04-04T15:15:02 | 124,036,690 | 32 | 26 | null | 2019-02-11T08:08:28 | 2018-03-06T07:13:12 |
C
|
UTF-8
|
C
| false | false | 12,728 |
h
|
IfxSmu.h
|
/**
* \file IfxSmu.h
* \brief SMU basic functionality
* \ingroup IfxLld_Smu
*
* \version iLLD_1_0_1_4_0
* \copyright Copyright (c) 2017 Infineon Technologies AG. All rights reserved.
*
*
* IMPORTANT NOTICE
*
*
* Infineon Technologies AG (Infineon) is supplying this file for use
* exclusively with Infineon's microcontroller products. This file can be freely
* distributed within development tools that are supporting such microcontroller
* products.
*
* THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
* INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL,
* OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
*
* \defgroup IfxLld_Smu_Std_func_fsp FSP Functions
* \ingroup IfxLld_Smu_Std
* \defgroup IfxLld_Smu_Std_func SMU Functions
* \ingroup IfxLld_Smu_Std
* \defgroup IfxLld_Smu_Std_datastructures Data Structures
* \ingroup IfxLld_Smu_Std
*/
#ifndef IFXSMU_H
#define IFXSMU_H 1
/******************************************************************************/
/*----------------------------------Includes----------------------------------*/
/******************************************************************************/
#include "_Impl/IfxSmu_cfg.h"
#include "Cpu/Std/Ifx_Types.h"
#include "_PinMap/IfxSmu_PinMap.h"
#include "IfxSmu_reg.h"
#include "IfxSmu_regdef.h"
#include "IfxSmu_bf.h"
#include "_Utilities/Ifx_Assert.h"
/******************************************************************************/
/*--------------------------------Enumerations--------------------------------*/
/******************************************************************************/
/** \addtogroup IfxLld_Smu_Std_datastructures
* \{ */
/** \brief SMU Alarm Configuration
* Ifx_SMU.AGCF[][]
*/
typedef enum
{
IfxSmu_AlarmConfig_noAction = 0, /**< \brief No Action. Reset value. Alarm disabled. */
IfxSmu_AlarmConfig_interruptSet0 = 2, /**< \brief Sends an interrupt request to the interrupt system according to the Interrupt Generation Configuration Set 0 */
IfxSmu_AlarmConfig_interruptSet1 = 3, /**< \brief Sends an interrupt request to the interrupt system according to the Interrupt Generation Configuration Set 1 */
IfxSmu_AlarmConfig_interruptSet2 = 4, /**< \brief Sends an interrupt request to the interrupt system according to the Interrupt Generation Configuration Set 2 */
IfxSmu_AlarmConfig_nmi = 5, /**< \brief Sends an NMI request to the SCU */
IfxSmu_AlarmConfig_scuReset = 6, /**< \brief Sends a reset request to SCU */
IfxSmu_AlarmConfig_cpuIdle = 7 /**< \brief Triggers a CPU idle request */
} IfxSmu_AlarmConfig;
/** \brief SMU Commands
*/
typedef enum
{
IfxSmu_Cmd_start = 0, /**< \brief Forces the SSM to go to the RUN state from the START state. */
IfxSmu_Cmd_activateFsp = 1, /**< \brief Activates the Fault Signaling Protocol. */
IfxSmu_Cmd_releaseFsp = 2, /**< \brief Turns the FSP into the fault free state. */
IfxSmu_Cmd_activatePes = 3, /**< \brief Triggers the activation of the Port Emergency Stop (PES). */
IfxSmu_Cmd_stopRecoveryTimer = 4, /**< \brief Stop the recovery Timer. Argument ARG shall be set to the recovery timer instance available in the product. */
IfxSmu_Cmd_enableClearAlarmStatus = 5, /**< \brief Alarm Status Clear Enable Command */
IfxSmu_Cmd_triggerAlarm = 6 /**< \brief Triggers a software based alarm. ARG specifies the alarm index according to the mapping defined in "Alarm Mapping" */
} IfxSmu_Cmd;
typedef enum
{
IfxSmu_Fsp_Mode_bistable, /**< \brief Bi-stable fault signalling protocol */
IfxSmu_Fsp_Mode_timeSwitching /**< \brief Time switching protocol */
} IfxSmu_Fsp_Mode;
/** \} */
/******************************************************************************/
/*-----------------------------Data Structures--------------------------------*/
/******************************************************************************/
/** \addtogroup IfxLld_Smu_Std_datastructures
* \{ */
/** \brief FSP Configuration Structure
*/
typedef struct
{
IfxSmu_Fsp_Mode mode; /**< \brief FSP mode */
float32 faultStateTime; /**< \brief Minimal fault state time in sec */
float32 faultFreeStateFrequencyMin; /**< \brief Min fault free state frequency in Hz, only valid if mode=IfxSmu_Fsp_Mode_timeSwitching */
float32 faultFreeStateFrequencyMax; /**< \brief Max fault free state frequency in Hz, only valid if mode=IfxSmu_Fsp_Mode_timeSwitching */
boolean emergencyStopEnabled; /**< \brief If TRUE, the emergency stop port is triggered on FSP fault state */
boolean enableFaultToRunStateTransition; /**< \brief Enable Fault to Run State Transition */
} IfxSmu_configFsp;
/** \} */
/** \addtogroup IfxLld_Smu_Std_func_fsp
* \{ */
/******************************************************************************/
/*-------------------------Inline Function Prototypes-------------------------*/
/******************************************************************************/
/** \brief Turns the FSP into the fault free state.
* \param smu Pointer to SMU module registers
*/
IFX_INLINE boolean IfxSmu_releaseFsp(Ifx_SMU *smu);
/** \brief Initialize the FSP configuartion to default
* \param config FSP Configuration Structure
* \return None
*/
IFX_INLINE void IfxSmu_initFspConfig(IfxSmu_configFsp *config);
/** \brief Activates the Fault Signaling Protocol.
* \param smu Pointer to SMU module registers
*/
IFX_INLINE boolean IfxSmu_activateFsp(Ifx_SMU *smu);
/******************************************************************************/
/*-------------------------Global Function Prototypes-------------------------*/
/******************************************************************************/
/** \brief Initialize the FSP
*
* Fault state time >= tFSP_FS = tSMU_FS *(SMU_FSP.TFSP_HIGH[] & SMU_FSP.TFSP_LOW[] + 1)
* with tSMU_FS = <SMU_FSP.PRE1>. SMU_FSP.TFSP_HIGH[] / fBACK
* and SMU_FSP.PRE1 should enable tFSP_FS >= 500ms (Ref: TC27xC UM v2.2: SMU_FSP.TFSP_HIGH)
* Fault free state period (Time switching only) = tSMU_FFS = fBACK / <SMU_FSP.PRE2>
*
* Note: TSMU_FS * SMU_FSP.TFSP_LOW > 250us
* \param smu Pointer to SMU module registers
* \param config FSP Configuration Structure
*/
IFX_EXTERN boolean IfxSmu_initFsp(Ifx_SMU *smu, IfxSmu_configFsp *config);
/** \brief Return FSP frequency (Time switching only)
* \param smu Pointer to SMU module registers
*/
IFX_EXTERN float32 IfxSmu_getFspFaultFreeFrequency(Ifx_SMU *smu);
/** \brief Return the minimal fault state time
* \param smu Pointer to SMU module registers
*/
IFX_EXTERN float32 IfxSmu_getFspFaultStateTime(Ifx_SMU *smu);
/** \brief Set the alarm FSP configuration
* \param smu Pointer to SMU Module Registers
* \param alarm Alarm to be configured
* \param enabled If TRUE, the alarm event triggers the FSP, else no action
* \return None
*/
IFX_EXTERN void IfxSmu_enableAlarmFsp(Ifx_SMU *smu, IfxSmu_Alarm alarm, boolean enabled);
/** \} */
/** \addtogroup IfxLld_Smu_Std_func
* \{ */
/******************************************************************************/
/*-------------------------Inline Function Prototypes-------------------------*/
/******************************************************************************/
/** \brief Triggers the activation of the Port Emergency Stop (PES).
* \param smu Pointer to SMU module registers
*/
IFX_INLINE boolean IfxSmu_activatePes(Ifx_SMU *smu);
/** \brief Stop the recovery Timer. Argument ARG shall be set to the recovery timer instance available in the product.
* \param smu Pointer to SMU module registers
* \param timer Recovery Timer
*/
IFX_INLINE boolean IfxSmu_stopRecoveryTimer(Ifx_SMU *smu, IfxSmu_RecoveryTimer timer);
/** \brief Alarm Status Clear Enable Command.
* \param smu Pointer to SMU module registers
*/
IFX_INLINE boolean IfxSmu_enableClearAlarmStatus(Ifx_SMU *smu);
/** \brief Triggers a software based alarm. ARG specifies the alarm index according to the mapping defined in "Alarm Mapping"
* \param smu Pointer to SMU module registers
* \param alarm Alarm list
*/
IFX_INLINE boolean IfxSmu_triggerAlarm(Ifx_SMU *smu, IfxSmu_Alarm alarm);
/** \brief Forces the SSM to go to the RUN state from the START state.
* \param smu Pointer to SMU module registers
*/
IFX_INLINE boolean IfxSmu_start(Ifx_SMU *smu);
/******************************************************************************/
/*-------------------------Global Function Prototypes-------------------------*/
/******************************************************************************/
/** \brief Unlock the SMU configuration (temporary)
* Ref: TC27xC UM v2.2: 9.4.6 SMU Control Interface
* Ref: TC27xC UM v2.2: 9.5.2 SMU Configuration Registers
* \param smu Pointer to SMU module registers
* \param cmd SMU Command
* \param arg Argument to be used with the command
*/
IFX_EXTERN boolean IfxSmu_cmd(Ifx_SMU *smu, uint8 cmd, uint8 arg);
/** \brief Unlock the SMU configuration (temporary)
* Ref: TC27xC UM v2.2: 9.4.10.1 Register Write Protection
* \param smu Pointer to SMU module registers
*/
IFX_EXTERN boolean IfxSmu_unlock(Ifx_SMU *smu);
/** \brief Lock the SMU configuration (temporary)
* Ref: TC27xC UM v2.2: 9.4.10.1 Register Write Protection
* \param smu Pointer to SMU module registers
* \return None
*/
IFX_EXTERN void IfxSmu_lock(Ifx_SMU *smu);
/** \brief Lock the SMU configuration up to the next application reset
* Ref: TC27xC UM v2.2: 9.4.10.1 Register Write Protection
* \param smu Pointer to SMU module registers
* \return None
*/
IFX_EXTERN void IfxSmu_lockForever(Ifx_SMU *smu);
/** \brief Set the SMU alarm configuration
* \param smu Pointer to SMU module registers
* \param alarm Alarm to be configured
* \param config Alarm configuration
* \return None
*/
IFX_EXTERN void IfxSmu_setAlarmConfig(Ifx_SMU *smu, IfxSmu_Alarm alarm, IfxSmu_AlarmConfig config);
/** \brief Return the alarm status
* \param smu Pointer to SMU Module Registers
* \param alarm Alarm for which to return the status
* \return TRUE means the alarm is set and FALSE means the alarm is not set.
*/
IFX_EXTERN boolean IfxSmu_isAlarmSet(Ifx_SMU *smu, IfxSmu_Alarm alarm);
/** \brief Get the alarm flag
* \param smu Pointer to SMU Module Registers
* \return Return the next set alarm, if no alarm is set , return IfxSmu_Alarm_noAlarm
*/
IFX_EXTERN IfxSmu_Alarm IfxSmu_getAlarm(Ifx_SMU *smu);
/** \brief Clear the alarm flag
* \param smu Pointer to SMU Module Registers
* \param alarm Alarm for which the flag should be cleared
* \return None
*/
IFX_EXTERN void IfxSmu_clearAlarm(Ifx_SMU *smu, IfxSmu_Alarm alarm);
/** \} */
/******************************************************************************/
/*---------------------Inline Function Implementations------------------------*/
/******************************************************************************/
IFX_INLINE boolean IfxSmu_activatePes(Ifx_SMU *smu)
{
return IfxSmu_cmd(smu, IfxSmu_Cmd_activatePes, 0);
}
IFX_INLINE boolean IfxSmu_stopRecoveryTimer(Ifx_SMU *smu, IfxSmu_RecoveryTimer timer)
{
return IfxSmu_cmd(smu, IfxSmu_Cmd_stopRecoveryTimer, timer);
}
IFX_INLINE boolean IfxSmu_enableClearAlarmStatus(Ifx_SMU *smu)
{
return IfxSmu_cmd(smu, IfxSmu_Cmd_enableClearAlarmStatus, 0);
}
IFX_INLINE boolean IfxSmu_triggerAlarm(Ifx_SMU *smu, IfxSmu_Alarm alarm)
{
uint8 index = alarm & 0xFF;
IFX_ASSERT(IFX_VERBOSE_LEVEL_ERROR, (alarm >> 8) == IfxSmu_AlarmGroup_5);
return IfxSmu_cmd(smu, IfxSmu_Cmd_triggerAlarm, index);
}
IFX_INLINE boolean IfxSmu_start(Ifx_SMU *smu)
{
return IfxSmu_cmd(smu, IfxSmu_Cmd_start, 0);
}
IFX_INLINE boolean IfxSmu_releaseFsp(Ifx_SMU *smu)
{
return IfxSmu_cmd(smu, IfxSmu_Cmd_releaseFsp, 0);
}
IFX_INLINE void IfxSmu_initFspConfig(IfxSmu_configFsp *config)
{
config->emergencyStopEnabled = FALSE;
config->enableFaultToRunStateTransition = FALSE;
config->faultFreeStateFrequencyMin = 0;
config->faultFreeStateFrequencyMax = 0;
config->faultStateTime = 1e-3;
config->mode = IfxSmu_Fsp_Mode_bistable;
}
IFX_INLINE boolean IfxSmu_activateFsp(Ifx_SMU *smu)
{
return IfxSmu_cmd(smu, IfxSmu_Cmd_activateFsp, 0);
}
#endif /* IFXSMU_H */
|
bd63a782b04a5d56ab549488541c9810a2ef8e54
|
122a78f0fc1334df4cca16d5e2c4b5508223d042
|
/oslw_src/OSLW_tool_control.c
|
705629dbf43a7cfc57ce4c83d45eecdb71c0260d
|
[
"Apache-2.0"
] |
permissive
|
AFEICHINA/OSlw_Code
|
14877d8cf6a7b2b35a4a1156842d49351dfe9b78
|
e12c1fb1b06d11ca8dafe7e1c876dc107648d275
|
refs/heads/master
| 2020-04-27T15:48:56.228133 | 2019-02-22T13:59:04 | 2019-02-22T13:59:04 | 174,461,272 | 1 | 0 | null | 2019-03-08T03:17:31 | 2019-03-08T03:17:31 | null |
GB18030
|
C
| false | false | 5,653 |
c
|
OSLW_tool_control.c
|
/*(Ver.=0.94)
* OSLW_tool.c
*
* Created on: 2017-7-25
* Author: slw
*/
#include "OSLW_include.h"
#if !(OSLW_SIMPLE_LEVEL >= 3)
ParaType OSlwToolPidCtrlCal(OSlwToolPidCtrlSTU *p)
{
p->K_e=_ParaSub(p->I_ref,p->I_fdb);
p->K_up = _ParaMpy(p->K_e,p->Para_Kp.data.RealPara.Parameter); //计算比例的输出
p->K_upresat=_ParaAdd(_ParaAdd(p->K_up,p->K_ui),p->K_ud); //限幅之前的输出
if( p->K_upresat > p->P_max ) //限幅判断,同时将最终的控制量输出
p->O_uout = p->P_max;
else if( p->K_upresat < p->P_min )
p->O_uout = p->P_min;
else
p->O_uout = p->K_upresat;
p->K_ui+=_ParaAdd(_ParaMpy(p->Para_Ki.data.RealPara.Parameter,p->K_e), _ParaMpy(p->Para_Kc.data.RealPara.Parameter,_ParaSub(p->O_uout,p->K_upresat))); //计算积分项的输出
p->K_ud = _ParaMpy(p->Para_Kd.data.RealPara.Parameter,_ParaSub(p->K_e,p->K_eup)); //计算微分相输出
p->K_eup= p->K_e;
return p->O_uout;
}
//pSP->mul=_IQmpy(_IQ(2*PI*SOGI_BASE_FREQ),_IQmpy(_IQ(1.4142),pSP->InputData-pSP->alast)-pSP->blast);
//pSP->In1=pSP->In1last+_IQ14toIQ(_IQ14div(_IQtoIQ14(pSP->mul+pSP->mullast),_IQ14(2*SOGI_FREQ)));
//pSP->a=pSP->In1;
//pSP->In2=pSP->In2+_IQ21mpy(_IQtoIQ21(pSP->In1+pSP->In1last),_IQ21(1/(2*SOGI_FREQ)));
//pSP->b=_IQ21toIQ(_IQ21mpy(pSP->In2,_IQ21(2*PI*SOGI_BASE_FREQ)));
ParaType OSlwToolSogiPllCal(OSlwToolSogiPllSTU *pSP)
{
ParaType buf;
#if OSLW_GLOBAL_MATH_TYPE==OSLW_GLOBAL_MATH_Q
// float temp;
pSP->K_mul=_ParaMpy(_ParaMpy(_ParaFrom(2*PI),pSP->P_BaseFreq),_ParaMpy(_ParaFrom(1.414),pSP->I_input-pSP->K_alast)-pSP->K_blast);
pSP->K_In1=pSP->K_In1last+_IQ14toIQ(_IQ14div(_IQtoIQ14(pSP->K_mul+pSP->K_mullast),_IQ14mpy(_IQ14(2),_IQ14(pSP->P_IrpFreq))));
pSP->K_a=pSP->K_In1;
pSP->K_In2=pSP->K_In2+(_IQ21mpy(_IQtoIQ21(pSP->K_In1+pSP->K_In1last),_IQ21(1.0f/(2*pSP->P_IrpFreq))));
//pSP->K_b=_IQ21toIQ(_IQ21mpy((_IQ21mpy(pSP->K_In2,_IQ21(2*PI))),_IQtoIQ21(pSP->P_BaseFreq)));
// temp=_IQ21toF(pSP->K_In2)+_IQtoF(pSP->K_In1+pSP->K_In1last)/(2.0f*_IQtoF(pSP->P_IrpFreq));
// pSP->K_In2=_IQ21(temp);
pSP->K_b=_IQ21toIQ(_IQ21mpy((_IQ21mpy(pSP->K_In2,_IQ21(2*PI))),_IQtoIQ21(pSP->P_BaseFreq)));
//pSP->K_b=_IQ(temp*2*PI*_IQtoF((pSP->P_BaseFreq)));
#else
pSP->K_mul=_ParaMpy(_ParaFrom(2*PI)*pSP->P_BaseFreq,_ParaMpy(_ParaFrom(1.414),pSP->I_input-pSP->K_alast)-pSP->K_blast);
pSP->K_In1=pSP->K_In1last+_ParaDiv((pSP->K_mul+pSP->K_mullast),_ParaFrom(2*pSP->P_IrpFreq));
pSP->K_a=pSP->K_In1;
pSP->K_In2=pSP->K_In2+_ParaMpy((pSP->K_In1+pSP->K_In1last),_ParaFrom(1/(2*pSP->P_IrpFreq)));
pSP->K_b=(_ParaMpy(pSP->K_In2,_ParaFrom(_ParaFrom(2*PI)*pSP->P_BaseFreq)));
#endif
pSP->PllPid.I_fdb=_ParaMpy(_ParaSin(pSP->O_BaseRad),pSP->K_a)-_ParaMpy(_ParaCos(pSP->O_BaseRad),pSP->K_b);
OSlwToolPidCtrlCal(&(pSP->PllPid));
buf=pSP->O_BaseRad=pSP->O_BaseRad+pSP->PllPid.O_uout;
if(buf>_ParaFrom(PI))buf=_ParaSub(buf,_ParaFrom(2*PI));
else if(buf<_ParaFrom(-PI)) buf=_ParaAdd(buf,_ParaFrom(2*PI));
else;
pSP->O_BaseRad=buf;
buf+=pSP->Para_PLLOutCorrect.data.RealPara.Parameter;
if(buf>_ParaFrom(PI))buf=_ParaSub(buf,_ParaFrom(2*PI));
else if(buf<_ParaFrom(-PI)) buf=_ParaAdd(buf,_ParaFrom(2*PI));
else;
pSP->O_RealRad=buf;
pSP->K_alast=pSP->K_a;
pSP->K_blast=pSP->K_b;
pSP->K_mullast=pSP->K_mul;
pSP->K_In1last=pSP->K_In1;
return pSP->O_RealRad;
}
//matlab SlwPRctrl_getPara.m
//function [redata] = SlwPRctrl_getPara(kr,wc,f0,fs,opt,STUname)
//%SLWPRCTRL_GETPARA
//%kr:100(recommend out range is -100 ~ +100)
//%wc:4.4(recommend out range is -100 ~ +100)
//%f0:50/60
//%fs:inerrupt freq
//%opt:code/data
//%STUname:pr ctrl struct's name default is p->
//ts=1/fs;
//wc=2*wc;
//num=[wc,0]*kr*10;
//den=[1,wc,(2*pi*f0)^2];
//[a,b]=c2dm(num,den,ts);
//if nargin==6
// restr1=sprintf('//kr is %f and wc is %f\n',kr,wc);
// redata=sprintf('%sPara_num[0].Parameter=_ParaFrom(%f);//*(Ver.=0.94)-1\n%sPara_num[1].Parameter=_ParaFrom(%f);//*(Ver.=0.94)-1\n%sPara_den[0].Parameter=_ParaFrom(%f);\n%sPara_den[1].Parameter=_ParaFrom(%f);\n',STUname,-b(2),STUname,-b(3),STUname,a(2),STUname,a(3));
// redata=[restr1,redata];
//elseif nargin==5 && strcmp(opt,'code')
// restr1=sprintf('//kr is %f and wr is %f\n',kr,wr);
// STUname='p->';
// redata=sprintf('%sPara_num[0].Parameter=_ParaFrom(%f);//*(Ver.=0.94)-1\n%sPara_num[1].Parameter=_ParaFrom(%f);//*(Ver.=0.94)-1\n%sPara_den[0].Parameter=_ParaFrom(%f);\n%sPara_den[1].Parameter=_ParaFrom(%f);\n',STUname,-b(2),STUname,-b(3),STUname,a(2),STUname,a(3));
// redata=[restr1,redata];
//elseif nargin==5 && strcmp(opt,'data')
// redata=[a;b];
//else
// redata=tf(a,b,ts);
//end
//end
ParaType OSlwToolPrCtrlCal(OSlwToolPrCtrlSTU *p)
{
ParaType temp_out;
p->K_e=_ParaSub(p->I_Ref,p->I_Fdb);
p->K_Rout=_ParaAdd(
_ParaAdd(
_ParaAdd(
_ParaMpy(p->Para_num[0].data.RealPara.Parameter,p->K_yfia1),_ParaMpy(p->Para_num[1].data.RealPara.Parameter,p->K_yfia2))
,_ParaMpy(p->Para_den[0].data.RealPara.Parameter,p->K_xfia1))
,_ParaMpy(p->Para_den[1].data.RealPara.Parameter,p->K_xfia2));
p->K_yfia2=p->K_yfia1;
p->K_yfia1=p->K_Rout;
p->K_xfia2=p->K_xfia1;
p->K_xfia1=p->K_e;
temp_out=_ParaAdd(_ParaMpy(p->Para_Kp.data.RealPara.Parameter,p->K_e),p->K_Rout);
if(temp_out>p->P_max) temp_out=p->P_max;
else if (temp_out<p->P_min)temp_out=p->P_min;
else;
p->O_Uout=temp_out;
return p->O_Uout;
}
#endif // !(OSLW_SIMPLE_LEVEL >= 3)
|
2c4eb8ea34c003114b579f4b712db899bfbf2baf
|
976f5e0b583c3f3a87a142187b9a2b2a5ae9cf6f
|
/source/freebsd/sys/dev/ichiic/extr_ig4_iic.c_wait_intr.c
|
6b364940534fd723793a4835c30f9f886920e9f9
|
[] |
no_license
|
isabella232/AnghaBench
|
7ba90823cf8c0dd25a803d1688500eec91d1cf4e
|
9a5f60cdc907a0475090eef45e5be43392c25132
|
refs/heads/master
| 2023-04-20T09:05:33.024569 | 2021-05-07T18:36:26 | 2021-05-07T18:36:26 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 2,474 |
c
|
extr_ig4_iic.c_wait_intr.c
|
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward declarations */
typedef struct TYPE_8__ TYPE_1__ ;
/* Type definitions */
typedef int uint32_t ;
typedef scalar_t__ u_int ;
struct TYPE_8__ {int /*<<< orphan*/ io_lock; } ;
typedef TYPE_1__ ig4iic_softc_t ;
/* Variables and functions */
int /*<<< orphan*/ DELAY (int) ;
int /*<<< orphan*/ DO_POLL (TYPE_1__*) ;
int IG4_FIFOLVL_MASK ;
int IG4_INTR_ERR_MASK ;
int IG4_INTR_STOP_DET ;
int IG4_INTR_TX_EMPTY ;
int /*<<< orphan*/ IG4_REG_RAW_INTR_STAT ;
int /*<<< orphan*/ IG4_REG_TXFLR ;
int IIC_ETIMEOUT ;
int hz ;
int /*<<< orphan*/ ig4iic_set_intr_mask (TYPE_1__*,int) ;
int intrstat2iic (TYPE_1__*,int) ;
int /*<<< orphan*/ msleep_spin (TYPE_1__*,int /*<<< orphan*/ *,char*,int) ;
int /*<<< orphan*/ mtx_lock_spin (int /*<<< orphan*/ *) ;
int /*<<< orphan*/ mtx_unlock_spin (int /*<<< orphan*/ *) ;
int reg_read (TYPE_1__*,int /*<<< orphan*/ ) ;
__attribute__((used)) static int
wait_intr(ig4iic_softc_t *sc, uint32_t intr)
{
uint32_t v;
int error;
int txlvl = -1;
u_int count_us = 0;
u_int limit_us = 25000; /* 25ms */
for (;;) {
/*
* Check requested status
*/
v = reg_read(sc, IG4_REG_RAW_INTR_STAT);
error = intrstat2iic(sc, v & IG4_INTR_ERR_MASK);
if (error || (v & intr))
break;
/*
* When waiting for the transmit FIFO to become empty,
* reset the timeout if we see a change in the transmit
* FIFO level as progress is being made.
*/
if (intr & (IG4_INTR_TX_EMPTY | IG4_INTR_STOP_DET)) {
v = reg_read(sc, IG4_REG_TXFLR) & IG4_FIFOLVL_MASK;
if (txlvl != v) {
txlvl = v;
count_us = 0;
}
}
/*
* Stop if we've run out of time.
*/
if (count_us >= limit_us) {
error = IIC_ETIMEOUT;
break;
}
/*
* When polling is not requested let the interrupt do its work.
*/
if (!DO_POLL(sc)) {
mtx_lock_spin(&sc->io_lock);
ig4iic_set_intr_mask(sc, intr | IG4_INTR_ERR_MASK);
msleep_spin(sc, &sc->io_lock, "i2cwait",
(hz + 99) / 100); /* sleep up to 10ms */
ig4iic_set_intr_mask(sc, 0);
mtx_unlock_spin(&sc->io_lock);
count_us += 10000;
} else {
DELAY(25);
count_us += 25;
}
}
return (error);
}
|
f25c521eb61eca713e64937e2690bf864943c421
|
e1dc78220ddf913f33751277eb593c7823e2c430
|
/client/src/android/jni/log.h
|
d8b7dfece72509a315249bd847e80b7a9ff01745
|
[] |
no_license
|
subbu6502/CIVMAppStreamClient
|
85328a66c0ab32dcfc217a4657a7a16b0c007b9b
|
e70cd8047312b692419e11efc7a24377f0bb8cb5
|
refs/heads/master
| 2020-05-29T12:22:57.706526 | 2016-07-15T20:40:51 | 2016-07-15T20:50:50 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,830 |
h
|
log.h
|
/*
* Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Amazon Software License (the "License"). You may not use
* this file except in compliance with the License. A copy of the License is
* located at
*
* http://aws.amazon.com/asl/
*
* This Software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
/**
* @file log.h
* Logging utility functions.
*/
#ifndef _included_log_h
#define _included_log_h
#ifndef DOXYGEN
#include <android/log.h>
#endif
#ifndef LOG_TAG
/**
* In each file where you include log.h, you should #undef LOG_TAG and
* redefine it to specify the file you're in. That way the log tag will
* match the file you're using.
*/
#define LOG_TAG "StxExampleClient"
#endif
/**
* "Verbose" level log. Takes a printf-style string plus arbitrary
* printf-style parameters.
*/
#define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE,LOG_TAG,__VA_ARGS__)
/**
* "Info" level log. Takes a printf-style string plus arbitrary
* printf-style parameters.
*/
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
/**
* "Error" level log. Takes a printf-style string plus
* arbitrary printf-style parameters.
*/
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)
/**
* "Warning" level log. Takes a printf-style string plus
* arbitrary printf-style parameters.
*/
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN,LOG_TAG,__VA_ARGS__)
/**
* "Debug" level log. Takes a printf-style string plus
* arbitrary printf-style parameters.
*/
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
#endif
|
2a699ea79a5dc893848d7c144e013a723d045919
|
5b7d0f4b79a411e2fba1ea24c9cf1d4af20f813d
|
/iOS7.0.3/System/Library/PrivateFrameworks/ManagedConfiguration.framework/Support/profiled/profiled-Structs.h
|
fc3906878a5c94ff4fc72ed9bb47f317a50987e5
|
[] |
no_license
|
ichitaso/iOS-iphoneheaders
|
07ebebac9afb043f10d921c15f24c44ce664b800
|
e0e0b2f57eeb94a0d07036e6dc14472cd1972843
|
refs/heads/master
| 2023-06-08T08:07:00.244639 | 2023-05-28T11:03:07 | 2023-05-28T11:03:07 | 21,318,634 | 81 | 57 | null | 2018-05-14T19:47:30 | 2014-06-29T07:24:01 | null |
UTF-8
|
C
| false | false | 775 |
h
|
profiled-Structs.h
|
/*
* This header is generated by classdump-dyld 0.1
* on Thursday, November 28, 2013 at 4:07:20 AM Eastern European Standard Time
* Operating System: Version 7.0.3 (Build 11B511)
* Image Source: /System/Library/PrivateFrameworks/ManagedConfiguration.framework/Support/profiled
* classdump-dyld is free of use, Copyright © 2013 by Elias Limneos.
*/
typedef struct {
unsigned field1[8];
} SCD_Struct_MC0;
typedef struct __SecIdentity* SecIdentityRef;
typedef struct __SecCertificate* SecCertificateRef;
typedef struct __WiFiManagerClient* WiFiManagerClientRef;
typedef struct _CFURLCredential* CFURLCredentialRef;
typedef struct __WiFiNetwork* WiFiNetworkRef;
typedef struct __SCPreferences* SCPreferencesRef;
typedef struct __SCNetworkService* SCNetworkServiceRef;
|
4343baf1d3238f765e0cd3cd3be8a91b6c474b99
|
1a9c7560ffbef1354f47c28aedbe7fb293d355bd
|
/srcs/ft_modulo_utils.c
|
dcbaaf4b0eb160acd9f8503285bde1febffe1052
|
[] |
no_license
|
sebastien-grdn/ft_printf
|
8d328380268f643d252cb958ef8882392f4ab979
|
f414fb4fef25d0ec636e0c34a944770d9bc418e7
|
refs/heads/master
| 2023-05-25T03:29:22.981867 | 2021-03-18T10:10:04 | 2021-03-18T10:10:04 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,343 |
c
|
ft_modulo_utils.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_modulo_utils.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sg9031 <sg9031@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/03/15 11:19:38 by sg9031 #+# #+# */
/* Updated: 2021/03/15 16:09:15 by sg9031 ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int print_modulo(t_syntax *syntax)
{
int i;
char padding;
padding = ' ';
if (syntax->zeros)
padding = '0';
i = 1;
if (syntax->width < 0)
{
syntax->width = -syntax->width;
syntax->justify_left = true;
}
while (syntax->width > i++ && !syntax->justify_left)
write(1, &padding, 1);
write(1, "%", 1);
while (syntax->width >= i++)
write(1, " ", 1);
if (syntax->width)
return (syntax->width);
return (1);
}
|
e26a2602489234b6665819f79187ebfa109afca9
|
d72db3dd635fc3ab451904d9b036e710e3d78065
|
/almacenes_setup.c
|
1c4ba3fe00ba3cbc9e5a3f497b681e29ad2c74ba
|
[] |
no_license
|
dcer1989/ProductorConsumidorApp
|
ee223531d73a193f309b17a11ff6d241db6488cf
|
8843c0014c1c3b30dc13c232128214635d53b6e5
|
refs/heads/master
| 2023-01-04T00:12:42.750293 | 2020-10-20T18:43:49 | 2020-10-20T18:43:49 | 305,795,715 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 3,996 |
c
|
almacenes_setup.c
|
void Inicia_Almacen_Prod (Buffer_Circ *ptr_buff, Pieza *ptr_pieza, int size)
{
ptr_buff->lleno = (pthread_cond_t) PTHREAD_COND_INITIALIZER;
ptr_buff->vacio = (pthread_cond_t) PTHREAD_COND_INITIALIZER;
pthread_mutex_init(&ptr_buff->m_state, NULL);
ptr_buff->Num_Piezas = ptr_pieza;
ptr_buff->buff_size = size;
ptr_buff->buff_contador = 0;
ptr_buff->bufIN = 0;
ptr_buff->bufOUT = 0;
for (int i =0; i < ptr_buff->buff_size; i++)
{
ptr_buff->Num_Piezas[i].Id_Pieza=0;
ptr_buff->Num_Piezas[i].Almacen_Actual=0;
ptr_buff->Num_Piezas[i].Time_Tag=0;
ptr_buff->Num_Piezas[i].Almacen_Origen=0;
ptr_buff->Num_Piezas[i].Validez=0;
}
}
void set_item (time_t *ttime, Pieza *ptr_pieza, int Alm_Act)
{
ptr_pieza->Id_Pieza++;
ptr_pieza->Production_date = ctime(ttime);
ptr_pieza->Almacen_Origen = Alm_Act;
ptr_pieza->Validez = 0;
}
void put_item (Pieza *ptr_pieza, Buffer_Circ *ptr_buff, int Alm_Act)
{
pthread_mutex_lock(&ptr_buff->m_state);
while (ptr_buff->buff_contador == ptr_buff->buff_size)
{
pthread_cond_wait(&ptr_buff->lleno, &ptr_buff->m_state);
}
ptr_buff->Num_Piezas[ptr_buff->bufIN].Id_Pieza = ptr_pieza->Id_Pieza;
ptr_buff->Num_Piezas[ptr_buff->bufIN].Production_date = ptr_pieza->Production_date;
ptr_buff->Num_Piezas[ptr_buff->bufIN].Time_Tag = getCurrentMicroseconds();
ptr_buff->Num_Piezas[ptr_buff->bufIN].Almacen_Origen = ptr_pieza->Almacen_Origen;
ptr_buff->Num_Piezas[ptr_buff->bufIN].Validez = ptr_pieza->Validez;
ptr_buff->Num_Piezas[ptr_buff->bufIN].Almacen_Actual = Alm_Act;
ptr_buff->buff_contador++;
ptr_buff->bufIN = (ptr_buff->bufIN + 1)%(ptr_buff->buff_size);
pthread_cond_broadcast(&ptr_buff->vacio);
pthread_mutex_unlock(&ptr_buff->m_state);
}
void get_item (Pieza *ptr_pieza, Buffer_Circ *ptr_buff)
{
pthread_mutex_lock(&ptr_buff->m_state);
while (ptr_buff->buff_contador == 0)
{
pthread_cond_wait(&ptr_buff->vacio,&ptr_buff->m_state);
}
ptr_pieza->Id_Pieza = ptr_buff->Num_Piezas[ptr_buff->bufOUT].Id_Pieza;
ptr_pieza->Production_date = ptr_buff->Num_Piezas[ptr_buff->bufOUT].Production_date;
ptr_pieza->Time_Tag = ptr_buff->Num_Piezas[ptr_buff->bufOUT].Time_Tag;
ptr_pieza->Almacen_Origen = ptr_buff->Num_Piezas[ptr_buff->bufOUT].Almacen_Origen;
ptr_pieza->Almacen_Actual = ptr_buff->Num_Piezas[ptr_buff->bufOUT].Almacen_Actual;
ptr_pieza->Validez = ptr_buff->Num_Piezas[ptr_buff->bufOUT].Validez;
ptr_buff->buff_contador--;
ptr_buff->bufOUT = (ptr_buff->bufOUT + 1)%(ptr_buff->buff_size);
pthread_cond_broadcast(&ptr_buff->lleno);
pthread_mutex_unlock(&ptr_buff->m_state);
}
void Contenido_Almacen (Buffer_Circ *ptr_buff)
{
int i = ptr_buff->bufIN;
int j = ptr_buff->bufOUT;
int k = ptr_buff->buff_contador;
int s = ptr_buff->buff_size;
if (k == 0)
{
printf ("El almacén está vacío\n");
}
else if (k == s)
{
printf ("\nEl almacén está lleno\n");
}
else
{
printf ("Total de piezas: %d\n", ptr_buff->buff_contador);
printf ("ID_Pieza Almacén de origen Validez de la pieza\n");
while (j != i)
{
printf ("%d%11d", ptr_buff->Num_Piezas[j].Id_Pieza, ptr_buff->Num_Piezas[j].Almacen_Origen );
if (ptr_buff->Num_Piezas[j].Validez == 0)
{
printf (" válida\n");
}
else if (ptr_buff->Num_Piezas[j].Validez == 1)
{
printf (" no válida\n");
}
j = (j + 1)%(s);
}
}
}
long getCurrentMicroseconds()
{
struct timespec currentTime;
clock_gettime(CLOCK_MONOTONIC, ¤tTime);
return (currentTime.tv_sec)*1000000 + (currentTime.tv_nsec) / 1000;
}
|
4a9ea3741e60d3aeb248a90c6cd092bdbcb4939c
|
b367fe5f0c2c50846b002b59472c50453e1629bc
|
/xbox_leak_may_2020/xbox trunk/xbox/private/windows/xmv/xmvtool/xmvtool.h
|
7e26705fee026058c5122ebbaee814e37f70124c
|
[] |
no_license
|
sgzwiz/xbox_leak_may_2020
|
11b441502a659c8da8a1aa199f89f6236dd59325
|
fd00b4b3b2abb1ea6ef9ac64b755419741a3af00
|
refs/heads/master
| 2022-12-23T16:14:54.706755 | 2020-09-27T18:24:48 | 2020-09-27T18:24:48 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 2,900 |
h
|
xmvtool.h
|
/*============================================================================
*
* Copyright (C) Microsoft Corporation. All Rights Reserved.
*
* File: xmvtool.h
* Content: XMV conversion utility
*
* This utility is currently only used for testing as we're not exactly
* sure what conversions we want to do yet.
*
****************************************************************************/
// 256 streams per input file should be more than enough.
#define MAX_STREAMS 256
/*
* Structures
*/
//
// Describes the streams in a file.
//
#define STREAM_EMPTY 0
#define STREAM_VIDEO 1
#define STREAM_AUDIO 2
typedef struct _VideoStream
{
DWORD StreamType;
DWORD CompressionID;
DWORD Width;
DWORD Height;
DWORD FramesPerSecond;
DWORD Slices;
BOOLEAN MixedPelMotionCompensationEnable;
BOOLEAN LoopFilterEnabled;
BOOLEAN VariableSizedTransformEnabled;
BOOLEAN XIntra8IPictureCodingEnabled;
BOOLEAN HybridMotionVectorEnabled;
BOOLEAN DCTTableSwitchingEnabled;
}
VideoStream;
typedef struct _AudioStream
{
DWORD StreamType;
DWORD WaveFormat;
DWORD ChannelCount;
DWORD SamplesPerSecond;
DWORD BitsPerSample;
}
AudioStream;
typedef union _FileContents
{
DWORD StreamType;
VideoStream VideoStream;
AudioStream AudioStream;
}
FileContents;
/*
* The following function prototypes are used to manage a file.
*/
typedef BOOL (*CheckFormat)(MediaFile *pMediaFile);
typedef void *(*OpenMedia)(MediaFile *pMediaFile, FileContents *ContentsArray);
typedef BOOL (*GetNextVideoFrame)(void *pFile, DWORD StreamNumber, BYTE **ppVideoBuffer, BYTE *pVideoBufferMax);
typedef void (*GetNextAudioFrame)(void *pFile, DWORD StreamNumber, DWORD FPS, BYTE **ppAudioBuffer, BYTE *pAudioBufferMax);
typedef void (*CloseMedia)(void *pFile);
/*
* Panic method, call for any abnormal exit from the tool. This method
* never returns.
*/
void Done();
/*
* ASF parser methods.
*/
BOOL AsfCheckFormat(MediaFile *pMediaFile);
void *AsfOpenMedia(MediaFile *pMediaFile, FileContents *ContentsArray);
BOOL AsfGetNextVideoFrame(void *pFile, DWORD StreamNumber, BYTE **ppVideoBuffer, BYTE *pVideoBufferMax);
void AsfGetNextAudioFrame(void *pFile, DWORD StreamNumber, DWORD FPS, BYTE **ppAudioBuffer, BYTE *pAudioBufferMax);
void AsfCloseMedia(void *pFile);
/*
* XMV parser methods.
*/
BOOL XmvCheckFormat(MediaFile *pMediaFile);
void *XmvOpenMedia(MediaFile *pMediaFile, FileContents *ContentsArray);
BOOL XmvGetNextVideoFrame(void *pFile, DWORD StreamNumber, BYTE **ppVideoBuffer, BYTE *pVideoBufferMax);
void XmvGetNextAudioFrame(void *pFile, DWORD StreamNumber, DWORD FPS, BYTE **ppAudioBuffer, BYTE *pAudioBufferMax);
void XmvCloseMedia(void *pFile);
|
b840c5ca87e9bdd7db3f9654bc0fd03c88ae6e67
|
47e139376f88beaf0d62f5c1d8b48de621bca02f
|
/addons/Socket/source/IoEvRequest.h
|
cf7d520a1cd4eb318633cd7dce2402fd27b16c94
|
[] |
no_license
|
dru/io
|
55f4d2ac758768970874e6e16f4f5b10b90c019c
|
f43b728bdf2af54c45a48f5c5eaa535340cd2a8c
|
refs/heads/master
| 2020-12-29T02:54:19.461438 | 2009-02-06T05:46:25 | 2009-02-06T05:46:25 | 105,780 | 1 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,053 |
h
|
IoEvRequest.h
|
//metadoc Event copyright Steve Dekorte 2002
//metadoc Event license BSD revised
/*metadoc EvRequest description
e := EvRequest clone
EventManager addEvent(e, fd, type, timeout)
Event handleReadEvent := method()
Event handleWriteEvent := method()
Event handleTimeoutEvent := method()
*/
#ifndef IOEVREQUEST_DEFINED
#define IOEVREQUEST_DEFINED 1
#include "IoObject.h"
#include "Socket.h"
#include <event.h>
#include <evhttp.h>
#define ISEVENT(self) IoObject_hasCloneFunc_(self, (IoTagCloneFunc *)IoEvRequest_rawClone)
typedef IoObject IoEvRequest;
IoEvRequest *IoMessage_locals_eventArgAt_(IoMessage *self, IoObject *locals, int n);
IoEvRequest *IoEvRequest_proto(void *state);
IoEvRequest *IoEvRequest_new(void *state);
IoEvRequest *IoEvRequest_rawClone(IoEvRequest *self);
void IoEvRequest_free(IoEvRequest *self);
struct event *IoEvRequest_rawEvent(IoEvRequest *self);
IoObject *IoEvRequest_send(IoEvRequest *self, IoObject *locals, IoMessage *m);
IoObject *IoEvRequest_cancel(IoEvRequest *self, IoObject *locals, IoMessage *m);
#endif
|
31bdba3f1df4d00e147b4ff37a88992ad09faa23
|
8c8c7910f80e358f632e0826240752fcd053359a
|
/igrep.c
|
8ad9353bcb25faa778370bb3d391725079b9dc5b
|
[] |
no_license
|
samueljryan/igrep
|
4d7f0fdd5c39729ef16dbb39949cd1a8a3df6b38
|
71a28a99ce512ad7900cd2f5b8dfb095aa5c6293
|
refs/heads/main
| 2023-08-02T15:07:14.296172 | 2021-09-26T17:54:31 | 2021-09-26T17:54:31 | 409,722,080 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 3,611 |
c
|
igrep.c
|
#include <ctype.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// Ryan Samuel
// 2020 Fall semester
// Similar to grep, this program can search a basic textfile for a word and
// print each line containing that word. This progam also supports the -i, -n, -h flags
#define MAX_LINE_LENGTH 100
void sort(int numArg, char **valueArg);
char *lowCase(char *substring);
void printLine(char *substring);
bool TO_IGNORE_CASE = false;
bool TO_NUMBER_LINES = false;
// If there are less than five arguments sends argc and argv to sort function
int main(int argc, char **argv)
{
if (argc < 5)
{
sort(argc, argv);
}
}
// sorts arguments based on their flags
void sort(int numArg, char **valueArg)
{
char *keyword;
for (int i = 0; i < numArg; i++) // for loop that loops around the number of arguments
{
char *a = valueArg[i]; // pointer a equals index of array of chars
if (strncmp(a, "-", 1) == 0) // checks to see if '-' is in the 1st index of array, if so, checks the for additional flags
{
if (strncmp(a, "-i", 2) == 0) // checks for -i flag and keywords equals valueArg
{
TO_IGNORE_CASE = true;
keyword = valueArg[i];
}
else if (strncmp(a, "-n", 2) == 0) // checks for -n flag
{
TO_NUMBER_LINES = true;
}
else if (strncmp(a, "-h", 2) == 0) // checks for -h flag
{
printf("Usage: grep [OPTION]... PATTERNS [FILE]...\n");
printf("-i, = ignore case distinctions\n");
printf("-n, = print line number with output lines\n");
printf("-h, = display this help text and exit\n");
exit(0);
}
else // if flag not recognized,
{
printf("ERROR command not recognized\n");
exit(1);
}
}
else // if there is no flag
{
keyword = valueArg[i]; //
}
}
printLine(keyword);
}
// puts word that is being searched in lower case
char *lowCase(char *substring)
{
int i = 0;
while (i < strlen(substring))
{
substring[i] = tolower(substring[i]);
i = i + 1;
}
return (substring);
}
// prints the lines of the words that are being searched
void printLine(char *substring)
{
char line[MAX_LINE_LENGTH];
if ((TO_IGNORE_CASE) && (TO_NUMBER_LINES)) // if both -i ad -n flag
{
char *result = (char *)malloc(4 * MAX_LINE_LENGTH);
char *a;
char *b;
int lineNum = 0;
while (fgets(line, MAX_LINE_LENGTH, stdin)) // while loop til fgets(pointer to char array, num of char to be read, pointer to file object)
{
a = lowCase(line);
b = lowCase(substring);
strcpy(result, a);
lineNum++;
if (strstr(result, b) != NULL) // finds first occurence of the substring
{
printf("%d:%s", lineNum, result);
}
}
}
else if (TO_IGNORE_CASE) // if just -i flag
{
char *result = (char *)malloc(4 * MAX_LINE_LENGTH);
char *a;
char *b;
while (fgets(line, MAX_LINE_LENGTH, stdin))
{
a = lowCase(line);
b = lowCase(substring);
strcpy(result, a);
if (strstr(result, b) != NULL)
{
printf("%s", result);
}
}
}
else if (TO_NUMBER_LINES) // if just -n flag
{
int lineNum = 0;
while (fgets(line, MAX_LINE_LENGTH, stdin))
{
lineNum++;
if (strstr(line, substring) != NULL)
{
printf("%d:%s", lineNum, line);
}
}
}
else // if there is no flags
{
while (fgets(line, MAX_LINE_LENGTH, stdin))
{
if (strstr(line, substring) != NULL)
{
printf("%s", line);
}
}
}
}
|
401030445819e2265d349ebda36d21daa0149ce8
|
e91396537ef2643892cf0b156a76dbb1bb477624
|
/Trunk/SW/SamD21J18A-MNT/SamD21J18A-MNT/nvmctrl.h
|
e5a4a1d18b6b34c56e2d79a6efb77daf5b6cbf6b
|
[] |
no_license
|
weiwei4/SamD21YotaBootloader
|
d630ff655f01de1362a6c0026607a131da2330cb
|
0a631918c8694f506f380bbda1d426762412b821
|
refs/heads/master
| 2021-12-11T13:47:21.877388 | 2016-11-15T03:30:36 | 2016-11-15T03:30:36 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 560 |
h
|
nvmctrl.h
|
/*
*nvmctrl.h
*Project: miniSam USART bootloader.
*Author: Weistek Engineering (jeremy G.)
*website: www.weistekengineering.com
*date: 07-11-2016
*Summery: Contains all of our functions for manipulating nvm.
*/
#ifndef NVMCTRL_H_
#define NVMCTRL_H_
/*function allows us to erase nvm by rows and pages.*/
void nvm_erase_row(const uint32_t row_address, uint32_t PAGE_SIZE);
/*allows us to write to nvm using page write.*/
void nvm_write_buffer(uint32_t destination_address, const uint8_t *buffer, uint16_t length);
#endif /* NVMCTRL_H_ */
|
be299155adcf087f9399a4add8349085df2eb621
|
a8b1803b349daf638ab6fd2c1b9036fd61bad0cc
|
/leetcode/length-of-last-word.c
|
26a6dc81557a23207381d485fe86960c31ea7c21
|
[] |
no_license
|
WanghongLin/MMSample
|
9591f474578598debbd7f77d770971ef4a10b17b
|
91eb1ea8bb6e49157f396356b9c483295534ef7b
|
refs/heads/master
| 2021-05-01T10:15:44.720764 | 2020-01-22T09:36:00 | 2020-01-22T09:36:00 | 121,106,409 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,276 |
c
|
length-of-last-word.c
|
//
// Copyright (c) 2018 mutter
//
// This file is part of MMSample.
//
// MMSample is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// MMSample 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. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with MMSample. If not, see <http://www.gnu.org/licenses/>.
//
//
// Created by mutter on 4/12/18.
//
#include <stdio.h>
#include <stdlib.h>
static int length_of_last_word(const char* s)
{
int length = 0;
for (int i = 0; *(s+i) != '\0'; i++) {
if (*(s+i) == ' ') {
length = 0;
} else {
length++;
}
}
return length;
}
int main(int argc, char *argv[])
{
if (argc != 2) {
fprintf(stderr, "Usage: %s <input-string>\n", argv[0]);
exit(0);
}
printf("length of last word %d\n", length_of_last_word(argv[1]));
return 0;
}
|
101049ddb91ddfeb9b0a606cf2f4e3157dd801d8
|
3531356d2d3c92018483899c470bba03ab686b55
|
/examples/blink/src-gen/c-code/generated/io.c
|
d4e73ed169286066fd79d6ad0a5b0f190fe266af
|
[] |
no_license
|
a-bastrykina/reflex-translator-diploma
|
9370160ba8b92d97f9ec29de9d99473690f7c767
|
4382bf2ff6c928c701b9388e9006afa11b6352b9
|
refs/heads/master
| 2020-12-02T02:10:16.707020 | 2020-06-01T17:04:12 | 2020-06-01T17:04:12 | 241,918,562 | 2 | 3 | null | null | null | null |
UTF-8
|
C
| false | false | 263 |
c
|
io.c
|
#include "io.h"
#include "xvar.h"
#include "../lib/r_cnst.h"
#include "../lib/platform.h"
void Input(void) {
}
void Output(void) {
if (_p_Blink_v_light_control) {
_o_out |= MASK1_S8;
} else {
_o_out &= ~MASK1_S8;
}
Write_Output8(0x00, 0x01, _o_out);
}
|
8c7a1f595a3dc610e57e5ba35eeea9d30689c051
|
d0c91022c95f10e3124ea28ddaffe679f7751ea2
|
/task1c/1c.c
|
fb492079c5486724bdaadf726fe1d6572a6596ee
|
[] |
no_license
|
yuvitz/Archi_Lab2
|
fb82e447881d999f0d6b22db78d4acce5da3ee86
|
9228080c764a8955f0e0505791965bd683024f58
|
refs/heads/master
| 2020-04-28T04:27:25.870682 | 2019-03-11T14:53:59 | 2019-03-11T14:53:59 | 174,979,544 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 468 |
c
|
1c.c
|
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(int argc,char** argv){
int iarray[3];
float farray[3];
double darray[3];
char carray[3];
fprintf(stderr, "%p\n", &(iarray));
fprintf(stderr, "%p\n", &(iarray)+1);
fprintf(stderr, "%p\n", &(farray));
fprintf(stderr, "%p\n", &(farray)+1);
fprintf(stderr, "%p\n", &(darray));
fprintf(stderr, "%p\n", &(darray)+1);
fprintf(stderr, "%p\n", &(carray));
fprintf(stderr, "%p\n", &(carray)+1);
}
|
ee42bafd66f7438de05d9e204b47fd36a7686fa9
|
9954c672f2f9ad85df2c2af96a4bfced9b13d0a7
|
/template/pso/pso.h
|
ba20e910c7fee7c8dda5e05ac762363cb231a1cf
|
[
"MIT"
] |
permissive
|
rve/pracmcm
|
1b66215894e39119e364735c207932d4778ef6c5
|
fea899df0dd4b8bcf8eab6d5d6f80303a65fe4d6
|
refs/heads/master
| 2021-01-13T02:32:06.415030 | 2014-04-29T14:55:57 | 2014-04-29T14:55:57 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,198 |
h
|
pso.h
|
#ifndef _PSO_H_
#define _PSO_H_
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
/*各种适应度函数选择,要用哪个,就设置为1,但只能有一个为1*/
#define TEST 0
#define GOLDSTEIN_PRICE 1
#define SCHAFFER 0
#define HANSEN 0
#define NEEDLE 0
#define Dim 30 //粒子维度
#define PNum 20 //种群规模
#define ITE_N 100 //最大迭代次数
extern int cur_n; //当前迭代次数
/*惯性权重函数*/
#define W_START 1.4
#define W_END 0.4
//#define W_FUN (W_START-(W_START-W_END)*pow((double)cur_n/ITE_N,2))
//#define W_FUN 0.1
/*个体和种群结构体*/
struct PARTICLE
{
double X[Dim];
double P[Dim];
double V[Dim];
double Fitness;
};
extern struct PARTICLE particle;
struct SWARM
{
struct PARTICLE Particle[PNum];
int GBestIndex;
double GBest[Dim];
double C1;
double C2;
double W;
int State;
double Xup[Dim];
double Xdown[Dim];
double Vmax[Dim];
} ;
extern struct SWARM swarm;
/*是的,只要三个就好了,更好理解点感觉*/
void RandInitofSwarm(void);
void UpdateofVandX(void);
double UpdatePandGbest(void);
double get_ff(void);
void setState(double ff);
void UpdateParams(void);
void debug(void);
#endif
|
8202e073b9b2c5814929fcfdf074367d21f1572e
|
1b388572a5e7cf0706985cb895d0f56d9e83254b
|
/C-Programming/3-2-types-of-main/No_Parameter_No_Return_Type.c
|
4b6619f6f7649b31a67d57fbd05007b8355e781b
|
[] |
no_license
|
super-sam/learn-programming
|
9bb45d9aebce2ab935b215c0b19ffb513718f3af
|
c91bbbd0eca138c2d4e3e7009df26719fa8bc6b7
|
refs/heads/main
| 2023-07-30T11:01:23.984984 | 2021-09-01T11:05:46 | 2021-09-01T11:05:46 | 320,565,199 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 118 |
c
|
No_Parameter_No_Return_Type.c
|
#include<stdio.h>
void main(void)
{
printf("this is example of main with NO PARAMETER AND NO ARGUMENT");
}
|
675f9fa046f7597a026600b3a0127085049b9ff9
|
44aaba9c75c03324a552c21c7a4740db572ec794
|
/adamant/adamant_window.h
|
089e5cd28dc70ae2ee3025c3186034760d684f9d
|
[] |
no_license
|
gcracker/parameter-toolkit
|
cdf03ec5fdc7bcc9c77d3d7c82904669fbdb873f
|
ef8e525d2cc53627892a89954926453348623beb
|
refs/heads/master
| 2016-09-05T15:42:08.945683 | 2011-03-04T05:11:26 | 2011-03-04T05:11:26 | 32,115,532 | 2 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 5,602 |
h
|
adamant_window.h
|
/*#*STARTLICENCE*#
Copyright (c) 2005-2009, Regents of the University of Colorado
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
Neither the name of the University of Colorado nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
#*ENDLICENCE*#*/
/*****************************************************************************
* adamant_window.h
****************************************************************************/
#ifndef __ADAMANT_WINDOW_H__
#define __ADAMANT_WINDOW_H__
#include <gmp.h>
#include <glib.h>
#include "heap.h"
#include "adamant_meminfo_pagetable.h"
G_BEGIN_DECLS
typedef enum
{
ADAMANT_WINDOW_TYPE_OOO,
ADAMANT_WINDOW_TYPE_ROB
} AdamantWindowType;
typedef struct _AdamantWindow AdamantWindow;
struct _AdamantWindow
{
AdamantWindowType type;
guint id;
guint size;
guint64 head;
guint64 tail;
guint64 sum;
SchedInfo last_mispredicted_branch;
};
/**
* Get ready time at head of window
*/
#define adamant_window_head(window) ((window)->head)
/**
* Get ready time at tail of window
*/
#define adamant_window_tail(window) ((window)->tail)
/**
* Get window id
*/
#define adamant_window_id(window) ((window)->id)
/**
* Get window size
*/
#define adamant_window_size(window) ((window)->size)
/**
* Insert into window (causes value at head to be consumed)
*/
void
adamant_window_insert(AdamantWindow * window, guint64 ready);
/**
* Reorder buffer (ROB). Simulates a reorder buffer implemented as a
* circular buffer FIFO queue.
*/
typedef struct _AdamantWindowRob AdamantWindowRob;
struct _AdamantWindowRob
{
AdamantWindow w_base;
guint ptr;
guint64 * rob;
};
/**
* Adamantium out-of-order instruction window. Simulates an instruction
* issue window by keeping track of the ready times of all the instructions
* in the window. Inserting a new instruction into the window replaces the
* instruction with the smallest ready time.
*
* The instruction window is implemented using a binary heap, or
* priority queue. The top element of the heap is always the smallest,
* and so removal done in O(1) time. Inserting into the heap is a
* O(log(N)) time function. Other, faster heap implementations exist and
* should be considered for use in future versions of the instruction
* window.
*/
typedef struct _AdamantWindowOoO AdamantWindowOoO;
struct _AdamantWindowOoO
{
AdamantWindow w_base;
HEAP * ooo_heap;
};
/**
* Adamantium instruction window configuration parameters. Currently models
* only symmetric windows
*/
typedef struct _AdamantWindowConfig AdamantWindowConfig;
struct _AdamantWindowConfig
{
AdamantWindowType w_type;
guint w_num;
guint w_size;
guint w_ready_weight;
guint w_head_weight;
guint w_tail_weight;
};
/**
* Adamantium window runtime. Partitions instructions among
* multiple instruction windows.
*/
typedef struct _AdamantWindowRuntime AdamantWindowRuntime;
struct _AdamantWindowRuntime
{
AdamantWindowConfig config;
AdamantWindow * windows;
};
/**
* Initialize a window runtime with the specified config
*/
void
adamant_window_runtime_init(AdamantWindowRuntime * wrt,
AdamantWindowConfig * w_config);
/**
* Destroy window runtime
*/
void
adamant_window_runtime_destroy(AdamantWindowRuntime * wrt);
/**
* Get window at index
*/
static inline AdamantWindow*
adamant_window_runtime_index(AdamantWindowRuntime *wrt, guint index)
{
switch(wrt->config.w_type)
{
case ADAMANT_WINDOW_TYPE_ROB:
return (AdamantWindow *)(&((AdamantWindowRob*)wrt->windows)[index]);
case ADAMANT_WINDOW_TYPE_OOO:
return (AdamantWindow *)(&((AdamantWindowOoO*)wrt->windows)[index]);
default:
return NULL;
}
}
/**
* Insert into window (causes value at head to be consumed)
*/
void
adamant_window_runtime_insert(AdamantWindowRuntime * wrt, guint w_id,
guint64 ready);
/**
* Choose a window given an instruction and its sources
* @return an index to the chosen window
*/
guint
adamant_window_runtime_choose(AdamantWindowRuntime * wrt,
GArray * sched_info, guint sched_info_len,
guint communication_latency);
typedef struct {
guint64 sum;
mpz_t sum_squared;
guint64 count;
} AdamantWindowVarianceInfo;
G_END_DECLS
#endif /* __ADAMANT_WINDOW_H__ */
|
cee74fbea3f0d5e3ff1017e5516f75349323a56d
|
fa274ec4f0c66c61d6acd476e024d8e7bdfdcf54
|
/Resoluções OJ/uri/1787 - URI.c
|
d4107699a59d7faba401ff7758c55f877b079f4e
|
[] |
no_license
|
luanaamorim04/Competitive-Programming
|
1c204b9c21e9c22b4d63ad425a98f4453987b879
|
265ad98ffecb304524ac805612dfb698d0a419d8
|
refs/heads/master
| 2023-07-13T03:04:51.447580 | 2021-08-11T00:28:57 | 2021-08-11T00:28:57 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 801 |
c
|
1787 - URI.c
|
// Autor: [GAPA] Francisco Arcos Filho<francisco.fepaf@gmail.com>
// Nome: URI
// Nível: 1
// Categoria: AD-HOC
// URL: https://www.urionlinejudge.com.br/judge/pt/problems/view/1787
#include<stdio.h>
#define max(x,y,z) (x>y && x>z ? 0:(y>z?1:2))
int ui,ri,ii,n,v[3],big,only;
char nome[3][11]={"Uilton","Rita","Ingred"};
int main(){
while (scanf("%i",&n) && n){
while (n--){
scanf("%i %i %i",&ui,&ri,&ii);
big = max(ui,ri,ii);
v[0]+=((!(ui & (ui-1))) + (big==0)*(!(ui & (ui-1))));
v[1]+=((!(ri & (ri-1))) + (big==1)*(!(ri & (ri-1))));
v[2]+=((!(ii & (ii-1))) + (big==2)*(!(ii & (ii-1))));
}
big=max(v[0],v[1],v[2]);
only=((v[big]==v[0])+(v[big]==v[1])+(v[big]==v[2]));
printf("%s\n",( only==1 ? nome[big]:"URI"));
v[0]=v[1]=v[2]=0;
}
return 0;
}
|
eaa1ff23029f1a649a5487b441a3c94dcb5a7814
|
3a59a13fd5be0a66b1aed9beb9a55eb60ad61dd0
|
/struct/s.c
|
43540ab62ba2fdc5c037decb3a614a5451274eb2
|
[] |
no_license
|
takagotch/c1
|
96274932bb414a84381e848d6f68f53e9c04c2f6
|
b7f9532a27bfc48fcca1f5c99139510ad9b9bb11
|
refs/heads/master
| 2021-05-08T18:31:03.197852 | 2018-06-13T16:09:20 | 2018-06-13T16:09:20 | 119,520,046 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 4,666 |
c
|
s.c
|
struct [tag_name] {member_declaration_list};
struct Date {short month, day, year;};
struct Song{
char title[64];
char artist[32];
char composer[32];
short duration;
struct Date published;
};
struct Cell{
struct Song song;
struct Cell* pNext;
};
struct Song song1, song2, *pSong = &song1l
typedef struct Song Song_t;
Song_t song1, song2, *pSong = &song1;
typedef struct {struct Cell* pFirst; struct Cell* pLast;} SongList_t;
struct A {struct B* pB; /**/ };
struct B {struct A* pA: /**/ };
struct B;
struct A{struct B* pB; /**/ };
struct B{struct A* pA; /**/ };
#include <string.h>
Song_t song1, song2,
*pSong = &song1;
strcpy(song1.title, "Havana Club" );
strcpy(song1.composer, "Ottmar Liebert");
song1.duration=251;
song1.published.year = 1998;
if((*pSong).duration > 180)
{
printf("The song %s is more than 3 minutes long.\n", (*pSong).title);
}
if(pSong->duration > 180)
{
printf("The song %s is more than 3 minutes long.\n", pSong->tilte);
}
//dateAsString()
//mm/dd/yyyy struct Date
const char* dateAsString(struct Date d)
{
static char strDate[12];
sprintf(strDate, "%02d/%02d/%04d", d.month, d.day, d.year);
return strDate;
}
//printSong()
void printSong(const Song_t* pSong)
{
const int m = pSong->duration / 60,
const int s = pSong->duration & 60;
printf("-------------------------\n"
"Title: %s\n"
"Artist: %s\n"
"Composer: %s\n"
"Playing time: %d:%02d\n"
"Date: %s\n",
pSong->title, pSong->artist, pSong->composer, m, s,
dateAsString(pStirng->published));
}
Song_t mySong{
"What It Is",
"Aubrey Haynie; Mark Knopfler",
"Mark Knopfler",
297,
{9, 26, 2000}
};
Song_t yourSong = {"El Macho"};
Song_t yourSong = mySong;
.member
Song_t aSong = {
.title = "I've Just Seen a Face",
.composer = "John Lennon; Paul McCartney",
127
};
offsetof(structure_type, member)
char* ptr = (char*) pSong + offsetof(Song_t, composer);
#include <stdio.h>
if(fwrite(&aSong, sizeof(aSong), 1, fp) < 1)
{
fprintf(stderr, "Error writing \"%s:\n", aSong.title);
}
typedef struct { int len; flaot array[]; } DynArray_t;
DynArray_t* daPtr = malloc(sizeof(DyArray_t) + 10 * sizeof(float));
daPtr->len = 10;
for(int i = 0; i < daPtr->len; ++i)
{
daPtr->array[i] = 1.0F / (i + 1);
}
daPtr->array[i] = 1.0F / (i + 1);
DynArray_t da1;
da1 = *daPtr
DynArray_t da1 = {100},
da2 { 3, { 1.0F, 0.5F, 0.25F } };
typedef struct { struct Cell* pFirst; struct Cell* pLast } SongList_t;
typedef struct Cell {
struct Song song;
struct Cell* pNext;
} Cell_t;
SongList_t yourList = myList;
SongList_t yourList = cloneSongList(&myList);
//cloneSongList(), appendSong(), clearSongList()
#include "songList.h"
SongList_t cloneSongList(const SongList_t* pList)
{
SongList newSL = {NULL, NULL};
Cell_t* pCell = pList->pFirst;
while(pCell != NULL && appendSong(&newSL, &pCell->song))
{
pCell = pCell->pNext;
}
if(pCell != NULL)
{
clearSongList(&newSL);
}
return newSL;
}
bool appendSong(&newSL)
{
Cell_t* pCell = calloc(1, sizeof(Cell_t));
if(pCell == NULL)
{
return false;
}
pCell->song = *pSong;
pCell->pNext = NULL;
if(pList->pFrist = pList->pLast = pCell;)
{
pList->pFirst = pList->pList = pCell;
}
else
{
pList->pLast->pNext = pCell;
pList->pLast = pCell;
}
return true;
}
void clearSongList(SongList_t* pList)
{
Cell_t* pNextCell = NULL;
for(Cell_t* pCell = pList->pFrist; pCell != NULL; pCell = pNextCell)
{
pNextCell = pCell->pNext;
free(pCell);
}
pList->pFrist = pList->pLast = NULL;
}
union [tag_name] {member_declaration_list};
union Data {int i; double x; char str[16];};
union Data var, myData[100];
struct Record {int i; double x; char str[16];};
var.x = 3.21;
var.x += 0.5;
strcpy(var.str, "Jim");
myData[0].i = 50;
for(int i = 0; i < 50; ++i)
{
myData[i].i = 2 * i;
}
var.x = 1.25;
for(int i = sizeof(double) - 1; i >= 0; --i)
{
printf("%02X", (unsigned) var.str[i]);
}
union Data var1 = {77},
var2 = {.str = "Mary"},
var3 = var1,
myData[100] = {{.x= 0.5}, {1}, var2};
union WrodByte
{
short w;
struct {char b0, b1};
}
union WordByte wb = {256};
char lowByte = wb.b0;
struct Demo
{
union
{ struct {long a, b;};
struct {float x, y;} fl;
}
} dObj;
dObj.a = 100;
dObj.b = 1.0;
dObj.fl.y = 1.0;
type [ member_name ] : width;
type
member_name
width
struct Date{
unsigned int month : 4;
unsigned int day : 5;
signed int year : 22;
_Bool isDST : 1;
};
const char* dateAsString(struct Date d)
{
static char strDate[12];
sprintf(strDate, "%02d%02d%04d", d.month, d.day, d.year);
return strDate;
}
puts(dateAsString(birthday));
|
502889087adc70f3130d31371311d8027ac95e1b
|
00c29442b61638f4827eabc66be6a4f364049731
|
/cs220/F17-A4-Goldenr9/functions.h
|
9cf460486caa311ba43fc361f6b979f788bd967b
|
[] |
no_license
|
rorourk2/CS220
|
16220f55c962f8759108a4dbc0f9c16ed5008ebc
|
7487344fbcb3e64f241a5cad8a046dba6b0694a5
|
refs/heads/main
| 2023-03-24T21:04:42.135808 | 2021-03-24T19:25:03 | 2021-03-24T19:25:03 | 351,198,370 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 208 |
h
|
functions.h
|
#ifndef FUNCTIONS_H
#define FUNCTIONS_H
int cryptic_calculator(void *payload);
void my_memcpy(void *dst, void *src, unsigned int num_bytes);
void swap_strs(char *s1, char *s2);
#endif //FUNCTIONS_H
|
4049f74076a57e018f43ef8a75d580ba1e6b87a7
|
b8b5bc7fc6bf381f1e6c21c33d961a07cde8ba19
|
/PRACTICA-3/p3ejc1.c
|
9dc4056e7b275ed5eacd26926ea871ffba5d90d5
|
[] |
no_license
|
shadexlol/programitas
|
36a8078b8dfab34376eb232d6c3d9ef4a78d7365
|
803cd522b53f202ad03085b95ab1c1e5a0436f89
|
refs/heads/master
| 2021-01-11T00:20:08.918242 | 2017-01-25T10:10:55 | 2017-01-25T10:10:55 | 70,566,104 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 320 |
c
|
p3ejc1.c
|
#include <stdio.h>
#include <conio.h>
int main (){
int a,b,c;
printf("Dame un año y te digo si es bisiesto o que\n");
scanf("%d",&a);
c = a%4;
if (c==0){
printf("El año es bisiesto cabesa\n");
}
else {
printf("XDDDD LOMAAAAAAAAA ESTE NO ES BISIESTO XDDDDDDDDDDDDDD\n");
}
return 0;
}
|
19732dbf9bfa0f1d83f56dc3be5a66d1e2592378
|
5f9b26a41102c38da28b8f757a5586f9bc7cf71a
|
/crates/zig_build_bin_windows_x86_64/zig-windows-x86_64-0.5.0+80ff549e2/lib/zig/libc/musl/src/thread/tss_delete.c
|
515ed27eb90e403d71e10153c7ed21217c792138
|
[
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-musl-exception",
"MIT"
] |
permissive
|
jeremyBanks/zig_with_cargo
|
f8e65f14adf17ed8d477f0856257422c2158c63f
|
f8ee46b891bbcdca7ff20f5cad64aa94c5a1d2d1
|
refs/heads/master
| 2021-02-06T10:26:17.614138 | 2020-03-09T04:46:26 | 2020-03-09T04:46:26 | 243,905,553 | 4 | 1 | null | null | null | null |
UTF-8
|
C
| false | false | 109 |
c
|
tss_delete.c
|
#include <threads.h>
#include <pthread.h>
void tss_delete(tss_t key)
{
__pthread_key_delete(key);
}
|
313b17474d300fec75c74ee74302e5cff1b7d9a4
|
e43fa00b86556b88c862111e5bf1f59887877235
|
/uri 1960.c
|
e1428bed2b2d342b67c8f8d1bdfc3a2fa1e9d526
|
[] |
no_license
|
joymohajon66/URI-Solutions_C-file
|
aa8799534f55fa3d7db04369057bedd3518bac84
|
d49a8268bdfefd8b3d6c651201a4c738efaee333
|
refs/heads/main
| 2023-04-21T11:10:35.218410 | 2021-05-01T16:16:04 | 2021-05-01T16:16:04 | 363,453,212 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,306 |
c
|
uri 1960.c
|
#include<stdio.h>
int main()
{
int n, s, k;
scanf("%d",&n);
/* if N is getter than
equal to 900 then deduct
900 from N and displaying
roman format of 900. This
formula works for 500,
400, 100, 90, 50, 40, 10,
9, 5, 4, 3, 2, 1 */
if (n>=900)
{
s=n-900;
printf("CM");
n=s;
}
if (n>=500)
{
s=n-500;
printf("D");
n=s;
}
if (n>=400)
{
s=n-400;
printf("CD");
n=s;
}
while (n>=100)
{
s=n-100;
printf("C");
n=s;
}
if (n>=90)
{
s=n-90;
printf("XC");
n=s;
}
if (n>=50)
{
s=n-50;
printf("L");
n=s;
}
if (n>=40)
{
s=n-40;
printf("XL");
n=s;
}
while (n>=10)
{
s=n-10;
printf("X");
n=s;
}
if (n==9)
{
s=n-9;
printf("IX");
n=s;
}
if (n>=5)
{
s=n-5;
printf("V");
n=s;
}
if (n==4)
{
printf("IV");
}
else if (n==3)
{
printf("III");
}
else if (n==2)
{
printf("II");
}
else if (n==1)
{
printf("I");
}
printf("\n");
return 0;
}
|
b4e061e2abd9b302b7c78b09b02ca86f74e37f36
|
9c9222d81bc91b7f456ecff17258858a796d0534
|
/RTv1/src/sphere.c
|
973deaa047aa5bbd335da1110b6c07475ed12316
|
[] |
no_license
|
aempisse/42
|
bfeadee3bbe6dd1c2744fd86558d01835fc735e4
|
7eaa0841f2595f69361cb3e8b0745a26b92cdba7
|
refs/heads/master
| 2021-01-19T01:55:28.282040 | 2017-05-06T10:10:32 | 2017-05-06T10:10:32 | 62,907,526 | 2 | 4 | null | 2017-04-06T18:08:09 | 2016-07-08T18:02:38 |
C
|
UTF-8
|
C
| false | false | 1,009 |
c
|
sphere.c
|
#include "../rtv1.h"
static int intersect_sphere(t_vector ray, t_object *sphere,
t_double2 *distance)
{
double a;
double b;
double c;
a = dot_product(ray.dir, ray.dir);
b = 2 * (ray.pos.x * ray.dir.x + ray.pos.y * ray.dir.y + ray.pos.z * ray.dir.z);
c = dot_product(ray.pos, ray.pos) - sphere->radius * sphere->radius;
if (solve_quadratic(a, b, c, distance))
return (1);
return (0);
}
void get_nearest_sphere(t_vector ray, t_object *sphere,
t_surface *surface, t_scene *scene)
{
t_double2 distance;
t_surface *tmp;
t_vector ray_s;
ray_s = transform_ray(ray, sphere);
if (intersect_sphere(transform_ray(ray, sphere), sphere, &distance))
{
tmp = cut_object(ray, sphere, distance, scene);
if (tmp->object != NULL && (surface->distance == -1 || surface->distance > tmp->distance))
{
surface->object = tmp->object;
surface->distance = tmp->distance;
surface->normal = tmp->normal;
free(tmp);
}
surface->color = spherical_mapping(scene, surface, ray_s);
}
}
|
816629ddf92eb7c2bbd01990571295670fd50879
|
23c6e6f35680bee885ee071ee123870c3dbc1e3d
|
/test/pthread/div/bitwise_definedness.c
|
736a8e0d660bf9a5e0100463e3dc37a58544a799
|
[] |
no_license
|
paradise-fi/divine
|
3a354c00f39ad5788e08eb0e33aff9d2f5919369
|
d47985e0b5175a7b4ee506fb05198c4dd9eeb7ce
|
refs/heads/master
| 2021-07-09T08:23:44.201902 | 2021-03-21T14:24:02 | 2021-03-21T14:24:02 | 95,647,518 | 15 | 3 | null | null | null | null |
UTF-8
|
C
| false | false | 693 |
c
|
bitwise_definedness.c
|
/* TAGS: min c */
#include <stdlib.h>
#include <assert.h>
#include <pthread.h>
pthread_mutex_t mutex;
volatile char shared;
void *thread( void * unused )
{
( void ) unused;
pthread_mutex_lock( &mutex );
shared |= 0x01;
pthread_mutex_unlock( &mutex );
return NULL;
}
int main() {
int undef;
shared = undef;
shared &= 0xF0;
pthread_t tid;
pthread_mutex_init( &mutex, NULL );
pthread_create( &tid, NULL, thread, NULL );
pthread_mutex_lock( &mutex );
shared |= 0x04;
pthread_mutex_unlock( &mutex );
pthread_join( tid, NULL );
assert( ( shared & 0x06 ) == 0x04 );
assert( shared == 0x05 ); /* ERROR */
return 0;
}
|
3b792f38c2e4dacd9811855f8f179449a599936a
|
54296b0c3c79c1bde143a7220fe36411b2f4cea6
|
/build/Blocks_png.h
|
97ce410981974d76ceefff76ae0fc778aa72cb6f
|
[] |
no_license
|
miguel28/PiipePaniic
|
9428f2a9b630e6be7c77d0ab25551bee822334e1
|
9f792989bd40f74f31c417c26d025b801be3a814
|
refs/heads/master
| 2016-09-06T12:28:59.793309 | 2015-04-04T17:28:19 | 2015-04-04T17:28:19 | 33,413,910 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 98 |
h
|
Blocks_png.h
|
extern const u8 Blocks_png_end[];
extern const u8 Blocks_png[];
extern const u32 Blocks_png_size;
|
c09b02a8714207822e5ea49d9376026685dcb68c
|
4e3183ff9dcc6a3bc2318deaec8eff6901d6967f
|
/Array/yangxin/第七周练习7_13-7_19/160. 相交链表/getIntersectionNode.c
|
e2e983788b993fea842280056cb9ad57c12bbdb7
|
[
"MIT"
] |
permissive
|
accountos/LeetCodeLearning
|
54a471afe974bd1413defacdb9804588131d2041
|
3c22a4fcdfe8b47f9f64b939c8b27742c4e30b79
|
refs/heads/master
| 2023-08-15T00:41:09.522876 | 2021-02-26T02:36:14 | 2021-02-26T02:36:14 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,020 |
c
|
getIntersectionNode.c
|
/**
* 160. 相交链表
* 编写一个程序,找到两个单链表相交的起始节点。
*/
struct ListNode *getIntersectionNode1(struct ListNode *headA, struct ListNode *headB) {
if (headA == NULL || headB == NULL) {
return NULL;
}
if (headA == headB) {
return headA;
}
int sizeA = 0;
int sizeB = 0;
struct ListNode *tailA = headA;
struct ListNode *tailB = headB;
while (tailA->next != NULL) {
sizeA++;
tailA = tailA->next;
}
while (tailB->next != NULL) {
sizeB++;
tailB = tailB->next;
}
if (tailA != tailB) {
return NULL;
}
int diff = sizeA - sizeB;
if (diff > 0) {
tailA = headA;
tailB = headB;
} else {
tailA = headB;
tailB = headA;
diff = -diff;
}
while (diff > 0) {
tailA = tailA->next;
diff--;
}
while (tailA != tailB) {
tailA = tailA->next;
tailB = tailB->next;
}
return tailA;
}
|
c1cd7fb122f1d52da12c78ecc187dac0f1c47011
|
ab52b769193c19446da5f0699cee6d0af317141c
|
/String Programs Using Function/18 Using String Digits Create A Integer Number.c
|
91a36ca0eb97b047626cd0595e716a2ae0e1614b
|
[] |
no_license
|
YogeshSawant0422/C-Programs-Using-Functional-Approach
|
155bc6fce0c5cfd368dd59f914cf71b808a82d42
|
787b888e8e60ff875221922530393be55dae988e
|
refs/heads/master
| 2023-05-09T00:07:59.796419 | 2021-06-03T18:26:06 | 2021-06-03T18:26:06 | 349,007,816 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 642 |
c
|
18 Using String Digits Create A Integer Number.c
|
//Using String Digits Create A Integer Number .
#include<stdio.h>
#include<conio.h>
int Int_Num(char cSrc[]);
int main()
{
char Str[20] = {'\0'};
printf("\n Enter A String : ");
gets(Str);
int Ret = Int_Num(Str);
printf("\n Integer Number Created From Given String Is : %d",Ret);
printf("\n\n Thanks !!!!!");
getch();
return 0;
}
int Int_Num(char cSrc[])
{
int i = 0 , Num=0;
while(cSrc[i] != '\0')
{
if(cSrc[i] >= '0' && cSrc[i] <= '9')
{
Num = (Num * 10) + (cSrc[i] - 48);
}
i++;
}
return Num;
}
|
2be7f75f50ef4f5853d5262799c02d71f60b034e
|
f44926184e106c60eb80bd12939725091c897e55
|
/paper_data/experiment_resultstay2v1612/repair_results1/test1/patch_of_gsl_sf_conicalP_half.c
|
636f0832c4d06bd2ac8b5f6cf380fe9c92951344
|
[] |
no_license
|
yixin-09/NPTaylor
|
e11ad84d6930332438c32d8e3f9d1c3f0bdbd5cb
|
0a8fe8b5a4fa596fda4f0db2c15191ccae667478
|
refs/heads/master
| 2022-11-14T03:25:21.891007 | 2020-07-13T10:42:37 | 2020-07-13T10:42:37 | 274,424,963 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 81,488 |
c
|
patch_of_gsl_sf_conicalP_half.c
|
#include "eft_patch.h"
static double array_idx_sf_conicalP_half_0[40] = {
2.275328564032920831e+00,
2.275493041518050763e+00,
2.275547867346427111e+00,
2.275602693174803903e+00,
2.275657519003180251e+00,
2.275821996488309740e+00,
2.275876822316686088e+00,
2.275931648145062880e+00,
2.275986473973439228e+00,
2.276150951458568716e+00,
2.276315428943698649e+00,
2.276479906428828581e+00,
2.276644383913958070e+00,
2.276808861399087558e+00,
2.276863687227463906e+00,
2.276918513055840698e+00,
2.276973338884217046e+00,
2.277137816369346535e+00,
2.277302293854476467e+00,
2.277357119682853259e+00,
2.277411945511230051e+00,
2.277466771339606399e+00,
2.277521597167982748e+00,
2.277576422996359540e+00,
2.277631248824735888e+00,
2.277795726309865820e+00,
2.277960203794995753e+00,
2.278124681280125241e+00,
2.278289158765254729e+00,
2.278453636250384218e+00,
2.278618113735513706e+00,
2.278782591220643639e+00,
2.278947068705773571e+00,
2.279111546190903059e+00,
2.279276023676032548e+00,
2.279440501161162036e+00,
2.279495326989538384e+00,
2.279550152817915176e+00,
2.279604978646291524e+00,
2.279769456131421457e+00,
};
static double array_cof_float_sf_conicalP_half_0[39][37] = {
{
-6.960073257592191920e+06,
-4.075777751099410816e+05,
2.474729481325749657e+05,
4.413349185062986180e+03,
-4.048596876474450710e+03,
-1.069841796761139463e+01,
1.964154351953688860e+01,
-5.309279845142455846e-15,
-2.115582529113183264e+06,
-5.357920170854227035e+04,
5.209364865993265994e+04,
2.440829794751651605e+02,
-5.057338555916615519e+02,
5.067611108291238120e-02,
8.165510110941549549e-01,
-2.683395128759137588e+05,
-1.826617785512570663e+03,
4.342438969274025112e+03,
-2.609396196873711826e+00,
-2.102277638693501416e+01,
5.682639088372547358e-15,
-1.865658812096851398e+04,
3.358980173451083573e+01,
1.804410861742630345e+02,
-2.129191284187886835e-01,
-2.913241738135873837e-01,
-7.745870594039499792e+02,
2.973630094673330948e+00,
3.750190054865682576e+00,
-1.013708950823917539e-15,
-1.929995770464671878e+01,
4.364327246668389670e-02,
3.118106759837803790e-02,
-2.675940644329690699e-01,
7.233300028383988075e-17,
-1.589227762924287028e-03,
7.000000000000000000e+00,
},
{
-6.955150208623630926e+06,
-4.073400970859012450e+05,
2.473461562710200669e+05,
4.411626933942894539e+03,
-4.047305201112593750e+03,
-1.069630514381988107e+01,
1.963906391209434332e+01,
-2.869622203280926812e-15,
-2.114371323746301234e+06,
-5.355553076322353445e+04,
5.207391367496231396e+04,
2.440244503708341881e+02,
-5.056398105706888373e+02,
5.066598315298897343e-02,
8.165565672584030876e-01,
-2.682218000221686088e+05,
-1.826111874374457557e+03,
4.341372185176471248e+03,
-2.608718887222835292e+00,
-2.102166391467557460e+01,
3.071645053424005233e-15,
-1.865089129325822796e+04,
3.357907652514042240e+01,
1.804207646092073105e+02,
-2.129136739963329306e-01,
-2.913475204497291138e-01,
-7.744536123958156395e+02,
2.973352846553990236e+00,
3.750266609104445426e+00,
-5.479817356814909853e-16,
-1.929919959690022324e+01,
4.364555023535808542e-02,
3.118585328039261140e-02,
-2.676191512993429944e-01,
3.910399507987015003e-17,
-1.589588241765314217e-03,
7.000000000000000000e+00,
},
{
-6.952690137900448404e+06,
-4.072213172722327872e+05,
2.472827885123992746e+05,
4.410766112840329697e+03,
-4.046659556668703772e+03,
-1.069524895300378198e+01,
1.963782429879579539e+01,
5.003587453995110506e-15,
-2.113766017059349921e+06,
-5.354369991818290873e+04,
5.206404956713504362e+04,
2.439951927758234547e+02,
-5.055927973056325868e+02,
5.066091991771501379e-02,
8.165593449240996504e-01,
-2.681629663797512185e+05,
-1.825858984686150734e+03,
4.340838921403056702e+03,
-2.608380300990380540e+00,
-2.102110772308272146e+01,
-5.356038900844335535e-15,
-1.864804369033648982e+04,
3.357371529252624498e+01,
1.804106051655524823e+02,
-2.129109468045394249e-01,
-2.913591935435184133e-01,
-7.743869008110646064e+02,
2.973214236578372027e+00,
3.750304880876788705e+00,
9.555528232199533145e-16,
-1.929882055445040123e+01,
4.364668904006275413e-02,
3.118824621505742606e-02,
-2.676316944817155319e-01,
-6.819078164795880512e-17,
-1.589768498367547835e-03,
7.000000000000000000e+00,
},
{
-6.950231035790467635e+06,
-4.071025769044731278e+05,
2.472194395267851942e+05,
4.409905494633673698e+03,
-4.046014041008283129e+03,
-1.069419290953045554e+01,
1.963658481242149989e+01,
4.377515424207146886e-15,
-2.113160907607146539e+06,
-5.353187215697443025e+04,
5.205418771493840177e+04,
2.439659398175491276e+02,
-5.055457902027938530e+02,
5.065585716948388384e-02,
8.165621223122135897e-01,
-2.681041479209461249e+05,
-1.825606138905137414e+03,
4.340305743123840330e+03,
-2.608041760485203309e+00,
-2.102055156117765833e+01,
-4.686038308768903893e-15,
-1.864519662787257403e+04,
3.356835497443343996e+01,
1.804004466143326795e+02,
-2.129082196259482751e-01,
-2.913708664877874832e-01,
-7.743201971708826932e+02,
2.973075635992478372e+00,
3.750343149084824024e+00,
8.360509293247065451e-16,
-1.929844151961658483e+01,
4.364782779170776200e-02,
3.119063921215669416e-02,
-2.676442374968678317e-01,
-5.966499719959299581e-17,
-1.589948766424347263e-03,
7.000000000000000000e+00,
},
{
-6.945315735728466883e+06,
-4.068652144479023991e+05,
2.470927978492941184e+05,
4.408184866684950066e+03,
-4.044723395914218145e+03,
-1.069208126451989394e+01,
1.963410622037302744e+01,
1.348581592692481296e-15,
-2.111951280118386727e+06,
-5.350822588235590229e+04,
5.203447077501388412e+04,
2.439074478077753838e+02,
-5.054517944795627500e+02,
5.064573313268392468e-02,
8.165676762557999568e-01,
-2.679865565361074405e+05,
-1.825100579029673099e+03,
4.339239642979898235e+03,
-2.607364816611112968e+00,
-2.101943932642059565e+01,
-1.443734114818734498e-15,
-1.863950412382510694e+04,
3.355763708099698306e+01,
1.803801321887581537e+02,
-2.129027653079629268e-01,
-2.913942119277677656e-01,
-7.741868137193089296e+02,
2.972798462983543999e+00,
3.750419674809136072e+00,
2.576000598932906611e-16,
-1.929768347279831531e+01,
4.365010513578168605e-02,
3.119542539364692640e-02,
-2.676693230254816314e-01,
-1.838504477408109590e-17,
-1.590309336901902463e-03,
7.000000000000000000e+00,
},
{
-6.940404305076375604e+06,
-4.066280095985828666e+05,
2.469662311880041671e+05,
4.406465049647981687e+03,
-4.043433265583199955e+03,
-1.068997020857850266e+01,
1.963162813580358446e+01,
-5.260661056635991397e-15,
-2.110742440703113563e+06,
-5.348459193194771797e+04,
5.201476285034413741e+04,
2.438489743342119880e+02,
-5.053578233925829295e+02,
5.063561104175443722e-02,
8.165732290893756851e-01,
-2.678690258315344690e+05,
-1.824595194674644063e+03,
4.338173884608450862e+03,
-2.606688055536431126e+00,
-2.101832721038371332e+01,
5.632252947458971960e-15,
-1.863381378012979258e+04,
3.354692284335592944e+01,
1.803598213316027739e+02,
-2.128973110423047765e-01,
-2.914175567696759006e-01,
-7.740534620312549805e+02,
2.972521327519357381e+00,
3.750496186279707267e+00,
-1.005015431921324716e-15,
-1.929692545644797264e+01,
4.365238226758583195e-02,
3.120021182484007324e-02,
-2.676944078851236641e-01,
7.173371138138958488e-17,
-1.590669953198505003e-03,
7.000000000000000000e+00,
},
{
-6.937950039729476906e+06,
-4.065094662399434601e+05,
2.469029759726496413e+05,
4.405605445081912876e+03,
-4.042788393376616114e+03,
-1.068891490144968692e+01,
1.963038928377809356e+01,
2.602513313298195452e-15,
-2.110138316342870705e+06,
-5.347277957601186790e+04,
5.200491226721659768e+04,
2.438197445463391375e+02,
-5.053108470850592653e+02,
5.063055072519405397e-02,
8.165760050899760758e-01,
-2.678102832230670028e+05,
-1.824342568295071032e+03,
4.337641133544870172e+03,
-2.606349743521930495e+00,
-2.101777119687888984e+01,
-2.786446491967132335e-15,
-1.863096941810620410e+04,
3.354156709495838129e+01,
1.803496672409071948e+02,
-2.128945839288844399e-01,
-2.914292289663547586e-01,
-7.739867980954749100e+02,
2.972382773862866756e+00,
3.750534436670569516e+00,
4.972298644879406444e-16,
-1.929654645969910121e+01,
4.365352075386811498e-02,
3.120260513406798025e-02,
-2.677069500640616440e-01,
-3.549144601935705466e-17,
-1.590850278529113392e-03,
7.000000000000000000e+00,
},
{
-6.935496740476115607e+06,
-4.063909622390165459e+05,
2.468397394924106484e+05,
4.404746043074585032e+03,
-4.042143649768166142e+03,
-1.068785974149932017e+01,
1.962915055856788982e+01,
-4.491550393780485839e-15,
-2.109534388784885406e+06,
-5.346097029833751003e+04,
5.199506393608750659e+04,
2.437905193896066862e+02,
-5.052638769334456015e+02,
5.062549089564159083e-02,
8.165787808131539371e-01,
-2.677515557711335714e+05,
-1.824089985766957625e+03,
4.337108467873372319e+03,
-2.606011477194226877e+00,
-2.101721521304635232e+01,
4.809167925258139335e-15,
-1.862812559580113157e+04,
3.353621226001969546e+01,
1.803395140419860070e+02,
-2.128918568288233892e-01,
-2.914409010135177724e-01,
-7.739201420968854563e+02,
2.972244229591586517e+00,
3.750572683498863302e+00,
-8.582076011495379072e-16,
-1.929616747056812187e+01,
4.365465918711779192e-02,
3.120499850571289285e-02,
-2.677194920757333674e-01,
6.125968551046679228e-17,
-1.591030615314679422e-03,
7.000000000000000000e+00,
},
{
-6.930593038572967052e+06,
-4.061540722517744871e+05,
2.467133227120508964e+05,
4.403027846516059981e+03,
-4.040854548222229369e+03,
-1.068574986306734864e+01,
1.962667348852077254e+01,
1.402099580123824066e-15,
-2.108327123787767254e+06,
-5.343736097410988441e+04,
5.197537402740588732e+04,
2.437320829665718520e+02,
-5.051699550937474896e+02,
5.061537269397216321e-02,
8.165843314273479869e-01,
-2.676341463188384660e+05,
-1.823584952232665501e+03,
4.336043392638623118e+03,
-2.605335081526364505e+00,
-2.101610333438787137e+01,
-1.501358326372452620e-15,
-1.862243956985427212e+04,
3.352550532954872153e+01,
1.803192103190278885e+02,
-2.128864026676111909e-01,
-2.914642446592988212e-01,
-7.737868539063711069e+02,
2.971967169193470149e+00,
3.750649166468924545e+00,
2.679406484534223714e-16,
-1.929540951516131031e+01,
4.365693589440106798e-02,
3.120978543624203586e-02,
-2.677445755972492347e-01,
-1.912726358060120356e-17,
-1.591391323250941799e-03,
7.000000000000000000e+00,
},
{
-6.923244720944511704e+06,
-4.057990320873287856e+05,
2.465238378972752835e+05,
4.400452069474226846e+03,
-4.038921859618091730e+03,
-1.068258614865289857e+01,
1.962295883411112030e+01,
-9.880959500585669685e-16,
-2.106517700510405004e+06,
-5.340197005164039001e+04,
5.194585603925955365e+04,
2.436444630436402576e+02,
-5.050291184772705719e+02,
5.060019903730160473e-02,
8.165926552686352258e-01,
-2.674581457017533248e+05,
-1.822827730593554634e+03,
4.334446419802136006e+03,
-2.604320830422348632e+00,
-2.101443573887783600e+01,
1.058162483134607209e-15,
-1.861391457574648302e+04,
3.350945177987696866e+01,
1.802887614201500526e+02,
-2.128782215242916998e-01,
-2.914992590066193268e-01,
-7.735869811188260883e+02,
2.971551648951474611e+00,
3.750763864212037113e+00,
-1.888662466850562821e-16,
-1.929427263919350466e+01,
4.366035055744258569e-02,
3.121696630009054493e-02,
-2.677821996248384573e-01,
1.348392508917288572e-17,
-1.591932471069146694e-03,
7.000000000000000000e+00,
},
{
-6.915905075545736589e+06,
-4.054443453510369291e+05,
2.463345213582916185e+05,
4.397878112444865110e+03,
-4.036990326731925961e+03,
-1.067942375748861039e+01,
1.961924532005943433e+01,
-4.032278512616898232e-16,
-2.104710044570467435e+06,
-5.336660678362115868e+04,
5.191635828647034214e+04,
2.435568847527593732e+02,
-5.048883372072890552e+02,
5.058502975331721774e-02,
8.166009766145571058e-01,
-2.672822812502651941e+05,
-1.822070903129215139e+03,
4.332850214576707913e+03,
-2.603306990006009958e+00,
-2.101276841027910081e+01,
4.318684698067014031e-16,
-1.860539443246261726e+04,
3.349340644104438525e+01,
1.802583205413048688e+02,
-2.128700404990211403e-01,
-2.915342720083358152e-01,
-7.733871796996869534e+02,
2.971136213112662627e+00,
3.750878529907741843e+00,
-7.709056415192033776e-17,
-1.929313583180424985e+01,
4.366376474304901195e-02,
3.122414772553501819e-02,
-2.678198221466239204e-01,
5.504412103917966766e-18,
-1.592473721985489254e-03,
7.000000000000000000e+00,
},
{
-6.908574091094492935e+06,
-4.050900116478038253e+05,
2.461453729252647317e+05,
4.395305973917356823e+03,
-4.035059948732190605e+03,
-1.067626268885190299e+01,
1.961553294587635321e+01,
-1.404425473886877082e-15,
-2.102904154030034319e+06,
-5.333127114509044623e+04,
5.188688075274664152e+04,
2.434693480690707759e+02,
-5.047476112554836050e+02,
5.056986484060402298e-02,
8.166092954658329406e-01,
-2.671065528429537662e+05,
-1.821314469590725594e+03,
4.331254776503991707e+03,
-2.602293560079391721e+00,
-2.101110134852202549e+01,
1.504344850058567223e-15,
-1.859687913668526016e+04,
3.347736930818898315e+01,
1.802278876795252813e+02,
-2.128618595920550305e-01,
-2.915692836644673824e-01,
-7.731874496158220609e+02,
2.970720861653864731e+00,
3.750993163563867583e+00,
-2.685621831341613582e-16,
-1.929199909300208660e+01,
4.366717845129381576e-02,
3.123132971249685530e-02,
-2.678574431623992336e-01,
1.917795542876457538e-17,
-1.593015076001720034e-03,
7.000000000000000000e+00,
},
{
-6.901251756324552000e+06,
-4.047360305830268189e+05,
2.459563924285483954e+05,
4.392735652382676562e+03,
-4.033130724788013595e+03,
-1.067310294202250986e+01,
1.961182171107272509e+01,
-5.497291615841568193e-15,
-2.101100026953513734e+06,
-5.329596311111354589e+04,
5.185742342181141430e+04,
2.433818529677650417e+02,
-5.046069405935504619e+02,
5.055470429759027079e-02,
8.166176118231813774e-01,
-2.669309603585185250e+05,
-1.820558429729546333e+03,
4.329660105125944938e+03,
-2.601280540442613365e+00,
-2.100943455353697686e+01,
5.889049478739813449e-15,
-1.858836868509951091e+04,
3.346134037644029746e+01,
1.801974628318452289e+02,
-2.128536788035924610e-01,
-2.916042939750336793e-01,
-7.729877908341163675e+02,
2.970305594551552186e+00,
3.751107765188241849e+00,
-1.051454248946443701e-15,
-1.929086242279554142e+01,
4.367059168224447785e-02,
3.123851226089758779e-02,
-2.678950626719590611e-01,
7.509232460136205065e-17,
-1.593556533119596524e-03,
7.000000000000000000e+00,
},
{
-6.896374999633412808e+06,
-4.045002389221610501e+05,
2.458304986449986172e+05,
4.391023113389828723e+03,
-4.031845216223885018e+03,
-1.067099717812805082e+01,
1.960934818728414086e+01,
5.267310387354453114e-15,
-2.099898254316557199e+06,
-5.327243974536754831e+04,
5.183779641692815494e+04,
2.433235459894777364e+02,
-5.045131908548892739e+02,
5.054459969492861027e-02,
8.166231546762532378e-01,
-2.668139741550918552e+05,
-1.820054621743484631e+03,
4.328597416589360364e+03,
-2.600605421847686838e+00,
-2.100832350505260493e+01,
-5.643092241629074632e-15,
-1.858269774029084510e+04,
3.345065897564760604e+01,
1.801771840508723983e+02,
-2.128482250102578799e-01,
-2.916276334345511700e-01,
-7.728547245756144548e+02,
2.970028796667893545e+00,
3.751184148479609792e+00,
1.007613870764898182e-15,
-1.929010468077077434e+01,
4.367286690438342001e-02,
3.124330093836979322e-02,
-2.679201415081114424e-01,
-7.196662178002771011e-17,
-1.593917561811071656e-03,
7.000000000000000000e+00,
},
{
-6.893938059985689819e+06,
-4.043824017626325949e+05,
2.457675796986884088e+05,
4.390167146334182689e+03,
-4.031202654069226810e+03,
-1.066994451628971063e+01,
1.960811161515968593e+01,
4.444857883061833241e-16,
-2.099297661407670937e+06,
-5.326068265679103934e+04,
5.182798627740281518e+04,
2.432943994242061763e+02,
-5.044663251932049093e+02,
5.053954812195226437e-02,
8.166259256873209527e-01,
-2.667555036757822963e+05,
-1.819802783298325949e+03,
4.328066199984862578e+03,
-2.600267930886235757e+00,
-2.100776802525436793e+01,
-4.762138503964536821e-16,
-1.857986307439319353e+04,
3.344531964087593678e+01,
1.801670459953005263e+02,
-2.128454981335636542e-01,
-2.916393029400541903e-01,
-7.727882033214762032e+02,
2.969890411780478967e+00,
3.751222334788695267e+00,
8.503445152266570232e-17,
-1.928972582119317636e+01,
4.367400443593966869e-02,
3.124569537065871247e-02,
-2.679326806750982892e-01,
-6.073622545619627755e-18,
-1.594098093340872747e-03,
7.000000000000000000e+00,
},
{
-6.891502078915272839e+06,
-4.042646036976278992e+05,
2.457046793743316375e+05,
4.389311380831834867e+03,
-4.030560219958555535e+03,
-1.066889200115966929e+01,
1.960687516952433995e+01,
-3.898461506994799248e-15,
-2.098697264009854756e+06,
-5.324892862985523243e+04,
5.181817837901956227e+04,
2.432652574737043665e+02,
-5.044194656685559721e+02,
5.053449703408948585e-02,
8.166286964214453103e-01,
-2.666970482720989385e+05,
-1.819550988539999935e+03,
4.327535068466982921e+03,
-2.599930485467400132e+00,
-2.100721257508200779e+01,
4.176892487208153672e-15,
-1.857702894600328727e+04,
3.343998121625275388e+01,
1.801569088295255767e+02,
-2.128427712700594054e-01,
-2.916509722960543005e-01,
-7.727216899824476286e+02,
2.969752036260645323e+00,
3.751260517540436101e+00,
-7.458682020412722139e-16,
-1.928934696923920455e+01,
4.367514191447595395e-02,
3.124808986531228683e-02,
-2.679452196746822668e-01,
5.327591040660233899e-17,
-1.594278636326801769e-03,
7.000000000000000000e+00,
},
{
-6.886632990843787789e+06,
-4.040291247929701931e+05,
2.455789345664238790e+05,
4.387600454265028020e+03,
-4.029275735746371083e+03,
-1.066678741092725780e+01,
1.960440265764864165e+01,
3.639746353337936233e-15,
-2.097497055461639538e+06,
-5.322542975723211566e+04,
5.179856930327416922e+04,
2.432069874135013094e+02,
-5.043257650261796812e+02,
5.052439631270016357e-02,
8.166342370589700916e-01,
-2.665801826736910152e+05,
-1.819047530048128465e+03,
4.326473060623364290e+03,
-2.599255731218087728e+00,
-2.100610176360461878e+01,
-3.899985305703558763e-15,
-1.857136230125675866e+04,
3.342930709667499656e+01,
1.801366371669279829e+02,
-2.128373175823747299e-01,
-2.916743105595484553e-01,
-7.725886870448244963e+02,
2.969475313318468146e+00,
3.751336872373046916e+00,
6.964718558274904537e-16,
-1.928858928820346819e+01,
4.367741671246904572e-02,
3.125287904170174352e-02,
-2.679702971716113047e-01,
-4.975126908815686338e-17,
-1.594639756667300123e-03,
7.000000000000000000e+00,
},
{
-6.879336537680666894e+06,
-4.036761992809000658e+05,
2.453904568626848049e+05,
4.385035574670369897e+03,
-4.027349968990682555e+03,
-1.066363162521492747e+01,
1.960069483805127177e+01,
2.697100815503618797e-16,
-2.095698207186897984e+06,
-5.319020438757733791e+04,
5.176917248319378996e+04,
2.431196169108704908e+02,
-5.041852600642257585e+02,
5.050924886838367711e-02,
8.166425459388466646e-01,
-2.664049972313128528e+05,
-1.818292669730815760e+03,
4.324880686584398973e+03,
-2.598243941240181876e+00,
-2.100443576851817440e+01,
-2.890258805034081227e-16,
-1.856286636238331994e+04,
3.341330273898600467e+01,
1.801062363437660281e+02,
-2.128291371502671059e-01,
-2.917093168335360698e-01,
-7.723892419711044113e+02,
2.969060299142292969e+00,
3.751451377949118093e+00,
5.162083617130938522e-17,
-1.928745282383491855e+01,
4.368082851190460691e-02,
3.126006327394819512e-02,
-2.680079121612927717e-01,
-3.687850682968499018e-18,
-1.595181523100629639e-03,
7.000000000000000000e+00,
},
{
-6.874477016694128513e+06,
-4.034411106664946419e+05,
2.452648979926337488e+05,
4.383326661128713567e+03,
-4.026066763837467988e+03,
-1.066152850086009884e+01,
1.959822359025291760e+01,
-2.284058785430027115e-15,
-2.094499950536483433e+06,
-5.316673608993722155e+04,
5.174958579182472749e+04,
2.430613929569838945e+02,
-5.040916207451311948e+02,
5.049915299615218012e-02,
8.166480838081342508e-01,
-2.662882821876809467e+05,
-1.817789647693220786e+03,
4.323819528845378954e+03,
-2.597569642092755426e+00,
-2.100332525318360410e+01,
2.447815198497756481e-15,
-1.855720508720416910e+04,
3.340263771284143246e+01,
1.800859735742020291e+02,
-2.128236835950413353e-01,
-2.917326536020338201e-01,
-7.722563181294925698e+02,
2.968783669838222394e+00,
3.751527697221316515e+00,
-4.372186977131965826e-16,
-1.928669521904961570e+01,
4.368310277983481621e-02,
3.126485307385345330e-02,
-2.680329879838507789e-01,
3.123768326094879530e-17,
-1.595542758005327267e-03,
7.000000000000000000e+00,
},
{
-6.872048689293996431e+06,
-4.033236248338066507e+05,
2.452021464185904188e+05,
4.382472506047727620e+03,
-4.025425352974079033e+03,
-1.066047715844210941e+01,
1.959698815587950449e+01,
1.334315539966874321e-15,
-2.093901114657252794e+06,
-5.315500652300220827e+04,
5.173979580094481935e+04,
2.430322878917081368e+02,
-5.040448102791110614e+02,
5.049410578679094236e-02,
8.166508523276686526e-01,
-2.662299472278368776e+05,
-1.817538202099440241e+03,
4.323289077411235667e+03,
-2.597232560744839880e+00,
-2.100277003992551883e+01,
-1.430032116349237421e-15,
-1.855437525446860673e+04,
3.339730656290469568e+01,
1.800758435228545409e+02,
-2.128209568372096405e-01,
-2.917443217620366847e-01,
-7.721898680672784394e+02,
2.968645369226983632e+00,
3.751565851524730988e+00,
2.554358136608186630e-16,
-1.928631642809604330e+01,
4.368423983428920687e-02,
3.126724806731964734e-02,
-2.680455256439381873e-01,
-1.825062644526788201e-17,
-1.595723392642613148e-03,
7.000000000000000000e+00,
},
{
-6.869621316737094894e+06,
-4.032061779647562653e+05,
2.451394134102076059e+05,
4.381618552018849186e+03,
-4.024784069878654464e+03,
-1.065942596249197294e+01,
1.959575284783251803e+01,
3.302270367246575918e-15,
-2.093302473647034261e+06,
-5.314328000942934887e+04,
5.173000804580146360e+04,
2.430031874329389723e+02,
-5.039980059407159843e+02,
5.048905906210424122e-02,
8.166536205704989504e-01,
-2.661716273033491452e+05,
-1.817286800109782234e+03,
4.322758710911469279e+03,
-2.596895524874152095e+00,
-2.100221485627013251e+01,
-3.539286921251305497e-15,
-1.855154595813937340e+04,
3.339197632150366246e+01,
1.800657143603172301e+02,
-2.128182300926641235e-01,
-2.917559897725431894e-01,
-7.721234259091613694e+02,
2.968507077975687025e+00,
3.751604002273406735e+00,
6.322191763977798739e-16,
-1.928593764476892858e+01,
4.368537683574931496e-02,
3.126964312312433686e-02,
-2.680580631365542810e-01,
-4.517306405480952978e-17,
-1.595904038736609826e-03,
7.000000000000000000e+00,
},
{
-6.867194898609580472e+06,
-4.030887700448124669e+05,
2.450766989612438774e+05,
4.380764798985997004e+03,
-4.024142914520581144e+03,
-1.065837491297819817e+01,
1.959451766609391399e+01,
-4.433423513320020836e-15,
-2.092704027434647549e+06,
-5.313155654829545529e+04,
5.172022252579514316e+04,
2.429740915796771219e+02,
-5.039512077289021477e+02,
5.048401282244546068e-02,
8.166563885366515674e-01,
-2.661133224097519997e+05,
-1.817035441714539729e+03,
4.322228429329190476e+03,
-2.596558534478608848e+00,
-2.100165970221487655e+01,
4.751801168530928998e-15,
-1.854871719809429487e+04,
3.338664698848898382e+01,
1.800555860864805879e+02,
-2.128155033615591329e-01,
-2.917676576335537786e-01,
-7.720569916539191127e+02,
2.968368796084410732e+00,
3.751642149467630638e+00,
-8.488404155920162740e-16,
-1.928555886906856642e+01,
4.368651378423337589e-02,
3.127203824126458670e-02,
-2.680706004616910665e-01,
6.065321553554705338e-17,
-1.596084696287379317e-03,
7.000000000000000000e+00,
},
{
-6.864769434497574344e+06,
-4.029714010595158907e+05,
2.450140030654552684e+05,
4.379911246894831493e+03,
-4.023501886869215014e+03,
-1.065732400988641793e+01,
1.959328261064560195e+01,
-2.101889025469216932e-15,
-2.092105775948894443e+06,
-5.311983613869525288e+04,
5.171043924032596988e+04,
2.429450003312166473e+02,
-5.039044156426238601e+02,
5.047896706673663664e-02,
8.166591562261532600e-01,
-2.660550325425776537e+05,
-1.816784126905891753e+03,
4.321698232647494478e+03,
-2.596221589537708319e+00,
-2.100110457775717165e+01,
2.252914537696480531e-15,
-1.854588897421111324e+04,
3.338131856360587335e+01,
1.800454587012350771e+02,
-2.128127766435376489e-01,
-2.917793253450696733e-01,
-7.719905653003294219e+02,
2.968230523549939104e+00,
3.751680293107698461e+00,
-4.024652628073522637e-16,
-1.928518010099531921e+01,
4.368765067970487026e-02,
3.127443342173755886e-02,
-2.680831376193418825e-01,
2.875888722032177316e-17,
-1.596265365294992095e-03,
7.000000000000000000e+00,
},
{
-6.862344923987636343e+06,
-4.028540709943415131e+05,
2.449513257166051771e+05,
4.379057895689156794e+03,
-4.022860986893959762e+03,
-1.065627325318369678e+01,
1.959204768146954834e+01,
-1.103294415665512687e-16,
-2.091507719118653564e+06,
-5.310811877970464411e+04,
5.170065818879481230e+04,
2.429159136865337416e+02,
-5.038576296808377606e+02,
5.047392179545224372e-02,
8.166619236390304515e-01,
-2.659967576973634423e+05,
-1.816532855673975064e+03,
4.321168120849500156e+03,
-2.595884690050929144e+00,
-2.100054948289444923e+01,
1.182611912092223552e-16,
-1.854306128636771609e+04,
3.337599104671398464e+01,
1.800353322044711604e+02,
-2.128100499387972355e-01,
-2.917909929070913178e-01,
-7.719241468471702774e+02,
2.968092260372627855e+00,
3.751718433193896640e+00,
-2.112719437900897937e-17,
-1.928480134054947470e+01,
4.368878752218666173e-02,
3.127682866454031818e-02,
-2.680956746094987353e-01,
1.509737345833939943e-18,
-1.596446045759509743e-03,
7.000000000000000000e+00,
},
{
-6.857498762120919302e+06,
-4.026195275663727080e+05,
2.448260266347806028e+05,
4.377351795711749219e+03,
-4.021579569849403924e+03,
-1.065417217883511292e+01,
1.958957820186203236e+01,
-4.042264886149675868e-15,
-2.090312189140316565e+06,
-5.308469320987955871e+04,
5.168110278515038954e+04,
2.428577542047729594e+02,
-5.037640761265677725e+02,
5.046383270626793316e-02,
8.166674576350178016e-01,
-2.658802530549684307e+05,
-1.816030443903250216e+03,
4.320108151837097466e+03,
-2.595211027414658034e+00,
-2.099943938194365955e+01,
4.333186532540603405e-15,
-1.853740751831186208e+04,
3.336533873621097968e+01,
1.800150818759503295e+02,
-2.128045965693117214e-01,
-2.918143275826547423e-01,
-7.717913336372574804e+02,
2.967815762086798426e+00,
3.751794702705837370e+00,
-7.741742997482526241e-16,
-1.928404384254123372e+01,
4.369106104820426328e-02,
3.128161933712352710e-02,
-2.681207480872995208e-01,
5.532610626289315714e-17,
-1.596807441059515517e-03,
7.000000000000000000e+00,
},
{
-6.850236661009437405e+06,
-4.022680039632013650e+05,
2.446382169582583010e+05,
4.374794150999823614e+03,
-4.019658401088657229e+03,
-1.065102166457443289e+01,
1.958587492904153748e+01,
-9.241588347352328648e-16,
-2.088520352312350646e+06,
-5.304957771180200507e+04,
5.165178641924624390e+04,
2.427705494877458818e+02,
-5.036237917027644926e+02,
5.044870270355807790e-02,
8.166757565549791487e-01,
-2.657056086445645196e+05,
-1.815277152844613056e+03,
4.318518834524294107e+03,
-2.594200874173290483e+00,
-2.099777445241553764e+01,
9.907792651735886776e-16,
-1.852893088347450976e+04,
3.334936707585403326e+01,
1.799847130440444118e+02,
-2.127964166146371905e-01,
-2.918493284748118199e-01,
-7.715921730450816085e+02,
2.967401084813496848e+00,
3.751909080326961021e+00,
-1.770337008823727862e-16,
-1.928290765274226004e+01,
4.369447093984486080e-02,
3.128880581339914951e-02,
-2.681583570476067102e-01,
1.265304285213048947e-17,
-1.597349619937931146e-03,
7.000000000000000000e+00,
},
{
-6.842983120024537668e+06,
-4.019168298592962092e+05,
2.444505738677741319e+05,
4.372238311261354283e+03,
-4.017738379761713986e+03,
-1.064787246638612928e+01,
1.958217279169718239e+01,
2.682119407936593485e-15,
-2.086730263548197225e+06,
-5.301448961973012047e+04,
5.162249012645715993e+04,
2.426833861554374039e+02,
-5.034835623430556666e+02,
5.043357705719959949e-02,
8.166840529867540610e-01,
-2.655310991910457960e+05,
-1.814524253482720042e+03,
4.316930280253684941e+03,
-2.593191129616720048e+00,
-2.099610978910341075e+01,
-2.875782690488710641e-15,
-1.852045906640548492e+04,
3.333340357770343587e+01,
1.799543522025632285e+02,
-2.127882367797687413e-01,
-2.918843280215601688e-01,
-7.713930834908424004e+02,
2.966986491706944840e+00,
3.752023425978876503e+00,
5.139049152971191658e-16,
-1.928177153160685720e+01,
4.369788035470006937e-02,
3.129599285048591945e-02,
-2.681959645000583925e-01,
-3.673410551360657381e-17,
-1.597891901931976092e-03,
7.000000000000000000e+00,
},
{
-6.835738128043325618e+06,
-4.015660048644391354e+05,
2.442630971954005072e+05,
4.369684275000246089e+03,
-4.015819505043976733e+03,
-1.064472458355451856e+01,
1.957847178934224885e+01,
5.668111121418560754e-15,
-2.084941920933356043e+06,
-5.297942890895843448e+04,
5.159321389064122923e+04,
2.425962641832024929e+02,
-5.033433880192985725e+02,
5.041845576560750192e-02,
8.166923469310588546e-01,
-2.653567245742109371e+05,
-1.813771745570718622e+03,
4.315342488570170644e+03,
-2.592181793545872637e+00,
-2.099444539193787307e+01,
-6.078045860496425617e-15,
-1.851199206381371914e+04,
3.331744823691758484e+01,
1.799239993485537070e+02,
-2.127800570648973044e-01,
-2.919193262229197727e-01,
-7.711940649415964799e+02,
2.966571982743646529e+00,
3.752137739669391792e+00,
1.086271384209444765e-15,
-1.928063547914346287e+01,
4.370128929283653013e-02,
3.130318044830547597e-02,
-2.682335704444502866e-01,
-7.765558518217089188e-17,
-1.598434287043395052e-03,
7.000000000000000000e+00,
},
{
-6.828501673958781175e+06,
-4.012155285888770595e+05,
2.440757867734011961e+05,
4.367132040721333397e+03,
-4.013901776111553772e+03,
-1.064157801535945680e+01,
1.957477192149030287e+01,
-1.122734063900945439e-15,
-2.083155322555669816e+06,
-5.294439555480173294e+04,
5.156395769567167736e+04,
2.425091835463292398e+02,
-5.032032687033689058e+02,
5.040333882761141582e-02,
8.167006383886097343e-01,
-2.651824846739810309e+05,
-1.813019628861396768e+03,
4.313755459018983856e+03,
-2.591172865767116473e+00,
-2.099278126084956497e+01,
1.204065657168731128e-15,
-1.850352987241081792e+04,
3.330150104868872774e+01,
1.798936544790641960e+02,
-2.127718774703616089e-01,
-2.919543230789102828e-01,
-7.709951173644196842e+02,
2.966157557901067054e+00,
3.752252021406309090e+00,
-2.152148274151286926e-16,
-1.927949949536048990e+01,
4.370469775433673959e-02,
3.131036860677939571e-02,
-2.682711748805778895e-01,
1.538700872782486864e-17,
-1.598976775273927738e-03,
7.000000000000000000e+00,
},
{
-6.821273746679532342e+06,
-4.008654006434233161e+05,
2.438886424342274258e+05,
4.364581606932939394e+03,
-4.011985192141237349e+03,
-1.063843276110137559e+01,
1.957107318765518400e+01,
5.772016462678209703e-15,
-2.081370466505285352e+06,
-5.290938953262126597e+04,
5.153472152543650009e+04,
2.424221442204681409e+02,
-5.030632043671604379e+02,
5.038822624036483344e-02,
8.167089273601224608e-01,
-2.650083793703978299e+05,
-1.812267903109943745e+03,
4.312169191145690093e+03,
-2.590164346065381373e+00,
-2.099111739576916946e+01,
-6.190824285242320619e-15,
-1.849507248891105337e+04,
3.328556200808927912e+01,
1.798633175911450337e+02,
-2.127636979959008634e-01,
-2.919893185895515719e-01,
-7.707962407264103604e+02,
2.965743217152830180e+00,
3.752366271197437264e+00,
1.106670016696462033e-15,
-1.927836358026643993e+01,
4.370810573921887071e-02,
3.131755732582929691e-02,
-2.683087778082377528e-01,
-7.913120899098558805e-17,
-1.599519366625313426e-03,
7.000000000000000000e+00,
},
{
-6.814054335130158812e+06,
-4.005156206392495660e+05,
2.437016640105228289e+05,
4.362032972141739265e+03,
-4.010069752310526383e+03,
-1.063528882005126697e+01,
1.956737558735099825e+01,
1.246942098371860236e-15,
-2.079587350874701748e+06,
-5.287441081777197542e+04,
5.150550536383879808e+04,
2.423351461807742453e+02,
-5.029231949825844481e+02,
5.037311800351883945e-02,
8.167172138463125730e-01,
-2.648344085436252644e+05,
-1.811516568068430161e+03,
4.310583684496172282e+03,
-2.589156234257810496e+00,
-2.098945379662735178e+01,
-1.337564838166881022e-15,
-1.848661991003127696e+04,
3.326963111037841259e+01,
1.798329886818471834e+02,
-2.127555186421467015e-01,
-2.920243127548633466e-01,
-7.705974349946807251e+02,
2.965328960478301301e+00,
3.752480489050570078e+00,
2.391289457407320529e-16,
-1.927722773386965471e+01,
4.371151324759683932e-02,
3.132474660537679784e-02,
-2.683463792272250403e-01,
-1.710052509138688363e-17,
-1.600062061099288791e-03,
7.000000000000000000e+00,
},
{
-6.806843428250773810e+06,
-4.001661881881057634e+05,
2.435148513351165748e+05,
4.359486134858248988e+03,
-4.008155455797590093e+03,
-1.063214619150429563e+01,
1.956367912009210031e+01,
-1.304235138185740767e-15,
-2.077805973758703098e+06,
-5.283945938565883262e+04,
5.147630919479626027e+04,
2.422481894028265117e+02,
-5.027832405215693825e+02,
5.035801411474611494e-02,
8.167254978478956096e-01,
-2.646605720739465905e+05,
-1.810765623491723090e+03,
4.308998938616632586e+03,
-2.588148530136220149e+00,
-2.098779046335483756e+01,
1.399175156531503508e-15,
-1.847817213249096312e+04,
3.325370835067321451e+01,
1.798026677482235698e+02,
-2.127473394090230452e-01,
-2.920593055748657019e-01,
-7.703987001363650506e+02,
2.964914787852308553e+00,
3.752594674973509736e+00,
-2.501710340077439238e-16,
-1.927609195617858617e+01,
4.371492027950867054e-02,
3.133193644534355143e-02,
-2.683839791373365258e-01,
1.789212621860745786e-17,
-1.600604858697592895e-03,
7.000000000000000000e+00,
},
{
-6.799641014997348189e+06,
-3.998171029022086295e+05,
2.433282042410302674e+05,
4.356941093593954065e+03,
-4.006242301781322112e+03,
-1.062900487475138789e+01,
1.955998378539317173e+01,
3.773137934964273268e-15,
-2.076026333254422294e+06,
-5.280453521170750901e+04,
5.144713300224192062e+04,
2.421612738621410585e+02,
-5.026433409560636960e+02,
5.034291457211835519e-02,
8.167337793655863321e-01,
-2.644868698417688138e+05,
-1.810015069134356963e+03,
4.307414953053626959e+03,
-2.587141233497677995e+00,
-2.098612739588239506e+01,
-4.048242281495591993e-15,
-1.846972915301234025e+04,
3.323779372412360544e+01,
1.797723547873287941e+02,
-2.127391602965961748e-01,
-2.920942970495781221e-01,
-7.702000361186188684e+02,
2.964500699250608662e+00,
3.752708828974051780e+00,
7.239008067098316974e-16,
-1.927495624720165779e+01,
4.371832683500757877e-02,
3.133912684565113432e-02,
-2.684215775383682057e-01,
-5.177875645936344005e-17,
-1.601147759421953738e-03,
7.000000000000000000e+00,
},
{
-6.792447084341494367e+06,
-3.994683643942002091e+05,
2.431417225614722120e+05,
4.354397846860491882e+03,
-4.004330289441280911e+03,
-1.062586486907190420e+01,
1.955628958276911078e+01,
2.652082030782665117e-15,
-2.074248427461287938e+06,
-5.276963827135564497e+04,
5.141797677012330678e+04,
2.420743995340448009e+02,
-5.025034962580312481e+02,
5.032781937470897499e-02,
8.167420584000997241e-01,
-2.643133017276173923e+05,
-1.809264904749715924e+03,
4.305831727354003306e+03,
-2.586134344152217324e+00,
-2.098446459414076770e+01,
-2.845760758459557961e-15,
-1.846129096832010327e+04,
3.322188722595610244e+01,
1.797420497962181685e+02,
-2.127309813052901122e-01,
-2.921292871790206469e-01,
-7.700014429086113523e+02,
2.964086694651259624e+00,
3.752822951059986867e+00,
5.089306062426223341e-16,
-1.927382060694721488e+01,
4.372173291418526148e-02,
3.134631780622122027e-02,
-2.684591744301162430e-01,
-3.640648444540197248e-17,
-1.601690763274107344e-03,
7.000000000000000000e+00,
},
{
-6.785261625270458870e+06,
-3.991199722772436799e+05,
2.429554061298391607e+05,
4.351856393171906348e+03,
-4.002419417957722089e+03,
-1.062272617375525385e+01,
1.955259651173508928e+01,
-2.978058154949776831e-15,
-2.072472254481038311e+06,
-5.273476854007625661e+04,
5.138884048240287666e+04,
2.419875663940464960e+02,
-5.023637063994543723e+02,
5.031272852079476249e-02,
8.167503349521501033e-01,
-2.641398676121389144e+05,
-1.808515130092423760e+03,
4.304249261064946950e+03,
-2.585127861899746637e+00,
-2.098280205806076282e+01,
3.195892921188279540e-15,
-1.845285757514162833e+04,
3.320598885134209866e+01,
1.797117527719488521e+02,
-2.127228024352436353e-01,
-2.921642759632132602e-01,
-7.698029204735335043e+02,
2.963672774030499113e+00,
3.752937041239106097e+00,
-5.716102592291163335e-16,
-1.927268503542365252e+01,
4.372513851710276012e-02,
3.135350932697548304e-02,
-2.684967698123771895e-01,
4.089477294933792123e-17,
-1.602233870255784752e-03,
7.000000000000000000e+00,
},
{
-6.780476020227774046e+06,
-3.988879031146201887e+05,
2.428312868976316822e+05,
4.350163086116240265e+03,
-4.001146137040006124e+03,
-1.062063443784444772e+01,
1.955013509280092521e+01,
-3.261094234298684050e-16,
-2.071289100898325676e+06,
-5.271153715661259048e+04,
5.136942736289741151e+04,
2.419297005043230229e+02,
-5.022705436129398890e+02,
5.030267036330599018e-02,
8.167558512747237209e-01,
-2.640243192533084657e+05,
-1.808015496715547215e+03,
4.303194705210206848e+03,
-2.584457099790119727e+00,
-2.098169384822972816e+01,
3.499887878497478078e-16,
-1.844723797335983181e+04,
3.319539444560464148e+01,
1.796915591803397945e+02,
-2.127173499224991882e-01,
-2.921876010719903216e-01,
-7.696706114866946109e+02,
2.963396873592081704e+00,
3.753013083636358882e+00,
-6.260278647793526989e-17,
-1.927192802592925958e+01,
4.372740865447299202e-02,
3.135830398531971874e-02,
-2.685218325618469737e-01,
4.479125058696967162e-18,
-1.602595998871936180e-03,
7.000000000000000000e+00,
},
{
-6.778084626787083223e+06,
-3.987719261650061817e+05,
2.427692547797153529e+05,
4.349316731044270455e+03,
-4.000509686511585187e+03,
-1.061958878809730678e+01,
1.954890457180656327e+01,
-1.689238260060347199e-15,
-2.070697812417711597e+06,
-5.269992599337374122e+04,
5.135972412305785110e+04,
2.419007744177750681e+02,
-5.022239713523333080e+02,
5.029764200815300262e-02,
8.167586090224518980e-01,
-2.639665673761001672e+05,
-1.807765744917946677e+03,
4.302667553733966997e+03,
-2.584121786533866150e+00,
-2.098113978757320552e+01,
1.812998981025144332e-15,
-1.844442897020692180e+04,
3.319009859541962726e+01,
1.796814637115795392e+02,
-2.127146236864164708e-01,
-2.921992634021757795e-01,
-7.696044687805961075e+02,
2.963258937363425716e+00,
3.753051099519201461e+00,
-3.243044890818407932e-16,
-1.927154953263936932e+01,
4.372854364380193704e-02,
3.136070140783557558e-02,
-2.685343636849479854e-01,
2.320429360178998739e-17,
-1.602777080368715914e-03,
7.000000000000000000e+00,
},
{
-6.775694172191380523e+06,
-3.986559876174890087e+05,
2.427072409857175080e+05,
4.348470574870009841e+03,
-3.999873362563052979e+03,
-1.061854328379075874e+01,
1.954767417643678229e+01,
8.523440870643368876e-16,
-2.070106716050773393e+06,
-5.268831784792548569e+04,
5.135002309570342914e+04,
2.418718529022880830e+02,
-5.021774051787792814e+02,
5.029261413502086886e-02,
8.167613664945094776e-01,
-2.639088303611494484e+05,
-1.807516036369188896e+03,
4.302140486536160097e+03,
-2.583786518463080828e+00,
-2.098058575641927703e+01,
-9.148238328110877352e-16,
-1.844162049871803174e+04,
3.318480364676454286e+01,
1.796713691273704114e+02,
-2.127118974637637883e-01,
-2.922109255828934660e-01,
-7.695383339310942574e+02,
2.963121010459971227e+00,
3.753089111858574523e+00,
1.636472597120661710e-16,
-1.927117104698811900e+01,
4.372967858021870047e-02,
3.136309889257671291e-02,
-2.685468946402831403e-01,
-1.170954435193366137e-17,
-1.602958173324715721e-03,
7.000000000000000000e+00,
},
{
-6.770916077909873798e+06,
-3.984242256715990370e+05,
2.425832683448737371e+05,
4.346778858994225629e+03,
-3.998601094284504143e+03,
-1.061645271138615776e+01,
1.954521376249924813e+01,
4.526892960523440709e-15,
-2.068925099377656821e+06,
-5.266511060676888155e+04,
5.133062767608033755e+04,
2.418140235807355509e+02,
-5.020842910886858590e+02,
5.028255983525137252e-02,
8.167668806117189817e-01,
-2.637934009003888350e+05,
-1.807016748981022602e+03,
4.301086604908895424e+03,
-2.583116117857152894e+00,
-2.097947778260894935e+01,
-4.859084758221969046e-15,
-1.843600515024858760e+04,
3.317421645338067293e+01,
1.796511826121701176e+02,
-2.127064450590148703e-01,
-2.922342494959282999e-01,
-7.694060877970275669e+02,
2.962845184626729633e+00,
3.753165125908058730e+00,
8.692755676458114779e-16,
-1.927041409860272836e+01,
4.373194829435108483e-02,
3.136789404872319248e-02,
-2.685719560476252932e-01,
-6.220430802136908665e-17,
-1.603320393614629047e-03,
7.000000000000000000e+00,
}
};
static double array_cof_err_sf_conicalP_half_0[39][37] = {
{
-2.417315388647217371e-10,
-8.786308031699215238e-13,
-6.349194514091686249e-12,
-2.269246878374829865e-13,
2.123418069524653532e-13,
-4.657976622818504983e-16,
-1.714840621047796373e-15,
3.460863995293911371e-31,
2.393724775057244405e-11,
-1.777619516301369063e-12,
-3.479693674621816285e-12,
1.348403782221931668e-14,
2.311832068045616632e-14,
1.373658274876447675e-19,
2.736168814132724559e-17,
6.720540507634264589e-12,
3.726178006741523994e-17,
9.857161763942728280e-14,
-8.359929776627473133e-17,
1.021269976853771390e-15,
3.401413148348684212e-31,
1.572954813155527538e-12,
-1.029911567082797617e-15,
-8.612482364694702392e-15,
3.628396472737511827e-18,
5.851888915365459663e-18,
-4.938161613801803691e-14,
-3.574212611734038791e-17,
-1.183613982712985780e-16,
-8.429197575524182546e-33,
9.308630891661865851e-16,
-1.814597718058515715e-18,
-9.336971777129846748e-19,
2.121511535502376666e-17,
-3.507270958223974815e-33,
-1.022438834718392046e-19,
},
{
-1.953066550578784318e-10,
3.788142054539775637e-12,
-1.131441342846663156e-11,
-2.821864263119805353e-13,
-1.470367054910890151e-13,
-5.546884530537383774e-16,
5.009339541978509445e-16,
1.623175688021846279e-32,
4.726865481791345655e-11,
-3.615128291990456570e-12,
-1.736708908876140070e-12,
-1.328829633001481329e-14,
1.535691020956994741e-14,
2.471246751708564380e-18,
-4.143911409706232033e-17,
1.815129628168210664e-11,
-4.851961731683344668e-14,
-3.173178155315842842e-13,
9.007842020808457330e-17,
-5.923488789303374052e-16,
-6.300877568420009115e-32,
-1.214355134254172163e-13,
-1.486159039463070157e-15,
-3.075846923827076087e-15,
4.610305885353607615e-18,
-1.028193544362685452e-17,
-1.932153923958463370e-14,
2.379220459258025721e-17,
-5.880159030307916283e-17,
8.776554092864822866e-33,
2.073858017846783797e-17,
-1.392995040601830275e-18,
4.656430834284910052e-19,
-1.102815297520499801e-17,
-1.933857362856748518e-33,
-8.502862734163842581e-20,
},
{
7.761108518885699534e-11,
1.442147855067324508e-11,
3.138948412258498765e-12,
-3.244515564776403525e-13,
5.232135343876829847e-14,
6.573750209172156290e-16,
-6.961220197026800903e-16,
3.029815015861751190e-31,
7.198450866044509053e-11,
9.348008250212511170e-13,
2.006089079108227105e-12,
6.105366606667087787e-15,
-1.200513127047964800e-14,
-2.096750025914806074e-18,
2.856575503132176057e-17,
2.673612655864570582e-11,
1.105024375335224760e-13,
7.675344684717905609e-14,
9.943796033188711174e-17,
1.477976878514408394e-16,
-2.063545571786559325e-31,
-8.841683318600595391e-13,
3.544690074117963188e-15,
4.108683244351837708e-15,
1.355316583073663090e-17,
2.710031725876556529e-17,
-1.324029603914033501e-14,
1.032500516261863354e-16,
1.294336372895692835e-16,
5.696384793738207526e-32,
4.001784812699175090e-17,
1.753385476906917444e-18,
-1.528382600177237932e-18,
-1.993809727907384041e-17,
-6.743443471690180787e-34,
9.064340637979372046e-20,
},
{
-2.683227761744880734e-10,
-9.888185914029030598e-12,
4.439307933926714266e-12,
-4.220653674430703490e-14,
-1.878378271741091537e-13,
-3.253638185254400230e-16,
1.267113861539802341e-15,
-2.534804380453643292e-31,
-1.954676741396195954e-10,
-4.036742713323144648e-13,
2.331814093796701603e-14,
5.397422140108348133e-15,
-3.109434851439464112e-15,
2.772593921791131952e-18,
1.573440164804181296e-17,
-2.358371644926439649e-11,
-6.166838199221870607e-14,
-2.261288872455480109e-13,
-1.850520716352073534e-16,
4.062294879531145448e-16,
-2.414679846656575748e-31,
7.475802750901144095e-13,
-6.677975586052697312e-16,
5.499898676872813705e-15,
-5.788397076612828233e-18,
1.863699410777972368e-17,
5.201612370959109018e-15,
-6.072016139931821673e-17,
-1.261743103778699698e-16,
-1.215408027129478978e-32,
-2.663916553144689214e-16,
1.996953903737960330e-18,
1.898042635638561771e-19,
-2.412607323145645103e-17,
-2.532204275366949326e-33,
6.193257279424771411e-20,
},
{
2.888827895529917617e-10,
-2.294877263113042986e-11,
-1.190226590670924578e-11,
-2.307012558326404630e-13,
-2.244983393436166578e-13,
-1.442079134469217961e-16,
-5.003946560110736367e-16,
-8.226491764375128010e-33,
5.371014474881241653e-11,
2.824997473920643841e-13,
-4.664024232353519291e-13,
4.335378136255959050e-15,
2.395739400568237833e-14,
-1.139113104525380324e-18,
4.128105651098558634e-17,
-2.927278101633271489e-12,
-4.221548989124291347e-15,
-4.512271982718551994e-13,
-1.401684687422195610e-16,
9.088334494581825116e-16,
2.370300728641377342e-32,
1.588848805182424826e-12,
-1.374992315542373882e-15,
-1.227852293988699730e-14,
3.361712165580621634e-18,
2.220563436833741782e-17,
6.680319059512191119e-15,
-7.921314805544134855e-17,
4.077580752751808467e-17,
-2.090090451674740184e-32,
-1.587282471350338352e-15,
1.814359029189658991e-18,
8.422140068007121214e-19,
-1.415631787192861038e-17,
7.668388862396640441e-34,
7.306389213204055586e-20,
},
{
2.146277848957827333e-10,
2.213600644198853996e-11,
4.792572599137164118e-12,
-6.477531347406280009e-14,
1.614630477768085885e-13,
-2.755668738347350305e-16,
-3.781665226521228767e-16,
-2.335312310837354869e-31,
6.256831565840491639e-11,
1.479726582913571932e-13,
-2.136572668046147431e-12,
-1.185140627608093322e-14,
-8.146178056589155291e-15,
2.331690567999226955e-18,
-4.112159516227693366e-17,
-1.769644523798606339e-11,
2.900988907415204346e-14,
8.340554850720112433e-14,
-1.820407505952165405e-16,
-9.947924536679579639e-16,
2.664952125527594277e-31,
1.146298759501689560e-12,
-1.144548411839549203e-16,
-4.986219834810641064e-15,
9.248159328188389355e-18,
2.325419215293790730e-17,
5.319022685567445348e-14,
-1.419066296061396846e-16,
2.655355752811380874e-17,
4.444860951719972477e-32,
-1.691956290910257786e-15,
1.903618495501349132e-18,
-1.479512636515517150e-18,
-5.112981308403333270e-18,
5.096677680063030085e-34,
1.059432712370094468e-19,
},
{
-1.577053392377990409e-10,
-5.268782034481113939e-12,
-8.263595309828303323e-12,
2.766443065659024494e-13,
6.165885923165421407e-14,
7.853745370547848038e-16,
-4.161737653826338055e-16,
1.294341141751533693e-32,
1.056089628736197660e-10,
1.967380604538048940e-12,
-2.472407703370917151e-13,
-3.087726624629601406e-15,
-2.322133882527985530e-14,
1.618466993972300560e-18,
4.831208382132735809e-17,
-2.021102515873052886e-11,
-1.720347636625383752e-14,
3.117404205125754040e-13,
1.127496190638046798e-16,
-9.035827957842418008e-16,
-6.826289655801359621e-32,
1.792674635445422022e-12,
-1.911418548900410404e-15,
-7.816571783645250908e-15,
-7.895041079023940873e-18,
-1.741703533138066358e-17,
2.867484591452889075e-15,
-1.308020546106860501e-16,
-9.658823840911192014e-17,
-2.622684765542574043e-32,
-8.784391374197074584e-16,
2.528979526855508206e-18,
1.352327507243427507e-18,
6.555907766388876103e-18,
-2.060292716661716355e-33,
-4.425968780371278030e-20,
},
{
4.623243607415133382e-10,
1.707246870039086456e-11,
1.380154374079545516e-11,
-4.177436317767363570e-13,
1.403766820551776348e-13,
7.439620164404785469e-16,
-3.406817720336962059e-16,
-3.219109795105833148e-31,
-1.779222788749079010e-10,
3.324069790408724250e-14,
2.413701123932606165e-12,
7.989429762288454900e-16,
2.108182904332326177e-14,
1.594011982468769696e-20,
-2.846117745690001301e-17,
1.433313985798828065e-11,
-6.876205409084602772e-14,
-1.131444930444328777e-13,
1.352119384579100041e-16,
-1.583170184138278731e-15,
2.938030446476255977e-31,
1.557494615867008490e-12,
-2.953356286860299094e-15,
2.683890407806446566e-16,
8.580249743915996526e-18,
-1.646606618443557198e-17,
-3.459599250914757847e-14,
1.420608234351158253e-16,
9.133949649408532367e-17,
4.076358035703758593e-32,
-1.580460106626580925e-15,
-3.437526756922930102e-18,
-1.633789958081360531e-18,
-4.395255261852463030e-19,
1.172457004299394128e-33,
-4.065213016685264274e-20,
},
{
1.209686079901809989e-10,
-5.673784752778796540e-13,
6.414183410080696627e-12,
-8.548860703949959270e-14,
-1.589422925612298718e-13,
8.599598753216088515e-17,
5.804464858450466721e-16,
6.259765560862475386e-32,
1.053250780265778578e-10,
-5.928916182077081215e-13,
-8.208342722927695165e-13,
-1.396197783672613428e-14,
-6.004887575724407895e-15,
-1.547715815105368119e-18,
-1.732868926663426805e-17,
2.791355721434517829e-12,
-9.789401903639447228e-14,
3.988767351167003475e-13,
1.457255032192279802e-16,
-1.297579187919867098e-15,
-5.058738097773558909e-32,
-2.637023224817514233e-13,
1.164542010324614507e-15,
-5.482182529516821719e-15,
1.366648594433651500e-17,
-1.761529761736556322e-17,
5.502829018640382947e-15,
1.682069209180919146e-16,
-2.934503581761021879e-17,
8.315933332138612851e-33,
1.432051404934050846e-15,
-1.106282425261880239e-18,
-1.146707602780643073e-18,
9.028563532634764231e-18,
-8.122684225353532797e-34,
3.270342305223082226e-20,
},
{
-4.442628101273654766e-10,
-6.129706207727451780e-12,
6.352163335240422643e-12,
-1.331092430110431101e-13,
1.166021826601863334e-13,
4.062502969388162246e-16,
-1.301740539355248825e-15,
4.210735474125949093e-32,
-1.567301045738033970e-10,
2.679934141346113015e-12,
-2.450732861094665412e-12,
8.131985787164721691e-15,
-2.524963583658553763e-14,
-3.106222749781278829e-18,
-5.024376936049728842e-17,
8.883811893500028655e-12,
1.103095521915619374e-13,
-7.765095627794966904e-14,
1.496192932741984538e-16,
-1.131271592111012933e-15,
7.757199335980601233e-32,
1.393416848040413504e-12,
-2.876875982987423992e-15,
7.848288721712410156e-15,
5.659006746257116034e-18,
1.198414310074676188e-17,
-1.810350577951430758e-14,
-1.597406457065412143e-16,
1.125948061043533630e-17,
1.172920906380070000e-32,
5.931811944675498653e-17,
-3.338898017529450565e-18,
-6.582308648086201060e-19,
-2.463855859136881617e-17,
-2.672548819456177453e-34,
-8.648380149846944162e-20,
},
{
8.017491145225958212e-11,
-2.310823458482328776e-11,
-8.774846563006223176e-12,
4.369417434956650732e-14,
1.697019268694063733e-13,
-7.628259335550078379e-16,
2.674854332305257929e-16,
1.928750275799964571e-32,
-7.334773083510907947e-11,
3.609387328433186377e-12,
1.139302164550747183e-12,
-2.428708160543424103e-15,
-1.777853700906216834e-14,
3.431259227959219616e-18,
5.036563515737738946e-17,
-1.117717268881248568e-11,
2.137862055083745176e-14,
-3.423568925053737263e-13,
-9.811531346202803792e-17,
2.790212856035866283e-16,
-1.840595457392855723e-32,
-2.038647152290596021e-13,
2.994122000717198278e-15,
3.238469830136236254e-15,
-3.413723386728484009e-18,
1.097058801879905042e-17,
3.004888320042154942e-14,
-4.605844286199893239e-17,
1.752897090890412623e-16,
-2.453760693532668911e-33,
6.576297389225417740e-16,
9.161384303265001910e-19,
-7.714142642329228970e-19,
2.771888688936426706e-17,
2.370155003135596500e-34,
-6.336475252074037755e-20,
},
{
7.522997466735699398e-11,
-6.207131424479497046e-12,
-5.738394531811266015e-12,
-3.910537379200405091e-13,
-1.048603470486021004e-13,
8.177029710800069951e-16,
1.564358271495841558e-15,
4.902755926797825514e-32,
-6.605189817843677778e-13,
-3.521900029264187832e-13,
-2.661961381519899066e-12,
4.802346914608707824e-15,
1.928224868269495074e-14,
2.625646928319705768e-18,
-2.094031571403997190e-17,
-4.203222730601843101e-12,
-1.933567668644030625e-14,
1.593792966631292744e-13,
1.077707421297564427e-16,
-4.319979138361634307e-16,
-8.153432922279151749e-32,
8.452210436787551357e-13,
2.759224292836735841e-15,
-8.228642022525709731e-16,
9.628222278510899561e-18,
1.381731690079851693e-17,
-2.090961538918534413e-14,
3.194537834876541280e-17,
-1.489407060947467567e-16,
7.685566455557319114e-33,
2.480956152680879485e-16,
-2.115481848758779473e-18,
2.185952634521976736e-19,
1.468871077438092498e-17,
-7.509784315618578199e-34,
6.698785122051461178e-20,
},
{
-1.611274763866952077e-10,
-9.358083844826362757e-12,
8.375395188753995393e-12,
-3.257206046327205346e-13,
1.836890442462271602e-13,
5.034151640611040482e-16,
4.891079083103819734e-16,
-9.238453189110967571e-32,
-4.892607695043099152e-11,
3.531441536449994202e-12,
2.420531852962516851e-14,
7.823272971699630081e-15,
-1.921879923903524911e-14,
1.710378790625175223e-18,
-3.996248570326129041e-17,
-1.457327629696384544e-11,
-9.156357001024527517e-14,
3.321116600113242707e-13,
-2.140019361023290082e-16,
-1.385052328436687393e-15,
1.881481504919097973e-31,
-2.875583174284847901e-13,
-1.748369831216264639e-15,
1.330894863121738957e-14,
1.211811711863789591e-17,
1.467811073858770901e-17,
2.505158010954810171e-14,
-1.600128442684359150e-17,
8.972272924788110054e-17,
-6.506837706444205929e-32,
8.450910745145124136e-16,
3.471073667572100979e-19,
-8.736467521045249103e-19,
1.401339659760065905e-17,
-1.901734423762671454e-33,
-7.689625953278913399e-20,
},
{
3.344877779894636803e-10,
-6.639914507233130516e-12,
-9.069438209450336092e-12,
1.689797810348729261e-14,
1.690568103061110194e-13,
4.653008496421308171e-16,
-1.623955730348346229e-15,
1.585401480798706012e-31,
-9.496021199659272075e-11,
3.405885141438629131e-12,
3.261331085388324239e-12,
1.180419373216307390e-14,
2.660234429286319975e-14,
2.959498611052419603e-18,
2.451807031887862267e-17,
4.924937883032154575e-12,
3.803514230195531027e-14,
1.701963275824775644e-14,
-1.374123033847156186e-16,
-7.174944624215999805e-16,
-6.965209006032447444e-32,
1.254844260452558317e-12,
-3.494009281924122351e-15,
-1.076512863270498443e-14,
-4.220352517995671747e-18,
4.795668887114909981e-18,
2.813960097422056181e-14,
-7.771297104947987009e-17,
-3.627085733460545206e-17,
1.342468459606966228e-33,
-1.426254922880782325e-15,
-1.520822339749822369e-18,
-1.154256847973844516e-18,
-4.669337358925320786e-18,
-2.542357887375641616e-33,
8.851619244070812663e-20,
},
{
-2.655918656675887227e-10,
-8.659165520726715071e-13,
-4.124047739069406675e-12,
2.346345583551142114e-13,
-1.200006333070451111e-13,
-1.351036932856196898e-16,
-8.441565747264840960e-16,
6.323639257454619817e-33,
1.937438371812535280e-10,
3.324655109280842972e-12,
9.763527169753123990e-13,
5.605270098603164437e-15,
1.972854210912863737e-14,
-2.182703922585618012e-18,
1.240329388815599336e-17,
-1.056354963800337611e-11,
-6.425505191160295113e-14,
3.166353387325215656e-13,
-6.410414745242908814e-17,
-1.429874466331098929e-15,
-2.330719799566116269e-32,
-6.019599151576668278e-13,
-1.515337737060435167e-15,
6.419321249228264597e-15,
1.077634915913566334e-17,
2.047435148566135221e-18,
3.544316827739118249e-14,
-1.792146310849344477e-17,
-2.158172877145535456e-16,
5.304806368247702546e-33,
1.369685764327423059e-15,
2.911729550511840667e-18,
-7.074072031823911334e-19,
-1.420417236887500321e-17,
4.049049983049757406e-35,
5.882365660511402201e-20,
},
{
-1.821825416413242162e-10,
7.109503114430286673e-14,
-1.169233153897154563e-11,
2.106478010212534798e-13,
1.933295993734164329e-13,
1.758778552368705264e-16,
-5.425559772712858725e-16,
2.515391248143630848e-32,
2.111503692843898278e-10,
2.178016807281595215e-12,
1.030286313634490667e-12,
-5.811396093220496679e-15,
-1.694622082073380328e-14,
-5.775105222805511859e-19,
-2.988179764378145057e-17,
-1.660936995089313646e-11,
-1.824256458674021880e-14,
3.457801193688055007e-13,
-1.122423536524007442e-16,
1.343466172027533864e-15,
-6.000277942480679492e-32,
-7.870548403434394437e-13,
2.161355199278068575e-15,
8.389457520668192900e-15,
-8.337492628695085790e-18,
5.959591008714718228e-18,
-4.066358493344430898e-14,
-1.099073894208056121e-16,
-9.675910406775804840e-17,
4.499567426160398620e-32,
-8.058835991422953363e-16,
2.071363034634990398e-18,
5.715884214578259038e-19,
2.177172104365415350e-18,
5.249166479782765542e-34,
9.044114295568070046e-21,
},
{
-4.013992544581159657e-10,
2.296149888242102907e-11,
-1.018906688737580552e-11,
-2.881999649571910544e-14,
-1.866640915242404162e-13,
-3.103642705594049818e-16,
-1.093944582687562868e-15,
2.761993568888605951e-31,
1.519483741980556356e-10,
9.613810494434951480e-13,
-2.710882109443364743e-12,
-8.628770818698231832e-15,
-1.211650714498090943e-14,
6.151067236961743414e-20,
-4.759740364385547108e-18,
-2.136121005363691610e-11,
-7.349676770670339973e-14,
3.432160148401054599e-13,
-7.662563519788082449e-17,
1.492582839722270444e-15,
8.877805395450771081e-33,
-1.030702169524606459e-12,
2.806671532389659687e-15,
8.424591598835105274e-15,
-7.466774733799090225e-18,
-8.251760647503103610e-18,
-4.236960521552962493e-14,
4.039152015021126264e-17,
1.043518134511220042e-16,
-1.530094599811650250e-33,
-5.198430317647380800e-16,
-3.452840097325118255e-20,
-2.680519745833481769e-18,
-8.137006899270861353e-18,
-2.233242841249442646e-34,
-9.222902010321717470e-20,
},
{
2.301857265459448235e-10,
-1.027104301739774887e-11,
-7.684059254261555602e-12,
-1.297182623417181348e-13,
2.261201535218070695e-13,
-2.081623469281728594e-16,
-1.269241215258521423e-15,
2.282368215416634868e-32,
-6.215827193724253656e-11,
1.092213223587274157e-12,
1.956286900556416858e-12,
-1.467828857849799699e-15,
2.291947660171284861e-14,
1.872099917525173450e-18,
5.183187634469623472e-17,
-1.682546439216257093e-11,
7.325608857111976340e-14,
1.970871769237855033e-13,
-2.026351959495920321e-16,
8.595121119464488599e-16,
-4.062344807611921442e-33,
-3.096287431517607527e-13,
-1.510675712645483956e-16,
-3.958980796529542866e-16,
1.082683910767392170e-17,
2.694898286875979759e-17,
-4.929935847086356203e-14,
1.027416727573819075e-16,
5.456682272019689280e-17,
-4.225598991464416993e-34,
1.498492935479600691e-15,
3.273610627403760548e-18,
4.166286159746225945e-19,
-1.096991786848797636e-17,
3.706823727388152653e-34,
-4.865734675117297706e-20,
},
{
-2.376299719094228903e-10,
7.173472033182541387e-12,
3.089421079164336984e-13,
2.591905766955018566e-13,
-1.220540195158857844e-14,
8.937398446955410881e-17,
-5.395110621255732559e-16,
2.694324866254438577e-32,
3.689754685955751039e-11,
-2.718857788471561115e-12,
8.122385158047833762e-13,
-8.977805760978385341e-15,
-1.594782356450584552e-14,
-1.801491434031898453e-18,
-1.748522748614314479e-17,
-2.190175948970994213e-11,
9.754694977028962873e-14,
2.398177197894264313e-13,
-6.096198487361220251e-17,
1.108973678405800345e-15,
1.175833701052577717e-31,
1.548827758790433313e-12,
3.602983493573663049e-16,
3.736398864360219546e-15,
-9.955770809755339052e-18,
-1.639103140728977934e-17,
-5.058641807253472217e-14,
1.669234413322022945e-16,
1.018918216254018284e-16,
1.092283535862327324e-32,
9.180980508211002948e-16,
-4.599719603928383311e-20,
2.046716458421848478e-18,
2.011135925632735566e-17,
1.595106667011202122e-34,
1.230465597217423503e-20,
},
{
-2.224166548553457377e-10,
-2.237086977968613473e-11,
-2.198302918680339015e-12,
-2.040676199465819818e-13,
-6.578911338642358236e-14,
-1.452158255837741126e-16,
3.035405390201776120e-16,
-2.372030581316205367e-32,
1.001466170361912746e-10,
-3.212159034631041748e-12,
3.606160065401966168e-12,
-7.318835633729322988e-15,
-2.427101665737165777e-14,
-3.314708248337544195e-18,
-1.149233221126271729e-17,
-2.009115442850675648e-11,
6.561833486104054122e-14,
1.618769217363787648e-13,
-9.239478946387157471e-17,
2.080135635299613278e-16,
2.719194509480197183e-32,
5.595708416828242433e-13,
-2.425869649438109343e-16,
1.211317595394463159e-15,
7.089519126490970231e-19,
-1.084232865883511914e-17,
-2.353963275471229983e-14,
-1.400083020802429621e-16,
-8.037854598759472794e-18,
-9.613405781947178190e-34,
1.059511123153076968e-15,
-4.118781992222511923e-19,
-7.202169183637692530e-19,
1.553880264833057799e-17,
-5.648650910465754018e-34,
9.296455162684815994e-20,
},
{
4.685993250513408718e-12,
-1.495286896524676842e-11,
7.500731465031957976e-12,
-4.235297380365965806e-13,
-1.926322931757393709e-13,
-7.901561799431567563e-16,
-7.669873945406052157e-16,
-1.576887214248454940e-31,
-2.474430502580152142e-11,
1.788941247865741908e-12,
-2.611589763584813493e-12,
7.011179886366976918e-16,
-4.668580278387942795e-15,
3.236163916176806955e-18,
-4.114957518935625200e-17,
-1.520726787793808300e-11,
1.971330596322724809e-15,
-3.888026912562583179e-13,
1.693947115284717868e-16,
-4.137080888212247921e-16,
-7.437948149052787720e-32,
-1.456694889012807439e-12,
-1.085078337657451880e-15,
-1.242911922485967905e-15,
6.140759734801867146e-18,
2.487856228774826525e-17,
2.074928030765205820e-14,
1.739174465552210229e-16,
2.381826110283590259e-17,
2.473320605613496479e-33,
1.613070163255114392e-15,
3.266133547737279920e-19,
9.705378798685811826e-19,
3.431648718592405922e-18,
-1.240319089889907214e-33,
1.256615107135583807e-20,
},
{
2.346878335548200502e-10,
-1.567757189319426336e-11,
6.848253847001120734e-12,
4.388677518842804694e-13,
-1.774916791621510693e-13,
-7.178132103463639118e-16,
7.185057906376727376e-16,
-2.977688041057439019e-31,
-9.362077410302275048e-11,
-3.550880098504454998e-12,
2.933651978431731694e-12,
7.090130005263739766e-15,
1.858654404004075901e-14,
2.207130535060316771e-18,
-8.244828702513180886e-18,
-1.328937252870994886e-12,
-5.949735835786753977e-14,
1.324682864203644934e-14,
2.124146575221642885e-16,
1.085232877771445815e-15,
2.686137299629406661e-32,
-1.381944130523770792e-12,
-7.901698684313657713e-16,
7.797874133117847973e-15,
-2.996463662994639673e-18,
-3.057863906000176136e-18,
3.494746474778506478e-15,
-3.563971731454482538e-18,
-8.529455181800738965e-18,
-2.737211816565643588e-32,
3.500564995442245202e-16,
-2.504473818868777053e-18,
-2.098414611170348822e-18,
7.387456309438823742e-18,
-1.231087722615471816e-33,
2.693954823882519039e-20,
},
{
-2.636839441875330276e-10,
-1.552120237234057101e-11,
9.308076063443668288e-13,
-7.637714633539464708e-14,
1.130757105347173095e-13,
1.590783627567452216e-16,
4.399710100449355818e-16,
1.158158567108766003e-31,
-7.136109875233307162e-11,
4.429203181095488243e-13,
-2.201284907291636770e-12,
-2.074546119569405072e-15,
2.231946326439157151e-14,
-1.184618237290457409e-18,
-1.645111938508085950e-17,
-1.457120284127879204e-12,
-3.208788885512985387e-14,
-6.923065712281695963e-14,
-9.636879448201592987e-17,
7.900662065933517387e-16,
1.371395980494894860e-31,
-9.530819916255214516e-13,
2.313742377147388217e-15,
-1.764671411874926222e-15,
1.372626526585056630e-17,
2.127114633163496740e-17,
3.447343220891995728e-14,
3.360116735657751242e-17,
7.434155003121827845e-17,
5.939368961709769524e-33,
1.126649201504809194e-15,
-3.448199579060171216e-18,
2.451679087675824349e-19,
-1.352855019135062050e-17,
-2.382968105141882164e-33,
8.691457258539463457e-20,
},
{
-3.694500493865027491e-10,
-2.321949529652773922e-11,
-4.011300976270968504e-12,
-4.447676660846553378e-13,
-1.733607894539649733e-13,
3.821060293757536439e-16,
-1.267801940576113656e-15,
-3.983821707872093045e-33,
-4.391787691581592686e-11,
-2.550295987481867310e-12,
-2.242234256840295212e-12,
-4.301672501547593524e-15,
1.099123361981895747e-14,
1.157042103256444610e-18,
2.576141884561138578e-17,
7.308380759175278836e-12,
-8.603565859876645909e-14,
3.835349859096777043e-13,
9.095957572316063016e-17,
1.730495352731492283e-15,
-6.435686155211188909e-33,
1.707703939207786202e-12,
-3.199551707819137015e-15,
1.117324652906647197e-14,
1.100405073403829517e-17,
3.344531143557338635e-18,
2.859985091514671404e-14,
-1.757780172818729395e-16,
-1.767903773698540635e-16,
1.219489959426722123e-33,
1.607533754157051662e-15,
-6.238356519047658538e-19,
-9.532935195360020934e-19,
2.754879345298771285e-17,
4.523582604408901743e-35,
5.099826318741914681e-20,
},
{
-2.429340791858106576e-10,
2.277326441186030622e-11,
-1.337898606044874796e-13,
-8.525207862471062067e-14,
-5.320800978653294510e-14,
-6.258787600882701355e-16,
8.713746418781501677e-16,
-2.985672301176515153e-31,
-3.124490445181503906e-13,
3.453626269462074234e-12,
-7.244514942939708758e-13,
-1.073847271142649465e-14,
3.843817848195073432e-15,
2.597673358180690238e-18,
-3.173123287453449912e-17,
-2.583435807049091478e-11,
-7.292538079884044703e-14,
1.564800630524294635e-13,
-1.068623682319433387e-16,
-1.268392137323812845e-16,
-3.649942958394730463e-31,
-4.451371359048401207e-13,
-2.471990205464164696e-16,
8.697897548085281976e-16,
-6.903803622892799378e-18,
4.055063096960730095e-18,
4.971078213279708616e-14,
1.666351135945917631e-16,
-2.756690284082666113e-17,
-2.749623251174001690e-32,
3.593041056974243743e-16,
3.065418296009488216e-18,
-2.132950815428543622e-18,
-1.143314456685615921e-17,
-6.601936906117553539e-34,
-2.090754727453989733e-20,
},
{
-1.331784302163051558e-10,
5.591755282426956133e-13,
1.416933323050410504e-11,
1.548575527193041690e-13,
3.184078225336725224e-14,
-6.845748149370095748e-16,
-4.387823521278634202e-16,
-7.642678441651919272e-32,
-1.040245699623344420e-10,
-1.319702640264068071e-12,
-2.101162741691462973e-12,
-1.630959333363205476e-16,
2.500188445890438175e-15,
1.850794252353940449e-18,
4.763173147398817273e-17,
-2.682741612577026407e-12,
-7.158129857453355922e-14,
3.822007639882970563e-13,
-1.224849145153781906e-16,
-1.343441206569100127e-15,
8.750296060994373486e-32,
-6.537413601979035238e-14,
3.670865736014218851e-16,
-5.826463567482377208e-16,
8.118613748545808792e-18,
1.225111198633279508e-17,
-2.842377007855420489e-15,
1.144479757046057517e-17,
-7.927458402282879378e-17,
-7.188614723251258603e-33,
-2.757626601111707482e-16,
1.035556918640277318e-18,
-2.685630009558721743e-18,
-7.793682763377862925e-18,
5.086997016907121050e-34,
-8.070085713160162285e-21,
},
{
-3.356671780178994020e-11,
-2.272230670434048532e-11,
-5.724211865742363184e-12,
1.375425892477543459e-13,
-1.794288564025373202e-13,
-1.154430890927441326e-16,
3.972369792322109239e-16,
1.063005259479857331e-31,
-2.494349164503946665e-11,
-1.271782249020214001e-12,
-1.143756435754359242e-12,
8.497712843610788401e-15,
-4.230727714666384054e-15,
-1.799339324470915992e-18,
3.293596740352253694e-17,
-1.012301593353067638e-11,
-7.643816469395452928e-14,
1.523839367080918238e-13,
-3.768120801068214904e-17,
1.089834022562557919e-15,
6.718534578055876445e-32,
2.694554627137386446e-13,
-2.858300247919877406e-15,
2.924205761691464722e-15,
-1.527642557646110910e-18,
-6.602664645856454713e-18,
-7.444656252562753932e-15,
-1.111924631215013906e-16,
5.865112541195117425e-18,
-1.833029633603248263e-32,
4.561101259573108189e-16,
-6.459822686899731447e-19,
2.018389833461479130e-18,
1.120271235829162831e-17,
2.795344427061637887e-33,
-1.435745011188257249e-20,
},
{
3.005172541320028178e-10,
-1.370268733633686867e-11,
-9.060134339653707874e-12,
-4.462921354145223085e-13,
-1.323273732650351909e-13,
3.200301746201783775e-16,
3.199655806729503260e-16,
-4.053884795269061537e-32,
-6.607384863551311059e-12,
2.374504701635174832e-12,
2.357904446596134840e-12,
-3.319040265076737965e-15,
2.132271770270004755e-14,
2.450099595788518193e-18,
4.389683753002888235e-17,
2.203151034567908141e-11,
-1.828221047684908290e-14,
-4.013205720724478480e-13,
-1.201295750980310241e-16,
-1.630317589308847282e-15,
3.200981560292794075e-31,
-9.463332118748113537e-14,
-1.486831194395387149e-15,
-9.699374387270406837e-15,
-2.631229639746239581e-18,
2.159497096189165787e-17,
1.935738960852302879e-14,
-1.853899867292593711e-16,
-1.305918823101772378e-16,
5.549920482727217853e-32,
4.455323657210237307e-16,
2.790554181543508452e-18,
-3.286885986842057512e-18,
7.094956835321128910e-20,
2.897732102982910645e-33,
1.058178932374253763e-19,
},
{
2.192388464270098673e-10,
-2.888380313138499620e-11,
6.803995484667604243e-12,
4.266613199301735528e-13,
-1.308126466283625630e-13,
8.675235605419271225e-16,
9.240342584633231856e-16,
-4.430087729467573523e-32,
5.853182153437143387e-11,
2.251520362167972499e-12,
3.062859095641944843e-12,
1.296668452867808160e-14,
1.847792555117981415e-14,
1.028250009523783759e-18,
-3.558749541018759375e-18,
4.757601148116736433e-12,
-1.101133536463773718e-13,
2.588669893049954538e-13,
1.460364033797666568e-16,
-1.170533903365135667e-15,
9.430099230873116460e-33,
-1.521007902660392380e-12,
-3.232720738001111332e-15,
3.059337634357590690e-16,
-1.100276421233264890e-17,
-1.159926995536252137e-18,
-1.798596950581207546e-14,
-2.052450894750813078e-16,
-1.800735089032956367e-16,
-1.130432334684093851e-32,
-7.958890818707076786e-16,
-2.064479106509487932e-18,
3.760293208728058495e-19,
-7.430804154061307069e-18,
1.078401285553902782e-33,
-8.323550785686877193e-20,
},
{
2.894830520450897921e-11,
1.348693957147175484e-11,
7.593888816492561900e-12,
1.770879884574521358e-14,
-4.255927337852021567e-14,
-4.486888910324259523e-16,
1.442228499028769681e-15,
-2.303688003065509558e-31,
4.010159737839021064e-11,
2.590894837848456745e-12,
-6.854073802120146575e-13,
5.115740952284162926e-15,
2.481004063117106206e-16,
-2.826455891500164935e-18,
-1.927323307355367517e-17,
1.608218701396875737e-11,
5.122970534474600731e-14,
2.847894197228451382e-13,
-1.100121717621230914e-16,
1.606795419714562943e-15,
1.008966088705971074e-31,
-1.041882773784306614e-12,
-1.997548248923857062e-15,
-1.098022155224158030e-14,
-2.324540778928751567e-18,
2.114352308312304506e-17,
-1.799575149195272767e-15,
-8.482532224834647504e-17,
-1.016388449360255838e-16,
5.524002446703394469e-32,
8.559607456248267199e-16,
9.635109735718740585e-20,
9.489307453608985505e-19,
2.566763591731067067e-17,
-5.004759057200290788e-33,
2.726093135271761281e-20,
},
{
4.568408947335859099e-10,
-1.577340126969016018e-11,
1.565111110569640268e-13,
2.033788947819960205e-13,
2.299244992659615814e-17,
1.729601311210439762e-16,
6.574012773463051056e-16,
-1.418098479527185281e-32,
-3.193902907000007866e-11,
-1.293720605418224871e-12,
3.280839688497145028e-12,
8.309728644944489913e-15,
1.354266104931075848e-14,
-2.910893111979808135e-18,
3.922822683973556669e-17,
-2.813157892185977052e-11,
-7.025370041613797998e-14,
-3.002085206915162814e-13,
-1.745964869361461950e-16,
-2.852510671587722060e-16,
-1.059399489807689225e-32,
-1.588943467654183069e-12,
1.390298075901591379e-15,
1.376849846373544874e-14,
1.327871798305289246e-17,
-1.003008915761293077e-17,
-5.573109686662905150e-14,
5.537123412922164593e-17,
-8.376341687330246294e-17,
-2.020379353388566458e-32,
-1.332300622556943985e-15,
-2.976211422812399973e-18,
-3.029937513762381978e-18,
-7.555444431860928005e-18,
-2.637784173269386163e-34,
-7.826097302957497223e-20,
},
{
-8.754891486864588811e-11,
1.271583264552618464e-11,
1.198517606224417559e-11,
-1.347930842512697924e-13,
7.397001688957383944e-14,
-4.521339439147946134e-16,
-1.016066238509316515e-16,
5.174136229104927388e-32,
4.913146013180379119e-11,
-9.565247086770645809e-13,
-2.197417644591959392e-12,
-6.050935470617616257e-15,
1.473109254994619461e-14,
2.456445786848968512e-18,
-1.044880183317541820e-17,
-2.801799415381156852e-11,
8.647297492103957722e-14,
4.013719109423245246e-13,
-1.661600398094524379e-16,
-8.527019585362846374e-16,
-5.520516663119690318e-32,
-1.437605479260912130e-12,
-2.259257470309397968e-15,
-2.450215274557327811e-15,
-1.095770353986475967e-17,
-2.159161985696010857e-17,
-3.693122143464756096e-14,
-7.863209833112935418e-17,
-1.669354483457940698e-16,
3.519448413121986978e-33,
1.064745808313580415e-15,
-3.320249618793967032e-18,
1.705074718399357538e-18,
-2.496338246091901191e-17,
-5.635809165967445851e-34,
1.581599625505551701e-20,
},
{
2.862002260258456838e-11,
2.802405735207270633e-11,
-1.111311753084882285e-11,
2.255742982770089115e-14,
1.750428964419248652e-13,
-4.131517506570922900e-16,
1.681439465791733998e-15,
9.642480067119578879e-32,
9.794547585625340063e-11,
2.360651253714996023e-13,
-6.015961293213325466e-14,
-1.042109869449022971e-15,
-4.043062455124998383e-15,
1.946885772921832371e-18,
2.279815043626474087e-17,
-2.085915171723272580e-11,
2.092877180403366901e-14,
-1.019074210713715737e-13,
9.752473312965033831e-17,
1.341677216090556666e-15,
-1.278063683125585194e-31,
-1.743974603126058584e-13,
-8.799888548681433159e-16,
-4.473714460347680052e-15,
-1.029081796515739244e-17,
-1.217352584871565177e-17,
4.366622014187769146e-14,
-1.739549922157747815e-16,
1.825639451988043936e-17,
4.700670074519949207e-32,
1.366336750972941031e-15,
2.218078448795459908e-18,
-1.135466205133660966e-18,
-2.291480203451069222e-17,
1.964016820960829757e-33,
-6.323973551195738079e-20,
},
{
3.181230098601123346e-10,
2.896044725822645082e-11,
-3.766451977969056463e-12,
-4.230198356958681486e-13,
-1.401789103292389584e-13,
-1.949881889444078625e-16,
-8.266291865717453338e-16,
-8.191218818922265079e-32,
-5.346280908171696743e-11,
7.595019203008170763e-13,
2.683612354955313767e-12,
-1.864665185582733981e-15,
3.039420015494361766e-15,
-1.037745401733518736e-18,
-2.709962842718493620e-17,
5.753422611009447828e-12,
6.687283452599676677e-14,
1.070388051408566789e-13,
4.874218824507828536e-17,
-1.243726240249027299e-15,
-1.867213783288839813e-31,
9.172090062922887186e-13,
1.005468860793410419e-15,
7.717934260336227098e-15,
3.135286223136686902e-18,
-2.014614649308818626e-17,
3.612409297021533527e-14,
-1.998958402701124462e-16,
3.156194860778922396e-17,
-3.566003970317504119e-32,
-1.434486255657930159e-15,
-3.235637403604840215e-18,
2.081167445010871555e-18,
-1.827073262328507401e-17,
-6.027067495284191582e-34,
1.839538891696020836e-20,
},
{
2.680650465306265220e-10,
-2.144216863524419863e-11,
8.706079101848094238e-12,
-2.692992673043150829e-13,
2.238815596767032411e-13,
8.314107738497520466e-16,
1.173378881476185899e-15,
-9.634841350094951745e-32,
-8.972575963849074765e-11,
2.494404450811446912e-12,
-1.583337926401531139e-12,
-1.339170588895969045e-14,
-2.667077438222362939e-14,
-3.662495772674491327e-19,
2.597945516385421382e-17,
2.453896437670925966e-11,
3.782125821058011796e-14,
1.166227662474488095e-13,
-1.596210598020685371e-16,
4.230694276655968374e-16,
-1.994581727162250100e-32,
8.600308142220372475e-13,
5.448381409659193883e-16,
4.428457490399613109e-15,
-1.227676925646908084e-18,
2.162870993139430249e-17,
3.697169066249872099e-14,
1.357237905359167950e-16,
1.946905864775957953e-16,
3.985421526852062217e-32,
1.575759120397814914e-16,
2.992878922431848303e-18,
-3.244360959126164454e-18,
-4.170997716873901277e-18,
2.908838702666425604e-33,
1.413319560541332598e-20,
},
{
4.054830022154002544e-10,
4.201327538640552842e-12,
-5.569130402481610044e-13,
3.195660726153598054e-14,
9.694594138892830392e-14,
-6.561766873919939472e-16,
-6.945615578654685142e-16,
1.786344547155332797e-32,
2.599667659358878309e-11,
3.384785334613217103e-12,
4.269127334669183656e-13,
-6.713670021098451820e-15,
2.514271250812173147e-14,
1.998418270246286002e-19,
6.626306669928883353e-18,
1.442123208097722167e-13,
-3.293768110222532672e-14,
-3.601474272358993624e-14,
-8.671509990128547322e-17,
1.381043524123085662e-15,
1.537729108370688025e-32,
-1.007393593134998148e-12,
1.549605000509494160e-15,
5.422391474371747104e-15,
1.339590100634451938e-17,
6.407164299093163196e-18,
-4.152034067605983344e-14,
-2.084137819507078097e-17,
1.322035601909671605e-16,
1.106792163619026445e-33,
1.329336371545081689e-16,
3.464767339458412125e-18,
-2.144517310128599140e-18,
2.206080189501663228e-17,
-3.765208424308904602e-34,
-7.844690000495148991e-20,
},
{
-1.932685178570106700e-10,
-6.940769957096563513e-12,
1.814624886138130517e-12,
1.292157773090079873e-14,
2.452565234329802711e-16,
-5.570471023734253484e-17,
9.513597545125600719e-16,
5.909775840633662546e-33,
7.966467155865890378e-11,
1.847153601052019368e-12,
-1.265782634248125207e-12,
-1.149164518896174442e-14,
-2.666248022236301556e-14,
-1.686514961730857416e-18,
-1.193766561609423115e-17,
-2.870051978630376764e-11,
9.540316426189015879e-14,
2.890670225084535869e-13,
1.029559853599379989e-16,
-7.244446247192870511e-16,
5.479519634535949933e-32,
1.497681861486535527e-12,
-1.387881981111909130e-15,
-9.753648590287090638e-15,
-5.009275152469889126e-19,
-1.417250566685267909e-17,
1.190241076409656250e-14,
1.646413421511933957e-16,
2.195550372900156234e-16,
-2.257112692677125769e-32,
-1.317620477796296958e-15,
2.141581736123840652e-18,
-3.043709254706982163e-19,
1.013589160064773267e-17,
-6.066556514845383301e-34,
6.886107894316235953e-20,
},
{
-4.079147607030904907e-10,
-2.826076604188536374e-11,
1.892239429361191937e-12,
4.133077275981059266e-13,
1.964643047381366800e-13,
-4.986614495527225342e-17,
-1.507514037774430291e-15,
-1.079418897751748147e-32,
1.093409379212737759e-10,
1.614862159117610900e-12,
9.694469008088310786e-13,
1.185738231617669469e-14,
-1.874686055550814652e-14,
-1.186084330668532113e-18,
4.585609298846957077e-17,
2.259856565233704354e-12,
-2.021499765458877879e-15,
-3.660778748508707318e-13,
-8.992524748684434582e-18,
2.039198018652089341e-16,
4.798093907495620495e-32,
5.830683327996522002e-13,
-2.644536620116431917e-15,
-1.279677749539263195e-14,
-2.023923893683498553e-18,
-2.338143448024225175e-17,
-3.954279483985598366e-15,
1.474171339597189533e-16,
-1.711907735677560824e-16,
1.077766955153507891e-32,
7.544710095755401039e-16,
1.136516317681444606e-18,
7.858541283018976417e-19,
-1.338677661836076592e-17,
2.785187366684436186e-34,
5.317072597333287824e-20,
},
{
8.523808527861295856e-11,
-1.593474406219887550e-11,
-1.060498195192247380e-11,
2.230009278932696878e-13,
-1.783214513081154775e-13,
3.230197232614682740e-16,
-4.918235274846050131e-16,
3.194239091018418451e-32,
-1.116465061149083081e-10,
2.796826247803923286e-12,
-2.201051569338342403e-12,
1.885567195074003142e-15,
1.767386000584965093e-14,
-1.659557510643477502e-18,
-4.865414766740603212e-17,
1.639849790823989348e-11,
-6.230748509720193243e-14,
7.413824437994233494e-14,
4.668792283999752638e-17,
9.151787930641592343e-16,
4.004655813003491357e-32,
-1.331084153088693206e-12,
-3.056747616445004894e-15,
8.101295781100962767e-15,
1.091209866218067691e-17,
-5.228992097488934165e-18,
-2.336629512536990591e-14,
-1.128654472344490363e-16,
1.156409938321617222e-16,
-3.732638026243192216e-32,
-8.455447736260280020e-16,
2.298364569657524987e-18,
-3.335433086295567932e-18,
-1.135040895441317460e-17,
3.064974690001374546e-33,
6.800887678074786344e-20,
}
};
static double array_pointx_sf_conicalP_half_0[39] = {
7.193205261130664496e+01,
7.192941519554128149e+01,
7.192809661924491138e+01,
7.192677813065998293e+01,
7.192414141658623805e+01,
7.192150505324352139e+01,
7.192018700307239953e+01,
7.191886904055533591e+01,
7.191623337844525565e+01,
7.191228054244679413e+01,
7.190832849481910216e+01,
7.190437723530443748e+01,
7.190042676364511465e+01,
7.189779355344248302e+01,
7.189647707958360456e+01,
7.189516069320698932e+01,
7.189252818286246338e+01,
7.188858007322437516e+01,
7.188594843727365458e+01,
7.188463275041213763e+01,
7.188331715094714980e+01,
7.188200163886918403e+01,
7.188068621416870485e+01,
7.187937087683620518e+01,
7.187674046423710195e+01,
7.187279550036046771e+01,
7.186885132228211148e+01,
7.186490792974539943e+01,
7.186096532249382562e+01,
7.185702350027104046e+01,
7.185308246282075118e+01,
7.184914220988680711e+01,
7.184520274121322814e+01,
7.184126405654406256e+01,
7.183732615562351498e+01,
7.183470132363279959e+01,
7.183338903819591792e+01,
7.183207683978541525e+01,
7.182945270400570337e+01,
};
static double array_pointy_sf_conicalP_half_0[39] = {
2.275410802775486019e+00,
2.275520454432238715e+00,
2.275575280260615507e+00,
2.275630106088992299e+00,
2.275739757745744996e+00,
2.275849409402497692e+00,
2.275904235230874484e+00,
2.275959061059251276e+00,
2.276068712716003972e+00,
2.276233190201133461e+00,
2.276397667686263837e+00,
2.276562145171393325e+00,
2.276726622656522814e+00,
2.276836274313275510e+00,
2.276891100141652302e+00,
2.276945925970029094e+00,
2.277055577626781790e+00,
2.277220055111911279e+00,
2.277329706768664863e+00,
2.277384532597041655e+00,
2.277439358425418447e+00,
2.277494184253794351e+00,
2.277549010082171144e+00,
2.277603835910547936e+00,
2.277713487567300632e+00,
2.277877965052431009e+00,
2.278042442537560497e+00,
2.278206920022689985e+00,
2.278371397507819474e+00,
2.278535874992948962e+00,
2.278700352478078450e+00,
2.278864829963208827e+00,
2.279029307448338315e+00,
2.279193784933467803e+00,
2.279358262418597292e+00,
2.279467914075349988e+00,
2.279522739903726780e+00,
2.279577565732103572e+00,
2.279687217388856268e+00,
};
static double array_cofidx_sf_conicalP_half_0[39] = {
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
7.000000000000000000e+00,
};
double accuracy_improve_patch_of_gsl_sf_conicalP_half_0(double x,double y)
{
int len_glob = 39;
int idx = floor(len_glob/2);
int dw_idx = 0;
int up_idx = len_glob;
while((idx>=0)&&(idx<len_glob)){
if((y>=array_idx_sf_conicalP_half_0[idx])&&(y<=array_idx_sf_conicalP_half_0[idx+1])){
double pointx = array_pointx_sf_conicalP_half_0[idx];
double pointy = array_pointy_sf_conicalP_half_0[idx];
double res = 0.0;
int length = (int)array_cofidx_sf_conicalP_half_0[idx];
eft_tay2v(array_cof_float_sf_conicalP_half_0[idx],array_cof_err_sf_conicalP_half_0[idx],pointx,pointy,x,y,&res,length);
return res;
}
else if(y<array_idx_sf_conicalP_half_0[idx]){
up_idx = idx;
idx = dw_idx + floor((idx-dw_idx)/2.0);
}
else if(y>array_idx_sf_conicalP_half_0[idx+1]){
dw_idx = idx;
idx = idx + floor((up_idx-idx)/2.0);
}
}
}
double accuracy_improve_patch_of_gsl_sf_conicalP_half(double x,double y)
{
if((x<=71.95174048774473)&&(y<=2.2797694561314215)){
return accuracy_improve_patch_of_gsl_sf_conicalP_half_0(x,y);
}
}
|
a63256a90e9bf493f3850847fb7f810cf7769007
|
e358b637bccd585efc589a4026b30fc9744dc575
|
/Chapter5/Exercise 5-14/alloc.h
|
d364e10c61e194e20ac1bd7ee7517e705005c747
|
[] |
no_license
|
tanyeun/the-c-programming-language-second-edition-solutions
|
87add88440010601f077d36fc06d5ef479f832bb
|
c49ab9660d2e70e3da954fcb6e35951cf02b3f33
|
refs/heads/master
| 2021-01-12T03:57:51.570512 | 2017-02-08T08:35:30 | 2017-02-08T08:35:30 | 81,306,098 | 1 | 0 | null | 2017-02-08T08:29:51 | 2017-02-08T08:29:51 | null |
UTF-8
|
C
| false | false | 136 |
h
|
alloc.h
|
/**
* Author: Jeremy Yu <ccpalettes@gmail.com>
*
* Solution for Exercise 5-14, Chapter5.
*/
char *alloc(int);
void afree(char *p);
|
21a9a553619b5e5ac3458cb8fbd6b0188fc5b5b0
|
d2bdc0e99cbd21050418c3b93655fbe68d240077
|
/src/openblas/driver/level3/CMakeFiles/cgemm_thread_tr.c
|
76d7ec234b0bbf059a311c82322ad871d7e1b8a4
|
[
"BSD-3-Clause"
] |
permissive
|
fengbingchun/Caffe_Test
|
1cd48c852a44fb289dcf50603a3c5fe4451c7e4a
|
c21c1347cfa3cd20d03c74cc41170969324835bf
|
refs/heads/master
| 2021-07-15T13:29:24.758771 | 2021-03-03T03:21:52 | 2021-03-03T03:21:52 | 54,307,657 | 34 | 31 | null | null | null | null |
UTF-8
|
C
| false | false | 319 |
c
|
cgemm_thread_tr.c
|
#define TR
#define THREADED_LEVEL3
#define ASMNAME _cgemm_thread_tr
#define ASMFNAME _cgemm_thread_tr_
#define NAME cgemm_thread_tr_
#define CNAME cgemm_thread_tr
#define CHAR_NAME "cgemm_thread_tr_"
#define CHAR_CNAME "cgemm_thread_tr"
#define COMPLEX
#include "E:/GitCode/Caffe_Test/src/openblas/driver/level3/gemm.c"
|
faad10417153546f0b1902c01393882108a61d76
|
665eac2bfd0d2f1d559f485375f89e8a91632c6e
|
/VOL_300/328_01/WBGI.C
|
f6002a52c764af065db5fdab863710fc7884daf3
|
[] |
no_license
|
kubohisa/CUGL
|
615c29732e5fc2c6bcb29a4013be3351dc21dda6
|
75fc7cb2f8c5f3869a091b2b5c50c09323bc1c03
|
refs/heads/main
| 2023-03-15T16:19:49.355867 | 2020-10-02T21:19:00 | 2020-10-02T21:19:00 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 8,396 |
c
|
WBGI.C
|
/*! WBGI.C
*
*
* Interface the windows library routines with TurboC BGI
* all calls to the Borland Graphics Interface are made in this module.
*
* walign () - set the BGI veiwport, activepage, and position
* also set cursor status, video-ram pointer, etc.
* to match the current window.
*
* wgrmode ()- set graphics mode, initialize the BGI routines
* wtxmode ()- shut down the BGI drivers, restore CRT mode = text.
* wmovepxpy()- move current graphics location to winpx,winpy.
* wherepxpy()- get current graphics location, set in px, py.
*
* Second half of this routine contains code for microsoft C version
*
*/
#ifdef __TURBOC__
/* This file contains TURBOC specific graphics library calls
* for other compilers, you must generate a functionally equivalent
* file for all of the routines defined here.
*/
#include "wscreen.h"
#include "wsys.h"
#include <graphics.h> /* Turbo C graphics */
#ifdef TEXTONLY
/* in text only library, never call the graphics drivers
* Therefore, provide 'dummy entry points for the linker
*/
void walign ( int x ) {return;}
void wgraphmode ( void ) {return;}
void wtextmode ( void ) {return;}
void wherepxpy ( void ) {return;}
void movepxpy ( void ) {return;}
#else /* graphics version of these functions */
void walign (int currpage)
{
/* This function 'aligns' the graphics driver with the windows settings
* settings which must be aligned include
* activepage (which page graphics library calls write to)
* w0-> pixel bounds (winpxmax, winpymax) computed from text-bounds
* setviewport () sets graphics driver co-ords to current window
* and sets clipping ON
*current graphics position set to current window pixel position.
*/
int pl, pt; /* pixels offsets */
if ( wmode == 'T' )
{
return;
}
/* tell BGI to start using the current windows page #
* only if it doesn't match the curretn active page #
*/
if ( currpage != w0-> winpage )
{
setactivepage(w0-> winpage);
}
w0-> winpxmax = wpxchar * (w0->winxmax)
+ wpxchar-1;
w0-> winpymax = wpychar * (w0->winymax)
+ wpychar -1;
pl = wpxchar * w0->winleft ;
pt = wpychar * w0->wintop ;
setviewport ( pl , pt, (pl + w0->winpxmax), (pt + w0->winpymax), 1);
wmovepxpy();
return;
} /*end of walign for BGI */
/* wmovepxpy()
* set BGI graphics position to match the position in the current window
*/
void wmovepxpy (void)
{
if ( wmode == 'G' )
{
moveto ( w0-> winpx, w0-> winpy );
}
return; /* wmovepxpy */
}
/* wherepxpy ()
* get the current x,y position from the BGI driver. save in WINDOW
*/
void wherepxpy (void)
{
if ( wmode == 'G' )
{
w0->winpx = getx ();
w0->winpy = gety ();
}
return; /* wherepxpy */
}
/* wtextmode()
* restore CRT mode to text, shut down BGI
*/
void wtextmode (void)
{
if ( wmode == 'G' )
{
restorecrtmode();
closegraph();
}
return; /* wtextmdoe() */
}
static char errmsg[] = "Graphics initializing error #= check DOS ERRORLEVEL";
/* wgraphmode()
* initialize BGI to appropriate graphics mode
* initialize screen size globals
* setup mouse to page 0 in hercules mode.
*/
void wgraphmode (void)
{
int BGImode, BGIdriver, n;
switch (wmonitor)
{
case ('V'):
BGIdriver = VGA;
if ( wneedpage )
{
/* video mode 0x10 */
BGImode = VGAMED; /* 640*350, 2 pages*/
wlastpage = 1;
}
else
{
/* video mode 0x12 */
BGImode = VGAHI; /* 640*480 */
wlastpage =0;
}
break;
case ('E'):
BGIdriver = EGA;
/* video mode 0x10 */
BGImode = EGAHI; /* 640 * 350 */
wlastpage = wega256 ? 1 : 0; /*need 256k to page*/
break;
case ('H'):
BGIdriver = HERCMONO;
BGImode = HERCMONOHI;
/* tell the mouse driver that we're starting on page 0
* ( This is important for Microsoft mouse but not Logitech.)
* see the Microsoft mouse book ---
* (or see notes in file wmouse.c)
*/
*( HERC_ROM_VIDMODE_AREA ) = 6;
wlastpage =1;
break;
default:
werror ('W', "UNSUPPORTED MONITOR");
} /* end switch on monitor */
initgraph ( &BGIdriver, &BGImode, wpath_BGI );
if ( grOk != (n=graphresult() ) )
{
werror (n, errmsg);
}
wpxabsmax = getmaxx ();
wxabsmax = ((wpxabsmax +1) / wpxchar) -1;
wpyabsmax = getmaxy ();
wyabsmax = ((wpyabsmax +1) / wpychar) -1;
return; /*wgraphmode */
}
#endif /* end graphics version */
#else
/*---------------------- Microsoft C version ----------------------*/
#include <stdlib.h>
#include <graph.h>
#include <dos.h>
#include "wscreen.h"
#include "wsys.h"
void walign ( int currpage )
{
/* This function 'aligns' the graphics driver with the windows settings
* settings which must be aligned include:
* activepage (which page graphics library calls write to)
* w0-> pixel bounds (winpxmax, winpymax) computed from text-bounds
* setviewport () sets graphics driver co-ords to current window
* and sets clipping ON
*current graphics position set to current window pixel position.
*/
int pl, pt; /* pixels offsets */
if ( wmode == 'T' )
{
return;
}
/* tell MSC to start using the current windows page #
* only if it doesn't match the curretn active page #
*/
if ( currpage != w0-> winpage )
{
_setactivepage(w0-> winpage);
}
w0-> winpxmax = wpxchar * (w0->winxmax)
+ wpxchar-1;
w0-> winpymax = wpychar * (w0->winymax)
+ wpychar -1;
pl = wpxchar * w0->winleft ;
pt = wpychar * w0->wintop ;
_setviewport ( pl , pt, (pl + w0->winpxmax), (pt + w0->winpymax));
wmovepxpy();
return; /* walign, microsoft */
}
/* wmovepxpy()
* set MSC graphics position to match position in the current window
*/
void wmovepxpy (void)
{
if ( wmode == 'G' )
{
_moveto ( w0-> winpx, w0-> winpy );
}
return; /* wmovepxpy */
}
/* wherepxpy ()
* get the current x,y position from the driver. save in WINDOW
*/
void wherepxpy (void)
{
struct xycoord xy;
if ( wmode == 'G' )
{
xy = _getcurrentposition();
w0->winpx = xy.xcoord;
w0->winpy = xy.ycoord;
}
return; /* wherepxpy, microsoft */
}
/* wtextmode()
* restore CRT mode to text, shut down BGI
*/
void wtextmode (void)
{
short vidmode;
if ( wmode == 'G' )
{
_setvideomode ( _DEFAULTMODE );
}
return; /* wtextmode, microsoft */
}
static char errmsg[] = "Graphics initializing error #= check DOS ERRORLEVEL";
/* wgraphmode()
* initialize MSC to appropriate graphics mode
* initialize screen size globals
* setup mouse to page 0 in hercules mode.
*/
void wgraphmode (void)
{
short vidmode;
int n;
int maxx, maxy;
switch (wmonitor)
{
case ('V'):
vidmode = _VRES16COLOR;
maxx = 640;
maxy = 480;
if ( wneedpage )
{
/* video mode 0x10 */
vidmode = _ERESCOLOR; /* 640 x 350 */
maxy = 350;
wlastpage = 1;
}
else
{
/* video mode 0x12 */
wlastpage =0;
}
break;
case ('E'):
vidmode = _HRES16COLOR; /* 640 x 350 */
/* video mode 0x10 */
wlastpage = wega256 ? 1 : 0; /*need 256k to page*/
maxx = 640;
maxy = 350;
break;
case ('H'):
vidmode = _HERCMONO;
maxx = 720;
maxy = 348;
/* tell the mouse driver that we're starting on page 0
* ( This is important for Microsoft mouse but not Logitech.)
* see the Microsoft mouse book ---
* (or see notes in file wmouse.c)
*/
*( HERC_ROM_VIDMODE_AREA ) = 6;
wlastpage =1;
break;
default:
werror ('W', "UNSUPPORTED MONITOR");
} /* end switch on monitor */
n = _setvideomode ( vidmode );
if ( n == 0 )
{
werror (n, "Error initializing graphics" );
}
wpxabsmax = maxx;
wxabsmax = ((wpxabsmax +1) / wpxchar) -1;
wpyabsmax = maxy;
wyabsmax = ((wpyabsmax +1) / wpychar) -1;
return; /*wgraphmode, microsoft */
}
#endif /* end if not TURBOC...Microsoft */
/*--------------------- end of WBGI.C ---------------------*/
|
da1a00de72cc3b9a33294acdba297980935d3c83
|
fca429dc67df2ea6a9dfa85dbcf5010252c54b3d
|
/Miscellaneous/DMA_Test.c
|
1518405077d468e9ea1f716949516a4128cd31ee
|
[] |
no_license
|
anks146/LPC1768-Blueboard
|
ff268823973f2a169a7499dce4c304af3c1dc1f5
|
9cf12ae71225dc51855e4f69df8e7280b286abf5
|
refs/heads/master
| 2022-09-19T04:50:06.351461 | 2020-06-05T08:46:26 | 2020-06-05T08:46:26 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 290 |
c
|
DMA_Test.c
|
#include<lpc17xx.h>
#include "DMA.h"
#include "PLL.h"
#include "Buzzer.h"
#include "Timer.h"
#include "LCD.h"
#define CCLK_Value 100
#define PreScalarValue 99999
int main()
{
PLL_Init(CCLK_Value);
Timer_Init(PreScalarValue);
LCD_Init();
Buzzer_Init();
DMATest();
}
|
ac3be67c1c6c9aeb7babbe19a3a72d0281dcd4be
|
51635684d03e47ebad12b8872ff469b83f36aa52
|
/external/gcc-12.1.0/gcc/testsuite/g++.dg/modules/indirect-2_b.C
|
16e060a221041fe1edc3edb4f3f0dd727251eca8
|
[
"LGPL-2.1-only",
"FSFAP",
"LGPL-3.0-only",
"GPL-3.0-only",
"GPL-2.0-only",
"GCC-exception-3.1",
"LGPL-2.0-or-later",
"Zlib",
"LicenseRef-scancode-public-domain"
] |
permissive
|
zhmu/ananas
|
8fb48ddfe3582f85ff39184fc7a3c58725fe731a
|
30850c1639f03bccbfb2f2b03361792cc8fae52e
|
refs/heads/master
| 2022-06-25T10:44:46.256604 | 2022-06-12T17:04:40 | 2022-06-12T17:04:40 | 30,108,381 | 59 | 8 |
Zlib
| 2021-09-26T17:30:30 | 2015-01-31T09:44:33 |
C
|
UTF-8
|
C
| false | false | 1,601 |
c
|
indirect-2_b.C
|
// { dg-additional-options "-fmodules-ts -fdump-lang-module-blocks-alias-uid" }
export module bar;
// { dg-module-cmi bar }
import foo;
namespace bar
{
export int frob (int i = foo::frob<0> ())
{
return i;
}
export int quux (int i = foo::X<0> ())
{
return i;
}
}
// { dg-final { scan-lang-dump {Lazily binding '::foo@foo:.::frob'@'foo' section} module } }
// { dg-final { scan-lang-dump {Wrote import:-[0-9]* template_decl:'::foo@foo:.::template frob@foo:.'@foo} module } }
// { dg-final { scan-lang-dump {Writing:-[0-9]*'s decl spec merge key \(specialization\) function_decl:'::foo@foo:.::frob<0x0>'} module } }
// { dg-final { scan-lang-dump {Lazily binding '::foo@foo:.::X'@'foo' section:} module } }
// { dg-final { scan-lang-dump {Wrote import:-[0-9]* template_decl:'::foo@foo:.::template X@foo:.'@foo} module } }
// { dg-final { scan-lang-dump {Cluster members:\n \[0\]=specialization definition '::foo@foo:.::X<0x0>'\n \[1\]=specialization declaration '::foo@foo:.::X<0x0>::__conv_op <0x0>'\n \[2\]=specialization declaration '::foo@foo:.::X<0x0>::X<0x0>'\n( \[.\]=[^\n]* '\n)*} module } }
// { dg-final { scan-lang-dump {Writing:-[0-9]*'s type spec merge key \(specialization\) type_decl:'::foo@foo:.::X<0x0>'} module } }
// { dg-final { scan-lang-dump {Depset:. specialization entity:. type_decl:'::foo@foo:.::X<0x0>'} module } }
// { dg-final { scan-lang-dump {Writing:-[0-9]*'s type spec merge key \(specialization\) type_decl:'::foo@foo:.::X<0x0>'} module } }
// { dg-final { scan-lang-dump {Wrote purview:-[0-9]* type_decl:'::foo@foo:.::X<0x0>'} module } }
|
08bc825e5975ea27321165602ec9a3c42b469477
|
54a986f12e71e90e646b43051f6f16a1160d7900
|
/Lite Foundation/Source/LFDateComponents.h
|
3ad47d26854ac627b18aba56b9ec2464fc78d046
|
[
"MIT"
] |
permissive
|
JustSid/Lite-C
|
07ea730fa4e80b8d083ddea48de98debfe299082
|
3ae5cc2fda2ebcd4f5b0f532ffec8a37e37512b6
|
refs/heads/master
| 2021-01-19T00:16:43.034132 | 2012-05-01T11:34:42 | 2012-05-01T11:34:42 | 4,183,345 | 2 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 5,170 |
h
|
LFDateComponents.h
|
//
// LFDateComponents.h
// Lite Foundation
//
// Copyright (c) 2011 by Sidney Just
// 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 _LFDATECOMPONENTS_H_
#define _LFDATECOMPONENTS_H_
/**
* @defgroup LFDateComponentsRef LFDateComponentsRef
* @{
* @brief The LFDateComponentsRef is an object that can calculate with dates
*
* A LFDateComponentsRef can be used to transform a LFDateRef into a human readable format (with years, months, days etc) or to calculate with multiple dates.
* The LFDateComponentsRef also takes a time zone into account, allowing one to transform a LFDateRef from its fixed GMT time zone into another time zone.
**/
#include "LFRuntime.h"
#include "LFBase.h"
#include "LFDate.h"
#include "LFTimeZone.h"
/**
* LFDateComponentsRef layout
**/
struct __LFDateComponents
{
LFRuntimeBase base;
/**
* The wrapped year(s)
**/
int32_t year;
/**
* The wrapped month(s)
**/
int32_t month;
/**
* The wrapped day(s)
**/
int32_t day;
/**
* The wrapped hour(s)
**/
int32_t hour;
/**
* The wrapped minute(s)
**/
int32_t minute;
/**
* The wrapped second(s) and milisecond(s)
**/
double second;
};
/**
* The date component type
**/
typedef struct __LFDateComponents* LFDateComponentsRef;
/**
* Flag to represent the year component
**/
#define kLFYearsComponent (1 << 0)
/**
* Flag to represent the month component
**/
#define kLFMonthsComponent (1 << 1)
/**
* Flag to represent the day component
**/
#define kLFDaysComponent (1 << 2)
/**
* Flag to represent the hour component
**/
#define kLFHoursComponent (1 << 3)
/**
* Flag to represent the minute component
**/
#define kLFMinutesComponent (1 << 4)
/**
* Flag to represent the second component
**/
#define kLFSecondsComponent (1 << 5)
/**
* Flag that represents all components
**/
#define kLFAllComponents kLFYearsComponent | kLFMonthsComponent | kLFDaysComponent | kLFHoursComponent | kLFMinutesComponent | kLFSecondsComponent
/**
* Type to hold date component flags
**/
typedef uint8_t LFDateComponentsFlags;
/**
* Returns a new LFDateComponentsRef using the given year, month, day, hour, minute and second.
**/
LF_EXPORT LFDateComponentsRef LFDateComponentsCreate(int32_t year, int8_t month, int8_t day, int8_t hour, int8_t minute, double second);
/**
* Returns a new LFDateComponentsRef by converting the given date into its components using the given time zone and by respecting leap years.
* @param timeZone A valid LFTimeZoneRef object or NULL for GMT
**/
LF_EXPORT LFDateComponentsRef LFDateComponentsCreateFromDate(LFDateRef date, LFTimeZoneRef timeZone);
/**
* Returns a new LFDateComponentsRef containing the difference between date1 and date2.
* @param timeZone A valid LFTimeZoneRef object or NULL for GMT
* @param flags Bit field containing which components should be extracted. If you pass eg. only kLFMinutesComponent, the LFDateComponentRef will only contain the difference between both dates in minutes
**/
LF_EXPORT LFDateComponentsRef LFDateComponentsGetDifferenceFromDates(LFDateRef date1, LFDateRef date2, LFTimeZoneRef timeZone, LFDateComponentsFlags flags);
/**
* Returns an autoreleased LFDateRef object which represents the given LFDateComponentsRef object
* @param timeZone A valid LFTimeZoneRef object or NULL for GMT
**/
LF_EXPORT LFDateRef LFDateComponentsGetDate(LFDateComponentsRef dateComponents, LFTimeZoneRef timeZone);
/**
* Returns a LFDateRef object containing the given date components plus the given date.
* @param timeZone A valid LFTimeZoneRef object or NULL for GMT
**/
LF_EXPORT LFDateRef LFDateComponentsDateByAddingDateComponents(LFDateComponentsRef dateComponents, LFDateRef date, LFTimeZoneRef timeZone);
/**
* Returns the day of the week of the given date component
* @return 1 for monday, 2 for tuesday etc.
**/
LF_EXPORT int32_t LFDateComponentsGetDayOfWeek(LFDateComponentsRef dateComponents, LFTimeZoneRef timeZone);
/**
* Returns the day of the year of the given date component
**/
LF_EXPORT int32_t LFDateComponentsGetDayOfYear(LFDateComponentsRef dateComponents, LFTimeZoneRef timeZone);
/**
* @}
**/
#endif
|
632ba8d23142a574e5733534f2844d5a051e8814
|
4dd105f5129d1aa778859ff102e15f05e3269454
|
/Additional Resources/4. Sparkfun Blocks/4.2. Analog to Digital Converter Block/FILES/SparkFunADS1015.h
|
ddca04501dedf5d58173025696e23f01a9b951a5
|
[] |
no_license
|
skyformat99/EE180-IoT-Tutorials
|
6abd025914dac733b906c23ad2d81abe3280f553
|
046b39329df5132f661b7530103df0001a2e841b
|
refs/heads/master
| 2021-07-13T04:03:39.505685 | 2017-10-09T04:48:04 | 2017-10-09T04:48:04 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 2,706 |
h
|
SparkFunADS1015.h
|
/****************************************************************
Core header file for SparkFun ADC Edison Block Support
27 Jan 2016- Anthony Nguyen, UCLA
C++ to C Port
1 Jun 2015- Mike Hord, SparkFun Electronics
Code developed in Intel's Eclipse IOT-DK
This code requires the Intel mraa library to function; for more
information see https://github.com/intel-iot-devkit/mraa
This code is beerware; if you use it, please buy me (or any other
SparkFun employee) a cold beverage next time you run into one of
us at the local.
****************************************************************/
#ifndef __ads1015_h__
#define __ads1015_h__
#include "mraa.h"
// Defines for all the registers and bits. Not that many on this part.
#define CONVERSION 0 // Conversion result register.
#define CONFIG 1 // 16-bit configuration register.
#define THRESHL 2 // Low threshold setting. Not used (yet).
#define THRESHH 3 // High threshold setting. Not used (yet).
// Channel selection and read start stuff- the high nibble of the 16-bit cfg
// register controls the start of a single conversion, the channel(s) read,
// and whether they're read single ended or differential.
#define CHANNEL_MASK 0x3000 // There are four channels, and single ended reads
// are specified by a two-bit address at bits 13:12
#define SINGLE_ENDED 0x4000 // Set for single-ended
#define START_READ 0x8000 // To start a read, we set the highest bit of the
// highest nibble.
#define CFG_REG_CHL_MASK 0xf000 // Used to clear the high nibble of the cfg reg
// before we start our read request.
#define BUSY_MASK 0x8000 // When the highest bit in the cfg reg is set, the
// conversion is done.
#define CHANNEL_SHIFT 12 // shift the raw channel # by this
// PGA settings and stuff. These are bits 11:9 of the cfg reg
enum VoltageRange {
_6_144V = 0,
_4_096V,
_2_048V,
_1_024V,
_0_512V,
_0_256V,
VOLTAGE_MASK = 0x07
};
#define RANGE_SHIFT 9 // how far to shift our prepared data to drop it into the
// right spot in the cfg reg
#define RANGE_MASK 0x0E00 // bits to clear for gain parameter
// initializer
void ads1015(mraa_i2c_context myPort, unsigned short myI2CAddress);
//member variables
int16_t readADC();
mraa_i2c_context _myPort;
uint8_t _myI2CAddress;
float _scaler;
// functions
float getResult(uint8_t channel);
float getDiffResult(uint8_t channel);
int16_t getRawResult(uint8_t channel);
int16_t getRawDiffResult(uint8_t channel);
void setRange(int range);
float getScaler();
void setConfigRegister(uint16_t configValue);
uint16_t getConfigRegister();
#endif
|
8d0b32ccfff3f445cb0e06fd73bc99859e933df7
|
102aeb9849f55265d80471ab8153d412877b63e9
|
/myproj/project_1.sdk/mem_plck_sw/src/ov7670_diretto.h
|
f59b73bc4c58314093697bf8b3117525f278585f
|
[] |
no_license
|
Lorenzo202653/bare-metalProva
|
aa09dce68f20464335790534b403eecb685de5e3
|
c950a74c9a73b81aa32d8318b68a8622f23796e1
|
refs/heads/master
| 2022-12-26T19:35:28.452561 | 2020-10-14T15:57:35 | 2020-10-14T15:57:35 | 276,926,524 | 0 | 1 | null | null | null | null |
UTF-8
|
C
| false | false | 257 |
h
|
ov7670_diretto.h
|
#ifndef OV7670_DIRETTO_H_
#define OV7670_DIRETTO_H_
#include <unistd.h>
#include "platform.h"
XOv7670_memcpy_Config* memcpy_config;
XOv7670_memcpy memcp;
int init_ov7670_diretto(void);
int configue_ov7670_diretto(void);
#endif /* OV7670_DIRETTO_H_ */
|
e58871d5e41b95f9b0a2eda2810658834859a300
|
dc7203d7b33fd4ac109eb30b017920d37e4856f4
|
/include/builtins/builtin_equality.h
|
db65ff6ae91e8ceae379f216c203e2c8ebddfd72
|
[] |
no_license
|
aktowns/USS
|
fd0276952a9114b94b50b3181bd8ebba9b22f521
|
b25c8327516599c04c3b996b08c946761e0b31ea
|
refs/heads/master
| 2021-01-10T14:27:25.151519 | 2015-11-02T02:09:55 | 2015-11-02T02:09:55 | 45,342,299 | 1 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 216 |
h
|
builtin_equality.h
|
#ifndef USS_BUILTIN_EQUALITY_H
#define USS_BUILTIN_EQUALITY_H
#include "../ussval.h"
ussval_t* builtin_eq(ussenv_t* e, ussval_t* a);
ussval_t* builtin_ne(ussenv_t* e, ussval_t* a);
#endif //USS_BUILTIN_EQUALITY_H
|
ff0491ef9ed9ac3c6226d31be732825c5769b255
|
296c98a47d24eb013453619a38991d74ce1eac87
|
/Clase7_Estructuras/ABM.h
|
0b6e9f73763c037904ba630cb9135cf17ba8a094
|
[] |
no_license
|
TrovatoCarla/Programacion-1
|
fcd8a815c52e35bbdbe9fd5cf47c78b6b11fa6f3
|
f8a945a69b32c7e65dbc5987493fe0e6d0aaf599
|
refs/heads/master
| 2020-05-01T01:19:05.848849 | 2019-05-24T00:49:45 | 2019-05-24T00:49:45 | 177,192,621 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 982 |
h
|
ABM.h
|
#define MAXIMO_CARACTER 100
int bajaDeUsuario(char* mensaje,
char*msjError,
char* msjErrNoExisteUsuario,
int maximo,
int minimo,
int reintentos,
char arrayUsuario[] [MAXIMO_CARACTER]);
int modificacionDeUsuario(char* mensaje,
char* mensajeError,
char* msjErrNoExisteUsuario,
char modificacion[MAXIMO_CARACTER],
int maximo,
int minimo,
int reintentos,
char arrayUsuario[] [MAXIMO_CARACTER]);
int altaDeUsuario(char* mensaje,
char* mensajeError,
char* errorNombreExistente,
char* errorNoHayPosVacia,
int maximo,
int minimo,
int reintentos,
char arrayUsuario[][MAXIMO_CARACTER]);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.