no-OS
Loading...
Searching...
No Matches
nhd_c12832a1z.c File Reference

Implementation of nhd_c12832a1z Driver. More...

#include <stdbool.h>
#include "nhd_c12832a1z.h"
#include "no_os_error.h"
#include "no_os_spi.h"
#include "no_os_delay.h"
#include "no_os_alloc.h"
#include <string.h>
Include dependency graph for nhd_c12832a1z.c:

Functions

int nhd_c12832a1z_write_cmd (struct nhd_c12832a1z_dev *dev, uint8_t cmd)
 nhd_c12832a1z write command.
 
int nhd_c12832a1z_write_data (struct nhd_c12832a1z_dev *dev, uint8_t data)
 nhd_c12832a1z write data.
 
int nhd_c12832a1z_print_string (struct nhd_c12832a1z_dev *dev, char *msg)
 nhd_c12832a1z print string on LCD.
 
int nhd_c12832a1z_clear_lcd (struct nhd_c12832a1z_dev *dev)
 nhd_c12832a1z clear LCD.
 
int nhd_c12832a1z_init (struct nhd_c12832a1z_dev **device, struct nhd_c12832a1z_init_param init_param)
 Initializes nhd_c12832a1z for display screening.
 
int nhd_c12832a1z_remove (struct nhd_c12832a1z_dev *dev)
 nhd_c12832a1z remove allocated resources
 

Detailed Description

Implementation of nhd_c12832a1z Driver.

Author
Antoniu Miclaus (anton.nosp@m.iu.m.nosp@m.iclau.nosp@m.s@an.nosp@m.alog..nosp@m.com)

Copyright 2023(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ nhd_c12832a1z_clear_lcd()

int nhd_c12832a1z_clear_lcd ( struct nhd_c12832a1z_dev * dev)

nhd_c12832a1z clear LCD.

Parameters
dev- The device structure.
Returns
Returns 0 in case of success or negative error code otherwise.

◆ nhd_c12832a1z_init()

int nhd_c12832a1z_init ( struct nhd_c12832a1z_dev ** device,
struct nhd_c12832a1z_init_param init_param )

Initializes nhd_c12832a1z for display screening.

Parameters
device- The device structure.
init_param- Initialization parameters.
Returns
Returns 0 in case of success or negative error code otherwise.

◆ nhd_c12832a1z_print_string()

int nhd_c12832a1z_print_string ( struct nhd_c12832a1z_dev * dev,
char * msg )

nhd_c12832a1z print string on LCD.

Parameters
dev- The device structure.
msg- Message to be printed.
Returns
Returns 0 in case of success or negative error code otherwise.

◆ nhd_c12832a1z_remove()

int nhd_c12832a1z_remove ( struct nhd_c12832a1z_dev * dev)

nhd_c12832a1z remove allocated resources

Parameters
dev- The device structure
Returns
Returns 0 in case of success or negative error code otherwise.

◆ nhd_c12832a1z_write_cmd()

int nhd_c12832a1z_write_cmd ( struct nhd_c12832a1z_dev * dev,
uint8_t cmd )

nhd_c12832a1z write command.

Parameters
dev- The device structure.
cmd- Command to be written.
Returns
Returns 0 in case of success or negative error code otherwise.

◆ nhd_c12832a1z_write_data()

int nhd_c12832a1z_write_data ( struct nhd_c12832a1z_dev * dev,
uint8_t data )

nhd_c12832a1z write data.

Parameters
dev- The device structure.
data- Data to be written.
Returns
Returns 0 in case of success or negative error code otherwise.