Functions | Variables

# data_flash.c File Reference

this file contains all the functions needed to access to the battery pack information stored in the MSP430 flash memory . More...

`#include "msp430.h"`
`#include "bq_pack.h"`
`#include "types.h"`
`#include "data_flash.h"`

Go to the source code of this file.

## Functions
unsigned short | get_u16_value (param_id_t param_id)
| Function Name: get_u16_value.
DWORD | get_u32_value (param_id_t param_id)
| Function Name: get_u32_value.
## Variables
const DWORD | DATA_FLASH []
| Local variables .

## Detailed Description

this file contains all the functions needed to access to the battery pack information stored in the MSP430 flash memory .

Author:
  Daniel Torres - Texas Instruments, Inc

Date:
  November 2010

Version:
  1.0 Initial version

Note:
  Built with IAR for MSP430 Version: 5.10

Definition in file data_flash.c.

## Function Documentation

unsigned short get_u16_value | ( | param_id_t | param_id | ) |

Function Name: get_u16_value.

Global functions declaration .

Description : Reads the flash memory and returns the value of the parameter

Parameters:

  | parameters | : battery pack parameter to be read

Returns:
  Value : value of the specific battery parameter

Definition at line 134 of file data_flash.c.

DWORD get_u32_value | ( | param_id_t | param_id | ) |

Function Name: get_u32_value.

Description : Reads the flash memory and returns the value of the parameter

Parameters:

  | parameters | : battery pack parameter to be read

Returns:
  Value : value of the specific battery parameter

Definition at line 148 of file data_flash.c.