Exemplo n.º 1
0
void
send(char *str){
  CWDEBUG ("send: %s\n", str);
  uint8_t i;
  uint8_t len = strlen(str);
  for (i = 0; i < len; i++) {
    send_sign(convert(str[i])); // convert char to sign

  }
}
Exemplo n.º 2
0
void net::calculate_layer(layer * layer_ptr) {
    neuron * neuron_ptr;
    synapse * synapse_ptr;
    for_each_neuron_in_layer(layer_ptr , iterator_neurons) {
        neuron_ptr = *(iterator_neurons);
        neuron_ptr->normate();
        for_each_synapse_in_neuron(neuron_ptr , iterator_synapses) {
            synapse_ptr = *(iterator_synapses);
            send_sign(synapse_ptr);
        }