BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
sBSP430m25p Struct Reference

#include <bsp430/utility/m25p.h>

Data Fields

hBSP430halSERIAL spi
 
volatile sBSP430hplPORTcsn_port
 
volatile sBSP430hplPORTrstn_port
 
uint8_t csn_bit
 
uint8_t rstn_bit
 

Detailed Description

Information required to access an M25P-based serial SPI flash device. Boards that allow control of power to the device must do so externally from this module.

Examples:
utility/m25p/main.c.

Field Documentation

uint8_t sBSP430m25p::csn_bit

The bit identifying the csn_port peripheral port pin that controls the device CS# signal.

Examples:
utility/m25p/main.c.
volatile sBSP430hplPORT* sBSP430m25p::csn_port

The port peripheral used to control the device CS# (chip select inverted) signal. A port must be provided.

Examples:
utility/m25p/main.c.
uint8_t sBSP430m25p::rstn_bit

The bit identifying the rstn_port peripheral port pin that controls the device RESET# signal.

Examples:
utility/m25p/main.c.
volatile sBSP430hplPORT* sBSP430m25p::rstn_port

The port peripheral used to control the device RESET# (reset inverted) signal. If no port is provided, the M25P functions will not manipulate the RESET# signal.

Examples:
utility/m25p/main.c.
hBSP430halSERIAL sBSP430m25p::spi

The SPI peripheral used to access the device. A device must be assigned.

Examples:
utility/m25p/main.c.

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