Clock.c File Reference

Clock handler. More...

#include <stdbool.h>
#include <stdint.h>
#include "Clock.h"
#include "MCAL.h"
#include <stdlib.h>
#include "BMP180.h"
Include dependency graph for Clock.c:

Go to the source code of this file.

Data Structures

struct  ClockData
 Clock handler data. More...
 

Functions

uint8_t * Clock_GetBufferAddr (void)
 Get address of image buffer. More...
 
void Clock_Update (void)
 Update clock-face buffer.
 
void Clock_SetTemperature (int8_t s8Temp)
 Set temperature. More...
 

Variables

static ClockData _stClock = { 0 }
 Clock handler private data.
 
static const uint8_t _au8ClockFont [50]
 6x6 Clock font More...
 

Detailed Description

Clock handler.

Author
Michael Fitzmayer

Definition in file Clock.c.

Function Documentation

◆ Clock_GetBufferAddr()

uint8_t* Clock_GetBufferAddr ( void  )

Get address of image buffer.

Returns
Pointer to image buffer

Definition at line 59 of file Clock.c.

Here is the caller graph for this function:

◆ Clock_SetTemperature()

void Clock_SetTemperature ( int8_t  s8Temp)

Set temperature.

Parameters
s8TempTemperature in 1°C

Definition at line 162 of file Clock.c.

Here is the caller graph for this function:

Variable Documentation

◆ _au8ClockFont

_au8ClockFont
static
Initial value:
= {
0b01111100, 0b00001000, 0b01111000, 0b01111100, 0b01000000, 0b01111100, 0b01111100, 0b01111100, 0b01111100, 0b01111100,
0b01001100, 0b00011000, 0b00000100, 0b00000100, 0b01000000, 0b01000000, 0b01000000, 0b00000100, 0b01000100, 0b01000100,
0b01010100, 0b00001000, 0b00111000, 0b01111000, 0b01010000, 0b01111000, 0b01111100, 0b00001000, 0b01111100, 0b01111100,
0b01100100, 0b00001000, 0b01000000, 0b00000100, 0b01111100, 0b00000100, 0b01000100, 0b00010000, 0b01000100, 0b00000100,
0b01111100, 0b00011100, 0b01111100, 0b01111100, 0b00010000, 0b01111000, 0b01111100, 0b00010000, 0b01111100, 0b01111100,
}

6x6 Clock font

Definition at line 47 of file Clock.c.