LibDriver NRF905
Loading...
Searching...
No Matches
nrf905_handle_s Struct Reference

nrf905 handle structure definition More...

#include <driver_nrf905.h>

Data Fields

uint8_t(* ce_gpio_init )(void)
uint8_t(* ce_gpio_deinit )(void)
uint8_t(* ce_gpio_write )(uint8_t value)
uint8_t(* tx_en_gpio_init )(void)
uint8_t(* tx_en_gpio_deinit )(void)
uint8_t(* tx_en_gpio_write )(uint8_t value)
uint8_t(* pwr_up_gpio_init )(void)
uint8_t(* pwr_up_gpio_deinit )(void)
uint8_t(* pwr_up_gpio_write )(uint8_t value)
uint8_t(* spi_init )(void)
uint8_t(* spi_deinit )(void)
uint8_t(* spi_read )(uint8_t reg, uint8_t *buf, uint16_t len)
uint8_t(* spi_write )(uint8_t reg, uint8_t *buf, uint16_t len)
uint8_t(* spi_transmit )(uint8_t *tx, uint8_t *rx, uint16_t len)
void(* delay_ms )(uint32_t ms)
void(* debug_print )(const char *const fmt,...)
void(* receive_callback )(uint8_t type, uint8_t *buf, uint8_t len)
uint8_t inited
uint8_t conf [10]
uint8_t finished
uint8_t mode

Detailed Description

nrf905 handle structure definition

Definition at line 160 of file driver_nrf905.h.

Field Documentation

◆ ce_gpio_deinit

uint8_t(* ce_gpio_deinit) (void)

point to a ce_gpio_deinit function address

Definition at line 163 of file driver_nrf905.h.

◆ ce_gpio_init

uint8_t(* ce_gpio_init) (void)

point to a ce_gpio_init function address

Definition at line 162 of file driver_nrf905.h.

◆ ce_gpio_write

uint8_t(* ce_gpio_write) (uint8_t value)

point to a ce_gpio_write function address

Definition at line 164 of file driver_nrf905.h.

◆ conf

uint8_t conf[10]

conf buffer

Definition at line 180 of file driver_nrf905.h.

◆ debug_print

void(* debug_print) (const char *const fmt,...)

point to a debug_print function address

Definition at line 177 of file driver_nrf905.h.

◆ delay_ms

void(* delay_ms) (uint32_t ms)

point to a delay_ms function address

Definition at line 176 of file driver_nrf905.h.

◆ finished

uint8_t finished

finished flag

Definition at line 181 of file driver_nrf905.h.

◆ inited

uint8_t inited

inited flag

Definition at line 179 of file driver_nrf905.h.

◆ mode

uint8_t mode

chip mode

Definition at line 182 of file driver_nrf905.h.

◆ pwr_up_gpio_deinit

uint8_t(* pwr_up_gpio_deinit) (void)

point to a pwr_up_gpio_deinit function address

Definition at line 169 of file driver_nrf905.h.

◆ pwr_up_gpio_init

uint8_t(* pwr_up_gpio_init) (void)

point to a pwr_up_gpio_init function address

Definition at line 168 of file driver_nrf905.h.

◆ pwr_up_gpio_write

uint8_t(* pwr_up_gpio_write) (uint8_t value)

point to a pwr_up_gpio_write function address

Definition at line 170 of file driver_nrf905.h.

◆ receive_callback

void(* receive_callback) (uint8_t type, uint8_t *buf, uint8_t len)

point to a receive_callback function address

Definition at line 178 of file driver_nrf905.h.

◆ spi_deinit

uint8_t(* spi_deinit) (void)

point to a spi_deinit function address

Definition at line 172 of file driver_nrf905.h.

◆ spi_init

uint8_t(* spi_init) (void)

point to a spi_init function address

Definition at line 171 of file driver_nrf905.h.

◆ spi_read

uint8_t(* spi_read) (uint8_t reg, uint8_t *buf, uint16_t len)

point to a spi_read function address

Definition at line 173 of file driver_nrf905.h.

◆ spi_transmit

uint8_t(* spi_transmit) (uint8_t *tx, uint8_t *rx, uint16_t len)

point to a spi_transmit function address

Definition at line 175 of file driver_nrf905.h.

◆ spi_write

uint8_t(* spi_write) (uint8_t reg, uint8_t *buf, uint16_t len)

point to a spi_write function address

Definition at line 174 of file driver_nrf905.h.

◆ tx_en_gpio_deinit

uint8_t(* tx_en_gpio_deinit) (void)

point to a tx_en_gpio_deinit function address

Definition at line 166 of file driver_nrf905.h.

◆ tx_en_gpio_init

uint8_t(* tx_en_gpio_init) (void)

point to a tx_en_gpio_init function address

Definition at line 165 of file driver_nrf905.h.

◆ tx_en_gpio_write

uint8_t(* tx_en_gpio_write) (uint8_t value)

point to a tx_en_gpio_write function address

Definition at line 167 of file driver_nrf905.h.


The documentation for this struct was generated from the following file: