Pico GPS Teseo I2C
Loading...
Searching...
No Matches
ctypes.h File Reference
#include <Python.h>
#include <numpy/ndarrayobject.h>
#include <stdbool.h>
#include <lc3.h>
#include <ltpf.h>
#include <sns.h>
#include <tns.h>
#include <spec.h>
Include dependency graph for ctypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CTYPES_CHECK(exc, t)
 
#define to_scalar(obj, t, ptr)
 
#define to_1d_ptr(obj, t, n, ptr)
 
#define to_2d_ptr(obj, t, n1, n2, ptr)
 
#define to_1d_copy(obj, t, ptr, n)
 
#define to_2d_copy(obj, t, ptr, n1, n2)
 
#define new_scalar(obj, ptr)
 
#define new_1d_ptr(t, n, ptr)
 
#define new_2d_ptr(t, n1, n2, ptr)
 
#define new_1d_copy(t, n, src)
 
#define new_2d_copy(t, n1, n2, src)
 

Functions

 __attribute__ ((unused)) static PyObject *__to_scalar(PyObject *obj
 
 if (!obj) return NULL = PyDict_New()
 
 memcpy (ptr, PyArray_DATA((PyArrayObject *) obj), PyArray_NBYTES((PyArrayObject *) obj))
 
 if (!obj||(n &&PyArray_SIZE((PyArrayObject *) obj) !=n)) return NULL
 
 if (!obj||(n1 &&PyArray_DIMS((PyArrayObject *) obj)[0] !=n1)||(n2 &&PyArray_DIMS((PyArrayObject *) obj)[1] !=n2)) return NULL
 
 if ((obj=to_1d_ptr(obj, t, n, &src))) memcpy(v
 
 PyArray_NBYTES ((PyArrayObject *) obj))
 
 if ((obj=to_2d_ptr(obj, t, n1, n2, &src))) memcpy(v
 
 memcpy (PyArray_DATA((PyArrayObject *) obj), ptr, PyArray_NBYTES((PyArrayObject *) obj))
 
 if ((obj=new_1d_ptr(t, n, &dst))) memcpy(dst
 
 if ((obj=new_2d_ptr(t, n1, n2, &dst))) memcpy(dst
 
 CTYPES_CHECK ("attdet.en1", to_scalar(PyDict_GetItemString(obj, "en1"), NPY_INT32, &attdet->en1))
 
 CTYPES_CHECK ("attdet.an1", to_scalar(PyDict_GetItemString(obj, "an1"), NPY_INT32, &attdet->an1))
 
 CTYPES_CHECK ("attdet.p_att", to_scalar(PyDict_GetItemString(obj, "p_att"), NPY_INT, &attdet->p_att))
 
 PyDict_SetItemString (obj, "en1", new_scalar(NPY_INT32, &attdet->en1))
 
 PyDict_SetItemString (obj, "an1", new_scalar(NPY_INT32, &attdet->an1))
 
 PyDict_SetItemString (obj, "p_att", new_scalar(NPY_INT, &attdet->p_att))
 
 CTYPES_CHECK ("hp50.s1", to_scalar(PyDict_GetItemString(obj, "s1"), NPY_INT64, &hp50->s1))
 
 CTYPES_CHECK ("hp50.s2", to_scalar(PyDict_GetItemString(obj, "s2"), NPY_INT64, &hp50->s2))
 
 PyDict_SetItemString (obj, "s2", new_scalar(NPY_INT64, &hp50->s2))
 
 CTYPES_CHECK ("ltpf", obj &&PyDict_Check(obj))
 
 CTYPES_CHECK ("ltpf.active", to_scalar(PyDict_GetItemString(obj, "active"), NPY_BOOL, &ltpf->active))
 
 CTYPES_CHECK ("ltpf.pitch", to_scalar(PyDict_GetItemString(obj, "pitch"), NPY_INT, &ltpf->pitch))
 
 CTYPES_CHECK ("ltpf.nc", nc_obj=to_1d_copy(PyDict_GetItemString(obj, "nc"), NPY_FLOAT, ltpf->nc, 2))
 
 PyDict_SetItemString (obj, "nc", nc_obj)
 
 CTYPES_CHECK (NULL, to_ltpf_hp50_state(PyDict_GetItemString(obj, "hp50"), &ltpf->hp50))
 
 CTYPES_CHECK ("ltpf.x_12k8", x_12k8_obj=to_1d_copy(PyDict_GetItemString(obj, "x_12k8"), NPY_INT16, ltpf->x_12k8, n_12k8))
 
 PyDict_SetItemString (obj, "x_12k8", x_12k8_obj)
 
 CTYPES_CHECK ("ltpf.x_6k4", x_6k4_obj=to_1d_copy(PyDict_GetItemString(obj, "x_6k4"), NPY_INT16, ltpf->x_6k4, n_6k4))
 
 PyDict_SetItemString (obj, "x_6k4", x_6k4_obj)
 
 CTYPES_CHECK ("ltpf.tc", to_scalar(PyDict_GetItemString(obj, "tc"), NPY_INT, &ltpf->tc))
 
 PyDict_SetItemString (obj, "active", new_scalar(NPY_BOOL, &ltpf->active))
 
 PyDict_SetItemString (obj, "pitch", new_scalar(NPY_INT, &ltpf->pitch))
 
 PyDict_SetItemString (obj, "nc", new_1d_copy(NPY_FLOAT, 2, &ltpf->nc))
 
 PyDict_SetItemString (obj, "hp50", from_ltpf_hp50_state(PyDict_New(), &ltpf->hp50))
 
 PyDict_SetItemString (obj, "x_12k8", new_1d_copy(NPY_INT16, n_12k8, &ltpf->x_12k8))
 
 PyDict_SetItemString (obj, "x_6k4", new_1d_copy(NPY_INT16, n_6k4, &ltpf->x_6k4))
 
 PyDict_SetItemString (obj, "tc", new_scalar(NPY_INT, &ltpf->tc))
 
 CTYPES_CHECK ("ltpf.c", c_obj=to_1d_copy(PyDict_GetItemString(obj, "c"), NPY_FLOAT, ltpf->c, 2 *12))
 
 PyDict_SetItemString (obj, "c", c_obj)
 
 CTYPES_CHECK ("ltpf.x", x_obj=to_1d_copy(PyDict_GetItemString(obj, "x"), NPY_FLOAT, ltpf->x, 12))
 
 PyDict_SetItemString (obj, "x", x_obj)
 
 PyDict_SetItemString (obj, "c", new_1d_copy(NPY_FLOAT, 2 *12, &ltpf->c))
 
 PyDict_SetItemString (obj, "x", new_1d_copy(NPY_FLOAT, 12, &ltpf->x))
 
 if ((item=PyDict_GetItemString(obj, "active"))) CTYPES_CHECK("ltpf.active"
 
 to_scalar (item, NPY_BOOL, &data->active))
 
 if ((item=PyDict_GetItemString(obj, "pitch_index"))) CTYPES_CHECK("ltpf.pitch_index"
 
 to_scalar (item, NPY_INT, &data->pitch_index))
 
 CTYPES_CHECK ("sns", obj &&PyDict_Check(obj))
 
 if ((item=PyDict_GetItemString(obj, "lfcb"))) CTYPES_CHECK("sns.lfcb"
 
 if ((item=PyDict_GetItemString(obj, "hfcb"))) CTYPES_CHECK("sns.hfcb"
 
 if ((item=PyDict_GetItemString(obj, "shape"))) CTYPES_CHECK("sns.shape"
 
 if ((item=PyDict_GetItemString(obj, "gain"))) CTYPES_CHECK("sns.gain"
 
 if ((item=PyDict_GetItemString(obj, "idx_a"))) CTYPES_CHECK("sns.idx_a"
 
 if ((item=PyDict_GetItemString(obj, "ls_a"))) CTYPES_CHECK("sns.ls_a"
 
 if ((item=PyDict_GetItemString(obj, "idx_b"))) CTYPES_CHECK("sns.idx_b"
 
 if ((item=PyDict_GetItemString(obj, "ls_b"))) CTYPES_CHECK("sns.ls_b"
 
 CTYPES_CHECK ("tns", obj &&PyDict_Check(obj))
 
 if ((item=PyDict_GetItemString(obj, "nfilters"))) CTYPES_CHECK("tns.nfilters"
 
 to_scalar (item, NPY_INT, &side->nfilters))
 
 if ((item=PyDict_GetItemString(obj, "lpc_weighting")))
 
 if ((item=PyDict_GetItemString(obj, "rc_order")))
 
 if ((item=PyDict_GetItemString(obj, "rc")))
 
 PyDict_SetItemString (obj, "nbits_off", new_scalar(NPY_FLOAT, &spec->nbits_off))
 
 PyDict_SetItemString (obj, "nbits_spare", new_scalar(NPY_INT, &spec->nbits_spare))
 
 CTYPES_CHECK ("spec.nbits_off", to_scalar(PyDict_GetItemString(obj, "nbits_off"), NPY_FLOAT, &spec->nbits_off))
 
 CTYPES_CHECK ("spec.nbits_spare", to_scalar(PyDict_GetItemString(obj, "nbits_spare"), NPY_INT, &spec->nbits_spare))
 
 CTYPES_CHECK ("side", obj &&PyDict_Check(obj))
 
 if ((item=PyDict_GetItemString(obj, "g_idx"))) CTYPES_CHECK("side.g_idx"
 
 if ((item=PyDict_GetItemString(obj, "nq"))) CTYPES_CHECK("side.nq"
 
 if ((item=PyDict_GetItemString(obj, "lsb_mode"))) CTYPES_CHECK("side.lsb_mode"
 
 to_scalar (item, NPY_BOOL, &side->lsb_mode))
 

Variables

int t
 
int void * ptr
 
return obj = PyArray_SimpleNew(2, ((const npy_intp []){ n1, n2 }), t)
 
int int n
 
int int n1
 
int int int n2
 
int void * v
 
 src
 
void * dst
 
struct lc3_attdet_analysisattdet
 
struct lc3_ltpf_hp50_statehp50
 
struct lc3_ltpf_analysisltpf
 
const int n_12k8 = sizeof(ltpf->x_12k8) / sizeof(*ltpf->x_12k8)
 
const int n_6k4 = sizeof(ltpf->x_6k4) / sizeof(*ltpf->x_6k4)
 
const struct lc3_ltpf_datadata
 
struct lc3_tns_dataside
 
const struct lc3_spec_analysisspec
 

Macro Definition Documentation

◆ CTYPES_CHECK

#define CTYPES_CHECK ( exc,
t )
Value:
do { \
if (!(t)) return (exc) ? PyErr_Format(PyExc_TypeError, exc) : NULL; \
} while(0)
int t
Definition ctypes.h:77
#define NULL
Definition oi_stddefs.h:55

Definition at line 28 of file ctypes.h.

◆ new_1d_copy

#define new_1d_copy ( t,
n,
src )
Value:
__new_1d_copy(t, n, src)
int int n
Definition ctypes.h:90
src
Definition ctypes.h:120

Definition at line 67 of file ctypes.h.

◆ new_1d_ptr

#define new_1d_ptr ( t,
n,
ptr )
Value:
__new_1d_ptr(t, n, (void **)(ptr))
int void * ptr
Definition ctypes.h:78

Definition at line 61 of file ctypes.h.

◆ new_2d_copy

#define new_2d_copy ( t,
n1,
n2,
src )
Value:
__new_2d_copy(t, n1, n2, src)
int int int n2
Definition ctypes.h:102
int int n1
Definition ctypes.h:102

Definition at line 70 of file ctypes.h.

◆ new_2d_ptr

#define new_2d_ptr ( t,
n1,
n2,
ptr )
Value:
__new_2d_ptr(t, n1, n2, (void **)(ptr))

Definition at line 64 of file ctypes.h.

◆ new_scalar

#define new_scalar ( obj,
ptr )
Value:
__new_scalar(obj, ptr)
return obj
Definition ctypes.h:86

From Numpy Array types to C types

Definition at line 58 of file ctypes.h.

◆ to_1d_copy

#define to_1d_copy ( obj,
t,
ptr,
n )
Value:
__to_1d_copy(obj, t, ptr, n)

Definition at line 47 of file ctypes.h.

◆ to_1d_ptr

#define to_1d_ptr ( obj,
t,
n,
ptr )
Value:
__to_1d_ptr(obj, t, n, (void **)(ptr))

Definition at line 41 of file ctypes.h.

◆ to_2d_copy

#define to_2d_copy ( obj,
t,
ptr,
n1,
n2 )
Value:
__to_2d_copy(obj, t, ptr, n1, n2)

Definition at line 50 of file ctypes.h.

◆ to_2d_ptr

#define to_2d_ptr ( obj,
t,
n1,
n2,
ptr )
Value:
__to_2d_ptr(obj, t, n1, n2, (void **)(ptr))

Definition at line 44 of file ctypes.h.

◆ to_scalar

#define to_scalar ( obj,
t,
ptr )
Value:
__to_scalar(obj, t, (void *)(ptr))

From C types to Numpy Array types

Definition at line 38 of file ctypes.h.

Function Documentation

◆ __attribute__()

__attribute__ ( (unused) )

Definition at line 381 of file ctypes.h.

◆ CTYPES_CHECK() [1/20]

CTYPES_CHECK ( "attdet.an1" ,
to_scalar(PyDict_GetItemString(obj, "an1"), NPY_INT32, &attdet->an1)  )

◆ CTYPES_CHECK() [2/20]

CTYPES_CHECK ( "attdet.en1" ,
to_scalar(PyDict_GetItemString(obj, "en1"), NPY_INT32, &attdet->en1)  )

◆ CTYPES_CHECK() [3/20]

CTYPES_CHECK ( "attdet.p_att" ,
to_scalar(PyDict_GetItemString(obj, "p_att"), NPY_INT, &attdet->p_att)  )

◆ CTYPES_CHECK() [4/20]

CTYPES_CHECK ( "hp50.s1" ,
to_scalar(PyDict_GetItemString(obj, "s1"), NPY_INT64, &hp50->s1)  )

◆ CTYPES_CHECK() [5/20]

CTYPES_CHECK ( "hp50.s2" ,
to_scalar(PyDict_GetItemString(obj, "s2"), NPY_INT64, &hp50->s2)  )

◆ CTYPES_CHECK() [6/20]

CTYPES_CHECK ( "ltpf" ,
obj && PyDict_Checkobj )

◆ CTYPES_CHECK() [7/20]

CTYPES_CHECK ( "ltpf.active" ,
to_scalar(PyDict_GetItemString(obj, "active"), NPY_BOOL, &ltpf->active)  )

◆ CTYPES_CHECK() [8/20]

CTYPES_CHECK ( "ltpf.c" ,
c_obj = to_1d_copy(PyDict_GetItemString(obj, "c"), NPY_FLOAT, ltpf->c, 2 *12) )

◆ CTYPES_CHECK() [9/20]

CTYPES_CHECK ( "ltpf.nc" ,
nc_obj = to_1d_copy(PyDict_GetItemString(obj, "nc"), NPY_FLOAT, ltpf->nc, 2) )

◆ CTYPES_CHECK() [10/20]

CTYPES_CHECK ( "ltpf.pitch" ,
to_scalar(PyDict_GetItemString(obj, "pitch"), NPY_INT, &ltpf->pitch)  )

◆ CTYPES_CHECK() [11/20]

CTYPES_CHECK ( "ltpf.tc" ,
to_scalar(PyDict_GetItemString(obj, "tc"), NPY_INT, &ltpf->tc)  )

◆ CTYPES_CHECK() [12/20]

CTYPES_CHECK ( "ltpf.x" ,
x_obj = to_1d_copy(PyDict_GetItemString(obj, "x"), NPY_FLOAT, ltpf->x, 12) )

◆ CTYPES_CHECK() [13/20]

CTYPES_CHECK ( "ltpf.x_12k8" ,
x_12k8_obj = to_1d_copy(PyDict_GetItemString(obj, "x_12k8"), NPY_INT16, ltpf->x_12k8, n_12k8) )

◆ CTYPES_CHECK() [14/20]

CTYPES_CHECK ( "ltpf.x_6k4" ,
x_6k4_obj = to_1d_copy(PyDict_GetItemString(obj, "x_6k4"), NPY_INT16, ltpf->x_6k4, n_6k4) )

◆ CTYPES_CHECK() [15/20]

CTYPES_CHECK ( "side" ,
obj && PyDict_Checkobj )

◆ CTYPES_CHECK() [16/20]

CTYPES_CHECK ( "sns" ,
obj && PyDict_Checkobj )

◆ CTYPES_CHECK() [17/20]

CTYPES_CHECK ( "spec.nbits_off" ,
to_scalar(PyDict_GetItemString(obj, "nbits_off"), NPY_FLOAT, &spec->nbits_off)  )

◆ CTYPES_CHECK() [18/20]

CTYPES_CHECK ( "spec.nbits_spare" ,
to_scalar(PyDict_GetItemString(obj, "nbits_spare"), NPY_INT, &spec->nbits_spare)  )

◆ CTYPES_CHECK() [19/20]

CTYPES_CHECK ( "tns" ,
obj && PyDict_Checkobj )

◆ CTYPES_CHECK() [20/20]

CTYPES_CHECK ( NULL ,
to_ltpf_hp50_state(PyDict_GetItemString(obj, "hp50"), &ltpf->hp50)  )

◆ if() [1/24]

if ( ! obj) = PyDict_New()

◆ if() [2/24]

if ( !obj|| n &&PyArray_SIZE((PyArrayObject *) obj) !=n)

◆ if() [3/24]

if ( !obj|| n1 &&PyArray_DIMS((PyArrayObject *) obj)[0] !=n1)||(n2 &&PyArray_DIMS((PyArrayObject *) obj)[1] !=n2)

◆ if() [4/24]

if ( (item=PyDict_GetItemString(obj, "active")) )

◆ if() [5/24]

if ( (item=PyDict_GetItemString(obj, "g_idx")) )

◆ if() [6/24]

if ( (item=PyDict_GetItemString(obj, "gain")) )

◆ if() [7/24]

if ( (item=PyDict_GetItemString(obj, "hfcb")) )

◆ if() [8/24]

if ( (item=PyDict_GetItemString(obj, "idx_a")) )

◆ if() [9/24]

if ( (item=PyDict_GetItemString(obj, "idx_b")) )

◆ if() [10/24]

if ( (item=PyDict_GetItemString(obj, "lfcb")) )

◆ if() [11/24]

if ( (item=PyDict_GetItemString(obj, "lpc_weighting")) )

Definition at line 519 of file ctypes.h.

◆ if() [12/24]

if ( (item=PyDict_GetItemString(obj, "ls_a")) )

◆ if() [13/24]

if ( (item=PyDict_GetItemString(obj, "ls_b")) )

◆ if() [14/24]

if ( (item=PyDict_GetItemString(obj, "lsb_mode")) )

◆ if() [15/24]

if ( (item=PyDict_GetItemString(obj, "nfilters")) )

◆ if() [16/24]

if ( (item=PyDict_GetItemString(obj, "nq")) )

◆ if() [17/24]

if ( (item=PyDict_GetItemString(obj, "pitch_index")) )

◆ if() [18/24]

if ( (item=PyDict_GetItemString(obj, "rc")) )

Definition at line 530 of file ctypes.h.

◆ if() [19/24]

if ( (item=PyDict_GetItemString(obj, "rc_order")) )

Definition at line 524 of file ctypes.h.

◆ if() [20/24]

if ( (item=PyDict_GetItemString(obj, "shape")) )

◆ if() [21/24]

if ( (obj=new_1d_ptr(t, n, &dst)) )

◆ if() [22/24]

if ( (obj=new_2d_ptr(t, n1, n2, &dst)) )

◆ if() [23/24]

if ( (obj=to_1d_ptr(obj, t, n, &src)) )

◆ if() [24/24]

if ( (obj=to_2d_ptr(obj, t, n1, n2, &src)) )

◆ memcpy() [1/2]

memcpy ( ptr ,
PyArray_DATA((PyArrayObject *) obj) ,
PyArray_NBYTES((PyArrayObject *) obj)  )

◆ memcpy() [2/2]

memcpy ( PyArray_DATA((PyArrayObject *) obj) ,
ptr ,
PyArray_NBYTES((PyArrayObject *) obj)  )

◆ PyArray_NBYTES()

PyArray_NBYTES ( (PyArrayObject *) obj)

◆ PyDict_SetItemString() [1/20]

PyDict_SetItemString ( obj ,
"active" ,
new_scalar(NPY_BOOL, &ltpf->active)  )

◆ PyDict_SetItemString() [2/20]

PyDict_SetItemString ( obj ,
"an1" ,
new_scalar(NPY_INT32, &attdet->an1)  )

◆ PyDict_SetItemString() [3/20]

PyDict_SetItemString ( obj ,
"c" ,
c_obj  )

◆ PyDict_SetItemString() [4/20]

PyDict_SetItemString ( obj ,
"c" ,
new_1d_copy(NPY_FLOAT, 2 *12, &ltpf->c)  )

◆ PyDict_SetItemString() [5/20]

PyDict_SetItemString ( obj ,
"en1" ,
new_scalar(NPY_INT32, &attdet->en1)  )

◆ PyDict_SetItemString() [6/20]

PyDict_SetItemString ( obj ,
"hp50" ,
from_ltpf_hp50_state(PyDict_New(), &ltpf->hp50)  )

◆ PyDict_SetItemString() [7/20]

PyDict_SetItemString ( obj ,
"nbits_off" ,
new_scalar(NPY_FLOAT, &spec->nbits_off)  )

◆ PyDict_SetItemString() [8/20]

PyDict_SetItemString ( obj ,
"nbits_spare" ,
new_scalar(NPY_INT, &spec->nbits_spare)  )

◆ PyDict_SetItemString() [9/20]

PyDict_SetItemString ( obj ,
"nc" ,
nc_obj  )

◆ PyDict_SetItemString() [10/20]

PyDict_SetItemString ( obj ,
"nc" ,
new_1d_copy(NPY_FLOAT, 2, &ltpf->nc)  )

◆ PyDict_SetItemString() [11/20]

PyDict_SetItemString ( obj ,
"p_att" ,
new_scalar(NPY_INT, &attdet->p_att)  )

◆ PyDict_SetItemString() [12/20]

PyDict_SetItemString ( obj ,
"pitch" ,
new_scalar(NPY_INT, &ltpf->pitch)  )

◆ PyDict_SetItemString() [13/20]

PyDict_SetItemString ( obj ,
"s2" ,
new_scalar(NPY_INT64, &hp50->s2)  )

◆ PyDict_SetItemString() [14/20]

PyDict_SetItemString ( obj ,
"tc" ,
new_scalar(NPY_INT, &ltpf->tc)  )

◆ PyDict_SetItemString() [15/20]

PyDict_SetItemString ( obj ,
"x" ,
new_1d_copy(NPY_FLOAT, 12, &ltpf->x)  )

◆ PyDict_SetItemString() [16/20]

PyDict_SetItemString ( obj ,
"x" ,
x_obj  )

◆ PyDict_SetItemString() [17/20]

PyDict_SetItemString ( obj ,
"x_12k8" ,
new_1d_copy(NPY_INT16, n_12k8, &ltpf->x_12k8)  )

◆ PyDict_SetItemString() [18/20]

PyDict_SetItemString ( obj ,
"x_12k8" ,
x_12k8_obj  )

◆ PyDict_SetItemString() [19/20]

PyDict_SetItemString ( obj ,
"x_6k4" ,
new_1d_copy(NPY_INT16, n_6k4, &ltpf->x_6k4)  )

◆ PyDict_SetItemString() [20/20]

PyDict_SetItemString ( obj ,
"x_6k4" ,
x_6k4_obj  )

◆ to_scalar() [1/4]

to_scalar ( item ,
NPY_BOOL ,
&data-> active )

◆ to_scalar() [2/4]

to_scalar ( item ,
NPY_BOOL ,
&side-> lsb_mode )

◆ to_scalar() [3/4]

to_scalar ( item ,
NPY_INT ,
&data-> pitch_index )

◆ to_scalar() [4/4]

to_scalar ( item ,
NPY_INT ,
&side-> nfilters )

Variable Documentation

◆ attdet

const struct lc3_attdet_analysis * attdet
Initial value:
{
CTYPES_CHECK("attdet", obj && PyDict_Check(obj))
#define CTYPES_CHECK(exc, t)
Definition ctypes.h:28

Definition at line 199 of file ctypes.h.

◆ data

struct lc3_sns_data * data
Initial value:
{
PyObject *item

Definition at line 397 of file ctypes.h.

◆ dst

void * dst

Definition at line 173 of file ctypes.h.

◆ hp50

const struct lc3_ltpf_hp50_state * hp50
Initial value:
{
CTYPES_CHECK("hp50", obj && PyDict_Check(obj))

Definition at line 239 of file ctypes.h.

◆ ltpf

const struct lc3_ltpf_synthesis * ltpf
Initial value:
{
PyObject *nc_obj, *x_12k8_obj, *x_6k4_obj

Definition at line 267 of file ctypes.h.

◆ n

int n
Initial value:
{
void *src

Definition at line 90 of file ctypes.h.

◆ n1

int n1

Definition at line 102 of file ctypes.h.

◆ n2

int int n2
Initial value:
{
void *src

Definition at line 102 of file ctypes.h.

◆ n_12k8

const int n_12k8 = sizeof(ltpf->x_12k8) / sizeof(*ltpf->x_12k8)

Definition at line 270 of file ctypes.h.

◆ n_6k4

const int n_6k4 = sizeof(ltpf->x_6k4) / sizeof(*ltpf->x_6k4)

Definition at line 271 of file ctypes.h.

◆ obj

return obj = PyArray_SimpleNew(2, ((const npy_intp []){ n1, n2 }), t)

Definition at line 86 of file ctypes.h.

◆ ptr

* ptr
Initial value:
{
obj = obj ? PyArray_FROMANY(obj, t, 0, 0, NPY_ARRAY_FORCECAST) : obj

Definition at line 77 of file ctypes.h.

◆ side

struct lc3_spec_side * side
Initial value:
{
PyObject *item

Definition at line 509 of file ctypes.h.

◆ spec

struct lc3_spec_analysis * spec
Initial value:
{
if (!obj) obj = PyDict_New()

Definition at line 545 of file ctypes.h.

◆ src

int int const void * src
Initial value:
{
PyObject *obj

Definition at line 120 of file ctypes.h.

◆ t

int t

Definition at line 77 of file ctypes.h.

◆ v

Initial value:
{
p[0] = v.e[0], p[1] = v.e[1], p[2] = v.e[2], p[3] = v.e[3]
int void * v
Definition ctypes.h:115

Definition at line 115 of file ctypes.h.