text
stringlengths 0
14.1k
|
---|
- `W` : Width
|
- `H` : Height
|
- `t` : Conductor thickness
|
- `sigma` : Conductance of medium
|
- `f` : Operating frequency
|
- `Zo` : Characteristic impedance
|
""""""
|
We = getCorrectedWidth(W,H,t)
|
P = 1 - (We/4/H)**2
|
Rs = math.sqrt((math.pi*f*u0)/sigma)
|
Q = 1 + H/We + (math.log((2*H)/t)-t/W)*H/(We*math.pi)
|
if W/H <= 1/(2*math.pi):
|
return (1 + H/We + (math.log(4*pi*W/t) + t/W)*H/(math.pi*We))*(8.68*Rs*P)/(2*pi*Zo*H)
|
elif W/H <= 2:
|
return (8.68*Rs*P*Q)/(2*math.pi*Zo*H)
|
else:
|
return ((8.68*Rs*Q)/(Zo*H))*(We/H + (We/math.pi/H)/(We/2/H)+0.94)*((H/We + 2*math.log(We/2/H + 0.94)/math.pi)**(-2))
|
def getDielectricLoss(er,ef,tanD,f):
|
""""""
|
Returns the dielectric loss in [dB/cm].
|
Paramenters:
|
- `er` : Relative permitivity of the dielectric
|
- `ef` : Effective permitivity
|
- `tanD` : tan \delta
|
- `f` : Operating frequency
|
""""""
|
lam = c/math.sqrt(ef)/f
|
return 27.3*(er*(ef-1)*tanD)/(lam*math.sqrt(er)*(er-1)) " gpl-2.0
|
Core2idiot/Kernel-Samsung-3.0...- arch/arm/mach-netx/generic.c 5845 "/*
|
* arch/arm/mach-netx/generic.c
|
*
|
* Copyright (C) 2005 Sascha Hauer <[email protected]>, Pengutronix
|
*
|
* This program is free software; you can redistribute it and/or modify
|
* it under the terms of the GNU General Public License version 2
|
* as published by the Free Software Foundation.
|
*
|
* 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 <linux/device.h>
|
#include <linux/init.h>
|
#include <linux/kernel.h>
|
#include <linux/module.h>
|
#include <linux/platform_device.h>
|
#include <linux/io.h>
|
#include <mach/hardware.h>
|
#include <asm/mach/map.h>
|
#include <asm/hardware/vic.h>
|
#include <mach/netx-regs.h>
|
#include <asm/mach/irq.h>
|
static struct map_desc netx_io_desc[] __initdata = {
|
{
|
.virtual = NETX_IO_VIRT,
|
.pfn = __phys_to_pfn(NETX_IO_PHYS),
|
.length = NETX_IO_SIZE,
|
.type = MT_DEVICE
|
}
|
};
|
void __init netx_map_io(void)
|
{
|
iotable_init(netx_io_desc, ARRAY_SIZE(netx_io_desc));
|
}
|
static struct resource netx_rtc_resources[] = {
|
[0] = {
|
.start = 0x00101200,
|
.end = 0x00101220,
|
.flags = IORESOURCE_MEM,
|
},
|
};
|
static struct platform_device netx_rtc_device = {
|
.name = ""netx-rtc"",
|
.id = 0,
|
.num_resources = ARRAY_SIZE(netx_rtc_resources),
|
.resource = netx_rtc_resources,
|
};
|
static struct platform_device *devices[] __initdata = {
|
&netx_rtc_device,
|
};
|
#if 0
|
#define DEBUG_IRQ(fmt...) printk(fmt)
|
#else
|
#define DEBUG_IRQ(fmt...) while (0) {}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.