Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
bluegiga.h File Reference

Bluegiga Bluetooth chip I/O. More...

+ Include dependency graph for bluegiga.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bluegiga_periph
 

Macros

#define BLUEGIGA_BUFFER_SIZE   256
 
#define BlueGigaCheckAndParse(_dev, _trans)
 

Enumerations

enum  BlueGigaStatus { BLUEGIGA_UNINIT, BLUEGIGA_IDLE, BLUEGIGA_SENDING, BLUEGIGA_BROADCASTING }
 

Functions

bool_t bluegiga_ch_available (struct bluegiga_periph *p)
 
void bluegiga_increment_buf (uint8_t *buf_idx, uint8_t len)
 
void bluegiga_init (struct bluegiga_periph *p)
 
void bluegiga_scan (struct bluegiga_periph *p)
 
void bluegiga_request_all_rssi (struct bluegiga_periph *p)
 
static void bluegiga_read_buffer (struct bluegiga_periph *p, struct pprz_transport *t)
 

Variables

struct bluegiga_periph bluegiga_p
 
signed char bluegiga_rssi []
 

Detailed Description

Bluegiga Bluetooth chip I/O.

Definition in file bluegiga.h.


Data Structure Documentation

struct bluegiga_periph

Definition at line 48 of file bluegiga.h.

+ Collaboration diagram for bluegiga_periph:
Data Fields
uint32_t bytes_recvd_since_last
struct link_device device Generic device interface.
uint8_t end_of_msg
uint8_t rx_buf[BLUEGIGA_BUFFER_SIZE]
uint8_t rx_extract_idx
uint8_t rx_insert_idx
uint8_t tx_buf[BLUEGIGA_BUFFER_SIZE]
uint8_t tx_extract_idx
uint8_t tx_insert_idx
uint8_t work_rx[20]
uint8_t work_tx[20]

Macro Definition Documentation

#define BLUEGIGA_BUFFER_SIZE   256
#define BlueGigaCheckAndParse (   _dev,
  _trans 
)
Value:
{ \
bluegiga_read_buffer(&(_dev), &(_trans)); \
}
bool_t bluegiga_ch_available(struct bluegiga_periph *p)
Definition: bluegiga.c:97
static void bluegiga_read_buffer(struct bluegiga_periph *p, struct pprz_transport *t)
Definition: bluegiga.h:85
if(PrimarySpektrumState.SpektrumTimer)

Definition at line 107 of file bluegiga.h.

Enumeration Type Documentation

Enumerator
BLUEGIGA_UNINIT 

The com isn't initialized.

BLUEGIGA_IDLE 

The com is in idle.

BLUEGIGA_SENDING 

The com is sending.

BLUEGIGA_BROADCASTING 

The com is switched from data link to rssi scanning.

Definition at line 33 of file bluegiga.h.

Function Documentation

bool_t bluegiga_ch_available ( struct bluegiga_periph p)

Definition at line 97 of file bluegiga.c.

References bluegiga_periph::rx_extract_idx, and bluegiga_periph::rx_insert_idx.

Referenced by bluegiga_read_buffer(), and dev_char_available().

+ Here is the caller graph for this function:

void bluegiga_increment_buf ( uint8_t buf_idx,
uint8_t  len 
)

Definition at line 103 of file bluegiga.c.

References BLUEGIGA_BUFFER_SIZE.

Referenced by bluegiga_load_tx(), bluegiga_read_buffer(), bluegiga_receive(), bluegiga_transmit(), and dev_get_byte().

+ Here is the caller graph for this function:

static void bluegiga_read_buffer ( struct bluegiga_periph p,
struct pprz_transport t 
)
inlinestatic
void bluegiga_request_all_rssi ( struct bluegiga_periph p)

Definition at line 322 of file bluegiga.c.

References BLUEGIGA_DRDY_GPIO, BLUEGIGA_DRDY_GPIO_PIN, BLUEGIGA_SENDING, coms_status, gpio_clear(), and bluegiga_periph::work_tx.

+ Here is the call graph for this function:

void bluegiga_scan ( struct bluegiga_periph p)

Definition at line 309 of file bluegiga.c.

References BLUEGIGA_DRDY_GPIO, BLUEGIGA_DRDY_GPIO_PIN, BLUEGIGA_SENDING, coms_status, gpio_clear(), and bluegiga_periph::work_tx.

+ Here is the call graph for this function:

Variable Documentation

struct bluegiga_periph bluegiga_p

Definition at line 50 of file bluegiga.c.

Referenced by bluegiga_receive(), and downlink_init().

signed char bluegiga_rssi[]

Definition at line 53 of file bluegiga.c.

Referenced by bluegiga_init(), and bluegiga_receive().