nns.c  1.0.1
Nanowire Network simulator
All Classes Files Functions Variables Enumerations Enumerator Macros Pages
mea.h File Reference

Defines the Micro-Electrode Array (MEA) structure and related functions. More...

#include "config.h"
#include "device/datasheet.h"
#include "device/network.h"
#include "interface/connection.h"
#include "interface/interface.h"
#include "util/point.h"

Go to the source code of this file.

Classes

struct  MEA
 Represent a Micro-Electrode Array of 16 electrodes (physically sound). Save their position and the index of the nearest nanowire (calculated from the centroid). If the electrode is not enough near to any nanowire, its mapping value is -1. Also memorize the connection state of each electrode and its possible connected weight. More...
 

Functions

MEA connect_MEA (const datasheet ds, const network_topology nt)
 Connect the MEA to the Nanowire Network discovering the touched nanowires. More...
 
interface mea2interface (const MEA mea)
 Convert a MEA data structure into an interface data structure. More...
 

Detailed Description

Defines the Micro-Electrode Array (MEA) structure and related functions.

This header file provides definitions for the Micro-Electrode Array (MEA) data structure and functions for connecting the MEA to a nanowire network and for converting it to an interface data structure. The MEA consists of an array of electrodes, each with position data, a mapping to the nearest nanowire, connection state, and possible weights of attached loads.

Function Documentation

◆ connect_MEA()

MEA connect_MEA ( const datasheet  ds,
const network_topology  nt 
)

Connect the MEA to the Nanowire Network discovering the touched nanowires.

Parameters
[in]dsThe datasheet describing the Nanowire Network.
[in]ntThe topology of the Nanowire Network.
Returns
The MEA data-structure containing the electrodes position and the mapping from them to the touched nanowire.

◆ mea2interface()

interface mea2interface ( const MEA  mea)

Convert a MEA data structure into an interface data structure.

Parameters
[in]meaThe MEA data structure to convert.
Returns
The interface version of the mea.