N2CMU Arduino
n2cmu_commands.h File Reference

Header file defining the command constants for communication with N2CMU (Neural Network Coprocessing Microcontroller Unit). More...

Go to the source code of this file.

Typedefs

typedef enum N2CMUCommands N2CMUCommands
 Enumeration defining command constants for N2CMU communication. More...
 

Enumerations

enum  N2CMUCommands {
  N2CMU_PROC_HANDSHAKE = 0x00 , N2CMU_PROC_CPU_RESET = 0x01 , N2CMU_NET_CREATE = 0x02 , N2CMU_NET_RESET = 0x03 ,
  N2CMU_NET_TRAIN = 0x04 , N2CMU_NET_INFER = 0x05 , N2CMU_SET_INPUT_COUNT = 0x06 , N2CMU_SET_HIDDEN_COUNT = 0x07 ,
  N2CMU_SET_OUTPUT_COUNT = 0x08 , N2CMU_SET_HIDDEN_NEURON = 0x09 , N2CMU_SET_OUTPUT_NEURON = 0x0a , N2CMU_SET_HIDDEN_WEIGHTS = 0x0b ,
  N2CMU_SET_OUTPUT_WEIGHTS = 0x0c , N2CMU_SET_HIDDEN_BIAS = 0x0d , N2CMU_SET_OUTPUT_BIAS = 0x0e , N2CMU_SET_HIDDEN_GRAD = 0x0f ,
  N2CMU_SET_OUTPUT_GRAD = 0x10 , N2CMU_SET_EPOCH_COUNT = 0x11 , N2CMU_GET_INPUT_COUNT = 0x12 , N2CMU_GET_HIDDEN_COUNT = 0x13 ,
  N2CMU_GET_OUTPUT_COUNT = 0x14 , N2CMU_GET_HIDDEN_NEURON = 0x15 , N2CMU_GET_OUTPUT_NEURON = 0x16 , N2CMU_GET_HIDDEN_WEIGHTS = 0x17 ,
  N2CMU_GET_OUTPUT_WEIGHTS = 0x18 , N2CMU_GET_HIDDEN_BIAS = 0x19 , N2CMU_GET_OUTPUT_BIAS = 0x1a , N2CMU_GET_HIDDEN_GRAD = 0x1b ,
  N2CMU_GET_OUTPUT_GRAD = 0x1c , N2CMU_GET_EPOCH_COUNT = 0x1d
}
 Enumeration defining command constants for N2CMU communication. More...
 

Detailed Description

Header file defining the command constants for communication with N2CMU (Neural Network Coprocessing Microcontroller Unit).

Author
Nathanne Isip

This header file contains an enumeration of command constants used for communication between the main microcontroller and the N2CMU device. These commands are used to perform various operations such as initializing the network, training, inference, setting parameters, and retrieving network information.

Typedef Documentation

◆ N2CMUCommands

Enumeration defining command constants for N2CMU communication.

The N2CMUCommands enumeration defines a set of command constants that are utilized for communication between the main microcontroller and the N2CMU device. Each command represents a specific operation or action to be performed by the N2CMU device.

Enumeration Type Documentation

◆ N2CMUCommands

Enumeration defining command constants for N2CMU communication.

The N2CMUCommands enumeration defines a set of command constants that are utilized for communication between the main microcontroller and the N2CMU device. Each command represents a specific operation or action to be performed by the N2CMU device.

Enumerator
N2CMU_PROC_HANDSHAKE 

Command constant for the N2CMU handshake signal.

N2CMU_PROC_CPU_RESET 

Constant for resetting the CPU.

N2CMU_NET_CREATE 

Command constant for creating a neural network.

N2CMU_NET_RESET 

Command constant for resetting a neural network.

N2CMU_NET_TRAIN 

Command constant for training a neural network.

N2CMU_NET_INFER 

Command constant for making inference with the neural network.

N2CMU_SET_INPUT_COUNT 

Command constant for setting the number of input neurons.

N2CMU_SET_HIDDEN_COUNT 

Command constant for setting the number of hidden neurons.

N2CMU_SET_OUTPUT_COUNT 

Command constant for setting the number of output neurons.

N2CMU_SET_HIDDEN_NEURON 

Command constant for setting hidden neuron values.

N2CMU_SET_OUTPUT_NEURON 

Command constant for setting output neuron values.

N2CMU_SET_HIDDEN_WEIGHTS 

Command constant for setting hidden neuron weights.

N2CMU_SET_OUTPUT_WEIGHTS 

Command constant for setting output neuron weights.

N2CMU_SET_HIDDEN_BIAS 

Command constant for setting hidden neuron biases.

N2CMU_SET_OUTPUT_BIAS 

Command constant for setting output neuron biases.

N2CMU_SET_HIDDEN_GRAD 

Command constant for setting hidden neuron gradients.

N2CMU_SET_OUTPUT_GRAD 

Command constant for setting output neuron gradients.

N2CMU_SET_EPOCH_COUNT 

Command constant for setting the epoch count for training.

N2CMU_GET_INPUT_COUNT 

Command constant for getting the number of input neurons.

N2CMU_GET_HIDDEN_COUNT 

Command constant for getting the number of hidden neurons.

N2CMU_GET_OUTPUT_COUNT 

Command constant for getting the number of output neurons.

N2CMU_GET_HIDDEN_NEURON 

Command constant for getting hidden neuron values.

N2CMU_GET_OUTPUT_NEURON 

Command constant for getting output neuron values.

N2CMU_GET_HIDDEN_WEIGHTS 

Command constant for getting hidden neuron weights.

N2CMU_GET_OUTPUT_WEIGHTS 

Command constant for getting output neuron weights.

N2CMU_GET_HIDDEN_BIAS 

Command constant for getting hidden neuron biases.

N2CMU_GET_OUTPUT_BIAS 

Command constant for getting output neuron biases.

N2CMU_GET_HIDDEN_GRAD 

Command constant for getting hidden neuron gradients.

N2CMU_GET_OUTPUT_GRAD 

Command constant for getting output neuron gradients.

N2CMU_GET_EPOCH_COUNT 

Command constant for getting the epoch count of training.