Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
serial_mac_api.h File Reference
Serial MAC API. More...
Go to the source code of this file.
Typedefs | |
typedef int8_t | data_request (const serial_mac_api_t *api, const uint8_t *data_ptr, uint16_t data_length) |
data_request data request call | |
typedef void | data_indication (const serial_mac_api_t *api, const uint8_t *data_ptr, uint16_t data_length) |
data_indication Data indication is called when MAC layer has received data | |
typedef int8_t | serial_mac_api_initialize (serial_mac_api_t *api, data_indication *ind_cb) |
* | |
typedef int8_t | serial_mac_virtual_initialize (const serial_mac_api_t *api, int8_t driver_id) |
serial_mac_virtual_initialize Initialises MAC to use virtual driver |
Detailed Description
Serial MAC API.
Definition in file serial_mac_api.h.
Typedef Documentation
typedef void data_indication(const serial_mac_api_t *api, const uint8_t *data_ptr, uint16_t data_length) |
data_indication Data indication is called when MAC layer has received data
- Parameters:
-
api The API which handled the response data Data to be sent data_length Length of the data
Definition at line 49 of file serial_mac_api.h.
typedef int8_t data_request(const serial_mac_api_t *api, const uint8_t *data_ptr, uint16_t data_length) |
data_request data request call
- Parameters:
-
api API to handle the request data Data to be sent data_length Length of the data
Definition at line 40 of file serial_mac_api.h.
typedef int8_t serial_mac_api_initialize(serial_mac_api_t *api, data_indication *ind_cb) |
*
serial_mac_api_initialize Initialises Serial MAC layer into use
- Parameters:
-
api API to initialize ind_cb Callback to call when data is received.
- Returns:
- 0 if success, -1 if api is invalid
Definition at line 57 of file serial_mac_api.h.
typedef int8_t serial_mac_virtual_initialize(const serial_mac_api_t *api, int8_t driver_id) |
serial_mac_virtual_initialize Initialises MAC to use virtual driver
- Parameters:
-
api API to start using virtual driver driver_id Virtual driver ID. Must be valid.
- Returns:
- 0 if success, -1 if api or driver is invalid
Definition at line 65 of file serial_mac_api.h.
Generated on Tue Jul 12 2022 18:19:37 by
