MAXREFDES70# Code Documentation  V02.00
High-precision long battery life heat/flow meter
 All Data Structures Files Functions Variables Enumerator Macros Pages
dogm163.c File Reference
#include <stdio.h>
#include "dogm163.h"
#include "batteryLevel.h"
#include "em_cmu.h"
#include "em_gpio.h"
#include "em_usart.h"

Go to the source code of this file.

Functions

void Delay (uint32_t dlyTicks)
 Delays number of msTick Systicks (typically 1 ms)
 
int DOGM163_SpiTransmit (uint8_t *data, uint32_t len)
 Transmit data on the SPI interface.
 
int DOGM163_WriteCmdByte (uint8_t byte)
 Write a command byte to the DOGM163.
 
int DOGM163_WriteDataByte (uint8_t byte)
 Write a data byte to the DOGM163.
 
void DOGM163_Init (void)
 Initialize DOGM163 display.
 
void DOGM163_PowerOff (void)
 Power off DOGM163 display.
 
int DOGM163_ClearChars (uint8_t start_row, uint8_t start_column, uint8_t number)
 
int DOGM163_PrintChars (uint8_t start_row, uint8_t start_column, uint8_t number, char *string)
 
int DOGM163_PrintInteger (uint8_t start_row, uint8_t start_column, uint8_t width, uint16_t integer)
 
void DOGM163_PrintWelcomeMsg (void)
 

Detailed Description

 ******************************************************

           Project: MAXREFDES70
           Filename: dogm163.c
       Description: This module contains the display module functions for the
                    implementation of the example
                    program for the MAXREFDES70.

  Revision History:


09-26-2014 Rev 01.00 MG Initial release.

/* Copyright (C) 2012 Maxim Integrated Products, Inc., All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL MAXIM INTEGRATED PRODUCTS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of Maxim Integrated Products shall not be used except as stated in the Maxim Integrated Products Branding Policy.

The mere transfer of this software does not imply any licenses of trade secrets, proprietary technology, copyrights, patents, trademarks, maskwork rights, or any other form of intellectual property whatsoever. Maxim Integrated Products retains all ownership rights.

Definition in file dogm163.c.

Function Documentation

void Delay ( uint32_t  dlyTicks)

Delays number of msTick Systicks (typically 1 ms)

Parameters
dlyTicksNumber of ticks to delay

Definition at line 1393 of file MAXREFDES70.c.

int DOGM163_ClearChars ( uint8_t  start_row,
uint8_t  start_column,
uint8_t  number 
)

Definition at line 211 of file dogm163.c.

void DOGM163_Init ( void  )

Initialize DOGM163 display.

This function initializes the DOGM163 display module.

Check the battery voltage level to adjust LCD contrast. Calibrated relationship between LCD contrast and battery voltage level: LCD contrast C5|C4|C3|C2|C1|C0 = 85 - battery voltage level (22: 2.4V ... 58: 3.6V, each level increase = 0.034V).

Definition at line 145 of file dogm163.c.

void DOGM163_PowerOff ( void  )

Power off DOGM163 display.

This function completely shut down the DOGM163 display module.

Definition at line 199 of file dogm163.c.

int DOGM163_PrintChars ( uint8_t  start_row,
uint8_t  start_column,
uint8_t  number,
char *  string 
)

Definition at line 226 of file dogm163.c.

int DOGM163_PrintInteger ( uint8_t  start_row,
uint8_t  start_column,
uint8_t  width,
uint16_t  integer 
)

Definition at line 244 of file dogm163.c.

void DOGM163_PrintWelcomeMsg ( void  )

Definition at line 266 of file dogm163.c.

int DOGM163_SpiTransmit ( uint8_t *  data,
uint32_t  len 
)

Transmit data on the SPI interface.

Parameters
[in]dataPointer to the data to be transmitted.
[in]lenLength of data to transmit.
Returns
EMSTATUS code of the operation.

Definition at line 62 of file dogm163.c.

int DOGM163_WriteCmdByte ( uint8_t  byte)

Write a command byte to the DOGM163.

Parameters
[in]byteByte to be wirtten to DOGM163.
Returns
EMSTATUS code of the operation.

Definition at line 97 of file dogm163.c.

int DOGM163_WriteDataByte ( uint8_t  byte)

Write a data byte to the DOGM163.

Parameters
[in]byteByte to be written to DOGM163.
Returns
EMSTATUS code of the operation.

Definition at line 122 of file dogm163.c.