- Main Page
- Modules
- Data Structures
- Files
- Directories

# matlab.c File Reference

To communicate with matlab. More...

`#include "matlab.h"`
`#include "./../motor_led/e_epuck_ports.h"`
`#include "./../uart/e_uart_char.h"`

## Functions
void | e_send_int_to_matlab (int *data, int array_size)
| The function to send int values to matlab.
void | e_send_char_to_matlab (char *data, int array_size)
| The function to send char values to matlab.
int | e_receive_int_from_matlab (int *data, int array_size)
| The function to receive int values from matlab.
int | e_receive_char_from_matlab (char *data, int array_size)
| The function to receive char values from matlab.

## Detailed Description

To communicate with matlab.

This module manage the communication with matlab through bluetooth.

Author:
  Code: Michael Bonani, Jonathan Besuchet, Doc: Jonathan Besuchet

## Function Documentation

int e_receive_char_from_matlab | ( | char * | data,
|  | int | array_size |
| ) |  |  |

The function to receive char values from matlab.

Parameters:

  | data | The array of char data you want to fill
  | array_size | The length of the array

Returns:
  The number of char stored

int e_receive_int_from_matlab | ( | int * | data,
|  | int | array_size |
| ) |  |  |

The function to receive int values from matlab.

Parameters:

  | data | The array of int data you want to fill
  | array_size | The length of the array

Returns:
  The number of int stored

void e_send_char_to_matlab | ( | char * | data,
|  | int | array_size |
| ) |  |  |

The function to send char values to matlab.

Parameters:

  | data | The array of char data you want to send
  | array_size | The length of the array

void e_send_int_to_matlab | ( | int * | data,
|  | int | array_size |
| ) |  |  |

The function to send int values to matlab.

Parameters:

  | data | The array of int data you want to send
  | array_size | The length of the array