sPyNNaker neural_modelling 7.1.1
Loading...
Searching...
No Matches
Data Structures | Typedefs | Enumerations | Functions | Variables
type_writers.h File Reference

The type converters for parameter generation. More...

#include <common-typedefs.h>
#include <debug.h>

Go to the source code of this file.

Data Structures

struct  type_info
 

Typedefs

typedef void(* type_writer_func_t) (void *, accum)
 

Enumerations

enum  type { S1615 , UINT32 , INT32 , U032 }
 

Functions

static void write_s1615 (void *address, accum value)
 
static void write_uint32 (void *address, accum value)
 
static void write_int32 (void *address, accum value)
 
static void write_u032 (void *address, accum value)
 
static type_infoget_type_writer (type t)
 

Variables

static type_info type_writers []
 

Detailed Description

The type converters for parameter generation.

Definition in file type_writers.h.


Data Structure Documentation

◆ type_info

struct type_info

Definition at line 34 of file type_writers.h.

Data Fields
type type_id
uint32_t size
type_writer_func_t writer

Typedef Documentation

◆ type_writer_func_t

typedef void(* type_writer_func_t) (void *, accum)

Definition at line 32 of file type_writers.h.

Enumeration Type Documentation

◆ type

enum type

Definition at line 25 of file type_writers.h.

Function Documentation

◆ write_s1615()

static void write_s1615 ( void *  address,
accum  value 
)
static

Definition at line 40 of file type_writers.h.

◆ write_uint32()

static void write_uint32 ( void *  address,
accum  value 
)
static

Definition at line 45 of file type_writers.h.

◆ write_int32()

static void write_int32 ( void *  address,
accum  value 
)
static

Definition at line 50 of file type_writers.h.

◆ write_u032()

static void write_u032 ( void *  address,
accum  value 
)
static

Definition at line 55 of file type_writers.h.

◆ get_type_writer()

static type_info * get_type_writer ( type  t)
static

Definition at line 67 of file type_writers.h.

Variable Documentation

◆ type_writers

type_info type_writers[]
static
Initial value:
= {
{S1615, sizeof(accum), write_s1615},
{UINT32, sizeof(uint32_t), write_uint32},
{INT32, sizeof(int32_t), write_int32},
{U032, sizeof(unsigned long fract), write_u032}
}

Definition at line 60 of file type_writers.h.