upm  0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
Functions | Macros
aci_setup.h File Reference

Go to the source code of this file.

Functions

uint8_t do_aci_setup (aci_state_t *aci_stat)
 Setup the nRF8001 device. More...
 

Macros

#define SETUP_SUCCESS   0
 
#define SETUP_FAIL_COMMAND_QUEUE_NOT_EMPTY   1
 
#define SETUP_FAIL_EVENT_QUEUE_NOT_EMPTY   2
 
#define SETUP_FAIL_TIMEOUT   3
 
#define SETUP_FAIL_NOT_SETUP_EVENT   4
 
#define SETUP_FAIL_NOT_COMMAND_RESPONSE   5
 

Function Documentation

uint8_t do_aci_setup ( aci_state_t *  aci_stat)

Performs ACI Setup by transmitting the setup messages generated by nRFgo Studio to the nRF8001, and should be called when the nRF8001 starts or resets. Once all messages are sent, the nRF8001 will send a Device Started Event. The function requires that the Command queue is empty when it is invoked, and will fail otherwise.

Returns
An integer indicating the reason the function terminated

Here is the call graph for this function: