Skip to content

File ns_core.c

FileList > neuralspot > neuralspot > ns-core > src > ns_core.c

Go to the source code of this file

Code common to all neuralSPOT. More...

  • #include "ns_core.h"

Public Functions

Type Name
int __wrap__close_r (struct _reent * r, int fd)
int __wrap__fstat_r (struct _reent * r, int fd, struct stat * st)
int __wrap__getpid_r (struct _reent * r)
int __wrap__isatty_r (struct _reent * r, int fd)
int __wrap__kill_r (struct _reent * r, int pid, int sig)
int __wrap__lseek_r (struct _reent * r, int fd, int ptr, int dir)
int __wrap__read_r (struct _reent * r, int fd, void * ptr, size_t len)
int __wrap__write_r (struct _reent * r, int fd, const void * ptr, size_t len)

Public Static Functions

Type Name
int semver_compare (const ns_semver_t * c, const ns_semver_t * n)

Macros

Type Name
define NS_CORE_API_ID 0xCA0000

Detailed Description

Author:

Carlos Morales

Version:

0.1

Date:

2022-11-03

Copyright:

Copyright (c) 2022

Public Functions Documentation

function __wrap__close_r

int __wrap__close_r (
    struct _reent * r,
    int fd
) 

function __wrap__fstat_r

int __wrap__fstat_r (
    struct _reent * r,
    int fd,
    struct stat * st
) 

function __wrap__getpid_r

int __wrap__getpid_r (
    struct _reent * r
) 

function __wrap__isatty_r

int __wrap__isatty_r (
    struct _reent * r,
    int fd
) 

function __wrap__kill_r

int __wrap__kill_r (
    struct _reent * r,
    int pid,
    int sig
) 

function __wrap__lseek_r

int __wrap__lseek_r (
    struct _reent * r,
    int fd,
    int ptr,
    int dir
) 

function __wrap__read_r

int __wrap__read_r (
    struct _reent * r,
    int fd,
    void * ptr,
    size_t len
) 

function __wrap__write_r

int __wrap__write_r (
    struct _reent * r,
    int fd,
    const void * ptr,
    size_t len
) 

Public Static Functions Documentation

function semver_compare

static int semver_compare (
    const ns_semver_t * c,
    const ns_semver_t * n
) 

Compare semantic versions

param c - 'current' version param n - 'target' version return int - 0 if equal, -1 is c is less than n, 1 if c is more than n


Macro Definition Documentation

define NS_CORE_API_ID

#define NS_CORE_API_ID `0xCA0000`


The documentation for this class was generated from the following file neuralspot/neuralspot/ns-core/src/ns_core.c